v24
Diametric Element
Describes Base class for Emoting, Swing Poll elements
1
public class Diametric: BasePoll {
Copied!
Please see details description of Elements Common API

Vote

Vote for specified option index (zero-based numbering) and strength (from 1 to 5). Returns true on success.
1
boolean vote(int optionIndex, int strength)
Copied!

Results

Results contain 10 dictionary elements where each half represents option with number of votes for each strength.
1
public var results: [[String: AnyObject]]!
2
public var resultsPerSource: [[String: AnyObject]]!
Copied!

User vote

Returns array with single element that represents strength (1-5 - for first option, 6-10 - for second option)
1
userVote: [Int]?
Copied!
Last modified 2yr ago
Copy link