adding MMS attachments at the Message class
This commit is contained in:
parent
44a1d85436
commit
500f2bc8fe
4 changed files with 17 additions and 29 deletions
|
|
@ -1,5 +0,0 @@
|
|||
package com.simplemobiletools.smsmessenger.models
|
||||
|
||||
import android.graphics.Bitmap
|
||||
|
||||
data class MMS(val id: Int, var text: String, var image: Bitmap?)
|
||||
|
|
@ -4,7 +4,8 @@ import android.provider.Telephony
|
|||
import com.simplemobiletools.smsmessenger.extensions.getThreadTitle
|
||||
|
||||
data class Message(
|
||||
val id: Int, val body: String, val type: Int, val participants: ArrayList<Contact>, val date: Int, val read: Boolean, val thread: Int
|
||||
val id: Int, val body: String, val type: Int, val participants: ArrayList<Contact>, val date: Int, val read: Boolean, val thread: Int,
|
||||
val attachment: MessageAttachment?
|
||||
) : ThreadItem() {
|
||||
fun isReceivedMessage() = type == Telephony.Sms.MESSAGE_TYPE_INBOX
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
package com.simplemobiletools.smsmessenger.models
|
||||
|
||||
import android.net.Uri
|
||||
|
||||
data class MessageAttachment(val id: Int, var text: String, var uri: Uri?, var type: String)
|
||||
Loading…
Add table
Add a link
Reference in a new issue