Class Category
- java.lang.Object
-
- aero.panasonic.inflight.services.contentdiscovery.v1.data.ContentDiscoveryData
-
- aero.panasonic.inflight.services.contentdiscovery.v1.data.Category
-
public class Category extends ContentDiscoveryData
This class is Category model class. Category contains items grouped by:- media types, such as movies, television, music, radio and audiobooks
- genre, such as adventure, action and comedy
- user-defined, such as most popular and recent releases
Each Get method for values, such as title, description and short description, will return an empty String/List/Map, if no data exists.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class aero.panasonic.inflight.services.contentdiscovery.v1.data.ContentDiscoveryData
ContentDiscoveryData.DataType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONObjectgetAttributes()Gets a list of attributes, such as genre, actor, director and year, for the item.java.lang.StringgetDescription()Gets a description of the item.java.lang.StringgetFieldbyName(java.lang.String name)java.lang.StringgetId()Gets the unique identifier of the item.java.util.List<ImageInfo>getImages()java.util.List<ImageInfo>getImagesbyType(int imageType)Gets images by type.java.util.List<java.lang.String>getMediaUris()Gets unique media identifer for the item.java.lang.StringgetParentId()Gets a description of the item.java.lang.StringgetShortDescription()Gets a short description of the item.java.util.List<Category>getSubcategories()Gets the children categories for the parent category.java.util.List<java.lang.String>getSubCategoryIds()Gets the unique identifiers for the children categories.java.lang.StringgetTitle()Gets the title or name of the item.booleanhasSubcategory()Gets the number of children categories for the parent category.-
Methods inherited from class aero.panasonic.inflight.services.contentdiscovery.v1.data.ContentDiscoveryData
getDataType
-
-
-
-
Constructor Detail
-
Category
public Category(JSONObject json, java.lang.String lang)
-
Category
public Category(JSONObject json, java.lang.String lang, Category parent)
-
-
Method Detail
-
getId
public java.lang.String getId()
Gets the unique identifier of the item.
-
getTitle
public java.lang.String getTitle()
Gets the title or name of the item.
-
getShortDescription
public java.lang.String getShortDescription()
Gets a short description of the item.
-
getDescription
public java.lang.String getDescription()
Gets a description of the item.
-
getParentId
public java.lang.String getParentId()
Gets a description of the item.
-
getMediaUris
public java.util.List<java.lang.String> getMediaUris()
Gets unique media identifer for the item.
-
getAttributes
public JSONObject getAttributes()
Gets a list of attributes, such as genre, actor, director and year, for the item.
-
getImages
public java.util.List<ImageInfo> getImages()
-
getImagesbyType
public java.util.List<ImageInfo> getImagesbyType(int imageType)
Gets images by type. The image types are posters and synopsis.- Parameters:
imageType-ImageInfo.IMAGE_TYPE_POSTERorImageInfo.IMAGE_TYPE_SYNOPSIS- Returns:
-
hasSubcategory
public boolean hasSubcategory()
Gets the number of children categories for the parent category.
-
getSubCategoryIds
public java.util.List<java.lang.String> getSubCategoryIds()
Gets the unique identifiers for the children categories.
If no children exist, no items will display.
-
getSubcategories
public java.util.List<Category> getSubcategories()
Gets the children categories for the parent category.
If no children exist, no items will display.
-
getFieldbyName
public java.lang.String getFieldbyName(java.lang.String name)
- Since:
- 03.43.00.1
-
-