v24
Combi Poll Element
Describes Sliced Element
Please see details description of Elements Common API
1
final public class CombiPoll: BasePoll
Copied!

Get results

Returns array of votes for each option of each question. Votes are stored using matrix and each element is calculated the next way: (row * columns) + column, where row is option, column is question, Zero row has title “Unspecified”
1
public var results: [[String: AnyObject]]!
2
public var resultsPerSource: [[String: AnyObject]]!
Copied!

Get user vote

Returns array where each element is an option index you've voted for. See Get results section to see how votes are stored.
1
userVote: [Int]?
Copied!

Vote

Vote for option (zero-based numbering) of a question (zero-based numbering). Returns true on success.
1
boolean vote(int questionIndex, int optionIndex)
Copied!
Last modified 2yr ago