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
Kotlin
Copied to your clipboardclass ContentCardMapper private constructor() {private val contentCardSchemaDataMap: MutableMap<String, ContentCardSchemaData> = HashMap()companion object {@JvmStaticval 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
ContentCardSchemaData
map.
Returns
The ContentCardSchemaData
for the given proposition ID, or null if not found.
Syntax
Kotlin
Copied to your clipboardfun getContentCardSchemaData(propositionId: String): ContentCardSchemaData?