PollConfig
Alternative constructor to create a PollConfig with a list of options with extra data.
Parameters
The name of the poll.
The list of options (with optional extra data) for the poll.
The description of the poll. Default: empty.
The visibility of the votes. Default: VotingVisibility.PUBLIC.
If set to true, a user can only vote once. Default: true.
The maximum number of votes a user can cast. Default: 1.
If set to true, users can suggest new options. Default: false.
If set to true, users can send answers. Default: false.
Any additional data associated with the poll.
Deprecated
This constructor doesn't allow passing extra data for options. Use the constructor with List<PollOption> instead.
Constructor to create a PollConfig with a list of option texts.
Parameters
The name of the poll.
The list of option texts for the poll.
The description of the poll. Default: empty.
The visibility of the votes. Default: VotingVisibility.PUBLIC.
If set to true, a user can only vote once. Default: true.
The maximum number of votes a user can cast. Default: 1.
If set to true, users can suggest new options. Default: false.
If set to true, users can send answers. Default: false.