public class Hotel extends APINode
| Modifier and Type | Class and Description |
|---|---|
static class |
Hotel.APIRequestCreateHotelRoom |
static class |
Hotel.APIRequestDelete |
static class |
Hotel.APIRequestGet |
static class |
Hotel.APIRequestUpdate |
| Modifier and Type | Field and Description |
|---|---|
protected static com.google.gson.Gson |
gson |
| Constructor and Description |
|---|
Hotel(Long id,
APIContext context) |
Hotel(String id,
APIContext context) |
getException, getRawResponse, getRawResponseAsJsonObject, getRawValue, head, parseResponsepublic Hotel(Long id, APIContext context)
public Hotel(String id, APIContext context)
public Hotel fetch() throws APIException
APIExceptionpublic static Hotel fetchById(Long id, APIContext context) throws APIException
APIExceptionpublic static Hotel fetchById(String id, APIContext context) throws APIException
APIExceptionpublic static APINodeList<Hotel> fetchByIds(List<String> ids, List<String> fields, APIContext context) throws APIException
APIExceptionpublic static Hotel loadJSON(String json, APIContext context)
public static APINodeList<Hotel> parseResponse(String json, APIContext context, APIRequest request) throws APIException.MalformedResponseException
public APIContext getContext()
getContext in class APINodepublic void setContext(APIContext context)
setContext in class APINodepublic Hotel.APIRequestCreateHotelRoom createHotelRoom()
public Hotel.APIRequestDelete delete()
public Hotel.APIRequestGet get()
public Hotel.APIRequestUpdate update()
public String getFieldAddress()
public AppLinks getFieldApplinks()
public String getFieldBrand()
public String getFieldDescription()
public String getFieldGuestRatings()
public String getFieldHotelId()
public String getFieldId()
public String getFieldLowestBasePrice()
public String getFieldName()
public String getFieldPhone()
public String getFieldStarRating()
public String getFieldUrl()
public static APIRequest.ResponseParser<Hotel> getParser()
Copyright © 2017. All rights reserved.