mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-03 02:44:34 -05:00
* Add meta info for clients to store custom data in * PR comments * Really update migration
45 lines
1.2 KiB
Kotlin
45 lines
1.2 KiB
Kotlin
package suwayomi.tachidesk.model.dataclass
|
|
|
|
/*
|
|
* Copyright (C) Contributors to the Suwayomi project
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* 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/. */
|
|
|
|
data class ChapterDataClass(
|
|
val url: String,
|
|
val name: String,
|
|
val uploadDate: Long,
|
|
val chapterNumber: Float,
|
|
val scanlator: String?,
|
|
val mangaId: Int,
|
|
|
|
/** 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,
|
|
|
|
/** this chapter's index, starts with 1 */
|
|
val index: Int,
|
|
|
|
/** is chapter downloaded */
|
|
val downloaded: Boolean,
|
|
|
|
/** used to construct pages in the front-end */
|
|
val pageCount: Int = -1,
|
|
|
|
/** 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(),
|
|
)
|