MusicVideoEntity.Builder


class MusicVideoEntity.Builder


Builder class for MusicVideoEntity.

Summary

Public constructors

Public functions

MusicVideoEntity.Builder!

Adds artist of the music video.

MusicVideoEntity.Builder!

Adds the list of artists of the music video.

MusicVideoEntity.Builder!

Adds the content rating of the music video.

MusicVideoEntity.Builder!

Adds the list of content ratings of the music video.

MusicVideoEntity.Builder!

Add a poster image of the entity.

MusicVideoEntity.Builder!

Add poster images of the entity.

MusicVideoEntity!
MusicVideoEntity.Builder!

Adds the description of the audio entity.

MusicVideoEntity.Builder!

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

MusicVideoEntity.Builder!

Sets the duration of the music video.

MusicVideoEntity.Builder!

Sets content id of the entity.

MusicVideoEntity.Builder!

Sets a boolean value to indicate if music video has explicit content or not.

MusicVideoEntity.Builder!

Sets the info page uri of the music video.

MusicVideoEntity.Builder!

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

MusicVideoEntity.Builder!

Sets the name of the entity.

MusicVideoEntity.Builder!

Sets the play back uri of the music video.

MusicVideoEntity.Builder!

Sets progress percent complete of the audio entity.

MusicVideoEntity.Builder!

Sets the number of views of the music video.

Public constructors

Builder

Builder()

Public functions

addArtist

@CanIgnoreReturnValue
fun addArtist(artist: String!): MusicVideoEntity.Builder!

Adds artist of the music video.

Optional.

addArtists

@CanIgnoreReturnValue
fun addArtists(artists: (Mutable)List<String!>!): MusicVideoEntity.Builder!

Adds the list of artists of the music video.

Optional.

addContentRating

@CanIgnoreReturnValue
fun addContentRating(contentRating: String!): MusicVideoEntity.Builder!

Adds the content rating of the music video.

Optional.

addContentRatings

@CanIgnoreReturnValue
fun addContentRatings(contentRatings: (Mutable)List<String!>!): MusicVideoEntity.Builder!

Adds the list of content ratings of the music video.

Optional.

addPosterImage

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

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

fun build(): MusicVideoEntity!

setDescription

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

Adds the description of the audio entity.

Optional.

setDownloadedOnDevice

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

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

Optional.

setDurationMillis

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

Sets the duration of the music video.

Required.

setEntityId

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

Sets content id of the entity.

Optional.

setExplicitContent

@CanIgnoreReturnValue
fun setExplicitContent(explicitContent: Boolean): MusicVideoEntity.Builder!

Sets a boolean value to indicate if music video has explicit content or not.

Optional.

setInfoPageUri

@CanIgnoreReturnValue
fun setInfoPageUri(infoPageUri: Uri!): MusicVideoEntity.Builder!

Sets the info page uri of the music video.

Optional.

setLastEngagementTimeMillis

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

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

Optional.

setName

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

Sets the name of the entity.

Required.

setPlayBackUri

@CanIgnoreReturnValue
fun setPlayBackUri(playBackUri: Uri!): MusicVideoEntity.Builder!

Sets the play back uri of the music video.

Required.

setProgressPercentComplete

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

Sets progress percent complete of the audio entity.

Optional

setViewCount

@CanIgnoreReturnValue
fun setViewCount(viewCount: String!): MusicVideoEntity.Builder!

Sets the number of views of the music video.

Optional.