EngagementDecision

data class EngagementDecision(val decisionId: String, val experienceId: String, val accessToken: String, val status: String, val widgets: List<Widget> = emptyList(), val widgetData: JsonObject? = null)

The outcome of an engagement decision.

Constructors

Link copied to clipboard
constructor(decisionId: String, experienceId: String, accessToken: String, status: String, widgets: List<Widget> = emptyList(), widgetData: JsonObject? = null)

Properties

Link copied to clipboard

Per-experience token for polling.

Link copied to clipboard

Stable id for this decision; use it to report outcomes.

Link copied to clipboard

The experience the decision and its enrichment live on.

Link copied to clipboard

COMPLETED on a cache hit, PENDING while generating.

Link copied to clipboard
val widgetData: JsonObject? = null

The decision envelope, when the response carried one.

Link copied to clipboard

The decision widget plus any enrichment widgets it spawned.