StoryPollComponent

data class StoryPollComponent(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(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
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