PersonEntity.Builder


class PersonEntity.Builder


Builder class for PersonEntity.

Summary

Public constructors

Public functions

PersonEntity.Builder!

Add a badge (image/text) for the person entity e.g. “Top pro”, etc.

PersonEntity.Builder!

Add badges for the person entity.

PersonEntity.Builder!

Add eligible content categories for the person entity.

PersonEntity.Builder!

Add eligible content category for the person entity.

PersonEntity.Builder!

Add a poster image of the entity.

PersonEntity.Builder!

Add poster images of the entity.

PersonEntity.Builder!

Add a subtitle for the person entity. e.g. “Responds in about 3 hours”, etc.

PersonEntity.Builder!

Add subtitles for the person entity.

PersonEntity!
PersonEntity.Builder!

Sets the action link uri for the person entity.

PersonEntity.Builder!

Sets the description for the person entity.

PersonEntity.Builder!

Sets content id of the entity.

PersonEntity.Builder!

Sets the header image of the person entity.

PersonEntity.Builder!

Sets the location/address of the person entity.

PersonEntity.Builder!

Sets the popularity for the person entity e.g. # followers, # reviews, # likes (emoji), etc.

PersonEntity.Builder!

Sets the profile of the person entity.

PersonEntity.Builder!

Sets the rating for the person entity.

Public constructors

Builder

Builder()

Public functions

addBadge

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

Add a badge (image/text) for the person entity e.g. “Top pro”, etc.

Optional.

addBadges

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

Add badges for the person entity.

Optional.

addContentCategories

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

Add eligible content categories for the person entity.

Optional.

addContentCategory

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

Add eligible content category for the person entity.

Optional.

addPosterImage

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

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

addSubtitle

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

Add a subtitle for the person entity. e.g. “Responds in about 3 hours”, etc.

Optional.

addSubtitles

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

Add subtitles for the person entity.

Optional.

build

fun build(): PersonEntity!

setActionLinkUri

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

Sets the action link uri for the person entity.

Required.

setDescription

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

Sets the description for the person entity.

Optional.

setEntityId

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

Sets content id of the entity.

Optional.

setHeaderImage

@CanIgnoreReturnValue
fun setHeaderImage(headerImage: Image!): PersonEntity.Builder!

Sets the header image of the person entity.

Optional.

setLocation

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

Sets the location/address of the person entity.

Optional.

setPopularity

@CanIgnoreReturnValue
fun setPopularity(popularity: Popularity!): PersonEntity.Builder!

Sets the popularity for the person entity e.g. # followers, # reviews, # likes (emoji), etc.

Optional.

setProfile

@CanIgnoreReturnValue
fun setProfile(profile: Profile!): PersonEntity.Builder!

Sets the profile of the person entity.

Required.

setRating

@CanIgnoreReturnValue
fun setRating(rating: Rating!): PersonEntity.Builder!

Sets the rating for the person entity.

Optional.