Exemple #1
0
 def from_dict(cls, json_dict: Dict) -> SMSEvent:
     return NotifySingleTribeCouncilEvent(
         game_id=json_dict['game_id'],
         game_options=json_dict['game_options'],
         winning_teams=[Team.from_dict(v)
                        for v in json_dict['winning_teams']],
         losing_teams=[Team.from_dict(v)
                       for v in json_dict['losing_teams']]
     )
Exemple #2
0
 def from_dict(cls, json_dict: Dict) -> SMSEvent:
     return NotifyTeamReassignmentEvent(
         game_id=json_dict['game_id'],
         game_options=json_dict['game_options'],
         player=Player.from_dict(json_dict['player']),
         team=Team.from_dict(json_dict['team'])
     )
Exemple #3
0
 def from_dict(cls, json_dict: Dict) -> SMSEvent:
     return NotifyImmunityAwardedEvent(
         game_id=json_dict['game_id'],
         game_options=json_dict['game_options'],
         team=Team.from_dict(json_dict['team']))