backend preference wrapper

This commit is contained in:
rebelonion 2024-01-30 00:39:12 -06:00
parent eb5b83564f
commit 8020b32541
66 changed files with 482 additions and 458 deletions

View file

@ -0,0 +1,19 @@
package ani.dantotsu.settings.saving.internal
import kotlin.reflect.KClass
data class Pref(
val prefLocation: Location,
val type: KClass<*>
)
enum class Location(val location: String) {
General("ani.dantotsu.general"),
Anime("ani.dantotsu.anime"),
Manga("ani.dantotsu.manga"),
Player("ani.dantotsu.player"),
Reader("ani.dantotsu.reader"),
Irrelevant("ani.dantotsu.irrelevant"),
AnimeDownloads("animeDownloads"), //different for legacy reasons
Protected("ani.dantotsu.protected")
}