Пример #1
0
 def __repr__(self):
     return '<Server Response: method={}, seq={}, params={}>'.format(
         self.method, self.seq, json_dump(self.params))
Пример #2
0
 def dump(self):
     return (json_dump({
         'method': self.method,
         'seq': self.seq,
         'params': self.params
     }))
Пример #3
0
 def __repr__(self):
     return '<Client Request: method={}, seq={}, params={}>'.format(
         self.method, self.seq, json_dump(self.params))