diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/model/ChunkEntity.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/model/ChunkEntity.kt new file mode 100644 index 00000000..345de4dc --- /dev/null +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/model/ChunkEntity.kt @@ -0,0 +1,13 @@ +package im.vector.matrix.android.internal.database.model + +import io.objectbox.annotation.Entity +import io.objectbox.annotation.Id +import io.objectbox.relation.ToMany + +@Entity +class ChunkEntity { + @Id var id: Long = 0 + var prevToken: String? = null + var nextToken: String? = null + lateinit var events: ToMany +} \ No newline at end of file diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/model/EventEntity.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/model/EventEntity.kt new file mode 100644 index 00000000..9c8c2e27 --- /dev/null +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/model/EventEntity.kt @@ -0,0 +1,14 @@ +package im.vector.matrix.android.internal.database.model + +import io.objectbox.annotation.Entity +import io.objectbox.annotation.Id + +@Entity +class EventEntity { + @Id var id: Long = 0 + lateinit var eventId: String + lateinit var type: String + lateinit var content: String + var prevContent: String? = null + var stateKey: String? = null +} \ No newline at end of file diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/model/RoomEntity.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/model/RoomEntity.kt new file mode 100644 index 00000000..cf017cbe --- /dev/null +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/model/RoomEntity.kt @@ -0,0 +1,12 @@ +package im.vector.matrix.android.internal.database.model + +import io.objectbox.annotation.Entity +import io.objectbox.annotation.Id +import io.objectbox.relation.ToMany + +@Entity +class RoomEntity { + @Id var id: Long = 0 + lateinit var roomId: String + lateinit var chunks: ToMany +} \ No newline at end of file