GW2v2Recipe

@Serializable
data class GW2v2Recipe(val id: Int, val type: String, val outputItemId: GW2ItemId, val outputItemCount: Int, val craftTimeMillis: Int, val disciplines: List<String>, val minRating: Int, val flags: List<String>, val ingredients: List<GW2v2Recipe.Ingredient>, val outputUpgradeId: Int? = null, val chatLink: String)

Information about a crafting recipe.

Parameters

id

the recipe's ID

type

the recipe's type

outputItemId

the ID of the produced item

outputItemCount

the amount of items produced

craftTimeMillis

the time in milliseconds it takes to craft the item

disciplines

the crafting disciplines that can use the recipe

minRating

the minimum rating required to use the recipe

flags

the flags applying to the recipe

ingredients

the recipe's ingredients

outputUpgradeId

the ID of the produced guild upgrade

chatLink

the recipe's chat code

Constructors

Link copied to clipboard
constructor(id: Int, type: String, outputItemId: GW2ItemId, outputItemCount: Int, craftTimeMillis: Int, disciplines: List<String>, minRating: Int, flags: List<String>, ingredients: List<GW2v2Recipe.Ingredient>, outputUpgradeId: Int? = null, chatLink: String)

Types

Link copied to clipboard

Information about a recipe ingredient.

Properties

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

This field holds the recipe's chat code.

Link copied to clipboard
@SerialName(value = "time_to_craft_ms")
val craftTimeMillis: Int

This field holds the time in milliseconds it takes to craft the item.

Link copied to clipboard

This field holds the crafting disciplines that can use the recipe.

Link copied to clipboard

This field holds the flags applying to the recipe.

Link copied to clipboard
val id: Int

This field holds the recipe's ID.

Link copied to clipboard

This field holds the recipe's ingredients.

Link copied to clipboard
@SerialName(value = "min_rating")
val minRating: Int

This field holds the minimum rating required to use the recipe.

Link copied to clipboard
@SerialName(value = "output_item_count")
val outputItemCount: Int

This field holds the amount of items produced.

Link copied to clipboard
@SerialName(value = "output_item_id")
val outputItemId: GW2ItemId

This field holds the ID of the produced item.

Link copied to clipboard
@SerialName(value = "output_upgrade_id")
val outputUpgradeId: Int? = null

This field holds the ID of the produced guild upgrade.

Link copied to clipboard

This field holds the recipe's type.