GW2v1RecipeDetails

@Serializable
data class GW2v1RecipeDetails(val recipeId: GW2RecipeId, 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<GW2v1RecipeDetails.Ingredient>)

Information about a crafting recipe.

Parameters

recipeId

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

Constructors

Link copied to clipboard
constructor(recipeId: GW2RecipeId, type: String, outputItemId: GW2ItemId, outputItemCount: Int, craftTimeMillis: Int, disciplines: List<String>, minRating: Int, flags: List<String>, ingredients: List<GW2v1RecipeDetails.Ingredient>)

Types

Link copied to clipboard
@Serializable
data class Ingredient(val itemId: GW2ItemId, val count: Int)

Information about a recipe ingredient.

Properties

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

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 = "recipe_id")
val recipeId: GW2RecipeId

This field holds the recipe's ID.

Link copied to clipboard

This field holds the recipe's type.