def __str__(self): return '{0} ({1}: {2} - {3} [{4}])'.format( super().__str__(), self.success, BluffinMessageIdEnum.to_string(self.message_id), self.message, self.command)
def __str__(self): return '[{0}:{1}] {2} ({3}: {4} - {5} [{6}])'.format( BluffinCommandEnum.to_char(self.command_type), self.table_id, self.command_name, self.success, BluffinMessageIdEnum.to_string(self.message_id), self.message, self.command )
def __init__(self, obj, command): super().__init__(obj, command.command_type) self.success = obj['Success'] self.message_id = BluffinMessageIdEnum.parse(obj['MessageId']) self.message = obj['Message'] self.command = command
def _encode_specific(self, d): super()._encode_specific(d) d['Success'] = self.success d['MessageId'] = BluffinMessageIdEnum.to_string(self.message_id) d['Message'] = self.message
def __str__(self): return '[{0}:{1}] {2} ({3}: {4} - {5} [{6}])'.format( BluffinCommandEnum.to_char(self.command_type), self.table_id, self.command_name, self.success, BluffinMessageIdEnum.to_string(self.message_id), self.message, self.command)