Clean up history restoring

This commit is contained in:
arkon 2023-12-16 11:14:53 -05:00
parent 3ac68e810d
commit 5fec881387
3 changed files with 49 additions and 38 deletions

View file

@ -7,4 +7,13 @@ data class History(
val chapterId: Long,
val readAt: Date?,
val readDuration: Long,
)
) {
companion object {
fun create() = History(
id = -1L,
chapterId = -1L,
readAt = null,
readDuration = -1L,
)
}
}