Class RecentModel
-
- All Implemented Interfaces:
public abstract class RecentModelRepresents a recent released item.
It includes data about the content and the related info
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRecentModel.NotifyRepresents a notified recent item
-
Field Summary
Fields Modifier and Type Field Description private Integeridprivate IntegerinfoIdprivate Stringnameprivate Stringtypeprivate Doublenumberprivate Stringlinkprivate StringinfoLinkprivate Categorycategoryprivate BooleanisMediaprivate StringinfoImageprivate StringcontentThumbnailprivate LayoutTypeinfoLayoutType
-
Constructor Summary
Constructors Constructor Description RecentModel()
-
Method Summary
Modifier and Type Method Description abstract IntegergetId()Unique content item ID abstract UnitsetId(Integer id)Unique content item ID abstract IntegergetInfoId()Unique id for the info item, for example the hash of the infoLink abstract UnitsetInfoId(Integer infoId)Unique id for the info item, for example the hash of the infoLink abstract StringgetName()Item name abstract UnitsetName(String name)Item name abstract StringgetType()Item type, you can include a %s so the app include the number (e.g. abstract UnitsetType(String type)Item type, you can include a %s so the app include the number (e.g. abstract DoublegetNumber()Item number, this will be used for sorting and sometimes for display purposes abstract UnitsetNumber(Double number)Item number, this will be used for sorting and sometimes for display purposes abstract StringgetLink()Item link, this will be used to create the sources in HeadRepository.sourceData abstract UnitsetLink(String link)Item link, this will be used to create the sources in HeadRepository.sourceData abstract StringgetInfoLink()Item info link abstract UnitsetInfoLink(String infoLink)Item info link abstract CategorygetCategory()Content category abstract UnitsetCategory(Category category)Content category abstract BooleanisMedia()Limit the interactions the user can use with this content. abstract UnitsetMedia(Boolean isMedia)Limit the interactions the user can use with this content. StringgetInfoImage()Optional cover image for this item UnitsetInfoImage(String infoImage)Optional cover image for this item StringgetContentThumbnail()Optional thumbnail image for this item content UnitsetContentThumbnail(String contentThumbnail)Optional thumbnail image for this item content LayoutTypegetInfoLayoutType()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 which one to use UnitsetInfoLayoutType(LayoutType infoLayoutType)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 which one to use -
-
Method Detail
-
getInfoId
abstract Integer getInfoId()
Unique id for the info item, for example the hash of the infoLink
-
setInfoId
abstract Unit setInfoId(Integer infoId)
Unique id for the info item, for example the hash of the infoLink
-
getType
abstract String getType()
Item type, you can include a %s so the app include the number (e.g. "Chapter %s" with number 5.2 would be shown in the app as Chapter 5.2)
-
setType
abstract Unit setType(String type)
Item type, you can include a %s so the app include the number (e.g. "Chapter %s" with number 5.2 would be shown in the app as Chapter 5.2)
-
getNumber
abstract Double getNumber()
Item number, this will be used for sorting and sometimes for display purposes
-
setNumber
abstract Unit setNumber(Double number)
Item number, this will be used for sorting and sometimes for display purposes
-
getLink
abstract String getLink()
Item link, this will be used to create the sources in HeadRepository.sourceData
-
setLink
abstract Unit setLink(String link)
Item link, this will be used to create the sources in HeadRepository.sourceData
-
getInfoLink
abstract String getInfoLink()
Item info link
-
setInfoLink
abstract Unit setInfoLink(String infoLink)
Item info link
-
getCategory
abstract Category getCategory()
Content category
-
setCategory
abstract Unit setCategory(Category category)
Content category
-
isMedia
abstract Boolean isMedia()
Limit the interactions the user can use with this content.
If the item is not media, the comments and import/export features will be disabled.
-
setMedia
abstract Unit setMedia(Boolean isMedia)
Limit the interactions the user can use with this content.
If the item is not media, the comments and import/export features will be disabled.
-
getInfoImage
String getInfoImage()
Optional cover image for this item
-
setInfoImage
Unit setInfoImage(String infoImage)
Optional cover image for this item
-
getContentThumbnail
String getContentThumbnail()
Optional thumbnail image for this item content
-
setContentThumbnail
Unit setContentThumbnail(String contentThumbnail)
Optional thumbnail image for this item content
-
getInfoLayoutType
LayoutType getInfoLayoutType()
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 which one to use
-
setInfoLayoutType
Unit setInfoLayoutType(LayoutType infoLayoutType)
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 which one to use
-
-
-
-