TvEpisodeEntity

public final class TvEpisodeEntity 
extends Entity 

An object representing a tv episode.

Summary

Nested types

public final class TvEpisodeEntity.Builder

Builder class for TvEpisodeEntity .

Public fields

final long
final int
final long
final Uri

Public methods

long

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

int

Returns the availability of the episode.

List < DisplayTimeWindow >

Returns the availability time windows of the video entity.

List < RatingSystem >

Returns the rating systems for the tv episode.

List < String >

This method is deprecated.

use getContentRatings instead

long

Returns the duration of the tv episode, in milliseconds.

Optional < String >

Returns the id of the entity.

Optional < String >

Returns the episode number of the tv episode.

List < String >

Returns the genres of the tv episode.

Optional < Uri >

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

Optional < Boolean >

Returns if next episode is available.

Optional < Long >

Returns the last engagement time in milliseconds.

Optional < Long >

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

String
getName ()

Returns the name of the entity.

List < PlatformSpecificUri >

Returns the platform specific playback uris for the live tv episode.

Uri

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

List < Image >

Returns the poster image of the entity.

Optional < Price >

Returns the price of the tv episode, if available

Optional < String >

Returns the season number of the tv episode.

Optional < String >

Returns the season title of the tv episode.

Optional < String >

Returns the show title of the tv episode.

Optional < Integer >

Returns watch next type of the video entity.

boolean

Returns whether the tv episode is downloaded on device or not

Public fields

airDateEpochMillis

public final long  airDateEpochMillis 

availability

public final int  availability 

durationMillis

public final long  durationMillis 

playBackUri

public final  Uri 
 playBackUri 

Public methods

getAirDateEpochMillis

public long  getAirDateEpochMillis 
()

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

getAvailability

@ ContentAvailability 

public int  getAvailability ()

Returns the availability of the episode.

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 episode.

getContentRatingsLegacy

public  List 
< String 
   getContentRatingsLegacy 
 
 
()

Returns the content ratings of the tv episode.

getDurationMillis

public long  getDurationMillis 
()

Returns the duration of the tv episode, in milliseconds.

getEntityId

public  Optional 
< String 
 getEntityId 
()

Returns the id of the entity.

getEpisodeDisplayNumber

public  Optional 
< String 
 getEpisodeDisplayNumber 
()

Returns the episode number of the tv episode.

getGenres

public  List 
< String 
 getGenres 
()

Returns the genres of the tv episode.

getInfoPageUri

public  Optional 
< Uri 
 getInfoPageUri 
()

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

getIsNextEpisodeAvailable

public  Optional 
< Boolean 
 getIsNextEpisodeAvailable 
()

Returns if next episode is available.

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.

getName

public  String 
 getName 
()

Returns the name of the entity.

getPlatformSpecificPlaybackUris

public  List 
< PlatformSpecificUri 
 getPlatformSpecificPlaybackUris 
()

Returns the platform specific playback uris for the live tv episode.

getPlayBackUri

public  Uri 
 getPlayBackUri 
()

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

getPosterImages

public  List 
< Image 
 getPosterImages 
()

Returns the poster image of the entity.

getPrice

public  Optional 
< Price 
 getPrice 
()

Returns the price of the tv episode, if available

getSeasonNumber

public  Optional 
< String 
 getSeasonNumber 
()

Returns the season number of the tv episode.

getSeasonTitle

public  Optional 
< String 
 getSeasonTitle 
()

Returns the season title of the tv episode.

getShowTitle

public  Optional 
< String 
 getShowTitle 
()

Returns the show title of the tv episode.

getWatchNextType

public  Optional 
< Integer 
 getWatchNextType 
()

Returns watch next type of the video entity.

isDownloadedOnDevice

public boolean  isDownloadedOnDevice 
()

Returns whether the tv episode is downloaded on device or not