Class ContentItemModel
-
- All Implemented Interfaces:
public abstract class ContentItemModelRepresents a content item
-
-
Constructor Summary
Constructors Constructor Description ContentItemModel()
-
Method Summary
Modifier and Type Method Description abstract IntegergetId()Unique id for the item, for example the hash of the itemLink abstract UnitsetId(Integer id)Unique id for the item, for example the hash of the itemLink 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 LinkDatagetItemLink()Item link, this will be used to create the sources in HeadRepository.sourceData abstract UnitsetItemLink(LinkData itemLink)Item link, this will be used to create the sources in HeadRepository.sourceData 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. StringgetItemTitle()Optional content title UnitsetItemTitle(String itemTitle)Optional content title StringgetThumbnailLink()Optional thumbnail image link UnitsetThumbnailLink(String thumbnailLink)Optional thumbnail image link StringgetCommentsLink()Optional comments web link UnitsetCommentsLink(String commentsLink)Optional comments web link -
-
Method Detail
-
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
-
getItemLink
abstract LinkData getItemLink()
Item link, this will be used to create the sources in HeadRepository.sourceData
-
setItemLink
abstract Unit setItemLink(LinkData itemLink)
Item link, this will be used to create the sources in HeadRepository.sourceData
-
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.
-
getItemTitle
String getItemTitle()
Optional content title
-
setItemTitle
Unit setItemTitle(String itemTitle)
Optional content title
-
getThumbnailLink
String getThumbnailLink()
Optional thumbnail image link
-
setThumbnailLink
Unit setThumbnailLink(String thumbnailLink)
Optional thumbnail image link
-
getCommentsLink
String getCommentsLink()
Optional comments web link
-
setCommentsLink
Unit setCommentsLink(String commentsLink)
Optional comments web link
-
-
-
-