PersonEntity


public final class PersonEntity extends Entity


An object representing a Person Entity.

Summary

Nested types

public final class PersonEntity.Builder

Builder class for PersonEntity.

@IntDef(value = [EligibleContentCategory.TYPE_SPORTS, EligibleContentCategory.TYPE_HOME_AND_AUTO, EligibleContentCategory.TYPE_HEALTH_AND_FITNESS, EligibleContentCategory.TYPE_DATING])
@Retention(value = RetentionPolicy.SOURCE)
public annotation PersonEntity.EligibleContentCategory

Content category of the person entity.

Public fields

final Profile

Public methods

Uri

Returns the action link uri of the person entity.

List<Badge>

Returns the list of badges (image/text) for the person entity e.g. “Top pro”, etc.

List<Integer>

Returns content categories of the person entity.

Optional<String>

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

Optional<String>

Returns the id of the entity.

Optional<Image>

Returns the header image of the person entity.

Optional<Address>

Returns the location/address of the person entity.

Optional<Popularity>

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

List<Image>

Returns the poster image of the entity.

Profile

Returns the title of the person entity.

Optional<Rating>

Returns the rating of the person entity.

List<String>

Returns the list of subtitles for the person entity e.g. “Responds in about 3 hours”, etc.

Public fields

profile

public final Profile profile

Public methods

getActionLinkUri

public Uri getActionLinkUri()

Returns the action link uri of the person entity.

getBadgeList

public List<BadgegetBadgeList()

Returns the list of badges (image/text) for the person entity e.g. “Top pro”, etc.

getContentCategoryList

public List<IntegergetContentCategoryList()

Returns content categories of the person entity.

getDescription

public Optional<StringgetDescription()

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

getEntityId

public Optional<StringgetEntityId()

Returns the id of the entity.

getHeaderImage

public Optional<ImagegetHeaderImage()

Returns the header image of the person entity.

getLocation

public Optional<AddressgetLocation()

Returns the location/address of the person entity.

getPopularity

public Optional<PopularitygetPopularity()

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

getPosterImages

public List<ImagegetPosterImages()

Returns the poster image of the entity.

getProfile

public Profile getProfile()

Returns the title of the person entity.

getRating

public Optional<RatinggetRating()

Returns the rating of the person entity.

getSubtitleList

public List<StringgetSubtitleList()

Returns the list of subtitles for the person entity e.g. “Responds in about 3 hours”, etc.