Add client purse management.

This commit is contained in:
Thomas Andres Gomez 2025-04-13 10:58:35 +02:00
parent 4f33492b23
commit 8982bab22d
48 changed files with 1664 additions and 258 deletions

View file

@ -12,6 +12,7 @@ data class Inventory(
)
data class Item(
val inventoryId: String,
val itemId: String,
val count: Int,
)

View file

@ -18,6 +18,7 @@ data class InventoryJsonV1(
@Serializable
data class ItemJson(
val inventoryId: String,
val itemId: String,
val count: Int,
)

View file

@ -15,6 +15,7 @@ class InventoryJsonFactoryV1 {
),
items = json.items.map {
Inventory.Item(
inventoryId = it.inventoryId,
itemId = it.itemId,
count = it.count,
)
@ -32,6 +33,7 @@ class InventoryJsonFactoryV1 {
),
items = inventory.items.map {
InventoryJsonV1.ItemJson(
inventoryId = it.inventoryId,
itemId = it.itemId,
count = it.count,
)