requests.hrl 969 B

123456789101112131415161718192021
  1. -include("basic_types.hrl").
  2. % actions are being instantiated from client to server
  3. -record(session_attach, {token}).
  4. -record(login, {username, password}).
  5. -record(logout, {}).
  6. -record(join_game, {game}).
  7. -record(stats_action, {player_id :: 'PlayerId'(), game_type}).
  8. -record(chat, {game, player_id, who, message }).
  9. -record(game_action, {game :: 'GameId'(), action, args = []}).
  10. -record(pause_game, {table_id :: integer(),game :: 'GameId'(),action}).
  11. % event notifications from server to client
  12. -record(game_event, {game :: 'GameId'(), event, args = [] }).
  13. -record(chat_event, {game :: 'GameId'(), player_id :: 'PlayerId'(), who, message }).
  14. -record(stats_event, {player_id :: 'PlayerId'(), games, reveals, protocol, score}).
  15. -record(game_paused, {table_id :: integer(), game :: 'GameId'(),action,who :: 'PlayerId'(),retries}).
  16. -record(disconnect, {reason_id,reason}).
  17. -record(player_left, {player :: 'PlayerId'(),human_replaced=false,replacement::'PlayerId'()}).