changing message id from Int to Long
This commit is contained in:
parent
f412f401d3
commit
ceb9896988
6 changed files with 27 additions and 29 deletions
|
|
@ -4,7 +4,7 @@ import android.provider.Telephony
|
|||
import com.simplemobiletools.commons.models.SimpleContact
|
||||
|
||||
data class Message(
|
||||
val id: Int, val body: String, val type: Int, val participants: ArrayList<SimpleContact>, val date: Int, val read: Boolean, val thread: Int,
|
||||
val id: Long, val body: String, val type: Int, val participants: ArrayList<SimpleContact>, val date: Int, val read: Boolean, val thread: Int,
|
||||
val isMMS: Boolean, val attachment: MessageAttachment?, var senderName: String, val senderPhotoUri: String, val subscriptionId: Int) : ThreadItem() {
|
||||
fun isReceivedMessage() = type == Telephony.Sms.MESSAGE_TYPE_INBOX
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
package com.simplemobiletools.smsmessenger.models
|
||||
|
||||
data class MessageAttachment(val id: Int, var text: String, var attachments: ArrayList<Attachment>)
|
||||
data class MessageAttachment(val id: Long, var text: String, var attachments: ArrayList<Attachment>)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
package com.simplemobiletools.smsmessenger.models
|
||||
|
||||
data class ThreadError(val messageID: Int) : ThreadItem()
|
||||
data class ThreadError(val messageID: Long) : ThreadItem()
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package com.simplemobiletools.smsmessenger.models
|
||||
|
||||
// show a check after the latest message, if it is a sent one and succeeded
|
||||
data class ThreadSuccess(val messageID: Int) : ThreadItem()
|
||||
data class ThreadSuccess(val messageID: Long) : ThreadItem()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue