EventEntity.Builder


class EventEntity.Builder


Builder class for EventEntity.

Summary

Public constructors

Public functions

EventEntity.Builder!

Add a badge (image/text) for the event entity. e.g. “Onsale".

EventEntity.Builder!

Add badges for the event entity.

EventEntity.Builder!

Add eligible content categories for the event entity.

EventEntity.Builder!

Add eligible content category for the event entity.

EventEntity.Builder!

Add a poster image of the entity.

EventEntity.Builder!

Add poster images of the entity.

EventEntity.Builder!

Add a subtitle for the event entity. e.g. "Over 50M users watched Hamilton already", "4 sessions every Monday”

EventEntity.Builder!

Add subtitles for the event entity.

EventEntity!
EventEntity.Builder!

Sets the action link uri for the event entity.

EventEntity.Builder!

Sets the description for the event entity.

EventEntity.Builder!

This function is deprecated.

Use setLocalizedEndTime instead.

EventEntity.Builder!

Sets content id of the entity.

EventEntity.Builder!

Sets the event mode of the event entity.

EventEntity.Builder!

Sets the localized end time of the event reservation entity.

EventEntity.Builder!

Sets the localized start time for the event reservation entity.

EventEntity.Builder!

Sets the location/address of the event entity.

EventEntity.Builder!

Sets the price for the event entity;

EventEntity.Builder!

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

EventEntity.Builder!

This function is deprecated.

Use setLocalizedStartTime instead.

EventEntity.Builder!

Sets the title of the event entity.

Public constructors

Builder

Builder()

Public functions

addBadge

@CanIgnoreReturnValue
fun addBadge(badge: Badge!): EventEntity.Builder!

Add a badge (image/text) for the event entity. e.g. “Onsale".

Optional.

addBadges

@CanIgnoreReturnValue
fun addBadges(badges: (Mutable)List<Badge!>!): EventEntity.Builder!

Add badges for the event entity.

Optional.

addContentCategories

@CanIgnoreReturnValue
fun addContentCategories(contentCategories: (Mutable)List<Int!>!): EventEntity.Builder!

Add eligible content categories for the event entity.

Optional.

addContentCategory

@CanIgnoreReturnValue
fun addContentCategory(
    @EventEntity.EligibleContentCategory contentCategory: Int
): EventEntity.Builder!

Add eligible content category for the event entity.

Optional.

addPosterImage

@CanIgnoreReturnValue
fun addPosterImage(image: Image!): EventEntity.Builder!

Add a poster image of the entity.

Required.

addPosterImages

@CanIgnoreReturnValue
fun addPosterImages(images: (Mutable)List<Image!>!): EventEntity.Builder!

Add poster images of the entity.

Required.

addSubtitle

@CanIgnoreReturnValue
fun addSubtitle(subtitle: String!): EventEntity.Builder!

Add a subtitle for the event entity. e.g. "Over 50M users watched Hamilton already", "4 sessions every Monday”

Optional.

addSubtitles

@CanIgnoreReturnValue
fun addSubtitles(subtitles: (Mutable)List<String!>!): EventEntity.Builder!

Add subtitles for the event entity.

Optional.

build

fun build(): EventEntity!

setActionLinkUri

@CanIgnoreReturnValue
fun setActionLinkUri(actionLinkUri: Uri!): EventEntity.Builder!

Sets the action link uri for the event entity.

Required.

setDescription

@CanIgnoreReturnValue
fun setDescription(description: String!): EventEntity.Builder!

Sets the description for the event entity.

Optional.

setEndTime

@CanIgnoreReturnValue
fun setEndTime(endTime: Long!): EventEntity.Builder!

Sets the end time of the event entity.

Optional.

setEntityId

@CanIgnoreReturnValue
fun setEntityId(entityId: String!): EventEntity.Builder!

Sets content id of the entity.

Optional.

setEventMode

@CanIgnoreReturnValue
fun setEventMode(@EventMode eventMode: Int): EventEntity.Builder!

Sets the event mode of the event entity.

Required.

setLocalizedEndTime

@CanIgnoreReturnValue
fun setLocalizedEndTime(localizedEndTime: LocalizedTimestamp!): EventEntity.Builder!

Sets the localized end time of the event reservation entity.

Optional.

setLocalizedStartTime

@CanIgnoreReturnValue
fun setLocalizedStartTime(localizedStartTime: LocalizedTimestamp!): EventEntity.Builder!

Sets the localized start time for the event reservation entity.

Required.

setLocation

@CanIgnoreReturnValue
fun setLocation(location: Address!): EventEntity.Builder!

Sets the location/address of the event entity.

Required if event mode is set to TYPE_IN_PERSON or TYPE_HYBRID.

setPrice

@CanIgnoreReturnValue
fun setPrice(price: Price!): EventEntity.Builder!

Sets the price for the event entity;

Optional.

setPriceCallout

@CanIgnoreReturnValue
fun setPriceCallout(priceCallout: String!): EventEntity.Builder!

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

Optional.

setStartTime

@CanIgnoreReturnValue
fun setStartTime(startTime: Long!): EventEntity.Builder!

Sets the start time of the event entity.

Required.

setTitle

@CanIgnoreReturnValue
fun setTitle(title: String): EventEntity.Builder!

Sets the title of the event entity.

Required.