Poll
@Immutable
The Poll object represents a poll in a channel.
Constructors
Link copied to clipboard
constructor(id: String, name: String, description: String, options: List<Option>, votingVisibility: VotingVisibility, enforceUniqueVote: Boolean, maxVotesAllowed: Int, allowUserSuggestedOptions: Boolean, allowAnswers: Boolean, voteCountsByOption: Map<String, Int>, votes: List<Vote>, ownVotes: List<Vote>, createdAt: Date, updatedAt: Date, closed: Boolean, answers: List<Answer> = emptyList())
Properties
Link copied to clipboard
If set to true, users can vote.
Link copied to clipboard
If set to true, users can suggest new options.
Link copied to clipboard
The description of the poll.
Link copied to clipboard
If set to true, a user can only vote once.
Link copied to clipboard
The maximum number of votes a user can cast.
Link copied to clipboard
The number of votes for each option.
Link copied to clipboard
The visibility of the votes. If set to VotingVisibility.ANONYMOUS, the votes will be anonymous.