SyncUtil

Types

Link copied to clipboard
data class Anilist(val id: Int?, val malId: Int?, val type: String?, val title: String?, val url: String?, val image: String?, val category: String?, val hentai: Boolean?, val createdAt: String?, val updatedAt: String?, val deletedAt: String?)
Link copied to clipboard
data class Mal(val id: Int?, val type: String?, val title: String?, val url: String?, val image: String?, val category: String?, val hentai: Boolean?, val createdAt: String?, val updatedAt: String?, val deletedAt: String?)
Link copied to clipboard
data class MalSyncPage(val identifier: String?, val type: String?, val page: String?, val title: String?, val url: String?, val image: String?, val hentai: Boolean?, val sticky: Boolean?, val active: Boolean?, val actor: String?, val malId: Int?, val aniId: Int?, val createdAt: String?, val updatedAt: String?, val deletedAt: String?, val mal: SyncUtil.Mal?, val anilist: SyncUtil.Anilist?, val malUrl: String?)
Link copied to clipboard
data class ProviderPage(val url: String?)
Link copied to clipboard
data class SyncPage(val pages: SyncUtil.SyncPages?)
Link copied to clipboard
data class SyncPages(val nineanime: Map<String, SyncUtil.ProviderPage> = emptyMap(), val gogoanime: Map<String, SyncUtil.ProviderPage> = emptyMap(), val twistmoe: Map<String, SyncUtil.ProviderPage> = emptyMap())

Functions

Link copied to clipboard
suspend fun getIdsFromUrl(url: String?): Pair<String?, String?>?
Link copied to clipboard
suspend fun getUrlsFromId(id: String, type: String = "anilist"): List<String>