commonMain.com.bselzer.gw2.v2.model.material.Material.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of v2-model Show documentation
Show all versions of v2-model Show documentation
Guild Wars 2 API models for v2-client.
The newest version!
package com.bselzer.gw2.v2.model.material
import com.bselzer.gw2.v2.model.item.ItemId
import com.bselzer.ktx.value.identifier.Identifiable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Material(
@SerialName("id")
override val id: MaterialId = MaterialId(),
/**
* The name of the category.
*/
@SerialName("name")
val name: String = "",
/**
* The ids of the items in this category.
* @see the wiki
*/
@SerialName("items")
val itemIds: List = emptyList(),
/**
* The order in which this category appears in material storage.
*/
@SerialName("order")
val order: Int = 0
) : Identifiable