Files
suwayomi-material-you-webui/server/src/main/kotlin/suwayomi/tachidesk/model/dataclass/ChapterDataClass.kt

45 lines
1.2 KiB
Kotlin
Raw Normal View History

2021-05-27 01:55:21 +04:30
package suwayomi.tachidesk.model.dataclass
2021-01-19 21:02:57 +03:30
/*
* Copyright (C) Contributors to the Suwayomi project
*
* This Source Code Form is subject to the terms of the Mozilla Public
2021-01-26 23:32:12 +03:30
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
2021-01-19 21:02:57 +03:30
data class ChapterDataClass(
2021-01-22 12:34:03 +03:30
val url: String,
val name: String,
2021-05-11 15:15:31 +04:30
val uploadDate: Long,
val chapterNumber: Float,
2021-01-22 12:34:03 +03:30
val scanlator: String?,
val mangaId: Int,
2021-04-02 02:51:12 +04:30
2021-05-11 15:15:31 +04:30
/** chapter is read */
val read: Boolean,
/** chapter is bookmarked */
val bookmarked: Boolean,
/** last read page, zero means not read/no data */
val lastPageRead: Int,
/** last read page, zero means not read/no data */
val lastReadAt: Long,
2021-05-11 15:15:31 +04:30
/** this chapter's index, starts with 1 */
val index: Int,
2021-04-02 02:51:12 +04:30
/** is chapter downloaded */
val downloaded: Boolean,
/** used to construct pages in the front-end */
val pageCount: Int = -1,
2021-04-02 02:51:12 +04:30
/** total chapter count, used to calculate if there's a next and prev chapter */
val chapterCount: Int? = null,
/** used to store client specific values */
val meta: Map<String, String> = emptyMap(),
2021-01-22 12:34:03 +03:30
)