Add an identifier method on ChunkEntity

This commit is contained in:
ganfra 2019-08-06 21:32:45 +02:00
parent 245fbe86d9
commit 585f0ba4b7

View File

@ -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