From c6f42599fee9964cf058328757713b8960c345cf Mon Sep 17 00:00:00 2001 From: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> Date: Sun, 25 Sep 2022 11:14:34 -0300 Subject: [PATCH] Add support to update strategy. (#6) --- .../main/java/eu/kanade/tachiyomi/source/model/SManga.kt | 2 ++ .../java/eu/kanade/tachiyomi/source/model/UpdateStrategy.kt | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 library/src/main/java/eu/kanade/tachiyomi/source/model/UpdateStrategy.kt diff --git a/library/src/main/java/eu/kanade/tachiyomi/source/model/SManga.kt b/library/src/main/java/eu/kanade/tachiyomi/source/model/SManga.kt index 996a5b9..3ecb11e 100644 --- a/library/src/main/java/eu/kanade/tachiyomi/source/model/SManga.kt +++ b/library/src/main/java/eu/kanade/tachiyomi/source/model/SManga.kt @@ -18,6 +18,8 @@ interface SManga { var thumbnail_url: String? + var update_strategy: UpdateStrategy + var initialized: Boolean companion object { diff --git a/library/src/main/java/eu/kanade/tachiyomi/source/model/UpdateStrategy.kt b/library/src/main/java/eu/kanade/tachiyomi/source/model/UpdateStrategy.kt new file mode 100644 index 0000000..aa1d701 --- /dev/null +++ b/library/src/main/java/eu/kanade/tachiyomi/source/model/UpdateStrategy.kt @@ -0,0 +1,6 @@ +package eu.kanade.tachiyomi.source.model + +enum class UpdateStrategy { + ALWAYS_UPDATE, + ONLY_FETCH_ONCE +}