VideoClipEntity.Builder


class VideoClipEntity.Builder


Builder class for VideoClipEntity.

Summary

Public constructors

Public functions

VideoClipEntity.Builder!

Adds the availability time windows of the video entity.

VideoClipEntity.Builder!

Adds the availability time window of the video entity.

VideoClipEntity.Builder!

Add platform specific playback uri for the video clip entity.

VideoClipEntity.Builder!

Add platform specific playback uris for the video clip entity.

VideoClipEntity.Builder!

Add a poster image of the entity.

VideoClipEntity.Builder!

Add poster images of the entity.

VideoClipEntity!
VideoClipEntity.Builder!

Sets the creation time of the video, in milliseconds from Epoch.

VideoClipEntity.Builder!

Sets the creator of the video.

VideoClipEntity.Builder!

Sets the image of the creator of the video.

VideoClipEntity.Builder!

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

VideoClipEntity.Builder!

Sets the duration of the video, in milliseconds.

VideoClipEntity.Builder!

Sets content id of the entity.

VideoClipEntity.Builder!

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

VideoClipEntity.Builder!

Sets last play back position of the video entity, in milliseconds.

VideoClipEntity.Builder!

Sets the name of the entity.

VideoClipEntity.Builder!

Sets the on device deeplink to start playing the video.

VideoClipEntity.Builder!

Sets the view count of the video.

VideoClipEntity.Builder!

Sets the watch next type of the video entity.

Public constructors

Builder

Builder()

Public functions

addAllAvailabilityTimeWindows

@CanIgnoreReturnValue
fun addAllAvailabilityTimeWindows(
    availabilityTimeWindows: (Mutable)List<DisplayTimeWindow!>!
): VideoClipEntity.Builder!

Adds the availability time windows of the video entity.

Optional.

addAvailabilityTimeWindow

@CanIgnoreReturnValue
fun addAvailabilityTimeWindow(availabilityTimeWindow: DisplayTimeWindow!): VideoClipEntity.Builder!

Adds the availability time window of the video entity.

Optional.

addPlatformSpecificPlaybackUri

@CanIgnoreReturnValue
fun addPlatformSpecificPlaybackUri(
    platformSpecificPlaybackUri: PlatformSpecificUri!
): VideoClipEntity.Builder!

Add platform specific playback uri for the video clip entity.

Optional.

addPlatformSpecificPlaybackUris

@CanIgnoreReturnValue
fun addPlatformSpecificPlaybackUris(
    platformSpecificPlaybackUris: (Mutable)List<PlatformSpecificUri!>!
): VideoClipEntity.Builder!

Add platform specific playback uris for the video clip entity.

Optional.

addPosterImage

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

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

fun build(): VideoClipEntity!

setCreatedTimeEpochMillis

@CanIgnoreReturnValue
fun setCreatedTimeEpochMillis(createdTimeEpochMillis: Long): VideoClipEntity.Builder!

Sets the creation time of the video, in milliseconds from Epoch.

Required.

setCreator

@CanIgnoreReturnValue
fun setCreator(creator: String!): VideoClipEntity.Builder!

Sets the creator of the video.

Required.

setCreatorImage

@CanIgnoreReturnValue
fun setCreatorImage(creatorImage: Image!): VideoClipEntity.Builder!

Sets the image of the creator of the video.

Optional.

setDownloadedOnDevice

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

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

Optional.

setDurationMillis

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

Sets the duration of the video, in milliseconds.

Required.

setEntityId

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

Sets content id of the entity.

Optional.

setLastEngagementTimeMillis

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

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

Optional.

setLastPlayBackPositionTimeMillis

@CanIgnoreReturnValue
fun setLastPlayBackPositionTimeMillis(lastPlayBackPositionTimeMillis: Long): VideoClipEntity.Builder!

Sets last play back position of the video entity, in milliseconds.

Optional.

setName

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

Sets the name of the entity.

Required.

setPlayBackUri

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

Sets the on device deeplink to start playing the video.

Required.

setViewCount

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

Sets the view count of the video.

Optional.

setWatchNextType

@CanIgnoreReturnValue
fun setWatchNextType(@WatchNextType watchNextType: Int): VideoClipEntity.Builder!

Sets the watch next type of the video entity.

Optional.