CatalogObject

Package: com.salesforce.marketingcloud.sfmcsdk.components.events

Salesforce Marketing Cloud Unified SDK - Version 11.0.0

Description 

A catalog object representing various trackable items such as products or blog posts.

Class Declaration 

1class CatalogObject @JvmOverloads constructor(
2    val type: String,
3    val id: String,
4    val attributes: Map<String, Any> = mapOf(),
5    val relatedCatalogObjects: Map<String, List<String>> = mapOf()
6)

Constructor 

CatalogObject 

1@JvmOverloads
2constructor(
3    type: String,
4    id: String,
5    attributes: Map<String, Any> = mapOf(),
6    relatedCatalogObjects: Map<String, List<String>> = mapOf()
7)

Parameters:

  • type - A type name representing the catalog object
  • id - A unique identifier for the catalog object
  • attributes - A map of user-supplied values (default: empty map)
  • relatedCatalogObjects - A map of related catalog objects (default: empty map)

Properties 

type 

1val type: String

A type name representing the catalog object.

id 

1val id: String

A unique id representing the catalog object.

attributes 

1val attributes: Map<String, Any>

A map of user-supplied values.

relatedCatalogObjects 

1val relatedCatalogObjects: Map<String, List<String>>

A map of related catalog objects.

Platform 

  • Target: androidJvm