Implements all methods of the parent class.
enum State {Started,Stopped}
interface Callback {void onStateChanged(State state);void onResults();void onVote();}
Returns poll question.
Question getQuestion();
Returns poll options.
List<Option> getOptions();
Returns JSON array
of results.
JsonArray getResults();
Returns results for each source.
JsonArray getResultsPerSource();
Returns array
with single element that represents strength (1-5 - for first option, 6-10 - for second option)
int[] getUserVote();
Returns true
if validated user required.
boolean isValidatedUserRequired();
Returns true
if user already voted.
boolean hasUserVoted();
Returns true
if results present.
boolean hasResults();
Vote for specified option index (zero-based numbering) and strength (from 1 to 5). Returns true
on success.
boolean vote(int optionIndex, int strength)