mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Use RealmAdapter for conversation info media
This commit is contained in:
@@ -19,15 +19,19 @@
|
||||
package model
|
||||
|
||||
import io.realm.RealmObject
|
||||
import io.realm.RealmResults
|
||||
import io.realm.annotations.LinkingObjects
|
||||
import io.realm.annotations.PrimaryKey
|
||||
|
||||
open class MmsPart : RealmObject() {
|
||||
|
||||
@PrimaryKey var id: Long = 0
|
||||
var messageId: Long = 0
|
||||
var type: String = ""
|
||||
|
||||
var text: String? = null
|
||||
var image: String? = null
|
||||
|
||||
@LinkingObjects("parts")
|
||||
val messages: RealmResults<Message>? = null
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user