Anime Load Response
data class AnimeLoadResponse(var engName: String? = null, var japName: String? = null, var name: String, var url: String, var apiName: String, var type: TvType, var posterUrl: String? = null, var year: Int? = null, var episodes: MutableMap<DubStatus, List<Episode>> = mutableMapOf(), var showStatus: ShowStatus? = null, var plot: String? = null, var tags: List<String>? = null, var synonyms: List<String>? = null, var rating: Int? = null, var duration: Int? = null, var trailers: MutableList<TrailerData> = mutableListOf(), var recommendations: List<SearchResponse>? = null, var actors: List<ActorData>? = null, var comingSoon: Boolean = false, var syncData: MutableMap<String, String> = mutableMapOf(), var posterHeaders: Map<String, String>? = null, var nextAiring: NextAiring? = null, var seasonNames: List<SeasonData>? = null, var backgroundPosterUrl: String? = null, var contentRating: String? = null) : LoadResponse, EpisodeResponse(source)
Constructors
Link copied to clipboard
constructor(engName: String? = null, japName: String? = null, name: String, url: String, apiName: String, type: TvType, posterUrl: String? = null, year: Int? = null, episodes: MutableMap<DubStatus, List<Episode>> = mutableMapOf(), showStatus: ShowStatus? = null, plot: String? = null, tags: List<String>? = null, synonyms: List<String>? = null, rating: Int? = null, duration: Int? = null, trailers: MutableList<TrailerData> = mutableListOf(), recommendations: List<SearchResponse>? = null, actors: List<ActorData>? = null, comingSoon: Boolean = false, syncData: MutableMap<String, String> = mutableMapOf(), posterHeaders: Map<String, String>? = null, nextAiring: NextAiring? = null, seasonNames: List<SeasonData>? = null, backgroundPosterUrl: String? = null)
Secondary constructor for backwards compatibility without contentRating. Remove this constructor after there is a new stable release and extensions are updated to support contentRating.
constructor(engName: String? = null, japName: String? = null, name: String, url: String, apiName: String, type: TvType, posterUrl: String? = null, year: Int? = null, episodes: MutableMap<DubStatus, List<Episode>> = mutableMapOf(), showStatus: ShowStatus? = null, plot: String? = null, tags: List<String>? = null, synonyms: List<String>? = null, rating: Int? = null, duration: Int? = null, trailers: MutableList<TrailerData> = mutableListOf(), recommendations: List<SearchResponse>? = null, actors: List<ActorData>? = null, comingSoon: Boolean = false, syncData: MutableMap<String, String> = mutableMapOf(), posterHeaders: Map<String, String>? = null, nextAiring: NextAiring? = null, seasonNames: List<SeasonData>? = null, backgroundPosterUrl: String? = null, contentRating: String? = null)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
If episodes already exist appends the list.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun LoadResponse.addTrailer(trailerUrl: String?, referer: String? = null, addRaw: Boolean = false)
better to call addTrailer with mutible trailers directly instead of calling this multiple times
suspend fun LoadResponse.addTrailer(trailerUrls: List<String>?, referer: String? = null, addRaw: Boolean = false)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Count all episodes in all previous seasons up until this episode to get a total count. Example: Season 1: 10 episodes. Season 2: 6 episodes.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard