public static class ProductCatalog.APIRequestCreateFlight extends APIRequest<Flight>
APIRequest.DefaultAsyncRequestExecutor, APIRequest.DefaultRequestExecutor, APIRequest.IAsyncRequestExecutor, APIRequest.IRequestExecutor, APIRequest.RequestHelper, APIRequest.ResponseParser<T extends APINode>| Modifier and Type | Field and Description |
|---|---|
static String[] |
FIELDS |
static String[] |
PARAMS |
context, endpoint, method, nodeId, paramNames, params, parser, returnFields, USER_AGENT, useVideoEndpoint| Constructor and Description |
|---|
APIRequestCreateFlight(String nodeId,
APIContext context) |
addToBatch, addToBatch, changeAsyncRequestExecutor, changeRequestExecutor, executeAsyncBase, executeAsyncBase, executeAsyncInternal, executeAsyncInternal, executeInternal, executeInternal, getAsyncExecutor, getContext, getExecutor, joinStringList, requestFieldInternal, setContext, setOverrideUrl, setParamInternal, setParamsInternal, setUseVideoEndpointpublic APIRequestCreateFlight(String nodeId, APIContext context)
public Flight getLastResponse()
getLastResponse in class APIRequest<Flight>public Flight parseResponse(String response) throws APIException
parseResponse in class APIRequest<Flight>APIExceptionpublic Flight execute() throws APIException
execute in class APIRequest<Flight>APIExceptionpublic Flight execute(Map<String,Object> extraParams) throws APIException
execute in class APIRequest<Flight>APIExceptionpublic com.google.common.util.concurrent.ListenableFuture<Flight> executeAsync() throws APIException
APIExceptionpublic com.google.common.util.concurrent.ListenableFuture<Flight> executeAsync(Map<String,Object> extraParams) throws APIException
APIExceptionpublic ProductCatalog.APIRequestCreateFlight setParam(String param, Object value)
setParam in class APIRequest<Flight>public ProductCatalog.APIRequestCreateFlight setParams(Map<String,Object> params)
setParams in class APIRequest<Flight>public ProductCatalog.APIRequestCreateFlight setImages(List<Object> images)
public ProductCatalog.APIRequestCreateFlight setImages(String images)
public ProductCatalog.APIRequestCreateFlight setOriginAirport(String originAirport)
public ProductCatalog.APIRequestCreateFlight setDestinationAirport(String destinationAirport)
public ProductCatalog.APIRequestCreateFlight setDescription(String description)
public ProductCatalog.APIRequestCreateFlight setUrl(Object url)
public ProductCatalog.APIRequestCreateFlight setUrl(String url)
public ProductCatalog.APIRequestCreateFlight setCurrency(String currency)
public ProductCatalog.APIRequestCreateFlight setPrice(Long price)
public ProductCatalog.APIRequestCreateFlight setPrice(String price)
public ProductCatalog.APIRequestCreateFlight requestAllFields()
public ProductCatalog.APIRequestCreateFlight requestAllFields(boolean value)
public ProductCatalog.APIRequestCreateFlight requestFields(List<String> fields)
requestFields in class APIRequest<Flight>public ProductCatalog.APIRequestCreateFlight requestFields(List<String> fields, boolean value)
requestFields in class APIRequest<Flight>public ProductCatalog.APIRequestCreateFlight requestField(String field)
requestField in class APIRequest<Flight>public ProductCatalog.APIRequestCreateFlight requestField(String field, boolean value)
requestField in class APIRequest<Flight>Copyright © 2018. All rights reserved.