PollOption
public struct PollOption : Codable, Equatable, FunctionResult
Describes one answer option of a poll
-
Option text, 1-100 characters
Declaration
Swift
public let text: String -
Number of voters for this option, available only for closed or voted polls
Declaration
Swift
public let voterCount: Int32 -
The percentage of votes for this option, 0-100
Declaration
Swift
public let votePercentage: Int32 -
True, if the option was chosen by the user
Declaration
Swift
public let isChosen: Bool -
True, if the option is being chosen by a pending setPollAnswer request
Declaration
Swift
public let isBeingChosen: Bool -
Describes one answer option of a poll
Declaration
Swift
public init(text: String, voterCount: Int32, votePercentage: Int32, isChosen: Bool, isBeingChosen: Bool)Parameters
textOption text, 1-100 characters
voterCountNumber of voters for this option, available only for closed or voted polls
votePercentageThe percentage of votes for this option, 0-100
isChosenTrue, if the option was chosen by the user
isBeingChosenTrue, if the option is being chosen by a pending setPollAnswer request
View on GitHub
Install in Dash
PollOption Structure Reference