AbstractChannel

AbstractChannel ⇐ AbstractSource

Kind: global abstract class
Extends: AbstractSource
Model:
Properties

NameTypeDescription
isChannelboolean

flag (always true)

numbernumber

Channel number

typenumber

Channel type code

descriptionString

Channel description

resolutionString

Channel logo resolution

is3Dboolean

Flag which is enabled for 3D mode

genresArray.<AbstractGenre>

List holding various channel genres

isUserBlockedboolean

Flag which is set to true if user blocks channel

isBlockedboolean

Flag which is set to true if the channel is blocked

isBlockedReadonlyboolean

An internal flag (always true)

imageTypeImageConst

The channel logo ratio type (default is ratio 2:1)

hasAccessboolean

Flag which is set to true if user has access to this channel

hasStreamboolean

Flag which is set to true if user can watch the associated channel stream

isSubscribedboolean

Flag which is set to true if user has subscribed to this channel

isBarkerChannelboolean

Flag which is set to true if this channel is defined as a Barker one

replayCatalogIdString

Field holding the replay catalog identifier

npvrIdString

Field holding the nPVR identifier

hasPvrboolean

Flag which is set to true if this channel has got any PVR mode

hasNPvrboolean

Flag which is set to true if this channel has got any network PVR mode

hasStartOverboolean

Flag which is set to true if this channel has got any Start-Over mode

isAdultboolean

Flag which is set to true if this channel has been set to an Adult only mode

applicationIdString

Field holding the application identifier

isObservableboolean

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.