Content Details
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())