TvShowEntity


public final class TvShowEntity extends Entity


An object representing a tv show.

Summary

Nested types

public final class TvShowEntity.Builder

Builder class for TvShowEntity.

Public fields

final int
final List<RatingSystem>
final List<String>

This field is deprecated.

Use contentRatings instead.

final Uri
final ImmutableList<PlatformSpecificUri>
final int

Public methods

int

Returns the availability of the tv show.

List<DisplayTimeWindow>

Returns the availability time windows of the video entity.

List<RatingSystem>

Returns the rating systems for the tv show.

List<String>

This method is deprecated.

use getContentRatings instead

Optional<String>

Returns the description of the entity.

Optional<String>

Returns the id of the entity.

Optional<Long>

Returns the air date of the first episode in this show, in milliseconds since Epoch.

List<String>

Returns the genres of the tv show.

Uri

Returns the deeplink to open the details info page of the tv show.

Optional<Long>

Returns the last engagement time in milliseconds.

Optional<Long>

Returns last play back position of the video entity, in milliseconds.

Optional<Long>

Returns the air date of the latest episode in this show, in milliseconds since Epoch.

String

Returns the name of the entity.

ImmutableList<PlatformSpecificUri>

Returns the platform specific playback uri's for the tv show entity.

Optional<Uri>

Returns the on device deeplink to start playing the tv show.

List<Image>

Returns the poster image of the entity.

Optional<Price>

Returns the price of the tv show, if available

Optional<RecommendationReason>

Returns the recommendation reason of the entity.

int

Returns the total number of seasons in the current tv show.

Optional<Integer>

Returns watch next type of the video entity.

Public fields

availability

public final int availability

contentRatings

public final List<RatingSystem> contentRatings

contentRatingsLegacy

public final List<String> contentRatingsLegacy

infoPageUri

public final Uri infoPageUri

platformSpecificPlaybackUris

public final ImmutableList<PlatformSpecificUri> platformSpecificPlaybackUris

seasonCount

public final int seasonCount

Public methods

getAvailability

@ContentAvailability
public int getAvailability()

Returns the availability of the tv show.

getAvailabilityTimeWindows

public List<DisplayTimeWindow> getAvailabilityTimeWindows()

Returns the availability time windows of the video entity.

getContentRatings

public List<RatingSystem> getContentRatings()

Returns the rating systems for the tv show.

getContentRatingsLegacy

public List<String> getContentRatingsLegacy()

Returns the content ratings of the tv show.

getDescription

public Optional<String> getDescription()

Returns the description of the entity.

getEntityId

public Optional<String> getEntityId()

Returns the id of the entity.

getFirstEpisodeAirDateEpochMillis

public Optional<Long> getFirstEpisodeAirDateEpochMillis()

Returns the air date of the first episode in this show, in milliseconds since Epoch.

getGenres

public List<String> getGenres()

Returns the genres of the tv show.

getInfoPageUri

public Uri getInfoPageUri()

Returns the deeplink to open the details info page of the tv show.

getLastEngagementTimeMillis

public Optional<Long> getLastEngagementTimeMillis()

Returns the last engagement time in milliseconds.

getLastPlayBackPositionTimeMillis

public Optional<Long> getLastPlayBackPositionTimeMillis()

Returns last play back position of the video entity, in milliseconds.

getLatestEpisodeAirDateEpochMillis

public Optional<Long> getLatestEpisodeAirDateEpochMillis()

Returns the air date of the latest episode in this show, in milliseconds since Epoch.

getName

public String getName()

Returns the name of the entity.

getPlatformSpecificPlaybackUris

public ImmutableList<PlatformSpecificUri> getPlatformSpecificPlaybackUris()

Returns the platform specific playback uri's for the tv show entity.

getPlayBackUri

public Optional<Uri> getPlayBackUri()

Returns the on device deeplink to start playing the tv show.

getPosterImages

public List<Image> getPosterImages()

Returns the poster image of the entity.

getPrice

public Optional<Price> getPrice()

Returns the price of the tv show, if available

getRecommendationReason

public Optional<RecommendationReason> getRecommendationReason()

Returns the recommendation reason of the entity.

getSeasonCount

public int getSeasonCount()

Returns the total number of seasons in the current tv show.

getWatchNextType

public Optional<Integer> getWatchNextType()

Returns watch next type of the video entity.