PollOption

data class PollOption(val id: String?, val text: String, val extraData: Map<String, Any> = emptyMap())

Model representing the input required to create/update a poll option.

Constructors

Link copied to clipboard
constructor(text: String, extraData: Map<String, Any> = emptyMap())

Constructs a PollOption without an id.

constructor(id: String?, text: String, extraData: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard

Any additional data associated with the option.

Link copied to clipboard
val id: String?

The ID of the option to update. Should be null when used for creating a new poll option.

Link copied to clipboard

The text of the option.