Fix indentation for constructor params

This commit is contained in:
moezbhatti
2018-12-25 18:13:17 -05:00
parent a1dfba2e4b
commit 728af5168c
96 changed files with 482 additions and 476 deletions
@@ -19,8 +19,8 @@
package com.moez.QKSMS.model
data class BackupFile(
val path: String,
val date: Long,
val messages: Int,
val size: Long
val path: String,
val date: Long,
val messages: Int,
val size: Long
)
@@ -23,8 +23,8 @@ import io.realm.RealmObject
import io.realm.annotations.PrimaryKey
open class Contact(
@PrimaryKey var lookupKey: String = "",
var numbers: RealmList<PhoneNumber> = RealmList(),
var name: String = "",
var lastUpdate: Long = 0
@PrimaryKey var lookupKey: String = "",
var numbers: RealmList<PhoneNumber> = RealmList(),
var name: String = "",
var lastUpdate: Long = 0
) : RealmObject()
@@ -24,20 +24,20 @@ import io.realm.annotations.Index
import io.realm.annotations.PrimaryKey
open class Conversation(
@PrimaryKey var id: Long = 0,
@Index var archived: Boolean = false,
@Index var blocked: Boolean = false,
@Index var pinned: Boolean = false,
var recipients: RealmList<Recipient> = RealmList(),
var count: Int = 0,
var date: Long = 0,
var snippet: String = "",
var read: Boolean = true,
var me: Boolean = false,
var draft: String = "",
@PrimaryKey var id: Long = 0,
@Index var archived: Boolean = false,
@Index var blocked: Boolean = false,
@Index var pinned: Boolean = false,
var recipients: RealmList<Recipient> = RealmList(),
var count: Int = 0,
var date: Long = 0,
var snippet: String = "",
var read: Boolean = true,
var me: Boolean = false,
var draft: String = "",
// For group chats, the user is allowed to set a custom title for the conversation
var name: String = ""
// For group chats, the user is allowed to set a custom title for the conversation
var name: String = ""
) : RealmObject() {
fun getTitle(): String {
@@ -21,6 +21,6 @@ package com.moez.QKSMS.model
import io.realm.RealmObject
open class PhoneNumber(
var address: String = "",
var type: String = ""
var address: String = "",
var type: String = ""
) : RealmObject()
@@ -24,10 +24,10 @@ import io.realm.annotations.PrimaryKey
import java.util.*
open class Recipient(
@PrimaryKey var id: Long = 0,
var address: String = "",
var contact: Contact? = null,
var lastUpdate: Long = 0
@PrimaryKey var id: Long = 0,
var address: String = "",
var contact: Contact? = null,
var lastUpdate: Long = 0
) : RealmObject() {
/**
@@ -23,13 +23,13 @@ import io.realm.RealmObject
import io.realm.annotations.PrimaryKey
open class ScheduledMessage(
@PrimaryKey var id: Long = 0,
var date: Long = 0,
var subId: Int = -1,
var recipients: RealmList<String> = RealmList(),
var sendAsGroup: Boolean = true,
var body: String = "",
var attachments: RealmList<String> = RealmList()
@PrimaryKey var id: Long = 0,
var date: Long = 0,
var subId: Int = -1,
var recipients: RealmList<String> = RealmList(),
var sendAsGroup: Boolean = true,
var body: String = "",
var attachments: RealmList<String> = RealmList()
) : RealmObject() {
fun copy(id: Long = this.id,