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 fields

final Uri
final List<Badge>
final Address
final List<String>
final String

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.

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

location

public final Address location

subtitleList

public final List<StringsubtitleList

title

public final String title

Public methods

getActionLinkUri

public Uri getActionLinkUri()

Returns the action link uri of the lodging entity.

getAvailabilityTimeWindow

public Optional<AvailabilityTimeWindowgetAvailabilityTimeWindow()

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<BadgegetBadgeList()

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<StringgetDescription()

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

getEntityId

public Optional<StringgetEntityId()

Returns the id of the entity.

getLocation

public Address getLocation()

Returns the location/address of the lodging entity.

getPosterImages

public List<ImagegetPosterImages()

Returns the poster image of the entity.

getPrice

public Optional<PricegetPrice()

Returns the price of the lodging entity.

getPriceCallout

public Optional<StringgetPriceCallout()

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

getRating

public Optional<RatinggetRating()

Returns the rating of the lodging entity.

getSubtitleList

public List<StringgetSubtitleList()

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.