Resource

data class Resource(val url: String, val type: Resource.Type, val tokenType: Resource.TokenType = TokenType.NONE, val drmList: List<Drm>? = null, val comScoreAnalyticsLabels: Map<String, String>? = null, val analyticsLabels: Map<String, String>? = null) : DataWithAnalytics

Represents a media resource.

Constructors

Link copied to clipboard
constructor(url: String, type: Resource.Type, tokenType: Resource.TokenType = TokenType.NONE, drmList: List<Drm>? = null, comScoreAnalyticsLabels: Map<String, String>? = null, analyticsLabels: Map<String, String>? = null)

Types

Link copied to clipboard

Represents the type of token.

Link copied to clipboard

Represents the type of resource.

Properties

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

Labels for Commanders Act analytics.

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

Labels for ComScore analytics.

Link copied to clipboard

A list of DRM configurations for the resource, if applicable.

Link copied to clipboard

The type of token required to access the resource.

Link copied to clipboard
@SerialName(value = "streaming")
val type: Resource.Type

The type of the resource.

Link copied to clipboard
val url: String

The URL of the resource.