refactor: Keep some library manga variables as Long

This commit is contained in:
Ahmad Ansori Palembani 2024-08-01 07:19:04 +07:00
parent 2e1faefa97
commit 3fa755117f
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -10,9 +10,9 @@ data class LibraryManga(
var category: Int = 0,
var bookmarkCount: Int = 0,
var totalChapters: Int = 0,
var latestUpdate: Int = 0,
var lastRead: Int = 0,
var lastFetch: Int = 0,
var latestUpdate: Long = 0,
var lastRead: Long = 0,
var lastFetch: Long = 0,
) : MangaImpl() {
var realMangaCount = 0
@ -99,9 +99,9 @@ data class LibraryManga(
this.unread = maxOf((total - readCount).roundToInt(), 0)
this.totalChapters = readCount.roundToInt()
this.bookmarkCount = bookmarkCount.roundToInt()
this.latestUpdate = latestUpdate.toInt()
this.lastRead = lastRead.toInt()
this.lastFetch = lastFetch.toInt()
this.latestUpdate = latestUpdate
this.lastRead = lastRead
this.lastFetch = lastFetch
}
}
}