RecentModel

abstract class RecentModel

Represents a recent released item.

It includes data about the content and the related info

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Notify(val module: String, val time: Long, val model: RecentModel)

Represents a notified recent item

Properties

Link copied to clipboard
abstract var category: Category

Content category

Link copied to clipboard

Optional thumbnail image for this item content

Link copied to clipboard
abstract var id: Int

Unique content item ID

Link copied to clipboard
abstract var infoId: Int

Unique id for the info item, for example the hash of the infoLink

Link copied to clipboard
open var infoImage: String?

Optional cover image for this item

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 which one to use

Link copied to clipboard
abstract var infoLink: String

Item info link

Link copied to clipboard
abstract var isMedia: Boolean

Limit the interactions the user can use with this content.

Link copied to clipboard
abstract var link: String

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

Link copied to clipboard
abstract var name: String

Item name

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
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)