def __str__(self):
     return '{0} ({1}:{2} [{3}])'.format(
         super().__str__(),
         self.betting_round_id,
         RoundTypeEnum.to_string(self.round),
         ', '.join(self.cards)
     )
Ejemplo n.º 2
0
 def __init__(self, obj):
     super().__init__(obj)
     self.round = RoundTypeEnum.parse(obj['Round'])
     self.betting_round_id = obj['BettingRoundId']
     self.cards = obj['Cards']
Ejemplo n.º 3
0
 def _encode_specific(self, d):
     super()._encode_specific(d)
     d['Round'] = RoundTypeEnum.to_string(self.round)
     d['BettingRoundId'] = self.betting_round_id
     d['Cards'] = self.cards
Ejemplo n.º 4
0
 def __str__(self):
     return '{0} ({1}:{2} [{3}])'.format(
         super().__str__(), self.betting_round_id,
         RoundTypeEnum.to_string(self.round), ', '.join(self.cards))
 def __init__(self, obj):
     super().__init__(obj)
     self.round = RoundTypeEnum.parse(obj['Round'])
     self.pots_amounts = obj['PotsAmounts']
 def _encode_specific(self, d):
     super()._encode_specific(d)
     d['Round'] = RoundTypeEnum.to_string(self.round)
     d['PotsAmounts'] = self.pots_amounts
 def __str__(self):
     return '{0} ({1} [{2}])'.format(
         super().__str__(),
         RoundTypeEnum.to_string(self.round),
         ', '.join([x.__str__() for x in self.pots_amounts])
     )
 def __init__(self, obj):
     super().__init__(obj)
     self.round = RoundTypeEnum.parse(obj['Round'])
     self.betting_round_id = obj['BettingRoundId']
     self.cards = obj['Cards']
 def _encode_specific(self, d):
     super()._encode_specific(d)
     d['Round'] = RoundTypeEnum.to_string(self.round)
     d['BettingRoundId'] = self.betting_round_id
     d['Cards'] = self.cards