GW2v2PvpGame

@Serializable
data class GW2v2PvpGame(val id: String, val mapId: Int, val started: String, val ended: String, val result: String, val team: String, val profession: String, val ratingType: String, val ratingChange: Int? = null, val season: String? = null, val scores: GW2v2PvpGame.Scores)

Information about an account's PvP game.

Parameters

id

the game's ID

mapId

the map's ID

started

the ISO-8601 standard timestamp of when the game started

ended

the ISO-8601 standard timestamp of when the game ended

result

the game's result for the account ("Victory" or "Defeat")

team

the player's team ("Blue" or "Red")

profession

the ID of the player's profession

ratingType

the type of rating of the game

ratingChange

the change in rating for the account

season

the ID of the game's PvP season

scores

the game's final scores

Constructors

Link copied to clipboard
constructor(id: String, mapId: Int, started: String, ended: String, result: String, team: String, profession: String, ratingType: String, ratingChange: Int? = null, season: String? = null, scores: GW2v2PvpGame.Scores)

Types

Link copied to clipboard
@Serializable
data class Scores(val red: Int, val blue: Int)

Information about a PvP game's scores.

Properties

Link copied to clipboard

This field holds the ISO-8601 standard timestamp of when the game ended.

Link copied to clipboard
val id: String

This field holds the game's ID.

Link copied to clipboard
@SerialName(value = "map_id")
val mapId: Int

This field holds the map's ID.

Link copied to clipboard

This field holds the ID of the player's profession.

Link copied to clipboard
@SerialName(value = "rating_change")
val ratingChange: Int? = null

This field holds the change in rating for the account.

Link copied to clipboard
@SerialName(value = "rating_type")
val ratingType: String

This field holds the type of rating of the game.

Link copied to clipboard

This field holds the game's result for the account ("Victory" or "Defeat").

Link copied to clipboard

This field holds the game's final scores.

Link copied to clipboard
val season: String? = null

This field holds the ID of the game's PvP season.

Link copied to clipboard

This field holds the ISO-8601 standard timestamp of when the game started.

Link copied to clipboard

This field holds the player's team ("Blue" or "Red").