AudiobookEntity.Builder

public final class AudiobookEntity.Builder


Builder class for AudiobookEntity.

Summary

Public constructors

Public methods

AudiobookEntity.Builder

Adds the display time window for the book

AudiobookEntity.Builder

Adds the author of the audiobook.

AudiobookEntity.Builder

Adds the list of authors of the audiobook.

AudiobookEntity.Builder

Adds the display time window for the book

AudiobookEntity.Builder

Adds the genre of the book series.

AudiobookEntity.Builder

Adds the genre of the book series.

AudiobookEntity.Builder

Adds the narrator of the audiobook.

AudiobookEntity.Builder

Adds the list of narrators of the audiobook.

AudiobookEntity.Builder

Add a poster image of the entity.

AudiobookEntity.Builder

Add poster images of the entity.

AudiobookEntity
AudiobookEntity.Builder

Sets the deeplink associated with the book.

AudiobookEntity.Builder

Sets the availability of the book.

AudiobookEntity.Builder

Sets a continue book type for the book.

AudiobookEntity.Builder

Adds the description of the audiobook.

AudiobookEntity.Builder
@CanIgnoreReturnValue
setDownloadedOnDevice(boolean downloadedOnDevice)

Sets a boolean value to indicate if book is downloaded on device or not.

AudiobookEntity.Builder

Adds the duration of the audiobook.

AudiobookEntity.Builder

Sets content id of the video entity.

AudiobookEntity.Builder
@CanIgnoreReturnValue
setLastEngagementTimeMillis(long lastEngagementTimeMillis)

Sets last engagement time of the entity, in milliseconds since Epoch.

AudiobookEntity.Builder

Sets the name of the entity.

AudiobookEntity.Builder

Adds the price of the audiobook.

AudiobookEntity.Builder
@CanIgnoreReturnValue
setProgressPercentComplete(int progressPercentComplete)

Sets progress percent complete of the book entity.

AudiobookEntity.Builder
@CanIgnoreReturnValue
setPublishDateEpochMillis(long publishDateEpochMillis)

Sets publishing date of the ebook, in milliseconds.

AudiobookEntity.Builder

Sets the rating for the book entity.

AudiobookEntity.Builder

Adds the name of the series that the audiobook belongs to.

AudiobookEntity.Builder

Adds the index number of the audiobook in the series.

Public constructors

Builder

public Builder()

Public methods

addAllDisplayTimeWindow

@CanIgnoreReturnValue
public AudiobookEntity.Builder addAllDisplayTimeWindow(List<DisplayTimeWindow> displayTimeWindows)

Adds the display time window for the book

Optional.

addAuthor

@CanIgnoreReturnValue
public AudiobookEntity.Builder addAuthor(String author)

Adds the author of the audiobook.

Required.

addAuthors

@CanIgnoreReturnValue
public AudiobookEntity.Builder addAuthors(List<String> author)

Adds the list of authors of the audiobook.

Required

addDisplayTimeWindow

@CanIgnoreReturnValue
public AudiobookEntity.Builder addDisplayTimeWindow(DisplayTimeWindow displayTimeWindow)

Adds the display time window for the book

Optional.

addGenre

@CanIgnoreReturnValue
public AudiobookEntity.Builder addGenre(String genre)

Adds the genre of the book series.

Optional.

addGenres

@CanIgnoreReturnValue
public AudiobookEntity.Builder addGenres(List<String> genres)

Adds the genre of the book series.

Optional.

addNarrator

@CanIgnoreReturnValue
public AudiobookEntity.Builder addNarrator(String narrator)

Adds the narrator of the audiobook.

Required.

addNarrators

@CanIgnoreReturnValue
public AudiobookEntity.Builder addNarrators(List<String> narrator)

Adds the list of narrators of the audiobook.

Required.

addPosterImage

@CanIgnoreReturnValue
public AudiobookEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

@CanIgnoreReturnValue
public AudiobookEntity.Builder addPosterImages(List<Image> images)

Add poster images of the entity.

Required.

build

public AudiobookEntity build()

setActionLinkUri

@CanIgnoreReturnValue
public AudiobookEntity.Builder setActionLinkUri(Uri actionLinkUri)

Sets the deeplink associated with the book.

Required

setAvailability

@CanIgnoreReturnValue
public AudiobookEntity.Builder setAvailability(@ContentAvailability int availability)

Sets the availability of the book.

Optional.

setContinueBookType

@CanIgnoreReturnValue
public AudiobookEntity.Builder setContinueBookType(int continueBookType)

Sets a continue book type for the book.

Optional.

setDescription

@CanIgnoreReturnValue
public AudiobookEntity.Builder setDescription(String description)

Adds the description of the audiobook.

Optional.

setDownloadedOnDevice

@CanIgnoreReturnValue
public AudiobookEntity.Builder setDownloadedOnDevice(boolean downloadedOnDevice)

Sets a boolean value to indicate if book is downloaded on device or not.

Optional.

setDurationMillis

@CanIgnoreReturnValue
public AudiobookEntity.Builder setDurationMillis(long durationMillis)

Adds the duration of the audiobook.

Optional.

setEntityId

@CanIgnoreReturnValue
public AudiobookEntity.Builder setEntityId(String entityId)

Sets content id of the video entity.

Optional.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
public AudiobookEntity.Builder setLastEngagementTimeMillis(long lastEngagementTimeMillis)

Sets last engagement time of the entity, in milliseconds since Epoch.

Optional.

setName

@CanIgnoreReturnValue
public AudiobookEntity.Builder setName(String name)

Sets the name of the entity.

Required.

setPrice

@CanIgnoreReturnValue
public AudiobookEntity.Builder setPrice(Price price)

Adds the price of the audiobook.

Optional.

setProgressPercentComplete

@CanIgnoreReturnValue
public AudiobookEntity.Builder setProgressPercentComplete(int progressPercentComplete)

Sets progress percent complete of the book entity.

Optional.

setPublishDateEpochMillis

@CanIgnoreReturnValue
public AudiobookEntity.Builder setPublishDateEpochMillis(long publishDateEpochMillis)

Sets publishing date of the ebook, in milliseconds.

Optional.

setRating

@CanIgnoreReturnValue
public AudiobookEntity.Builder setRating(Rating rating)

Sets the rating for the book entity.

Optional.

setSeriesName

@CanIgnoreReturnValue
public AudiobookEntity.Builder setSeriesName(String seriesName)

Adds the name of the series that the audiobook belongs to.

Optional.

setSeriesUnitIndex

@CanIgnoreReturnValue
public AudiobookEntity.Builder setSeriesUnitIndex(Integer seriesUnitIndex)

Adds the index number of the audiobook in the series.

Optional.