MediaComposition

data class MediaComposition(val chapterUrn: String, val listChapter: List<Chapter>, val comScoreAnalyticsLabels: Map<String, String>? = null, val analyticsLabels: Map<String, String>? = null) : DataWithAnalytics

Represents a media composition.

Constructors

Link copied to clipboard
constructor(chapterUrn: String, listChapter: List<Chapter>, comScoreAnalyticsLabels: Map<String, String>? = null, analyticsLabels: Map<String, String>? = null)

Properties

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

Labels for Commanders Act analytics.

Link copied to clipboard

The URN of the main chapter within this composition.

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

Labels for ComScore analytics.

Link copied to clipboard
@SerialName(value = "chapterList")
val listChapter: List<Chapter>

A list of Chapters, which must include the main chapter identified by chapterUrn.

Link copied to clipboard

The main chapter, identified by chapterUrn.

Functions

Link copied to clipboard

Finds a Chapter within the list of chapters by its URN.