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

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

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

import com.bselzer.ktx.value.identifier.Identifiable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

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

    /**
     * The number of slots in the bag.
     */
    @SerialName("size")
    val count: Int = 0,

    /**
     * The bag slots. A null [BagSlot] indicates that there is no item in the slot.
     */
    @SerialName("inventory")
    val slots: List = emptyList()
) : Identifiable




© 2015 - 2024 Weber Informatics LLC | Privacy Policy