ContentDetails

data class ContentDetails(val contentId: String? = null, val type: String? = null, val title: String? = null, val description: String? = null, val year: Int? = null, val contentType: String? = null, val durationSeconds: Int? = null, val imageUrl: String? = null, val actors: List<String> = emptyList(), val categories: List<String> = emptyList(), val ratings: List<ContentRating> = emptyList(), val provider: String? = null, val epg: EpgInfo? = null, val seasonNumber: String? = null, val episodeNumber: Int? = null, val episodeTitle: String? = null, val seasons: List<SeasonInfo> = emptyList())

Display-ready details of one title (ContentDetails). Every field is optional: the server sends empty strings, zeros and empty lists for "not available", which are null or empty here. Show the text as plain text, never as HTML.

epg is set for programmes, seasons for series, and seasonNumber, episodeNumber and episodeTitle for episodes.

Constructors

Link copied to clipboard
constructor(contentId: String? = null, type: String? = null, title: String? = null, description: String? = null, year: Int? = null, contentType: String? = null, durationSeconds: Int? = null, imageUrl: String? = null, actors: List<String> = emptyList(), categories: List<String> = emptyList(), ratings: List<ContentRating> = emptyList(), provider: String? = null, epg: EpgInfo? = null, seasonNumber: String? = null, episodeNumber: Int? = null, episodeTitle: String? = null, seasons: List<SeasonInfo> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val contentId: String? = null
Link copied to clipboard
val contentType: String? = null
Link copied to clipboard
val description: String? = null
Link copied to clipboard
val durationSeconds: Int? = null
Link copied to clipboard
val epg: EpgInfo? = null
Link copied to clipboard
val episodeNumber: Int? = null
Link copied to clipboard
val episodeTitle: String? = null
Link copied to clipboard
val imageUrl: String? = null
Link copied to clipboard
val provider: String? = null
Link copied to clipboard
Link copied to clipboard
val seasonNumber: String? = null
Link copied to clipboard
Link copied to clipboard
val title: String? = null
Link copied to clipboard
val type: String? = null
Link copied to clipboard
val year: Int? = null