LodgingEntity


public final class LodgingEntity extends Entity


An object representing a Lodging Entity.

Summary

Nested types

public final class LodgingEntity.Builder

Builder class for LodgingEntity.

Public methods

Uri

Returns the action link uri of the lodging entity.

Optional<AvailabilityTimeWindow>

Returns availability time window for the lodging entity.

List<Badge>

Returns the list of badges (image/text) for the lodging entity. e.g. “Breakfast included”, “Free cancellation”, “Member price”, "Open house hours"

Optional<String>

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

ImmutableList<DisplayTimeWindow>

Returns the display time windows associated with the lodging entity.

Optional<String>

Returns the id of the entity.

Address

Returns the location/address of the lodging entity.

List<Image>

Returns the poster image of the entity.

Optional<Price>

Returns the price of the lodging entity.

Optional<String>

Returns the price callout for the lodging entity. e.g. “Limited offer"

Optional<Rating>

Returns the rating of the lodging entity.

List<String>

Returns the list of subtitles for the lodging entity. e.g. "Private room: Beds: 1 double or 2 twins", "# bds, # Sqft, House for sale”

String

Returns the title of the lodging entity.

Public fields

actionLinkUri

public final Uri actionLinkUri

badgeList

public final List<Badge> badgeList

displayTimeWindows

public final ImmutableList<DisplayTimeWindow> displayTimeWindows

location

public final Address location

subtitleList

public final List<String> subtitleList

title

public final String title

Public methods

getActionLinkUri

public Uri getActionLinkUri()

Returns the action link uri of the lodging entity.

getAvailabilityTimeWindow

public Optional<AvailabilityTimeWindow> getAvailabilityTimeWindow()

Returns availability time window for the lodging entity.

This can refer to time the lodging entity is opened for the day/dates between which the lodging is available.

getBadgeList

public List<Badge> getBadgeList()

Returns the list of badges (image/text) for the lodging entity. e.g. “Breakfast included”, “Free cancellation”, “Member price”, "Open house hours"

getDescription

public Optional<String> getDescription()

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

getDisplayTimeWindows

public ImmutableList<DisplayTimeWindow> getDisplayTimeWindows()

Returns the display time windows associated with the lodging entity.

getEntityId

public Optional<String> getEntityId()

Returns the id of the entity.

getLocation

public Address getLocation()

Returns the location/address of the lodging entity.

getPosterImages

public List<Image> getPosterImages()

Returns the poster image of the entity.

getPrice

public Optional<Price> getPrice()

Returns the price of the lodging entity.

getPriceCallout

public Optional<String> getPriceCallout()

Returns the price callout for the lodging entity. e.g. “Limited offer"

getRating

public Optional<Rating> getRating()

Returns the rating of the lodging entity.

getSubtitleList

public List<String> getSubtitleList()

Returns the list of subtitles for the lodging entity. e.g. "Private room: Beds: 1 double or 2 twins", "# bds, # Sqft, House for sale”

getTitle

public String getTitle()

Returns the title of the lodging entity.