MALApi

class MALApi(index: Int) : AccountManager, SyncAPI

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 day_of_the_week: String?, val start_time: String?)
Link copied to clipboard
object Companion
Link copied to clipboard
data class Data(val node: MALApi.Node, val list_status: 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 num_episodes_watched: Int, val is_rewatching: Boolean, val updated_at: 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 list_status: 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 num_episodes_watched: Int, val is_rewatching: Boolean, val updated_at: 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 joined_at: 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 main_picture: MALApi.MainPicture?, val alternative_titles: MALApi.AlternativeTitles?, val media_type: String?, val num_episodes: Int?, val status: String?, val start_date: String?, val end_date: String?, val average_episode_duration: Int?, val synopsis: String?, val mean: Double?, val genres: List<MALApi.Genres>?, val rank: Int?, val popularity: Int?, val num_list_users: Int?, val num_favorites: Int?, val num_scoring_users: Int?, val start_season: MALApi.StartSeason?, val broadcast: MALApi.Broadcast?, val nsfw: String?, val created_at: String?, val updated_at: 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 token_type: String, val expires_in: Int, val access_token: String, val refresh_token: String)
Link copied to clipboard
data class SmallMalAnime(val id: Int, val title: String?, val num_episodes: Int, val my_list_status: MALApi.MalStatus?, val main_picture: 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: Int
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 syncIdName: SyncIdName

Allows certain providers to open pages from library links.

Functions

Link copied to clipboard
open override fun authenticate(activity: FragmentActivity?)
Link copied to clipboard
fun changeAccount(index: Int)
Link copied to clipboard
fun convertJapanTimeToTimeRemaining(date: String, endDate: String? = null): String?
Link copied to clipboard
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 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()