Candidate

@Serializable
data class Candidate(val key: String? = null, val name: String? = null, val perks: List<Perk>? = null, val votes: Int? = null)

Information about a candidate

Constructors

Link copied to clipboard
constructor(key: String? = null, name: String? = null, perks: List<Perk>? = null, votes: Int? = null)

Properties

Link copied to clipboard
val key: String? = null

Type of candidate (eg; economist {Diaz}, farming {Finnegan}).

Link copied to clipboard
val name: String? = null

Name of the candidate.

Link copied to clipboard
val perks: List<Perk>? = null

A list of the candidate perks.

Link copied to clipboard
val votes: Int? = null

The amount of votes the candidate has.