Fix a crash related to default network config.

This commit is contained in:
Thomas Andres Gomez 2025-03-17 13:32:49 +01:00
parent a617d4ba7b
commit e2b3b54f88
18 changed files with 153 additions and 119 deletions

View file

@ -15,6 +15,16 @@ class CharacterSheetJsonFactory(
}
}
suspend fun convertFromJson(
json: CharacterPreviewJson,
): CharacterSheetPreview {
return CharacterSheetPreview(
characterSheetId = json.id,
name = json.name,
level = json.level,
)
}
private suspend fun convertFromV1(
json: CharacterSheetJsonV1,
): CharacterSheet = characterSheetUseCase.run {

View file

@ -0,0 +1,7 @@
package com.pixelized.shared.lwa.model.characterSheet
data class CharacterSheetPreview(
val characterSheetId: String,
val name: String,
val level: Int,
)