|
@@ -7,6 +7,7 @@ import eu.kanade.tachiyomi.data.database.models.Chapter
|
|
import eu.kanade.tachiyomi.data.database.models.Manga
|
|
import eu.kanade.tachiyomi.data.database.models.Manga
|
|
import eu.kanade.tachiyomi.data.database.models.MangaChapter
|
|
import eu.kanade.tachiyomi.data.database.models.MangaChapter
|
|
import eu.kanade.tachiyomi.data.database.resolvers.ChapterBackupPutResolver
|
|
import eu.kanade.tachiyomi.data.database.resolvers.ChapterBackupPutResolver
|
|
|
|
+import eu.kanade.tachiyomi.data.database.resolvers.ChapterKnownBackupPutResolver
|
|
import eu.kanade.tachiyomi.data.database.resolvers.ChapterProgressPutResolver
|
|
import eu.kanade.tachiyomi.data.database.resolvers.ChapterProgressPutResolver
|
|
import eu.kanade.tachiyomi.data.database.resolvers.ChapterSourceOrderPutResolver
|
|
import eu.kanade.tachiyomi.data.database.resolvers.ChapterSourceOrderPutResolver
|
|
import eu.kanade.tachiyomi.data.database.resolvers.MangaChapterGetResolver
|
|
import eu.kanade.tachiyomi.data.database.resolvers.MangaChapterGetResolver
|
|
@@ -84,6 +85,11 @@ interface ChapterQueries : DbProvider {
|
|
.withPutResolver(ChapterBackupPutResolver())
|
|
.withPutResolver(ChapterBackupPutResolver())
|
|
.prepare()
|
|
.prepare()
|
|
|
|
|
|
|
|
+ fun updateKnownChaptersBackup(chapters: List<Chapter>) = db.put()
|
|
|
|
+ .objects(chapters)
|
|
|
|
+ .withPutResolver(ChapterKnownBackupPutResolver())
|
|
|
|
+ .prepare()
|
|
|
|
+
|
|
fun updateChapterProgress(chapter: Chapter) = db.put()
|
|
fun updateChapterProgress(chapter: Chapter) = db.put()
|
|
.`object`(chapter)
|
|
.`object`(chapter)
|
|
.withPutResolver(ChapterProgressPutResolver())
|
|
.withPutResolver(ChapterProgressPutResolver())
|