StoryPollComponent

data class StoryPollComponent(id: String, title: String, options: List<String>, selectedOptionIndex: Int, customPayload: String?) : StoryComponent

This data class represents the Poll component.

Constructors

StoryPollComponent
Link copied to clipboard
fun StoryPollComponent(id: String, title: String, options: List<String>, selectedOptionIndex: Int, customPayload: String?)

Properties

customPayload
Link copied to clipboard
val customPayload: String?

Custom payload for this poll if exists

id
Link copied to clipboard
open override val id: String

Id of the interactive component

options
Link copied to clipboard
val options: List<String>

List of options in the poll

selectedOptionIndex
Link copied to clipboard
val selectedOptionIndex: Int

Option index that the user selected

title
Link copied to clipboard
val title: String

Title of the poll if exists

type
Link copied to clipboard
val type: StoryComponentType

Type of the interactive component