GenericAudioEntity


public final class GenericAudioEntity extends Entity


An object representing a generic audio entity.

There are bespoke entity types for audio entities, but this entity type can be used to represent any audio entity which does not fit into one of the bespoke types.

Summary

Nested types

Builder class for GenericAudioEntity.

Public methods

Uri

Returns the action uri of the entity.

Optional<String>

Returns the callout of the entity.

Optional<String>

Returns the callout fine print of the entity.

ImmutableList<DisplayTimeWindow>

Returns the display time windows of the entity.

Optional<String>

Returns the id of the entity.

Optional<Long>

Returns the last engagement time in milliseconds.

int

Returns the listen next type of the entity.

String

Returns the name of the entity.

List<Image>

Returns the poster image of the entity.

Optional<Price>

Returns the price of the entity.

Optional<Integer>

Returns the progress percent complete of the entity.

Optional<Rating>

Returns the rating of the entity.

ImmutableList<String>

Returns a list of subtitles of the entity.

Optional<Boolean>

Returns whether the entity is a music artist.

Optional<Boolean>

Returns whether the entity is a book.

Optional<Boolean>

Returns whether the content is downloaded on device.

Optional<Boolean>

Returns whether the content is explicit.

Optional<Boolean>

Returns whether the entity is a talk (podcast).

Optional<Boolean>

Returns whether the entity is a video.

Bundle

Public fields

actionUri

public final Uri actionUri

displayTimeWindows

public final ImmutableList<DisplayTimeWindowdisplayTimeWindows

listenNextType

@ListenNextType
public final int listenNextType

subtitleList

public final ImmutableList<StringsubtitleList

Public methods

getActionUri

public Uri getActionUri()

Returns the action uri of the entity.

getCallout

public Optional<StringgetCallout()

Returns the callout of the entity.

getCalloutFinePrint

public Optional<StringgetCalloutFinePrint()

Returns the callout fine print of the entity.

getDisplayTimeWindows

public ImmutableList<DisplayTimeWindowgetDisplayTimeWindows()

Returns the display time windows of the entity.

getEntityId

public Optional<StringgetEntityId()

Returns the id of the entity.

getLastEngagementTimeMillis

public Optional<LonggetLastEngagementTimeMillis()

Returns the last engagement time in milliseconds.

getListenNextType

@ListenNextType
public int getListenNextType()

Returns the listen next type of the entity.

getName

public String getName()

Returns the name of the entity.

getPosterImages

public List<ImagegetPosterImages()

Returns the poster image of the entity.

getPrice

public Optional<PricegetPrice()

Returns the price of the entity.

getProgressPercentComplete

public Optional<IntegergetProgressPercentComplete()

Returns the progress percent complete of the entity.

getRating

public Optional<RatinggetRating()

Returns the rating of the entity.

getSubtitleList

public ImmutableList<StringgetSubtitleList()

Returns a list of subtitles of the entity.

isArtist

public Optional<BooleanisArtist()

Returns whether the entity is a music artist.

isBook

public Optional<BooleanisBook()

Returns whether the entity is a book.

isDownloadedOnDevice

public Optional<BooleanisDownloadedOnDevice()

Returns whether the content is downloaded on device.

isExplicitContent

public Optional<BooleanisExplicitContent()

Returns whether the content is explicit.

isTalk

public Optional<BooleanisTalk()

Returns whether the entity is a talk (podcast).

isVideoSupported

public Optional<BooleanisVideoSupported()

Returns whether the entity is a video.

toBundle

public Bundle toBundle()