InfoModel

abstract class InfoModel

Represents the info of a directory item

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class ProfileData(val name: String? = null, val link: String? = null, val image: String? = null, val subText: String? = null) : Parcelable

Represents a profile data

Link copied to clipboard
abstract class Related

Represents a related item

Link copied to clipboard
data class StateData(val state: InfoModel.StateData.Type, val emissionDay: InfoModel.StateData.EmissionDay? = null)

Represents the item state

Link copied to clipboard
data class Tag(val name: String, val image: String? = null, val payload: String? = null, val clickAction: ClickAction? = null)

Represents a tag

Properties

Link copied to clipboard
abstract var category: Category

Content category

Link copied to clipboard
abstract var contentData: ContentData?

Data representing the content of this item

Link copied to clipboard
open var coverImage: String?

Optional cover image for this item

Link copied to clipboard
open var description: String?

Optional description for the item

Link copied to clipboard

Optional extra sections

Link copied to clipboard

Optional item genres

Link copied to clipboard
abstract var id: Int

Unique id for the item, for example the hash of the link

Link copied to clipboard

Layout type to be used when loading the info, LayoutType.SINGLE for single items like Category.MOVIE, or LayoutType.MULTIPLE for multiple items like Category.SERIES, by default the system uses the category to decide wich one to use

Link copied to clipboard
abstract var link: String

Item info link

Link copied to clipboard
abstract var name: String

Item name

Link copied to clipboard

Optional profile data to be shown

Link copied to clipboard
open var ranking: RankingData?

Optional ranking data

Link copied to clipboard

Optional related items

Link copied to clipboard

Optional item state

Link copied to clipboard
open var tags: List<InfoModel.Tag>?

Optional item tags

Link copied to clipboard
open var type: String?

Optional item type