ElectionResponse

@Serializable
data class ElectionResponse(val success: Boolean? = null, val cause: String? = null, val lastUpdated: Long? = null, val mayor: Mayor? = null, val current: Election? = null) : HypixelResponse

Information about the current election and next election.

Constructors

Link copied to clipboard
constructor(success: Boolean? = null, cause: String? = null, lastUpdated: Long? = null, mayor: Mayor? = null, current: Election? = null)

Properties

Link copied to clipboard
open override val cause: String? = null

The cause of the error, if the request failed.

Link copied to clipboard
val current: Election? = null

Information about the next election.

Link copied to clipboard
val lastUpdated: Long? = null

Timestamp of when the information was last updated.

Link copied to clipboard
val mayor: Mayor? = null

Information about the current mayor and election results.

Link copied to clipboard
@Transient
open override var rateLimit: RateLimit?
Link copied to clipboard
open override val success: Boolean? = null

Whether the request was successful.