AbstractChannelEntity

AbstractChannelEntity ⇐ AbstractEntity

Kind: global abstract class
Extends: AbstractEntity
Entity:
Properties

NameTypeDescription
TABLEstring
PRIMARY_KEYObject
namestring

Channel name

logostring

Channel logo

typestring | number

Channel type code

descriptionstring

Channel description

forceBlockingboolean

Channel blocking state

genrestring

Channel genre

AbstractChannelEntity()

DAO channel entity

The channel type codes are powers of 2, which means they are represented in memory with a single bit set to 1. This allows easy composition of multiple types with the bitwise or operator | (or the usual addition operator +).

Example

($MediaConst.TV_TYPE | $MediaConst.RADIO_TYPE) represents all TV and Radio channels.
($MediaConst.RADIO_TYPE | $MediaConst.OTHER_TYPE) represents Radio and "other" channels.
($MediaConst.TV_TYPE | $MediaConst.RADIO_TYPE | $MediaConst.OTHER_TYPE) represents all possible channels.