TransportationReservationEntity

public final class TransportationReservationEntity extends Entity


An object representing a transportation reservation entity.

Summary

Nested types

Builder class for TransportationReservationEntity.

Public methods

Uri

Returns the action uri of the entity.

Optional<Address>

Returns the arrival location of the transportation reservation entity.

Long

Returns the epoch timestamp (in milliseconds) of arrival time for the transportation reservation entity.

Optional<Long>

Returns the epoch timestamp (in milliseconds) of the boarding time for the transportation reservation entity.

Optional<Address>

Returns the departure location of the transportation reservation entity.

Long

Returns the epoch timestamp (in milliseconds) of departure time for the transportation reservation entity.

Optional<String>

Returns the description (typically a single paragraph of text) for the transportation reservation entity.

Optional<String>

Returns the reservation id of the entity.

List<Image>

Returns the poster image of the entity.

Optional<Price>

Returns the price of the transportation reservation entity.

Optional<String>

Returns the price callout text for the transportation reservation entity.

Optional<String>

Returns the reservation ID of the entity.

Optional<ServiceProvider>

Returns the service provider of the transportation reservation entity.

List<String>

Returns the list of subtitles for the Reservation entity.

String

Returns the name/title of the transportation reservation Entity.

Optional<String>

Returns the transportation number (e.g. flight number, bus number, train number, ferry name/number) of the transportation reservation entity.

int

Returns the type of the transportation (flight, bus, train, ferry etc.) for the transportation reservation entity.

Public fields

arrivalTime

public final Long arrivalTime

departureTime

public final Long departureTime

transportationType

@TransportationType
public final int transportationType

Public methods

getActionUri

public Uri getActionUri()

Returns the action uri of the entity.

getArrivalLocation

public Optional<AddressgetArrivalLocation()

Returns the arrival location of the transportation reservation entity.

getArrivalTime

public Long getArrivalTime()

Returns the epoch timestamp (in milliseconds) of arrival time for the transportation reservation entity.

getBoardingTime

public Optional<LonggetBoardingTime()

Returns the epoch timestamp (in milliseconds) of the boarding time for the transportation reservation entity.

getDepartureLocation

public Optional<AddressgetDepartureLocation()

Returns the departure location of the transportation reservation entity.

getDepartureTime

public Long getDepartureTime()

Returns the epoch timestamp (in milliseconds) of departure time for the transportation reservation entity.

getDescription

public Optional<StringgetDescription()

Returns the description (typically a single paragraph of text) for the transportation reservation entity.

getEntityId

public Optional<StringgetEntityId()

Returns the reservation id of the entity.

getPosterImages

public List<ImagegetPosterImages()

Returns the poster image of the entity.

getPrice

public Optional<PricegetPrice()

Returns the price of the transportation reservation entity.

getPriceCallout

public Optional<StringgetPriceCallout()

Returns the price callout text for the transportation reservation entity.

getReservationId

public Optional<StringgetReservationId()

Returns the reservation ID of the entity.

getServiceProvider

public Optional<ServiceProvidergetServiceProvider()

Returns the service provider of the transportation reservation entity.

getSubtitleList

public List<StringgetSubtitleList()

Returns the list of subtitles for the Reservation entity.

getTitle

public String getTitle()

Returns the name/title of the transportation reservation Entity.

getTransportationNumber

public Optional<StringgetTransportationNumber()

Returns the transportation number (e.g. flight number, bus number, train number, ferry name/number) of the transportation reservation entity.

getTransportationType

@TransportationType
public int getTransportationType()

Returns the type of the transportation (flight, bus, train, ferry etc.) for the transportation reservation entity.