Class RequestItemDetail
- java.lang.Object
-
- aero.panasonic.inflight.services.contentdiscovery.v1.RequestBase<Item>
-
- aero.panasonic.inflight.services.contentdiscovery.v1.RequestItemDetail
-
public class RequestItemDetail extends RequestBase<Item>
The RequestItemDetail class returns detailed information about the list of content URIs.
By default, the content_uri, title and content type are returned. In addition, if applicable, the child count, children, price, director, actor and artist are returned.
This class is returned byContentDiscovery.getItemsDetailsRequest(Set)()} (String)}. The response is the same asContentDiscovery.getItemsByTagValueRequest(String, Map), except this response includes children.
It has method to execute request synchronously and asynchronously and also provides a set of Set methods for parameters.
-
-
Field Summary
-
Fields inherited from class aero.panasonic.inflight.services.contentdiscovery.v1.RequestBase
mLangCode, mSeatClass
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteAsync(ContentDiscovery.Listener<Item> listener)Get a list of items asynchronously.java.util.List<Item>executeSync()Gets a list of items synchronously.JSONObjectgetSocketPayload()voidsetImageResolutions(java.util.Set<java.lang.String> imageResolutions)Returns images, such as posters or synopses, in the specified resolution.voidsetImageSizeSelectors(java.util.Set<java.lang.Integer> imageSizeSelectors)Returns images, such as posters or synopses, in the specified size as defined by the airline.voidsetSeatClass(java.lang.String seatClass)Sets the seat class, such as first or business.-
Methods inherited from class aero.panasonic.inflight.services.contentdiscovery.v1.RequestBase
cancel, getRequestId, setRequestCancelling
-
-
-
-
Method Detail
-
setSeatClass
public void setSeatClass(java.lang.String seatClass)
Sets the seat class, such as first or business. If not specified, SeatClass.All will be used.- Parameters:
seatClass- only accept strings provided bySeatClass, such as first, business or all.
-
setImageSizeSelectors
public void setImageSizeSelectors(java.util.Set<java.lang.Integer> imageSizeSelectors)
Returns images, such as posters or synopses, in the specified size as defined by the airline.
When both image_size_selector and image_resolution are present, image_size_selector takes priority. If neither are present, all images will be returned.- Parameters:
imageSizeSelectors- Image size selector.
-
setImageResolutions
public void setImageResolutions(java.util.Set<java.lang.String> imageResolutions)
Returns images, such as posters or synopses, in the specified resolution. Format is widthxheight, such as "800x600".
When both image_size_selector and image_resolution are present, image_size_selector takes priority. If neither are present, all images will be returned.- Parameters:
imageResolutions- Specifies the image resolution.
-
executeSync
public java.util.List<Item> executeSync() throws ContentDiscovery.Exception
Gets a list of items synchronously.- Returns:
- a list of items.
- Throws:
ContentDiscovery.Exception- if error occurs.
-
executeAsync
public void executeAsync(ContentDiscovery.Listener<Item> listener)
Get a list of items asynchronously.- Parameters:
listener- Data are passed back in the listener.If data retrieved successfully,ContentDiscovery.Listener.onDataReceived(List, RequestBase)is called. If error happens,ContentDiscovery.Listener.onError(ContentDiscovery.Error, RequestBase)is called.
-
getSocketPayload
public JSONObject getSocketPayload()
- Specified by:
getSocketPayloadin classRequestBase<Item>
-
-