forked from upstream-mirrors/quik
Improve message sync speed & reliability
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user