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

commonMain.com.bselzer.gw2.v2.model.character.bag.BagSlot.kt Maven / Gradle / Ivy

The newest version!
package com.bselzer.gw2.v2.model.character.bag

import com.bselzer.gw2.v2.model.character.CharacterName
import com.bselzer.gw2.v2.model.character.equipment.CharacterItemStat
import com.bselzer.gw2.v2.model.enumeration.wrapper.Binding
import com.bselzer.gw2.v2.model.item.ItemId
import com.bselzer.gw2.v2.model.skin.SkinId
import com.bselzer.ktx.value.identifier.Identifiable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
data class BagSlot(
    /**
     * The id of the item.
     * @see the wiki
     */
    @SerialName("id")
    override val id: ItemId = ItemId(),

    /**
     * The number of this item in the stack.
     */
    @SerialName("count")
    val count: Int = 0,

    /**
     * The ids of the equipped infusions.
     * @see the wiki
     */
    @SerialName("infusions")
    val infusions: List = emptyList(),

    /**
     * The ids of the equipped upgrade components.
     * @see the wiki
     */
    @SerialName("upgrades")
    val upgrades: List = emptyList(),

    /**
     * The id of the equipped skin.
     * @see the wiki
     */
    @SerialName("skin")
    val skin: SkinId = SkinId(),

    /**
     * The stats of the item.
     * @see the wiki
     */
    @SerialName("stats")
    val stats: List = emptyList(),

    /**
     * What owns this item. Null if there is no binding.
     */
    @SerialName("binding")
    val binding: Binding? = null,

    /**
     * Who owns this item. Null if the binding is NOT for a character.
     */
    @SerialName("bound_to")
    val boundTo: CharacterName? = null,
) : Identifiable




© 2015 - 2024 Weber Informatics LLC | Privacy Policy