ContentItemModel

abstract class ContentItemModel

Represents a content item

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open var commentsLink: String?

Optional comments web link

Link copied to clipboard
abstract var id: Int

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

Link copied to clipboard
abstract var isMedia: Boolean

Limit the interactions the user can use with this content.

Link copied to clipboard
abstract var itemLink: LinkData

Item link, this will be used to create the sources in HeadRepository.sourceData

Link copied to clipboard
open var itemTitle: String?

Optional content title

Link copied to clipboard
abstract var number: Double

Item number, this will be used for sorting and sometimes for display purposes

Link copied to clipboard

Optional thumbnail image link

Link copied to clipboard
abstract var type: String

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)