EbookEntity.Builder


class EbookEntity.Builder


Builder class for EbookEntity.

Summary

Public constructors

Public functions

EbookEntity.Builder!

Adds the display time window for the book

EbookEntity.Builder!

Adds author of the ebook.

EbookEntity.Builder!

Adds the list of authors of the ebook.

EbookEntity.Builder!

Adds the display time window for the book

EbookEntity.Builder!

Adds genre of the ebook.

EbookEntity.Builder!

Adds genre of the ebook.

EbookEntity.Builder!

Add a poster image of the entity.

EbookEntity.Builder!

Add poster images of the entity.

EbookEntity!
EbookEntity.Builder!

Sets the deeplink associated with the book.

EbookEntity.Builder!

Sets the availability of the book.

EbookEntity.Builder!

Sets a continue book type for the book.

EbookEntity.Builder!

Adds the description of the ebook.

EbookEntity.Builder!

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

EbookEntity.Builder!

Sets content id of the video entity.

EbookEntity.Builder!

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

EbookEntity.Builder!

Sets the name of the entity.

EbookEntity.Builder!

Adds the page count of the ebook.

EbookEntity.Builder!

Adds the price of the ebook.

EbookEntity.Builder!

Sets progress percent complete of the book entity.

EbookEntity.Builder!

Sets publishing date of the ebook, in milliseconds.

EbookEntity.Builder!

Sets the rating for the book entity.

EbookEntity.Builder!

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

EbookEntity.Builder!

Adds the index number of the ebook in the series.

Public constructors

Builder

Builder()

Public functions

addAllDisplayTimeWindow

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

Adds the display time window for the book

Optional.

addAuthor

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

Adds author of the ebook.

Required.

addAuthors

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

Adds the list of authors of the ebook.

Required.

addDisplayTimeWindow

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

Adds the display time window for the book

Optional.

addGenre

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

Adds genre of the ebook.

Optional.

addGenres

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

Adds genre of the ebook.

Optional.

addPosterImage

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

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

fun build(): EbookEntity!

setActionLinkUri

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

Sets the deeplink associated with the book.

Required

setAvailability

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

Sets the availability of the book.

Optional.

setContinueBookType

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

Sets a continue book type for the book.

Optional.

setDescription

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

Adds the description of the ebook.

Optional.

setDownloadedOnDevice

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

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

Optional.

setEntityId

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

Sets content id of the video entity.

Optional.

setLastEngagementTimeMillis

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

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

Optional.

setName

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

Sets the name of the entity.

Required.

setPageCount

@CanIgnoreReturnValue
fun setPageCount(pageCount: Int): EbookEntity.Builder!

Adds the page count of the ebook.

Optional.

setPrice

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

Adds the price of the ebook.

Optional.

setProgressPercentComplete

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

Sets progress percent complete of the book entity.

Optional.

setPublishDateEpochMillis

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

Sets publishing date of the ebook, in milliseconds.

Optional.

setRating

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

Sets the rating for the book entity.

Optional.

setSeriesName

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

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

Optional.

setSeriesUnitIndex

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

Adds the index number of the ebook in the series.

Optional.