MALApi

Constructors

Link copied to clipboard
constructor(index: Int)

Types

Link copied to clipboard
data class AlternativeTitles(val synonyms: List<String>, val en: String, val ja: String)
Link copied to clipboard
data class Broadcast(val dayOfTheWeek: String?, val startTime: String?)
Link copied to clipboard
object Companion
Link copied to clipboard
data class Data(val node: MALApi.Node, val listStatus: MALApi.ListStatus?)
Link copied to clipboard
data class Genres(val id: Int, val name: String)
Link copied to clipboard
data class ListStatus(val status: String?, val score: Int, val numEpisodesWatched: Int, val isRewatching: Boolean, val updatedAt: String)
Link copied to clipboard
data class MainPicture(val medium: String, val large: String)
Link copied to clipboard
data class MalAnime(val id: Int?, val title: String?, val mainPicture: MALApi.MainPicture?, val alternativeTitles: MALApi.AlternativeTitles?, val startDate: String?, val endDate: String?, val synopsis: String?, val mean: Double?, val rank: Int?, val popularity: Int?, val numListUsers: Int?, val numScoringUsers: Int?, val nsfw: String?, val createdAt: String?, val updatedAt: String?, val mediaType: String?, val status: String?, val genres: ArrayList<MALApi.Genres>?, val myListStatus: MALApi.MyListStatus?, val numEpisodes: Int?, val startSeason: MALApi.StartSeason?, val broadcast: MALApi.Broadcast?, val source: String?, val averageEpisodeDuration: Int?, val rating: String?, val pictures: ArrayList<MALApi.MainPicture>?, val background: String?, val relatedAnime: ArrayList<MALApi.RelatedAnime>?, val relatedManga: ArrayList<String>?, val recommendations: ArrayList<MALApi.Recommendations>?, val studios: ArrayList<MALApi.Studios>?, val statistics: MALApi.Statistics?)
Link copied to clipboard
data class MalDatum(val node: MALApi.MalNode, val listStatus: MALApi.MalStatus)
Link copied to clipboard
data class MalList(val data: List<MALApi.Data>, val paging: MALApi.Paging)
Link copied to clipboard
data class MalMainPicture(val large: String?, val medium: String?)
Link copied to clipboard
data class MalNode(val id: Int, val title: String)
Link copied to clipboard
data class MalRoot(val data: List<MALApi.MalDatum>)
Link copied to clipboard
data class MalSearch(val data: List<MALApi.MalSearchNode>)
Link copied to clipboard
data class MalSearchNode(val node: MALApi.Node)
Link copied to clipboard
data class MalStatus(val status: String, val score: Int, val numEpisodesWatched: Int, val isRewatching: Boolean, val updatedAt: String)
Link copied to clipboard
data class MalTitleHolder(val status: MALApi.MalStatus, val id: Int, val name: String)
Link copied to clipboard
data class MalUser(val id: Int, val name: String, val location: String, val joinedAt: String, val picture: String?)
Link copied to clipboard
data class MyListStatus(val status: String? = null, val score: Int? = null, val numEpisodesWatched: Int? = null, val isRewatching: Boolean? = null, val updatedAt: String? = null)
Link copied to clipboard
data class Node(val id: Int, val title: String, val mainPicture: MALApi.MainPicture?, val alternativeTitles: MALApi.AlternativeTitles?, val mediaType: String?, val numEpisodes: Int?, val status: String?, val startDate: String?, val endDate: String?, val averageEpisodeDuration: Int?, val synopsis: String?, val mean: Double?, val genres: List<MALApi.Genres>?, val rank: Int?, val popularity: Int?, val numListUsers: Int?, val numFavorites: Int?, val numScoringUsers: Int?, val startSeason: MALApi.StartSeason?, val broadcast: MALApi.Broadcast?, val nsfw: String?, val createdAt: String?, val updatedAt: String?)
Link copied to clipboard
data class Paging(val next: String?)
Link copied to clipboard
data class Recommendations(val node: MALApi.Node? = null, val numRecommendations: Int? = null)
Link copied to clipboard
data class RelatedAnime(val node: MALApi.Node? = null, val relationType: String? = null, val relationTypeFormatted: String? = null)
Link copied to clipboard
data class ResponseToken(val tokenType: String, val expiresIn: Int, val accessToken: String, val refreshToken: String)
Link copied to clipboard
data class SmallMalAnime(val id: Int, val title: String?, val numEpisodes: Int, val myListStatus: MALApi.MalStatus?, val mainPicture: MALApi.MalMainPicture?)
Link copied to clipboard
data class StartSeason(val year: Int, val season: String)
Link copied to clipboard
data class Statistics(val status: MALApi.Status? = null, val numListUsers: Int? = null)
Link copied to clipboard
data class Status(val watching: String? = null, val completed: String? = null, val onHold: String? = null, val dropped: String? = null, val planToWatch: String? = null)
Link copied to clipboard
data class Studios(val id: Int? = null, val name: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
open override val createAccountUrl: String
Link copied to clipboard
open override val icon: <Error class: unknown class>
Link copied to clipboard
open override val idPrefix: String
Link copied to clipboard
open override val key: String
Link copied to clipboard
open override var mainUrl: String
Link copied to clipboard
open override var name: String
Link copied to clipboard
open override val redirectUrl: String
Link copied to clipboard
open override var requireLibraryRefresh: Boolean

Set this to true if the user updates something on the list like watch status or score

Link copied to clipboard
open override val requiresLogin: Boolean = false
Link copied to clipboard
open override val supportDeviceAuth: Boolean = false
Link copied to clipboard
open override val syncIdName: SyncIdName

Allows certain providers to open pages from library links.

Functions

Link copied to clipboard
open override fun authenticate(activity: <Error class: unknown class>?)
Link copied to clipboard
fun changeAccount(index: Int)
Link copied to clipboard
Link copied to clipboard
open suspend fun getDevicePin(): OAuth2API.PinAuthData?
Link copied to clipboard
open override fun getIdFromUrl(url: String): String
Link copied to clipboard
open suspend override fun getPersonalLibrary(): SyncAPI.LibraryMetadata
Link copied to clipboard
open suspend override fun getResult(id: String): SyncAPI.SyncResult?
Link copied to clipboard
open suspend override fun getStatus(id: String): SyncAPI.SyncStatus?
Link copied to clipboard
open suspend fun handleDeviceAuth(pinAuthData: OAuth2API.PinAuthData): Boolean
Link copied to clipboard
open suspend override fun handleRedirect(url: String): Boolean
Link copied to clipboard
fun init()
Link copied to clipboard
open override fun loginInfo(): AuthAPI.LoginInfo?
Link copied to clipboard
open override fun logOut()
Link copied to clipboard
open suspend override fun score(id: String, status: SyncAPI.AbstractSyncStatus): Boolean

-1 -> None 0 -> Watching 1 -> Completed 2 -> OnHold 3 -> Dropped 4 -> PlanToWatch 5 -> ReWatching

Link copied to clipboard
open suspend override fun search(name: String): List<SyncAPI.SyncSearchResult>
Link copied to clipboard
suspend fun setAllMalData()