Cost

@Serializable
data class Cost(val type: String, val name: String, val count: Int, val itemId: GW2ItemId? = null)

Information about an upgrade's cost.

Parameters

id

the upgrade's ID

name

the cost's name

description

the upgrade's description

type

the cost's type

icon

the URL for the upgrade's icon

buildTime

the time it takes to build the upgrade

requiredLevel

the prerequisite level the guild must be at to build the upgrade

experience

the amount of guild experience that will be awarded upon building the upgrade

prerequisites

an array of upgrade IDs that must be completed before this can be built

costs

an array of objects describing the upgrade's cost

count

the amount needed

itemId

the ID of the cost's item

Constructors

Link copied to clipboard
constructor(type: String, name: String, count: Int, itemId: GW2ItemId? = null)

Properties

Link copied to clipboard
val count: Int

This field holds the amount needed.

Link copied to clipboard
@SerialName(value = "item_id")
val itemId: GW2ItemId? = null

This field holds the ID of the cost's item.

Link copied to clipboard

This field holds the cost's name.

Link copied to clipboard

This field holds the cost's type.