MediaProduct

data class MediaProduct(val productType: ProductType, val productId: String, val sourceType: String? = null, val sourceId: String? = null, val referenceId: String? = null) : BaseMediaProduct

A media product. The productType and the productId together determine what media product this is. Source information is only used as extra information used for tracking purposes and may be omitted.

Parameters

productType

The type of the media product as ProductType.

productId

The id of a media product as String.

sourceType

The type of source as String. May be null or empty.

sourceId

The id of source as String. May be null or empty.

referenceId

A unique id as String. Typically used to differentiate on an otherwise identical media product. May be null or empty.

Constructors

Link copied to clipboard
constructor(productType: ProductType, productId: String, sourceType: String? = null, sourceId: String? = null, referenceId: String? = null)

Properties

Link copied to clipboard
open override val productId: String
Link copied to clipboard
open override val productType: ProductType
Link copied to clipboard
val referenceId: String? = null
Link copied to clipboard
open override val sourceId: String? = null
Link copied to clipboard
open override val sourceType: String? = null