StoryButtonComponent

data class StoryButtonComponent(id: String, text: String, actionUrl: String?, products: List<STRProductItem>?, customPayload: String?) : StoryComponent

This data class represents the ButtonAction component.

Constructors

StoryButtonComponent
Link copied to clipboard
fun StoryButtonComponent(id: String, text: String, actionUrl: String?, products: List<STRProductItem>?, customPayload: String?)

Properties

actionUrl
Link copied to clipboard
val actionUrl: String?

action url assigned to the interactive component

customPayload
Link copied to clipboard
open override val customPayload: String?

Custom payload for this ButtonAction component if exists

id
Link copied to clipboard
open override val id: String

Id of the interactive component

products
Link copied to clipboard
val products: List<STRProductItem>?

products assigned to the interactive component

text
Link copied to clipboard
val text: String

text of the interactive component

type
Link copied to clipboard
val type: StoryComponentType

Type of the interactive component