Server : Add item service.
This commit is contained in:
parent
b09a6d5184
commit
0aaa56a4aa
24 changed files with 607 additions and 28 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue