summaryrefslogtreecommitdiff
path: root/frontend/src/api/model.js
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2019-02-27 03:12:55 +0100
committerjbion <joffrey.bion@amadeus.com>2019-02-27 03:12:55 +0100
commit8d73d21108738754efd07b63ecc7368fd49502fa (patch)
tree8755dd1aa9c61e9f473fd6787ba8f3595006f0fa /frontend/src/api/model.js
parentRemove unnecessary Jackson annotation on non-DTOs (diff)
downloadseven-wonders-8d73d21108738754efd07b63ecc7368fd49502fa.tar.gz
seven-wonders-8d73d21108738754efd07b63ecc7368fd49502fa.tar.bz2
seven-wonders-8d73d21108738754efd07b63ecc7368fd49502fa.zip
Simplify state and reducers
Diffstat (limited to 'frontend/src/api/model.js')
-rw-r--r--frontend/src/api/model.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/frontend/src/api/model.js b/frontend/src/api/model.js
index 2d1d2dde..cd718ff1 100644
--- a/frontend/src/api/model.js
+++ b/frontend/src/api/model.js
@@ -10,10 +10,18 @@ export type ApiErrorDetail = {
export type ApiGameState = "LOBBY" | "PLAYING";
+export type ApiPlayer = {
+ username: string,
+ displayName: string,
+ index: number,
+ gameOwner: Boolean,
+ user: Boolean,
+};
+
export type ApiLobby = {
id: number,
name: string,
- owner: ApiPlayer,
+ owner: string,
players: ApiPlayer[],
settings: ApiSettings,
state: ApiGameState
@@ -33,14 +41,6 @@ export type ApiSettings = {
wonPointsPerVictoryPerAge: Map<number, number>
};
-export type ApiPlayer = {
- username: string,
- displayName: string,
- index: number,
- gameOwner: Boolean,
- user: Boolean,
-};
-
export type ApiTable = {
boards: ApiBoard[],
currentAge: number,
bgstack15