split messages between received and sent

This commit is contained in:
tibbi 2020-04-03 21:44:18 +02:00
parent 4b16fde919
commit fc3e72d390
5 changed files with 45 additions and 4 deletions

View file

@ -1,6 +1,10 @@
package com.simplemobiletools.smsmessenger.models
import android.provider.Telephony
data class Message(
val id: Int, val subject: String, val body: String, val type: Int, val address: String, val date: Int, val read: Boolean,
val thread: Int
)
) {
fun isReceivedMessage() = type == Telephony.Sms.MESSAGE_TYPE_INBOX
}