diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-24 15:27:12 +0100 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-24 15:27:29 +0100 |
commit | 5af219449a1a9b04cc122dceb21c61a7e23d5626 (patch) | |
tree | 165baa4c3cc558ca00af296b2f516109afa4e53d /sw-common-model | |
parent | Rename connect to connectStateAndDispatch to avoid conflicts (diff) | |
download | seven-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.kt | 9 |
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 |