Combi Poll Element

Describes Sliced Element

Please see details description of Elements Common API

final public class CombiPoll: BasePoll 

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”

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

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.

userVote: [Int]?

Vote

Vote for option (zero-based numbering) of a question (zero-based numbering). Returns true on success.

boolean vote(int questionIndex, int optionIndex)

Last updated