VerticalFeedItemPollComponent

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

This data class represents the Poll component.

Constructors

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

Properties

customPayload
Link copied to clipboard
open override 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: VerticalFeedItemComponentType

Type of the interactive component