mirror of
https://github.com/ovrport/app.git
synced 2026-10-27 03:19:56 -04:00
fix: Add default values for configs
This commit is contained in:
1 parent
c4fc748024
commit
3c6b910233
1 file changed
+6
-6
@@ -7,25 +7,25 @@ import kotlinx.serialization.json.Json
|
|||||||
@Serializable
|
@Serializable
|
||||||
data class FrdaAsset(
|
data class FrdaAsset(
|
||||||
@SerialName("ID")
|
@SerialName("ID")
|
||||||
val id: Long,
|
val id: Long = 0,
|
||||||
val path: String,
|
val path: String = "",
|
||||||
val type: String = "store"
|
val type: String = "store"
|
||||||
)
|
)
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class FrdaParameters(
|
data class FrdaParameters(
|
||||||
val assets: List<FrdaAsset>,
|
val assets: List<FrdaAsset> = listOf(),
|
||||||
val skus: List<String>
|
val skus: List<String> = listOf()
|
||||||
)
|
)
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class FrdaInteraction(
|
data class FrdaInteraction(
|
||||||
val parameters: FrdaParameters
|
val parameters: FrdaParameters = FrdaParameters(),
|
||||||
)
|
)
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class FrdaConfig(
|
data class FrdaConfig(
|
||||||
val interaction: FrdaInteraction
|
val interaction: FrdaInteraction = FrdaInteraction(),
|
||||||
)
|
)
|
||||||
|
|
||||||
private val json = Json { ignoreUnknownKeys = true }
|
private val json = Json { ignoreUnknownKeys = true }
|
||||||
|
|||||||
Reference in new issue
Block a user