Class RequestTagName
- java.lang.Object
-
- aero.panasonic.inflight.services.contentdiscovery.v1.RequestBase<TagName>
-
- aero.panasonic.inflight.services.contentdiscovery.v1.RequestTagName
-
public class RequestTagName extends RequestBase<TagName>
The RequestTag class returns all tag names for fields that are indexed byContentType.Type
Sample tags include genre, rating, year or a custom tag defined by the airline, such as 'Award Winning'.
This class is returned byContentDiscovery.getTagsRequest(String)()} (String)}.
It has a 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<TagName> listener)Gets tag strings asynchronously.java.util.List<TagName>executeSync()Gets tag strings synchronously.JSONObjectgetSocketPayload()voidsetSeatClass(java.lang.String seatClass)Specifies 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)
Specifies the seat class, such as first or business.
If not specified, SeatClass.All will be used.- Parameters:
seatClass- Only accepts strings provided bySeatClass, such as first, business or all.
-
executeSync
public java.util.List<TagName> executeSync() throws ContentDiscovery.Exception
Gets tag strings synchronously.
Sample tags include genre, rating, year or a custom tag defined by the airline, such as 'Award Winning'.- Returns:
- A list of tag strings.
- Throws:
ContentDiscovery.Exception- if error occurs.
-
executeAsync
public void executeAsync(ContentDiscovery.Listener<TagName> listener)
Gets tag strings asynchronously.
Sample tags include genre, rating, year or a custom tag defined by the airline, such as 'Award Winning'.- Parameters:
listener- Data is passed back in the listener. If data is retrieved successfully,ContentDiscovery.Listener.onDataReceived(List, RequestBase))} is called.
If error occurs,ContentDiscovery.Listener.onError(ContentDiscovery.Error, RequestBase)is called.
-
getSocketPayload
public JSONObject getSocketPayload()
- Specified by:
getSocketPayloadin classRequestBase<TagName>
-
-