GW2v2Character

@Serializable
data class GW2v2Character(val name: String, val race: String, val gender: String, val profession: String, val level: Int, val guild: String? = null, val age: Int, val created: String, val lastModified: String, val deaths: Int, val title: Int? = null, val wvwAbilities: List<GW2v2Character.WvwAbility>, val flags: List<String>, val buildTabsUnlocked: Int, val activeBuildTab: Int, val equipmentTabsUnlocked: Int, val activeEquipmentTab: Int, val backstory: List<String>, val buildTabs: List<GW2v2CharactersBuildTab>, val crafting: List<GW2v2Character.Discipline>, val equipment: List<GW2v2Character.EquipmentSlot>, val equipmentTabs: List<GW2v2Character.CharactersEquipmentTab>, val bags: List<GW2v2Character.Bag>, val recipes: List<Int>, val training: List<GW2v2Character.Training>)

Information about a character.

Parameters

name

the character's name

race

the ID of the character's race

gender

the character's gender

profession

the ID of the character's profession

level

the character's level

guild

the ID of the character's represented guild

age

the amount of seconds the character was played

created

the ISO-8601 standard timestamp of when the character was created

lastModified

the ISO-8601 standard timestamp of when the API record of the character was last modified

deaths

the amount of times the character has been defeated

title

the ID of the character's selected title

wvwAbilities

information about the WvW abilities of the character

flags

various additional flags

buildTabsUnlocked

the number of build tabs unlocked for the character

activeBuildTab

the ID of the character's active build tab

equipmentTabsUnlocked

the number of equipment tabs unlocked for the character

activeEquipmentTab

the ID of the character's active equipment tab

backstory

the IDs of the character's backstory answers

buildTabs

the character's build tabs

crafting

the character's crafting disciplines

equipment

the character's equipment

equipmentTabs

the character's equipment tabs

bags

the character's inventory bags

recipes

the IDs of the character's crafting recipes

training

the training information for a character's trained skill-trees

Constructors

Link copied to clipboard
constructor(name: String, race: String, gender: String, profession: String, level: Int, guild: String? = null, age: Int, created: String, lastModified: String, deaths: Int, title: Int? = null, wvwAbilities: List<GW2v2Character.WvwAbility>, flags: List<String>, buildTabsUnlocked: Int, activeBuildTab: Int, equipmentTabsUnlocked: Int, activeEquipmentTab: Int, backstory: List<String>, buildTabs: List<GW2v2CharactersBuildTab>, crafting: List<GW2v2Character.Discipline>, equipment: List<GW2v2Character.EquipmentSlot>, equipmentTabs: List<GW2v2Character.CharactersEquipmentTab>, bags: List<GW2v2Character.Bag>, recipes: List<Int>, training: List<GW2v2Character.Training>)

Types

Link copied to clipboard
@Serializable
data class Bag(val id: GW2ItemId, val size: Int, val inventory: List<GW2v2Character.Bag.Item?>)

Information about an inventory bag.

Link copied to clipboard
@Serializable
data class CharactersEquipmentTab(val tab: Int, val name: String, val isActive: Boolean, val equipment: List<GW2v2Character.CharactersEquipmentTab.Equipment>, val equipmentPvp: GW2v2Character.CharactersEquipmentTab.PvpEquipment)

Information about a character's equipment tab.

Link copied to clipboard
@Serializable
data class Discipline(val discipline: String, val rating: Int, val active: Boolean)

Information about a character's crafting discipline.

Link copied to clipboard
@Serializable
data class EquipmentSlot(val id: GW2ItemId, val slot: String? = null, val skin: GW2SkinId? = null, val dyes: List<Int?>? = null, val upgrades: List<GW2ItemId>? = null, val infusions: List<GW2ItemId>? = null, val charges: Int? = null, val binding: String? = null, val boundTo: String? = null, val stats: GW2v2Character.EquipmentSlot.Stats? = null, val location: String, val tabs: List<Int>? = null)

Information a character's equipment slot.

Link copied to clipboard
@Serializable
data class Training(val id: Int, val spent: Int, val done: Boolean)

Information about a character's trained skill-tree.

Link copied to clipboard
@Serializable
data class WvwAbility(val id: Int, val rank: Int)

Information about a character's WvW ability.

Properties

Link copied to clipboard
@SerialName(value = "active_build_tab")
val activeBuildTab: Int

This field holds the ID of the character's active build tab.

Link copied to clipboard
@SerialName(value = "active_equipment_tab")
val activeEquipmentTab: Int

This field holds the ID of the character's active equipment tab.

Link copied to clipboard
val age: Int

This field holds the amount of seconds the character was played.

Link copied to clipboard

This field holds the IDs of the character's backstory answers.

Link copied to clipboard

This field holds the character's inventory bags.

Link copied to clipboard
@SerialName(value = "build_tabs")
val buildTabs: List<GW2v2CharactersBuildTab>

This field holds the character's build tabs.

Link copied to clipboard
@SerialName(value = "build_tabs_unlocked")
val buildTabsUnlocked: Int

This field holds the number of build tabs unlocked for the character.

Link copied to clipboard

This field holds the character's crafting disciplines.

Link copied to clipboard

This field holds the ISO-8601 standard timestamp of when the character was created.

Link copied to clipboard
val deaths: Int

This field holds the amount of times the character has been defeated.

Link copied to clipboard

This field holds the character's equipment.

Link copied to clipboard
@SerialName(value = "equipment_tabs")
val equipmentTabs: List<GW2v2Character.CharactersEquipmentTab>

This field holds the character's equipment tabs.

Link copied to clipboard
@SerialName(value = "equipment_tabs_unlocked")
val equipmentTabsUnlocked: Int

This field holds the number of equipment tabs unlocked for the character.

Link copied to clipboard

This field holds various additional flags.

Link copied to clipboard

This field holds the character's gender.

Link copied to clipboard
val guild: String? = null

This field holds the ID of the character's represented guild.

Link copied to clipboard
@SerialName(value = "last_modified")
val lastModified: String

This field holds the ISO-8601 standard timestamp of when the API record of the character was last modified.

Link copied to clipboard
val level: Int

This field holds the character's level.

Link copied to clipboard

This field holds the character's name.

Link copied to clipboard

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

Link copied to clipboard

This field holds the ID of the character's race.

Link copied to clipboard

This field holds the IDs of the character's crafting recipes.

Link copied to clipboard
val title: Int? = null

This field holds the ID of the character's selected title.

Link copied to clipboard

This field holds the training information for a character's trained skill-trees.

Link copied to clipboard
@SerialName(value = "wvw_abilities")
val wvwAbilities: List<GW2v2Character.WvwAbility>

This field holds information about the WvW abilities of the character.