Server : Add item service.

This commit is contained in:
Andres Gomez, Thomas (ITDV RL) 2025-04-02 15:50:21 +02:00
parent b09a6d5184
commit 0aaa56a4aa
24 changed files with 607 additions and 28 deletions

View file

@ -114,7 +114,7 @@ class CharacterSheetStore(
private suspend fun handleMessage(message: SocketMessage) {
when (message) {
is ApiSynchronisation -> try {
is ApiSynchronisation.CharacterSheetApiSynchronisation -> try {
when (message) {
is ApiSynchronisation.CharacterSheetUpdate -> {
_detailFlow.update(
@ -137,9 +137,6 @@ class CharacterSheetStore(
sheets.toMutableMap().also { it.remove(message.characterSheetId) }
}
}
is ApiSynchronisation.AlterationUpdate -> Unit
is ApiSynchronisation.AlterationDelete -> Unit
}
} catch (exception: Exception) {
println(exception.message) // TODO proper exception handling