Chapter

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, val spriteSheet: SpriteSheet? = null) : DataWithAnalytics

Represents a Chapter within a media.

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, spriteSheet: SpriteSheet? = null)

Properties

Link copied to clipboard
@SerialName(value = "analyticsMetadata")
open override val analyticsLabels: Map<String, String>?

Labels for Commanders Act analytics.

Link copied to clipboard

Reason for blocking the chapter, if applicable.

Link copied to clipboard
@SerialName(value = "analyticsData")
open override val comScoreAnalyticsLabels: Map<String, String>?

Labels for ComScore analytics.

Link copied to clipboard

A detailed description of the chapter.

Link copied to clipboard

Start time of the chapter within the full-length media (in milliseconds).

Link copied to clipboard

End time of the chapter within the full-length media (in milliseconds).

Link copied to clipboard

URN of the full-length media this chapter is a part of.

Link copied to clipboard

URL of an image representing the chapter.

Link copied to clipboard

Indicates whether this represents a full-length chapter.

Link copied to clipboard
val lead: String?

A short introductory text for the chapter.

Link copied to clipboard
@SerialName(value = "resourceList")
val listResource: List<Resource>?

List of resources associated with this chapter.

Link copied to clipboard
@SerialName(value = "segmentList")
val listSegment: List<Segment>?

List of segments within this chapter.

Link copied to clipboard

The type of media this chapter represents.

Link copied to clipboard

The SpriteSheet information if available.

Link copied to clipboard

List of time intervals relevant to the chapter.

Link copied to clipboard

Title of the chapter.

Link copied to clipboard
val urn: String

Unique identifier for the chapter.

Link copied to clipboard
val validFrom: Instant?

The Instant when the Chapter becomes valid.

Link copied to clipboard
val validTo: Instant?

The Instant until when the Chapter is valid.