Ballot

@Serializable
data class Ballot(val ballotsLost: Int = 0, val ballotsWon: Int = 0, val ballotsCount: Int = ballotsLost + ballotsWon, val decision: String = "L", val isElimination: Boolean, var level: DebateLevel = DebateLevel.OPEN, var eventName: String = "Unknown", var judge: String = "Unknown", val side: DebateSide = DebateSide.UNKNOWN, val opponent: String? = "Unknown", val round: Int = 0, val roundLabel: Any = round.toString(), val speaker1Points: Double = 0.0, val speaker2Points: Double = 0.0, var tournament: String, var tournamentDate: String, val isThisYear: Boolean = false)

Represents a ballot in a debate.

Constructors

Link copied to clipboard
constructor(ballotsLost: Int = 0, ballotsWon: Int = 0, ballotsCount: Int = ballotsLost + ballotsWon, decision: String = "L", isElimination: Boolean, level: DebateLevel = DebateLevel.OPEN, eventName: String = "Unknown", judge: String = "Unknown", side: DebateSide = DebateSide.UNKNOWN, opponent: String? = "Unknown", round: Int = 0, roundLabel: Any = round.toString(), speaker1Points: Double = 0.0, speaker2Points: Double = 0.0, tournament: String, tournamentDate: String, isThisYear: Boolean = false)

Properties

Link copied to clipboard
@SerialName(value = "total_ballots")
val ballotsCount: Int

The number of ballots for the round.

Link copied to clipboard
@SerialName(value = "ballots_lost")
val ballotsLost: Int = 0

The number of ballots lost.

Link copied to clipboard
@SerialName(value = "ballots_won")
val ballotsWon: Int = 0

The number of ballots won.

Link copied to clipboard
@SerialName(value = "decision_str")
val decision: String

The decision as a string.

Link copied to clipboard
@SerialName(value = "event_name")
var eventName: String

The name of the event.

Link copied to clipboard
@SerialName(value = "elim")
@Serializable(with = ByteToBooleanSerializer::class)
val isElimination: Boolean

Whether this round is an elimination round.

Link copied to clipboard
@SerialName(value = "this_yr")
@Serializable(with = ByteToBooleanSerializer::class)
val isThisYear: Boolean = false

Whether this ballot was submitted this year.

Link copied to clipboard

Whether the ballot is a win for the entry.

Link copied to clipboard
@SerialName(value = "judge_raw")
var judge: String

The names of the judges, comma separated.

Link copied to clipboard
@SerialName(value = "event_level")
var level: DebateLevel

The level of the debate.

Link copied to clipboard

The name of the opponent.

Link copied to clipboard
@SerialName(value = "round_name")
val round: Int = 0

The round number.

Link copied to clipboard
@SerialName(value = "round_label")
@Serializable(with = AnyToStringSerializer::class)
val roundLabel: Any

The round label.

Link copied to clipboard

The debated side.

Link copied to clipboard
@SerialName(value = "speaker1_pts")
@Serializable(with = SpeakerDeserializer::class)
val speaker1Points: Double = 0.0

The speaker points of the first speaker, or 0 if not available.

Link copied to clipboard
@SerialName(value = "speaker2_pts")
@Serializable(with = SpeakerDeserializer::class)
val speaker2Points: Double = 0.0

The speaker points of the second speaker, or 0 if not available.

Link copied to clipboard
@SerialName(value = "tourn")
var tournament: String

The name of the tournament.

Link copied to clipboard
@SerialName(value = "tourn_start")
var tournamentDate: String

The date of the tournament.