TransportationReservationEntity


public final class TransportationReservationEntity extends Entity


An object representing a transportation reservation entity.

Summary

Nested types

Builder class for TransportationReservationEntity.

Public fields

final Long

This field is deprecated.

Use localizedArrivalTime instead.

final Long

This field is deprecated.

Use localizedDepartureTime instead.

final LocalizedTimestamp
final LocalizedTimestamp
final int

Public methods

Uri

Returns the action uri of the entity.

Optional<Address>

Returns the arrival location of the transportation reservation entity.

Long

This method is deprecated.

Use getLocalizedArrivalTime instead.

Optional<Long>

This method is deprecated.

Use getLocalizedBoardingTime instead.

Optional<Address>

Returns the departure location of the transportation reservation entity.

Long

This method is deprecated.

Use getLocalizedDepartureTime instead.

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.

LocalizedTimestamp

Returns the localized timestamp of arrival time for the transportation reservation entity.

Optional<LocalizedTimestamp>

Returns the localized timestamp of the boarding time for the transportation reservation entity.

LocalizedTimestamp

Returns the localized timestamp of departure time for the transportation reservation 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

localizedArrivalTime

public final LocalizedTimestamp localizedArrivalTime

localizedDepartureTime

public final LocalizedTimestamp localizedDepartureTime

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 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.

getLocalizedArrivalTime

public LocalizedTimestamp getLocalizedArrivalTime()

Returns the localized timestamp of arrival time for the transportation reservation entity.

getLocalizedBoardingTime

public Optional<LocalizedTimestampgetLocalizedBoardingTime()

Returns the localized timestamp of the boarding time for the transportation reservation entity.

getLocalizedDepartureTime

public LocalizedTimestamp getLocalizedDepartureTime()

Returns the localized timestamp of departure time for the transportation reservation 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.