HotelListingsResponse

public final class HotelListingsResponse

Parameters

warnings

There were some errors or events during the transaction, but the API has still returned a response. Container for all warnings.

count

The number of hotels actually returned in the response.

totalHotelCount

The number of hotels present in the location.

transactionId

Unique identifier for the transaction.

stayDates
lengthOfStay

The number of stay nights.

numberOfRooms

The number of the rooms requested on behalf of the user.

occupants

Container of occupants. It is an array including occupants of each room.

hotels

Container for all hotels.

Constructors

Link copied to clipboard
public HotelListingsResponse HotelListingsResponse(List<Warning> warnings, Integer count, Integer totalHotelCount, String transactionId, HotelListingsResponseStayDates stayDates, Integer lengthOfStay, Integer numberOfRooms, List<Occupant> occupants, List<Hotel> hotels)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
private final Integer count
Link copied to clipboard
@Valid()
private final List<Hotel> hotels
Link copied to clipboard
private final Integer lengthOfStay
Link copied to clipboard
private final Integer numberOfRooms
Link copied to clipboard
@Valid()
private final List<Occupant> occupants
Link copied to clipboard
Link copied to clipboard
private final Integer totalHotelCount
Link copied to clipboard
@Valid()
private final String transactionId
Link copied to clipboard
@Valid()
private final List<Warning> warnings

Functions

Link copied to clipboard
public final static HotelListingsResponse.Builder builder()
Link copied to clipboard
public final Integer getCount()
Link copied to clipboard
public final List<Hotel> getHotels()
Link copied to clipboard
public final Integer getLengthOfStay()
Link copied to clipboard
public final Integer getNumberOfRooms()
Link copied to clipboard
public final List<Occupant> getOccupants()
Link copied to clipboard
Link copied to clipboard
public final Integer getTotalHotelCount()
Link copied to clipboard
public final String getTransactionId()
Link copied to clipboard
public final List<Warning> getWarnings()
Link copied to clipboard