From 53cdfdfd3d7f4a8fed08ee475b2d5936155f6875 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Thu, 20 Aug 2020 15:36:49 +0200 Subject: Fix style & sort imports --- .../org/luxons/sevenwonders/client/SevenWondersClient.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sw-client/src') diff --git a/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt b/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt index 3267773f..f438e236 100644 --- a/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt +++ b/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt @@ -15,16 +15,16 @@ import org.hildan.krossbow.stomp.conversions.kxserialization.convertAndSend import org.hildan.krossbow.stomp.conversions.kxserialization.subscribe import org.hildan.krossbow.stomp.conversions.kxserialization.withJsonConversions import org.hildan.krossbow.stomp.sendEmptyMsg -import org.luxons.sevenwonders.model.Settings import org.luxons.sevenwonders.model.PlayerMove import org.luxons.sevenwonders.model.PlayerTurnInfo -import org.luxons.sevenwonders.model.wonders.AssignedWonder +import org.luxons.sevenwonders.model.Settings import org.luxons.sevenwonders.model.api.ConnectedPlayer import org.luxons.sevenwonders.model.api.LobbyDTO import org.luxons.sevenwonders.model.api.SEVEN_WONDERS_WS_ENDPOINT import org.luxons.sevenwonders.model.api.actions.* import org.luxons.sevenwonders.model.api.errors.ErrorDTO import org.luxons.sevenwonders.model.cards.PreparedCard +import org.luxons.sevenwonders.model.wonders.AssignedWonder class SevenWondersClient { @@ -122,13 +122,13 @@ class SevenWondersSession(private val stompSession: StompSessionWithKxSerializat } fun watchPlayerReady(gameId: Long): Flow = - stompSession.subscribe("/topic/game/$gameId/playerReady", String.serializer()) + stompSession.subscribe("/topic/game/$gameId/playerReady", String.serializer()) fun watchPreparedCards(gameId: Long): Flow = - stompSession.subscribe("/topic/game/$gameId/prepared", PreparedCard.serializer()) + stompSession.subscribe("/topic/game/$gameId/prepared", PreparedCard.serializer()) fun watchTurns(): Flow = - stompSession.subscribe("/user/queue/game/turn", PlayerTurnInfo.serializer()) + stompSession.subscribe("/user/queue/game/turn", PlayerTurnInfo.serializer()) suspend fun sayReady() { stompSession.sendEmptyMsg("/app/game/sayReady") -- cgit