public static class ProductCatalog.APIRequestCreateHotel extends APIRequest<Hotel>
APIRequest.DefaultAsyncRequestExecutor, APIRequest.DefaultRequestExecutor, APIRequest.IAsyncRequestExecutor, APIRequest.IRequestExecutor, APIRequest.RequestHelper, APIRequest.ResponseParser<T extends APINode>, APIRequest.ResponseWrapper| 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 |
|---|
APIRequestCreateHotel(String nodeId,
APIContext context) |
addToBatch, addToBatch, addToBatch, changeAsyncRequestExecutor, changeRequestExecutor, executeAsyncBase, executeAsyncBase, executeAsyncInternal, executeAsyncInternal, executeInternal, executeInternal, getAsyncExecutor, getContext, getExecutor, joinStringList, requestFieldInternal, setContext, setOverrideUrl, setParamInternal, setParamsInternal, setUseVideoEndpointpublic APIRequestCreateHotel(String nodeId, APIContext context)
public Hotel getLastResponse()
getLastResponse in class APIRequest<Hotel>public Hotel parseResponse(String response, String header) throws APIException
parseResponse in class APIRequest<Hotel>APIExceptionpublic Hotel execute() throws APIException
execute in class APIRequest<Hotel>APIExceptionpublic Hotel execute(Map<String,Object> extraParams) throws APIException
execute in class APIRequest<Hotel>APIExceptionpublic com.google.common.util.concurrent.ListenableFuture<Hotel> executeAsync() throws APIException
APIExceptionpublic com.google.common.util.concurrent.ListenableFuture<Hotel> executeAsync(Map<String,Object> extraParams) throws APIException
APIExceptionpublic ProductCatalog.APIRequestCreateHotel setParam(String param, Object value)
setParam in class APIRequest<Hotel>public ProductCatalog.APIRequestCreateHotel setParams(Map<String,Object> params)
setParams in class APIRequest<Hotel>public ProductCatalog.APIRequestCreateHotel setAddress(Object address)
public ProductCatalog.APIRequestCreateHotel setAddress(String address)
public ProductCatalog.APIRequestCreateHotel setApplinks(Object applinks)
public ProductCatalog.APIRequestCreateHotel setApplinks(String applinks)
public ProductCatalog.APIRequestCreateHotel setBasePrice(Long basePrice)
public ProductCatalog.APIRequestCreateHotel setBasePrice(String basePrice)
public ProductCatalog.APIRequestCreateHotel setBrand(String brand)
public ProductCatalog.APIRequestCreateHotel setCurrency(String currency)
public ProductCatalog.APIRequestCreateHotel setDescription(String description)
public ProductCatalog.APIRequestCreateHotel setGuestRatings(List<Object> guestRatings)
public ProductCatalog.APIRequestCreateHotel setGuestRatings(String guestRatings)
public ProductCatalog.APIRequestCreateHotel setHotelId(String hotelId)
public ProductCatalog.APIRequestCreateHotel setImages(List<Object> images)
public ProductCatalog.APIRequestCreateHotel setImages(String images)
public ProductCatalog.APIRequestCreateHotel setName(String name)
public ProductCatalog.APIRequestCreateHotel setPhone(String phone)
public ProductCatalog.APIRequestCreateHotel setStarRating(Double starRating)
public ProductCatalog.APIRequestCreateHotel setStarRating(String starRating)
public ProductCatalog.APIRequestCreateHotel setUrl(String url)
public ProductCatalog.APIRequestCreateHotel requestAllFields()
public ProductCatalog.APIRequestCreateHotel requestAllFields(boolean value)
public ProductCatalog.APIRequestCreateHotel requestFields(List<String> fields)
requestFields in class APIRequest<Hotel>public ProductCatalog.APIRequestCreateHotel requestFields(List<String> fields, boolean value)
requestFields in class APIRequest<Hotel>public ProductCatalog.APIRequestCreateHotel requestField(String field)
requestField in class APIRequest<Hotel>public ProductCatalog.APIRequestCreateHotel requestField(String field, boolean value)
requestField in class APIRequest<Hotel>Copyright © 2020. All rights reserved.