commonMain.com.bselzer.gw2.v2.model.account.slot.AccountMaterial.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.account.slot
import com.bselzer.gw2.v2.model.enumeration.wrapper.Binding
import com.bselzer.gw2.v2.model.item.ItemId
import com.bselzer.gw2.v2.model.material.MaterialId
import com.bselzer.ktx.value.identifier.Identifiable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class AccountMaterial(
/**
* The id of the material in the items endpoint.
* @see the wiki
*/
@SerialName("id")
override val id: ItemId = ItemId(),
/**
* The id of the material category in the materials endpoint.
* the wiki
*/
@SerialName("category")
val categoryId: MaterialId = MaterialId(),
/**
* What owns this item. Null if there is no binding.
*/
@SerialName("binding")
val binding: Binding? = null,
/**
* The number of the material in the account vault.
*/
val count: Int = 0
) : Identifiable