Class InfoModel
-
- All Implemented Interfaces:
public abstract class InfoModelRepresents the info of a directory item
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classInfoModel.TagRepresents a tag
public abstract classInfoModel.RelatedRepresents a related item
public final classInfoModel.ProfileDataRepresents a profile data
public final classInfoModel.StateDataRepresents the item state
-
Field Summary
Fields Modifier and Type Field Description private Integeridprivate Stringnameprivate Stringlinkprivate Categorycategoryprivate ContentDatacontentDataprivate LayoutTypelayoutTypeprivate StringcoverImageprivate InfoModel.ProfileDataprofileDataprivate Stringdescriptionprivate Stringtypeprivate InfoModel.StateDatastateprivate List<InfoModel.Tag>genresprivate List<InfoModel.Tag>tagsprivate List<InfoModel.Related>relatedprivate RankingDatarankingprivate List<ExtraSection>extraSections
-
Constructor Summary
Constructors Constructor Description InfoModel()
-
Method Summary
Modifier and Type Method Description abstract IntegergetId()Unique id for the item, for example the hash of the link abstract UnitsetId(Integer id)Unique id for the item, for example the hash of the link abstract StringgetName()Item name abstract UnitsetName(String name)Item name abstract StringgetLink()Item info link abstract UnitsetLink(String link)Item info link abstract CategorygetCategory()Content category abstract UnitsetCategory(Category category)Content category abstract ContentDatagetContentData()Data representing the content of this item abstract UnitsetContentData(ContentData contentData)Data representing the content of this item LayoutTypegetLayoutType()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 UnitsetLayoutType(LayoutType layoutType)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 StringgetCoverImage()Optional cover image for this item UnitsetCoverImage(String coverImage)Optional cover image for this item InfoModel.ProfileDatagetProfileData()Optional profile data to be shown UnitsetProfileData(InfoModel.ProfileData profileData)Optional profile data to be shown StringgetDescription()Optional description for the item UnitsetDescription(String description)Optional description for the item StringgetType()Optional item type UnitsetType(String type)Optional item type InfoModel.StateDatagetState()Optional item state UnitsetState(InfoModel.StateData state)Optional item state List<InfoModel.Tag>getGenres()Optional item genres UnitsetGenres(List<InfoModel.Tag> genres)Optional item genres List<InfoModel.Tag>getTags()Optional item tags UnitsetTags(List<InfoModel.Tag> tags)Optional item tags List<InfoModel.Related>getRelated()Optional related items UnitsetRelated(List<InfoModel.Related> related)Optional related items RankingDatagetRanking()Optional ranking data UnitsetRanking(RankingData ranking)Optional ranking data List<ExtraSection>getExtraSections()Optional extra sections UnitsetExtraSections(List<ExtraSection> extraSections)Optional extra sections -
-
Method Detail
-
getCategory
abstract Category getCategory()
Content category
-
setCategory
abstract Unit setCategory(Category category)
Content category
-
getContentData
abstract ContentData getContentData()
Data representing the content of this item
-
setContentData
abstract Unit setContentData(ContentData contentData)
Data representing the content of this item
-
getLayoutType
LayoutType getLayoutType()
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
-
setLayoutType
Unit setLayoutType(LayoutType layoutType)
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
-
getCoverImage
String getCoverImage()
Optional cover image for this item
-
setCoverImage
Unit setCoverImage(String coverImage)
Optional cover image for this item
-
getProfileData
InfoModel.ProfileData getProfileData()
Optional profile data to be shown
-
setProfileData
Unit setProfileData(InfoModel.ProfileData profileData)
Optional profile data to be shown
-
getDescription
String getDescription()
Optional description for the item
-
setDescription
Unit setDescription(String description)
Optional description for the item
-
getState
InfoModel.StateData getState()
Optional item state
-
setState
Unit setState(InfoModel.StateData state)
Optional item state
-
getGenres
List<InfoModel.Tag> getGenres()
Optional item genres
-
setGenres
Unit setGenres(List<InfoModel.Tag> genres)
Optional item genres
-
getTags
List<InfoModel.Tag> getTags()
Optional item tags
-
setTags
Unit setTags(List<InfoModel.Tag> tags)
Optional item tags
-
getRelated
List<InfoModel.Related> getRelated()
Optional related items
-
setRelated
Unit setRelated(List<InfoModel.Related> related)
Optional related items
-
getRanking
RankingData getRanking()
Optional ranking data
-
setRanking
Unit setRanking(RankingData ranking)
Optional ranking data
-
getExtraSections
List<ExtraSection> getExtraSections()
Optional extra sections
-
setExtraSections
Unit setExtraSections(List<ExtraSection> extraSections)
Optional extra sections
-
-
-
-