Episode

data class Episode(var data: String, var name: String? = null, var season: Int? = null, var episode: Int? = null, var posterUrl: String? = null, var rating: Int? = null, var description: String? = null, var date: Long? = null, var runTime: Int? = null)(source)

Episode information that will be passed to LoadLinks function & showed on UI

See also

Constructors

Link copied to clipboard
constructor(data: String, name: String? = null, season: Int? = null, episode: Int? = null, posterUrl: String? = null, rating: Int? = null, description: String? = null, date: Long? = null)

Secondary constructor for backwards compatibility without runTime. TODO Remove this constructor after there is a new stable release and extensions are updated to support runTime.

constructor(data: String, name: String? = null, season: Int? = null, episode: Int? = null, posterUrl: String? = null, rating: Int? = null, description: String? = null, date: Long? = null, runTime: Int? = null)

Properties

Link copied to clipboard

string used as main LoadLinks fun parameter.

Link copied to clipboard
var date: Long?

Episode air date, see addDate.

Link copied to clipboard
Link copied to clipboard
var episode: Int?

Episode number.

Link copied to clipboard
var name: String?

Name of the Episode.

Link copied to clipboard

URL of Episode's poster image.

Link copied to clipboard
var rating: Int?

Episode rating.

Link copied to clipboard
var runTime: Int?

Episode runtime in seconds.

Link copied to clipboard
var season: Int?

Season number.

Functions

Link copied to clipboard
fun Episode.addDate(date: Date?)
fun Episode.addDate(date: String?, format: String = "yyyy-MM-dd")