Poll

Poll

# new Poll(pollMap)

Creates a new Poll instance from the provider parameters.
Parameters:
Name Type Description
pollMap Object Poll parameters
Properties
Name Type Attributes Default Description
allowMultipleVotes boolean True if user can vote multiple options
endDate number <optional>
Poll end date
options Array.<PollOption> <optional>
[] Poll options
totalVotes number <optional>
0 Total amount of votes
voters Array.<UserVotes> <optional>
[] Users who voted