EventReservationEntity


public final class EventReservationEntity extends Entity


An object representing an event reservation entity.

Summary

Nested types

Builder class for EventReservationEntity.

@IntDef(value = [EligibleContentCategory.TYPE_EDUCATION, EligibleContentCategory.TYPE_SPORTS, EligibleContentCategory.TYPE_MOVIES_AND_TV_SHOWS, EligibleContentCategory.TYPE_MUSIC, EligibleContentCategory.TYPE_DIGITAL_GAMES, EligibleContentCategory.TYPE_TRAVEL_AND_LOCAL, EligibleContentCategory.TYPE_HEALTH_AND_FITNESS, EligibleContentCategory.TYPE_DATING])
@Retention(value = RetentionPolicy.SOURCE)
public annotation EventReservationEntity.EligibleContentCategory

Possible content categories of the event reservation entity.

Public fields

final int
final LocalizedTimestamp
final Long

This field is deprecated.

Use localizedStartTime instead.

Public methods

Uri

Returns the action uri of the event reservation entity.

List<Badge>

Returns the list of badges (image/text) for the event reservation entity. e.g. “Onsale".

List<Integer>

Returns the content categories of the event reservation entity.

Optional<String>

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

Optional<Long>

This method is deprecated.

use getLocalizedEndTime instead

Optional<String>

Returns the event reservation id of the entity.

int

Returns event mode of the event entity.

Optional<LocalizedTimestamp>

Returns the localized timestamp for the event end time.

LocalizedTimestamp

Returns the localized timestamp for the event start time.

Optional<Address>

Returns the location/address of the event reservation entity.

List<Image>

Returns the poster image of the event reservation entity.

Optional<Price>

Returns the price of the event reservation entity.

Optional<String>

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

Optional<Rating>

Returns the rating of the event reservation entity.

Optional<String>

Returns the reservation ID of the entity.

Optional<ServiceProvider>

Returns the service provider of the event reservation entity.

Long

This method is deprecated.

use getLocalizedStartTime instead

List<String>

Returns the list of subtitles for the event reservation entity.

String

Returns the name/title of the event reservation Entity.

Public fields

eventMode

@EventMode
public final int eventMode

localizedStartTime

public final LocalizedTimestamp localizedStartTime

startTime

public final Long startTime

Public methods

getActionUri

public Uri getActionUri()

Returns the action uri of the event reservation entity.

getBadgeList

public List<BadgegetBadgeList()

Returns the list of badges (image/text) for the event reservation entity. e.g. “Onsale".

getContentCategoryList

public List<IntegergetContentCategoryList()

Returns the content categories of the event reservation entity.

getDescription

public Optional<StringgetDescription()

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

getEndTime

public Optional<LonggetEndTime()

Returns the epoch timestamp (in milliseconds) for the event end time.

getEntityId

public Optional<StringgetEntityId()

Returns the event reservation id of the entity.

getEventMode

@EventMode
public int getEventMode()

Returns event mode of the event entity.

getLocalizedEndTime

public Optional<LocalizedTimestampgetLocalizedEndTime()

Returns the localized timestamp for the event end time.

getLocalizedStartTime

public LocalizedTimestamp getLocalizedStartTime()

Returns the localized timestamp for the event start time.

getLocation

public Optional<AddressgetLocation()

Returns the location/address of the event reservation entity.

getPosterImages

public List<ImagegetPosterImages()

Returns the poster image of the event reservation entity.

getPrice

public Optional<PricegetPrice()

Returns the price of the event reservation entity.

getPriceCallout

public Optional<StringgetPriceCallout()

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

getRating

public Optional<RatinggetRating()

Returns the rating of the event reservation entity.

getReservationId

public Optional<StringgetReservationId()

Returns the reservation ID of the entity.

getServiceProvider

public Optional<ServiceProvidergetServiceProvider()

Returns the service provider of the event reservation entity.

getStartTime

public Long getStartTime()

Returns the epoch timestamp (in milliseconds) for the event start time.

getSubtitleList

public List<StringgetSubtitleList()

Returns the list of subtitles for the event reservation entity.

getTitle

public String getTitle()

Returns the name/title of the event reservation Entity.