MediaComposition

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

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
Link copied to clipboard

urn of the chapter we want to use.

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

have to contain one chapter with urn = chapterUrn

Link copied to clipboard

Main chapter

Functions

Link copied to clipboard

Find chapter by urn inside listChapter