AudiobookEntity.Builder


class AudiobookEntity.Builder


Builder class for AudiobookEntity.

Summary

Public constructors

Public functions

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!

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!

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!

Sets progress percent complete of the book entity.

AudiobookEntity.Builder!

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

Builder()

Public functions

addAllDisplayTimeWindow

@CanIgnoreReturnValue
fun addAllDisplayTimeWindow(
    displayTimeWindows: (Mutable)List<DisplayTimeWindow!>!
): AudiobookEntity.Builder!

Adds the display time window for the book

Optional.

addAuthor

@CanIgnoreReturnValue
fun addAuthor(author: String!): AudiobookEntity.Builder!

Adds the author of the audiobook.

Required.

addAuthors

@CanIgnoreReturnValue
fun addAuthors(author: (Mutable)List<String!>!): AudiobookEntity.Builder!

Adds the list of authors of the audiobook.

Required

addDisplayTimeWindow

@CanIgnoreReturnValue
fun addDisplayTimeWindow(displayTimeWindow: DisplayTimeWindow!): AudiobookEntity.Builder!

Adds the display time window for the book

Optional.

addGenre

@CanIgnoreReturnValue
fun addGenre(genre: String!): AudiobookEntity.Builder!

Adds the genre of the book series.

Optional.

addGenres

@CanIgnoreReturnValue
fun addGenres(genres: (Mutable)List<String!>!): AudiobookEntity.Builder!

Adds the genre of the book series.

Optional.

addNarrator

@CanIgnoreReturnValue
fun addNarrator(narrator: String!): AudiobookEntity.Builder!

Adds the narrator of the audiobook.

Required.

addNarrators

@CanIgnoreReturnValue
fun addNarrators(narrator: (Mutable)List<String!>!): AudiobookEntity.Builder!

Adds the list of narrators of the audiobook.

Required.

addPosterImage

@CanIgnoreReturnValue
fun addPosterImage(image: Image!): AudiobookEntity.Builder!

Add a poster image of the entity.

Required.

addPosterImages

@CanIgnoreReturnValue
fun addPosterImages(images: (Mutable)List<Image!>!): AudiobookEntity.Builder!

Add poster images of the entity.

Required.

build

fun build(): AudiobookEntity!

setActionLinkUri

@CanIgnoreReturnValue
fun setActionLinkUri(actionLinkUri: Uri!): AudiobookEntity.Builder!

Sets the deeplink associated with the book.

Required

setAvailability

@CanIgnoreReturnValue
fun setAvailability(@ContentAvailability availability: Int): AudiobookEntity.Builder!

Sets the availability of the book.

Optional.

setContinueBookType

@CanIgnoreReturnValue
fun setContinueBookType(continueBookType: Int): AudiobookEntity.Builder!

Sets a continue book type for the book.

Optional.

setDescription

@CanIgnoreReturnValue
fun setDescription(description: String!): AudiobookEntity.Builder!

Adds the description of the audiobook.

Optional.

setDownloadedOnDevice

@CanIgnoreReturnValue
fun setDownloadedOnDevice(downloadedOnDevice: Boolean): AudiobookEntity.Builder!

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

Optional.

setDurationMillis

@CanIgnoreReturnValue
fun setDurationMillis(durationMillis: Long): AudiobookEntity.Builder!

Adds the duration of the audiobook.

Optional.

setEntityId

@CanIgnoreReturnValue
fun setEntityId(entityId: String!): AudiobookEntity.Builder!

Sets content id of the video entity.

Optional.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
fun setLastEngagementTimeMillis(lastEngagementTimeMillis: Long): AudiobookEntity.Builder!

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

Optional.

setName

@CanIgnoreReturnValue
fun setName(name: String!): AudiobookEntity.Builder!

Sets the name of the entity.

Required.

setPrice

@CanIgnoreReturnValue
fun setPrice(price: Price!): AudiobookEntity.Builder!

Adds the price of the audiobook.

Optional.

setProgressPercentComplete

@CanIgnoreReturnValue
fun setProgressPercentComplete(progressPercentComplete: Int): AudiobookEntity.Builder!

Sets progress percent complete of the book entity.

Optional.

setPublishDateEpochMillis

@CanIgnoreReturnValue
fun setPublishDateEpochMillis(publishDateEpochMillis: Long): AudiobookEntity.Builder!

Sets publishing date of the ebook, in milliseconds.

Optional.

setRating

@CanIgnoreReturnValue
fun setRating(rating: Rating!): AudiobookEntity.Builder!

Sets the rating for the book entity.

Optional.

setSeriesName

@CanIgnoreReturnValue
fun setSeriesName(seriesName: String!): AudiobookEntity.Builder!

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

Optional.

setSeriesUnitIndex

@CanIgnoreReturnValue
fun setSeriesUnitIndex(seriesUnitIndex: Int!): AudiobookEntity.Builder!

Adds the index number of the audiobook in the series.

Optional.