def __str__(self): return '{0} => {1} ({2}) ({3})'.format( super().__str__(), self.implemented_protocol_version, ', '.join([LobbyTypeEnum.to_string(x) for x in self.supported_lobby_types]), ', '.join([x.__str__() for x in self.available_games]) )
def _encode_specific(self, d): super()._encode_specific(d) d['ImplementedProtocolVersion'] = self.implemented_protocol_version d['SupportedLobbyTypes'] = [LobbyTypeEnum.to_string(x) for x in self.supported_lobby_types] d['AvailableGames'] = [x.encode() for x in self.available_games]
def __str__(self): return '{0} ({1})'.format( super().__str__(), ', '.join([LobbyTypeEnum.to_string(x) for x in self.lobby_types]) )
def _encode_specific(self, d): super()._encode_specific(d) d['LobbyTypes'] = [LobbyTypeEnum.to_string(x) for x in self.lobby_types]
def encode(self): d = OrderedDict() d['OptionType'] = LobbyTypeEnum.to_string(self.option_type) self._encode_specific(d) self._encode_specific_end(d) return d
def __str__(self): return LobbyTypeEnum.to_string(self.option_type)