GW2v2Item

@Serializable(with = __GW2v2ItemSerializer0::class)
data class GW2v2Item(val id: GW2ItemId, val name: String, val type: String, val chatLink: String, val icon: String? = null, val description: String? = null, val rarity: String, val level: Int, val vendorValue: Int, val defaultSkin: GW2SkinId? = null, val flags: List<String>, val gameTypes: List<String>, val restrictions: List<String>, val upgradesInto: List<GW2v2Item.Upgrade>? = null, val upgradesFrom: List<GW2v2Item.Precursor>? = null, val details: GW2v2Item.Details? = null)

Information about an item.

Parameters

id

the item's ID

name

the item's name

type

the item's type

chatLink

the chat link

icon

the URL for the item's icon

description

the item's description

rarity

the item's rarity

level

the level required to use the item

vendorValue

the value in coins when selling the item to a vendor

defaultSkin

the ID of the item's default skin

flags

flags applying to the item

gameTypes

the game types in which the item is usable

restrictions

restrictions applied to the item

upgradesInto

lists what items this item can be upgraded into, and the method of upgrading

upgradesFrom

lists what items this item can be upgraded from, and the method of upgrading

details

additional information about the item

Constructors

Link copied to clipboard
constructor(id: GW2ItemId, name: String, type: String, chatLink: String, icon: String? = null, description: String? = null, rarity: String, level: Int, vendorValue: Int, defaultSkin: GW2SkinId? = null, flags: List<String>, gameTypes: List<String>, restrictions: List<String>, upgradesInto: List<GW2v2Item.Upgrade>? = null, upgradesFrom: List<GW2v2Item.Precursor>? = null, details: GW2v2Item.Details? = null)

Types

Link copied to clipboard

Additional information about an item.

Link copied to clipboard
@Serializable
data class Precursor(val upgrade: String, val itemId: GW2ItemId)

Information about an item's precursor.

Link copied to clipboard
@Serializable
data class Upgrade(val upgrade: String, val itemId: GW2ItemId)

Information about an item's upgrade.

Properties

Link copied to clipboard
@SerialName(value = "chat_link")
val chatLink: String

This field holds the chat link.

Link copied to clipboard
@SerialName(value = "default_skin")
val defaultSkin: GW2SkinId? = null

This field holds the ID of the item's default skin.

Link copied to clipboard
val description: String? = null

This field holds the item's description.

Link copied to clipboard

This field holds additional information about the item.

Link copied to clipboard

This field holds flags applying to the item.

Link copied to clipboard
@SerialName(value = "game_types")
val gameTypes: List<String>

This field holds the game types in which the item is usable.

Link copied to clipboard
val icon: String? = null

This field holds the URL for the item's icon.

Link copied to clipboard

This field holds the item's ID.

Link copied to clipboard
val level: Int

This field holds the level required to use the item.

Link copied to clipboard

This field holds the item's name.

Link copied to clipboard

This field holds the item's rarity.

Link copied to clipboard

This field holds restrictions applied to the item.

Link copied to clipboard

This field holds the item's type.

Link copied to clipboard
@SerialName(value = "upgrades_from")
val upgradesFrom: List<GW2v2Item.Precursor>? = null

This field holds lists what items this item can be upgraded from, and the method of upgrading.

Link copied to clipboard
@SerialName(value = "upgrades_into")
val upgradesInto: List<GW2v2Item.Upgrade>? = null

This field holds lists what items this item can be upgraded into, and the method of upgrading.

Link copied to clipboard
@SerialName(value = "vendor_value")
val vendorValue: Int

This field holds the value in coins when selling the item to a vendor.