Improve message sync speed & reliability

This commit is contained in:
Moez Bhatti
2021-02-14 00:19:30 -05:00
parent bc6c19e080
commit ca1e7b7c7a
7 changed files with 81 additions and 45 deletions
@@ -23,6 +23,6 @@ import com.moez.QKSMS.model.MmsPart
interface CursorToPart : Mapper<Cursor, MmsPart> {
fun getPartsCursor(messageId: Long): Cursor?
fun getPartsCursor(): Cursor?
}
}
@@ -22,4 +22,4 @@ interface Mapper<in From, out To> {
fun map(from: From): To
}
}
@@ -21,12 +21,14 @@ package com.moez.QKSMS.model
import androidx.core.net.toUri
import io.realm.RealmObject
import io.realm.RealmResults
import io.realm.annotations.Index
import io.realm.annotations.LinkingObjects
import io.realm.annotations.PrimaryKey
open class MmsPart : RealmObject() {
@PrimaryKey var id: Long = 0
@Index var messageId: Long = 0
var type: String = ""
var seq: Int = -1
var name: String? = null