forked from GitHub-Mirror/riotX-android
Add an identifier method on ChunkEntity
This commit is contained in:
parent
245fbe86d9
commit
585f0ba4b7
@ -33,6 +33,8 @@ internal open class ChunkEntity(@Index var prevToken: String? = null,
|
|||||||
var forwardsStateIndex: Int? = null
|
var forwardsStateIndex: Int? = null
|
||||||
) : RealmObject() {
|
) : RealmObject() {
|
||||||
|
|
||||||
|
fun identifier() = "${prevToken}_${nextToken}"
|
||||||
|
|
||||||
@LinkingObjects("chunks")
|
@LinkingObjects("chunks")
|
||||||
val room: RealmResults<RoomEntity>? = null
|
val room: RealmResults<RoomEntity>? = null
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user