Consumable

data class Consumable(val itemId: GW2ItemId, val name: String, val type: String, val iconFileId: String, val iconFileSignature: String, val description: String? = null, val rarity: String, val level: Int, val vendorValue: Int, val defaultSkin: Int? = null, val flags: List<String>, val gameTypes: List<String>, val restrictions: List<String>, val upgradeRecipes: List<GW2v1ItemDetails.Upgrade>? = null, val consumable: GW2v1ItemDetails.Consumable.Consumable) : GW2v1ItemDetails

Additional information about a consumable item.

Parameters

itemId

the item's ID

name

the item's name

type

the item's type

iconFileId

the icon's file ID to be used with the render service

iconFileSignature

the icon's file signature to be used with the render service

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

upgradeRecipes

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

Constructors

Link copied to clipboard
constructor(itemId: GW2ItemId, name: String, type: String, iconFileId: String, iconFileSignature: String, description: String? = null, rarity: String, level: Int, vendorValue: Int, defaultSkin: Int? = null, flags: List<String>, gameTypes: List<String>, restrictions: List<String>, upgradeRecipes: List<GW2v1ItemDetails.Upgrade>? = null, consumable: GW2v1ItemDetails.Consumable.Consumable)

Types

Link copied to clipboard
@Serializable
data class Consumable(val type: String, val description: String? = null, val durationMs: Int? = null, val unlockType: String? = null, val colorId: GW2ColorId? = null, val recipeId: GW2RecipeId? = null, val extraRecipeIds: List<GW2RecipeId>? = null, val guildUpgradeId: GW2GuildUpgradeId? = null, val applyCount: Int? = null, val name: String? = null, val icon: String? = null, val skins: List<GW2SkinId>? = null)

Additional information about a consumable item.

Properties

Link copied to clipboard
@SerialName(value = "default_skin")
open override val defaultSkin: Int? = null
Link copied to clipboard
open override val description: String? = null
Link copied to clipboard
open override val flags: List<String>
Link copied to clipboard
@SerialName(value = "game_types")
open override val gameTypes: List<String>
Link copied to clipboard
@SerialName(value = "icon_file_id")
open override val iconFileId: String
Link copied to clipboard
@SerialName(value = "icon_file_signature")
open override val iconFileSignature: String
Link copied to clipboard
@SerialName(value = "item_id")
open override val itemId: GW2ItemId
Link copied to clipboard
open override val level: Int
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val rarity: String
Link copied to clipboard
open override val restrictions: List<String>
Link copied to clipboard
open override val type: String
Link copied to clipboard
@SerialName(value = "upgrade_recipes")
open override val upgradeRecipes: List<GW2v1ItemDetails.Upgrade>? = null
Link copied to clipboard
@SerialName(value = "vendor_value")
open override val vendorValue: Int