Package-level declarations

Types

Link copied to clipboard
@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.

Link copied to clipboard

The level of a debate.

Link copied to clipboard
object DebateLevelSerializer : KSerializer<DebateLevel>

Represents the serializer for DebateLevel.

Link copied to clipboard

Represents the side of a debate.

Link copied to clipboard
object DebateSideSerializer : KSerializer<DebateSide>

Represents the serializer for DebateSide.

Link copied to clipboard
data class Entry(val school: String, val location: String, val name: String, val code: String, val ballots: Map<Int, Ballot> = mutableMapOf())

Represents an entry inside a tournament event.

Link copied to clipboard
data class Event(val name: String, val id: Int, val fields: Map<String, String> = emptyMap(), val entries: List<Entry> = emptyList())

Represents an event in a tournament.

Link copied to clipboard
data class Judge(val firstName: String, val lastName: String, val school: String, val location: String, val hasParadigm: Boolean)

Represents a Judge in a tournament.

Link copied to clipboard
data class Tournament(val name: String, val descriptionHTML: String, val description: String, val year: String, val location: String, val events: List<Event> = mutableListOf(), val judges: Map<String, List<Judge>> = mutableMapOf())

Represents a tournament.

Functions

Link copied to clipboard
@JvmName(name = "getTournamentAsync")
suspend fun getTournament(id: Int): Tournament

Gets a tournament by its ID.

Link copied to clipboard

Fetches a tournament from Tabroom.com using the provided ID.

Link copied to clipboard
@JvmName(name = "getTournament")
fun getTournamentSync(id: Int): Tournament

Gets a tournament by its ID.

Link copied to clipboard
@JvmName(name = "searchTournamentsAsync")
suspend fun searchTournaments(query: String): List<Tournament>

Searches for tournaments by name.

Link copied to clipboard

Searches for tournaments on Tabroom.com using the provided query.

Link copied to clipboard
@JvmName(name = "searchTournaments")
fun searchTournamentsSync(query: String): List<Tournament>

Searches for tournaments by name.