commonMain.com.bselzer.gw2.v2.model.pvp.leaderboard.PvpLeaderboard.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of v2-model Show documentation
Show all versions of v2-model Show documentation
Guild Wars 2 API models for v2-client.
The newest version!
package com.bselzer.gw2.v2.model.pvp.leaderboard
import com.bselzer.gw2.v2.model.account.AccountName
import kotlinx.datetime.Instant
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class PvpLeaderboard(
/**
* The account name.
*/
@SerialName("name")
val name: AccountName = AccountName(),
/**
* The rank for the player or guild.
*/
@SerialName("rank")
val rank: Int = 0,
/**
* The date when the rank was achieved.
*/
@SerialName("date")
val achievedAt: Instant = Instant.DISTANT_PAST,
@SerialName("scores")
val scores: List = emptyList()
)