Promo

@JsonClass(generateAdapter = true)
data class Promo(@Json(name = "contentId") val id: String, @Json(name = "catalogType") val type: String, @Json(name = "duration") val durationMs: Double, @Json(name = "start") val startTimeOffsetMs: Double, @Json(name = "end") val endTimeOffsetMs: Double, @Json(name = "skippable") val isSkippable: Boolean = false, @Json(name = "skipOffset") val skipOffsetMs: Double = TIME_VALUE_UNKNOWN) : AdCuePoint

Represents Content’s promotional video ad metadata.

Constructors

Link copied to clipboard
constructor(@Json(name = "contentId") id: String, @Json(name = "catalogType") type: String, @Json(name = "duration") durationMs: Double, @Json(name = "start") startTimeOffsetMs: Double, @Json(name = "end") endTimeOffsetMs: Double, @Json(name = "skippable") isSkippable: Boolean = false, @Json(name = "skipOffset") skipOffsetMs: Double = TIME_VALUE_UNKNOWN)

Properties

Link copied to clipboard
open override val durationMs: Double

The duration of the promo (in milliseconds).

Link copied to clipboard

the content time offset at which the current promo was scheduled to end (in milliseconds).

Link copied to clipboard
open override val id: String

The promo unique identifier.

Link copied to clipboard
open override val isSkippable: Boolean = false

Indicates whether the promo can be skipped by the user.

Link copied to clipboard
open override val skipOffsetMs: Double

The skip offset of the promo (in milliseconds), or TIME_VALUE_UNKNOWN if not available.

Link copied to clipboard
open override val startTimeOffsetMs: Double

the content time offset at which the current promo was scheduled (in milliseconds).

Link copied to clipboard