Diametric Element

Describes Base class for Emoting, Swing Poll elements

public class Diametric: BasePoll {

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.

boolean vote(int optionIndex, int strength)

Results

Results contain 10 dictionary elements where each half represents option with number of votes for each strength.

public var results: [[String: AnyObject]]!
public var resultsPerSource: [[String: AnyObject]]!

User vote

Returns array with single element that represents strength (1-5 - for first option, 6-10 - for second option)

userVote: [Int]?