Add client purse management.
This commit is contained in:
parent
4f33492b23
commit
8982bab22d
48 changed files with 1664 additions and 258 deletions
|
|
@ -12,6 +12,7 @@ data class Inventory(
|
|||
)
|
||||
|
||||
data class Item(
|
||||
val inventoryId: String,
|
||||
val itemId: String,
|
||||
val count: Int,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ data class InventoryJsonV1(
|
|||
|
||||
@Serializable
|
||||
data class ItemJson(
|
||||
val inventoryId: String,
|
||||
val itemId: String,
|
||||
val count: Int,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue