commonMain.com.bselzer.gw2.v2.model.pvp.stat.PvpStats.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.stat
import com.bselzer.gw2.v2.model.enumeration.wrapper.PvpLadderType
import com.bselzer.gw2.v2.model.profession.ProfessionId
import com.bselzer.gw2.v2.scope.core.Permission
import com.bselzer.gw2.v2.scope.core.Requirement
import com.bselzer.gw2.v2.scope.core.Scope
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
@Scope(Requirement.REQUIRED, Permission.ACCOUNT, Permission.PVP)
data class PvpStats(
/**
* The account's PvP rank.
*/
@SerialName("pvp_rank")
val rank: Int = 0,
/**
* The account's PvP rank points.
*/
@SerialName("pvp_rank_points")
val rankPoints: Int = 0,
/**
* The number of times the player has leveled up since rank 80.
*/
@SerialName("pvp_rank_rollovers")
val rankRollovers: Int = 0,
/**
* The total count of wins and losses.
*/
@SerialName("aggregate")
val totalAggregate: StatAggregate = StatAggregate(),
/**
* The profession names mapped to an aggregate.
*/
@SerialName("professions")
val professionAggregate: Map = emptyMap(),
/**
* The ladder types mapped to an aggregate.
*/
@SerialName("ladders")
val ladderAggregate: Map = emptyMap()
)