Should we create an Invite entity with some structure like {Game{id, type}, Host{id, name}, Date, Status of Game, Status of Invite}?
Where do we keep information about the game, for example, number of players?
The list of invites should have all three kind of invites: a) games where everyone is invited; b) games where you are invited; c) games where you are the host
Shall we restructure Success/Error server message, such that they have a common structure?
Shall we use a non-standard toString for Player and Game?
What should happen in the situation when A invites B for a game and B refuses: a) the game is open to everyone; b) the game is considered canceled?
The Game entity will be kept, and createdan invite entity:
1.1. Game{id, type, host, date, ¿public?}
1.2. Invite{Game, Status, Opponents}
1.3. Invite status HOST will be droped in favour of ACCEPTED
A client X should be able to invite client Y to a game. And client Y should be able to answer yes (or no) ano therefore start (or not) a game: