ContentCardMapper
Singleton class used to store a mapping between valid ContentCardSchemaData and unique proposition IDs. The schema data is used when sending proposition track requests to Adobe Journey Optimizer.
Class Definition
data-slots=heading, code
data-repeat=1
data-languages=Kotlin
Kotlin
class ContentCardMapper private constructor() {
private val contentCardSchemaDataMap: MutableMap<String, ContentCardSchemaData> = HashMap()
companion object {
@JvmStatic
val instance: ContentCardMapper by lazy { ContentCardMapper() }
}
}
Methods
getContentCardSchemaData
Returns a ContentCardSchemaData object for the given proposition ID.
Parameters
- propositionId - the proposition ID to use as a key in the
ContentCardSchemaDatamap.
Returns
The ContentCardSchemaData for the given proposition ID, or null if not found.
Syntax
data-slots=heading, code
data-repeat=1
data-languages=Kotlin
Kotlin
fun getContentCardSchemaData(propositionId: String): ContentCardSchemaData?