Add chapter url opening to browser

This commit is contained in:
Syer10
2023-02-12 17:52:36 -05:00
parent 372088c005
commit 577f6827db
7 changed files with 56 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ import kotlinx.serialization.Serializable
@Serializable
@Immutable
data class Chapter(
val id: Long = -1, // todo remove default
val id: Long,
val url: String,
val name: String,
val uploadDate: Long,
@@ -24,6 +24,7 @@ data class Chapter(
val lastPageRead: Int,
val index: Int,
val fetchedAt: Long,
val realUrl: String?,
val chapterCount: Int?,
val pageCount: Int?,
val lastReadAt: Int?,

View File

@@ -32,6 +32,7 @@ data class Manga(
val status: MangaStatus,
val inLibrary: Boolean,
val source: Source?,
val updateStrategy: UpdateStrategy,
val freshData: Boolean,
val meta: MangaMeta,
val realUrl: String?,
@@ -67,3 +68,10 @@ enum class MangaStatus(@Transient val res: StringResource) {
CANCELLED(MR.strings.status_cancelled),
ON_HIATUS(MR.strings.status_on_hiatus);
}
@Serializable
@Stable
enum class UpdateStrategy {
ALWAYS_UPDATE,
ONLY_FETCH_ONCE
}