The Quarkus project moves to apps/backend and the Express sources go. The image is built from the repo root as before, with Temurin 25, and runs as a non-root user on port 6000. Compose passes the database as a JDBC URL with the same MANCALA_DB_PASSWORD.
17 lines
684 B
Java
17 lines
684 B
Java
package app.playmancala.model;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
|
|
// on_game_end, sent to the players and spectators of a live game when it ends for any reason. `result` is null (and
|
|
// sent as null) when the game ended without a winner.
|
|
@JsonPropertyOrder({ "gameId", "result", "endReason", "clock", "winnerId", "leftUserId" })
|
|
public record GameEndMessage(
|
|
String gameId,
|
|
GameResult result,
|
|
EndReason endReason,
|
|
GameClock clock,
|
|
@JsonInclude(JsonInclude.Include.NON_NULL) String winnerId,
|
|
@JsonInclude(JsonInclude.Include.NON_NULL) String leftUserId) {
|
|
}
|