mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
refactor: Keep some library manga variables as Long
This commit is contained in:
parent
2e1faefa97
commit
3fa755117f
1 changed files with 6 additions and 6 deletions
|
@ -10,9 +10,9 @@ data class LibraryManga(
|
||||||
var category: Int = 0,
|
var category: Int = 0,
|
||||||
var bookmarkCount: Int = 0,
|
var bookmarkCount: Int = 0,
|
||||||
var totalChapters: Int = 0,
|
var totalChapters: Int = 0,
|
||||||
var latestUpdate: Int = 0,
|
var latestUpdate: Long = 0,
|
||||||
var lastRead: Int = 0,
|
var lastRead: Long = 0,
|
||||||
var lastFetch: Int = 0,
|
var lastFetch: Long = 0,
|
||||||
) : MangaImpl() {
|
) : MangaImpl() {
|
||||||
|
|
||||||
var realMangaCount = 0
|
var realMangaCount = 0
|
||||||
|
@ -99,9 +99,9 @@ data class LibraryManga(
|
||||||
this.unread = maxOf((total - readCount).roundToInt(), 0)
|
this.unread = maxOf((total - readCount).roundToInt(), 0)
|
||||||
this.totalChapters = readCount.roundToInt()
|
this.totalChapters = readCount.roundToInt()
|
||||||
this.bookmarkCount = bookmarkCount.roundToInt()
|
this.bookmarkCount = bookmarkCount.roundToInt()
|
||||||
this.latestUpdate = latestUpdate.toInt()
|
this.latestUpdate = latestUpdate
|
||||||
this.lastRead = lastRead.toInt()
|
this.lastRead = lastRead
|
||||||
this.lastFetch = lastFetch.toInt()
|
this.lastFetch = lastFetch
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue