UpdatePollRequest
data class UpdatePollRequest(val id: String, val name: String, val allowAnswers: Boolean? = null, val allowUserSuggestedOptions: Boolean? = null, val description: String? = null, val enforceUniqueVote: Boolean? = null, val isClosed: Boolean? = null, val maxVotesAllowed: Int? = null, val options: List<PollOption>? = null, val votingVisibility: VotingVisibility = VotingVisibility.PUBLIC, val extraData: Map<String, Any> = emptyMap())
Model holding request data for updating a poll.
Parameters
id
The unique identifier of the poll to be updated.
name
The name of the poll.
allowAnswers
Indicates whether users can suggest user defined answers.
allowUserSuggestedOptions
Indicates whether users can suggest new options.
description
A description of the poll.
enforceUniqueVote
Indicates whether users can cast multiple votes.
maxVotesAllowed
Indicates the maximum amount of votes a user can cast.
options
The list of options for the poll.
votingVisibility
The visibility of the poll.
extraData
A map of additional key-value pairs to include in the creation request.
Constructors
Link copied to clipboard
constructor(id: String, name: String, allowAnswers: Boolean? = null, allowUserSuggestedOptions: Boolean? = null, description: String? = null, enforceUniqueVote: Boolean? = null, isClosed: Boolean? = null, maxVotesAllowed: Int? = null, options: List<PollOption>? = null, votingVisibility: VotingVisibility = VotingVisibility.PUBLIC, extraData: Map<String, Any> = emptyMap())