Bag

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

Information about an inventory bag.

Parameters

id

the bag's item ID

size

the bag's size

inventory

the bag's content

Constructors

Link copied to clipboard
constructor(id: GW2ItemId, size: Int, inventory: List<GW2v2Character.Bag.Item?>)

Types

Link copied to clipboard
@Serializable
data class Item(val id: GW2ItemId, val count: Int, val charges: Int? = null, val skin: GW2SkinId? = null, val upgrades: List<GW2ItemId>? = null, val upgradeSlotIndices: List<Int>? = null, val infusions: List<GW2ItemId>? = null, val stats: GW2v2Character.Bag.Item.Stats? = null, val binding: String? = null, val boundTo: String? = null)

Information about an item in a character's inventory.

Properties

Link copied to clipboard

This field holds the bag's item ID.

Link copied to clipboard

This field holds the bag's content.

Link copied to clipboard
val size: Int

This field holds the bag's size.