Chapter

@Serializable
data class Chapter(val urn: String, val title: String, val imageUrl: String, val mediaType: MediaType, val lead: String? = null, val description: String? = null, val blockReason: BlockReason? = null, val fullLengthUrn: String? = null, val fullLengthMarkIn: Long? = null, val fullLengthMarkOut: Long? = null, val listSegment: List<Segment>? = null, val listResource: List<Resource>? = null, val comScoreAnalyticsLabels: Map<String, String>? = null, val analyticsLabels: Map<String, String>? = null, val timeIntervalList: List<TimeInterval>? = null, val validFrom: Instant? = null, val validTo: Instant? = null) : DataWithAnalytics

Chapter

Constructors

Link copied to clipboard
constructor(urn: String, title: String, imageUrl: String, mediaType: MediaType, lead: String? = null, description: String? = null, blockReason: BlockReason? = null, fullLengthUrn: String? = null, fullLengthMarkIn: Long? = null, fullLengthMarkOut: Long? = null, listSegment: List<Segment>? = null, listResource: List<Resource>? = null, comScoreAnalyticsLabels: Map<String, String>? = null, analyticsLabels: Map<String, String>? = null, timeIntervalList: List<TimeInterval>? = null, validFrom: Instant? = null, validTo: Instant? = null)

Create empty Chapter

Properties

Link copied to clipboard
@SerialName(value = "analyticsMetadata")
open override val analyticsLabels: Map<String, String>? = null
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "analyticsData")
open override val comScoreAnalyticsLabels: Map<String, String>? = null
Link copied to clipboard
val description: String? = null
Link copied to clipboard
val fullLengthMarkIn: Long? = null
Link copied to clipboard
val fullLengthMarkOut: Long? = null
Link copied to clipboard
val fullLengthUrn: String? = null
Link copied to clipboard
Link copied to clipboard

If it is a full length chapter.

Link copied to clipboard
val lead: String? = null
Link copied to clipboard
@SerialName(value = "resourceList")
val listResource: List<Resource>? = null
Link copied to clipboard
@SerialName(value = "segmentList")
val listSegment: List<Segment>? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: String
Link copied to clipboard
val validFrom: Instant? = null

The Instant when the Chapter becomes valid.

Link copied to clipboard
val validTo: Instant? = null

The Instant until when the Chapter is valid.