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