All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.bselzer.gw2.v2.model.account.slot.AccountMaterial.kt Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy