TachiyomiSY-Plus/app/src/main/java/exh/merged/sql/models/MergedMangaReference.kt

45 lines
1.3 KiB
Kotlin

package exh.merged.sql.models
data class MergedMangaReference(
// Tag identifier, unique
var id: Long?,
// The manga where it grabs the updated manga info
var isInfoManga: Boolean,
// If false the manga will not grab chapter updates
var getChapterUpdates: Boolean,
// The mode in which the chapters are handeled, only set in the main merge reference
var chapterSortMode: Int,
// chapter priority the deduplication uses
var chapterPriority: Int,
// Set if you want it to download new chapters
var downloadChapters: Boolean,
// merged manga this reference is attached to
var mergeId: Long?,
// merged manga url this reference is attached to
val mergeUrl: String,
// manga id included in the merge this reference is attached to
var mangaId: Long?,
// manga url included in the merge this reference is attached to
val mangaUrl: String,
// source of the manga that is merged into this merge
val mangaSourceId: Long
) {
companion object {
const val CHAPTER_SORT_NONE = 0
const val CHAPTER_SORT_NO_DEDUPE = 1
const val CHAPTER_SORT_PRIORITY = 2
const val CHAPTER_SORT_MOST_CHAPTERS = 3
const val CHAPTER_SORT_HIGHEST_CHAPTER_NUMBER = 4
}
}