summaryrefslogtreecommitdiff
path: root/sw-common-model
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-03-24 15:27:12 +0100
committerJoffrey Bion <joffrey.bion@booking.com>2020-03-24 15:27:29 +0100
commit5af219449a1a9b04cc122dceb21c61a7e23d5626 (patch)
tree165baa4c3cc558ca00af296b2f516109afa4e53d /sw-common-model
parentRename connect to connectStateAndDispatch to avoid conflicts (diff)
downloadseven-wonders-5af219449a1a9b04cc122dceb21c61a7e23d5626.tar.gz
seven-wonders-5af219449a1a9b04cc122dceb21c61a7e23d5626.tar.bz2
seven-wonders-5af219449a1a9b04cc122dceb21c61a7e23d5626.zip
Get joinability/startability info from server with reason
Diffstat (limited to 'sw-common-model')
-rw-r--r--sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Api.kt9
1 files changed, 8 insertions, 1 deletions
diff --git a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Api.kt b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Api.kt
index 503141c4..5816edaf 100644
--- a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Api.kt
+++ b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/api/Api.kt
@@ -15,7 +15,14 @@ data class LobbyDTO(
val owner: String,
val players: List<PlayerDTO>,
val state: State,
- val canBeStarted: Boolean
+ val joinAction: Actionability,
+ val startAction: Actionability
+)
+
+@Serializable
+data class Actionability(
+ val canDo: Boolean,
+ val tooltip: String
)
@Serializable
bgstack15