AbstractChannel
AbstractChannel ⇐ AbstractSource
Kind: global abstract class
Extends: AbstractSource
Model:
Properties
Name | Type | Description |
---|---|---|
isChannel | boolean | flag (always true) |
number | number | Channel number |
type | number | Channel type code |
description | String | Channel description |
resolution | String | Channel logo resolution |
is3D | boolean | Flag which is enabled for 3D mode |
genres | Array.<AbstractGenre> | List holding various channel genres |
isUserBlocked | boolean | Flag which is set to true if user blocks channel |
isBlocked | boolean | Flag which is set to true if the channel is blocked |
isBlockedReadonly | boolean | An internal flag (always true) |
imageType | ImageConst | The channel logo ratio type (default is ratio 2:1) |
hasAccess | boolean | Flag which is set to true if user has access to this channel |
hasStream | boolean | Flag which is set to true if user can watch the associated channel stream |
isSubscribed | boolean | Flag which is set to true if user has subscribed to this channel |
isBarkerChannel | boolean | Flag which is set to true if this channel is defined as a Barker one |
replayCatalogId | String | Field holding the replay catalog identifier |
npvrId | String | Field holding the nPVR identifier |
hasPvr | boolean | Flag which is set to true if this channel has got any PVR mode |
hasNPvr | boolean | Flag which is set to true if this channel has got any network PVR mode |
hasStartOver | boolean | Flag which is set to true if this channel has got any Start-Over mode |
isAdult | boolean | Flag which is set to true if this channel has been set to an Adult only mode |
applicationId | String | Field holding the application identifier |
isObservable | boolean | Internal flag always set to true |
AbstractChannel()
Base class describing a TV or radio channel.
The channel type codes are power of 2 numbers (meaning that they are represented in memory with their least significant 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.