All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.bselzer.gw2.v2.model.pvp.stat.PvpStats.kt Maven / Gradle / Ivy

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()
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy