commonMain.com.bselzer.gw2.v2.model.character.bag.Bag.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of v2-model-jvm Show documentation
Show all versions of v2-model-jvm Show documentation
Guild Wars 2 API models for v2-client.
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