EventEntity

public final class EventEntity extends Entity


An object representing an Event Entity.

Summary

Nested types

public final class EventEntity.Builder

Builder class for EventEntity.

@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 EventEntity.EligibleContentCategory

Possible content categories of the event entity.

Public fields

final Uri
final int
final Long
final String

Public methods

Uri

Returns the action link uri of the event entity.

List<Badge>

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

List<Integer>

Returns the content categories of the event entity.

Optional<String>

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

Optional<Long>

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

Optional<String>

Returns the id of the entity.

int

Returns event mode of the event entity.

Optional<Address>

Returns the location/address of the event entity.

List<Image>

Returns the poster image of the entity.

Optional<Price>

Returns the price of the event entity.

Optional<String>

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

Long

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

List<String>

Returns the list of subtitles for the event entity. e.g. "Over 50M users watched Hamilton already", "4 sessions every Monday”.

String

Returns the title of the event entity.

Public fields

actionLinkUri

public final Uri actionLinkUri

eventMode

@EventMode
public final int eventMode

startTime

public final Long startTime

title

public final String title

Public methods

getActionLinkUri

public Uri getActionLinkUri()

Returns the action link uri of the event entity.

getBadgeList

public List<BadgegetBadgeList()

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

getContentCategoryList

public List<IntegergetContentCategoryList()

Returns the content categories of the event entity.

getDescription

public Optional<StringgetDescription()

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

getEndTime

public Optional<LonggetEndTime()

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

getEntityId

public Optional<StringgetEntityId()

Returns the id of the entity.

getEventMode

@EventMode
public int getEventMode()

Returns event mode of the event entity.

getLocation

public Optional<AddressgetLocation()

Returns the location/address of the event entity.

getPosterImages

public List<ImagegetPosterImages()

Returns the poster image of the entity.

getPrice

public Optional<PricegetPrice()

Returns the price of the event entity.

getPriceCallout

public Optional<StringgetPriceCallout()

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

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 entity. e.g. "Over 50M users watched Hamilton already", "4 sessions every Monday”.

getTitle

public String getTitle()

Returns the title of the event entity.