Title here
Summary here
AbstractEntity
Kind: global abstract class
Extends: AbstractEntity
Entity:
Properties
Name | Type | Description |
---|---|---|
TABLE | string | |
PRIMARY_KEY | Object | |
name | string | Channel name |
logo | string | Channel logo |
type | string | number | Channel type code |
description | string | Channel description |
forceBlocking | boolean | Channel blocking state |
genre | string | Channel genre |
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.