TvSeriesLoadResponse

data class TvSeriesLoadResponse(var name: String, var url: String, var apiName: String, var type: TvType, var episodes: List<Episode>, var posterUrl: String? = null, var year: Int? = null, var plot: String? = null, var showStatus: ShowStatus? = null, var rating: Int? = null, var tags: List<String>? = 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(name: String, url: String, apiName: String, type: TvType, episodes: List<Episode>, posterUrl: String? = null, year: Int? = null, plot: String? = null, showStatus: ShowStatus? = null, rating: Int? = null, tags: List<String>? = 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(name: String, url: String, apiName: String, type: TvType, episodes: List<Episode>, posterUrl: String? = null, year: Int? = null, plot: String? = null, showStatus: ShowStatus? = null, rating: Int? = null, tags: List<String>? = 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

Link copied to clipboard
open override var actors: List<ActorData>?
Link copied to clipboard
open override var apiName: String
Link copied to clipboard
open override var backgroundPosterUrl: String?
Link copied to clipboard
open override var comingSoon: Boolean
Link copied to clipboard
open override var contentRating: String?
Link copied to clipboard
open override var duration: Int?
Link copied to clipboard
Link copied to clipboard
open override var name: String
Link copied to clipboard
open override var nextAiring: NextAiring?
Link copied to clipboard
open override var plot: String?
Link copied to clipboard
open override var posterHeaders: Map<String, String>?
Link copied to clipboard
open override var posterUrl: String?
Link copied to clipboard
open override var rating: Int?
Link copied to clipboard
open override var recommendations: List<SearchResponse>?
Link copied to clipboard
open override var seasonNames: List<SeasonData>?
Link copied to clipboard
open override var showStatus: ShowStatus?
Link copied to clipboard
open override var syncData: MutableMap<String, String>
Link copied to clipboard
open override var tags: List<String>?
Link copied to clipboard
open override var trailers: MutableList<TrailerData>
Link copied to clipboard
open override var type: TvType
Link copied to clipboard
open override var url: String
Link copied to clipboard
open override var year: Int?

Functions

Link copied to clipboard
@JvmName(name = "addActorsOnly")
fun LoadResponse.addActors(actors: List<Actor>?)
@JvmName(name = "addActorsRole")
fun LoadResponse.addActors(actors: List<Pair<Actor, ActorRole?>>?)
@JvmName(name = "addActors")
fun LoadResponse.addActors(actors: List<Pair<Actor, String?>>?)
@JvmName(name = "addActorNames")
fun LoadResponse.addActors(actors: List<String>?)
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
fun LoadResponse.addPoster(url: String?, headers: Map<String, String>? = null)
Link copied to clipboard
Link copied to clipboard
@JvmName(name = "addSeasonNamesSeasonData")
fun EpisodeResponse.addSeasonNames(names: List<SeasonData>)
@JvmName(name = "addSeasonNamesString")
fun EpisodeResponse.addSeasonNames(names: List<String>)
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
open override fun getLatestEpisodes(): Map<DubStatus, Int?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getTotalEpisodeIndex(episode: Int, season: Int): Int

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