j3k0 / ganomede-notifications

Long-pull notification service for Ganomede
0 stars 0 forks source link

Interaction with Turngame module #9

Closed elmigranto closed 9 years ago

elmigranto commented 9 years ago

What data and notification types do we need for Turngame? What should they include as data? Relevant pull request: https://github.com/j3k0/ganomede-notifications/pull/10

  1. move is perfromed (at least should include game ID)
j3k0 commented 9 years ago

Basically, we need to know that a move has been performed on a given game.

All participant, except the one making the move, will be notified.

Invitation data will look like this:

"from": "turngame/v1",
"to": "username",
"type": "move",
"data": {
  "game": {
    "id": "ab12345789",
    "type": "triominos/v1",
    "players": [ "some_username_1", "some_username_2" ],
    "turn": "some_username_1",
    "status": "active",
    "gameData": { ... }
  }
}