PollCreateParams

data class PollCreateParams @JvmOverloads constructor(var title: String, var optionTexts: List<String>, var data: PollData? = null, var allowUserSuggestion: Boolean? = null, var allowMultipleVotes: Boolean? = null, var closeAt: Long = Poll.POLL_DEFAULT_TS)

Parameters for creating poll and updating poll operations. For poll creation, title and optionTexts are required and all other members are optional. For poll update, all members are optional.

Since

4.1.0

See also

Constructors

Link copied to clipboard
constructor(title: String, optionTexts: List<String>, data: PollData? = null, allowUserSuggestion: Boolean? = null, allowMultipleVotes: Boolean? = null, closeAt: Long = Poll.POLL_DEFAULT_TS)

Properties

Link copied to clipboard

Whether to allow multiple vote casting

Link copied to clipboard

Whether to allow user-suggested options

Link copied to clipboard

Unix timestamp at which the poll has closed or will close (second)

Link copied to clipboard

An additional json data to accompany the poll.

Link copied to clipboard

options for this poll.

Link copied to clipboard

Title of the poll.