def __repr__(self): return '<Server Response: method={}, seq={}, params={}>'.format( self.method, self.seq, json_dump(self.params))
def dump(self): return (json_dump({ 'method': self.method, 'seq': self.seq, 'params': self.params }))
def __repr__(self): return '<Client Request: method={}, seq={}, params={}>'.format( self.method, self.seq, json_dump(self.params))