AnimeSource

interface AnimeSource(source)

A basic interface for creating a source. It could be an online source, a local source, etc...

Inheritors

Properties

Link copied to clipboard
abstract val id: Long

Id for the source. Must be unique.

Link copied to clipboard
abstract val name: String

Name of the source.

Functions

Link copied to clipboard
abstract suspend fun getAnimeDetails(anime: SAnime): SAnime

Get the updated details for an anime.

Link copied to clipboard
abstract suspend fun getEpisodeList(anime: SAnime): List<SEpisode>

Get all the available episodes for an anime.

Link copied to clipboard
abstract suspend fun getHosterList(episode: SEpisode): List<Hoster>

Get the list of hoster for an episode.

Link copied to clipboard
abstract suspend fun getSeasonList(anime: SAnime): List<SAnime>

Get all the available seasons for an anime

Link copied to clipboard
abstract suspend fun getVideoList(hoster: Hoster): List<Video>

Get the list of videos for a hoster.