-
public final class UpdatePollRequestModel holding request data for updating a poll.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final Stringnameprivate final BooleanallowAnswersprivate final BooleanallowUserSuggestedOptionsprivate final Stringdescriptionprivate final BooleanenforceUniqueVoteprivate final BooleanisClosedprivate final IntegermaxVotesAllowedprivate final List<PollOption>optionsprivate final VotingVisibilityvotingVisibilityprivate final Map<String, Object>extraData
-
Constructor Summary
Constructors Constructor Description UpdatePollRequest(String id, String name, Boolean allowAnswers, Boolean allowUserSuggestedOptions, String description, Boolean enforceUniqueVote, Boolean isClosed, Integer maxVotesAllowed, List<PollOption> options, VotingVisibility votingVisibility, Map<String, Object> extraData)
-
Method Summary
Modifier and Type Method Description final StringgetId()final StringgetName()final BooleangetAllowAnswers()final BooleangetAllowUserSuggestedOptions()final StringgetDescription()final BooleangetEnforceUniqueVote()final BooleangetIsClosed()final IntegergetMaxVotesAllowed()final List<PollOption>getOptions()final VotingVisibilitygetVotingVisibility()final Map<String, Object>getExtraData()-
-
Constructor Detail
-
UpdatePollRequest
UpdatePollRequest(String id, String name, Boolean allowAnswers, Boolean allowUserSuggestedOptions, String description, Boolean enforceUniqueVote, Boolean isClosed, Integer maxVotesAllowed, List<PollOption> options, VotingVisibility votingVisibility, Map<String, Object> extraData)
- 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.
-
-
Method Detail
-
getAllowAnswers
final Boolean getAllowAnswers()
-
getAllowUserSuggestedOptions
final Boolean getAllowUserSuggestedOptions()
-
getDescription
final String getDescription()
-
getEnforceUniqueVote
final Boolean getEnforceUniqueVote()
-
getIsClosed
final Boolean getIsClosed()
-
getMaxVotesAllowed
final Integer getMaxVotesAllowed()
-
getOptions
final List<PollOption> getOptions()
-
getVotingVisibility
final VotingVisibility getVotingVisibility()
-
getExtraData
final Map<String, Object> getExtraData()
-
-
-
-