BookSeriesEntity.Builder


public final class BookSeriesEntity.Builder


Builder class for BookSeriesEntity.

Summary

Public constructors

Public methods

BookSeriesEntity.Builder

Adds the display time window for the book

BookSeriesEntity.Builder

Adds the author of the book series.

BookSeriesEntity.Builder

Adds the list of authors of the book series.

BookSeriesEntity.Builder

Adds the display time window for the book

BookSeriesEntity.Builder

Adds the genre of the book series.

BookSeriesEntity.Builder

Adds the genre of the book series.

BookSeriesEntity.Builder

Add a poster image of the entity.

BookSeriesEntity.Builder

Add poster images of the entity.

BookSeriesEntity
BookSeriesEntity.Builder

Sets the deeplink associated with the book.

BookSeriesEntity.Builder

Sets the availability of the book.

BookSeriesEntity.Builder

Sets the deeplink associated with the book series.

BookSeriesEntity.Builder

Sets a continue book type for the book.

BookSeriesEntity.Builder

Adds the description of the audiobook.

BookSeriesEntity.Builder
@CanIgnoreReturnValue
setDownloadedOnDevice(boolean downloadedOnDevice)

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

BookSeriesEntity.Builder

Sets content id of the entity.

BookSeriesEntity.Builder
@CanIgnoreReturnValue
setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

BookSeriesEntity.Builder

Sets the name of the entity.

BookSeriesEntity.Builder
@CanIgnoreReturnValue
setProgressPercentComplete(int progressPercentComplete)

Sets progress percent complete of the book entity.

BookSeriesEntity.Builder

Sets the rating for the book entity.

Public constructors

Builder

public Builder()

Public methods

addAllDisplayTimeWindow

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

Adds the display time window for the book

Optional.

addAuthor

@CanIgnoreReturnValue
public BookSeriesEntity.Builder addAuthor(String author)

Adds the author of the book series.

Required.

addAuthors

@CanIgnoreReturnValue
public BookSeriesEntity.Builder addAuthors(List<String> authors)

Adds the list of authors of the book series.

Required

addDisplayTimeWindow

@CanIgnoreReturnValue
public BookSeriesEntity.Builder addDisplayTimeWindow(DisplayTimeWindow displayTimeWindow)

Adds the display time window for the book

Optional.

addGenre

@CanIgnoreReturnValue
public BookSeriesEntity.Builder addGenre(String genre)

Adds the genre of the book series.

Optional.

addGenres

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

Adds the genre of the book series.

Optional.

addPosterImage

@CanIgnoreReturnValue
public BookSeriesEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

public BookSeriesEntity build()

setActionLinkUri

@CanIgnoreReturnValue
public BookSeriesEntity.Builder setActionLinkUri(Uri actionLinkUri)

Sets the deeplink associated with the book.

Required

setAvailability

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

Sets the availability of the book.

Optional.

setBookCount

@CanIgnoreReturnValue
public BookSeriesEntity.Builder setBookCount(int bookCount)

Sets the deeplink associated with the book series.

Required

setContinueBookType

@CanIgnoreReturnValue
public BookSeriesEntity.Builder setContinueBookType(int continueBookType)

Sets a continue book type for the book.

Optional.

setDescription

@CanIgnoreReturnValue
public BookSeriesEntity.Builder setDescription(String description)

Adds the description of the audiobook.

Optional.

setDownloadedOnDevice

@CanIgnoreReturnValue
public BookSeriesEntity.Builder setDownloadedOnDevice(boolean downloadedOnDevice)

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

Optional.

setEntityId

@CanIgnoreReturnValue
public BookSeriesEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
public BookSeriesEntity.Builder setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

Optional.

setName

@CanIgnoreReturnValue
public BookSeriesEntity.Builder setName(String name)

Sets the name of the entity.

Required.

setProgressPercentComplete

@CanIgnoreReturnValue
public BookSeriesEntity.Builder setProgressPercentComplete(int progressPercentComplete)

Sets progress percent complete of the book entity.

Optional.

setRating

@CanIgnoreReturnValue
public BookSeriesEntity.Builder setRating(Rating rating)

Sets the rating for the book entity.

Optional.