Answer

constructor(answers: ArrayList<Pair<Int, Int>>)

Parameters

answers

The list of answers, where each pair represents an option index and its vote count.


constructor(answer: Pair<Int, Int>)

Convenience constructor for creating an answer with a single option and one vote.

Parameters

answer

A pair containing the selected option index and its vote count.