fix: FRO-29 Websocket Communication

This commit is contained in:
2025-12-10 09:42:18 +01:00
parent 33efc4e107
commit 690a1e46f5
7 changed files with 23 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ import logic.game.GameLobby
import model.users.User
case class WonInfoDTO(
gameId: String,
winner: Option[PodiumPlayerDTO],
allPlayers: Seq[PodiumPlayerDTO]
)
@@ -24,6 +25,7 @@ object WonInfoDTO {
val winnerDTO = lobby.logic.getWinner
WonInfoDTO(
gameId = lobby.id,
winner = winnerDTO.map(player => PodiumPlayerDTO(lobby.logic, player)),
allPlayers = allPlayersDTO
)