Difference between revisions of "Channel"

From Gvp-public
Jump to navigation Jump to search
(Created page with "{{Api_DataType_Spec |Description=Represents a Channel object. Channel is sections that the user can access to list the contents associated to then. Contents are associated for a ...")
 
 
(14 intermediate revisions by 2 users not shown)
Line 23: Line 23:
 
{{!}} String
 
{{!}} String
 
{{!}} The title for the Channel that will be shown to end users
 
{{!}} The title for the Channel that will be shown to end users
 +
{{!}}- valign="top"
 +
 +
! Description
 +
{{!}} String
 +
{{!}} The description associated with this Channel.
 
{{!}}- valign="top"
 
{{!}}- valign="top"
  
Line 31: Line 36:
  
 
! Images
 
! Images
{{!}} Array of [[ImageType]] object
+
{{!}} Array of [[Image]] object
 
{{!}} Array of images attached to channel
 
{{!}} Array of images attached to channel
 
{{!}}- valign="top"
 
{{!}}- valign="top"
Line 47: Line 52:
 
! HasFeaturedMovies
 
! HasFeaturedMovies
 
{{!}} bool
 
{{!}} bool
{{!}}  
+
{{!}} Not used by the UNIAPI, just send the value (true/false) to device. It means that the value represent the same value registered in Mib Tools.
 
{{!}}- valign="top"
 
{{!}}- valign="top"
  
Line 57: Line 62:
 
! ProductSelectionId
 
! ProductSelectionId
 
{{!}} int
 
{{!}} int
{{!}}  
+
{{!}} Represents the ID of the ContentCriteria registered in this channel (It should be deprecated in future versions).
 
{{!}}- valign="top"
 
{{!}}- valign="top"
  
 
! SubscriptionId
 
! SubscriptionId
 
{{!}} int
 
{{!}} int
{{!}}  
+
{{!}} Set the product which the click on channel should be redirect to then.
 
{{!}}- valign="top"
 
{{!}}- valign="top"
  
 
! BundleId
 
! BundleId
 
{{!}} int
 
{{!}} int
{{!}}  
+
{{!}} Set the product which the click on channel should be redirect to then.
 
{{!}}- valign="top"
 
{{!}}- valign="top"
  
 
! HasNew
 
! HasNew
 
{{!}} bool
 
{{!}} bool
{{!}}  
+
{{!}} Not used by the UNIAPI, just send the value (true/false) to device. It means that the value represent the same value registered in Mib Tools.
 
{{!}}- valign="top"
 
{{!}}- valign="top"
  
 
! HasPopular
 
! HasPopular
 
{{!}} bool
 
{{!}} bool
{{!}}  
+
{{!}} Not used by the UNIAPI, just send the value (true/false) to device. It means that the value represent the same value registered in Mib Tools.
 
{{!}}- valign="top"
 
{{!}}- valign="top"
  
 
! DisableNavigation
 
! DisableNavigation
 
{{!}} bool
 
{{!}} bool
{{!}}  
+
{{!}} Set if the Channel could be clicked or not. In the menu navigation, it allow/disallow the click on the channel, forcing the sub-channel navigation.
 
{{!}}- valign="top"
 
{{!}}- valign="top"
  
Line 92: Line 97:
 
! IsSpecialChannel
 
! IsSpecialChannel
 
{{!}} bool
 
{{!}} bool
{{!}}  
+
{{!}} Not used by the UNIAPI, just send the value (true/false) to device. It means that the value represent the same value registered in Mib Tools.
 +
{{!}}- valign="top"
 +
 
 +
! ContentType
 +
{{!}} int
 +
{{!}} bgcolor="#7DC04E" {{!}} '''NEW IN 3.2!'''
 +
Indicates the Content Type defined for this channel.
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 +
 +
! VodDefaultOrder
 +
{{!}} int
 +
{{!}} bgcolor="#7DC04E" {{!}} '''NEW IN 3.2!'''
 +
Indicates to applications the default sort for VOD contents defined for this channel
 +
{{!}}- valign="top"
 +
 +
! LiveDefaultOrder
 +
{{!}} String
 +
{{!}} bgcolor="#7DC04E" {{!}} '''NEW IN 3.2!'''
 +
Indicates to applications the default sort for Live contents defined for this channel
 +
{{!}}- valign="top"
 +
 +
! ResizableImages
 +
{{!}} Array of [[Image]] object
 +
{{!}} It provides the list of original images (non resized) associated with this Channel. The application should use the [[UNIAPI_Specification#ThumboxService| Thumbox Service]] to perform dynamic resizing of the images in order to adapt them to the User Interface.
 +
{{!}}- valign="top"
 +
  
 
{{!}}}
 
{{!}}}
Line 100: Line 129:
  
 
|Example=
 
|Example=
<syntaxhighlight lang="javascript">
+
 
 
{
 
{
  "ID":236
+
"ID":236
  "IsEnabled": true,
+
"IsEnabled": true,
  "Title": "Root TDIG Go",
+
"Title": "Root TDIG Go",
  "ParentChannelId": 0,
+
:  "Description": "Description",
  "Images": [],
+
"ParentChannelId": 0,
  "HasChildren": true,
+
"Images": [
  "HasMovies": false,
+
::      Array of [[Image]] object
  "HasFeaturedMovies": true,
+
],
  "RequiresPin": false,
+
"HasChildren": true,
  "ProductSelectionId": 0,
+
"HasMovies": false,
  "SubscriptionId": 0,
+
"HasFeaturedMovies": true,
  "BundleId": 0,
+
"RequiresPin": false,
  "HasNew": false,
+
"ProductSelectionId": 0,
  "HasPopular": false,
+
"SubscriptionId": 0,
  "DisableNavigation": false,
+
"BundleId": 0,
  "Ordination": 7,
+
"HasNew": false,
  "IsSpecialChannel": false
+
"HasPopular": false,
 +
"DisableNavigation": false,
 +
"Ordination": 7,
 +
"IsSpecialChannel": false,
 +
:  "ContentType": 1,
 +
:  "VodDefaultOrder": 1,
 +
:  "LiveDefaultOrder": 2,
 +
:  "ResizeblaImages": [
 +
::      Array of [[Image]] object
 +
:  ]
 
}
 
}
</syntaxhighlight>
+
 
  
 
|KnownIssues=
 
|KnownIssues=
Line 136: Line 174:
 
{{!}} Harley Cabral
 
{{!}} Harley Cabral
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 +
! 2.3
 +
{{!}} Add Members
 +
* isSpecialChannel
 +
{{!}} Ricardo Calvo
 +
{{!}}- valign="top"
 +
! 2.4
 +
{{!}} Add Members
 +
* Description
 +
* ResizableImages
 +
{{!}} Ricardo Calvo
 +
{{!}}- valign="top"
 +
! 3.2
 +
{{!}} Add Members
 +
* ContentType
 +
* VodDefaultOrder
 +
* LiveDefaultOrder
 +
{{!}} Ricardo Calvo
 +
{{!}}- valign="top"
 +
 
{{!}}}
 
{{!}}}
  

Latest revision as of 12:24, 5 August 2015

Represents a Channel object. Channel is sections that the user can access to list the contents associated to then. Contents are associated for a channel using the Content Criteria in the MIB Tool.

Members

Field Data Type Description
ID int Unique identifier for the Channel
IsEnabled bool Define if a channel is available
Title String The title for the Channel that will be shown to end users
Description String The description associated with this Channel.
ParentChannelId int Used to define the hierarchic levels of channels. A number represent the parent channel, usually to organize the channel tree level to create the menu navigation.
Images Array of Image object Array of images attached to channel
HasChildren bool Value to define if a channel has other channel inside then.
HasMovies bool DEPRECATED. Since GVP 2.4, this object will not be returned anymore.
HasFeaturedMovies bool Not used by the UNIAPI, just send the value (true/false) to device. It means that the value represent the same value registered in Mib Tools.
RequiresPin bool Define if a channel need the Parental PIN to access.
ProductSelectionId int Represents the ID of the ContentCriteria registered in this channel (It should be deprecated in future versions).
SubscriptionId int Set the product which the click on channel should be redirect to then.
BundleId int Set the product which the click on channel should be redirect to then.
HasNew bool Not used by the UNIAPI, just send the value (true/false) to device. It means that the value represent the same value registered in Mib Tools.
HasPopular bool Not used by the UNIAPI, just send the value (true/false) to device. It means that the value represent the same value registered in Mib Tools.
DisableNavigation bool Set if the Channel could be clicked or not. In the menu navigation, it allow/disallow the click on the channel, forcing the sub-channel navigation.
Ordination int Represents the order that wants to show on the front end.
IsSpecialChannel bool Not used by the UNIAPI, just send the value (true/false) to device. It means that the value represent the same value registered in Mib Tools.
ContentType int NEW IN 3.2!

Indicates the Content Type defined for this channel.

VodDefaultOrder int NEW IN 3.2!

Indicates to applications the default sort for VOD contents defined for this channel

LiveDefaultOrder String NEW IN 3.2!

Indicates to applications the default sort for Live contents defined for this channel

ResizableImages Array of Image object It provides the list of original images (non resized) associated with this Channel. The application should use the Thumbox Service to perform dynamic resizing of the images in order to adapt them to the User Interface.


Example

{

"ID":236
"IsEnabled": true,
"Title": "Root TDIG Go",
"Description": "Description",
"ParentChannelId": 0,
"Images": [
Array of Image object
],
"HasChildren": true,
"HasMovies": false,
"HasFeaturedMovies": true,
"RequiresPin": false,
"ProductSelectionId": 0,
"SubscriptionId": 0,
"BundleId": 0,
"HasNew": false,
"HasPopular": false,
"DisableNavigation": false,
"Ordination": 7,
"IsSpecialChannel": false,
"ContentType": 1,
"VodDefaultOrder": 1,
"LiveDefaultOrder": 2,
"ResizeblaImages": [
Array of Image object
]

}


Known issues

None


Version history

API Version Number Change description Changes author
1.0 Initial data type implementation Harley Cabral
2.3 Add Members
  • isSpecialChannel
Ricardo Calvo
2.4 Add Members
  • Description
  • ResizableImages
Ricardo Calvo
3.2 Add Members
  • ContentType
  • VodDefaultOrder
  • LiveDefaultOrder
Ricardo Calvo


See also