diff --git a/libs/core/AccountSupervisorService-remote b/libs/core/AccountSupervisorService-remote
deleted file mode 100755
index 8df933c..0000000
--- a/libs/core/AccountSupervisorService-remote
+++ /dev/null
@@ -1,152 +0,0 @@
-#!/usr/bin/env python
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-import sys
-import pprint
-if sys.version_info[0] > 2:
- from urllib.parse import urlparse
-else:
- from urlparse import urlparse
-from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient
-from thrift.protocol.TBinaryProtocol import TBinaryProtocol
-
-from line import AccountSupervisorService
-from line.ttypes import *
-
-if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print('')
- print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]')
- print('')
- print('Functions:')
- print(' RSAKey getRSAKey()')
- print(' void notifyEmailConfirmationResult( parameterMap)')
- print(' string registerVirtualAccount(string locale, string encryptedVirtualUserId, string encryptedPassword)')
- print(' void requestVirtualAccountPasswordChange(string virtualMid, string encryptedVirtualUserId, string encryptedOldPassword, string encryptedNewPassword)')
- print(' void requestVirtualAccountPasswordSet(string virtualMid, string encryptedVirtualUserId, string encryptedNewPassword)')
- print(' void unregisterVirtualAccount(string virtualMid)')
- print('')
- sys.exit(0)
-
-pp = pprint.PrettyPrinter(indent=2)
-host = 'localhost'
-port = 9090
-uri = ''
-framed = False
-ssl = False
-validate = True
-ca_certs = None
-keyfile = None
-certfile = None
-http = False
-argi = 1
-
-if sys.argv[argi] == '-h':
- parts = sys.argv[argi + 1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- argi += 2
-
-if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi + 1])
- parts = url[1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- else:
- port = 80
- uri = url[2]
- if url[4]:
- uri += '?%s' % url[4]
- http = True
- argi += 2
-
-if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
- framed = True
- argi += 1
-
-if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
- ssl = True
- argi += 1
-
-if sys.argv[argi] == '-novalidate':
- validate = False
- argi += 1
-
-if sys.argv[argi] == '-ca_certs':
- ca_certs = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-keyfile':
- keyfile = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-certfile':
- certfile = sys.argv[argi+1]
- argi += 2
-
-cmd = sys.argv[argi]
-args = sys.argv[argi + 1:]
-
-if http:
- transport = THttpClient.THttpClient(host, port, uri)
-else:
- if ssl:
- socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile)
- else:
- socket = TSocket.TSocket(host, port)
- if framed:
- transport = TTransport.TFramedTransport(socket)
- else:
- transport = TTransport.TBufferedTransport(socket)
-protocol = TBinaryProtocol(transport)
-client = AccountSupervisorService.Client(protocol)
-transport.open()
-
-if cmd == 'getRSAKey':
- if len(args) != 0:
- print('getRSAKey requires 0 args')
- sys.exit(1)
- pp.pprint(client.getRSAKey())
-
-elif cmd == 'notifyEmailConfirmationResult':
- if len(args) != 1:
- print('notifyEmailConfirmationResult requires 1 args')
- sys.exit(1)
- pp.pprint(client.notifyEmailConfirmationResult(eval(args[0]),))
-
-elif cmd == 'registerVirtualAccount':
- if len(args) != 3:
- print('registerVirtualAccount requires 3 args')
- sys.exit(1)
- pp.pprint(client.registerVirtualAccount(args[0], args[1], args[2],))
-
-elif cmd == 'requestVirtualAccountPasswordChange':
- if len(args) != 4:
- print('requestVirtualAccountPasswordChange requires 4 args')
- sys.exit(1)
- pp.pprint(client.requestVirtualAccountPasswordChange(args[0], args[1], args[2], args[3],))
-
-elif cmd == 'requestVirtualAccountPasswordSet':
- if len(args) != 3:
- print('requestVirtualAccountPasswordSet requires 3 args')
- sys.exit(1)
- pp.pprint(client.requestVirtualAccountPasswordSet(args[0], args[1], args[2],))
-
-elif cmd == 'unregisterVirtualAccount':
- if len(args) != 1:
- print('unregisterVirtualAccount requires 1 args')
- sys.exit(1)
- pp.pprint(client.unregisterVirtualAccount(args[0],))
-
-else:
- print('Unrecognized method %s' % cmd)
- sys.exit(1)
-
-transport.close()
diff --git a/libs/core/AccountSupervisorService.py b/libs/core/AccountSupervisorService.py
deleted file mode 100644
index 83cb0a2..0000000
--- a/libs/core/AccountSupervisorService.py
+++ /dev/null
@@ -1,1329 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-from thrift.TRecursive import fix_spec
-
-import sys
-import logging
-from .ttypes import *
-from thrift.Thrift import TProcessor
-from thrift.transport import TTransport
-all_structs = []
-
-
-class Iface(object):
- def getRSAKey(self):
- pass
-
- def notifyEmailConfirmationResult(self, parameterMap):
- """
- Parameters:
- - parameterMap
-
- """
- pass
-
- def registerVirtualAccount(self, locale, encryptedVirtualUserId, encryptedPassword):
- """
- Parameters:
- - locale
- - encryptedVirtualUserId
- - encryptedPassword
-
- """
- pass
-
- def requestVirtualAccountPasswordChange(self, virtualMid, encryptedVirtualUserId, encryptedOldPassword, encryptedNewPassword):
- """
- Parameters:
- - virtualMid
- - encryptedVirtualUserId
- - encryptedOldPassword
- - encryptedNewPassword
-
- """
- pass
-
- def requestVirtualAccountPasswordSet(self, virtualMid, encryptedVirtualUserId, encryptedNewPassword):
- """
- Parameters:
- - virtualMid
- - encryptedVirtualUserId
- - encryptedNewPassword
-
- """
- pass
-
- def unregisterVirtualAccount(self, virtualMid):
- """
- Parameters:
- - virtualMid
-
- """
- pass
-
-
-class Client(Iface):
- def __init__(self, iprot, oprot=None):
- self._iprot = self._oprot = iprot
- if oprot is not None:
- self._oprot = oprot
- self._seqid = 0
-
- def getRSAKey(self):
- self.send_getRSAKey()
- return self.recv_getRSAKey()
-
- def send_getRSAKey(self):
- self._oprot.writeMessageBegin('getRSAKey', TMessageType.CALL, self._seqid)
- args = getRSAKey_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getRSAKey(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getRSAKey_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getRSAKey failed: unknown result")
-
- def notifyEmailConfirmationResult(self, parameterMap):
- """
- Parameters:
- - parameterMap
-
- """
- self.send_notifyEmailConfirmationResult(parameterMap)
- self.recv_notifyEmailConfirmationResult()
-
- def send_notifyEmailConfirmationResult(self, parameterMap):
- self._oprot.writeMessageBegin('notifyEmailConfirmationResult', TMessageType.CALL, self._seqid)
- args = notifyEmailConfirmationResult_args()
- args.parameterMap = parameterMap
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_notifyEmailConfirmationResult(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = notifyEmailConfirmationResult_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def registerVirtualAccount(self, locale, encryptedVirtualUserId, encryptedPassword):
- """
- Parameters:
- - locale
- - encryptedVirtualUserId
- - encryptedPassword
-
- """
- self.send_registerVirtualAccount(locale, encryptedVirtualUserId, encryptedPassword)
- return self.recv_registerVirtualAccount()
-
- def send_registerVirtualAccount(self, locale, encryptedVirtualUserId, encryptedPassword):
- self._oprot.writeMessageBegin('registerVirtualAccount', TMessageType.CALL, self._seqid)
- args = registerVirtualAccount_args()
- args.locale = locale
- args.encryptedVirtualUserId = encryptedVirtualUserId
- args.encryptedPassword = encryptedPassword
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_registerVirtualAccount(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = registerVirtualAccount_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "registerVirtualAccount failed: unknown result")
-
- def requestVirtualAccountPasswordChange(self, virtualMid, encryptedVirtualUserId, encryptedOldPassword, encryptedNewPassword):
- """
- Parameters:
- - virtualMid
- - encryptedVirtualUserId
- - encryptedOldPassword
- - encryptedNewPassword
-
- """
- self.send_requestVirtualAccountPasswordChange(virtualMid, encryptedVirtualUserId, encryptedOldPassword, encryptedNewPassword)
- self.recv_requestVirtualAccountPasswordChange()
-
- def send_requestVirtualAccountPasswordChange(self, virtualMid, encryptedVirtualUserId, encryptedOldPassword, encryptedNewPassword):
- self._oprot.writeMessageBegin('requestVirtualAccountPasswordChange', TMessageType.CALL, self._seqid)
- args = requestVirtualAccountPasswordChange_args()
- args.virtualMid = virtualMid
- args.encryptedVirtualUserId = encryptedVirtualUserId
- args.encryptedOldPassword = encryptedOldPassword
- args.encryptedNewPassword = encryptedNewPassword
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_requestVirtualAccountPasswordChange(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = requestVirtualAccountPasswordChange_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def requestVirtualAccountPasswordSet(self, virtualMid, encryptedVirtualUserId, encryptedNewPassword):
- """
- Parameters:
- - virtualMid
- - encryptedVirtualUserId
- - encryptedNewPassword
-
- """
- self.send_requestVirtualAccountPasswordSet(virtualMid, encryptedVirtualUserId, encryptedNewPassword)
- self.recv_requestVirtualAccountPasswordSet()
-
- def send_requestVirtualAccountPasswordSet(self, virtualMid, encryptedVirtualUserId, encryptedNewPassword):
- self._oprot.writeMessageBegin('requestVirtualAccountPasswordSet', TMessageType.CALL, self._seqid)
- args = requestVirtualAccountPasswordSet_args()
- args.virtualMid = virtualMid
- args.encryptedVirtualUserId = encryptedVirtualUserId
- args.encryptedNewPassword = encryptedNewPassword
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_requestVirtualAccountPasswordSet(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = requestVirtualAccountPasswordSet_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def unregisterVirtualAccount(self, virtualMid):
- """
- Parameters:
- - virtualMid
-
- """
- self.send_unregisterVirtualAccount(virtualMid)
- self.recv_unregisterVirtualAccount()
-
- def send_unregisterVirtualAccount(self, virtualMid):
- self._oprot.writeMessageBegin('unregisterVirtualAccount', TMessageType.CALL, self._seqid)
- args = unregisterVirtualAccount_args()
- args.virtualMid = virtualMid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_unregisterVirtualAccount(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = unregisterVirtualAccount_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
-
-class Processor(Iface, TProcessor):
- def __init__(self, handler):
- self._handler = handler
- self._processMap = {}
- self._processMap["getRSAKey"] = Processor.process_getRSAKey
- self._processMap["notifyEmailConfirmationResult"] = Processor.process_notifyEmailConfirmationResult
- self._processMap["registerVirtualAccount"] = Processor.process_registerVirtualAccount
- self._processMap["requestVirtualAccountPasswordChange"] = Processor.process_requestVirtualAccountPasswordChange
- self._processMap["requestVirtualAccountPasswordSet"] = Processor.process_requestVirtualAccountPasswordSet
- self._processMap["unregisterVirtualAccount"] = Processor.process_unregisterVirtualAccount
- self._on_message_begin = None
-
- def on_message_begin(self, func):
- self._on_message_begin = func
-
- def process(self, iprot, oprot):
- (name, type, seqid) = iprot.readMessageBegin()
- if self._on_message_begin:
- self._on_message_begin(name, type, seqid)
- if name not in self._processMap:
- iprot.skip(TType.STRUCT)
- iprot.readMessageEnd()
- x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
- oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
- x.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
- return
- else:
- self._processMap[name](self, seqid, iprot, oprot)
- return True
-
- def process_getRSAKey(self, seqid, iprot, oprot):
- args = getRSAKey_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getRSAKey_result()
- try:
- result.success = self._handler.getRSAKey()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getRSAKey", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_notifyEmailConfirmationResult(self, seqid, iprot, oprot):
- args = notifyEmailConfirmationResult_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = notifyEmailConfirmationResult_result()
- try:
- self._handler.notifyEmailConfirmationResult(args.parameterMap)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("notifyEmailConfirmationResult", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_registerVirtualAccount(self, seqid, iprot, oprot):
- args = registerVirtualAccount_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = registerVirtualAccount_result()
- try:
- result.success = self._handler.registerVirtualAccount(args.locale, args.encryptedVirtualUserId, args.encryptedPassword)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("registerVirtualAccount", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_requestVirtualAccountPasswordChange(self, seqid, iprot, oprot):
- args = requestVirtualAccountPasswordChange_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = requestVirtualAccountPasswordChange_result()
- try:
- self._handler.requestVirtualAccountPasswordChange(args.virtualMid, args.encryptedVirtualUserId, args.encryptedOldPassword, args.encryptedNewPassword)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("requestVirtualAccountPasswordChange", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_requestVirtualAccountPasswordSet(self, seqid, iprot, oprot):
- args = requestVirtualAccountPasswordSet_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = requestVirtualAccountPasswordSet_result()
- try:
- self._handler.requestVirtualAccountPasswordSet(args.virtualMid, args.encryptedVirtualUserId, args.encryptedNewPassword)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("requestVirtualAccountPasswordSet", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_unregisterVirtualAccount(self, seqid, iprot, oprot):
- args = unregisterVirtualAccount_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = unregisterVirtualAccount_result()
- try:
- self._handler.unregisterVirtualAccount(args.virtualMid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("unregisterVirtualAccount", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
-# HELPER FUNCTIONS AND STRUCTURES
-
-
-class getRSAKey_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getRSAKey_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getRSAKey_args)
-getRSAKey_args.thrift_spec = (
-)
-
-
-class getRSAKey_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = RSAKey()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getRSAKey_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getRSAKey_result)
-getRSAKey_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [RSAKey, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class notifyEmailConfirmationResult_args(object):
- """
- Attributes:
- - parameterMap
-
- """
-
-
- def __init__(self, parameterMap=None,):
- self.parameterMap = parameterMap
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.MAP:
- self.parameterMap = {}
- (_ktype333, _vtype334, _size332) = iprot.readMapBegin()
- for _i336 in range(_size332):
- _key337 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val338 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.parameterMap[_key337] = _val338
- iprot.readMapEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('notifyEmailConfirmationResult_args')
- if self.parameterMap is not None:
- oprot.writeFieldBegin('parameterMap', TType.MAP, 2)
- oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameterMap))
- for kiter339, viter340 in self.parameterMap.items():
- oprot.writeString(kiter339.encode('utf-8') if sys.version_info[0] == 2 else kiter339)
- oprot.writeString(viter340.encode('utf-8') if sys.version_info[0] == 2 else viter340)
- oprot.writeMapEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(notifyEmailConfirmationResult_args)
-notifyEmailConfirmationResult_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.MAP, 'parameterMap', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2
-)
-
-
-class notifyEmailConfirmationResult_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('notifyEmailConfirmationResult_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(notifyEmailConfirmationResult_result)
-notifyEmailConfirmationResult_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class registerVirtualAccount_args(object):
- """
- Attributes:
- - locale
- - encryptedVirtualUserId
- - encryptedPassword
-
- """
-
-
- def __init__(self, locale=None, encryptedVirtualUserId=None, encryptedPassword=None,):
- self.locale = locale
- self.encryptedVirtualUserId = encryptedVirtualUserId
- self.encryptedPassword = encryptedPassword
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.locale = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.encryptedVirtualUserId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.encryptedPassword = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('registerVirtualAccount_args')
- if self.locale is not None:
- oprot.writeFieldBegin('locale', TType.STRING, 2)
- oprot.writeString(self.locale.encode('utf-8') if sys.version_info[0] == 2 else self.locale)
- oprot.writeFieldEnd()
- if self.encryptedVirtualUserId is not None:
- oprot.writeFieldBegin('encryptedVirtualUserId', TType.STRING, 3)
- oprot.writeString(self.encryptedVirtualUserId.encode('utf-8') if sys.version_info[0] == 2 else self.encryptedVirtualUserId)
- oprot.writeFieldEnd()
- if self.encryptedPassword is not None:
- oprot.writeFieldBegin('encryptedPassword', TType.STRING, 4)
- oprot.writeString(self.encryptedPassword.encode('utf-8') if sys.version_info[0] == 2 else self.encryptedPassword)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(registerVirtualAccount_args)
-registerVirtualAccount_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'locale', 'UTF8', None, ), # 2
- (3, TType.STRING, 'encryptedVirtualUserId', 'UTF8', None, ), # 3
- (4, TType.STRING, 'encryptedPassword', 'UTF8', None, ), # 4
-)
-
-
-class registerVirtualAccount_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('registerVirtualAccount_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(registerVirtualAccount_result)
-registerVirtualAccount_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class requestVirtualAccountPasswordChange_args(object):
- """
- Attributes:
- - virtualMid
- - encryptedVirtualUserId
- - encryptedOldPassword
- - encryptedNewPassword
-
- """
-
-
- def __init__(self, virtualMid=None, encryptedVirtualUserId=None, encryptedOldPassword=None, encryptedNewPassword=None,):
- self.virtualMid = virtualMid
- self.encryptedVirtualUserId = encryptedVirtualUserId
- self.encryptedOldPassword = encryptedOldPassword
- self.encryptedNewPassword = encryptedNewPassword
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.virtualMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.encryptedVirtualUserId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.encryptedOldPassword = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.encryptedNewPassword = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('requestVirtualAccountPasswordChange_args')
- if self.virtualMid is not None:
- oprot.writeFieldBegin('virtualMid', TType.STRING, 2)
- oprot.writeString(self.virtualMid.encode('utf-8') if sys.version_info[0] == 2 else self.virtualMid)
- oprot.writeFieldEnd()
- if self.encryptedVirtualUserId is not None:
- oprot.writeFieldBegin('encryptedVirtualUserId', TType.STRING, 3)
- oprot.writeString(self.encryptedVirtualUserId.encode('utf-8') if sys.version_info[0] == 2 else self.encryptedVirtualUserId)
- oprot.writeFieldEnd()
- if self.encryptedOldPassword is not None:
- oprot.writeFieldBegin('encryptedOldPassword', TType.STRING, 4)
- oprot.writeString(self.encryptedOldPassword.encode('utf-8') if sys.version_info[0] == 2 else self.encryptedOldPassword)
- oprot.writeFieldEnd()
- if self.encryptedNewPassword is not None:
- oprot.writeFieldBegin('encryptedNewPassword', TType.STRING, 5)
- oprot.writeString(self.encryptedNewPassword.encode('utf-8') if sys.version_info[0] == 2 else self.encryptedNewPassword)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(requestVirtualAccountPasswordChange_args)
-requestVirtualAccountPasswordChange_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'virtualMid', 'UTF8', None, ), # 2
- (3, TType.STRING, 'encryptedVirtualUserId', 'UTF8', None, ), # 3
- (4, TType.STRING, 'encryptedOldPassword', 'UTF8', None, ), # 4
- (5, TType.STRING, 'encryptedNewPassword', 'UTF8', None, ), # 5
-)
-
-
-class requestVirtualAccountPasswordChange_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('requestVirtualAccountPasswordChange_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(requestVirtualAccountPasswordChange_result)
-requestVirtualAccountPasswordChange_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class requestVirtualAccountPasswordSet_args(object):
- """
- Attributes:
- - virtualMid
- - encryptedVirtualUserId
- - encryptedNewPassword
-
- """
-
-
- def __init__(self, virtualMid=None, encryptedVirtualUserId=None, encryptedNewPassword=None,):
- self.virtualMid = virtualMid
- self.encryptedVirtualUserId = encryptedVirtualUserId
- self.encryptedNewPassword = encryptedNewPassword
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.virtualMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.encryptedVirtualUserId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.encryptedNewPassword = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('requestVirtualAccountPasswordSet_args')
- if self.virtualMid is not None:
- oprot.writeFieldBegin('virtualMid', TType.STRING, 2)
- oprot.writeString(self.virtualMid.encode('utf-8') if sys.version_info[0] == 2 else self.virtualMid)
- oprot.writeFieldEnd()
- if self.encryptedVirtualUserId is not None:
- oprot.writeFieldBegin('encryptedVirtualUserId', TType.STRING, 3)
- oprot.writeString(self.encryptedVirtualUserId.encode('utf-8') if sys.version_info[0] == 2 else self.encryptedVirtualUserId)
- oprot.writeFieldEnd()
- if self.encryptedNewPassword is not None:
- oprot.writeFieldBegin('encryptedNewPassword', TType.STRING, 4)
- oprot.writeString(self.encryptedNewPassword.encode('utf-8') if sys.version_info[0] == 2 else self.encryptedNewPassword)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(requestVirtualAccountPasswordSet_args)
-requestVirtualAccountPasswordSet_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'virtualMid', 'UTF8', None, ), # 2
- (3, TType.STRING, 'encryptedVirtualUserId', 'UTF8', None, ), # 3
- (4, TType.STRING, 'encryptedNewPassword', 'UTF8', None, ), # 4
-)
-
-
-class requestVirtualAccountPasswordSet_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('requestVirtualAccountPasswordSet_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(requestVirtualAccountPasswordSet_result)
-requestVirtualAccountPasswordSet_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class unregisterVirtualAccount_args(object):
- """
- Attributes:
- - virtualMid
-
- """
-
-
- def __init__(self, virtualMid=None,):
- self.virtualMid = virtualMid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.virtualMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('unregisterVirtualAccount_args')
- if self.virtualMid is not None:
- oprot.writeFieldBegin('virtualMid', TType.STRING, 2)
- oprot.writeString(self.virtualMid.encode('utf-8') if sys.version_info[0] == 2 else self.virtualMid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(unregisterVirtualAccount_args)
-unregisterVirtualAccount_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'virtualMid', 'UTF8', None, ), # 2
-)
-
-
-class unregisterVirtualAccount_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('unregisterVirtualAccount_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(unregisterVirtualAccount_result)
-unregisterVirtualAccount_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-fix_spec(all_structs)
-del all_structs
-
diff --git a/libs/core/AgeCheckService-remote b/libs/core/AgeCheckService-remote
deleted file mode 100755
index 72f7e42..0000000
--- a/libs/core/AgeCheckService-remote
+++ /dev/null
@@ -1,138 +0,0 @@
-#!/usr/bin/env python
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-import sys
-import pprint
-if sys.version_info[0] > 2:
- from urllib.parse import urlparse
-else:
- from urlparse import urlparse
-from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient
-from thrift.protocol.TBinaryProtocol import TBinaryProtocol
-
-from line import AgeCheckService
-from line.ttypes import *
-
-if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print('')
- print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]')
- print('')
- print('Functions:')
- print(' UserAgeType checkUserAge(CarrierCode carrier, string sessionId, string verifier, i32 standardAge)')
- print(' AgeCheckDocomoResult checkUserAgeWithDocomo(string openIdRedirectUrl, i32 standardAge, string verifier)')
- print(' string retrieveOpenIdAuthUrlWithDocomo()')
- print(' AgeCheckRequestResult retrieveRequestToken(CarrierCode carrier)')
- print('')
- sys.exit(0)
-
-pp = pprint.PrettyPrinter(indent=2)
-host = 'localhost'
-port = 9090
-uri = ''
-framed = False
-ssl = False
-validate = True
-ca_certs = None
-keyfile = None
-certfile = None
-http = False
-argi = 1
-
-if sys.argv[argi] == '-h':
- parts = sys.argv[argi + 1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- argi += 2
-
-if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi + 1])
- parts = url[1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- else:
- port = 80
- uri = url[2]
- if url[4]:
- uri += '?%s' % url[4]
- http = True
- argi += 2
-
-if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
- framed = True
- argi += 1
-
-if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
- ssl = True
- argi += 1
-
-if sys.argv[argi] == '-novalidate':
- validate = False
- argi += 1
-
-if sys.argv[argi] == '-ca_certs':
- ca_certs = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-keyfile':
- keyfile = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-certfile':
- certfile = sys.argv[argi+1]
- argi += 2
-
-cmd = sys.argv[argi]
-args = sys.argv[argi + 1:]
-
-if http:
- transport = THttpClient.THttpClient(host, port, uri)
-else:
- if ssl:
- socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile)
- else:
- socket = TSocket.TSocket(host, port)
- if framed:
- transport = TTransport.TFramedTransport(socket)
- else:
- transport = TTransport.TBufferedTransport(socket)
-protocol = TBinaryProtocol(transport)
-client = AgeCheckService.Client(protocol)
-transport.open()
-
-if cmd == 'checkUserAge':
- if len(args) != 4:
- print('checkUserAge requires 4 args')
- sys.exit(1)
- pp.pprint(client.checkUserAge(eval(args[0]), args[1], args[2], eval(args[3]),))
-
-elif cmd == 'checkUserAgeWithDocomo':
- if len(args) != 3:
- print('checkUserAgeWithDocomo requires 3 args')
- sys.exit(1)
- pp.pprint(client.checkUserAgeWithDocomo(args[0], eval(args[1]), args[2],))
-
-elif cmd == 'retrieveOpenIdAuthUrlWithDocomo':
- if len(args) != 0:
- print('retrieveOpenIdAuthUrlWithDocomo requires 0 args')
- sys.exit(1)
- pp.pprint(client.retrieveOpenIdAuthUrlWithDocomo())
-
-elif cmd == 'retrieveRequestToken':
- if len(args) != 1:
- print('retrieveRequestToken requires 1 args')
- sys.exit(1)
- pp.pprint(client.retrieveRequestToken(eval(args[0]),))
-
-else:
- print('Unrecognized method %s' % cmd)
- sys.exit(1)
-
-transport.close()
diff --git a/libs/core/AgeCheckService.py b/libs/core/AgeCheckService.py
deleted file mode 100644
index 8bb7625..0000000
--- a/libs/core/AgeCheckService.py
+++ /dev/null
@@ -1,930 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-from thrift.TRecursive import fix_spec
-
-import sys
-import logging
-from .ttypes import *
-from thrift.Thrift import TProcessor
-from thrift.transport import TTransport
-all_structs = []
-
-
-class Iface(object):
- def checkUserAge(self, carrier, sessionId, verifier, standardAge):
- """
- Parameters:
- - carrier
- - sessionId
- - verifier
- - standardAge
-
- """
- pass
-
- def checkUserAgeWithDocomo(self, openIdRedirectUrl, standardAge, verifier):
- """
- Parameters:
- - openIdRedirectUrl
- - standardAge
- - verifier
-
- """
- pass
-
- def retrieveOpenIdAuthUrlWithDocomo(self):
- pass
-
- def retrieveRequestToken(self, carrier):
- """
- Parameters:
- - carrier
-
- """
- pass
-
-
-class Client(Iface):
- def __init__(self, iprot, oprot=None):
- self._iprot = self._oprot = iprot
- if oprot is not None:
- self._oprot = oprot
- self._seqid = 0
-
- def checkUserAge(self, carrier, sessionId, verifier, standardAge):
- """
- Parameters:
- - carrier
- - sessionId
- - verifier
- - standardAge
-
- """
- self.send_checkUserAge(carrier, sessionId, verifier, standardAge)
- return self.recv_checkUserAge()
-
- def send_checkUserAge(self, carrier, sessionId, verifier, standardAge):
- self._oprot.writeMessageBegin('checkUserAge', TMessageType.CALL, self._seqid)
- args = checkUserAge_args()
- args.carrier = carrier
- args.sessionId = sessionId
- args.verifier = verifier
- args.standardAge = standardAge
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_checkUserAge(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = checkUserAge_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "checkUserAge failed: unknown result")
-
- def checkUserAgeWithDocomo(self, openIdRedirectUrl, standardAge, verifier):
- """
- Parameters:
- - openIdRedirectUrl
- - standardAge
- - verifier
-
- """
- self.send_checkUserAgeWithDocomo(openIdRedirectUrl, standardAge, verifier)
- return self.recv_checkUserAgeWithDocomo()
-
- def send_checkUserAgeWithDocomo(self, openIdRedirectUrl, standardAge, verifier):
- self._oprot.writeMessageBegin('checkUserAgeWithDocomo', TMessageType.CALL, self._seqid)
- args = checkUserAgeWithDocomo_args()
- args.openIdRedirectUrl = openIdRedirectUrl
- args.standardAge = standardAge
- args.verifier = verifier
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_checkUserAgeWithDocomo(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = checkUserAgeWithDocomo_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "checkUserAgeWithDocomo failed: unknown result")
-
- def retrieveOpenIdAuthUrlWithDocomo(self):
- self.send_retrieveOpenIdAuthUrlWithDocomo()
- return self.recv_retrieveOpenIdAuthUrlWithDocomo()
-
- def send_retrieveOpenIdAuthUrlWithDocomo(self):
- self._oprot.writeMessageBegin('retrieveOpenIdAuthUrlWithDocomo', TMessageType.CALL, self._seqid)
- args = retrieveOpenIdAuthUrlWithDocomo_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_retrieveOpenIdAuthUrlWithDocomo(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = retrieveOpenIdAuthUrlWithDocomo_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "retrieveOpenIdAuthUrlWithDocomo failed: unknown result")
-
- def retrieveRequestToken(self, carrier):
- """
- Parameters:
- - carrier
-
- """
- self.send_retrieveRequestToken(carrier)
- return self.recv_retrieveRequestToken()
-
- def send_retrieveRequestToken(self, carrier):
- self._oprot.writeMessageBegin('retrieveRequestToken', TMessageType.CALL, self._seqid)
- args = retrieveRequestToken_args()
- args.carrier = carrier
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_retrieveRequestToken(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = retrieveRequestToken_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "retrieveRequestToken failed: unknown result")
-
-
-class Processor(Iface, TProcessor):
- def __init__(self, handler):
- self._handler = handler
- self._processMap = {}
- self._processMap["checkUserAge"] = Processor.process_checkUserAge
- self._processMap["checkUserAgeWithDocomo"] = Processor.process_checkUserAgeWithDocomo
- self._processMap["retrieveOpenIdAuthUrlWithDocomo"] = Processor.process_retrieveOpenIdAuthUrlWithDocomo
- self._processMap["retrieveRequestToken"] = Processor.process_retrieveRequestToken
- self._on_message_begin = None
-
- def on_message_begin(self, func):
- self._on_message_begin = func
-
- def process(self, iprot, oprot):
- (name, type, seqid) = iprot.readMessageBegin()
- if self._on_message_begin:
- self._on_message_begin(name, type, seqid)
- if name not in self._processMap:
- iprot.skip(TType.STRUCT)
- iprot.readMessageEnd()
- x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
- oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
- x.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
- return
- else:
- self._processMap[name](self, seqid, iprot, oprot)
- return True
-
- def process_checkUserAge(self, seqid, iprot, oprot):
- args = checkUserAge_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = checkUserAge_result()
- try:
- result.success = self._handler.checkUserAge(args.carrier, args.sessionId, args.verifier, args.standardAge)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("checkUserAge", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_checkUserAgeWithDocomo(self, seqid, iprot, oprot):
- args = checkUserAgeWithDocomo_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = checkUserAgeWithDocomo_result()
- try:
- result.success = self._handler.checkUserAgeWithDocomo(args.openIdRedirectUrl, args.standardAge, args.verifier)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("checkUserAgeWithDocomo", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_retrieveOpenIdAuthUrlWithDocomo(self, seqid, iprot, oprot):
- args = retrieveOpenIdAuthUrlWithDocomo_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = retrieveOpenIdAuthUrlWithDocomo_result()
- try:
- result.success = self._handler.retrieveOpenIdAuthUrlWithDocomo()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("retrieveOpenIdAuthUrlWithDocomo", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_retrieveRequestToken(self, seqid, iprot, oprot):
- args = retrieveRequestToken_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = retrieveRequestToken_result()
- try:
- result.success = self._handler.retrieveRequestToken(args.carrier)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("retrieveRequestToken", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
-# HELPER FUNCTIONS AND STRUCTURES
-
-
-class checkUserAge_args(object):
- """
- Attributes:
- - carrier
- - sessionId
- - verifier
- - standardAge
-
- """
-
-
- def __init__(self, carrier=None, sessionId=None, verifier=None, standardAge=None,):
- self.carrier = carrier
- self.sessionId = sessionId
- self.verifier = verifier
- self.standardAge = standardAge
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I32:
- self.carrier = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.sessionId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.verifier = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.I32:
- self.standardAge = iprot.readI32()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('checkUserAge_args')
- if self.carrier is not None:
- oprot.writeFieldBegin('carrier', TType.I32, 2)
- oprot.writeI32(self.carrier)
- oprot.writeFieldEnd()
- if self.sessionId is not None:
- oprot.writeFieldBegin('sessionId', TType.STRING, 3)
- oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId)
- oprot.writeFieldEnd()
- if self.verifier is not None:
- oprot.writeFieldBegin('verifier', TType.STRING, 4)
- oprot.writeString(self.verifier.encode('utf-8') if sys.version_info[0] == 2 else self.verifier)
- oprot.writeFieldEnd()
- if self.standardAge is not None:
- oprot.writeFieldBegin('standardAge', TType.I32, 5)
- oprot.writeI32(self.standardAge)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(checkUserAge_args)
-checkUserAge_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I32, 'carrier', None, None, ), # 2
- (3, TType.STRING, 'sessionId', 'UTF8', None, ), # 3
- (4, TType.STRING, 'verifier', 'UTF8', None, ), # 4
- (5, TType.I32, 'standardAge', None, None, ), # 5
-)
-
-
-class checkUserAge_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.I32:
- self.success = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('checkUserAge_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.I32, 0)
- oprot.writeI32(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(checkUserAge_result)
-checkUserAge_result.thrift_spec = (
- (0, TType.I32, 'success', None, None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class checkUserAgeWithDocomo_args(object):
- """
- Attributes:
- - openIdRedirectUrl
- - standardAge
- - verifier
-
- """
-
-
- def __init__(self, openIdRedirectUrl=None, standardAge=None, verifier=None,):
- self.openIdRedirectUrl = openIdRedirectUrl
- self.standardAge = standardAge
- self.verifier = verifier
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.openIdRedirectUrl = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I32:
- self.standardAge = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.verifier = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('checkUserAgeWithDocomo_args')
- if self.openIdRedirectUrl is not None:
- oprot.writeFieldBegin('openIdRedirectUrl', TType.STRING, 2)
- oprot.writeString(self.openIdRedirectUrl.encode('utf-8') if sys.version_info[0] == 2 else self.openIdRedirectUrl)
- oprot.writeFieldEnd()
- if self.standardAge is not None:
- oprot.writeFieldBegin('standardAge', TType.I32, 3)
- oprot.writeI32(self.standardAge)
- oprot.writeFieldEnd()
- if self.verifier is not None:
- oprot.writeFieldBegin('verifier', TType.STRING, 4)
- oprot.writeString(self.verifier.encode('utf-8') if sys.version_info[0] == 2 else self.verifier)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(checkUserAgeWithDocomo_args)
-checkUserAgeWithDocomo_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'openIdRedirectUrl', 'UTF8', None, ), # 2
- (3, TType.I32, 'standardAge', None, None, ), # 3
- (4, TType.STRING, 'verifier', 'UTF8', None, ), # 4
-)
-
-
-class checkUserAgeWithDocomo_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = AgeCheckDocomoResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('checkUserAgeWithDocomo_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(checkUserAgeWithDocomo_result)
-checkUserAgeWithDocomo_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [AgeCheckDocomoResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class retrieveOpenIdAuthUrlWithDocomo_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('retrieveOpenIdAuthUrlWithDocomo_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(retrieveOpenIdAuthUrlWithDocomo_args)
-retrieveOpenIdAuthUrlWithDocomo_args.thrift_spec = (
-)
-
-
-class retrieveOpenIdAuthUrlWithDocomo_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('retrieveOpenIdAuthUrlWithDocomo_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(retrieveOpenIdAuthUrlWithDocomo_result)
-retrieveOpenIdAuthUrlWithDocomo_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class retrieveRequestToken_args(object):
- """
- Attributes:
- - carrier
-
- """
-
-
- def __init__(self, carrier=None,):
- self.carrier = carrier
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I32:
- self.carrier = iprot.readI32()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('retrieveRequestToken_args')
- if self.carrier is not None:
- oprot.writeFieldBegin('carrier', TType.I32, 2)
- oprot.writeI32(self.carrier)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(retrieveRequestToken_args)
-retrieveRequestToken_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I32, 'carrier', None, None, ), # 2
-)
-
-
-class retrieveRequestToken_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = AgeCheckRequestResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('retrieveRequestToken_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(retrieveRequestToken_result)
-retrieveRequestToken_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [AgeCheckRequestResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-fix_spec(all_structs)
-del all_structs
-
diff --git a/libs/core/BuddyManagementService-remote b/libs/core/BuddyManagementService-remote
deleted file mode 100755
index 5b80b9b..0000000
--- a/libs/core/BuddyManagementService-remote
+++ /dev/null
@@ -1,502 +0,0 @@
-#!/usr/bin/env python
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-import sys
-import pprint
-if sys.version_info[0] > 2:
- from urllib.parse import urlparse
-else:
- from urlparse import urlparse
-from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient
-from thrift.protocol.TBinaryProtocol import TBinaryProtocol
-
-from line import BuddyManagementService
-from line.ttypes import *
-
-if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print('')
- print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]')
- print('')
- print('Functions:')
- print(' void addBuddyMember(string requestId, string userMid)')
- print(' void addBuddyMembers(string requestId, userMids)')
- print(' void blockBuddyMember(string requestId, string mid)')
- print(' commitSendMessagesToAll( requestIdList)')
- print(' commitSendMessagesToMids( requestIdList, mids)')
- print(' bool containsBuddyMember(string requestId, string userMid)')
- print(' string downloadMessageContent(string requestId, string messageId)')
- print(' string downloadMessageContentPreview(string requestId, string messageId)')
- print(' string downloadProfileImage(string requestId)')
- print(' string downloadProfileImagePreview(string requestId)')
- print(' i64 getActiveMemberCountByBuddyMid(string buddyMid)')
- print(' getActiveMemberMidsByBuddyMid(string buddyMid)')
- print(' getAllBuddyMembers()')
- print(' getBlockedBuddyMembers()')
- print(' i64 getBlockerCountByBuddyMid(string buddyMid)')
- print(' BuddyDetail getBuddyDetailByMid(string buddyMid)')
- print(' BuddyProfile getBuddyProfile()')
- print(' Ticket getContactTicket()')
- print(' i64 getMemberCountByBuddyMid(string buddyMid)')
- print(' SendBuddyMessageResult getSendBuddyMessageResult(string sendBuddyMessageRequestId)')
- print(' SetBuddyOnAirResult getSetBuddyOnAirResult(string setBuddyOnAirRequestId)')
- print(' UpdateBuddyProfileResult getUpdateBuddyProfileResult(string updateBuddyProfileRequestId)')
- print(' bool isBuddyOnAirByMid(string buddyMid)')
- print(' string linkAndSendBuddyContentMessageToAllAsync(string requestId, Message msg, string sourceContentId)')
- print(' SendBuddyMessageResult linkAndSendBuddyContentMessageToMids(string requestId, Message msg, string sourceContentId, mids)')
- print(' void notifyBuddyBlocked(string buddyMid, string blockerMid)')
- print(' void notifyBuddyUnblocked(string buddyMid, string blockerMid)')
- print(' string registerBuddy(string buddyId, string searchId, string displayName, string statusMeessage, string picture, settings)')
- print(' string registerBuddyAdmin(string buddyId, string searchId, string displayName, string statusMessage, string picture)')
- print(' string reissueContactTicket(i64 expirationTime, i32 maxUseCount)')
- print(' void removeBuddyMember(string requestId, string userMid)')
- print(' void removeBuddyMembers(string requestId, userMids)')
- print(' SendBuddyMessageResult sendBuddyContentMessageToAll(string requestId, Message msg, string content)')
- print(' string sendBuddyContentMessageToAllAsync(string requestId, Message msg, string content)')
- print(' SendBuddyMessageResult sendBuddyContentMessageToMids(string requestId, Message msg, string content, mids)')
- print(' string sendBuddyContentMessageToMidsAsync(string requestId, Message msg, string content, mids)')
- print(' SendBuddyMessageResult sendBuddyMessageToAll(string requestId, Message msg)')
- print(' string sendBuddyMessageToAllAsync(string requestId, Message msg)')
- print(' SendBuddyMessageResult sendBuddyMessageToMids(string requestId, Message msg, mids)')
- print(' string sendBuddyMessageToMidsAsync(string requestId, Message msg, mids)')
- print(' void sendIndividualEventToAllAsync(string requestId, string buddyMid, NotificationStatus notificationStatus)')
- print(' SetBuddyOnAirResult setBuddyOnAir(string requestId, bool onAir)')
- print(' string setBuddyOnAirAsync(string requestId, bool onAir)')
- print(' SendBuddyMessageResult storeMessage(string requestId, BuddyMessageRequest messageRequest)')
- print(' void unblockBuddyMember(string requestId, string mid)')
- print(' void unregisterBuddy(string requestId)')
- print(' void unregisterBuddyAdmin(string requestId)')
- print(' void updateBuddyAdminProfileAttribute(string requestId, attributes)')
- print(' void updateBuddyAdminProfileImage(string requestId, string picture)')
- print(' UpdateBuddyProfileResult updateBuddyProfileAttributes(string requestId, attributes)')
- print(' string updateBuddyProfileAttributesAsync(string requestId, attributes)')
- print(' UpdateBuddyProfileResult updateBuddyProfileImage(string requestId, string image)')
- print(' string updateBuddyProfileImageAsync(string requestId, string image)')
- print(' void updateBuddySearchId(string requestId, string searchId)')
- print(' void updateBuddySettings( settings)')
- print(' string uploadBuddyContent(ContentType contentType, string content)')
- print('')
- sys.exit(0)
-
-pp = pprint.PrettyPrinter(indent=2)
-host = 'localhost'
-port = 9090
-uri = ''
-framed = False
-ssl = False
-validate = True
-ca_certs = None
-keyfile = None
-certfile = None
-http = False
-argi = 1
-
-if sys.argv[argi] == '-h':
- parts = sys.argv[argi + 1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- argi += 2
-
-if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi + 1])
- parts = url[1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- else:
- port = 80
- uri = url[2]
- if url[4]:
- uri += '?%s' % url[4]
- http = True
- argi += 2
-
-if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
- framed = True
- argi += 1
-
-if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
- ssl = True
- argi += 1
-
-if sys.argv[argi] == '-novalidate':
- validate = False
- argi += 1
-
-if sys.argv[argi] == '-ca_certs':
- ca_certs = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-keyfile':
- keyfile = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-certfile':
- certfile = sys.argv[argi+1]
- argi += 2
-
-cmd = sys.argv[argi]
-args = sys.argv[argi + 1:]
-
-if http:
- transport = THttpClient.THttpClient(host, port, uri)
-else:
- if ssl:
- socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile)
- else:
- socket = TSocket.TSocket(host, port)
- if framed:
- transport = TTransport.TFramedTransport(socket)
- else:
- transport = TTransport.TBufferedTransport(socket)
-protocol = TBinaryProtocol(transport)
-client = BuddyManagementService.Client(protocol)
-transport.open()
-
-if cmd == 'addBuddyMember':
- if len(args) != 2:
- print('addBuddyMember requires 2 args')
- sys.exit(1)
- pp.pprint(client.addBuddyMember(args[0], args[1],))
-
-elif cmd == 'addBuddyMembers':
- if len(args) != 2:
- print('addBuddyMembers requires 2 args')
- sys.exit(1)
- pp.pprint(client.addBuddyMembers(args[0], eval(args[1]),))
-
-elif cmd == 'blockBuddyMember':
- if len(args) != 2:
- print('blockBuddyMember requires 2 args')
- sys.exit(1)
- pp.pprint(client.blockBuddyMember(args[0], args[1],))
-
-elif cmd == 'commitSendMessagesToAll':
- if len(args) != 1:
- print('commitSendMessagesToAll requires 1 args')
- sys.exit(1)
- pp.pprint(client.commitSendMessagesToAll(eval(args[0]),))
-
-elif cmd == 'commitSendMessagesToMids':
- if len(args) != 2:
- print('commitSendMessagesToMids requires 2 args')
- sys.exit(1)
- pp.pprint(client.commitSendMessagesToMids(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'containsBuddyMember':
- if len(args) != 2:
- print('containsBuddyMember requires 2 args')
- sys.exit(1)
- pp.pprint(client.containsBuddyMember(args[0], args[1],))
-
-elif cmd == 'downloadMessageContent':
- if len(args) != 2:
- print('downloadMessageContent requires 2 args')
- sys.exit(1)
- pp.pprint(client.downloadMessageContent(args[0], args[1],))
-
-elif cmd == 'downloadMessageContentPreview':
- if len(args) != 2:
- print('downloadMessageContentPreview requires 2 args')
- sys.exit(1)
- pp.pprint(client.downloadMessageContentPreview(args[0], args[1],))
-
-elif cmd == 'downloadProfileImage':
- if len(args) != 1:
- print('downloadProfileImage requires 1 args')
- sys.exit(1)
- pp.pprint(client.downloadProfileImage(args[0],))
-
-elif cmd == 'downloadProfileImagePreview':
- if len(args) != 1:
- print('downloadProfileImagePreview requires 1 args')
- sys.exit(1)
- pp.pprint(client.downloadProfileImagePreview(args[0],))
-
-elif cmd == 'getActiveMemberCountByBuddyMid':
- if len(args) != 1:
- print('getActiveMemberCountByBuddyMid requires 1 args')
- sys.exit(1)
- pp.pprint(client.getActiveMemberCountByBuddyMid(args[0],))
-
-elif cmd == 'getActiveMemberMidsByBuddyMid':
- if len(args) != 1:
- print('getActiveMemberMidsByBuddyMid requires 1 args')
- sys.exit(1)
- pp.pprint(client.getActiveMemberMidsByBuddyMid(args[0],))
-
-elif cmd == 'getAllBuddyMembers':
- if len(args) != 0:
- print('getAllBuddyMembers requires 0 args')
- sys.exit(1)
- pp.pprint(client.getAllBuddyMembers())
-
-elif cmd == 'getBlockedBuddyMembers':
- if len(args) != 0:
- print('getBlockedBuddyMembers requires 0 args')
- sys.exit(1)
- pp.pprint(client.getBlockedBuddyMembers())
-
-elif cmd == 'getBlockerCountByBuddyMid':
- if len(args) != 1:
- print('getBlockerCountByBuddyMid requires 1 args')
- sys.exit(1)
- pp.pprint(client.getBlockerCountByBuddyMid(args[0],))
-
-elif cmd == 'getBuddyDetailByMid':
- if len(args) != 1:
- print('getBuddyDetailByMid requires 1 args')
- sys.exit(1)
- pp.pprint(client.getBuddyDetailByMid(args[0],))
-
-elif cmd == 'getBuddyProfile':
- if len(args) != 0:
- print('getBuddyProfile requires 0 args')
- sys.exit(1)
- pp.pprint(client.getBuddyProfile())
-
-elif cmd == 'getContactTicket':
- if len(args) != 0:
- print('getContactTicket requires 0 args')
- sys.exit(1)
- pp.pprint(client.getContactTicket())
-
-elif cmd == 'getMemberCountByBuddyMid':
- if len(args) != 1:
- print('getMemberCountByBuddyMid requires 1 args')
- sys.exit(1)
- pp.pprint(client.getMemberCountByBuddyMid(args[0],))
-
-elif cmd == 'getSendBuddyMessageResult':
- if len(args) != 1:
- print('getSendBuddyMessageResult requires 1 args')
- sys.exit(1)
- pp.pprint(client.getSendBuddyMessageResult(args[0],))
-
-elif cmd == 'getSetBuddyOnAirResult':
- if len(args) != 1:
- print('getSetBuddyOnAirResult requires 1 args')
- sys.exit(1)
- pp.pprint(client.getSetBuddyOnAirResult(args[0],))
-
-elif cmd == 'getUpdateBuddyProfileResult':
- if len(args) != 1:
- print('getUpdateBuddyProfileResult requires 1 args')
- sys.exit(1)
- pp.pprint(client.getUpdateBuddyProfileResult(args[0],))
-
-elif cmd == 'isBuddyOnAirByMid':
- if len(args) != 1:
- print('isBuddyOnAirByMid requires 1 args')
- sys.exit(1)
- pp.pprint(client.isBuddyOnAirByMid(args[0],))
-
-elif cmd == 'linkAndSendBuddyContentMessageToAllAsync':
- if len(args) != 3:
- print('linkAndSendBuddyContentMessageToAllAsync requires 3 args')
- sys.exit(1)
- pp.pprint(client.linkAndSendBuddyContentMessageToAllAsync(args[0], eval(args[1]), args[2],))
-
-elif cmd == 'linkAndSendBuddyContentMessageToMids':
- if len(args) != 4:
- print('linkAndSendBuddyContentMessageToMids requires 4 args')
- sys.exit(1)
- pp.pprint(client.linkAndSendBuddyContentMessageToMids(args[0], eval(args[1]), args[2], eval(args[3]),))
-
-elif cmd == 'notifyBuddyBlocked':
- if len(args) != 2:
- print('notifyBuddyBlocked requires 2 args')
- sys.exit(1)
- pp.pprint(client.notifyBuddyBlocked(args[0], args[1],))
-
-elif cmd == 'notifyBuddyUnblocked':
- if len(args) != 2:
- print('notifyBuddyUnblocked requires 2 args')
- sys.exit(1)
- pp.pprint(client.notifyBuddyUnblocked(args[0], args[1],))
-
-elif cmd == 'registerBuddy':
- if len(args) != 6:
- print('registerBuddy requires 6 args')
- sys.exit(1)
- pp.pprint(client.registerBuddy(args[0], args[1], args[2], args[3], args[4], eval(args[5]),))
-
-elif cmd == 'registerBuddyAdmin':
- if len(args) != 5:
- print('registerBuddyAdmin requires 5 args')
- sys.exit(1)
- pp.pprint(client.registerBuddyAdmin(args[0], args[1], args[2], args[3], args[4],))
-
-elif cmd == 'reissueContactTicket':
- if len(args) != 2:
- print('reissueContactTicket requires 2 args')
- sys.exit(1)
- pp.pprint(client.reissueContactTicket(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'removeBuddyMember':
- if len(args) != 2:
- print('removeBuddyMember requires 2 args')
- sys.exit(1)
- pp.pprint(client.removeBuddyMember(args[0], args[1],))
-
-elif cmd == 'removeBuddyMembers':
- if len(args) != 2:
- print('removeBuddyMembers requires 2 args')
- sys.exit(1)
- pp.pprint(client.removeBuddyMembers(args[0], eval(args[1]),))
-
-elif cmd == 'sendBuddyContentMessageToAll':
- if len(args) != 3:
- print('sendBuddyContentMessageToAll requires 3 args')
- sys.exit(1)
- pp.pprint(client.sendBuddyContentMessageToAll(args[0], eval(args[1]), args[2],))
-
-elif cmd == 'sendBuddyContentMessageToAllAsync':
- if len(args) != 3:
- print('sendBuddyContentMessageToAllAsync requires 3 args')
- sys.exit(1)
- pp.pprint(client.sendBuddyContentMessageToAllAsync(args[0], eval(args[1]), args[2],))
-
-elif cmd == 'sendBuddyContentMessageToMids':
- if len(args) != 4:
- print('sendBuddyContentMessageToMids requires 4 args')
- sys.exit(1)
- pp.pprint(client.sendBuddyContentMessageToMids(args[0], eval(args[1]), args[2], eval(args[3]),))
-
-elif cmd == 'sendBuddyContentMessageToMidsAsync':
- if len(args) != 4:
- print('sendBuddyContentMessageToMidsAsync requires 4 args')
- sys.exit(1)
- pp.pprint(client.sendBuddyContentMessageToMidsAsync(args[0], eval(args[1]), args[2], eval(args[3]),))
-
-elif cmd == 'sendBuddyMessageToAll':
- if len(args) != 2:
- print('sendBuddyMessageToAll requires 2 args')
- sys.exit(1)
- pp.pprint(client.sendBuddyMessageToAll(args[0], eval(args[1]),))
-
-elif cmd == 'sendBuddyMessageToAllAsync':
- if len(args) != 2:
- print('sendBuddyMessageToAllAsync requires 2 args')
- sys.exit(1)
- pp.pprint(client.sendBuddyMessageToAllAsync(args[0], eval(args[1]),))
-
-elif cmd == 'sendBuddyMessageToMids':
- if len(args) != 3:
- print('sendBuddyMessageToMids requires 3 args')
- sys.exit(1)
- pp.pprint(client.sendBuddyMessageToMids(args[0], eval(args[1]), eval(args[2]),))
-
-elif cmd == 'sendBuddyMessageToMidsAsync':
- if len(args) != 3:
- print('sendBuddyMessageToMidsAsync requires 3 args')
- sys.exit(1)
- pp.pprint(client.sendBuddyMessageToMidsAsync(args[0], eval(args[1]), eval(args[2]),))
-
-elif cmd == 'sendIndividualEventToAllAsync':
- if len(args) != 3:
- print('sendIndividualEventToAllAsync requires 3 args')
- sys.exit(1)
- pp.pprint(client.sendIndividualEventToAllAsync(args[0], args[1], eval(args[2]),))
-
-elif cmd == 'setBuddyOnAir':
- if len(args) != 2:
- print('setBuddyOnAir requires 2 args')
- sys.exit(1)
- pp.pprint(client.setBuddyOnAir(args[0], eval(args[1]),))
-
-elif cmd == 'setBuddyOnAirAsync':
- if len(args) != 2:
- print('setBuddyOnAirAsync requires 2 args')
- sys.exit(1)
- pp.pprint(client.setBuddyOnAirAsync(args[0], eval(args[1]),))
-
-elif cmd == 'storeMessage':
- if len(args) != 2:
- print('storeMessage requires 2 args')
- sys.exit(1)
- pp.pprint(client.storeMessage(args[0], eval(args[1]),))
-
-elif cmd == 'unblockBuddyMember':
- if len(args) != 2:
- print('unblockBuddyMember requires 2 args')
- sys.exit(1)
- pp.pprint(client.unblockBuddyMember(args[0], args[1],))
-
-elif cmd == 'unregisterBuddy':
- if len(args) != 1:
- print('unregisterBuddy requires 1 args')
- sys.exit(1)
- pp.pprint(client.unregisterBuddy(args[0],))
-
-elif cmd == 'unregisterBuddyAdmin':
- if len(args) != 1:
- print('unregisterBuddyAdmin requires 1 args')
- sys.exit(1)
- pp.pprint(client.unregisterBuddyAdmin(args[0],))
-
-elif cmd == 'updateBuddyAdminProfileAttribute':
- if len(args) != 2:
- print('updateBuddyAdminProfileAttribute requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateBuddyAdminProfileAttribute(args[0], eval(args[1]),))
-
-elif cmd == 'updateBuddyAdminProfileImage':
- if len(args) != 2:
- print('updateBuddyAdminProfileImage requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateBuddyAdminProfileImage(args[0], args[1],))
-
-elif cmd == 'updateBuddyProfileAttributes':
- if len(args) != 2:
- print('updateBuddyProfileAttributes requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateBuddyProfileAttributes(args[0], eval(args[1]),))
-
-elif cmd == 'updateBuddyProfileAttributesAsync':
- if len(args) != 2:
- print('updateBuddyProfileAttributesAsync requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateBuddyProfileAttributesAsync(args[0], eval(args[1]),))
-
-elif cmd == 'updateBuddyProfileImage':
- if len(args) != 2:
- print('updateBuddyProfileImage requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateBuddyProfileImage(args[0], args[1],))
-
-elif cmd == 'updateBuddyProfileImageAsync':
- if len(args) != 2:
- print('updateBuddyProfileImageAsync requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateBuddyProfileImageAsync(args[0], args[1],))
-
-elif cmd == 'updateBuddySearchId':
- if len(args) != 2:
- print('updateBuddySearchId requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateBuddySearchId(args[0], args[1],))
-
-elif cmd == 'updateBuddySettings':
- if len(args) != 1:
- print('updateBuddySettings requires 1 args')
- sys.exit(1)
- pp.pprint(client.updateBuddySettings(eval(args[0]),))
-
-elif cmd == 'uploadBuddyContent':
- if len(args) != 2:
- print('uploadBuddyContent requires 2 args')
- sys.exit(1)
- pp.pprint(client.uploadBuddyContent(eval(args[0]), args[1],))
-
-else:
- print('Unrecognized method %s' % cmd)
- sys.exit(1)
-
-transport.close()
diff --git a/libs/core/BuddyManagementService.py b/libs/core/BuddyManagementService.py
deleted file mode 100644
index 44f9d22..0000000
--- a/libs/core/BuddyManagementService.py
+++ /dev/null
@@ -1,12275 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-from thrift.TRecursive import fix_spec
-
-import sys
-import logging
-from .ttypes import *
-from thrift.Thrift import TProcessor
-from thrift.transport import TTransport
-all_structs = []
-
-
-class Iface(object):
- def addBuddyMember(self, requestId, userMid):
- """
- Parameters:
- - requestId
- - userMid
-
- """
- pass
-
- def addBuddyMembers(self, requestId, userMids):
- """
- Parameters:
- - requestId
- - userMids
-
- """
- pass
-
- def blockBuddyMember(self, requestId, mid):
- """
- Parameters:
- - requestId
- - mid
-
- """
- pass
-
- def commitSendMessagesToAll(self, requestIdList):
- """
- Parameters:
- - requestIdList
-
- """
- pass
-
- def commitSendMessagesToMids(self, requestIdList, mids):
- """
- Parameters:
- - requestIdList
- - mids
-
- """
- pass
-
- def containsBuddyMember(self, requestId, userMid):
- """
- Parameters:
- - requestId
- - userMid
-
- """
- pass
-
- def downloadMessageContent(self, requestId, messageId):
- """
- Parameters:
- - requestId
- - messageId
-
- """
- pass
-
- def downloadMessageContentPreview(self, requestId, messageId):
- """
- Parameters:
- - requestId
- - messageId
-
- """
- pass
-
- def downloadProfileImage(self, requestId):
- """
- Parameters:
- - requestId
-
- """
- pass
-
- def downloadProfileImagePreview(self, requestId):
- """
- Parameters:
- - requestId
-
- """
- pass
-
- def getActiveMemberCountByBuddyMid(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- pass
-
- def getActiveMemberMidsByBuddyMid(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- pass
-
- def getAllBuddyMembers(self):
- pass
-
- def getBlockedBuddyMembers(self):
- pass
-
- def getBlockerCountByBuddyMid(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- pass
-
- def getBuddyDetailByMid(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- pass
-
- def getBuddyProfile(self):
- pass
-
- def getContactTicket(self):
- pass
-
- def getMemberCountByBuddyMid(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- pass
-
- def getSendBuddyMessageResult(self, sendBuddyMessageRequestId):
- """
- Parameters:
- - sendBuddyMessageRequestId
-
- """
- pass
-
- def getSetBuddyOnAirResult(self, setBuddyOnAirRequestId):
- """
- Parameters:
- - setBuddyOnAirRequestId
-
- """
- pass
-
- def getUpdateBuddyProfileResult(self, updateBuddyProfileRequestId):
- """
- Parameters:
- - updateBuddyProfileRequestId
-
- """
- pass
-
- def isBuddyOnAirByMid(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- pass
-
- def linkAndSendBuddyContentMessageToAllAsync(self, requestId, msg, sourceContentId):
- """
- Parameters:
- - requestId
- - msg
- - sourceContentId
-
- """
- pass
-
- def linkAndSendBuddyContentMessageToMids(self, requestId, msg, sourceContentId, mids):
- """
- Parameters:
- - requestId
- - msg
- - sourceContentId
- - mids
-
- """
- pass
-
- def notifyBuddyBlocked(self, buddyMid, blockerMid):
- """
- Parameters:
- - buddyMid
- - blockerMid
-
- """
- pass
-
- def notifyBuddyUnblocked(self, buddyMid, blockerMid):
- """
- Parameters:
- - buddyMid
- - blockerMid
-
- """
- pass
-
- def registerBuddy(self, buddyId, searchId, displayName, statusMeessage, picture, settings):
- """
- Parameters:
- - buddyId
- - searchId
- - displayName
- - statusMeessage
- - picture
- - settings
-
- """
- pass
-
- def registerBuddyAdmin(self, buddyId, searchId, displayName, statusMessage, picture):
- """
- Parameters:
- - buddyId
- - searchId
- - displayName
- - statusMessage
- - picture
-
- """
- pass
-
- def reissueContactTicket(self, expirationTime, maxUseCount):
- """
- Parameters:
- - expirationTime
- - maxUseCount
-
- """
- pass
-
- def removeBuddyMember(self, requestId, userMid):
- """
- Parameters:
- - requestId
- - userMid
-
- """
- pass
-
- def removeBuddyMembers(self, requestId, userMids):
- """
- Parameters:
- - requestId
- - userMids
-
- """
- pass
-
- def sendBuddyContentMessageToAll(self, requestId, msg, content):
- """
- Parameters:
- - requestId
- - msg
- - content
-
- """
- pass
-
- def sendBuddyContentMessageToAllAsync(self, requestId, msg, content):
- """
- Parameters:
- - requestId
- - msg
- - content
-
- """
- pass
-
- def sendBuddyContentMessageToMids(self, requestId, msg, content, mids):
- """
- Parameters:
- - requestId
- - msg
- - content
- - mids
-
- """
- pass
-
- def sendBuddyContentMessageToMidsAsync(self, requestId, msg, content, mids):
- """
- Parameters:
- - requestId
- - msg
- - content
- - mids
-
- """
- pass
-
- def sendBuddyMessageToAll(self, requestId, msg):
- """
- Parameters:
- - requestId
- - msg
-
- """
- pass
-
- def sendBuddyMessageToAllAsync(self, requestId, msg):
- """
- Parameters:
- - requestId
- - msg
-
- """
- pass
-
- def sendBuddyMessageToMids(self, requestId, msg, mids):
- """
- Parameters:
- - requestId
- - msg
- - mids
-
- """
- pass
-
- def sendBuddyMessageToMidsAsync(self, requestId, msg, mids):
- """
- Parameters:
- - requestId
- - msg
- - mids
-
- """
- pass
-
- def sendIndividualEventToAllAsync(self, requestId, buddyMid, notificationStatus):
- """
- Parameters:
- - requestId
- - buddyMid
- - notificationStatus
-
- """
- pass
-
- def setBuddyOnAir(self, requestId, onAir):
- """
- Parameters:
- - requestId
- - onAir
-
- """
- pass
-
- def setBuddyOnAirAsync(self, requestId, onAir):
- """
- Parameters:
- - requestId
- - onAir
-
- """
- pass
-
- def storeMessage(self, requestId, messageRequest):
- """
- Parameters:
- - requestId
- - messageRequest
-
- """
- pass
-
- def unblockBuddyMember(self, requestId, mid):
- """
- Parameters:
- - requestId
- - mid
-
- """
- pass
-
- def unregisterBuddy(self, requestId):
- """
- Parameters:
- - requestId
-
- """
- pass
-
- def unregisterBuddyAdmin(self, requestId):
- """
- Parameters:
- - requestId
-
- """
- pass
-
- def updateBuddyAdminProfileAttribute(self, requestId, attributes):
- """
- Parameters:
- - requestId
- - attributes
-
- """
- pass
-
- def updateBuddyAdminProfileImage(self, requestId, picture):
- """
- Parameters:
- - requestId
- - picture
-
- """
- pass
-
- def updateBuddyProfileAttributes(self, requestId, attributes):
- """
- Parameters:
- - requestId
- - attributes
-
- """
- pass
-
- def updateBuddyProfileAttributesAsync(self, requestId, attributes):
- """
- Parameters:
- - requestId
- - attributes
-
- """
- pass
-
- def updateBuddyProfileImage(self, requestId, image):
- """
- Parameters:
- - requestId
- - image
-
- """
- pass
-
- def updateBuddyProfileImageAsync(self, requestId, image):
- """
- Parameters:
- - requestId
- - image
-
- """
- pass
-
- def updateBuddySearchId(self, requestId, searchId):
- """
- Parameters:
- - requestId
- - searchId
-
- """
- pass
-
- def updateBuddySettings(self, settings):
- """
- Parameters:
- - settings
-
- """
- pass
-
- def uploadBuddyContent(self, contentType, content):
- """
- Parameters:
- - contentType
- - content
-
- """
- pass
-
-
-class Client(Iface):
- def __init__(self, iprot, oprot=None):
- self._iprot = self._oprot = iprot
- if oprot is not None:
- self._oprot = oprot
- self._seqid = 0
-
- def addBuddyMember(self, requestId, userMid):
- """
- Parameters:
- - requestId
- - userMid
-
- """
- self.send_addBuddyMember(requestId, userMid)
- self.recv_addBuddyMember()
-
- def send_addBuddyMember(self, requestId, userMid):
- self._oprot.writeMessageBegin('addBuddyMember', TMessageType.CALL, self._seqid)
- args = addBuddyMember_args()
- args.requestId = requestId
- args.userMid = userMid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_addBuddyMember(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = addBuddyMember_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def addBuddyMembers(self, requestId, userMids):
- """
- Parameters:
- - requestId
- - userMids
-
- """
- self.send_addBuddyMembers(requestId, userMids)
- self.recv_addBuddyMembers()
-
- def send_addBuddyMembers(self, requestId, userMids):
- self._oprot.writeMessageBegin('addBuddyMembers', TMessageType.CALL, self._seqid)
- args = addBuddyMembers_args()
- args.requestId = requestId
- args.userMids = userMids
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_addBuddyMembers(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = addBuddyMembers_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def blockBuddyMember(self, requestId, mid):
- """
- Parameters:
- - requestId
- - mid
-
- """
- self.send_blockBuddyMember(requestId, mid)
- self.recv_blockBuddyMember()
-
- def send_blockBuddyMember(self, requestId, mid):
- self._oprot.writeMessageBegin('blockBuddyMember', TMessageType.CALL, self._seqid)
- args = blockBuddyMember_args()
- args.requestId = requestId
- args.mid = mid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_blockBuddyMember(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = blockBuddyMember_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def commitSendMessagesToAll(self, requestIdList):
- """
- Parameters:
- - requestIdList
-
- """
- self.send_commitSendMessagesToAll(requestIdList)
- return self.recv_commitSendMessagesToAll()
-
- def send_commitSendMessagesToAll(self, requestIdList):
- self._oprot.writeMessageBegin('commitSendMessagesToAll', TMessageType.CALL, self._seqid)
- args = commitSendMessagesToAll_args()
- args.requestIdList = requestIdList
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_commitSendMessagesToAll(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = commitSendMessagesToAll_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "commitSendMessagesToAll failed: unknown result")
-
- def commitSendMessagesToMids(self, requestIdList, mids):
- """
- Parameters:
- - requestIdList
- - mids
-
- """
- self.send_commitSendMessagesToMids(requestIdList, mids)
- return self.recv_commitSendMessagesToMids()
-
- def send_commitSendMessagesToMids(self, requestIdList, mids):
- self._oprot.writeMessageBegin('commitSendMessagesToMids', TMessageType.CALL, self._seqid)
- args = commitSendMessagesToMids_args()
- args.requestIdList = requestIdList
- args.mids = mids
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_commitSendMessagesToMids(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = commitSendMessagesToMids_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "commitSendMessagesToMids failed: unknown result")
-
- def containsBuddyMember(self, requestId, userMid):
- """
- Parameters:
- - requestId
- - userMid
-
- """
- self.send_containsBuddyMember(requestId, userMid)
- return self.recv_containsBuddyMember()
-
- def send_containsBuddyMember(self, requestId, userMid):
- self._oprot.writeMessageBegin('containsBuddyMember', TMessageType.CALL, self._seqid)
- args = containsBuddyMember_args()
- args.requestId = requestId
- args.userMid = userMid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_containsBuddyMember(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = containsBuddyMember_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "containsBuddyMember failed: unknown result")
-
- def downloadMessageContent(self, requestId, messageId):
- """
- Parameters:
- - requestId
- - messageId
-
- """
- self.send_downloadMessageContent(requestId, messageId)
- return self.recv_downloadMessageContent()
-
- def send_downloadMessageContent(self, requestId, messageId):
- self._oprot.writeMessageBegin('downloadMessageContent', TMessageType.CALL, self._seqid)
- args = downloadMessageContent_args()
- args.requestId = requestId
- args.messageId = messageId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_downloadMessageContent(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = downloadMessageContent_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "downloadMessageContent failed: unknown result")
-
- def downloadMessageContentPreview(self, requestId, messageId):
- """
- Parameters:
- - requestId
- - messageId
-
- """
- self.send_downloadMessageContentPreview(requestId, messageId)
- return self.recv_downloadMessageContentPreview()
-
- def send_downloadMessageContentPreview(self, requestId, messageId):
- self._oprot.writeMessageBegin('downloadMessageContentPreview', TMessageType.CALL, self._seqid)
- args = downloadMessageContentPreview_args()
- args.requestId = requestId
- args.messageId = messageId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_downloadMessageContentPreview(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = downloadMessageContentPreview_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "downloadMessageContentPreview failed: unknown result")
-
- def downloadProfileImage(self, requestId):
- """
- Parameters:
- - requestId
-
- """
- self.send_downloadProfileImage(requestId)
- return self.recv_downloadProfileImage()
-
- def send_downloadProfileImage(self, requestId):
- self._oprot.writeMessageBegin('downloadProfileImage', TMessageType.CALL, self._seqid)
- args = downloadProfileImage_args()
- args.requestId = requestId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_downloadProfileImage(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = downloadProfileImage_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "downloadProfileImage failed: unknown result")
-
- def downloadProfileImagePreview(self, requestId):
- """
- Parameters:
- - requestId
-
- """
- self.send_downloadProfileImagePreview(requestId)
- return self.recv_downloadProfileImagePreview()
-
- def send_downloadProfileImagePreview(self, requestId):
- self._oprot.writeMessageBegin('downloadProfileImagePreview', TMessageType.CALL, self._seqid)
- args = downloadProfileImagePreview_args()
- args.requestId = requestId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_downloadProfileImagePreview(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = downloadProfileImagePreview_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "downloadProfileImagePreview failed: unknown result")
-
- def getActiveMemberCountByBuddyMid(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- self.send_getActiveMemberCountByBuddyMid(buddyMid)
- return self.recv_getActiveMemberCountByBuddyMid()
-
- def send_getActiveMemberCountByBuddyMid(self, buddyMid):
- self._oprot.writeMessageBegin('getActiveMemberCountByBuddyMid', TMessageType.CALL, self._seqid)
- args = getActiveMemberCountByBuddyMid_args()
- args.buddyMid = buddyMid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getActiveMemberCountByBuddyMid(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getActiveMemberCountByBuddyMid_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveMemberCountByBuddyMid failed: unknown result")
-
- def getActiveMemberMidsByBuddyMid(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- self.send_getActiveMemberMidsByBuddyMid(buddyMid)
- return self.recv_getActiveMemberMidsByBuddyMid()
-
- def send_getActiveMemberMidsByBuddyMid(self, buddyMid):
- self._oprot.writeMessageBegin('getActiveMemberMidsByBuddyMid', TMessageType.CALL, self._seqid)
- args = getActiveMemberMidsByBuddyMid_args()
- args.buddyMid = buddyMid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getActiveMemberMidsByBuddyMid(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getActiveMemberMidsByBuddyMid_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveMemberMidsByBuddyMid failed: unknown result")
-
- def getAllBuddyMembers(self):
- self.send_getAllBuddyMembers()
- return self.recv_getAllBuddyMembers()
-
- def send_getAllBuddyMembers(self):
- self._oprot.writeMessageBegin('getAllBuddyMembers', TMessageType.CALL, self._seqid)
- args = getAllBuddyMembers_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getAllBuddyMembers(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getAllBuddyMembers_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBuddyMembers failed: unknown result")
-
- def getBlockedBuddyMembers(self):
- self.send_getBlockedBuddyMembers()
- return self.recv_getBlockedBuddyMembers()
-
- def send_getBlockedBuddyMembers(self):
- self._oprot.writeMessageBegin('getBlockedBuddyMembers', TMessageType.CALL, self._seqid)
- args = getBlockedBuddyMembers_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getBlockedBuddyMembers(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getBlockedBuddyMembers_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getBlockedBuddyMembers failed: unknown result")
-
- def getBlockerCountByBuddyMid(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- self.send_getBlockerCountByBuddyMid(buddyMid)
- return self.recv_getBlockerCountByBuddyMid()
-
- def send_getBlockerCountByBuddyMid(self, buddyMid):
- self._oprot.writeMessageBegin('getBlockerCountByBuddyMid', TMessageType.CALL, self._seqid)
- args = getBlockerCountByBuddyMid_args()
- args.buddyMid = buddyMid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getBlockerCountByBuddyMid(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getBlockerCountByBuddyMid_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getBlockerCountByBuddyMid failed: unknown result")
-
- def getBuddyDetailByMid(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- self.send_getBuddyDetailByMid(buddyMid)
- return self.recv_getBuddyDetailByMid()
-
- def send_getBuddyDetailByMid(self, buddyMid):
- self._oprot.writeMessageBegin('getBuddyDetailByMid', TMessageType.CALL, self._seqid)
- args = getBuddyDetailByMid_args()
- args.buddyMid = buddyMid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getBuddyDetailByMid(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getBuddyDetailByMid_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getBuddyDetailByMid failed: unknown result")
-
- def getBuddyProfile(self):
- self.send_getBuddyProfile()
- return self.recv_getBuddyProfile()
-
- def send_getBuddyProfile(self):
- self._oprot.writeMessageBegin('getBuddyProfile', TMessageType.CALL, self._seqid)
- args = getBuddyProfile_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getBuddyProfile(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getBuddyProfile_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getBuddyProfile failed: unknown result")
-
- def getContactTicket(self):
- self.send_getContactTicket()
- return self.recv_getContactTicket()
-
- def send_getContactTicket(self):
- self._oprot.writeMessageBegin('getContactTicket', TMessageType.CALL, self._seqid)
- args = getContactTicket_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getContactTicket(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getContactTicket_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getContactTicket failed: unknown result")
-
- def getMemberCountByBuddyMid(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- self.send_getMemberCountByBuddyMid(buddyMid)
- return self.recv_getMemberCountByBuddyMid()
-
- def send_getMemberCountByBuddyMid(self, buddyMid):
- self._oprot.writeMessageBegin('getMemberCountByBuddyMid', TMessageType.CALL, self._seqid)
- args = getMemberCountByBuddyMid_args()
- args.buddyMid = buddyMid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getMemberCountByBuddyMid(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getMemberCountByBuddyMid_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getMemberCountByBuddyMid failed: unknown result")
-
- def getSendBuddyMessageResult(self, sendBuddyMessageRequestId):
- """
- Parameters:
- - sendBuddyMessageRequestId
-
- """
- self.send_getSendBuddyMessageResult(sendBuddyMessageRequestId)
- return self.recv_getSendBuddyMessageResult()
-
- def send_getSendBuddyMessageResult(self, sendBuddyMessageRequestId):
- self._oprot.writeMessageBegin('getSendBuddyMessageResult', TMessageType.CALL, self._seqid)
- args = getSendBuddyMessageResult_args()
- args.sendBuddyMessageRequestId = sendBuddyMessageRequestId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getSendBuddyMessageResult(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getSendBuddyMessageResult_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getSendBuddyMessageResult failed: unknown result")
-
- def getSetBuddyOnAirResult(self, setBuddyOnAirRequestId):
- """
- Parameters:
- - setBuddyOnAirRequestId
-
- """
- self.send_getSetBuddyOnAirResult(setBuddyOnAirRequestId)
- return self.recv_getSetBuddyOnAirResult()
-
- def send_getSetBuddyOnAirResult(self, setBuddyOnAirRequestId):
- self._oprot.writeMessageBegin('getSetBuddyOnAirResult', TMessageType.CALL, self._seqid)
- args = getSetBuddyOnAirResult_args()
- args.setBuddyOnAirRequestId = setBuddyOnAirRequestId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getSetBuddyOnAirResult(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getSetBuddyOnAirResult_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getSetBuddyOnAirResult failed: unknown result")
-
- def getUpdateBuddyProfileResult(self, updateBuddyProfileRequestId):
- """
- Parameters:
- - updateBuddyProfileRequestId
-
- """
- self.send_getUpdateBuddyProfileResult(updateBuddyProfileRequestId)
- return self.recv_getUpdateBuddyProfileResult()
-
- def send_getUpdateBuddyProfileResult(self, updateBuddyProfileRequestId):
- self._oprot.writeMessageBegin('getUpdateBuddyProfileResult', TMessageType.CALL, self._seqid)
- args = getUpdateBuddyProfileResult_args()
- args.updateBuddyProfileRequestId = updateBuddyProfileRequestId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getUpdateBuddyProfileResult(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getUpdateBuddyProfileResult_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getUpdateBuddyProfileResult failed: unknown result")
-
- def isBuddyOnAirByMid(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- self.send_isBuddyOnAirByMid(buddyMid)
- return self.recv_isBuddyOnAirByMid()
-
- def send_isBuddyOnAirByMid(self, buddyMid):
- self._oprot.writeMessageBegin('isBuddyOnAirByMid', TMessageType.CALL, self._seqid)
- args = isBuddyOnAirByMid_args()
- args.buddyMid = buddyMid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_isBuddyOnAirByMid(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = isBuddyOnAirByMid_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "isBuddyOnAirByMid failed: unknown result")
-
- def linkAndSendBuddyContentMessageToAllAsync(self, requestId, msg, sourceContentId):
- """
- Parameters:
- - requestId
- - msg
- - sourceContentId
-
- """
- self.send_linkAndSendBuddyContentMessageToAllAsync(requestId, msg, sourceContentId)
- return self.recv_linkAndSendBuddyContentMessageToAllAsync()
-
- def send_linkAndSendBuddyContentMessageToAllAsync(self, requestId, msg, sourceContentId):
- self._oprot.writeMessageBegin('linkAndSendBuddyContentMessageToAllAsync', TMessageType.CALL, self._seqid)
- args = linkAndSendBuddyContentMessageToAllAsync_args()
- args.requestId = requestId
- args.msg = msg
- args.sourceContentId = sourceContentId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_linkAndSendBuddyContentMessageToAllAsync(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = linkAndSendBuddyContentMessageToAllAsync_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "linkAndSendBuddyContentMessageToAllAsync failed: unknown result")
-
- def linkAndSendBuddyContentMessageToMids(self, requestId, msg, sourceContentId, mids):
- """
- Parameters:
- - requestId
- - msg
- - sourceContentId
- - mids
-
- """
- self.send_linkAndSendBuddyContentMessageToMids(requestId, msg, sourceContentId, mids)
- return self.recv_linkAndSendBuddyContentMessageToMids()
-
- def send_linkAndSendBuddyContentMessageToMids(self, requestId, msg, sourceContentId, mids):
- self._oprot.writeMessageBegin('linkAndSendBuddyContentMessageToMids', TMessageType.CALL, self._seqid)
- args = linkAndSendBuddyContentMessageToMids_args()
- args.requestId = requestId
- args.msg = msg
- args.sourceContentId = sourceContentId
- args.mids = mids
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_linkAndSendBuddyContentMessageToMids(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = linkAndSendBuddyContentMessageToMids_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "linkAndSendBuddyContentMessageToMids failed: unknown result")
-
- def notifyBuddyBlocked(self, buddyMid, blockerMid):
- """
- Parameters:
- - buddyMid
- - blockerMid
-
- """
- self.send_notifyBuddyBlocked(buddyMid, blockerMid)
- self.recv_notifyBuddyBlocked()
-
- def send_notifyBuddyBlocked(self, buddyMid, blockerMid):
- self._oprot.writeMessageBegin('notifyBuddyBlocked', TMessageType.CALL, self._seqid)
- args = notifyBuddyBlocked_args()
- args.buddyMid = buddyMid
- args.blockerMid = blockerMid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_notifyBuddyBlocked(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = notifyBuddyBlocked_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def notifyBuddyUnblocked(self, buddyMid, blockerMid):
- """
- Parameters:
- - buddyMid
- - blockerMid
-
- """
- self.send_notifyBuddyUnblocked(buddyMid, blockerMid)
- self.recv_notifyBuddyUnblocked()
-
- def send_notifyBuddyUnblocked(self, buddyMid, blockerMid):
- self._oprot.writeMessageBegin('notifyBuddyUnblocked', TMessageType.CALL, self._seqid)
- args = notifyBuddyUnblocked_args()
- args.buddyMid = buddyMid
- args.blockerMid = blockerMid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_notifyBuddyUnblocked(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = notifyBuddyUnblocked_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def registerBuddy(self, buddyId, searchId, displayName, statusMeessage, picture, settings):
- """
- Parameters:
- - buddyId
- - searchId
- - displayName
- - statusMeessage
- - picture
- - settings
-
- """
- self.send_registerBuddy(buddyId, searchId, displayName, statusMeessage, picture, settings)
- return self.recv_registerBuddy()
-
- def send_registerBuddy(self, buddyId, searchId, displayName, statusMeessage, picture, settings):
- self._oprot.writeMessageBegin('registerBuddy', TMessageType.CALL, self._seqid)
- args = registerBuddy_args()
- args.buddyId = buddyId
- args.searchId = searchId
- args.displayName = displayName
- args.statusMeessage = statusMeessage
- args.picture = picture
- args.settings = settings
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_registerBuddy(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = registerBuddy_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "registerBuddy failed: unknown result")
-
- def registerBuddyAdmin(self, buddyId, searchId, displayName, statusMessage, picture):
- """
- Parameters:
- - buddyId
- - searchId
- - displayName
- - statusMessage
- - picture
-
- """
- self.send_registerBuddyAdmin(buddyId, searchId, displayName, statusMessage, picture)
- return self.recv_registerBuddyAdmin()
-
- def send_registerBuddyAdmin(self, buddyId, searchId, displayName, statusMessage, picture):
- self._oprot.writeMessageBegin('registerBuddyAdmin', TMessageType.CALL, self._seqid)
- args = registerBuddyAdmin_args()
- args.buddyId = buddyId
- args.searchId = searchId
- args.displayName = displayName
- args.statusMessage = statusMessage
- args.picture = picture
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_registerBuddyAdmin(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = registerBuddyAdmin_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "registerBuddyAdmin failed: unknown result")
-
- def reissueContactTicket(self, expirationTime, maxUseCount):
- """
- Parameters:
- - expirationTime
- - maxUseCount
-
- """
- self.send_reissueContactTicket(expirationTime, maxUseCount)
- return self.recv_reissueContactTicket()
-
- def send_reissueContactTicket(self, expirationTime, maxUseCount):
- self._oprot.writeMessageBegin('reissueContactTicket', TMessageType.CALL, self._seqid)
- args = reissueContactTicket_args()
- args.expirationTime = expirationTime
- args.maxUseCount = maxUseCount
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_reissueContactTicket(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = reissueContactTicket_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "reissueContactTicket failed: unknown result")
-
- def removeBuddyMember(self, requestId, userMid):
- """
- Parameters:
- - requestId
- - userMid
-
- """
- self.send_removeBuddyMember(requestId, userMid)
- self.recv_removeBuddyMember()
-
- def send_removeBuddyMember(self, requestId, userMid):
- self._oprot.writeMessageBegin('removeBuddyMember', TMessageType.CALL, self._seqid)
- args = removeBuddyMember_args()
- args.requestId = requestId
- args.userMid = userMid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_removeBuddyMember(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = removeBuddyMember_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def removeBuddyMembers(self, requestId, userMids):
- """
- Parameters:
- - requestId
- - userMids
-
- """
- self.send_removeBuddyMembers(requestId, userMids)
- self.recv_removeBuddyMembers()
-
- def send_removeBuddyMembers(self, requestId, userMids):
- self._oprot.writeMessageBegin('removeBuddyMembers', TMessageType.CALL, self._seqid)
- args = removeBuddyMembers_args()
- args.requestId = requestId
- args.userMids = userMids
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_removeBuddyMembers(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = removeBuddyMembers_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def sendBuddyContentMessageToAll(self, requestId, msg, content):
- """
- Parameters:
- - requestId
- - msg
- - content
-
- """
- self.send_sendBuddyContentMessageToAll(requestId, msg, content)
- return self.recv_sendBuddyContentMessageToAll()
-
- def send_sendBuddyContentMessageToAll(self, requestId, msg, content):
- self._oprot.writeMessageBegin('sendBuddyContentMessageToAll', TMessageType.CALL, self._seqid)
- args = sendBuddyContentMessageToAll_args()
- args.requestId = requestId
- args.msg = msg
- args.content = content
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_sendBuddyContentMessageToAll(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = sendBuddyContentMessageToAll_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyContentMessageToAll failed: unknown result")
-
- def sendBuddyContentMessageToAllAsync(self, requestId, msg, content):
- """
- Parameters:
- - requestId
- - msg
- - content
-
- """
- self.send_sendBuddyContentMessageToAllAsync(requestId, msg, content)
- return self.recv_sendBuddyContentMessageToAllAsync()
-
- def send_sendBuddyContentMessageToAllAsync(self, requestId, msg, content):
- self._oprot.writeMessageBegin('sendBuddyContentMessageToAllAsync', TMessageType.CALL, self._seqid)
- args = sendBuddyContentMessageToAllAsync_args()
- args.requestId = requestId
- args.msg = msg
- args.content = content
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_sendBuddyContentMessageToAllAsync(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = sendBuddyContentMessageToAllAsync_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyContentMessageToAllAsync failed: unknown result")
-
- def sendBuddyContentMessageToMids(self, requestId, msg, content, mids):
- """
- Parameters:
- - requestId
- - msg
- - content
- - mids
-
- """
- self.send_sendBuddyContentMessageToMids(requestId, msg, content, mids)
- return self.recv_sendBuddyContentMessageToMids()
-
- def send_sendBuddyContentMessageToMids(self, requestId, msg, content, mids):
- self._oprot.writeMessageBegin('sendBuddyContentMessageToMids', TMessageType.CALL, self._seqid)
- args = sendBuddyContentMessageToMids_args()
- args.requestId = requestId
- args.msg = msg
- args.content = content
- args.mids = mids
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_sendBuddyContentMessageToMids(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = sendBuddyContentMessageToMids_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyContentMessageToMids failed: unknown result")
-
- def sendBuddyContentMessageToMidsAsync(self, requestId, msg, content, mids):
- """
- Parameters:
- - requestId
- - msg
- - content
- - mids
-
- """
- self.send_sendBuddyContentMessageToMidsAsync(requestId, msg, content, mids)
- return self.recv_sendBuddyContentMessageToMidsAsync()
-
- def send_sendBuddyContentMessageToMidsAsync(self, requestId, msg, content, mids):
- self._oprot.writeMessageBegin('sendBuddyContentMessageToMidsAsync', TMessageType.CALL, self._seqid)
- args = sendBuddyContentMessageToMidsAsync_args()
- args.requestId = requestId
- args.msg = msg
- args.content = content
- args.mids = mids
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_sendBuddyContentMessageToMidsAsync(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = sendBuddyContentMessageToMidsAsync_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyContentMessageToMidsAsync failed: unknown result")
-
- def sendBuddyMessageToAll(self, requestId, msg):
- """
- Parameters:
- - requestId
- - msg
-
- """
- self.send_sendBuddyMessageToAll(requestId, msg)
- return self.recv_sendBuddyMessageToAll()
-
- def send_sendBuddyMessageToAll(self, requestId, msg):
- self._oprot.writeMessageBegin('sendBuddyMessageToAll', TMessageType.CALL, self._seqid)
- args = sendBuddyMessageToAll_args()
- args.requestId = requestId
- args.msg = msg
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_sendBuddyMessageToAll(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = sendBuddyMessageToAll_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyMessageToAll failed: unknown result")
-
- def sendBuddyMessageToAllAsync(self, requestId, msg):
- """
- Parameters:
- - requestId
- - msg
-
- """
- self.send_sendBuddyMessageToAllAsync(requestId, msg)
- return self.recv_sendBuddyMessageToAllAsync()
-
- def send_sendBuddyMessageToAllAsync(self, requestId, msg):
- self._oprot.writeMessageBegin('sendBuddyMessageToAllAsync', TMessageType.CALL, self._seqid)
- args = sendBuddyMessageToAllAsync_args()
- args.requestId = requestId
- args.msg = msg
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_sendBuddyMessageToAllAsync(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = sendBuddyMessageToAllAsync_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyMessageToAllAsync failed: unknown result")
-
- def sendBuddyMessageToMids(self, requestId, msg, mids):
- """
- Parameters:
- - requestId
- - msg
- - mids
-
- """
- self.send_sendBuddyMessageToMids(requestId, msg, mids)
- return self.recv_sendBuddyMessageToMids()
-
- def send_sendBuddyMessageToMids(self, requestId, msg, mids):
- self._oprot.writeMessageBegin('sendBuddyMessageToMids', TMessageType.CALL, self._seqid)
- args = sendBuddyMessageToMids_args()
- args.requestId = requestId
- args.msg = msg
- args.mids = mids
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_sendBuddyMessageToMids(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = sendBuddyMessageToMids_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyMessageToMids failed: unknown result")
-
- def sendBuddyMessageToMidsAsync(self, requestId, msg, mids):
- """
- Parameters:
- - requestId
- - msg
- - mids
-
- """
- self.send_sendBuddyMessageToMidsAsync(requestId, msg, mids)
- return self.recv_sendBuddyMessageToMidsAsync()
-
- def send_sendBuddyMessageToMidsAsync(self, requestId, msg, mids):
- self._oprot.writeMessageBegin('sendBuddyMessageToMidsAsync', TMessageType.CALL, self._seqid)
- args = sendBuddyMessageToMidsAsync_args()
- args.requestId = requestId
- args.msg = msg
- args.mids = mids
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_sendBuddyMessageToMidsAsync(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = sendBuddyMessageToMidsAsync_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "sendBuddyMessageToMidsAsync failed: unknown result")
-
- def sendIndividualEventToAllAsync(self, requestId, buddyMid, notificationStatus):
- """
- Parameters:
- - requestId
- - buddyMid
- - notificationStatus
-
- """
- self.send_sendIndividualEventToAllAsync(requestId, buddyMid, notificationStatus)
- self.recv_sendIndividualEventToAllAsync()
-
- def send_sendIndividualEventToAllAsync(self, requestId, buddyMid, notificationStatus):
- self._oprot.writeMessageBegin('sendIndividualEventToAllAsync', TMessageType.CALL, self._seqid)
- args = sendIndividualEventToAllAsync_args()
- args.requestId = requestId
- args.buddyMid = buddyMid
- args.notificationStatus = notificationStatus
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_sendIndividualEventToAllAsync(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = sendIndividualEventToAllAsync_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def setBuddyOnAir(self, requestId, onAir):
- """
- Parameters:
- - requestId
- - onAir
-
- """
- self.send_setBuddyOnAir(requestId, onAir)
- return self.recv_setBuddyOnAir()
-
- def send_setBuddyOnAir(self, requestId, onAir):
- self._oprot.writeMessageBegin('setBuddyOnAir', TMessageType.CALL, self._seqid)
- args = setBuddyOnAir_args()
- args.requestId = requestId
- args.onAir = onAir
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_setBuddyOnAir(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = setBuddyOnAir_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "setBuddyOnAir failed: unknown result")
-
- def setBuddyOnAirAsync(self, requestId, onAir):
- """
- Parameters:
- - requestId
- - onAir
-
- """
- self.send_setBuddyOnAirAsync(requestId, onAir)
- return self.recv_setBuddyOnAirAsync()
-
- def send_setBuddyOnAirAsync(self, requestId, onAir):
- self._oprot.writeMessageBegin('setBuddyOnAirAsync', TMessageType.CALL, self._seqid)
- args = setBuddyOnAirAsync_args()
- args.requestId = requestId
- args.onAir = onAir
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_setBuddyOnAirAsync(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = setBuddyOnAirAsync_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "setBuddyOnAirAsync failed: unknown result")
-
- def storeMessage(self, requestId, messageRequest):
- """
- Parameters:
- - requestId
- - messageRequest
-
- """
- self.send_storeMessage(requestId, messageRequest)
- return self.recv_storeMessage()
-
- def send_storeMessage(self, requestId, messageRequest):
- self._oprot.writeMessageBegin('storeMessage', TMessageType.CALL, self._seqid)
- args = storeMessage_args()
- args.requestId = requestId
- args.messageRequest = messageRequest
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_storeMessage(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = storeMessage_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "storeMessage failed: unknown result")
-
- def unblockBuddyMember(self, requestId, mid):
- """
- Parameters:
- - requestId
- - mid
-
- """
- self.send_unblockBuddyMember(requestId, mid)
- self.recv_unblockBuddyMember()
-
- def send_unblockBuddyMember(self, requestId, mid):
- self._oprot.writeMessageBegin('unblockBuddyMember', TMessageType.CALL, self._seqid)
- args = unblockBuddyMember_args()
- args.requestId = requestId
- args.mid = mid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_unblockBuddyMember(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = unblockBuddyMember_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def unregisterBuddy(self, requestId):
- """
- Parameters:
- - requestId
-
- """
- self.send_unregisterBuddy(requestId)
- self.recv_unregisterBuddy()
-
- def send_unregisterBuddy(self, requestId):
- self._oprot.writeMessageBegin('unregisterBuddy', TMessageType.CALL, self._seqid)
- args = unregisterBuddy_args()
- args.requestId = requestId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_unregisterBuddy(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = unregisterBuddy_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def unregisterBuddyAdmin(self, requestId):
- """
- Parameters:
- - requestId
-
- """
- self.send_unregisterBuddyAdmin(requestId)
- self.recv_unregisterBuddyAdmin()
-
- def send_unregisterBuddyAdmin(self, requestId):
- self._oprot.writeMessageBegin('unregisterBuddyAdmin', TMessageType.CALL, self._seqid)
- args = unregisterBuddyAdmin_args()
- args.requestId = requestId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_unregisterBuddyAdmin(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = unregisterBuddyAdmin_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def updateBuddyAdminProfileAttribute(self, requestId, attributes):
- """
- Parameters:
- - requestId
- - attributes
-
- """
- self.send_updateBuddyAdminProfileAttribute(requestId, attributes)
- self.recv_updateBuddyAdminProfileAttribute()
-
- def send_updateBuddyAdminProfileAttribute(self, requestId, attributes):
- self._oprot.writeMessageBegin('updateBuddyAdminProfileAttribute', TMessageType.CALL, self._seqid)
- args = updateBuddyAdminProfileAttribute_args()
- args.requestId = requestId
- args.attributes = attributes
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_updateBuddyAdminProfileAttribute(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = updateBuddyAdminProfileAttribute_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def updateBuddyAdminProfileImage(self, requestId, picture):
- """
- Parameters:
- - requestId
- - picture
-
- """
- self.send_updateBuddyAdminProfileImage(requestId, picture)
- self.recv_updateBuddyAdminProfileImage()
-
- def send_updateBuddyAdminProfileImage(self, requestId, picture):
- self._oprot.writeMessageBegin('updateBuddyAdminProfileImage', TMessageType.CALL, self._seqid)
- args = updateBuddyAdminProfileImage_args()
- args.requestId = requestId
- args.picture = picture
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_updateBuddyAdminProfileImage(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = updateBuddyAdminProfileImage_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def updateBuddyProfileAttributes(self, requestId, attributes):
- """
- Parameters:
- - requestId
- - attributes
-
- """
- self.send_updateBuddyProfileAttributes(requestId, attributes)
- return self.recv_updateBuddyProfileAttributes()
-
- def send_updateBuddyProfileAttributes(self, requestId, attributes):
- self._oprot.writeMessageBegin('updateBuddyProfileAttributes', TMessageType.CALL, self._seqid)
- args = updateBuddyProfileAttributes_args()
- args.requestId = requestId
- args.attributes = attributes
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_updateBuddyProfileAttributes(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = updateBuddyProfileAttributes_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBuddyProfileAttributes failed: unknown result")
-
- def updateBuddyProfileAttributesAsync(self, requestId, attributes):
- """
- Parameters:
- - requestId
- - attributes
-
- """
- self.send_updateBuddyProfileAttributesAsync(requestId, attributes)
- return self.recv_updateBuddyProfileAttributesAsync()
-
- def send_updateBuddyProfileAttributesAsync(self, requestId, attributes):
- self._oprot.writeMessageBegin('updateBuddyProfileAttributesAsync', TMessageType.CALL, self._seqid)
- args = updateBuddyProfileAttributesAsync_args()
- args.requestId = requestId
- args.attributes = attributes
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_updateBuddyProfileAttributesAsync(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = updateBuddyProfileAttributesAsync_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBuddyProfileAttributesAsync failed: unknown result")
-
- def updateBuddyProfileImage(self, requestId, image):
- """
- Parameters:
- - requestId
- - image
-
- """
- self.send_updateBuddyProfileImage(requestId, image)
- return self.recv_updateBuddyProfileImage()
-
- def send_updateBuddyProfileImage(self, requestId, image):
- self._oprot.writeMessageBegin('updateBuddyProfileImage', TMessageType.CALL, self._seqid)
- args = updateBuddyProfileImage_args()
- args.requestId = requestId
- args.image = image
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_updateBuddyProfileImage(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = updateBuddyProfileImage_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBuddyProfileImage failed: unknown result")
-
- def updateBuddyProfileImageAsync(self, requestId, image):
- """
- Parameters:
- - requestId
- - image
-
- """
- self.send_updateBuddyProfileImageAsync(requestId, image)
- return self.recv_updateBuddyProfileImageAsync()
-
- def send_updateBuddyProfileImageAsync(self, requestId, image):
- self._oprot.writeMessageBegin('updateBuddyProfileImageAsync', TMessageType.CALL, self._seqid)
- args = updateBuddyProfileImageAsync_args()
- args.requestId = requestId
- args.image = image
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_updateBuddyProfileImageAsync(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = updateBuddyProfileImageAsync_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBuddyProfileImageAsync failed: unknown result")
-
- def updateBuddySearchId(self, requestId, searchId):
- """
- Parameters:
- - requestId
- - searchId
-
- """
- self.send_updateBuddySearchId(requestId, searchId)
- self.recv_updateBuddySearchId()
-
- def send_updateBuddySearchId(self, requestId, searchId):
- self._oprot.writeMessageBegin('updateBuddySearchId', TMessageType.CALL, self._seqid)
- args = updateBuddySearchId_args()
- args.requestId = requestId
- args.searchId = searchId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_updateBuddySearchId(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = updateBuddySearchId_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def updateBuddySettings(self, settings):
- """
- Parameters:
- - settings
-
- """
- self.send_updateBuddySettings(settings)
- self.recv_updateBuddySettings()
-
- def send_updateBuddySettings(self, settings):
- self._oprot.writeMessageBegin('updateBuddySettings', TMessageType.CALL, self._seqid)
- args = updateBuddySettings_args()
- args.settings = settings
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_updateBuddySettings(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = updateBuddySettings_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def uploadBuddyContent(self, contentType, content):
- """
- Parameters:
- - contentType
- - content
-
- """
- self.send_uploadBuddyContent(contentType, content)
- return self.recv_uploadBuddyContent()
-
- def send_uploadBuddyContent(self, contentType, content):
- self._oprot.writeMessageBegin('uploadBuddyContent', TMessageType.CALL, self._seqid)
- args = uploadBuddyContent_args()
- args.contentType = contentType
- args.content = content
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_uploadBuddyContent(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = uploadBuddyContent_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "uploadBuddyContent failed: unknown result")
-
-
-class Processor(Iface, TProcessor):
- def __init__(self, handler):
- self._handler = handler
- self._processMap = {}
- self._processMap["addBuddyMember"] = Processor.process_addBuddyMember
- self._processMap["addBuddyMembers"] = Processor.process_addBuddyMembers
- self._processMap["blockBuddyMember"] = Processor.process_blockBuddyMember
- self._processMap["commitSendMessagesToAll"] = Processor.process_commitSendMessagesToAll
- self._processMap["commitSendMessagesToMids"] = Processor.process_commitSendMessagesToMids
- self._processMap["containsBuddyMember"] = Processor.process_containsBuddyMember
- self._processMap["downloadMessageContent"] = Processor.process_downloadMessageContent
- self._processMap["downloadMessageContentPreview"] = Processor.process_downloadMessageContentPreview
- self._processMap["downloadProfileImage"] = Processor.process_downloadProfileImage
- self._processMap["downloadProfileImagePreview"] = Processor.process_downloadProfileImagePreview
- self._processMap["getActiveMemberCountByBuddyMid"] = Processor.process_getActiveMemberCountByBuddyMid
- self._processMap["getActiveMemberMidsByBuddyMid"] = Processor.process_getActiveMemberMidsByBuddyMid
- self._processMap["getAllBuddyMembers"] = Processor.process_getAllBuddyMembers
- self._processMap["getBlockedBuddyMembers"] = Processor.process_getBlockedBuddyMembers
- self._processMap["getBlockerCountByBuddyMid"] = Processor.process_getBlockerCountByBuddyMid
- self._processMap["getBuddyDetailByMid"] = Processor.process_getBuddyDetailByMid
- self._processMap["getBuddyProfile"] = Processor.process_getBuddyProfile
- self._processMap["getContactTicket"] = Processor.process_getContactTicket
- self._processMap["getMemberCountByBuddyMid"] = Processor.process_getMemberCountByBuddyMid
- self._processMap["getSendBuddyMessageResult"] = Processor.process_getSendBuddyMessageResult
- self._processMap["getSetBuddyOnAirResult"] = Processor.process_getSetBuddyOnAirResult
- self._processMap["getUpdateBuddyProfileResult"] = Processor.process_getUpdateBuddyProfileResult
- self._processMap["isBuddyOnAirByMid"] = Processor.process_isBuddyOnAirByMid
- self._processMap["linkAndSendBuddyContentMessageToAllAsync"] = Processor.process_linkAndSendBuddyContentMessageToAllAsync
- self._processMap["linkAndSendBuddyContentMessageToMids"] = Processor.process_linkAndSendBuddyContentMessageToMids
- self._processMap["notifyBuddyBlocked"] = Processor.process_notifyBuddyBlocked
- self._processMap["notifyBuddyUnblocked"] = Processor.process_notifyBuddyUnblocked
- self._processMap["registerBuddy"] = Processor.process_registerBuddy
- self._processMap["registerBuddyAdmin"] = Processor.process_registerBuddyAdmin
- self._processMap["reissueContactTicket"] = Processor.process_reissueContactTicket
- self._processMap["removeBuddyMember"] = Processor.process_removeBuddyMember
- self._processMap["removeBuddyMembers"] = Processor.process_removeBuddyMembers
- self._processMap["sendBuddyContentMessageToAll"] = Processor.process_sendBuddyContentMessageToAll
- self._processMap["sendBuddyContentMessageToAllAsync"] = Processor.process_sendBuddyContentMessageToAllAsync
- self._processMap["sendBuddyContentMessageToMids"] = Processor.process_sendBuddyContentMessageToMids
- self._processMap["sendBuddyContentMessageToMidsAsync"] = Processor.process_sendBuddyContentMessageToMidsAsync
- self._processMap["sendBuddyMessageToAll"] = Processor.process_sendBuddyMessageToAll
- self._processMap["sendBuddyMessageToAllAsync"] = Processor.process_sendBuddyMessageToAllAsync
- self._processMap["sendBuddyMessageToMids"] = Processor.process_sendBuddyMessageToMids
- self._processMap["sendBuddyMessageToMidsAsync"] = Processor.process_sendBuddyMessageToMidsAsync
- self._processMap["sendIndividualEventToAllAsync"] = Processor.process_sendIndividualEventToAllAsync
- self._processMap["setBuddyOnAir"] = Processor.process_setBuddyOnAir
- self._processMap["setBuddyOnAirAsync"] = Processor.process_setBuddyOnAirAsync
- self._processMap["storeMessage"] = Processor.process_storeMessage
- self._processMap["unblockBuddyMember"] = Processor.process_unblockBuddyMember
- self._processMap["unregisterBuddy"] = Processor.process_unregisterBuddy
- self._processMap["unregisterBuddyAdmin"] = Processor.process_unregisterBuddyAdmin
- self._processMap["updateBuddyAdminProfileAttribute"] = Processor.process_updateBuddyAdminProfileAttribute
- self._processMap["updateBuddyAdminProfileImage"] = Processor.process_updateBuddyAdminProfileImage
- self._processMap["updateBuddyProfileAttributes"] = Processor.process_updateBuddyProfileAttributes
- self._processMap["updateBuddyProfileAttributesAsync"] = Processor.process_updateBuddyProfileAttributesAsync
- self._processMap["updateBuddyProfileImage"] = Processor.process_updateBuddyProfileImage
- self._processMap["updateBuddyProfileImageAsync"] = Processor.process_updateBuddyProfileImageAsync
- self._processMap["updateBuddySearchId"] = Processor.process_updateBuddySearchId
- self._processMap["updateBuddySettings"] = Processor.process_updateBuddySettings
- self._processMap["uploadBuddyContent"] = Processor.process_uploadBuddyContent
- self._on_message_begin = None
-
- def on_message_begin(self, func):
- self._on_message_begin = func
-
- def process(self, iprot, oprot):
- (name, type, seqid) = iprot.readMessageBegin()
- if self._on_message_begin:
- self._on_message_begin(name, type, seqid)
- if name not in self._processMap:
- iprot.skip(TType.STRUCT)
- iprot.readMessageEnd()
- x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
- oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
- x.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
- return
- else:
- self._processMap[name](self, seqid, iprot, oprot)
- return True
-
- def process_addBuddyMember(self, seqid, iprot, oprot):
- args = addBuddyMember_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = addBuddyMember_result()
- try:
- self._handler.addBuddyMember(args.requestId, args.userMid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("addBuddyMember", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_addBuddyMembers(self, seqid, iprot, oprot):
- args = addBuddyMembers_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = addBuddyMembers_result()
- try:
- self._handler.addBuddyMembers(args.requestId, args.userMids)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("addBuddyMembers", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_blockBuddyMember(self, seqid, iprot, oprot):
- args = blockBuddyMember_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = blockBuddyMember_result()
- try:
- self._handler.blockBuddyMember(args.requestId, args.mid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("blockBuddyMember", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_commitSendMessagesToAll(self, seqid, iprot, oprot):
- args = commitSendMessagesToAll_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = commitSendMessagesToAll_result()
- try:
- result.success = self._handler.commitSendMessagesToAll(args.requestIdList)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("commitSendMessagesToAll", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_commitSendMessagesToMids(self, seqid, iprot, oprot):
- args = commitSendMessagesToMids_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = commitSendMessagesToMids_result()
- try:
- result.success = self._handler.commitSendMessagesToMids(args.requestIdList, args.mids)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("commitSendMessagesToMids", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_containsBuddyMember(self, seqid, iprot, oprot):
- args = containsBuddyMember_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = containsBuddyMember_result()
- try:
- result.success = self._handler.containsBuddyMember(args.requestId, args.userMid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("containsBuddyMember", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_downloadMessageContent(self, seqid, iprot, oprot):
- args = downloadMessageContent_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = downloadMessageContent_result()
- try:
- result.success = self._handler.downloadMessageContent(args.requestId, args.messageId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("downloadMessageContent", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_downloadMessageContentPreview(self, seqid, iprot, oprot):
- args = downloadMessageContentPreview_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = downloadMessageContentPreview_result()
- try:
- result.success = self._handler.downloadMessageContentPreview(args.requestId, args.messageId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("downloadMessageContentPreview", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_downloadProfileImage(self, seqid, iprot, oprot):
- args = downloadProfileImage_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = downloadProfileImage_result()
- try:
- result.success = self._handler.downloadProfileImage(args.requestId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("downloadProfileImage", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_downloadProfileImagePreview(self, seqid, iprot, oprot):
- args = downloadProfileImagePreview_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = downloadProfileImagePreview_result()
- try:
- result.success = self._handler.downloadProfileImagePreview(args.requestId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("downloadProfileImagePreview", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getActiveMemberCountByBuddyMid(self, seqid, iprot, oprot):
- args = getActiveMemberCountByBuddyMid_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getActiveMemberCountByBuddyMid_result()
- try:
- result.success = self._handler.getActiveMemberCountByBuddyMid(args.buddyMid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getActiveMemberCountByBuddyMid", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getActiveMemberMidsByBuddyMid(self, seqid, iprot, oprot):
- args = getActiveMemberMidsByBuddyMid_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getActiveMemberMidsByBuddyMid_result()
- try:
- result.success = self._handler.getActiveMemberMidsByBuddyMid(args.buddyMid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getActiveMemberMidsByBuddyMid", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getAllBuddyMembers(self, seqid, iprot, oprot):
- args = getAllBuddyMembers_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getAllBuddyMembers_result()
- try:
- result.success = self._handler.getAllBuddyMembers()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getAllBuddyMembers", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getBlockedBuddyMembers(self, seqid, iprot, oprot):
- args = getBlockedBuddyMembers_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getBlockedBuddyMembers_result()
- try:
- result.success = self._handler.getBlockedBuddyMembers()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getBlockedBuddyMembers", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getBlockerCountByBuddyMid(self, seqid, iprot, oprot):
- args = getBlockerCountByBuddyMid_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getBlockerCountByBuddyMid_result()
- try:
- result.success = self._handler.getBlockerCountByBuddyMid(args.buddyMid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getBlockerCountByBuddyMid", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getBuddyDetailByMid(self, seqid, iprot, oprot):
- args = getBuddyDetailByMid_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getBuddyDetailByMid_result()
- try:
- result.success = self._handler.getBuddyDetailByMid(args.buddyMid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getBuddyDetailByMid", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getBuddyProfile(self, seqid, iprot, oprot):
- args = getBuddyProfile_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getBuddyProfile_result()
- try:
- result.success = self._handler.getBuddyProfile()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getBuddyProfile", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getContactTicket(self, seqid, iprot, oprot):
- args = getContactTicket_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getContactTicket_result()
- try:
- result.success = self._handler.getContactTicket()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getContactTicket", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getMemberCountByBuddyMid(self, seqid, iprot, oprot):
- args = getMemberCountByBuddyMid_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getMemberCountByBuddyMid_result()
- try:
- result.success = self._handler.getMemberCountByBuddyMid(args.buddyMid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getMemberCountByBuddyMid", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getSendBuddyMessageResult(self, seqid, iprot, oprot):
- args = getSendBuddyMessageResult_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getSendBuddyMessageResult_result()
- try:
- result.success = self._handler.getSendBuddyMessageResult(args.sendBuddyMessageRequestId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getSendBuddyMessageResult", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getSetBuddyOnAirResult(self, seqid, iprot, oprot):
- args = getSetBuddyOnAirResult_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getSetBuddyOnAirResult_result()
- try:
- result.success = self._handler.getSetBuddyOnAirResult(args.setBuddyOnAirRequestId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getSetBuddyOnAirResult", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getUpdateBuddyProfileResult(self, seqid, iprot, oprot):
- args = getUpdateBuddyProfileResult_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getUpdateBuddyProfileResult_result()
- try:
- result.success = self._handler.getUpdateBuddyProfileResult(args.updateBuddyProfileRequestId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getUpdateBuddyProfileResult", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_isBuddyOnAirByMid(self, seqid, iprot, oprot):
- args = isBuddyOnAirByMid_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = isBuddyOnAirByMid_result()
- try:
- result.success = self._handler.isBuddyOnAirByMid(args.buddyMid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("isBuddyOnAirByMid", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_linkAndSendBuddyContentMessageToAllAsync(self, seqid, iprot, oprot):
- args = linkAndSendBuddyContentMessageToAllAsync_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = linkAndSendBuddyContentMessageToAllAsync_result()
- try:
- result.success = self._handler.linkAndSendBuddyContentMessageToAllAsync(args.requestId, args.msg, args.sourceContentId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("linkAndSendBuddyContentMessageToAllAsync", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_linkAndSendBuddyContentMessageToMids(self, seqid, iprot, oprot):
- args = linkAndSendBuddyContentMessageToMids_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = linkAndSendBuddyContentMessageToMids_result()
- try:
- result.success = self._handler.linkAndSendBuddyContentMessageToMids(args.requestId, args.msg, args.sourceContentId, args.mids)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("linkAndSendBuddyContentMessageToMids", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_notifyBuddyBlocked(self, seqid, iprot, oprot):
- args = notifyBuddyBlocked_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = notifyBuddyBlocked_result()
- try:
- self._handler.notifyBuddyBlocked(args.buddyMid, args.blockerMid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("notifyBuddyBlocked", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_notifyBuddyUnblocked(self, seqid, iprot, oprot):
- args = notifyBuddyUnblocked_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = notifyBuddyUnblocked_result()
- try:
- self._handler.notifyBuddyUnblocked(args.buddyMid, args.blockerMid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("notifyBuddyUnblocked", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_registerBuddy(self, seqid, iprot, oprot):
- args = registerBuddy_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = registerBuddy_result()
- try:
- result.success = self._handler.registerBuddy(args.buddyId, args.searchId, args.displayName, args.statusMeessage, args.picture, args.settings)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("registerBuddy", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_registerBuddyAdmin(self, seqid, iprot, oprot):
- args = registerBuddyAdmin_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = registerBuddyAdmin_result()
- try:
- result.success = self._handler.registerBuddyAdmin(args.buddyId, args.searchId, args.displayName, args.statusMessage, args.picture)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("registerBuddyAdmin", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_reissueContactTicket(self, seqid, iprot, oprot):
- args = reissueContactTicket_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = reissueContactTicket_result()
- try:
- result.success = self._handler.reissueContactTicket(args.expirationTime, args.maxUseCount)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("reissueContactTicket", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_removeBuddyMember(self, seqid, iprot, oprot):
- args = removeBuddyMember_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = removeBuddyMember_result()
- try:
- self._handler.removeBuddyMember(args.requestId, args.userMid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("removeBuddyMember", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_removeBuddyMembers(self, seqid, iprot, oprot):
- args = removeBuddyMembers_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = removeBuddyMembers_result()
- try:
- self._handler.removeBuddyMembers(args.requestId, args.userMids)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("removeBuddyMembers", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_sendBuddyContentMessageToAll(self, seqid, iprot, oprot):
- args = sendBuddyContentMessageToAll_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = sendBuddyContentMessageToAll_result()
- try:
- result.success = self._handler.sendBuddyContentMessageToAll(args.requestId, args.msg, args.content)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("sendBuddyContentMessageToAll", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_sendBuddyContentMessageToAllAsync(self, seqid, iprot, oprot):
- args = sendBuddyContentMessageToAllAsync_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = sendBuddyContentMessageToAllAsync_result()
- try:
- result.success = self._handler.sendBuddyContentMessageToAllAsync(args.requestId, args.msg, args.content)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("sendBuddyContentMessageToAllAsync", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_sendBuddyContentMessageToMids(self, seqid, iprot, oprot):
- args = sendBuddyContentMessageToMids_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = sendBuddyContentMessageToMids_result()
- try:
- result.success = self._handler.sendBuddyContentMessageToMids(args.requestId, args.msg, args.content, args.mids)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("sendBuddyContentMessageToMids", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_sendBuddyContentMessageToMidsAsync(self, seqid, iprot, oprot):
- args = sendBuddyContentMessageToMidsAsync_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = sendBuddyContentMessageToMidsAsync_result()
- try:
- result.success = self._handler.sendBuddyContentMessageToMidsAsync(args.requestId, args.msg, args.content, args.mids)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("sendBuddyContentMessageToMidsAsync", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_sendBuddyMessageToAll(self, seqid, iprot, oprot):
- args = sendBuddyMessageToAll_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = sendBuddyMessageToAll_result()
- try:
- result.success = self._handler.sendBuddyMessageToAll(args.requestId, args.msg)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("sendBuddyMessageToAll", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_sendBuddyMessageToAllAsync(self, seqid, iprot, oprot):
- args = sendBuddyMessageToAllAsync_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = sendBuddyMessageToAllAsync_result()
- try:
- result.success = self._handler.sendBuddyMessageToAllAsync(args.requestId, args.msg)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("sendBuddyMessageToAllAsync", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_sendBuddyMessageToMids(self, seqid, iprot, oprot):
- args = sendBuddyMessageToMids_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = sendBuddyMessageToMids_result()
- try:
- result.success = self._handler.sendBuddyMessageToMids(args.requestId, args.msg, args.mids)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("sendBuddyMessageToMids", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_sendBuddyMessageToMidsAsync(self, seqid, iprot, oprot):
- args = sendBuddyMessageToMidsAsync_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = sendBuddyMessageToMidsAsync_result()
- try:
- result.success = self._handler.sendBuddyMessageToMidsAsync(args.requestId, args.msg, args.mids)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("sendBuddyMessageToMidsAsync", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_sendIndividualEventToAllAsync(self, seqid, iprot, oprot):
- args = sendIndividualEventToAllAsync_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = sendIndividualEventToAllAsync_result()
- try:
- self._handler.sendIndividualEventToAllAsync(args.requestId, args.buddyMid, args.notificationStatus)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("sendIndividualEventToAllAsync", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_setBuddyOnAir(self, seqid, iprot, oprot):
- args = setBuddyOnAir_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = setBuddyOnAir_result()
- try:
- result.success = self._handler.setBuddyOnAir(args.requestId, args.onAir)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("setBuddyOnAir", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_setBuddyOnAirAsync(self, seqid, iprot, oprot):
- args = setBuddyOnAirAsync_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = setBuddyOnAirAsync_result()
- try:
- result.success = self._handler.setBuddyOnAirAsync(args.requestId, args.onAir)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("setBuddyOnAirAsync", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_storeMessage(self, seqid, iprot, oprot):
- args = storeMessage_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = storeMessage_result()
- try:
- result.success = self._handler.storeMessage(args.requestId, args.messageRequest)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("storeMessage", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_unblockBuddyMember(self, seqid, iprot, oprot):
- args = unblockBuddyMember_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = unblockBuddyMember_result()
- try:
- self._handler.unblockBuddyMember(args.requestId, args.mid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("unblockBuddyMember", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_unregisterBuddy(self, seqid, iprot, oprot):
- args = unregisterBuddy_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = unregisterBuddy_result()
- try:
- self._handler.unregisterBuddy(args.requestId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("unregisterBuddy", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_unregisterBuddyAdmin(self, seqid, iprot, oprot):
- args = unregisterBuddyAdmin_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = unregisterBuddyAdmin_result()
- try:
- self._handler.unregisterBuddyAdmin(args.requestId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("unregisterBuddyAdmin", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_updateBuddyAdminProfileAttribute(self, seqid, iprot, oprot):
- args = updateBuddyAdminProfileAttribute_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = updateBuddyAdminProfileAttribute_result()
- try:
- self._handler.updateBuddyAdminProfileAttribute(args.requestId, args.attributes)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("updateBuddyAdminProfileAttribute", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_updateBuddyAdminProfileImage(self, seqid, iprot, oprot):
- args = updateBuddyAdminProfileImage_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = updateBuddyAdminProfileImage_result()
- try:
- self._handler.updateBuddyAdminProfileImage(args.requestId, args.picture)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("updateBuddyAdminProfileImage", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_updateBuddyProfileAttributes(self, seqid, iprot, oprot):
- args = updateBuddyProfileAttributes_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = updateBuddyProfileAttributes_result()
- try:
- result.success = self._handler.updateBuddyProfileAttributes(args.requestId, args.attributes)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("updateBuddyProfileAttributes", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_updateBuddyProfileAttributesAsync(self, seqid, iprot, oprot):
- args = updateBuddyProfileAttributesAsync_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = updateBuddyProfileAttributesAsync_result()
- try:
- result.success = self._handler.updateBuddyProfileAttributesAsync(args.requestId, args.attributes)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("updateBuddyProfileAttributesAsync", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_updateBuddyProfileImage(self, seqid, iprot, oprot):
- args = updateBuddyProfileImage_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = updateBuddyProfileImage_result()
- try:
- result.success = self._handler.updateBuddyProfileImage(args.requestId, args.image)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("updateBuddyProfileImage", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_updateBuddyProfileImageAsync(self, seqid, iprot, oprot):
- args = updateBuddyProfileImageAsync_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = updateBuddyProfileImageAsync_result()
- try:
- result.success = self._handler.updateBuddyProfileImageAsync(args.requestId, args.image)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("updateBuddyProfileImageAsync", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_updateBuddySearchId(self, seqid, iprot, oprot):
- args = updateBuddySearchId_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = updateBuddySearchId_result()
- try:
- self._handler.updateBuddySearchId(args.requestId, args.searchId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("updateBuddySearchId", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_updateBuddySettings(self, seqid, iprot, oprot):
- args = updateBuddySettings_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = updateBuddySettings_result()
- try:
- self._handler.updateBuddySettings(args.settings)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("updateBuddySettings", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_uploadBuddyContent(self, seqid, iprot, oprot):
- args = uploadBuddyContent_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = uploadBuddyContent_result()
- try:
- result.success = self._handler.uploadBuddyContent(args.contentType, args.content)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("uploadBuddyContent", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
-# HELPER FUNCTIONS AND STRUCTURES
-
-
-class addBuddyMember_args(object):
- """
- Attributes:
- - requestId
- - userMid
-
- """
-
-
- def __init__(self, requestId=None, userMid=None,):
- self.requestId = requestId
- self.userMid = userMid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.userMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('addBuddyMember_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.userMid is not None:
- oprot.writeFieldBegin('userMid', TType.STRING, 2)
- oprot.writeString(self.userMid.encode('utf-8') if sys.version_info[0] == 2 else self.userMid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(addBuddyMember_args)
-addBuddyMember_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'userMid', 'UTF8', None, ), # 2
-)
-
-
-class addBuddyMember_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('addBuddyMember_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(addBuddyMember_result)
-addBuddyMember_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class addBuddyMembers_args(object):
- """
- Attributes:
- - requestId
- - userMids
-
- """
-
-
- def __init__(self, requestId=None, userMids=None,):
- self.requestId = requestId
- self.userMids = userMids
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.LIST:
- self.userMids = []
- (_etype344, _size341) = iprot.readListBegin()
- for _i345 in range(_size341):
- _elem346 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.userMids.append(_elem346)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('addBuddyMembers_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.userMids is not None:
- oprot.writeFieldBegin('userMids', TType.LIST, 2)
- oprot.writeListBegin(TType.STRING, len(self.userMids))
- for iter347 in self.userMids:
- oprot.writeString(iter347.encode('utf-8') if sys.version_info[0] == 2 else iter347)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(addBuddyMembers_args)
-addBuddyMembers_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.LIST, 'userMids', (TType.STRING, 'UTF8', False), None, ), # 2
-)
-
-
-class addBuddyMembers_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('addBuddyMembers_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(addBuddyMembers_result)
-addBuddyMembers_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class blockBuddyMember_args(object):
- """
- Attributes:
- - requestId
- - mid
-
- """
-
-
- def __init__(self, requestId=None, mid=None,):
- self.requestId = requestId
- self.mid = mid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.mid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('blockBuddyMember_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.mid is not None:
- oprot.writeFieldBegin('mid', TType.STRING, 2)
- oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(blockBuddyMember_args)
-blockBuddyMember_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'mid', 'UTF8', None, ), # 2
-)
-
-
-class blockBuddyMember_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('blockBuddyMember_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(blockBuddyMember_result)
-blockBuddyMember_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class commitSendMessagesToAll_args(object):
- """
- Attributes:
- - requestIdList
-
- """
-
-
- def __init__(self, requestIdList=None,):
- self.requestIdList = requestIdList
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.LIST:
- self.requestIdList = []
- (_etype351, _size348) = iprot.readListBegin()
- for _i352 in range(_size348):
- _elem353 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.requestIdList.append(_elem353)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('commitSendMessagesToAll_args')
- if self.requestIdList is not None:
- oprot.writeFieldBegin('requestIdList', TType.LIST, 1)
- oprot.writeListBegin(TType.STRING, len(self.requestIdList))
- for iter354 in self.requestIdList:
- oprot.writeString(iter354.encode('utf-8') if sys.version_info[0] == 2 else iter354)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(commitSendMessagesToAll_args)
-commitSendMessagesToAll_args.thrift_spec = (
- None, # 0
- (1, TType.LIST, 'requestIdList', (TType.STRING, 'UTF8', False), None, ), # 1
-)
-
-
-class commitSendMessagesToAll_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype358, _size355) = iprot.readListBegin()
- for _i359 in range(_size355):
- _elem360 = SendBuddyMessageResult()
- _elem360.read(iprot)
- self.success.append(_elem360)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('commitSendMessagesToAll_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter361 in self.success:
- iter361.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(commitSendMessagesToAll_result)
-commitSendMessagesToAll_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, [SendBuddyMessageResult, None], False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class commitSendMessagesToMids_args(object):
- """
- Attributes:
- - requestIdList
- - mids
-
- """
-
-
- def __init__(self, requestIdList=None, mids=None,):
- self.requestIdList = requestIdList
- self.mids = mids
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.LIST:
- self.requestIdList = []
- (_etype365, _size362) = iprot.readListBegin()
- for _i366 in range(_size362):
- _elem367 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.requestIdList.append(_elem367)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.LIST:
- self.mids = []
- (_etype371, _size368) = iprot.readListBegin()
- for _i372 in range(_size368):
- _elem373 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.mids.append(_elem373)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('commitSendMessagesToMids_args')
- if self.requestIdList is not None:
- oprot.writeFieldBegin('requestIdList', TType.LIST, 1)
- oprot.writeListBegin(TType.STRING, len(self.requestIdList))
- for iter374 in self.requestIdList:
- oprot.writeString(iter374.encode('utf-8') if sys.version_info[0] == 2 else iter374)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.mids is not None:
- oprot.writeFieldBegin('mids', TType.LIST, 2)
- oprot.writeListBegin(TType.STRING, len(self.mids))
- for iter375 in self.mids:
- oprot.writeString(iter375.encode('utf-8') if sys.version_info[0] == 2 else iter375)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(commitSendMessagesToMids_args)
-commitSendMessagesToMids_args.thrift_spec = (
- None, # 0
- (1, TType.LIST, 'requestIdList', (TType.STRING, 'UTF8', False), None, ), # 1
- (2, TType.LIST, 'mids', (TType.STRING, 'UTF8', False), None, ), # 2
-)
-
-
-class commitSendMessagesToMids_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype379, _size376) = iprot.readListBegin()
- for _i380 in range(_size376):
- _elem381 = SendBuddyMessageResult()
- _elem381.read(iprot)
- self.success.append(_elem381)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('commitSendMessagesToMids_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter382 in self.success:
- iter382.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(commitSendMessagesToMids_result)
-commitSendMessagesToMids_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, [SendBuddyMessageResult, None], False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class containsBuddyMember_args(object):
- """
- Attributes:
- - requestId
- - userMid
-
- """
-
-
- def __init__(self, requestId=None, userMid=None,):
- self.requestId = requestId
- self.userMid = userMid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.userMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('containsBuddyMember_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.userMid is not None:
- oprot.writeFieldBegin('userMid', TType.STRING, 2)
- oprot.writeString(self.userMid.encode('utf-8') if sys.version_info[0] == 2 else self.userMid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(containsBuddyMember_args)
-containsBuddyMember_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'userMid', 'UTF8', None, ), # 2
-)
-
-
-class containsBuddyMember_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.BOOL:
- self.success = iprot.readBool()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('containsBuddyMember_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.BOOL, 0)
- oprot.writeBool(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(containsBuddyMember_result)
-containsBuddyMember_result.thrift_spec = (
- (0, TType.BOOL, 'success', None, None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class downloadMessageContent_args(object):
- """
- Attributes:
- - requestId
- - messageId
-
- """
-
-
- def __init__(self, requestId=None, messageId=None,):
- self.requestId = requestId
- self.messageId = messageId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.messageId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('downloadMessageContent_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.messageId is not None:
- oprot.writeFieldBegin('messageId', TType.STRING, 2)
- oprot.writeString(self.messageId.encode('utf-8') if sys.version_info[0] == 2 else self.messageId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(downloadMessageContent_args)
-downloadMessageContent_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'messageId', 'UTF8', None, ), # 2
-)
-
-
-class downloadMessageContent_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readBinary()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('downloadMessageContent_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeBinary(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(downloadMessageContent_result)
-downloadMessageContent_result.thrift_spec = (
- (0, TType.STRING, 'success', 'BINARY', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class downloadMessageContentPreview_args(object):
- """
- Attributes:
- - requestId
- - messageId
-
- """
-
-
- def __init__(self, requestId=None, messageId=None,):
- self.requestId = requestId
- self.messageId = messageId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.messageId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('downloadMessageContentPreview_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.messageId is not None:
- oprot.writeFieldBegin('messageId', TType.STRING, 2)
- oprot.writeString(self.messageId.encode('utf-8') if sys.version_info[0] == 2 else self.messageId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(downloadMessageContentPreview_args)
-downloadMessageContentPreview_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'messageId', 'UTF8', None, ), # 2
-)
-
-
-class downloadMessageContentPreview_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readBinary()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('downloadMessageContentPreview_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeBinary(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(downloadMessageContentPreview_result)
-downloadMessageContentPreview_result.thrift_spec = (
- (0, TType.STRING, 'success', 'BINARY', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class downloadProfileImage_args(object):
- """
- Attributes:
- - requestId
-
- """
-
-
- def __init__(self, requestId=None,):
- self.requestId = requestId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('downloadProfileImage_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(downloadProfileImage_args)
-downloadProfileImage_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
-)
-
-
-class downloadProfileImage_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readBinary()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('downloadProfileImage_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeBinary(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(downloadProfileImage_result)
-downloadProfileImage_result.thrift_spec = (
- (0, TType.STRING, 'success', 'BINARY', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class downloadProfileImagePreview_args(object):
- """
- Attributes:
- - requestId
-
- """
-
-
- def __init__(self, requestId=None,):
- self.requestId = requestId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('downloadProfileImagePreview_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(downloadProfileImagePreview_args)
-downloadProfileImagePreview_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
-)
-
-
-class downloadProfileImagePreview_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readBinary()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('downloadProfileImagePreview_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeBinary(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(downloadProfileImagePreview_result)
-downloadProfileImagePreview_result.thrift_spec = (
- (0, TType.STRING, 'success', 'BINARY', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getActiveMemberCountByBuddyMid_args(object):
- """
- Attributes:
- - buddyMid
-
- """
-
-
- def __init__(self, buddyMid=None,):
- self.buddyMid = buddyMid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.buddyMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getActiveMemberCountByBuddyMid_args')
- if self.buddyMid is not None:
- oprot.writeFieldBegin('buddyMid', TType.STRING, 2)
- oprot.writeString(self.buddyMid.encode('utf-8') if sys.version_info[0] == 2 else self.buddyMid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getActiveMemberCountByBuddyMid_args)
-getActiveMemberCountByBuddyMid_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'buddyMid', 'UTF8', None, ), # 2
-)
-
-
-class getActiveMemberCountByBuddyMid_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.I64:
- self.success = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getActiveMemberCountByBuddyMid_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.I64, 0)
- oprot.writeI64(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getActiveMemberCountByBuddyMid_result)
-getActiveMemberCountByBuddyMid_result.thrift_spec = (
- (0, TType.I64, 'success', None, None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getActiveMemberMidsByBuddyMid_args(object):
- """
- Attributes:
- - buddyMid
-
- """
-
-
- def __init__(self, buddyMid=None,):
- self.buddyMid = buddyMid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.buddyMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getActiveMemberMidsByBuddyMid_args')
- if self.buddyMid is not None:
- oprot.writeFieldBegin('buddyMid', TType.STRING, 2)
- oprot.writeString(self.buddyMid.encode('utf-8') if sys.version_info[0] == 2 else self.buddyMid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getActiveMemberMidsByBuddyMid_args)
-getActiveMemberMidsByBuddyMid_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'buddyMid', 'UTF8', None, ), # 2
-)
-
-
-class getActiveMemberMidsByBuddyMid_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype386, _size383) = iprot.readListBegin()
- for _i387 in range(_size383):
- _elem388 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem388)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getActiveMemberMidsByBuddyMid_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRING, len(self.success))
- for iter389 in self.success:
- oprot.writeString(iter389.encode('utf-8') if sys.version_info[0] == 2 else iter389)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getActiveMemberMidsByBuddyMid_result)
-getActiveMemberMidsByBuddyMid_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getAllBuddyMembers_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getAllBuddyMembers_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getAllBuddyMembers_args)
-getAllBuddyMembers_args.thrift_spec = (
-)
-
-
-class getAllBuddyMembers_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype393, _size390) = iprot.readListBegin()
- for _i394 in range(_size390):
- _elem395 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem395)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getAllBuddyMembers_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRING, len(self.success))
- for iter396 in self.success:
- oprot.writeString(iter396.encode('utf-8') if sys.version_info[0] == 2 else iter396)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getAllBuddyMembers_result)
-getAllBuddyMembers_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getBlockedBuddyMembers_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getBlockedBuddyMembers_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getBlockedBuddyMembers_args)
-getBlockedBuddyMembers_args.thrift_spec = (
-)
-
-
-class getBlockedBuddyMembers_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype400, _size397) = iprot.readListBegin()
- for _i401 in range(_size397):
- _elem402 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem402)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getBlockedBuddyMembers_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRING, len(self.success))
- for iter403 in self.success:
- oprot.writeString(iter403.encode('utf-8') if sys.version_info[0] == 2 else iter403)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getBlockedBuddyMembers_result)
-getBlockedBuddyMembers_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getBlockerCountByBuddyMid_args(object):
- """
- Attributes:
- - buddyMid
-
- """
-
-
- def __init__(self, buddyMid=None,):
- self.buddyMid = buddyMid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.buddyMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getBlockerCountByBuddyMid_args')
- if self.buddyMid is not None:
- oprot.writeFieldBegin('buddyMid', TType.STRING, 2)
- oprot.writeString(self.buddyMid.encode('utf-8') if sys.version_info[0] == 2 else self.buddyMid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getBlockerCountByBuddyMid_args)
-getBlockerCountByBuddyMid_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'buddyMid', 'UTF8', None, ), # 2
-)
-
-
-class getBlockerCountByBuddyMid_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.I64:
- self.success = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getBlockerCountByBuddyMid_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.I64, 0)
- oprot.writeI64(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getBlockerCountByBuddyMid_result)
-getBlockerCountByBuddyMid_result.thrift_spec = (
- (0, TType.I64, 'success', None, None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getBuddyDetailByMid_args(object):
- """
- Attributes:
- - buddyMid
-
- """
-
-
- def __init__(self, buddyMid=None,):
- self.buddyMid = buddyMid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.buddyMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getBuddyDetailByMid_args')
- if self.buddyMid is not None:
- oprot.writeFieldBegin('buddyMid', TType.STRING, 2)
- oprot.writeString(self.buddyMid.encode('utf-8') if sys.version_info[0] == 2 else self.buddyMid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getBuddyDetailByMid_args)
-getBuddyDetailByMid_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'buddyMid', 'UTF8', None, ), # 2
-)
-
-
-class getBuddyDetailByMid_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = BuddyDetail()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getBuddyDetailByMid_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getBuddyDetailByMid_result)
-getBuddyDetailByMid_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [BuddyDetail, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getBuddyProfile_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getBuddyProfile_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getBuddyProfile_args)
-getBuddyProfile_args.thrift_spec = (
-)
-
-
-class getBuddyProfile_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = BuddyProfile()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getBuddyProfile_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getBuddyProfile_result)
-getBuddyProfile_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [BuddyProfile, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getContactTicket_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getContactTicket_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getContactTicket_args)
-getContactTicket_args.thrift_spec = (
-)
-
-
-class getContactTicket_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = Ticket()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getContactTicket_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getContactTicket_result)
-getContactTicket_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [Ticket, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getMemberCountByBuddyMid_args(object):
- """
- Attributes:
- - buddyMid
-
- """
-
-
- def __init__(self, buddyMid=None,):
- self.buddyMid = buddyMid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.buddyMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getMemberCountByBuddyMid_args')
- if self.buddyMid is not None:
- oprot.writeFieldBegin('buddyMid', TType.STRING, 2)
- oprot.writeString(self.buddyMid.encode('utf-8') if sys.version_info[0] == 2 else self.buddyMid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getMemberCountByBuddyMid_args)
-getMemberCountByBuddyMid_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'buddyMid', 'UTF8', None, ), # 2
-)
-
-
-class getMemberCountByBuddyMid_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.I64:
- self.success = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getMemberCountByBuddyMid_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.I64, 0)
- oprot.writeI64(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getMemberCountByBuddyMid_result)
-getMemberCountByBuddyMid_result.thrift_spec = (
- (0, TType.I64, 'success', None, None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getSendBuddyMessageResult_args(object):
- """
- Attributes:
- - sendBuddyMessageRequestId
-
- """
-
-
- def __init__(self, sendBuddyMessageRequestId=None,):
- self.sendBuddyMessageRequestId = sendBuddyMessageRequestId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.sendBuddyMessageRequestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getSendBuddyMessageResult_args')
- if self.sendBuddyMessageRequestId is not None:
- oprot.writeFieldBegin('sendBuddyMessageRequestId', TType.STRING, 1)
- oprot.writeString(self.sendBuddyMessageRequestId.encode('utf-8') if sys.version_info[0] == 2 else self.sendBuddyMessageRequestId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getSendBuddyMessageResult_args)
-getSendBuddyMessageResult_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'sendBuddyMessageRequestId', 'UTF8', None, ), # 1
-)
-
-
-class getSendBuddyMessageResult_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = SendBuddyMessageResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getSendBuddyMessageResult_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getSendBuddyMessageResult_result)
-getSendBuddyMessageResult_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [SendBuddyMessageResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getSetBuddyOnAirResult_args(object):
- """
- Attributes:
- - setBuddyOnAirRequestId
-
- """
-
-
- def __init__(self, setBuddyOnAirRequestId=None,):
- self.setBuddyOnAirRequestId = setBuddyOnAirRequestId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.setBuddyOnAirRequestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getSetBuddyOnAirResult_args')
- if self.setBuddyOnAirRequestId is not None:
- oprot.writeFieldBegin('setBuddyOnAirRequestId', TType.STRING, 1)
- oprot.writeString(self.setBuddyOnAirRequestId.encode('utf-8') if sys.version_info[0] == 2 else self.setBuddyOnAirRequestId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getSetBuddyOnAirResult_args)
-getSetBuddyOnAirResult_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'setBuddyOnAirRequestId', 'UTF8', None, ), # 1
-)
-
-
-class getSetBuddyOnAirResult_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = SetBuddyOnAirResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getSetBuddyOnAirResult_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getSetBuddyOnAirResult_result)
-getSetBuddyOnAirResult_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [SetBuddyOnAirResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getUpdateBuddyProfileResult_args(object):
- """
- Attributes:
- - updateBuddyProfileRequestId
-
- """
-
-
- def __init__(self, updateBuddyProfileRequestId=None,):
- self.updateBuddyProfileRequestId = updateBuddyProfileRequestId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.updateBuddyProfileRequestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getUpdateBuddyProfileResult_args')
- if self.updateBuddyProfileRequestId is not None:
- oprot.writeFieldBegin('updateBuddyProfileRequestId', TType.STRING, 1)
- oprot.writeString(self.updateBuddyProfileRequestId.encode('utf-8') if sys.version_info[0] == 2 else self.updateBuddyProfileRequestId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getUpdateBuddyProfileResult_args)
-getUpdateBuddyProfileResult_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'updateBuddyProfileRequestId', 'UTF8', None, ), # 1
-)
-
-
-class getUpdateBuddyProfileResult_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = UpdateBuddyProfileResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getUpdateBuddyProfileResult_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getUpdateBuddyProfileResult_result)
-getUpdateBuddyProfileResult_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [UpdateBuddyProfileResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class isBuddyOnAirByMid_args(object):
- """
- Attributes:
- - buddyMid
-
- """
-
-
- def __init__(self, buddyMid=None,):
- self.buddyMid = buddyMid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.buddyMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('isBuddyOnAirByMid_args')
- if self.buddyMid is not None:
- oprot.writeFieldBegin('buddyMid', TType.STRING, 2)
- oprot.writeString(self.buddyMid.encode('utf-8') if sys.version_info[0] == 2 else self.buddyMid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(isBuddyOnAirByMid_args)
-isBuddyOnAirByMid_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'buddyMid', 'UTF8', None, ), # 2
-)
-
-
-class isBuddyOnAirByMid_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.BOOL:
- self.success = iprot.readBool()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('isBuddyOnAirByMid_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.BOOL, 0)
- oprot.writeBool(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(isBuddyOnAirByMid_result)
-isBuddyOnAirByMid_result.thrift_spec = (
- (0, TType.BOOL, 'success', None, None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class linkAndSendBuddyContentMessageToAllAsync_args(object):
- """
- Attributes:
- - requestId
- - msg
- - sourceContentId
-
- """
-
-
- def __init__(self, requestId=None, msg=None, sourceContentId=None,):
- self.requestId = requestId
- self.msg = msg
- self.sourceContentId = sourceContentId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRUCT:
- self.msg = Message()
- self.msg.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.sourceContentId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('linkAndSendBuddyContentMessageToAllAsync_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.msg is not None:
- oprot.writeFieldBegin('msg', TType.STRUCT, 2)
- self.msg.write(oprot)
- oprot.writeFieldEnd()
- if self.sourceContentId is not None:
- oprot.writeFieldBegin('sourceContentId', TType.STRING, 3)
- oprot.writeString(self.sourceContentId.encode('utf-8') if sys.version_info[0] == 2 else self.sourceContentId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(linkAndSendBuddyContentMessageToAllAsync_args)
-linkAndSendBuddyContentMessageToAllAsync_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRUCT, 'msg', [Message, None], None, ), # 2
- (3, TType.STRING, 'sourceContentId', 'UTF8', None, ), # 3
-)
-
-
-class linkAndSendBuddyContentMessageToAllAsync_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('linkAndSendBuddyContentMessageToAllAsync_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(linkAndSendBuddyContentMessageToAllAsync_result)
-linkAndSendBuddyContentMessageToAllAsync_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class linkAndSendBuddyContentMessageToMids_args(object):
- """
- Attributes:
- - requestId
- - msg
- - sourceContentId
- - mids
-
- """
-
-
- def __init__(self, requestId=None, msg=None, sourceContentId=None, mids=None,):
- self.requestId = requestId
- self.msg = msg
- self.sourceContentId = sourceContentId
- self.mids = mids
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRUCT:
- self.msg = Message()
- self.msg.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.sourceContentId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.LIST:
- self.mids = []
- (_etype407, _size404) = iprot.readListBegin()
- for _i408 in range(_size404):
- _elem409 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.mids.append(_elem409)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('linkAndSendBuddyContentMessageToMids_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.msg is not None:
- oprot.writeFieldBegin('msg', TType.STRUCT, 2)
- self.msg.write(oprot)
- oprot.writeFieldEnd()
- if self.sourceContentId is not None:
- oprot.writeFieldBegin('sourceContentId', TType.STRING, 3)
- oprot.writeString(self.sourceContentId.encode('utf-8') if sys.version_info[0] == 2 else self.sourceContentId)
- oprot.writeFieldEnd()
- if self.mids is not None:
- oprot.writeFieldBegin('mids', TType.LIST, 4)
- oprot.writeListBegin(TType.STRING, len(self.mids))
- for iter410 in self.mids:
- oprot.writeString(iter410.encode('utf-8') if sys.version_info[0] == 2 else iter410)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(linkAndSendBuddyContentMessageToMids_args)
-linkAndSendBuddyContentMessageToMids_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRUCT, 'msg', [Message, None], None, ), # 2
- (3, TType.STRING, 'sourceContentId', 'UTF8', None, ), # 3
- (4, TType.LIST, 'mids', (TType.STRING, 'UTF8', False), None, ), # 4
-)
-
-
-class linkAndSendBuddyContentMessageToMids_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = SendBuddyMessageResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('linkAndSendBuddyContentMessageToMids_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(linkAndSendBuddyContentMessageToMids_result)
-linkAndSendBuddyContentMessageToMids_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [SendBuddyMessageResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class notifyBuddyBlocked_args(object):
- """
- Attributes:
- - buddyMid
- - blockerMid
-
- """
-
-
- def __init__(self, buddyMid=None, blockerMid=None,):
- self.buddyMid = buddyMid
- self.blockerMid = blockerMid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.buddyMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.blockerMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('notifyBuddyBlocked_args')
- if self.buddyMid is not None:
- oprot.writeFieldBegin('buddyMid', TType.STRING, 1)
- oprot.writeString(self.buddyMid.encode('utf-8') if sys.version_info[0] == 2 else self.buddyMid)
- oprot.writeFieldEnd()
- if self.blockerMid is not None:
- oprot.writeFieldBegin('blockerMid', TType.STRING, 2)
- oprot.writeString(self.blockerMid.encode('utf-8') if sys.version_info[0] == 2 else self.blockerMid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(notifyBuddyBlocked_args)
-notifyBuddyBlocked_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'buddyMid', 'UTF8', None, ), # 1
- (2, TType.STRING, 'blockerMid', 'UTF8', None, ), # 2
-)
-
-
-class notifyBuddyBlocked_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('notifyBuddyBlocked_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(notifyBuddyBlocked_result)
-notifyBuddyBlocked_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class notifyBuddyUnblocked_args(object):
- """
- Attributes:
- - buddyMid
- - blockerMid
-
- """
-
-
- def __init__(self, buddyMid=None, blockerMid=None,):
- self.buddyMid = buddyMid
- self.blockerMid = blockerMid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.buddyMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.blockerMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('notifyBuddyUnblocked_args')
- if self.buddyMid is not None:
- oprot.writeFieldBegin('buddyMid', TType.STRING, 1)
- oprot.writeString(self.buddyMid.encode('utf-8') if sys.version_info[0] == 2 else self.buddyMid)
- oprot.writeFieldEnd()
- if self.blockerMid is not None:
- oprot.writeFieldBegin('blockerMid', TType.STRING, 2)
- oprot.writeString(self.blockerMid.encode('utf-8') if sys.version_info[0] == 2 else self.blockerMid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(notifyBuddyUnblocked_args)
-notifyBuddyUnblocked_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'buddyMid', 'UTF8', None, ), # 1
- (2, TType.STRING, 'blockerMid', 'UTF8', None, ), # 2
-)
-
-
-class notifyBuddyUnblocked_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('notifyBuddyUnblocked_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(notifyBuddyUnblocked_result)
-notifyBuddyUnblocked_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class registerBuddy_args(object):
- """
- Attributes:
- - buddyId
- - searchId
- - displayName
- - statusMeessage
- - picture
- - settings
-
- """
-
-
- def __init__(self, buddyId=None, searchId=None, displayName=None, statusMeessage=None, picture=None, settings=None,):
- self.buddyId = buddyId
- self.searchId = searchId
- self.displayName = displayName
- self.statusMeessage = statusMeessage
- self.picture = picture
- self.settings = settings
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.buddyId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.searchId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.displayName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.statusMeessage = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 6:
- if ftype == TType.STRING:
- self.picture = iprot.readBinary()
- else:
- iprot.skip(ftype)
- elif fid == 7:
- if ftype == TType.MAP:
- self.settings = {}
- (_ktype412, _vtype413, _size411) = iprot.readMapBegin()
- for _i415 in range(_size411):
- _key416 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val417 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.settings[_key416] = _val417
- iprot.readMapEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('registerBuddy_args')
- if self.buddyId is not None:
- oprot.writeFieldBegin('buddyId', TType.STRING, 2)
- oprot.writeString(self.buddyId.encode('utf-8') if sys.version_info[0] == 2 else self.buddyId)
- oprot.writeFieldEnd()
- if self.searchId is not None:
- oprot.writeFieldBegin('searchId', TType.STRING, 3)
- oprot.writeString(self.searchId.encode('utf-8') if sys.version_info[0] == 2 else self.searchId)
- oprot.writeFieldEnd()
- if self.displayName is not None:
- oprot.writeFieldBegin('displayName', TType.STRING, 4)
- oprot.writeString(self.displayName.encode('utf-8') if sys.version_info[0] == 2 else self.displayName)
- oprot.writeFieldEnd()
- if self.statusMeessage is not None:
- oprot.writeFieldBegin('statusMeessage', TType.STRING, 5)
- oprot.writeString(self.statusMeessage.encode('utf-8') if sys.version_info[0] == 2 else self.statusMeessage)
- oprot.writeFieldEnd()
- if self.picture is not None:
- oprot.writeFieldBegin('picture', TType.STRING, 6)
- oprot.writeBinary(self.picture)
- oprot.writeFieldEnd()
- if self.settings is not None:
- oprot.writeFieldBegin('settings', TType.MAP, 7)
- oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.settings))
- for kiter418, viter419 in self.settings.items():
- oprot.writeString(kiter418.encode('utf-8') if sys.version_info[0] == 2 else kiter418)
- oprot.writeString(viter419.encode('utf-8') if sys.version_info[0] == 2 else viter419)
- oprot.writeMapEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(registerBuddy_args)
-registerBuddy_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'buddyId', 'UTF8', None, ), # 2
- (3, TType.STRING, 'searchId', 'UTF8', None, ), # 3
- (4, TType.STRING, 'displayName', 'UTF8', None, ), # 4
- (5, TType.STRING, 'statusMeessage', 'UTF8', None, ), # 5
- (6, TType.STRING, 'picture', 'BINARY', None, ), # 6
- (7, TType.MAP, 'settings', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 7
-)
-
-
-class registerBuddy_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('registerBuddy_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(registerBuddy_result)
-registerBuddy_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class registerBuddyAdmin_args(object):
- """
- Attributes:
- - buddyId
- - searchId
- - displayName
- - statusMessage
- - picture
-
- """
-
-
- def __init__(self, buddyId=None, searchId=None, displayName=None, statusMessage=None, picture=None,):
- self.buddyId = buddyId
- self.searchId = searchId
- self.displayName = displayName
- self.statusMessage = statusMessage
- self.picture = picture
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.buddyId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.searchId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.displayName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.statusMessage = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 6:
- if ftype == TType.STRING:
- self.picture = iprot.readBinary()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('registerBuddyAdmin_args')
- if self.buddyId is not None:
- oprot.writeFieldBegin('buddyId', TType.STRING, 2)
- oprot.writeString(self.buddyId.encode('utf-8') if sys.version_info[0] == 2 else self.buddyId)
- oprot.writeFieldEnd()
- if self.searchId is not None:
- oprot.writeFieldBegin('searchId', TType.STRING, 3)
- oprot.writeString(self.searchId.encode('utf-8') if sys.version_info[0] == 2 else self.searchId)
- oprot.writeFieldEnd()
- if self.displayName is not None:
- oprot.writeFieldBegin('displayName', TType.STRING, 4)
- oprot.writeString(self.displayName.encode('utf-8') if sys.version_info[0] == 2 else self.displayName)
- oprot.writeFieldEnd()
- if self.statusMessage is not None:
- oprot.writeFieldBegin('statusMessage', TType.STRING, 5)
- oprot.writeString(self.statusMessage.encode('utf-8') if sys.version_info[0] == 2 else self.statusMessage)
- oprot.writeFieldEnd()
- if self.picture is not None:
- oprot.writeFieldBegin('picture', TType.STRING, 6)
- oprot.writeBinary(self.picture)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(registerBuddyAdmin_args)
-registerBuddyAdmin_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'buddyId', 'UTF8', None, ), # 2
- (3, TType.STRING, 'searchId', 'UTF8', None, ), # 3
- (4, TType.STRING, 'displayName', 'UTF8', None, ), # 4
- (5, TType.STRING, 'statusMessage', 'UTF8', None, ), # 5
- (6, TType.STRING, 'picture', 'BINARY', None, ), # 6
-)
-
-
-class registerBuddyAdmin_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('registerBuddyAdmin_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(registerBuddyAdmin_result)
-registerBuddyAdmin_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class reissueContactTicket_args(object):
- """
- Attributes:
- - expirationTime
- - maxUseCount
-
- """
-
-
- def __init__(self, expirationTime=None, maxUseCount=None,):
- self.expirationTime = expirationTime
- self.maxUseCount = maxUseCount
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 3:
- if ftype == TType.I64:
- self.expirationTime = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.I32:
- self.maxUseCount = iprot.readI32()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('reissueContactTicket_args')
- if self.expirationTime is not None:
- oprot.writeFieldBegin('expirationTime', TType.I64, 3)
- oprot.writeI64(self.expirationTime)
- oprot.writeFieldEnd()
- if self.maxUseCount is not None:
- oprot.writeFieldBegin('maxUseCount', TType.I32, 4)
- oprot.writeI32(self.maxUseCount)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(reissueContactTicket_args)
-reissueContactTicket_args.thrift_spec = (
- None, # 0
- None, # 1
- None, # 2
- (3, TType.I64, 'expirationTime', None, None, ), # 3
- (4, TType.I32, 'maxUseCount', None, None, ), # 4
-)
-
-
-class reissueContactTicket_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('reissueContactTicket_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(reissueContactTicket_result)
-reissueContactTicket_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class removeBuddyMember_args(object):
- """
- Attributes:
- - requestId
- - userMid
-
- """
-
-
- def __init__(self, requestId=None, userMid=None,):
- self.requestId = requestId
- self.userMid = userMid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.userMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('removeBuddyMember_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.userMid is not None:
- oprot.writeFieldBegin('userMid', TType.STRING, 2)
- oprot.writeString(self.userMid.encode('utf-8') if sys.version_info[0] == 2 else self.userMid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(removeBuddyMember_args)
-removeBuddyMember_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'userMid', 'UTF8', None, ), # 2
-)
-
-
-class removeBuddyMember_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('removeBuddyMember_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(removeBuddyMember_result)
-removeBuddyMember_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class removeBuddyMembers_args(object):
- """
- Attributes:
- - requestId
- - userMids
-
- """
-
-
- def __init__(self, requestId=None, userMids=None,):
- self.requestId = requestId
- self.userMids = userMids
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.LIST:
- self.userMids = []
- (_etype423, _size420) = iprot.readListBegin()
- for _i424 in range(_size420):
- _elem425 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.userMids.append(_elem425)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('removeBuddyMembers_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.userMids is not None:
- oprot.writeFieldBegin('userMids', TType.LIST, 2)
- oprot.writeListBegin(TType.STRING, len(self.userMids))
- for iter426 in self.userMids:
- oprot.writeString(iter426.encode('utf-8') if sys.version_info[0] == 2 else iter426)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(removeBuddyMembers_args)
-removeBuddyMembers_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.LIST, 'userMids', (TType.STRING, 'UTF8', False), None, ), # 2
-)
-
-
-class removeBuddyMembers_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('removeBuddyMembers_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(removeBuddyMembers_result)
-removeBuddyMembers_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class sendBuddyContentMessageToAll_args(object):
- """
- Attributes:
- - requestId
- - msg
- - content
-
- """
-
-
- def __init__(self, requestId=None, msg=None, content=None,):
- self.requestId = requestId
- self.msg = msg
- self.content = content
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRUCT:
- self.msg = Message()
- self.msg.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.content = iprot.readBinary()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyContentMessageToAll_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.msg is not None:
- oprot.writeFieldBegin('msg', TType.STRUCT, 2)
- self.msg.write(oprot)
- oprot.writeFieldEnd()
- if self.content is not None:
- oprot.writeFieldBegin('content', TType.STRING, 3)
- oprot.writeBinary(self.content)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyContentMessageToAll_args)
-sendBuddyContentMessageToAll_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRUCT, 'msg', [Message, None], None, ), # 2
- (3, TType.STRING, 'content', 'BINARY', None, ), # 3
-)
-
-
-class sendBuddyContentMessageToAll_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = SendBuddyMessageResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyContentMessageToAll_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyContentMessageToAll_result)
-sendBuddyContentMessageToAll_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [SendBuddyMessageResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class sendBuddyContentMessageToAllAsync_args(object):
- """
- Attributes:
- - requestId
- - msg
- - content
-
- """
-
-
- def __init__(self, requestId=None, msg=None, content=None,):
- self.requestId = requestId
- self.msg = msg
- self.content = content
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRUCT:
- self.msg = Message()
- self.msg.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.content = iprot.readBinary()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyContentMessageToAllAsync_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.msg is not None:
- oprot.writeFieldBegin('msg', TType.STRUCT, 2)
- self.msg.write(oprot)
- oprot.writeFieldEnd()
- if self.content is not None:
- oprot.writeFieldBegin('content', TType.STRING, 3)
- oprot.writeBinary(self.content)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyContentMessageToAllAsync_args)
-sendBuddyContentMessageToAllAsync_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRUCT, 'msg', [Message, None], None, ), # 2
- (3, TType.STRING, 'content', 'BINARY', None, ), # 3
-)
-
-
-class sendBuddyContentMessageToAllAsync_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyContentMessageToAllAsync_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyContentMessageToAllAsync_result)
-sendBuddyContentMessageToAllAsync_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class sendBuddyContentMessageToMids_args(object):
- """
- Attributes:
- - requestId
- - msg
- - content
- - mids
-
- """
-
-
- def __init__(self, requestId=None, msg=None, content=None, mids=None,):
- self.requestId = requestId
- self.msg = msg
- self.content = content
- self.mids = mids
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRUCT:
- self.msg = Message()
- self.msg.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.content = iprot.readBinary()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.LIST:
- self.mids = []
- (_etype430, _size427) = iprot.readListBegin()
- for _i431 in range(_size427):
- _elem432 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.mids.append(_elem432)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyContentMessageToMids_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.msg is not None:
- oprot.writeFieldBegin('msg', TType.STRUCT, 2)
- self.msg.write(oprot)
- oprot.writeFieldEnd()
- if self.content is not None:
- oprot.writeFieldBegin('content', TType.STRING, 3)
- oprot.writeBinary(self.content)
- oprot.writeFieldEnd()
- if self.mids is not None:
- oprot.writeFieldBegin('mids', TType.LIST, 4)
- oprot.writeListBegin(TType.STRING, len(self.mids))
- for iter433 in self.mids:
- oprot.writeString(iter433.encode('utf-8') if sys.version_info[0] == 2 else iter433)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyContentMessageToMids_args)
-sendBuddyContentMessageToMids_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRUCT, 'msg', [Message, None], None, ), # 2
- (3, TType.STRING, 'content', 'BINARY', None, ), # 3
- (4, TType.LIST, 'mids', (TType.STRING, 'UTF8', False), None, ), # 4
-)
-
-
-class sendBuddyContentMessageToMids_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = SendBuddyMessageResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyContentMessageToMids_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyContentMessageToMids_result)
-sendBuddyContentMessageToMids_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [SendBuddyMessageResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class sendBuddyContentMessageToMidsAsync_args(object):
- """
- Attributes:
- - requestId
- - msg
- - content
- - mids
-
- """
-
-
- def __init__(self, requestId=None, msg=None, content=None, mids=None,):
- self.requestId = requestId
- self.msg = msg
- self.content = content
- self.mids = mids
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRUCT:
- self.msg = Message()
- self.msg.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.content = iprot.readBinary()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.LIST:
- self.mids = []
- (_etype437, _size434) = iprot.readListBegin()
- for _i438 in range(_size434):
- _elem439 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.mids.append(_elem439)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyContentMessageToMidsAsync_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.msg is not None:
- oprot.writeFieldBegin('msg', TType.STRUCT, 2)
- self.msg.write(oprot)
- oprot.writeFieldEnd()
- if self.content is not None:
- oprot.writeFieldBegin('content', TType.STRING, 3)
- oprot.writeBinary(self.content)
- oprot.writeFieldEnd()
- if self.mids is not None:
- oprot.writeFieldBegin('mids', TType.LIST, 4)
- oprot.writeListBegin(TType.STRING, len(self.mids))
- for iter440 in self.mids:
- oprot.writeString(iter440.encode('utf-8') if sys.version_info[0] == 2 else iter440)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyContentMessageToMidsAsync_args)
-sendBuddyContentMessageToMidsAsync_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRUCT, 'msg', [Message, None], None, ), # 2
- (3, TType.STRING, 'content', 'BINARY', None, ), # 3
- (4, TType.LIST, 'mids', (TType.STRING, 'UTF8', False), None, ), # 4
-)
-
-
-class sendBuddyContentMessageToMidsAsync_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyContentMessageToMidsAsync_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyContentMessageToMidsAsync_result)
-sendBuddyContentMessageToMidsAsync_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class sendBuddyMessageToAll_args(object):
- """
- Attributes:
- - requestId
- - msg
-
- """
-
-
- def __init__(self, requestId=None, msg=None,):
- self.requestId = requestId
- self.msg = msg
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRUCT:
- self.msg = Message()
- self.msg.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyMessageToAll_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.msg is not None:
- oprot.writeFieldBegin('msg', TType.STRUCT, 2)
- self.msg.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyMessageToAll_args)
-sendBuddyMessageToAll_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRUCT, 'msg', [Message, None], None, ), # 2
-)
-
-
-class sendBuddyMessageToAll_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = SendBuddyMessageResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyMessageToAll_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyMessageToAll_result)
-sendBuddyMessageToAll_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [SendBuddyMessageResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class sendBuddyMessageToAllAsync_args(object):
- """
- Attributes:
- - requestId
- - msg
-
- """
-
-
- def __init__(self, requestId=None, msg=None,):
- self.requestId = requestId
- self.msg = msg
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRUCT:
- self.msg = Message()
- self.msg.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyMessageToAllAsync_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.msg is not None:
- oprot.writeFieldBegin('msg', TType.STRUCT, 2)
- self.msg.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyMessageToAllAsync_args)
-sendBuddyMessageToAllAsync_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRUCT, 'msg', [Message, None], None, ), # 2
-)
-
-
-class sendBuddyMessageToAllAsync_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyMessageToAllAsync_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyMessageToAllAsync_result)
-sendBuddyMessageToAllAsync_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class sendBuddyMessageToMids_args(object):
- """
- Attributes:
- - requestId
- - msg
- - mids
-
- """
-
-
- def __init__(self, requestId=None, msg=None, mids=None,):
- self.requestId = requestId
- self.msg = msg
- self.mids = mids
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRUCT:
- self.msg = Message()
- self.msg.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.LIST:
- self.mids = []
- (_etype444, _size441) = iprot.readListBegin()
- for _i445 in range(_size441):
- _elem446 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.mids.append(_elem446)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyMessageToMids_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.msg is not None:
- oprot.writeFieldBegin('msg', TType.STRUCT, 2)
- self.msg.write(oprot)
- oprot.writeFieldEnd()
- if self.mids is not None:
- oprot.writeFieldBegin('mids', TType.LIST, 3)
- oprot.writeListBegin(TType.STRING, len(self.mids))
- for iter447 in self.mids:
- oprot.writeString(iter447.encode('utf-8') if sys.version_info[0] == 2 else iter447)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyMessageToMids_args)
-sendBuddyMessageToMids_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRUCT, 'msg', [Message, None], None, ), # 2
- (3, TType.LIST, 'mids', (TType.STRING, 'UTF8', False), None, ), # 3
-)
-
-
-class sendBuddyMessageToMids_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = SendBuddyMessageResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyMessageToMids_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyMessageToMids_result)
-sendBuddyMessageToMids_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [SendBuddyMessageResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class sendBuddyMessageToMidsAsync_args(object):
- """
- Attributes:
- - requestId
- - msg
- - mids
-
- """
-
-
- def __init__(self, requestId=None, msg=None, mids=None,):
- self.requestId = requestId
- self.msg = msg
- self.mids = mids
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRUCT:
- self.msg = Message()
- self.msg.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.LIST:
- self.mids = []
- (_etype451, _size448) = iprot.readListBegin()
- for _i452 in range(_size448):
- _elem453 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.mids.append(_elem453)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyMessageToMidsAsync_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.msg is not None:
- oprot.writeFieldBegin('msg', TType.STRUCT, 2)
- self.msg.write(oprot)
- oprot.writeFieldEnd()
- if self.mids is not None:
- oprot.writeFieldBegin('mids', TType.LIST, 3)
- oprot.writeListBegin(TType.STRING, len(self.mids))
- for iter454 in self.mids:
- oprot.writeString(iter454.encode('utf-8') if sys.version_info[0] == 2 else iter454)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyMessageToMidsAsync_args)
-sendBuddyMessageToMidsAsync_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRUCT, 'msg', [Message, None], None, ), # 2
- (3, TType.LIST, 'mids', (TType.STRING, 'UTF8', False), None, ), # 3
-)
-
-
-class sendBuddyMessageToMidsAsync_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendBuddyMessageToMidsAsync_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendBuddyMessageToMidsAsync_result)
-sendBuddyMessageToMidsAsync_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class sendIndividualEventToAllAsync_args(object):
- """
- Attributes:
- - requestId
- - buddyMid
- - notificationStatus
-
- """
-
-
- def __init__(self, requestId=None, buddyMid=None, notificationStatus=None,):
- self.requestId = requestId
- self.buddyMid = buddyMid
- self.notificationStatus = notificationStatus
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.buddyMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I32:
- self.notificationStatus = iprot.readI32()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendIndividualEventToAllAsync_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.buddyMid is not None:
- oprot.writeFieldBegin('buddyMid', TType.STRING, 2)
- oprot.writeString(self.buddyMid.encode('utf-8') if sys.version_info[0] == 2 else self.buddyMid)
- oprot.writeFieldEnd()
- if self.notificationStatus is not None:
- oprot.writeFieldBegin('notificationStatus', TType.I32, 3)
- oprot.writeI32(self.notificationStatus)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendIndividualEventToAllAsync_args)
-sendIndividualEventToAllAsync_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'buddyMid', 'UTF8', None, ), # 2
- (3, TType.I32, 'notificationStatus', None, None, ), # 3
-)
-
-
-class sendIndividualEventToAllAsync_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendIndividualEventToAllAsync_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendIndividualEventToAllAsync_result)
-sendIndividualEventToAllAsync_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class setBuddyOnAir_args(object):
- """
- Attributes:
- - requestId
- - onAir
-
- """
-
-
- def __init__(self, requestId=None, onAir=None,):
- self.requestId = requestId
- self.onAir = onAir
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.BOOL:
- self.onAir = iprot.readBool()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('setBuddyOnAir_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.onAir is not None:
- oprot.writeFieldBegin('onAir', TType.BOOL, 2)
- oprot.writeBool(self.onAir)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(setBuddyOnAir_args)
-setBuddyOnAir_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.BOOL, 'onAir', None, None, ), # 2
-)
-
-
-class setBuddyOnAir_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = SetBuddyOnAirResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('setBuddyOnAir_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(setBuddyOnAir_result)
-setBuddyOnAir_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [SetBuddyOnAirResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class setBuddyOnAirAsync_args(object):
- """
- Attributes:
- - requestId
- - onAir
-
- """
-
-
- def __init__(self, requestId=None, onAir=None,):
- self.requestId = requestId
- self.onAir = onAir
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.BOOL:
- self.onAir = iprot.readBool()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('setBuddyOnAirAsync_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.onAir is not None:
- oprot.writeFieldBegin('onAir', TType.BOOL, 2)
- oprot.writeBool(self.onAir)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(setBuddyOnAirAsync_args)
-setBuddyOnAirAsync_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.BOOL, 'onAir', None, None, ), # 2
-)
-
-
-class setBuddyOnAirAsync_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('setBuddyOnAirAsync_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(setBuddyOnAirAsync_result)
-setBuddyOnAirAsync_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class storeMessage_args(object):
- """
- Attributes:
- - requestId
- - messageRequest
-
- """
-
-
- def __init__(self, requestId=None, messageRequest=None,):
- self.requestId = requestId
- self.messageRequest = messageRequest
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRUCT:
- self.messageRequest = BuddyMessageRequest()
- self.messageRequest.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('storeMessage_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.messageRequest is not None:
- oprot.writeFieldBegin('messageRequest', TType.STRUCT, 2)
- self.messageRequest.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(storeMessage_args)
-storeMessage_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRUCT, 'messageRequest', [BuddyMessageRequest, None], None, ), # 2
-)
-
-
-class storeMessage_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = SendBuddyMessageResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('storeMessage_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(storeMessage_result)
-storeMessage_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [SendBuddyMessageResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class unblockBuddyMember_args(object):
- """
- Attributes:
- - requestId
- - mid
-
- """
-
-
- def __init__(self, requestId=None, mid=None,):
- self.requestId = requestId
- self.mid = mid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.mid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('unblockBuddyMember_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.mid is not None:
- oprot.writeFieldBegin('mid', TType.STRING, 2)
- oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(unblockBuddyMember_args)
-unblockBuddyMember_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'mid', 'UTF8', None, ), # 2
-)
-
-
-class unblockBuddyMember_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('unblockBuddyMember_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(unblockBuddyMember_result)
-unblockBuddyMember_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class unregisterBuddy_args(object):
- """
- Attributes:
- - requestId
-
- """
-
-
- def __init__(self, requestId=None,):
- self.requestId = requestId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('unregisterBuddy_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(unregisterBuddy_args)
-unregisterBuddy_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
-)
-
-
-class unregisterBuddy_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('unregisterBuddy_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(unregisterBuddy_result)
-unregisterBuddy_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class unregisterBuddyAdmin_args(object):
- """
- Attributes:
- - requestId
-
- """
-
-
- def __init__(self, requestId=None,):
- self.requestId = requestId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('unregisterBuddyAdmin_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(unregisterBuddyAdmin_args)
-unregisterBuddyAdmin_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
-)
-
-
-class unregisterBuddyAdmin_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('unregisterBuddyAdmin_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(unregisterBuddyAdmin_result)
-unregisterBuddyAdmin_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class updateBuddyAdminProfileAttribute_args(object):
- """
- Attributes:
- - requestId
- - attributes
-
- """
-
-
- def __init__(self, requestId=None, attributes=None,):
- self.requestId = requestId
- self.attributes = attributes
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.MAP:
- self.attributes = {}
- (_ktype456, _vtype457, _size455) = iprot.readMapBegin()
- for _i459 in range(_size455):
- _key460 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val461 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.attributes[_key460] = _val461
- iprot.readMapEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddyAdminProfileAttribute_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.attributes is not None:
- oprot.writeFieldBegin('attributes', TType.MAP, 2)
- oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
- for kiter462, viter463 in self.attributes.items():
- oprot.writeString(kiter462.encode('utf-8') if sys.version_info[0] == 2 else kiter462)
- oprot.writeString(viter463.encode('utf-8') if sys.version_info[0] == 2 else viter463)
- oprot.writeMapEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddyAdminProfileAttribute_args)
-updateBuddyAdminProfileAttribute_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.MAP, 'attributes', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2
-)
-
-
-class updateBuddyAdminProfileAttribute_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddyAdminProfileAttribute_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddyAdminProfileAttribute_result)
-updateBuddyAdminProfileAttribute_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class updateBuddyAdminProfileImage_args(object):
- """
- Attributes:
- - requestId
- - picture
-
- """
-
-
- def __init__(self, requestId=None, picture=None,):
- self.requestId = requestId
- self.picture = picture
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.picture = iprot.readBinary()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddyAdminProfileImage_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.picture is not None:
- oprot.writeFieldBegin('picture', TType.STRING, 2)
- oprot.writeBinary(self.picture)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddyAdminProfileImage_args)
-updateBuddyAdminProfileImage_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'picture', 'BINARY', None, ), # 2
-)
-
-
-class updateBuddyAdminProfileImage_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddyAdminProfileImage_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddyAdminProfileImage_result)
-updateBuddyAdminProfileImage_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class updateBuddyProfileAttributes_args(object):
- """
- Attributes:
- - requestId
- - attributes
-
- """
-
-
- def __init__(self, requestId=None, attributes=None,):
- self.requestId = requestId
- self.attributes = attributes
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.MAP:
- self.attributes = {}
- (_ktype465, _vtype466, _size464) = iprot.readMapBegin()
- for _i468 in range(_size464):
- _key469 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val470 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.attributes[_key469] = _val470
- iprot.readMapEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddyProfileAttributes_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.attributes is not None:
- oprot.writeFieldBegin('attributes', TType.MAP, 2)
- oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
- for kiter471, viter472 in self.attributes.items():
- oprot.writeString(kiter471.encode('utf-8') if sys.version_info[0] == 2 else kiter471)
- oprot.writeString(viter472.encode('utf-8') if sys.version_info[0] == 2 else viter472)
- oprot.writeMapEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddyProfileAttributes_args)
-updateBuddyProfileAttributes_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.MAP, 'attributes', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2
-)
-
-
-class updateBuddyProfileAttributes_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = UpdateBuddyProfileResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddyProfileAttributes_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddyProfileAttributes_result)
-updateBuddyProfileAttributes_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [UpdateBuddyProfileResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class updateBuddyProfileAttributesAsync_args(object):
- """
- Attributes:
- - requestId
- - attributes
-
- """
-
-
- def __init__(self, requestId=None, attributes=None,):
- self.requestId = requestId
- self.attributes = attributes
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.MAP:
- self.attributes = {}
- (_ktype474, _vtype475, _size473) = iprot.readMapBegin()
- for _i477 in range(_size473):
- _key478 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val479 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.attributes[_key478] = _val479
- iprot.readMapEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddyProfileAttributesAsync_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.attributes is not None:
- oprot.writeFieldBegin('attributes', TType.MAP, 2)
- oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes))
- for kiter480, viter481 in self.attributes.items():
- oprot.writeString(kiter480.encode('utf-8') if sys.version_info[0] == 2 else kiter480)
- oprot.writeString(viter481.encode('utf-8') if sys.version_info[0] == 2 else viter481)
- oprot.writeMapEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddyProfileAttributesAsync_args)
-updateBuddyProfileAttributesAsync_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.MAP, 'attributes', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2
-)
-
-
-class updateBuddyProfileAttributesAsync_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddyProfileAttributesAsync_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddyProfileAttributesAsync_result)
-updateBuddyProfileAttributesAsync_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class updateBuddyProfileImage_args(object):
- """
- Attributes:
- - requestId
- - image
-
- """
-
-
- def __init__(self, requestId=None, image=None,):
- self.requestId = requestId
- self.image = image
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.image = iprot.readBinary()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddyProfileImage_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.image is not None:
- oprot.writeFieldBegin('image', TType.STRING, 2)
- oprot.writeBinary(self.image)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddyProfileImage_args)
-updateBuddyProfileImage_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'image', 'BINARY', None, ), # 2
-)
-
-
-class updateBuddyProfileImage_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = UpdateBuddyProfileResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddyProfileImage_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddyProfileImage_result)
-updateBuddyProfileImage_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [UpdateBuddyProfileResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class updateBuddyProfileImageAsync_args(object):
- """
- Attributes:
- - requestId
- - image
-
- """
-
-
- def __init__(self, requestId=None, image=None,):
- self.requestId = requestId
- self.image = image
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.image = iprot.readBinary()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddyProfileImageAsync_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.image is not None:
- oprot.writeFieldBegin('image', TType.STRING, 2)
- oprot.writeBinary(self.image)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddyProfileImageAsync_args)
-updateBuddyProfileImageAsync_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'image', 'BINARY', None, ), # 2
-)
-
-
-class updateBuddyProfileImageAsync_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddyProfileImageAsync_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddyProfileImageAsync_result)
-updateBuddyProfileImageAsync_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class updateBuddySearchId_args(object):
- """
- Attributes:
- - requestId
- - searchId
-
- """
-
-
- def __init__(self, requestId=None, searchId=None,):
- self.requestId = requestId
- self.searchId = searchId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.requestId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.searchId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddySearchId_args')
- if self.requestId is not None:
- oprot.writeFieldBegin('requestId', TType.STRING, 1)
- oprot.writeString(self.requestId.encode('utf-8') if sys.version_info[0] == 2 else self.requestId)
- oprot.writeFieldEnd()
- if self.searchId is not None:
- oprot.writeFieldBegin('searchId', TType.STRING, 2)
- oprot.writeString(self.searchId.encode('utf-8') if sys.version_info[0] == 2 else self.searchId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddySearchId_args)
-updateBuddySearchId_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'searchId', 'UTF8', None, ), # 2
-)
-
-
-class updateBuddySearchId_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddySearchId_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddySearchId_result)
-updateBuddySearchId_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class updateBuddySettings_args(object):
- """
- Attributes:
- - settings
-
- """
-
-
- def __init__(self, settings=None,):
- self.settings = settings
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.MAP:
- self.settings = {}
- (_ktype483, _vtype484, _size482) = iprot.readMapBegin()
- for _i486 in range(_size482):
- _key487 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val488 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.settings[_key487] = _val488
- iprot.readMapEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddySettings_args')
- if self.settings is not None:
- oprot.writeFieldBegin('settings', TType.MAP, 2)
- oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.settings))
- for kiter489, viter490 in self.settings.items():
- oprot.writeString(kiter489.encode('utf-8') if sys.version_info[0] == 2 else kiter489)
- oprot.writeString(viter490.encode('utf-8') if sys.version_info[0] == 2 else viter490)
- oprot.writeMapEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddySettings_args)
-updateBuddySettings_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.MAP, 'settings', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2
-)
-
-
-class updateBuddySettings_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateBuddySettings_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateBuddySettings_result)
-updateBuddySettings_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class uploadBuddyContent_args(object):
- """
- Attributes:
- - contentType
- - content
-
- """
-
-
- def __init__(self, contentType=None, content=None,):
- self.contentType = contentType
- self.content = content
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I32:
- self.contentType = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.content = iprot.readBinary()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('uploadBuddyContent_args')
- if self.contentType is not None:
- oprot.writeFieldBegin('contentType', TType.I32, 2)
- oprot.writeI32(self.contentType)
- oprot.writeFieldEnd()
- if self.content is not None:
- oprot.writeFieldBegin('content', TType.STRING, 3)
- oprot.writeBinary(self.content)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(uploadBuddyContent_args)
-uploadBuddyContent_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I32, 'contentType', None, None, ), # 2
- (3, TType.STRING, 'content', 'BINARY', None, ), # 3
-)
-
-
-class uploadBuddyContent_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('uploadBuddyContent_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(uploadBuddyContent_result)
-uploadBuddyContent_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-fix_spec(all_structs)
-del all_structs
-
diff --git a/libs/core/BuddyService-remote b/libs/core/BuddyService-remote
deleted file mode 100755
index fdd3838..0000000
--- a/libs/core/BuddyService-remote
+++ /dev/null
@@ -1,173 +0,0 @@
-#!/usr/bin/env python
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-import sys
-import pprint
-if sys.version_info[0] > 2:
- from urllib.parse import urlparse
-else:
- from urlparse import urlparse
-from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient
-from thrift.protocol.TBinaryProtocol import TBinaryProtocol
-
-from line import BuddyService
-from line.ttypes import *
-
-if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print('')
- print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]')
- print('')
- print('Functions:')
- print(' findBuddyContactsByQuery(string language, string country, string query, i32 fromIndex, i32 count, BuddySearchRequestSource requestSource)')
- print(' getBuddyContacts(string language, string country, string classification, i32 fromIndex, i32 count)')
- print(' BuddyDetail getBuddyDetail(string buddyMid)')
- print(' BuddyOnAir getBuddyOnAir(string buddyMid)')
- print(' getCountriesHavingBuddy()')
- print(' getNewlyReleasedBuddyIds(string country)')
- print(' BuddyBanner getPopularBuddyBanner(string language, string country, ApplicationType applicationType, string resourceSpecification)')
- print(' getPopularBuddyLists(string language, string country)')
- print(' getPromotedBuddyContacts(string language, string country)')
- print('')
- sys.exit(0)
-
-pp = pprint.PrettyPrinter(indent=2)
-host = 'localhost'
-port = 9090
-uri = ''
-framed = False
-ssl = False
-validate = True
-ca_certs = None
-keyfile = None
-certfile = None
-http = False
-argi = 1
-
-if sys.argv[argi] == '-h':
- parts = sys.argv[argi + 1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- argi += 2
-
-if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi + 1])
- parts = url[1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- else:
- port = 80
- uri = url[2]
- if url[4]:
- uri += '?%s' % url[4]
- http = True
- argi += 2
-
-if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
- framed = True
- argi += 1
-
-if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
- ssl = True
- argi += 1
-
-if sys.argv[argi] == '-novalidate':
- validate = False
- argi += 1
-
-if sys.argv[argi] == '-ca_certs':
- ca_certs = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-keyfile':
- keyfile = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-certfile':
- certfile = sys.argv[argi+1]
- argi += 2
-
-cmd = sys.argv[argi]
-args = sys.argv[argi + 1:]
-
-if http:
- transport = THttpClient.THttpClient(host, port, uri)
-else:
- if ssl:
- socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile)
- else:
- socket = TSocket.TSocket(host, port)
- if framed:
- transport = TTransport.TFramedTransport(socket)
- else:
- transport = TTransport.TBufferedTransport(socket)
-protocol = TBinaryProtocol(transport)
-client = BuddyService.Client(protocol)
-transport.open()
-
-if cmd == 'findBuddyContactsByQuery':
- if len(args) != 6:
- print('findBuddyContactsByQuery requires 6 args')
- sys.exit(1)
- pp.pprint(client.findBuddyContactsByQuery(args[0], args[1], args[2], eval(args[3]), eval(args[4]), eval(args[5]),))
-
-elif cmd == 'getBuddyContacts':
- if len(args) != 5:
- print('getBuddyContacts requires 5 args')
- sys.exit(1)
- pp.pprint(client.getBuddyContacts(args[0], args[1], args[2], eval(args[3]), eval(args[4]),))
-
-elif cmd == 'getBuddyDetail':
- if len(args) != 1:
- print('getBuddyDetail requires 1 args')
- sys.exit(1)
- pp.pprint(client.getBuddyDetail(args[0],))
-
-elif cmd == 'getBuddyOnAir':
- if len(args) != 1:
- print('getBuddyOnAir requires 1 args')
- sys.exit(1)
- pp.pprint(client.getBuddyOnAir(args[0],))
-
-elif cmd == 'getCountriesHavingBuddy':
- if len(args) != 0:
- print('getCountriesHavingBuddy requires 0 args')
- sys.exit(1)
- pp.pprint(client.getCountriesHavingBuddy())
-
-elif cmd == 'getNewlyReleasedBuddyIds':
- if len(args) != 1:
- print('getNewlyReleasedBuddyIds requires 1 args')
- sys.exit(1)
- pp.pprint(client.getNewlyReleasedBuddyIds(args[0],))
-
-elif cmd == 'getPopularBuddyBanner':
- if len(args) != 4:
- print('getPopularBuddyBanner requires 4 args')
- sys.exit(1)
- pp.pprint(client.getPopularBuddyBanner(args[0], args[1], eval(args[2]), args[3],))
-
-elif cmd == 'getPopularBuddyLists':
- if len(args) != 2:
- print('getPopularBuddyLists requires 2 args')
- sys.exit(1)
- pp.pprint(client.getPopularBuddyLists(args[0], args[1],))
-
-elif cmd == 'getPromotedBuddyContacts':
- if len(args) != 2:
- print('getPromotedBuddyContacts requires 2 args')
- sys.exit(1)
- pp.pprint(client.getPromotedBuddyContacts(args[0], args[1],))
-
-else:
- print('Unrecognized method %s' % cmd)
- sys.exit(1)
-
-transport.close()
diff --git a/libs/core/BuddyService.py b/libs/core/BuddyService.py
deleted file mode 100644
index 1234fd4..0000000
--- a/libs/core/BuddyService.py
+++ /dev/null
@@ -1,2155 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-from thrift.TRecursive import fix_spec
-
-import sys
-import logging
-from .ttypes import *
-from thrift.Thrift import TProcessor
-from thrift.transport import TTransport
-all_structs = []
-
-
-class Iface(object):
- def findBuddyContactsByQuery(self, language, country, query, fromIndex, count, requestSource):
- """
- Parameters:
- - language
- - country
- - query
- - fromIndex
- - count
- - requestSource
-
- """
- pass
-
- def getBuddyContacts(self, language, country, classification, fromIndex, count):
- """
- Parameters:
- - language
- - country
- - classification
- - fromIndex
- - count
-
- """
- pass
-
- def getBuddyDetail(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- pass
-
- def getBuddyOnAir(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- pass
-
- def getCountriesHavingBuddy(self):
- pass
-
- def getNewlyReleasedBuddyIds(self, country):
- """
- Parameters:
- - country
-
- """
- pass
-
- def getPopularBuddyBanner(self, language, country, applicationType, resourceSpecification):
- """
- Parameters:
- - language
- - country
- - applicationType
- - resourceSpecification
-
- """
- pass
-
- def getPopularBuddyLists(self, language, country):
- """
- Parameters:
- - language
- - country
-
- """
- pass
-
- def getPromotedBuddyContacts(self, language, country):
- """
- Parameters:
- - language
- - country
-
- """
- pass
-
-
-class Client(Iface):
- def __init__(self, iprot, oprot=None):
- self._iprot = self._oprot = iprot
- if oprot is not None:
- self._oprot = oprot
- self._seqid = 0
-
- def findBuddyContactsByQuery(self, language, country, query, fromIndex, count, requestSource):
- """
- Parameters:
- - language
- - country
- - query
- - fromIndex
- - count
- - requestSource
-
- """
- self.send_findBuddyContactsByQuery(language, country, query, fromIndex, count, requestSource)
- return self.recv_findBuddyContactsByQuery()
-
- def send_findBuddyContactsByQuery(self, language, country, query, fromIndex, count, requestSource):
- self._oprot.writeMessageBegin('findBuddyContactsByQuery', TMessageType.CALL, self._seqid)
- args = findBuddyContactsByQuery_args()
- args.language = language
- args.country = country
- args.query = query
- args.fromIndex = fromIndex
- args.count = count
- args.requestSource = requestSource
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_findBuddyContactsByQuery(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = findBuddyContactsByQuery_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "findBuddyContactsByQuery failed: unknown result")
-
- def getBuddyContacts(self, language, country, classification, fromIndex, count):
- """
- Parameters:
- - language
- - country
- - classification
- - fromIndex
- - count
-
- """
- self.send_getBuddyContacts(language, country, classification, fromIndex, count)
- return self.recv_getBuddyContacts()
-
- def send_getBuddyContacts(self, language, country, classification, fromIndex, count):
- self._oprot.writeMessageBegin('getBuddyContacts', TMessageType.CALL, self._seqid)
- args = getBuddyContacts_args()
- args.language = language
- args.country = country
- args.classification = classification
- args.fromIndex = fromIndex
- args.count = count
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getBuddyContacts(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getBuddyContacts_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getBuddyContacts failed: unknown result")
-
- def getBuddyDetail(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- self.send_getBuddyDetail(buddyMid)
- return self.recv_getBuddyDetail()
-
- def send_getBuddyDetail(self, buddyMid):
- self._oprot.writeMessageBegin('getBuddyDetail', TMessageType.CALL, self._seqid)
- args = getBuddyDetail_args()
- args.buddyMid = buddyMid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getBuddyDetail(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getBuddyDetail_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getBuddyDetail failed: unknown result")
-
- def getBuddyOnAir(self, buddyMid):
- """
- Parameters:
- - buddyMid
-
- """
- self.send_getBuddyOnAir(buddyMid)
- return self.recv_getBuddyOnAir()
-
- def send_getBuddyOnAir(self, buddyMid):
- self._oprot.writeMessageBegin('getBuddyOnAir', TMessageType.CALL, self._seqid)
- args = getBuddyOnAir_args()
- args.buddyMid = buddyMid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getBuddyOnAir(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getBuddyOnAir_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getBuddyOnAir failed: unknown result")
-
- def getCountriesHavingBuddy(self):
- self.send_getCountriesHavingBuddy()
- return self.recv_getCountriesHavingBuddy()
-
- def send_getCountriesHavingBuddy(self):
- self._oprot.writeMessageBegin('getCountriesHavingBuddy', TMessageType.CALL, self._seqid)
- args = getCountriesHavingBuddy_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getCountriesHavingBuddy(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getCountriesHavingBuddy_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountriesHavingBuddy failed: unknown result")
-
- def getNewlyReleasedBuddyIds(self, country):
- """
- Parameters:
- - country
-
- """
- self.send_getNewlyReleasedBuddyIds(country)
- return self.recv_getNewlyReleasedBuddyIds()
-
- def send_getNewlyReleasedBuddyIds(self, country):
- self._oprot.writeMessageBegin('getNewlyReleasedBuddyIds', TMessageType.CALL, self._seqid)
- args = getNewlyReleasedBuddyIds_args()
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getNewlyReleasedBuddyIds(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getNewlyReleasedBuddyIds_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getNewlyReleasedBuddyIds failed: unknown result")
-
- def getPopularBuddyBanner(self, language, country, applicationType, resourceSpecification):
- """
- Parameters:
- - language
- - country
- - applicationType
- - resourceSpecification
-
- """
- self.send_getPopularBuddyBanner(language, country, applicationType, resourceSpecification)
- return self.recv_getPopularBuddyBanner()
-
- def send_getPopularBuddyBanner(self, language, country, applicationType, resourceSpecification):
- self._oprot.writeMessageBegin('getPopularBuddyBanner', TMessageType.CALL, self._seqid)
- args = getPopularBuddyBanner_args()
- args.language = language
- args.country = country
- args.applicationType = applicationType
- args.resourceSpecification = resourceSpecification
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getPopularBuddyBanner(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getPopularBuddyBanner_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getPopularBuddyBanner failed: unknown result")
-
- def getPopularBuddyLists(self, language, country):
- """
- Parameters:
- - language
- - country
-
- """
- self.send_getPopularBuddyLists(language, country)
- return self.recv_getPopularBuddyLists()
-
- def send_getPopularBuddyLists(self, language, country):
- self._oprot.writeMessageBegin('getPopularBuddyLists', TMessageType.CALL, self._seqid)
- args = getPopularBuddyLists_args()
- args.language = language
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getPopularBuddyLists(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getPopularBuddyLists_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getPopularBuddyLists failed: unknown result")
-
- def getPromotedBuddyContacts(self, language, country):
- """
- Parameters:
- - language
- - country
-
- """
- self.send_getPromotedBuddyContacts(language, country)
- return self.recv_getPromotedBuddyContacts()
-
- def send_getPromotedBuddyContacts(self, language, country):
- self._oprot.writeMessageBegin('getPromotedBuddyContacts', TMessageType.CALL, self._seqid)
- args = getPromotedBuddyContacts_args()
- args.language = language
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getPromotedBuddyContacts(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getPromotedBuddyContacts_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getPromotedBuddyContacts failed: unknown result")
-
-
-class Processor(Iface, TProcessor):
- def __init__(self, handler):
- self._handler = handler
- self._processMap = {}
- self._processMap["findBuddyContactsByQuery"] = Processor.process_findBuddyContactsByQuery
- self._processMap["getBuddyContacts"] = Processor.process_getBuddyContacts
- self._processMap["getBuddyDetail"] = Processor.process_getBuddyDetail
- self._processMap["getBuddyOnAir"] = Processor.process_getBuddyOnAir
- self._processMap["getCountriesHavingBuddy"] = Processor.process_getCountriesHavingBuddy
- self._processMap["getNewlyReleasedBuddyIds"] = Processor.process_getNewlyReleasedBuddyIds
- self._processMap["getPopularBuddyBanner"] = Processor.process_getPopularBuddyBanner
- self._processMap["getPopularBuddyLists"] = Processor.process_getPopularBuddyLists
- self._processMap["getPromotedBuddyContacts"] = Processor.process_getPromotedBuddyContacts
- self._on_message_begin = None
-
- def on_message_begin(self, func):
- self._on_message_begin = func
-
- def process(self, iprot, oprot):
- (name, type, seqid) = iprot.readMessageBegin()
- if self._on_message_begin:
- self._on_message_begin(name, type, seqid)
- if name not in self._processMap:
- iprot.skip(TType.STRUCT)
- iprot.readMessageEnd()
- x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
- oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
- x.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
- return
- else:
- self._processMap[name](self, seqid, iprot, oprot)
- return True
-
- def process_findBuddyContactsByQuery(self, seqid, iprot, oprot):
- args = findBuddyContactsByQuery_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = findBuddyContactsByQuery_result()
- try:
- result.success = self._handler.findBuddyContactsByQuery(args.language, args.country, args.query, args.fromIndex, args.count, args.requestSource)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("findBuddyContactsByQuery", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getBuddyContacts(self, seqid, iprot, oprot):
- args = getBuddyContacts_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getBuddyContacts_result()
- try:
- result.success = self._handler.getBuddyContacts(args.language, args.country, args.classification, args.fromIndex, args.count)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getBuddyContacts", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getBuddyDetail(self, seqid, iprot, oprot):
- args = getBuddyDetail_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getBuddyDetail_result()
- try:
- result.success = self._handler.getBuddyDetail(args.buddyMid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getBuddyDetail", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getBuddyOnAir(self, seqid, iprot, oprot):
- args = getBuddyOnAir_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getBuddyOnAir_result()
- try:
- result.success = self._handler.getBuddyOnAir(args.buddyMid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getBuddyOnAir", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getCountriesHavingBuddy(self, seqid, iprot, oprot):
- args = getCountriesHavingBuddy_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getCountriesHavingBuddy_result()
- try:
- result.success = self._handler.getCountriesHavingBuddy()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getCountriesHavingBuddy", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getNewlyReleasedBuddyIds(self, seqid, iprot, oprot):
- args = getNewlyReleasedBuddyIds_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getNewlyReleasedBuddyIds_result()
- try:
- result.success = self._handler.getNewlyReleasedBuddyIds(args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getNewlyReleasedBuddyIds", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getPopularBuddyBanner(self, seqid, iprot, oprot):
- args = getPopularBuddyBanner_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getPopularBuddyBanner_result()
- try:
- result.success = self._handler.getPopularBuddyBanner(args.language, args.country, args.applicationType, args.resourceSpecification)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getPopularBuddyBanner", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getPopularBuddyLists(self, seqid, iprot, oprot):
- args = getPopularBuddyLists_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getPopularBuddyLists_result()
- try:
- result.success = self._handler.getPopularBuddyLists(args.language, args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getPopularBuddyLists", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getPromotedBuddyContacts(self, seqid, iprot, oprot):
- args = getPromotedBuddyContacts_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getPromotedBuddyContacts_result()
- try:
- result.success = self._handler.getPromotedBuddyContacts(args.language, args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getPromotedBuddyContacts", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
-# HELPER FUNCTIONS AND STRUCTURES
-
-
-class findBuddyContactsByQuery_args(object):
- """
- Attributes:
- - language
- - country
- - query
- - fromIndex
- - count
- - requestSource
-
- """
-
-
- def __init__(self, language=None, country=None, query=None, fromIndex=None, count=None, requestSource=None,):
- self.language = language
- self.country = country
- self.query = query
- self.fromIndex = fromIndex
- self.count = count
- self.requestSource = requestSource
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.query = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.I32:
- self.fromIndex = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 6:
- if ftype == TType.I32:
- self.count = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 7:
- if ftype == TType.I32:
- self.requestSource = iprot.readI32()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('findBuddyContactsByQuery_args')
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 2)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 3)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- if self.query is not None:
- oprot.writeFieldBegin('query', TType.STRING, 4)
- oprot.writeString(self.query.encode('utf-8') if sys.version_info[0] == 2 else self.query)
- oprot.writeFieldEnd()
- if self.fromIndex is not None:
- oprot.writeFieldBegin('fromIndex', TType.I32, 5)
- oprot.writeI32(self.fromIndex)
- oprot.writeFieldEnd()
- if self.count is not None:
- oprot.writeFieldBegin('count', TType.I32, 6)
- oprot.writeI32(self.count)
- oprot.writeFieldEnd()
- if self.requestSource is not None:
- oprot.writeFieldBegin('requestSource', TType.I32, 7)
- oprot.writeI32(self.requestSource)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(findBuddyContactsByQuery_args)
-findBuddyContactsByQuery_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'language', 'UTF8', None, ), # 2
- (3, TType.STRING, 'country', 'UTF8', None, ), # 3
- (4, TType.STRING, 'query', 'UTF8', None, ), # 4
- (5, TType.I32, 'fromIndex', None, None, ), # 5
- (6, TType.I32, 'count', None, None, ), # 6
- (7, TType.I32, 'requestSource', None, None, ), # 7
-)
-
-
-class findBuddyContactsByQuery_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype494, _size491) = iprot.readListBegin()
- for _i495 in range(_size491):
- _elem496 = BuddySearchResult()
- _elem496.read(iprot)
- self.success.append(_elem496)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('findBuddyContactsByQuery_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter497 in self.success:
- iter497.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(findBuddyContactsByQuery_result)
-findBuddyContactsByQuery_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, [BuddySearchResult, None], False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getBuddyContacts_args(object):
- """
- Attributes:
- - language
- - country
- - classification
- - fromIndex
- - count
-
- """
-
-
- def __init__(self, language=None, country=None, classification=None, fromIndex=None, count=None,):
- self.language = language
- self.country = country
- self.classification = classification
- self.fromIndex = fromIndex
- self.count = count
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.classification = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.I32:
- self.fromIndex = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 6:
- if ftype == TType.I32:
- self.count = iprot.readI32()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getBuddyContacts_args')
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 2)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 3)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- if self.classification is not None:
- oprot.writeFieldBegin('classification', TType.STRING, 4)
- oprot.writeString(self.classification.encode('utf-8') if sys.version_info[0] == 2 else self.classification)
- oprot.writeFieldEnd()
- if self.fromIndex is not None:
- oprot.writeFieldBegin('fromIndex', TType.I32, 5)
- oprot.writeI32(self.fromIndex)
- oprot.writeFieldEnd()
- if self.count is not None:
- oprot.writeFieldBegin('count', TType.I32, 6)
- oprot.writeI32(self.count)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getBuddyContacts_args)
-getBuddyContacts_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'language', 'UTF8', None, ), # 2
- (3, TType.STRING, 'country', 'UTF8', None, ), # 3
- (4, TType.STRING, 'classification', 'UTF8', None, ), # 4
- (5, TType.I32, 'fromIndex', None, None, ), # 5
- (6, TType.I32, 'count', None, None, ), # 6
-)
-
-
-class getBuddyContacts_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype501, _size498) = iprot.readListBegin()
- for _i502 in range(_size498):
- _elem503 = Contact()
- _elem503.read(iprot)
- self.success.append(_elem503)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getBuddyContacts_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter504 in self.success:
- iter504.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getBuddyContacts_result)
-getBuddyContacts_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, [Contact, None], False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getBuddyDetail_args(object):
- """
- Attributes:
- - buddyMid
-
- """
-
-
- def __init__(self, buddyMid=None,):
- self.buddyMid = buddyMid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 4:
- if ftype == TType.STRING:
- self.buddyMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getBuddyDetail_args')
- if self.buddyMid is not None:
- oprot.writeFieldBegin('buddyMid', TType.STRING, 4)
- oprot.writeString(self.buddyMid.encode('utf-8') if sys.version_info[0] == 2 else self.buddyMid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getBuddyDetail_args)
-getBuddyDetail_args.thrift_spec = (
- None, # 0
- None, # 1
- None, # 2
- None, # 3
- (4, TType.STRING, 'buddyMid', 'UTF8', None, ), # 4
-)
-
-
-class getBuddyDetail_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = BuddyDetail()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getBuddyDetail_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getBuddyDetail_result)
-getBuddyDetail_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [BuddyDetail, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getBuddyOnAir_args(object):
- """
- Attributes:
- - buddyMid
-
- """
-
-
- def __init__(self, buddyMid=None,):
- self.buddyMid = buddyMid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 4:
- if ftype == TType.STRING:
- self.buddyMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getBuddyOnAir_args')
- if self.buddyMid is not None:
- oprot.writeFieldBegin('buddyMid', TType.STRING, 4)
- oprot.writeString(self.buddyMid.encode('utf-8') if sys.version_info[0] == 2 else self.buddyMid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getBuddyOnAir_args)
-getBuddyOnAir_args.thrift_spec = (
- None, # 0
- None, # 1
- None, # 2
- None, # 3
- (4, TType.STRING, 'buddyMid', 'UTF8', None, ), # 4
-)
-
-
-class getBuddyOnAir_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = BuddyOnAir()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getBuddyOnAir_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getBuddyOnAir_result)
-getBuddyOnAir_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [BuddyOnAir, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getCountriesHavingBuddy_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getCountriesHavingBuddy_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getCountriesHavingBuddy_args)
-getCountriesHavingBuddy_args.thrift_spec = (
-)
-
-
-class getCountriesHavingBuddy_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype508, _size505) = iprot.readListBegin()
- for _i509 in range(_size505):
- _elem510 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem510)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getCountriesHavingBuddy_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRING, len(self.success))
- for iter511 in self.success:
- oprot.writeString(iter511.encode('utf-8') if sys.version_info[0] == 2 else iter511)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getCountriesHavingBuddy_result)
-getCountriesHavingBuddy_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getNewlyReleasedBuddyIds_args(object):
- """
- Attributes:
- - country
-
- """
-
-
- def __init__(self, country=None,):
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 3:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getNewlyReleasedBuddyIds_args')
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 3)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getNewlyReleasedBuddyIds_args)
-getNewlyReleasedBuddyIds_args.thrift_spec = (
- None, # 0
- None, # 1
- None, # 2
- (3, TType.STRING, 'country', 'UTF8', None, ), # 3
-)
-
-
-class getNewlyReleasedBuddyIds_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.MAP:
- self.success = {}
- (_ktype513, _vtype514, _size512) = iprot.readMapBegin()
- for _i516 in range(_size512):
- _key517 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val518 = iprot.readI64()
- self.success[_key517] = _val518
- iprot.readMapEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getNewlyReleasedBuddyIds_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.MAP, 0)
- oprot.writeMapBegin(TType.STRING, TType.I64, len(self.success))
- for kiter519, viter520 in self.success.items():
- oprot.writeString(kiter519.encode('utf-8') if sys.version_info[0] == 2 else kiter519)
- oprot.writeI64(viter520)
- oprot.writeMapEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getNewlyReleasedBuddyIds_result)
-getNewlyReleasedBuddyIds_result.thrift_spec = (
- (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.I64, None, False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getPopularBuddyBanner_args(object):
- """
- Attributes:
- - language
- - country
- - applicationType
- - resourceSpecification
-
- """
-
-
- def __init__(self, language=None, country=None, applicationType=None, resourceSpecification=None,):
- self.language = language
- self.country = country
- self.applicationType = applicationType
- self.resourceSpecification = resourceSpecification
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.I32:
- self.applicationType = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.resourceSpecification = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPopularBuddyBanner_args')
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 2)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 3)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- if self.applicationType is not None:
- oprot.writeFieldBegin('applicationType', TType.I32, 4)
- oprot.writeI32(self.applicationType)
- oprot.writeFieldEnd()
- if self.resourceSpecification is not None:
- oprot.writeFieldBegin('resourceSpecification', TType.STRING, 5)
- oprot.writeString(self.resourceSpecification.encode('utf-8') if sys.version_info[0] == 2 else self.resourceSpecification)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPopularBuddyBanner_args)
-getPopularBuddyBanner_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'language', 'UTF8', None, ), # 2
- (3, TType.STRING, 'country', 'UTF8', None, ), # 3
- (4, TType.I32, 'applicationType', None, None, ), # 4
- (5, TType.STRING, 'resourceSpecification', 'UTF8', None, ), # 5
-)
-
-
-class getPopularBuddyBanner_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = BuddyBanner()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPopularBuddyBanner_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPopularBuddyBanner_result)
-getPopularBuddyBanner_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [BuddyBanner, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getPopularBuddyLists_args(object):
- """
- Attributes:
- - language
- - country
-
- """
-
-
- def __init__(self, language=None, country=None,):
- self.language = language
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPopularBuddyLists_args')
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 2)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 3)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPopularBuddyLists_args)
-getPopularBuddyLists_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'language', 'UTF8', None, ), # 2
- (3, TType.STRING, 'country', 'UTF8', None, ), # 3
-)
-
-
-class getPopularBuddyLists_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype524, _size521) = iprot.readListBegin()
- for _i525 in range(_size521):
- _elem526 = BuddyList()
- _elem526.read(iprot)
- self.success.append(_elem526)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPopularBuddyLists_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter527 in self.success:
- iter527.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPopularBuddyLists_result)
-getPopularBuddyLists_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, [BuddyList, None], False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getPromotedBuddyContacts_args(object):
- """
- Attributes:
- - language
- - country
-
- """
-
-
- def __init__(self, language=None, country=None,):
- self.language = language
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPromotedBuddyContacts_args')
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 2)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 3)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPromotedBuddyContacts_args)
-getPromotedBuddyContacts_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'language', 'UTF8', None, ), # 2
- (3, TType.STRING, 'country', 'UTF8', None, ), # 3
-)
-
-
-class getPromotedBuddyContacts_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype531, _size528) = iprot.readListBegin()
- for _i532 in range(_size528):
- _elem533 = Contact()
- _elem533.read(iprot)
- self.success.append(_elem533)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPromotedBuddyContacts_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter534 in self.success:
- iter534.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPromotedBuddyContacts_result)
-getPromotedBuddyContacts_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, [Contact, None], False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-fix_spec(all_structs)
-del all_structs
-
diff --git a/libs/core/ChannelApplicationProvidedService-remote b/libs/core/ChannelApplicationProvidedService-remote
deleted file mode 100755
index 4298247..0000000
--- a/libs/core/ChannelApplicationProvidedService-remote
+++ /dev/null
@@ -1,327 +0,0 @@
-#!/usr/bin/env python
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-import sys
-import pprint
-if sys.version_info[0] > 2:
- from urllib.parse import urlparse
-else:
- from urlparse import urlparse
-from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient
-from thrift.protocol.TBinaryProtocol import TBinaryProtocol
-
-from line import ChannelApplicationProvidedService
-from line.ttypes import *
-
-if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print('')
- print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]')
- print('')
- print('Functions:')
- print(' i64 activeBuddySubscriberCount()')
- print(' void addOperationForChannel(OpType opType, string param1, string param2, string param3)')
- print(' i64 displayBuddySubscriberCount()')
- print(' Contact findContactByUseridWithoutAbuseBlockForChannel(string userid)')
- print(' getAllContactIdsForChannel()')
- print(' getCompactContacts(i64 lastModifiedTimestamp)')
- print(' getContactsForChannel( ids)')
- print(' string getDisplayName(string mid)')
- print(' getFavoriteMidsForChannel()')
- print(' getFriendMids()')
- print(' getGroupMemberMids(string groupId)')
- print(' getGroupsForChannel( groupIds)')
- print(' IdentityCredential getIdentityCredential()')
- print(' getJoinedGroupIdsForChannel()')
- print(' MetaProfile getMetaProfile()')
- print(' string getMid()')
- print(' SimpleChannelClient getPrimaryClientForChannel()')
- print(' Profile getProfileForChannel()')
- print(' getSimpleChannelContacts( ids)')
- print(' string getUserCountryForBilling(string country, string remoteIp)')
- print(' i64 getUserCreateTime()')
- print(' getUserIdentities()')
- print(' string getUserLanguage()')
- print(' getUserMidsWhoAddedMe()')
- print(' bool isGroupMember(string groupId)')
- print(' bool isInContact(string mid)')
- print(' string registerChannelCP(string cpId, string registerPassword)')
- print(' void removeNotificationStatus(NotificationStatus notificationStatus)')
- print(' Message sendMessageForChannel(Message message)')
- print(' void sendPinCodeOperation(string verifier)')
- print(' void updateProfileAttributeForChannel(ProfileAttribute profileAttribute, string value)')
- print('')
- sys.exit(0)
-
-pp = pprint.PrettyPrinter(indent=2)
-host = 'localhost'
-port = 9090
-uri = ''
-framed = False
-ssl = False
-validate = True
-ca_certs = None
-keyfile = None
-certfile = None
-http = False
-argi = 1
-
-if sys.argv[argi] == '-h':
- parts = sys.argv[argi + 1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- argi += 2
-
-if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi + 1])
- parts = url[1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- else:
- port = 80
- uri = url[2]
- if url[4]:
- uri += '?%s' % url[4]
- http = True
- argi += 2
-
-if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
- framed = True
- argi += 1
-
-if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
- ssl = True
- argi += 1
-
-if sys.argv[argi] == '-novalidate':
- validate = False
- argi += 1
-
-if sys.argv[argi] == '-ca_certs':
- ca_certs = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-keyfile':
- keyfile = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-certfile':
- certfile = sys.argv[argi+1]
- argi += 2
-
-cmd = sys.argv[argi]
-args = sys.argv[argi + 1:]
-
-if http:
- transport = THttpClient.THttpClient(host, port, uri)
-else:
- if ssl:
- socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile)
- else:
- socket = TSocket.TSocket(host, port)
- if framed:
- transport = TTransport.TFramedTransport(socket)
- else:
- transport = TTransport.TBufferedTransport(socket)
-protocol = TBinaryProtocol(transport)
-client = ChannelApplicationProvidedService.Client(protocol)
-transport.open()
-
-if cmd == 'activeBuddySubscriberCount':
- if len(args) != 0:
- print('activeBuddySubscriberCount requires 0 args')
- sys.exit(1)
- pp.pprint(client.activeBuddySubscriberCount())
-
-elif cmd == 'addOperationForChannel':
- if len(args) != 4:
- print('addOperationForChannel requires 4 args')
- sys.exit(1)
- pp.pprint(client.addOperationForChannel(eval(args[0]), args[1], args[2], args[3],))
-
-elif cmd == 'displayBuddySubscriberCount':
- if len(args) != 0:
- print('displayBuddySubscriberCount requires 0 args')
- sys.exit(1)
- pp.pprint(client.displayBuddySubscriberCount())
-
-elif cmd == 'findContactByUseridWithoutAbuseBlockForChannel':
- if len(args) != 1:
- print('findContactByUseridWithoutAbuseBlockForChannel requires 1 args')
- sys.exit(1)
- pp.pprint(client.findContactByUseridWithoutAbuseBlockForChannel(args[0],))
-
-elif cmd == 'getAllContactIdsForChannel':
- if len(args) != 0:
- print('getAllContactIdsForChannel requires 0 args')
- sys.exit(1)
- pp.pprint(client.getAllContactIdsForChannel())
-
-elif cmd == 'getCompactContacts':
- if len(args) != 1:
- print('getCompactContacts requires 1 args')
- sys.exit(1)
- pp.pprint(client.getCompactContacts(eval(args[0]),))
-
-elif cmd == 'getContactsForChannel':
- if len(args) != 1:
- print('getContactsForChannel requires 1 args')
- sys.exit(1)
- pp.pprint(client.getContactsForChannel(eval(args[0]),))
-
-elif cmd == 'getDisplayName':
- if len(args) != 1:
- print('getDisplayName requires 1 args')
- sys.exit(1)
- pp.pprint(client.getDisplayName(args[0],))
-
-elif cmd == 'getFavoriteMidsForChannel':
- if len(args) != 0:
- print('getFavoriteMidsForChannel requires 0 args')
- sys.exit(1)
- pp.pprint(client.getFavoriteMidsForChannel())
-
-elif cmd == 'getFriendMids':
- if len(args) != 0:
- print('getFriendMids requires 0 args')
- sys.exit(1)
- pp.pprint(client.getFriendMids())
-
-elif cmd == 'getGroupMemberMids':
- if len(args) != 1:
- print('getGroupMemberMids requires 1 args')
- sys.exit(1)
- pp.pprint(client.getGroupMemberMids(args[0],))
-
-elif cmd == 'getGroupsForChannel':
- if len(args) != 1:
- print('getGroupsForChannel requires 1 args')
- sys.exit(1)
- pp.pprint(client.getGroupsForChannel(eval(args[0]),))
-
-elif cmd == 'getIdentityCredential':
- if len(args) != 0:
- print('getIdentityCredential requires 0 args')
- sys.exit(1)
- pp.pprint(client.getIdentityCredential())
-
-elif cmd == 'getJoinedGroupIdsForChannel':
- if len(args) != 0:
- print('getJoinedGroupIdsForChannel requires 0 args')
- sys.exit(1)
- pp.pprint(client.getJoinedGroupIdsForChannel())
-
-elif cmd == 'getMetaProfile':
- if len(args) != 0:
- print('getMetaProfile requires 0 args')
- sys.exit(1)
- pp.pprint(client.getMetaProfile())
-
-elif cmd == 'getMid':
- if len(args) != 0:
- print('getMid requires 0 args')
- sys.exit(1)
- pp.pprint(client.getMid())
-
-elif cmd == 'getPrimaryClientForChannel':
- if len(args) != 0:
- print('getPrimaryClientForChannel requires 0 args')
- sys.exit(1)
- pp.pprint(client.getPrimaryClientForChannel())
-
-elif cmd == 'getProfileForChannel':
- if len(args) != 0:
- print('getProfileForChannel requires 0 args')
- sys.exit(1)
- pp.pprint(client.getProfileForChannel())
-
-elif cmd == 'getSimpleChannelContacts':
- if len(args) != 1:
- print('getSimpleChannelContacts requires 1 args')
- sys.exit(1)
- pp.pprint(client.getSimpleChannelContacts(eval(args[0]),))
-
-elif cmd == 'getUserCountryForBilling':
- if len(args) != 2:
- print('getUserCountryForBilling requires 2 args')
- sys.exit(1)
- pp.pprint(client.getUserCountryForBilling(args[0], args[1],))
-
-elif cmd == 'getUserCreateTime':
- if len(args) != 0:
- print('getUserCreateTime requires 0 args')
- sys.exit(1)
- pp.pprint(client.getUserCreateTime())
-
-elif cmd == 'getUserIdentities':
- if len(args) != 0:
- print('getUserIdentities requires 0 args')
- sys.exit(1)
- pp.pprint(client.getUserIdentities())
-
-elif cmd == 'getUserLanguage':
- if len(args) != 0:
- print('getUserLanguage requires 0 args')
- sys.exit(1)
- pp.pprint(client.getUserLanguage())
-
-elif cmd == 'getUserMidsWhoAddedMe':
- if len(args) != 0:
- print('getUserMidsWhoAddedMe requires 0 args')
- sys.exit(1)
- pp.pprint(client.getUserMidsWhoAddedMe())
-
-elif cmd == 'isGroupMember':
- if len(args) != 1:
- print('isGroupMember requires 1 args')
- sys.exit(1)
- pp.pprint(client.isGroupMember(args[0],))
-
-elif cmd == 'isInContact':
- if len(args) != 1:
- print('isInContact requires 1 args')
- sys.exit(1)
- pp.pprint(client.isInContact(args[0],))
-
-elif cmd == 'registerChannelCP':
- if len(args) != 2:
- print('registerChannelCP requires 2 args')
- sys.exit(1)
- pp.pprint(client.registerChannelCP(args[0], args[1],))
-
-elif cmd == 'removeNotificationStatus':
- if len(args) != 1:
- print('removeNotificationStatus requires 1 args')
- sys.exit(1)
- pp.pprint(client.removeNotificationStatus(eval(args[0]),))
-
-elif cmd == 'sendMessageForChannel':
- if len(args) != 1:
- print('sendMessageForChannel requires 1 args')
- sys.exit(1)
- pp.pprint(client.sendMessageForChannel(eval(args[0]),))
-
-elif cmd == 'sendPinCodeOperation':
- if len(args) != 1:
- print('sendPinCodeOperation requires 1 args')
- sys.exit(1)
- pp.pprint(client.sendPinCodeOperation(args[0],))
-
-elif cmd == 'updateProfileAttributeForChannel':
- if len(args) != 2:
- print('updateProfileAttributeForChannel requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateProfileAttributeForChannel(eval(args[0]), args[1],))
-
-else:
- print('Unrecognized method %s' % cmd)
- sys.exit(1)
-
-transport.close()
diff --git a/libs/core/ChannelApplicationProvidedService.py b/libs/core/ChannelApplicationProvidedService.py
deleted file mode 100644
index 7f5943f..0000000
--- a/libs/core/ChannelApplicationProvidedService.py
+++ /dev/null
@@ -1,6138 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-from thrift.TRecursive import fix_spec
-
-import sys
-import logging
-from .ttypes import *
-from thrift.Thrift import TProcessor
-from thrift.transport import TTransport
-all_structs = []
-
-
-class Iface(object):
- def activeBuddySubscriberCount(self):
- pass
-
- def addOperationForChannel(self, opType, param1, param2, param3):
- """
- Parameters:
- - opType
- - param1
- - param2
- - param3
-
- """
- pass
-
- def displayBuddySubscriberCount(self):
- pass
-
- def findContactByUseridWithoutAbuseBlockForChannel(self, userid):
- """
- Parameters:
- - userid
-
- """
- pass
-
- def getAllContactIdsForChannel(self):
- pass
-
- def getCompactContacts(self, lastModifiedTimestamp):
- """
- Parameters:
- - lastModifiedTimestamp
-
- """
- pass
-
- def getContactsForChannel(self, ids):
- """
- Parameters:
- - ids
-
- """
- pass
-
- def getDisplayName(self, mid):
- """
- Parameters:
- - mid
-
- """
- pass
-
- def getFavoriteMidsForChannel(self):
- pass
-
- def getFriendMids(self):
- pass
-
- def getGroupMemberMids(self, groupId):
- """
- Parameters:
- - groupId
-
- """
- pass
-
- def getGroupsForChannel(self, groupIds):
- """
- Parameters:
- - groupIds
-
- """
- pass
-
- def getIdentityCredential(self):
- pass
-
- def getJoinedGroupIdsForChannel(self):
- pass
-
- def getMetaProfile(self):
- pass
-
- def getMid(self):
- pass
-
- def getPrimaryClientForChannel(self):
- pass
-
- def getProfileForChannel(self):
- pass
-
- def getSimpleChannelContacts(self, ids):
- """
- Parameters:
- - ids
-
- """
- pass
-
- def getUserCountryForBilling(self, country, remoteIp):
- """
- Parameters:
- - country
- - remoteIp
-
- """
- pass
-
- def getUserCreateTime(self):
- pass
-
- def getUserIdentities(self):
- pass
-
- def getUserLanguage(self):
- pass
-
- def getUserMidsWhoAddedMe(self):
- pass
-
- def isGroupMember(self, groupId):
- """
- Parameters:
- - groupId
-
- """
- pass
-
- def isInContact(self, mid):
- """
- Parameters:
- - mid
-
- """
- pass
-
- def registerChannelCP(self, cpId, registerPassword):
- """
- Parameters:
- - cpId
- - registerPassword
-
- """
- pass
-
- def removeNotificationStatus(self, notificationStatus):
- """
- Parameters:
- - notificationStatus
-
- """
- pass
-
- def sendMessageForChannel(self, message):
- """
- Parameters:
- - message
-
- """
- pass
-
- def sendPinCodeOperation(self, verifier):
- """
- Parameters:
- - verifier
-
- """
- pass
-
- def updateProfileAttributeForChannel(self, profileAttribute, value):
- """
- Parameters:
- - profileAttribute
- - value
-
- """
- pass
-
-
-class Client(Iface):
- def __init__(self, iprot, oprot=None):
- self._iprot = self._oprot = iprot
- if oprot is not None:
- self._oprot = oprot
- self._seqid = 0
-
- def activeBuddySubscriberCount(self):
- self.send_activeBuddySubscriberCount()
- return self.recv_activeBuddySubscriberCount()
-
- def send_activeBuddySubscriberCount(self):
- self._oprot.writeMessageBegin('activeBuddySubscriberCount', TMessageType.CALL, self._seqid)
- args = activeBuddySubscriberCount_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_activeBuddySubscriberCount(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = activeBuddySubscriberCount_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "activeBuddySubscriberCount failed: unknown result")
-
- def addOperationForChannel(self, opType, param1, param2, param3):
- """
- Parameters:
- - opType
- - param1
- - param2
- - param3
-
- """
- self.send_addOperationForChannel(opType, param1, param2, param3)
- self.recv_addOperationForChannel()
-
- def send_addOperationForChannel(self, opType, param1, param2, param3):
- self._oprot.writeMessageBegin('addOperationForChannel', TMessageType.CALL, self._seqid)
- args = addOperationForChannel_args()
- args.opType = opType
- args.param1 = param1
- args.param2 = param2
- args.param3 = param3
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_addOperationForChannel(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = addOperationForChannel_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def displayBuddySubscriberCount(self):
- self.send_displayBuddySubscriberCount()
- return self.recv_displayBuddySubscriberCount()
-
- def send_displayBuddySubscriberCount(self):
- self._oprot.writeMessageBegin('displayBuddySubscriberCount', TMessageType.CALL, self._seqid)
- args = displayBuddySubscriberCount_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_displayBuddySubscriberCount(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = displayBuddySubscriberCount_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "displayBuddySubscriberCount failed: unknown result")
-
- def findContactByUseridWithoutAbuseBlockForChannel(self, userid):
- """
- Parameters:
- - userid
-
- """
- self.send_findContactByUseridWithoutAbuseBlockForChannel(userid)
- return self.recv_findContactByUseridWithoutAbuseBlockForChannel()
-
- def send_findContactByUseridWithoutAbuseBlockForChannel(self, userid):
- self._oprot.writeMessageBegin('findContactByUseridWithoutAbuseBlockForChannel', TMessageType.CALL, self._seqid)
- args = findContactByUseridWithoutAbuseBlockForChannel_args()
- args.userid = userid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_findContactByUseridWithoutAbuseBlockForChannel(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = findContactByUseridWithoutAbuseBlockForChannel_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "findContactByUseridWithoutAbuseBlockForChannel failed: unknown result")
-
- def getAllContactIdsForChannel(self):
- self.send_getAllContactIdsForChannel()
- return self.recv_getAllContactIdsForChannel()
-
- def send_getAllContactIdsForChannel(self):
- self._oprot.writeMessageBegin('getAllContactIdsForChannel', TMessageType.CALL, self._seqid)
- args = getAllContactIdsForChannel_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getAllContactIdsForChannel(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getAllContactIdsForChannel_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllContactIdsForChannel failed: unknown result")
-
- def getCompactContacts(self, lastModifiedTimestamp):
- """
- Parameters:
- - lastModifiedTimestamp
-
- """
- self.send_getCompactContacts(lastModifiedTimestamp)
- return self.recv_getCompactContacts()
-
- def send_getCompactContacts(self, lastModifiedTimestamp):
- self._oprot.writeMessageBegin('getCompactContacts', TMessageType.CALL, self._seqid)
- args = getCompactContacts_args()
- args.lastModifiedTimestamp = lastModifiedTimestamp
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getCompactContacts(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getCompactContacts_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompactContacts failed: unknown result")
-
- def getContactsForChannel(self, ids):
- """
- Parameters:
- - ids
-
- """
- self.send_getContactsForChannel(ids)
- return self.recv_getContactsForChannel()
-
- def send_getContactsForChannel(self, ids):
- self._oprot.writeMessageBegin('getContactsForChannel', TMessageType.CALL, self._seqid)
- args = getContactsForChannel_args()
- args.ids = ids
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getContactsForChannel(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getContactsForChannel_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getContactsForChannel failed: unknown result")
-
- def getDisplayName(self, mid):
- """
- Parameters:
- - mid
-
- """
- self.send_getDisplayName(mid)
- return self.recv_getDisplayName()
-
- def send_getDisplayName(self, mid):
- self._oprot.writeMessageBegin('getDisplayName', TMessageType.CALL, self._seqid)
- args = getDisplayName_args()
- args.mid = mid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getDisplayName(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getDisplayName_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getDisplayName failed: unknown result")
-
- def getFavoriteMidsForChannel(self):
- self.send_getFavoriteMidsForChannel()
- return self.recv_getFavoriteMidsForChannel()
-
- def send_getFavoriteMidsForChannel(self):
- self._oprot.writeMessageBegin('getFavoriteMidsForChannel', TMessageType.CALL, self._seqid)
- args = getFavoriteMidsForChannel_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getFavoriteMidsForChannel(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getFavoriteMidsForChannel_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getFavoriteMidsForChannel failed: unknown result")
-
- def getFriendMids(self):
- self.send_getFriendMids()
- return self.recv_getFriendMids()
-
- def send_getFriendMids(self):
- self._oprot.writeMessageBegin('getFriendMids', TMessageType.CALL, self._seqid)
- args = getFriendMids_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getFriendMids(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getFriendMids_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getFriendMids failed: unknown result")
-
- def getGroupMemberMids(self, groupId):
- """
- Parameters:
- - groupId
-
- """
- self.send_getGroupMemberMids(groupId)
- return self.recv_getGroupMemberMids()
-
- def send_getGroupMemberMids(self, groupId):
- self._oprot.writeMessageBegin('getGroupMemberMids', TMessageType.CALL, self._seqid)
- args = getGroupMemberMids_args()
- args.groupId = groupId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getGroupMemberMids(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getGroupMemberMids_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getGroupMemberMids failed: unknown result")
-
- def getGroupsForChannel(self, groupIds):
- """
- Parameters:
- - groupIds
-
- """
- self.send_getGroupsForChannel(groupIds)
- return self.recv_getGroupsForChannel()
-
- def send_getGroupsForChannel(self, groupIds):
- self._oprot.writeMessageBegin('getGroupsForChannel', TMessageType.CALL, self._seqid)
- args = getGroupsForChannel_args()
- args.groupIds = groupIds
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getGroupsForChannel(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getGroupsForChannel_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getGroupsForChannel failed: unknown result")
-
- def getIdentityCredential(self):
- self.send_getIdentityCredential()
- return self.recv_getIdentityCredential()
-
- def send_getIdentityCredential(self):
- self._oprot.writeMessageBegin('getIdentityCredential', TMessageType.CALL, self._seqid)
- args = getIdentityCredential_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getIdentityCredential(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getIdentityCredential_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getIdentityCredential failed: unknown result")
-
- def getJoinedGroupIdsForChannel(self):
- self.send_getJoinedGroupIdsForChannel()
- return self.recv_getJoinedGroupIdsForChannel()
-
- def send_getJoinedGroupIdsForChannel(self):
- self._oprot.writeMessageBegin('getJoinedGroupIdsForChannel', TMessageType.CALL, self._seqid)
- args = getJoinedGroupIdsForChannel_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getJoinedGroupIdsForChannel(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getJoinedGroupIdsForChannel_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getJoinedGroupIdsForChannel failed: unknown result")
-
- def getMetaProfile(self):
- self.send_getMetaProfile()
- return self.recv_getMetaProfile()
-
- def send_getMetaProfile(self):
- self._oprot.writeMessageBegin('getMetaProfile', TMessageType.CALL, self._seqid)
- args = getMetaProfile_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getMetaProfile(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getMetaProfile_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getMetaProfile failed: unknown result")
-
- def getMid(self):
- self.send_getMid()
- return self.recv_getMid()
-
- def send_getMid(self):
- self._oprot.writeMessageBegin('getMid', TMessageType.CALL, self._seqid)
- args = getMid_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getMid(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getMid_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getMid failed: unknown result")
-
- def getPrimaryClientForChannel(self):
- self.send_getPrimaryClientForChannel()
- return self.recv_getPrimaryClientForChannel()
-
- def send_getPrimaryClientForChannel(self):
- self._oprot.writeMessageBegin('getPrimaryClientForChannel', TMessageType.CALL, self._seqid)
- args = getPrimaryClientForChannel_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getPrimaryClientForChannel(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getPrimaryClientForChannel_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrimaryClientForChannel failed: unknown result")
-
- def getProfileForChannel(self):
- self.send_getProfileForChannel()
- return self.recv_getProfileForChannel()
-
- def send_getProfileForChannel(self):
- self._oprot.writeMessageBegin('getProfileForChannel', TMessageType.CALL, self._seqid)
- args = getProfileForChannel_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getProfileForChannel(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getProfileForChannel_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getProfileForChannel failed: unknown result")
-
- def getSimpleChannelContacts(self, ids):
- """
- Parameters:
- - ids
-
- """
- self.send_getSimpleChannelContacts(ids)
- return self.recv_getSimpleChannelContacts()
-
- def send_getSimpleChannelContacts(self, ids):
- self._oprot.writeMessageBegin('getSimpleChannelContacts', TMessageType.CALL, self._seqid)
- args = getSimpleChannelContacts_args()
- args.ids = ids
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getSimpleChannelContacts(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getSimpleChannelContacts_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimpleChannelContacts failed: unknown result")
-
- def getUserCountryForBilling(self, country, remoteIp):
- """
- Parameters:
- - country
- - remoteIp
-
- """
- self.send_getUserCountryForBilling(country, remoteIp)
- return self.recv_getUserCountryForBilling()
-
- def send_getUserCountryForBilling(self, country, remoteIp):
- self._oprot.writeMessageBegin('getUserCountryForBilling', TMessageType.CALL, self._seqid)
- args = getUserCountryForBilling_args()
- args.country = country
- args.remoteIp = remoteIp
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getUserCountryForBilling(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getUserCountryForBilling_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCountryForBilling failed: unknown result")
-
- def getUserCreateTime(self):
- self.send_getUserCreateTime()
- return self.recv_getUserCreateTime()
-
- def send_getUserCreateTime(self):
- self._oprot.writeMessageBegin('getUserCreateTime', TMessageType.CALL, self._seqid)
- args = getUserCreateTime_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getUserCreateTime(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getUserCreateTime_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCreateTime failed: unknown result")
-
- def getUserIdentities(self):
- self.send_getUserIdentities()
- return self.recv_getUserIdentities()
-
- def send_getUserIdentities(self):
- self._oprot.writeMessageBegin('getUserIdentities', TMessageType.CALL, self._seqid)
- args = getUserIdentities_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getUserIdentities(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getUserIdentities_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserIdentities failed: unknown result")
-
- def getUserLanguage(self):
- self.send_getUserLanguage()
- return self.recv_getUserLanguage()
-
- def send_getUserLanguage(self):
- self._oprot.writeMessageBegin('getUserLanguage', TMessageType.CALL, self._seqid)
- args = getUserLanguage_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getUserLanguage(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getUserLanguage_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserLanguage failed: unknown result")
-
- def getUserMidsWhoAddedMe(self):
- self.send_getUserMidsWhoAddedMe()
- return self.recv_getUserMidsWhoAddedMe()
-
- def send_getUserMidsWhoAddedMe(self):
- self._oprot.writeMessageBegin('getUserMidsWhoAddedMe', TMessageType.CALL, self._seqid)
- args = getUserMidsWhoAddedMe_args()
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getUserMidsWhoAddedMe(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getUserMidsWhoAddedMe_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserMidsWhoAddedMe failed: unknown result")
-
- def isGroupMember(self, groupId):
- """
- Parameters:
- - groupId
-
- """
- self.send_isGroupMember(groupId)
- return self.recv_isGroupMember()
-
- def send_isGroupMember(self, groupId):
- self._oprot.writeMessageBegin('isGroupMember', TMessageType.CALL, self._seqid)
- args = isGroupMember_args()
- args.groupId = groupId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_isGroupMember(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = isGroupMember_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "isGroupMember failed: unknown result")
-
- def isInContact(self, mid):
- """
- Parameters:
- - mid
-
- """
- self.send_isInContact(mid)
- return self.recv_isInContact()
-
- def send_isInContact(self, mid):
- self._oprot.writeMessageBegin('isInContact', TMessageType.CALL, self._seqid)
- args = isInContact_args()
- args.mid = mid
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_isInContact(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = isInContact_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "isInContact failed: unknown result")
-
- def registerChannelCP(self, cpId, registerPassword):
- """
- Parameters:
- - cpId
- - registerPassword
-
- """
- self.send_registerChannelCP(cpId, registerPassword)
- return self.recv_registerChannelCP()
-
- def send_registerChannelCP(self, cpId, registerPassword):
- self._oprot.writeMessageBegin('registerChannelCP', TMessageType.CALL, self._seqid)
- args = registerChannelCP_args()
- args.cpId = cpId
- args.registerPassword = registerPassword
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_registerChannelCP(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = registerChannelCP_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "registerChannelCP failed: unknown result")
-
- def removeNotificationStatus(self, notificationStatus):
- """
- Parameters:
- - notificationStatus
-
- """
- self.send_removeNotificationStatus(notificationStatus)
- self.recv_removeNotificationStatus()
-
- def send_removeNotificationStatus(self, notificationStatus):
- self._oprot.writeMessageBegin('removeNotificationStatus', TMessageType.CALL, self._seqid)
- args = removeNotificationStatus_args()
- args.notificationStatus = notificationStatus
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_removeNotificationStatus(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = removeNotificationStatus_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def sendMessageForChannel(self, message):
- """
- Parameters:
- - message
-
- """
- self.send_sendMessageForChannel(message)
- return self.recv_sendMessageForChannel()
-
- def send_sendMessageForChannel(self, message):
- self._oprot.writeMessageBegin('sendMessageForChannel', TMessageType.CALL, self._seqid)
- args = sendMessageForChannel_args()
- args.message = message
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_sendMessageForChannel(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = sendMessageForChannel_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "sendMessageForChannel failed: unknown result")
-
- def sendPinCodeOperation(self, verifier):
- """
- Parameters:
- - verifier
-
- """
- self.send_sendPinCodeOperation(verifier)
- self.recv_sendPinCodeOperation()
-
- def send_sendPinCodeOperation(self, verifier):
- self._oprot.writeMessageBegin('sendPinCodeOperation', TMessageType.CALL, self._seqid)
- args = sendPinCodeOperation_args()
- args.verifier = verifier
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_sendPinCodeOperation(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = sendPinCodeOperation_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def updateProfileAttributeForChannel(self, profileAttribute, value):
- """
- Parameters:
- - profileAttribute
- - value
-
- """
- self.send_updateProfileAttributeForChannel(profileAttribute, value)
- self.recv_updateProfileAttributeForChannel()
-
- def send_updateProfileAttributeForChannel(self, profileAttribute, value):
- self._oprot.writeMessageBegin('updateProfileAttributeForChannel', TMessageType.CALL, self._seqid)
- args = updateProfileAttributeForChannel_args()
- args.profileAttribute = profileAttribute
- args.value = value
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_updateProfileAttributeForChannel(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = updateProfileAttributeForChannel_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
-
-class Processor(Iface, TProcessor):
- def __init__(self, handler):
- self._handler = handler
- self._processMap = {}
- self._processMap["activeBuddySubscriberCount"] = Processor.process_activeBuddySubscriberCount
- self._processMap["addOperationForChannel"] = Processor.process_addOperationForChannel
- self._processMap["displayBuddySubscriberCount"] = Processor.process_displayBuddySubscriberCount
- self._processMap["findContactByUseridWithoutAbuseBlockForChannel"] = Processor.process_findContactByUseridWithoutAbuseBlockForChannel
- self._processMap["getAllContactIdsForChannel"] = Processor.process_getAllContactIdsForChannel
- self._processMap["getCompactContacts"] = Processor.process_getCompactContacts
- self._processMap["getContactsForChannel"] = Processor.process_getContactsForChannel
- self._processMap["getDisplayName"] = Processor.process_getDisplayName
- self._processMap["getFavoriteMidsForChannel"] = Processor.process_getFavoriteMidsForChannel
- self._processMap["getFriendMids"] = Processor.process_getFriendMids
- self._processMap["getGroupMemberMids"] = Processor.process_getGroupMemberMids
- self._processMap["getGroupsForChannel"] = Processor.process_getGroupsForChannel
- self._processMap["getIdentityCredential"] = Processor.process_getIdentityCredential
- self._processMap["getJoinedGroupIdsForChannel"] = Processor.process_getJoinedGroupIdsForChannel
- self._processMap["getMetaProfile"] = Processor.process_getMetaProfile
- self._processMap["getMid"] = Processor.process_getMid
- self._processMap["getPrimaryClientForChannel"] = Processor.process_getPrimaryClientForChannel
- self._processMap["getProfileForChannel"] = Processor.process_getProfileForChannel
- self._processMap["getSimpleChannelContacts"] = Processor.process_getSimpleChannelContacts
- self._processMap["getUserCountryForBilling"] = Processor.process_getUserCountryForBilling
- self._processMap["getUserCreateTime"] = Processor.process_getUserCreateTime
- self._processMap["getUserIdentities"] = Processor.process_getUserIdentities
- self._processMap["getUserLanguage"] = Processor.process_getUserLanguage
- self._processMap["getUserMidsWhoAddedMe"] = Processor.process_getUserMidsWhoAddedMe
- self._processMap["isGroupMember"] = Processor.process_isGroupMember
- self._processMap["isInContact"] = Processor.process_isInContact
- self._processMap["registerChannelCP"] = Processor.process_registerChannelCP
- self._processMap["removeNotificationStatus"] = Processor.process_removeNotificationStatus
- self._processMap["sendMessageForChannel"] = Processor.process_sendMessageForChannel
- self._processMap["sendPinCodeOperation"] = Processor.process_sendPinCodeOperation
- self._processMap["updateProfileAttributeForChannel"] = Processor.process_updateProfileAttributeForChannel
- self._on_message_begin = None
-
- def on_message_begin(self, func):
- self._on_message_begin = func
-
- def process(self, iprot, oprot):
- (name, type, seqid) = iprot.readMessageBegin()
- if self._on_message_begin:
- self._on_message_begin(name, type, seqid)
- if name not in self._processMap:
- iprot.skip(TType.STRUCT)
- iprot.readMessageEnd()
- x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
- oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
- x.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
- return
- else:
- self._processMap[name](self, seqid, iprot, oprot)
- return True
-
- def process_activeBuddySubscriberCount(self, seqid, iprot, oprot):
- args = activeBuddySubscriberCount_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = activeBuddySubscriberCount_result()
- try:
- result.success = self._handler.activeBuddySubscriberCount()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("activeBuddySubscriberCount", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_addOperationForChannel(self, seqid, iprot, oprot):
- args = addOperationForChannel_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = addOperationForChannel_result()
- try:
- self._handler.addOperationForChannel(args.opType, args.param1, args.param2, args.param3)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("addOperationForChannel", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_displayBuddySubscriberCount(self, seqid, iprot, oprot):
- args = displayBuddySubscriberCount_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = displayBuddySubscriberCount_result()
- try:
- result.success = self._handler.displayBuddySubscriberCount()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("displayBuddySubscriberCount", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_findContactByUseridWithoutAbuseBlockForChannel(self, seqid, iprot, oprot):
- args = findContactByUseridWithoutAbuseBlockForChannel_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = findContactByUseridWithoutAbuseBlockForChannel_result()
- try:
- result.success = self._handler.findContactByUseridWithoutAbuseBlockForChannel(args.userid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("findContactByUseridWithoutAbuseBlockForChannel", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getAllContactIdsForChannel(self, seqid, iprot, oprot):
- args = getAllContactIdsForChannel_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getAllContactIdsForChannel_result()
- try:
- result.success = self._handler.getAllContactIdsForChannel()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getAllContactIdsForChannel", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getCompactContacts(self, seqid, iprot, oprot):
- args = getCompactContacts_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getCompactContacts_result()
- try:
- result.success = self._handler.getCompactContacts(args.lastModifiedTimestamp)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getCompactContacts", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getContactsForChannel(self, seqid, iprot, oprot):
- args = getContactsForChannel_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getContactsForChannel_result()
- try:
- result.success = self._handler.getContactsForChannel(args.ids)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getContactsForChannel", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getDisplayName(self, seqid, iprot, oprot):
- args = getDisplayName_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getDisplayName_result()
- try:
- result.success = self._handler.getDisplayName(args.mid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getDisplayName", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getFavoriteMidsForChannel(self, seqid, iprot, oprot):
- args = getFavoriteMidsForChannel_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getFavoriteMidsForChannel_result()
- try:
- result.success = self._handler.getFavoriteMidsForChannel()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getFavoriteMidsForChannel", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getFriendMids(self, seqid, iprot, oprot):
- args = getFriendMids_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getFriendMids_result()
- try:
- result.success = self._handler.getFriendMids()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getFriendMids", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getGroupMemberMids(self, seqid, iprot, oprot):
- args = getGroupMemberMids_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getGroupMemberMids_result()
- try:
- result.success = self._handler.getGroupMemberMids(args.groupId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getGroupMemberMids", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getGroupsForChannel(self, seqid, iprot, oprot):
- args = getGroupsForChannel_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getGroupsForChannel_result()
- try:
- result.success = self._handler.getGroupsForChannel(args.groupIds)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getGroupsForChannel", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getIdentityCredential(self, seqid, iprot, oprot):
- args = getIdentityCredential_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getIdentityCredential_result()
- try:
- result.success = self._handler.getIdentityCredential()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getIdentityCredential", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getJoinedGroupIdsForChannel(self, seqid, iprot, oprot):
- args = getJoinedGroupIdsForChannel_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getJoinedGroupIdsForChannel_result()
- try:
- result.success = self._handler.getJoinedGroupIdsForChannel()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getJoinedGroupIdsForChannel", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getMetaProfile(self, seqid, iprot, oprot):
- args = getMetaProfile_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getMetaProfile_result()
- try:
- result.success = self._handler.getMetaProfile()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getMetaProfile", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getMid(self, seqid, iprot, oprot):
- args = getMid_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getMid_result()
- try:
- result.success = self._handler.getMid()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getMid", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getPrimaryClientForChannel(self, seqid, iprot, oprot):
- args = getPrimaryClientForChannel_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getPrimaryClientForChannel_result()
- try:
- result.success = self._handler.getPrimaryClientForChannel()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getPrimaryClientForChannel", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getProfileForChannel(self, seqid, iprot, oprot):
- args = getProfileForChannel_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getProfileForChannel_result()
- try:
- result.success = self._handler.getProfileForChannel()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getProfileForChannel", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getSimpleChannelContacts(self, seqid, iprot, oprot):
- args = getSimpleChannelContacts_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getSimpleChannelContacts_result()
- try:
- result.success = self._handler.getSimpleChannelContacts(args.ids)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getSimpleChannelContacts", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getUserCountryForBilling(self, seqid, iprot, oprot):
- args = getUserCountryForBilling_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getUserCountryForBilling_result()
- try:
- result.success = self._handler.getUserCountryForBilling(args.country, args.remoteIp)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getUserCountryForBilling", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getUserCreateTime(self, seqid, iprot, oprot):
- args = getUserCreateTime_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getUserCreateTime_result()
- try:
- result.success = self._handler.getUserCreateTime()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getUserCreateTime", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getUserIdentities(self, seqid, iprot, oprot):
- args = getUserIdentities_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getUserIdentities_result()
- try:
- result.success = self._handler.getUserIdentities()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getUserIdentities", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getUserLanguage(self, seqid, iprot, oprot):
- args = getUserLanguage_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getUserLanguage_result()
- try:
- result.success = self._handler.getUserLanguage()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getUserLanguage", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getUserMidsWhoAddedMe(self, seqid, iprot, oprot):
- args = getUserMidsWhoAddedMe_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getUserMidsWhoAddedMe_result()
- try:
- result.success = self._handler.getUserMidsWhoAddedMe()
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getUserMidsWhoAddedMe", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_isGroupMember(self, seqid, iprot, oprot):
- args = isGroupMember_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = isGroupMember_result()
- try:
- result.success = self._handler.isGroupMember(args.groupId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("isGroupMember", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_isInContact(self, seqid, iprot, oprot):
- args = isInContact_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = isInContact_result()
- try:
- result.success = self._handler.isInContact(args.mid)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("isInContact", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_registerChannelCP(self, seqid, iprot, oprot):
- args = registerChannelCP_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = registerChannelCP_result()
- try:
- result.success = self._handler.registerChannelCP(args.cpId, args.registerPassword)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("registerChannelCP", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_removeNotificationStatus(self, seqid, iprot, oprot):
- args = removeNotificationStatus_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = removeNotificationStatus_result()
- try:
- self._handler.removeNotificationStatus(args.notificationStatus)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("removeNotificationStatus", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_sendMessageForChannel(self, seqid, iprot, oprot):
- args = sendMessageForChannel_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = sendMessageForChannel_result()
- try:
- result.success = self._handler.sendMessageForChannel(args.message)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("sendMessageForChannel", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_sendPinCodeOperation(self, seqid, iprot, oprot):
- args = sendPinCodeOperation_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = sendPinCodeOperation_result()
- try:
- self._handler.sendPinCodeOperation(args.verifier)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("sendPinCodeOperation", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_updateProfileAttributeForChannel(self, seqid, iprot, oprot):
- args = updateProfileAttributeForChannel_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = updateProfileAttributeForChannel_result()
- try:
- self._handler.updateProfileAttributeForChannel(args.profileAttribute, args.value)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("updateProfileAttributeForChannel", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
-# HELPER FUNCTIONS AND STRUCTURES
-
-
-class activeBuddySubscriberCount_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('activeBuddySubscriberCount_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(activeBuddySubscriberCount_args)
-activeBuddySubscriberCount_args.thrift_spec = (
-)
-
-
-class activeBuddySubscriberCount_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.I64:
- self.success = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('activeBuddySubscriberCount_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.I64, 0)
- oprot.writeI64(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(activeBuddySubscriberCount_result)
-activeBuddySubscriberCount_result.thrift_spec = (
- (0, TType.I64, 'success', None, None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class addOperationForChannel_args(object):
- """
- Attributes:
- - opType
- - param1
- - param2
- - param3
-
- """
-
-
- def __init__(self, opType=None, param1=None, param2=None, param3=None,):
- self.opType = opType
- self.param1 = param1
- self.param2 = param2
- self.param3 = param3
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.I32:
- self.opType = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.param1 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.param2 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.param3 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('addOperationForChannel_args')
- if self.opType is not None:
- oprot.writeFieldBegin('opType', TType.I32, 1)
- oprot.writeI32(self.opType)
- oprot.writeFieldEnd()
- if self.param1 is not None:
- oprot.writeFieldBegin('param1', TType.STRING, 2)
- oprot.writeString(self.param1.encode('utf-8') if sys.version_info[0] == 2 else self.param1)
- oprot.writeFieldEnd()
- if self.param2 is not None:
- oprot.writeFieldBegin('param2', TType.STRING, 3)
- oprot.writeString(self.param2.encode('utf-8') if sys.version_info[0] == 2 else self.param2)
- oprot.writeFieldEnd()
- if self.param3 is not None:
- oprot.writeFieldBegin('param3', TType.STRING, 4)
- oprot.writeString(self.param3.encode('utf-8') if sys.version_info[0] == 2 else self.param3)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(addOperationForChannel_args)
-addOperationForChannel_args.thrift_spec = (
- None, # 0
- (1, TType.I32, 'opType', None, None, ), # 1
- (2, TType.STRING, 'param1', 'UTF8', None, ), # 2
- (3, TType.STRING, 'param2', 'UTF8', None, ), # 3
- (4, TType.STRING, 'param3', 'UTF8', None, ), # 4
-)
-
-
-class addOperationForChannel_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('addOperationForChannel_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(addOperationForChannel_result)
-addOperationForChannel_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class displayBuddySubscriberCount_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('displayBuddySubscriberCount_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(displayBuddySubscriberCount_args)
-displayBuddySubscriberCount_args.thrift_spec = (
-)
-
-
-class displayBuddySubscriberCount_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.I64:
- self.success = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('displayBuddySubscriberCount_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.I64, 0)
- oprot.writeI64(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(displayBuddySubscriberCount_result)
-displayBuddySubscriberCount_result.thrift_spec = (
- (0, TType.I64, 'success', None, None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class findContactByUseridWithoutAbuseBlockForChannel_args(object):
- """
- Attributes:
- - userid
-
- """
-
-
- def __init__(self, userid=None,):
- self.userid = userid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.userid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('findContactByUseridWithoutAbuseBlockForChannel_args')
- if self.userid is not None:
- oprot.writeFieldBegin('userid', TType.STRING, 2)
- oprot.writeString(self.userid.encode('utf-8') if sys.version_info[0] == 2 else self.userid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(findContactByUseridWithoutAbuseBlockForChannel_args)
-findContactByUseridWithoutAbuseBlockForChannel_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'userid', 'UTF8', None, ), # 2
-)
-
-
-class findContactByUseridWithoutAbuseBlockForChannel_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = Contact()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('findContactByUseridWithoutAbuseBlockForChannel_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(findContactByUseridWithoutAbuseBlockForChannel_result)
-findContactByUseridWithoutAbuseBlockForChannel_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [Contact, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getAllContactIdsForChannel_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getAllContactIdsForChannel_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getAllContactIdsForChannel_args)
-getAllContactIdsForChannel_args.thrift_spec = (
-)
-
-
-class getAllContactIdsForChannel_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype538, _size535) = iprot.readListBegin()
- for _i539 in range(_size535):
- _elem540 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem540)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getAllContactIdsForChannel_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRING, len(self.success))
- for iter541 in self.success:
- oprot.writeString(iter541.encode('utf-8') if sys.version_info[0] == 2 else iter541)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getAllContactIdsForChannel_result)
-getAllContactIdsForChannel_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getCompactContacts_args(object):
- """
- Attributes:
- - lastModifiedTimestamp
-
- """
-
-
- def __init__(self, lastModifiedTimestamp=None,):
- self.lastModifiedTimestamp = lastModifiedTimestamp
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.lastModifiedTimestamp = iprot.readI64()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getCompactContacts_args')
- if self.lastModifiedTimestamp is not None:
- oprot.writeFieldBegin('lastModifiedTimestamp', TType.I64, 2)
- oprot.writeI64(self.lastModifiedTimestamp)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getCompactContacts_args)
-getCompactContacts_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'lastModifiedTimestamp', None, None, ), # 2
-)
-
-
-class getCompactContacts_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype545, _size542) = iprot.readListBegin()
- for _i546 in range(_size542):
- _elem547 = CompactContact()
- _elem547.read(iprot)
- self.success.append(_elem547)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getCompactContacts_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter548 in self.success:
- iter548.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getCompactContacts_result)
-getCompactContacts_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, [CompactContact, None], False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getContactsForChannel_args(object):
- """
- Attributes:
- - ids
-
- """
-
-
- def __init__(self, ids=None,):
- self.ids = ids
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.LIST:
- self.ids = []
- (_etype552, _size549) = iprot.readListBegin()
- for _i553 in range(_size549):
- _elem554 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.ids.append(_elem554)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getContactsForChannel_args')
- if self.ids is not None:
- oprot.writeFieldBegin('ids', TType.LIST, 2)
- oprot.writeListBegin(TType.STRING, len(self.ids))
- for iter555 in self.ids:
- oprot.writeString(iter555.encode('utf-8') if sys.version_info[0] == 2 else iter555)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getContactsForChannel_args)
-getContactsForChannel_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.LIST, 'ids', (TType.STRING, 'UTF8', False), None, ), # 2
-)
-
-
-class getContactsForChannel_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype559, _size556) = iprot.readListBegin()
- for _i560 in range(_size556):
- _elem561 = Contact()
- _elem561.read(iprot)
- self.success.append(_elem561)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getContactsForChannel_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter562 in self.success:
- iter562.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getContactsForChannel_result)
-getContactsForChannel_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, [Contact, None], False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getDisplayName_args(object):
- """
- Attributes:
- - mid
-
- """
-
-
- def __init__(self, mid=None,):
- self.mid = mid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.mid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getDisplayName_args')
- if self.mid is not None:
- oprot.writeFieldBegin('mid', TType.STRING, 2)
- oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getDisplayName_args)
-getDisplayName_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'mid', 'UTF8', None, ), # 2
-)
-
-
-class getDisplayName_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getDisplayName_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getDisplayName_result)
-getDisplayName_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getFavoriteMidsForChannel_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getFavoriteMidsForChannel_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getFavoriteMidsForChannel_args)
-getFavoriteMidsForChannel_args.thrift_spec = (
-)
-
-
-class getFavoriteMidsForChannel_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype566, _size563) = iprot.readListBegin()
- for _i567 in range(_size563):
- _elem568 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem568)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getFavoriteMidsForChannel_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRING, len(self.success))
- for iter569 in self.success:
- oprot.writeString(iter569.encode('utf-8') if sys.version_info[0] == 2 else iter569)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getFavoriteMidsForChannel_result)
-getFavoriteMidsForChannel_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getFriendMids_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getFriendMids_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getFriendMids_args)
-getFriendMids_args.thrift_spec = (
-)
-
-
-class getFriendMids_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype573, _size570) = iprot.readListBegin()
- for _i574 in range(_size570):
- _elem575 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem575)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getFriendMids_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRING, len(self.success))
- for iter576 in self.success:
- oprot.writeString(iter576.encode('utf-8') if sys.version_info[0] == 2 else iter576)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getFriendMids_result)
-getFriendMids_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getGroupMemberMids_args(object):
- """
- Attributes:
- - groupId
-
- """
-
-
- def __init__(self, groupId=None,):
- self.groupId = groupId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.groupId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getGroupMemberMids_args')
- if self.groupId is not None:
- oprot.writeFieldBegin('groupId', TType.STRING, 1)
- oprot.writeString(self.groupId.encode('utf-8') if sys.version_info[0] == 2 else self.groupId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getGroupMemberMids_args)
-getGroupMemberMids_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'groupId', 'UTF8', None, ), # 1
-)
-
-
-class getGroupMemberMids_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype580, _size577) = iprot.readListBegin()
- for _i581 in range(_size577):
- _elem582 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem582)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getGroupMemberMids_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRING, len(self.success))
- for iter583 in self.success:
- oprot.writeString(iter583.encode('utf-8') if sys.version_info[0] == 2 else iter583)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getGroupMemberMids_result)
-getGroupMemberMids_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getGroupsForChannel_args(object):
- """
- Attributes:
- - groupIds
-
- """
-
-
- def __init__(self, groupIds=None,):
- self.groupIds = groupIds
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.LIST:
- self.groupIds = []
- (_etype587, _size584) = iprot.readListBegin()
- for _i588 in range(_size584):
- _elem589 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.groupIds.append(_elem589)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getGroupsForChannel_args')
- if self.groupIds is not None:
- oprot.writeFieldBegin('groupIds', TType.LIST, 1)
- oprot.writeListBegin(TType.STRING, len(self.groupIds))
- for iter590 in self.groupIds:
- oprot.writeString(iter590.encode('utf-8') if sys.version_info[0] == 2 else iter590)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getGroupsForChannel_args)
-getGroupsForChannel_args.thrift_spec = (
- None, # 0
- (1, TType.LIST, 'groupIds', (TType.STRING, 'UTF8', False), None, ), # 1
-)
-
-
-class getGroupsForChannel_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype594, _size591) = iprot.readListBegin()
- for _i595 in range(_size591):
- _elem596 = Group()
- _elem596.read(iprot)
- self.success.append(_elem596)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getGroupsForChannel_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter597 in self.success:
- iter597.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getGroupsForChannel_result)
-getGroupsForChannel_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, [Group, None], False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getIdentityCredential_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getIdentityCredential_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getIdentityCredential_args)
-getIdentityCredential_args.thrift_spec = (
-)
-
-
-class getIdentityCredential_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = IdentityCredential()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getIdentityCredential_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getIdentityCredential_result)
-getIdentityCredential_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [IdentityCredential, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getJoinedGroupIdsForChannel_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getJoinedGroupIdsForChannel_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getJoinedGroupIdsForChannel_args)
-getJoinedGroupIdsForChannel_args.thrift_spec = (
-)
-
-
-class getJoinedGroupIdsForChannel_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype601, _size598) = iprot.readListBegin()
- for _i602 in range(_size598):
- _elem603 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem603)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getJoinedGroupIdsForChannel_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRING, len(self.success))
- for iter604 in self.success:
- oprot.writeString(iter604.encode('utf-8') if sys.version_info[0] == 2 else iter604)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getJoinedGroupIdsForChannel_result)
-getJoinedGroupIdsForChannel_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getMetaProfile_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getMetaProfile_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getMetaProfile_args)
-getMetaProfile_args.thrift_spec = (
-)
-
-
-class getMetaProfile_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = MetaProfile()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getMetaProfile_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getMetaProfile_result)
-getMetaProfile_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [MetaProfile, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getMid_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getMid_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getMid_args)
-getMid_args.thrift_spec = (
-)
-
-
-class getMid_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getMid_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getMid_result)
-getMid_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getPrimaryClientForChannel_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPrimaryClientForChannel_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPrimaryClientForChannel_args)
-getPrimaryClientForChannel_args.thrift_spec = (
-)
-
-
-class getPrimaryClientForChannel_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = SimpleChannelClient()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPrimaryClientForChannel_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPrimaryClientForChannel_result)
-getPrimaryClientForChannel_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [SimpleChannelClient, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getProfileForChannel_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getProfileForChannel_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getProfileForChannel_args)
-getProfileForChannel_args.thrift_spec = (
-)
-
-
-class getProfileForChannel_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = Profile()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getProfileForChannel_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getProfileForChannel_result)
-getProfileForChannel_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [Profile, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getSimpleChannelContacts_args(object):
- """
- Attributes:
- - ids
-
- """
-
-
- def __init__(self, ids=None,):
- self.ids = ids
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.LIST:
- self.ids = []
- (_etype608, _size605) = iprot.readListBegin()
- for _i609 in range(_size605):
- _elem610 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.ids.append(_elem610)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getSimpleChannelContacts_args')
- if self.ids is not None:
- oprot.writeFieldBegin('ids', TType.LIST, 1)
- oprot.writeListBegin(TType.STRING, len(self.ids))
- for iter611 in self.ids:
- oprot.writeString(iter611.encode('utf-8') if sys.version_info[0] == 2 else iter611)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getSimpleChannelContacts_args)
-getSimpleChannelContacts_args.thrift_spec = (
- None, # 0
- (1, TType.LIST, 'ids', (TType.STRING, 'UTF8', False), None, ), # 1
-)
-
-
-class getSimpleChannelContacts_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype615, _size612) = iprot.readListBegin()
- for _i616 in range(_size612):
- _elem617 = SimpleChannelContact()
- _elem617.read(iprot)
- self.success.append(_elem617)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getSimpleChannelContacts_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter618 in self.success:
- iter618.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getSimpleChannelContacts_result)
-getSimpleChannelContacts_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, [SimpleChannelContact, None], False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getUserCountryForBilling_args(object):
- """
- Attributes:
- - country
- - remoteIp
-
- """
-
-
- def __init__(self, country=None, remoteIp=None,):
- self.country = country
- self.remoteIp = remoteIp
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.remoteIp = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getUserCountryForBilling_args')
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 2)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- if self.remoteIp is not None:
- oprot.writeFieldBegin('remoteIp', TType.STRING, 3)
- oprot.writeString(self.remoteIp.encode('utf-8') if sys.version_info[0] == 2 else self.remoteIp)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getUserCountryForBilling_args)
-getUserCountryForBilling_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'country', 'UTF8', None, ), # 2
- (3, TType.STRING, 'remoteIp', 'UTF8', None, ), # 3
-)
-
-
-class getUserCountryForBilling_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getUserCountryForBilling_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getUserCountryForBilling_result)
-getUserCountryForBilling_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getUserCreateTime_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getUserCreateTime_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getUserCreateTime_args)
-getUserCreateTime_args.thrift_spec = (
-)
-
-
-class getUserCreateTime_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.I64:
- self.success = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getUserCreateTime_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.I64, 0)
- oprot.writeI64(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getUserCreateTime_result)
-getUserCreateTime_result.thrift_spec = (
- (0, TType.I64, 'success', None, None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getUserIdentities_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getUserIdentities_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getUserIdentities_args)
-getUserIdentities_args.thrift_spec = (
-)
-
-
-class getUserIdentities_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.MAP:
- self.success = {}
- (_ktype620, _vtype621, _size619) = iprot.readMapBegin()
- for _i623 in range(_size619):
- _key624 = iprot.readI32()
- _val625 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success[_key624] = _val625
- iprot.readMapEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getUserIdentities_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.MAP, 0)
- oprot.writeMapBegin(TType.I32, TType.STRING, len(self.success))
- for kiter626, viter627 in self.success.items():
- oprot.writeI32(kiter626)
- oprot.writeString(viter627.encode('utf-8') if sys.version_info[0] == 2 else viter627)
- oprot.writeMapEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getUserIdentities_result)
-getUserIdentities_result.thrift_spec = (
- (0, TType.MAP, 'success', (TType.I32, None, TType.STRING, 'UTF8', False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getUserLanguage_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getUserLanguage_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getUserLanguage_args)
-getUserLanguage_args.thrift_spec = (
-)
-
-
-class getUserLanguage_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getUserLanguage_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getUserLanguage_result)
-getUserLanguage_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getUserMidsWhoAddedMe_args(object):
-
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getUserMidsWhoAddedMe_args')
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getUserMidsWhoAddedMe_args)
-getUserMidsWhoAddedMe_args.thrift_spec = (
-)
-
-
-class getUserMidsWhoAddedMe_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype631, _size628) = iprot.readListBegin()
- for _i632 in range(_size628):
- _elem633 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem633)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getUserMidsWhoAddedMe_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRING, len(self.success))
- for iter634 in self.success:
- oprot.writeString(iter634.encode('utf-8') if sys.version_info[0] == 2 else iter634)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getUserMidsWhoAddedMe_result)
-getUserMidsWhoAddedMe_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class isGroupMember_args(object):
- """
- Attributes:
- - groupId
-
- """
-
-
- def __init__(self, groupId=None,):
- self.groupId = groupId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.groupId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('isGroupMember_args')
- if self.groupId is not None:
- oprot.writeFieldBegin('groupId', TType.STRING, 1)
- oprot.writeString(self.groupId.encode('utf-8') if sys.version_info[0] == 2 else self.groupId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(isGroupMember_args)
-isGroupMember_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'groupId', 'UTF8', None, ), # 1
-)
-
-
-class isGroupMember_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.BOOL:
- self.success = iprot.readBool()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('isGroupMember_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.BOOL, 0)
- oprot.writeBool(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(isGroupMember_result)
-isGroupMember_result.thrift_spec = (
- (0, TType.BOOL, 'success', None, None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class isInContact_args(object):
- """
- Attributes:
- - mid
-
- """
-
-
- def __init__(self, mid=None,):
- self.mid = mid
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.mid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('isInContact_args')
- if self.mid is not None:
- oprot.writeFieldBegin('mid', TType.STRING, 2)
- oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(isInContact_args)
-isInContact_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'mid', 'UTF8', None, ), # 2
-)
-
-
-class isInContact_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.BOOL:
- self.success = iprot.readBool()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('isInContact_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.BOOL, 0)
- oprot.writeBool(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(isInContact_result)
-isInContact_result.thrift_spec = (
- (0, TType.BOOL, 'success', None, None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class registerChannelCP_args(object):
- """
- Attributes:
- - cpId
- - registerPassword
-
- """
-
-
- def __init__(self, cpId=None, registerPassword=None,):
- self.cpId = cpId
- self.registerPassword = registerPassword
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.cpId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.registerPassword = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('registerChannelCP_args')
- if self.cpId is not None:
- oprot.writeFieldBegin('cpId', TType.STRING, 2)
- oprot.writeString(self.cpId.encode('utf-8') if sys.version_info[0] == 2 else self.cpId)
- oprot.writeFieldEnd()
- if self.registerPassword is not None:
- oprot.writeFieldBegin('registerPassword', TType.STRING, 3)
- oprot.writeString(self.registerPassword.encode('utf-8') if sys.version_info[0] == 2 else self.registerPassword)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(registerChannelCP_args)
-registerChannelCP_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'cpId', 'UTF8', None, ), # 2
- (3, TType.STRING, 'registerPassword', 'UTF8', None, ), # 3
-)
-
-
-class registerChannelCP_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('registerChannelCP_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(registerChannelCP_result)
-registerChannelCP_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class removeNotificationStatus_args(object):
- """
- Attributes:
- - notificationStatus
-
- """
-
-
- def __init__(self, notificationStatus=None,):
- self.notificationStatus = notificationStatus
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I32:
- self.notificationStatus = iprot.readI32()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('removeNotificationStatus_args')
- if self.notificationStatus is not None:
- oprot.writeFieldBegin('notificationStatus', TType.I32, 2)
- oprot.writeI32(self.notificationStatus)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(removeNotificationStatus_args)
-removeNotificationStatus_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I32, 'notificationStatus', None, None, ), # 2
-)
-
-
-class removeNotificationStatus_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('removeNotificationStatus_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(removeNotificationStatus_result)
-removeNotificationStatus_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class sendMessageForChannel_args(object):
- """
- Attributes:
- - message
-
- """
-
-
- def __init__(self, message=None,):
- self.message = message
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRUCT:
- self.message = Message()
- self.message.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendMessageForChannel_args')
- if self.message is not None:
- oprot.writeFieldBegin('message', TType.STRUCT, 2)
- self.message.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendMessageForChannel_args)
-sendMessageForChannel_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRUCT, 'message', [Message, None], None, ), # 2
-)
-
-
-class sendMessageForChannel_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = Message()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendMessageForChannel_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendMessageForChannel_result)
-sendMessageForChannel_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [Message, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class sendPinCodeOperation_args(object):
- """
- Attributes:
- - verifier
-
- """
-
-
- def __init__(self, verifier=None,):
- self.verifier = verifier
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.verifier = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendPinCodeOperation_args')
- if self.verifier is not None:
- oprot.writeFieldBegin('verifier', TType.STRING, 1)
- oprot.writeString(self.verifier.encode('utf-8') if sys.version_info[0] == 2 else self.verifier)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendPinCodeOperation_args)
-sendPinCodeOperation_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'verifier', 'UTF8', None, ), # 1
-)
-
-
-class sendPinCodeOperation_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('sendPinCodeOperation_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(sendPinCodeOperation_result)
-sendPinCodeOperation_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class updateProfileAttributeForChannel_args(object):
- """
- Attributes:
- - profileAttribute
- - value
-
- """
-
-
- def __init__(self, profileAttribute=None, value=None,):
- self.profileAttribute = profileAttribute
- self.value = value
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I32:
- self.profileAttribute = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.value = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateProfileAttributeForChannel_args')
- if self.profileAttribute is not None:
- oprot.writeFieldBegin('profileAttribute', TType.I32, 2)
- oprot.writeI32(self.profileAttribute)
- oprot.writeFieldEnd()
- if self.value is not None:
- oprot.writeFieldBegin('value', TType.STRING, 3)
- oprot.writeString(self.value.encode('utf-8') if sys.version_info[0] == 2 else self.value)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateProfileAttributeForChannel_args)
-updateProfileAttributeForChannel_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I32, 'profileAttribute', None, None, ), # 2
- (3, TType.STRING, 'value', 'UTF8', None, ), # 3
-)
-
-
-class updateProfileAttributeForChannel_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateProfileAttributeForChannel_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateProfileAttributeForChannel_result)
-updateProfileAttributeForChannel_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-fix_spec(all_structs)
-del all_structs
-
diff --git a/libs/core/ChannelService-remote b/libs/core/ChannelService-remote
deleted file mode 100755
index bd7add5..0000000
--- a/libs/core/ChannelService-remote
+++ /dev/null
@@ -1,236 +0,0 @@
-#!/usr/bin/env python
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-import sys
-import pprint
-if sys.version_info[0] > 2:
- from urllib.parse import urlparse
-else:
- from urlparse import urlparse
-from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient
-from thrift.protocol.TBinaryProtocol import TBinaryProtocol
-
-from line import ChannelService
-from line.ttypes import *
-
-if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print('')
- print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]')
- print('')
- print('Functions:')
- print(' ChannelToken approveChannelAndIssueChannelToken(string channelId)')
- print(' string approveChannelAndIssueRequestToken(string channelId, string otpId)')
- print(' NotificationFetchResult fetchNotificationItems(i64 localRev)')
- print(' ApprovedChannelInfos getApprovedChannels(i64 lastSynced, string locale)')
- print(' ChannelInfo getChannelInfo(string channelId, string locale)')
- print(' ChannelNotificationSetting getChannelNotificationSetting(string channelId, string locale)')
- print(' getChannelNotificationSettings(string locale)')
- print(' ChannelInfos getChannels(i64 lastSynced, string locale)')
- print(' ChannelDomains getDomains(i64 lastSynced)')
- print(' FriendChannelMatricesResponse getFriendChannelMatrices( channelIds)')
- print(' i32 getNotificationBadgeCount(i64 localRev)')
- print(' ChannelToken issueChannelToken(string channelId)')
- print(' string issueRequestToken(string channelId, string otpId)')
- print(' RequestTokenResponse issueRequestTokenWithAuthScheme(string channelId, string otpId, authScheme, string returnUrl)')
- print(' string reserveCoinUse(CoinUseReservation request, string locale)')
- print(' void revokeChannel(string channelId)')
- print(' ChannelSyncDatas syncChannelData(i64 lastSynced, string locale)')
- print(' void updateChannelNotificationSetting( setting)')
- print('')
- sys.exit(0)
-
-pp = pprint.PrettyPrinter(indent=2)
-host = 'localhost'
-port = 9090
-uri = ''
-framed = False
-ssl = False
-validate = True
-ca_certs = None
-keyfile = None
-certfile = None
-http = False
-argi = 1
-
-if sys.argv[argi] == '-h':
- parts = sys.argv[argi + 1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- argi += 2
-
-if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi + 1])
- parts = url[1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- else:
- port = 80
- uri = url[2]
- if url[4]:
- uri += '?%s' % url[4]
- http = True
- argi += 2
-
-if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
- framed = True
- argi += 1
-
-if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
- ssl = True
- argi += 1
-
-if sys.argv[argi] == '-novalidate':
- validate = False
- argi += 1
-
-if sys.argv[argi] == '-ca_certs':
- ca_certs = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-keyfile':
- keyfile = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-certfile':
- certfile = sys.argv[argi+1]
- argi += 2
-
-cmd = sys.argv[argi]
-args = sys.argv[argi + 1:]
-
-if http:
- transport = THttpClient.THttpClient(host, port, uri)
-else:
- if ssl:
- socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile)
- else:
- socket = TSocket.TSocket(host, port)
- if framed:
- transport = TTransport.TFramedTransport(socket)
- else:
- transport = TTransport.TBufferedTransport(socket)
-protocol = TBinaryProtocol(transport)
-client = ChannelService.Client(protocol)
-transport.open()
-
-if cmd == 'approveChannelAndIssueChannelToken':
- if len(args) != 1:
- print('approveChannelAndIssueChannelToken requires 1 args')
- sys.exit(1)
- pp.pprint(client.approveChannelAndIssueChannelToken(args[0],))
-
-elif cmd == 'approveChannelAndIssueRequestToken':
- if len(args) != 2:
- print('approveChannelAndIssueRequestToken requires 2 args')
- sys.exit(1)
- pp.pprint(client.approveChannelAndIssueRequestToken(args[0], args[1],))
-
-elif cmd == 'fetchNotificationItems':
- if len(args) != 1:
- print('fetchNotificationItems requires 1 args')
- sys.exit(1)
- pp.pprint(client.fetchNotificationItems(eval(args[0]),))
-
-elif cmd == 'getApprovedChannels':
- if len(args) != 2:
- print('getApprovedChannels requires 2 args')
- sys.exit(1)
- pp.pprint(client.getApprovedChannels(eval(args[0]), args[1],))
-
-elif cmd == 'getChannelInfo':
- if len(args) != 2:
- print('getChannelInfo requires 2 args')
- sys.exit(1)
- pp.pprint(client.getChannelInfo(args[0], args[1],))
-
-elif cmd == 'getChannelNotificationSetting':
- if len(args) != 2:
- print('getChannelNotificationSetting requires 2 args')
- sys.exit(1)
- pp.pprint(client.getChannelNotificationSetting(args[0], args[1],))
-
-elif cmd == 'getChannelNotificationSettings':
- if len(args) != 1:
- print('getChannelNotificationSettings requires 1 args')
- sys.exit(1)
- pp.pprint(client.getChannelNotificationSettings(args[0],))
-
-elif cmd == 'getChannels':
- if len(args) != 2:
- print('getChannels requires 2 args')
- sys.exit(1)
- pp.pprint(client.getChannels(eval(args[0]), args[1],))
-
-elif cmd == 'getDomains':
- if len(args) != 1:
- print('getDomains requires 1 args')
- sys.exit(1)
- pp.pprint(client.getDomains(eval(args[0]),))
-
-elif cmd == 'getFriendChannelMatrices':
- if len(args) != 1:
- print('getFriendChannelMatrices requires 1 args')
- sys.exit(1)
- pp.pprint(client.getFriendChannelMatrices(eval(args[0]),))
-
-elif cmd == 'getNotificationBadgeCount':
- if len(args) != 1:
- print('getNotificationBadgeCount requires 1 args')
- sys.exit(1)
- pp.pprint(client.getNotificationBadgeCount(eval(args[0]),))
-
-elif cmd == 'issueChannelToken':
- if len(args) != 1:
- print('issueChannelToken requires 1 args')
- sys.exit(1)
- pp.pprint(client.issueChannelToken(args[0],))
-
-elif cmd == 'issueRequestToken':
- if len(args) != 2:
- print('issueRequestToken requires 2 args')
- sys.exit(1)
- pp.pprint(client.issueRequestToken(args[0], args[1],))
-
-elif cmd == 'issueRequestTokenWithAuthScheme':
- if len(args) != 4:
- print('issueRequestTokenWithAuthScheme requires 4 args')
- sys.exit(1)
- pp.pprint(client.issueRequestTokenWithAuthScheme(args[0], args[1], eval(args[2]), args[3],))
-
-elif cmd == 'reserveCoinUse':
- if len(args) != 2:
- print('reserveCoinUse requires 2 args')
- sys.exit(1)
- pp.pprint(client.reserveCoinUse(eval(args[0]), args[1],))
-
-elif cmd == 'revokeChannel':
- if len(args) != 1:
- print('revokeChannel requires 1 args')
- sys.exit(1)
- pp.pprint(client.revokeChannel(args[0],))
-
-elif cmd == 'syncChannelData':
- if len(args) != 2:
- print('syncChannelData requires 2 args')
- sys.exit(1)
- pp.pprint(client.syncChannelData(eval(args[0]), args[1],))
-
-elif cmd == 'updateChannelNotificationSetting':
- if len(args) != 1:
- print('updateChannelNotificationSetting requires 1 args')
- sys.exit(1)
- pp.pprint(client.updateChannelNotificationSetting(eval(args[0]),))
-
-else:
- print('Unrecognized method %s' % cmd)
- sys.exit(1)
-
-transport.close()
diff --git a/libs/core/ChannelService.py b/libs/core/ChannelService.py
deleted file mode 100644
index 81a4d95..0000000
--- a/libs/core/ChannelService.py
+++ /dev/null
@@ -1,3943 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-from thrift.TRecursive import fix_spec
-
-import sys
-import logging
-from .ttypes import *
-from thrift.Thrift import TProcessor
-from thrift.transport import TTransport
-all_structs = []
-
-
-class Iface(object):
- def approveChannelAndIssueChannelToken(self, channelId):
- """
- Parameters:
- - channelId
-
- """
- pass
-
- def approveChannelAndIssueRequestToken(self, channelId, otpId):
- """
- Parameters:
- - channelId
- - otpId
-
- """
- pass
-
- def fetchNotificationItems(self, localRev):
- """
- Parameters:
- - localRev
-
- """
- pass
-
- def getApprovedChannels(self, lastSynced, locale):
- """
- Parameters:
- - lastSynced
- - locale
-
- """
- pass
-
- def getChannelInfo(self, channelId, locale):
- """
- Parameters:
- - channelId
- - locale
-
- """
- pass
-
- def getChannelNotificationSetting(self, channelId, locale):
- """
- Parameters:
- - channelId
- - locale
-
- """
- pass
-
- def getChannelNotificationSettings(self, locale):
- """
- Parameters:
- - locale
-
- """
- pass
-
- def getChannels(self, lastSynced, locale):
- """
- Parameters:
- - lastSynced
- - locale
-
- """
- pass
-
- def getDomains(self, lastSynced):
- """
- Parameters:
- - lastSynced
-
- """
- pass
-
- def getFriendChannelMatrices(self, channelIds):
- """
- Parameters:
- - channelIds
-
- """
- pass
-
- def getNotificationBadgeCount(self, localRev):
- """
- Parameters:
- - localRev
-
- """
- pass
-
- def issueChannelToken(self, channelId):
- """
- Parameters:
- - channelId
-
- """
- pass
-
- def issueRequestToken(self, channelId, otpId):
- """
- Parameters:
- - channelId
- - otpId
-
- """
- pass
-
- def issueRequestTokenWithAuthScheme(self, channelId, otpId, authScheme, returnUrl):
- """
- Parameters:
- - channelId
- - otpId
- - authScheme
- - returnUrl
-
- """
- pass
-
- def reserveCoinUse(self, request, locale):
- """
- Parameters:
- - request
- - locale
-
- """
- pass
-
- def revokeChannel(self, channelId):
- """
- Parameters:
- - channelId
-
- """
- pass
-
- def syncChannelData(self, lastSynced, locale):
- """
- Parameters:
- - lastSynced
- - locale
-
- """
- pass
-
- def updateChannelNotificationSetting(self, setting):
- """
- Parameters:
- - setting
-
- """
- pass
-
-
-class Client(Iface):
- def __init__(self, iprot, oprot=None):
- self._iprot = self._oprot = iprot
- if oprot is not None:
- self._oprot = oprot
- self._seqid = 0
-
- def approveChannelAndIssueChannelToken(self, channelId):
- """
- Parameters:
- - channelId
-
- """
- self.send_approveChannelAndIssueChannelToken(channelId)
- return self.recv_approveChannelAndIssueChannelToken()
-
- def send_approveChannelAndIssueChannelToken(self, channelId):
- self._oprot.writeMessageBegin('approveChannelAndIssueChannelToken', TMessageType.CALL, self._seqid)
- args = approveChannelAndIssueChannelToken_args()
- args.channelId = channelId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_approveChannelAndIssueChannelToken(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = approveChannelAndIssueChannelToken_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "approveChannelAndIssueChannelToken failed: unknown result")
-
- def approveChannelAndIssueRequestToken(self, channelId, otpId):
- """
- Parameters:
- - channelId
- - otpId
-
- """
- self.send_approveChannelAndIssueRequestToken(channelId, otpId)
- return self.recv_approveChannelAndIssueRequestToken()
-
- def send_approveChannelAndIssueRequestToken(self, channelId, otpId):
- self._oprot.writeMessageBegin('approveChannelAndIssueRequestToken', TMessageType.CALL, self._seqid)
- args = approveChannelAndIssueRequestToken_args()
- args.channelId = channelId
- args.otpId = otpId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_approveChannelAndIssueRequestToken(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = approveChannelAndIssueRequestToken_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "approveChannelAndIssueRequestToken failed: unknown result")
-
- def fetchNotificationItems(self, localRev):
- """
- Parameters:
- - localRev
-
- """
- self.send_fetchNotificationItems(localRev)
- return self.recv_fetchNotificationItems()
-
- def send_fetchNotificationItems(self, localRev):
- self._oprot.writeMessageBegin('fetchNotificationItems', TMessageType.CALL, self._seqid)
- args = fetchNotificationItems_args()
- args.localRev = localRev
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_fetchNotificationItems(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = fetchNotificationItems_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchNotificationItems failed: unknown result")
-
- def getApprovedChannels(self, lastSynced, locale):
- """
- Parameters:
- - lastSynced
- - locale
-
- """
- self.send_getApprovedChannels(lastSynced, locale)
- return self.recv_getApprovedChannels()
-
- def send_getApprovedChannels(self, lastSynced, locale):
- self._oprot.writeMessageBegin('getApprovedChannels', TMessageType.CALL, self._seqid)
- args = getApprovedChannels_args()
- args.lastSynced = lastSynced
- args.locale = locale
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getApprovedChannels(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getApprovedChannels_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getApprovedChannels failed: unknown result")
-
- def getChannelInfo(self, channelId, locale):
- """
- Parameters:
- - channelId
- - locale
-
- """
- self.send_getChannelInfo(channelId, locale)
- return self.recv_getChannelInfo()
-
- def send_getChannelInfo(self, channelId, locale):
- self._oprot.writeMessageBegin('getChannelInfo', TMessageType.CALL, self._seqid)
- args = getChannelInfo_args()
- args.channelId = channelId
- args.locale = locale
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getChannelInfo(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getChannelInfo_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getChannelInfo failed: unknown result")
-
- def getChannelNotificationSetting(self, channelId, locale):
- """
- Parameters:
- - channelId
- - locale
-
- """
- self.send_getChannelNotificationSetting(channelId, locale)
- return self.recv_getChannelNotificationSetting()
-
- def send_getChannelNotificationSetting(self, channelId, locale):
- self._oprot.writeMessageBegin('getChannelNotificationSetting', TMessageType.CALL, self._seqid)
- args = getChannelNotificationSetting_args()
- args.channelId = channelId
- args.locale = locale
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getChannelNotificationSetting(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getChannelNotificationSetting_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getChannelNotificationSetting failed: unknown result")
-
- def getChannelNotificationSettings(self, locale):
- """
- Parameters:
- - locale
-
- """
- self.send_getChannelNotificationSettings(locale)
- return self.recv_getChannelNotificationSettings()
-
- def send_getChannelNotificationSettings(self, locale):
- self._oprot.writeMessageBegin('getChannelNotificationSettings', TMessageType.CALL, self._seqid)
- args = getChannelNotificationSettings_args()
- args.locale = locale
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getChannelNotificationSettings(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getChannelNotificationSettings_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getChannelNotificationSettings failed: unknown result")
-
- def getChannels(self, lastSynced, locale):
- """
- Parameters:
- - lastSynced
- - locale
-
- """
- self.send_getChannels(lastSynced, locale)
- return self.recv_getChannels()
-
- def send_getChannels(self, lastSynced, locale):
- self._oprot.writeMessageBegin('getChannels', TMessageType.CALL, self._seqid)
- args = getChannels_args()
- args.lastSynced = lastSynced
- args.locale = locale
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getChannels(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getChannels_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getChannels failed: unknown result")
-
- def getDomains(self, lastSynced):
- """
- Parameters:
- - lastSynced
-
- """
- self.send_getDomains(lastSynced)
- return self.recv_getDomains()
-
- def send_getDomains(self, lastSynced):
- self._oprot.writeMessageBegin('getDomains', TMessageType.CALL, self._seqid)
- args = getDomains_args()
- args.lastSynced = lastSynced
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getDomains(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getDomains_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getDomains failed: unknown result")
-
- def getFriendChannelMatrices(self, channelIds):
- """
- Parameters:
- - channelIds
-
- """
- self.send_getFriendChannelMatrices(channelIds)
- return self.recv_getFriendChannelMatrices()
-
- def send_getFriendChannelMatrices(self, channelIds):
- self._oprot.writeMessageBegin('getFriendChannelMatrices', TMessageType.CALL, self._seqid)
- args = getFriendChannelMatrices_args()
- args.channelIds = channelIds
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getFriendChannelMatrices(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getFriendChannelMatrices_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getFriendChannelMatrices failed: unknown result")
-
- def getNotificationBadgeCount(self, localRev):
- """
- Parameters:
- - localRev
-
- """
- self.send_getNotificationBadgeCount(localRev)
- return self.recv_getNotificationBadgeCount()
-
- def send_getNotificationBadgeCount(self, localRev):
- self._oprot.writeMessageBegin('getNotificationBadgeCount', TMessageType.CALL, self._seqid)
- args = getNotificationBadgeCount_args()
- args.localRev = localRev
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getNotificationBadgeCount(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getNotificationBadgeCount_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getNotificationBadgeCount failed: unknown result")
-
- def issueChannelToken(self, channelId):
- """
- Parameters:
- - channelId
-
- """
- self.send_issueChannelToken(channelId)
- return self.recv_issueChannelToken()
-
- def send_issueChannelToken(self, channelId):
- self._oprot.writeMessageBegin('issueChannelToken', TMessageType.CALL, self._seqid)
- args = issueChannelToken_args()
- args.channelId = channelId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_issueChannelToken(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = issueChannelToken_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "issueChannelToken failed: unknown result")
-
- def issueRequestToken(self, channelId, otpId):
- """
- Parameters:
- - channelId
- - otpId
-
- """
- self.send_issueRequestToken(channelId, otpId)
- return self.recv_issueRequestToken()
-
- def send_issueRequestToken(self, channelId, otpId):
- self._oprot.writeMessageBegin('issueRequestToken', TMessageType.CALL, self._seqid)
- args = issueRequestToken_args()
- args.channelId = channelId
- args.otpId = otpId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_issueRequestToken(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = issueRequestToken_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "issueRequestToken failed: unknown result")
-
- def issueRequestTokenWithAuthScheme(self, channelId, otpId, authScheme, returnUrl):
- """
- Parameters:
- - channelId
- - otpId
- - authScheme
- - returnUrl
-
- """
- self.send_issueRequestTokenWithAuthScheme(channelId, otpId, authScheme, returnUrl)
- return self.recv_issueRequestTokenWithAuthScheme()
-
- def send_issueRequestTokenWithAuthScheme(self, channelId, otpId, authScheme, returnUrl):
- self._oprot.writeMessageBegin('issueRequestTokenWithAuthScheme', TMessageType.CALL, self._seqid)
- args = issueRequestTokenWithAuthScheme_args()
- args.channelId = channelId
- args.otpId = otpId
- args.authScheme = authScheme
- args.returnUrl = returnUrl
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_issueRequestTokenWithAuthScheme(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = issueRequestTokenWithAuthScheme_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "issueRequestTokenWithAuthScheme failed: unknown result")
-
- def reserveCoinUse(self, request, locale):
- """
- Parameters:
- - request
- - locale
-
- """
- self.send_reserveCoinUse(request, locale)
- return self.recv_reserveCoinUse()
-
- def send_reserveCoinUse(self, request, locale):
- self._oprot.writeMessageBegin('reserveCoinUse', TMessageType.CALL, self._seqid)
- args = reserveCoinUse_args()
- args.request = request
- args.locale = locale
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_reserveCoinUse(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = reserveCoinUse_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveCoinUse failed: unknown result")
-
- def revokeChannel(self, channelId):
- """
- Parameters:
- - channelId
-
- """
- self.send_revokeChannel(channelId)
- self.recv_revokeChannel()
-
- def send_revokeChannel(self, channelId):
- self._oprot.writeMessageBegin('revokeChannel', TMessageType.CALL, self._seqid)
- args = revokeChannel_args()
- args.channelId = channelId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_revokeChannel(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = revokeChannel_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def syncChannelData(self, lastSynced, locale):
- """
- Parameters:
- - lastSynced
- - locale
-
- """
- self.send_syncChannelData(lastSynced, locale)
- return self.recv_syncChannelData()
-
- def send_syncChannelData(self, lastSynced, locale):
- self._oprot.writeMessageBegin('syncChannelData', TMessageType.CALL, self._seqid)
- args = syncChannelData_args()
- args.lastSynced = lastSynced
- args.locale = locale
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_syncChannelData(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = syncChannelData_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "syncChannelData failed: unknown result")
-
- def updateChannelNotificationSetting(self, setting):
- """
- Parameters:
- - setting
-
- """
- self.send_updateChannelNotificationSetting(setting)
- self.recv_updateChannelNotificationSetting()
-
- def send_updateChannelNotificationSetting(self, setting):
- self._oprot.writeMessageBegin('updateChannelNotificationSetting', TMessageType.CALL, self._seqid)
- args = updateChannelNotificationSetting_args()
- args.setting = setting
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_updateChannelNotificationSetting(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = updateChannelNotificationSetting_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
-
-class Processor(Iface, TProcessor):
- def __init__(self, handler):
- self._handler = handler
- self._processMap = {}
- self._processMap["approveChannelAndIssueChannelToken"] = Processor.process_approveChannelAndIssueChannelToken
- self._processMap["approveChannelAndIssueRequestToken"] = Processor.process_approveChannelAndIssueRequestToken
- self._processMap["fetchNotificationItems"] = Processor.process_fetchNotificationItems
- self._processMap["getApprovedChannels"] = Processor.process_getApprovedChannels
- self._processMap["getChannelInfo"] = Processor.process_getChannelInfo
- self._processMap["getChannelNotificationSetting"] = Processor.process_getChannelNotificationSetting
- self._processMap["getChannelNotificationSettings"] = Processor.process_getChannelNotificationSettings
- self._processMap["getChannels"] = Processor.process_getChannels
- self._processMap["getDomains"] = Processor.process_getDomains
- self._processMap["getFriendChannelMatrices"] = Processor.process_getFriendChannelMatrices
- self._processMap["getNotificationBadgeCount"] = Processor.process_getNotificationBadgeCount
- self._processMap["issueChannelToken"] = Processor.process_issueChannelToken
- self._processMap["issueRequestToken"] = Processor.process_issueRequestToken
- self._processMap["issueRequestTokenWithAuthScheme"] = Processor.process_issueRequestTokenWithAuthScheme
- self._processMap["reserveCoinUse"] = Processor.process_reserveCoinUse
- self._processMap["revokeChannel"] = Processor.process_revokeChannel
- self._processMap["syncChannelData"] = Processor.process_syncChannelData
- self._processMap["updateChannelNotificationSetting"] = Processor.process_updateChannelNotificationSetting
- self._on_message_begin = None
-
- def on_message_begin(self, func):
- self._on_message_begin = func
-
- def process(self, iprot, oprot):
- (name, type, seqid) = iprot.readMessageBegin()
- if self._on_message_begin:
- self._on_message_begin(name, type, seqid)
- if name not in self._processMap:
- iprot.skip(TType.STRUCT)
- iprot.readMessageEnd()
- x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
- oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
- x.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
- return
- else:
- self._processMap[name](self, seqid, iprot, oprot)
- return True
-
- def process_approveChannelAndIssueChannelToken(self, seqid, iprot, oprot):
- args = approveChannelAndIssueChannelToken_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = approveChannelAndIssueChannelToken_result()
- try:
- result.success = self._handler.approveChannelAndIssueChannelToken(args.channelId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("approveChannelAndIssueChannelToken", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_approveChannelAndIssueRequestToken(self, seqid, iprot, oprot):
- args = approveChannelAndIssueRequestToken_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = approveChannelAndIssueRequestToken_result()
- try:
- result.success = self._handler.approveChannelAndIssueRequestToken(args.channelId, args.otpId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("approveChannelAndIssueRequestToken", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_fetchNotificationItems(self, seqid, iprot, oprot):
- args = fetchNotificationItems_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = fetchNotificationItems_result()
- try:
- result.success = self._handler.fetchNotificationItems(args.localRev)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("fetchNotificationItems", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getApprovedChannels(self, seqid, iprot, oprot):
- args = getApprovedChannels_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getApprovedChannels_result()
- try:
- result.success = self._handler.getApprovedChannels(args.lastSynced, args.locale)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getApprovedChannels", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getChannelInfo(self, seqid, iprot, oprot):
- args = getChannelInfo_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getChannelInfo_result()
- try:
- result.success = self._handler.getChannelInfo(args.channelId, args.locale)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getChannelInfo", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getChannelNotificationSetting(self, seqid, iprot, oprot):
- args = getChannelNotificationSetting_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getChannelNotificationSetting_result()
- try:
- result.success = self._handler.getChannelNotificationSetting(args.channelId, args.locale)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getChannelNotificationSetting", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getChannelNotificationSettings(self, seqid, iprot, oprot):
- args = getChannelNotificationSettings_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getChannelNotificationSettings_result()
- try:
- result.success = self._handler.getChannelNotificationSettings(args.locale)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getChannelNotificationSettings", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getChannels(self, seqid, iprot, oprot):
- args = getChannels_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getChannels_result()
- try:
- result.success = self._handler.getChannels(args.lastSynced, args.locale)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getChannels", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getDomains(self, seqid, iprot, oprot):
- args = getDomains_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getDomains_result()
- try:
- result.success = self._handler.getDomains(args.lastSynced)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getDomains", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getFriendChannelMatrices(self, seqid, iprot, oprot):
- args = getFriendChannelMatrices_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getFriendChannelMatrices_result()
- try:
- result.success = self._handler.getFriendChannelMatrices(args.channelIds)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getFriendChannelMatrices", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getNotificationBadgeCount(self, seqid, iprot, oprot):
- args = getNotificationBadgeCount_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getNotificationBadgeCount_result()
- try:
- result.success = self._handler.getNotificationBadgeCount(args.localRev)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getNotificationBadgeCount", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_issueChannelToken(self, seqid, iprot, oprot):
- args = issueChannelToken_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = issueChannelToken_result()
- try:
- result.success = self._handler.issueChannelToken(args.channelId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("issueChannelToken", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_issueRequestToken(self, seqid, iprot, oprot):
- args = issueRequestToken_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = issueRequestToken_result()
- try:
- result.success = self._handler.issueRequestToken(args.channelId, args.otpId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("issueRequestToken", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_issueRequestTokenWithAuthScheme(self, seqid, iprot, oprot):
- args = issueRequestTokenWithAuthScheme_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = issueRequestTokenWithAuthScheme_result()
- try:
- result.success = self._handler.issueRequestTokenWithAuthScheme(args.channelId, args.otpId, args.authScheme, args.returnUrl)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("issueRequestTokenWithAuthScheme", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_reserveCoinUse(self, seqid, iprot, oprot):
- args = reserveCoinUse_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = reserveCoinUse_result()
- try:
- result.success = self._handler.reserveCoinUse(args.request, args.locale)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("reserveCoinUse", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_revokeChannel(self, seqid, iprot, oprot):
- args = revokeChannel_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = revokeChannel_result()
- try:
- self._handler.revokeChannel(args.channelId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("revokeChannel", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_syncChannelData(self, seqid, iprot, oprot):
- args = syncChannelData_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = syncChannelData_result()
- try:
- result.success = self._handler.syncChannelData(args.lastSynced, args.locale)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("syncChannelData", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_updateChannelNotificationSetting(self, seqid, iprot, oprot):
- args = updateChannelNotificationSetting_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = updateChannelNotificationSetting_result()
- try:
- self._handler.updateChannelNotificationSetting(args.setting)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except ChannelException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("updateChannelNotificationSetting", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
-# HELPER FUNCTIONS AND STRUCTURES
-
-
-class approveChannelAndIssueChannelToken_args(object):
- """
- Attributes:
- - channelId
-
- """
-
-
- def __init__(self, channelId=None,):
- self.channelId = channelId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.channelId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('approveChannelAndIssueChannelToken_args')
- if self.channelId is not None:
- oprot.writeFieldBegin('channelId', TType.STRING, 1)
- oprot.writeString(self.channelId.encode('utf-8') if sys.version_info[0] == 2 else self.channelId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(approveChannelAndIssueChannelToken_args)
-approveChannelAndIssueChannelToken_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'channelId', 'UTF8', None, ), # 1
-)
-
-
-class approveChannelAndIssueChannelToken_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ChannelToken()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('approveChannelAndIssueChannelToken_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(approveChannelAndIssueChannelToken_result)
-approveChannelAndIssueChannelToken_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ChannelToken, None], None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class approveChannelAndIssueRequestToken_args(object):
- """
- Attributes:
- - channelId
- - otpId
-
- """
-
-
- def __init__(self, channelId=None, otpId=None,):
- self.channelId = channelId
- self.otpId = otpId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.channelId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.otpId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('approveChannelAndIssueRequestToken_args')
- if self.channelId is not None:
- oprot.writeFieldBegin('channelId', TType.STRING, 1)
- oprot.writeString(self.channelId.encode('utf-8') if sys.version_info[0] == 2 else self.channelId)
- oprot.writeFieldEnd()
- if self.otpId is not None:
- oprot.writeFieldBegin('otpId', TType.STRING, 2)
- oprot.writeString(self.otpId.encode('utf-8') if sys.version_info[0] == 2 else self.otpId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(approveChannelAndIssueRequestToken_args)
-approveChannelAndIssueRequestToken_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'channelId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'otpId', 'UTF8', None, ), # 2
-)
-
-
-class approveChannelAndIssueRequestToken_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('approveChannelAndIssueRequestToken_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(approveChannelAndIssueRequestToken_result)
-approveChannelAndIssueRequestToken_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class fetchNotificationItems_args(object):
- """
- Attributes:
- - localRev
-
- """
-
-
- def __init__(self, localRev=None,):
- self.localRev = localRev
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.localRev = iprot.readI64()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('fetchNotificationItems_args')
- if self.localRev is not None:
- oprot.writeFieldBegin('localRev', TType.I64, 2)
- oprot.writeI64(self.localRev)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(fetchNotificationItems_args)
-fetchNotificationItems_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'localRev', None, None, ), # 2
-)
-
-
-class fetchNotificationItems_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = NotificationFetchResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('fetchNotificationItems_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(fetchNotificationItems_result)
-fetchNotificationItems_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [NotificationFetchResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class getApprovedChannels_args(object):
- """
- Attributes:
- - lastSynced
- - locale
-
- """
-
-
- def __init__(self, lastSynced=None, locale=None,):
- self.lastSynced = lastSynced
- self.locale = locale
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.lastSynced = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.locale = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getApprovedChannels_args')
- if self.lastSynced is not None:
- oprot.writeFieldBegin('lastSynced', TType.I64, 2)
- oprot.writeI64(self.lastSynced)
- oprot.writeFieldEnd()
- if self.locale is not None:
- oprot.writeFieldBegin('locale', TType.STRING, 3)
- oprot.writeString(self.locale.encode('utf-8') if sys.version_info[0] == 2 else self.locale)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getApprovedChannels_args)
-getApprovedChannels_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'lastSynced', None, None, ), # 2
- (3, TType.STRING, 'locale', 'UTF8', None, ), # 3
-)
-
-
-class getApprovedChannels_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ApprovedChannelInfos()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getApprovedChannels_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getApprovedChannels_result)
-getApprovedChannels_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ApprovedChannelInfos, None], None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class getChannelInfo_args(object):
- """
- Attributes:
- - channelId
- - locale
-
- """
-
-
- def __init__(self, channelId=None, locale=None,):
- self.channelId = channelId
- self.locale = locale
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.channelId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.locale = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getChannelInfo_args')
- if self.channelId is not None:
- oprot.writeFieldBegin('channelId', TType.STRING, 2)
- oprot.writeString(self.channelId.encode('utf-8') if sys.version_info[0] == 2 else self.channelId)
- oprot.writeFieldEnd()
- if self.locale is not None:
- oprot.writeFieldBegin('locale', TType.STRING, 3)
- oprot.writeString(self.locale.encode('utf-8') if sys.version_info[0] == 2 else self.locale)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getChannelInfo_args)
-getChannelInfo_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'channelId', 'UTF8', None, ), # 2
- (3, TType.STRING, 'locale', 'UTF8', None, ), # 3
-)
-
-
-class getChannelInfo_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ChannelInfo()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getChannelInfo_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getChannelInfo_result)
-getChannelInfo_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ChannelInfo, None], None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class getChannelNotificationSetting_args(object):
- """
- Attributes:
- - channelId
- - locale
-
- """
-
-
- def __init__(self, channelId=None, locale=None,):
- self.channelId = channelId
- self.locale = locale
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.channelId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.locale = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getChannelNotificationSetting_args')
- if self.channelId is not None:
- oprot.writeFieldBegin('channelId', TType.STRING, 1)
- oprot.writeString(self.channelId.encode('utf-8') if sys.version_info[0] == 2 else self.channelId)
- oprot.writeFieldEnd()
- if self.locale is not None:
- oprot.writeFieldBegin('locale', TType.STRING, 2)
- oprot.writeString(self.locale.encode('utf-8') if sys.version_info[0] == 2 else self.locale)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getChannelNotificationSetting_args)
-getChannelNotificationSetting_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'channelId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'locale', 'UTF8', None, ), # 2
-)
-
-
-class getChannelNotificationSetting_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ChannelNotificationSetting()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getChannelNotificationSetting_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getChannelNotificationSetting_result)
-getChannelNotificationSetting_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ChannelNotificationSetting, None], None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class getChannelNotificationSettings_args(object):
- """
- Attributes:
- - locale
-
- """
-
-
- def __init__(self, locale=None,):
- self.locale = locale
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.locale = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getChannelNotificationSettings_args')
- if self.locale is not None:
- oprot.writeFieldBegin('locale', TType.STRING, 1)
- oprot.writeString(self.locale.encode('utf-8') if sys.version_info[0] == 2 else self.locale)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getChannelNotificationSettings_args)
-getChannelNotificationSettings_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'locale', 'UTF8', None, ), # 1
-)
-
-
-class getChannelNotificationSettings_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype638, _size635) = iprot.readListBegin()
- for _i639 in range(_size635):
- _elem640 = ChannelNotificationSetting()
- _elem640.read(iprot)
- self.success.append(_elem640)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getChannelNotificationSettings_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter641 in self.success:
- iter641.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getChannelNotificationSettings_result)
-getChannelNotificationSettings_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, [ChannelNotificationSetting, None], False), None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class getChannels_args(object):
- """
- Attributes:
- - lastSynced
- - locale
-
- """
-
-
- def __init__(self, lastSynced=None, locale=None,):
- self.lastSynced = lastSynced
- self.locale = locale
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.lastSynced = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.locale = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getChannels_args')
- if self.lastSynced is not None:
- oprot.writeFieldBegin('lastSynced', TType.I64, 2)
- oprot.writeI64(self.lastSynced)
- oprot.writeFieldEnd()
- if self.locale is not None:
- oprot.writeFieldBegin('locale', TType.STRING, 3)
- oprot.writeString(self.locale.encode('utf-8') if sys.version_info[0] == 2 else self.locale)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getChannels_args)
-getChannels_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'lastSynced', None, None, ), # 2
- (3, TType.STRING, 'locale', 'UTF8', None, ), # 3
-)
-
-
-class getChannels_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ChannelInfos()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getChannels_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getChannels_result)
-getChannels_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ChannelInfos, None], None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class getDomains_args(object):
- """
- Attributes:
- - lastSynced
-
- """
-
-
- def __init__(self, lastSynced=None,):
- self.lastSynced = lastSynced
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.lastSynced = iprot.readI64()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getDomains_args')
- if self.lastSynced is not None:
- oprot.writeFieldBegin('lastSynced', TType.I64, 2)
- oprot.writeI64(self.lastSynced)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getDomains_args)
-getDomains_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'lastSynced', None, None, ), # 2
-)
-
-
-class getDomains_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ChannelDomains()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getDomains_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getDomains_result)
-getDomains_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ChannelDomains, None], None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class getFriendChannelMatrices_args(object):
- """
- Attributes:
- - channelIds
-
- """
-
-
- def __init__(self, channelIds=None,):
- self.channelIds = channelIds
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.LIST:
- self.channelIds = []
- (_etype645, _size642) = iprot.readListBegin()
- for _i646 in range(_size642):
- _elem647 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.channelIds.append(_elem647)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getFriendChannelMatrices_args')
- if self.channelIds is not None:
- oprot.writeFieldBegin('channelIds', TType.LIST, 1)
- oprot.writeListBegin(TType.STRING, len(self.channelIds))
- for iter648 in self.channelIds:
- oprot.writeString(iter648.encode('utf-8') if sys.version_info[0] == 2 else iter648)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getFriendChannelMatrices_args)
-getFriendChannelMatrices_args.thrift_spec = (
- None, # 0
- (1, TType.LIST, 'channelIds', (TType.STRING, 'UTF8', False), None, ), # 1
-)
-
-
-class getFriendChannelMatrices_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = FriendChannelMatricesResponse()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getFriendChannelMatrices_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getFriendChannelMatrices_result)
-getFriendChannelMatrices_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [FriendChannelMatricesResponse, None], None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class getNotificationBadgeCount_args(object):
- """
- Attributes:
- - localRev
-
- """
-
-
- def __init__(self, localRev=None,):
- self.localRev = localRev
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.localRev = iprot.readI64()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getNotificationBadgeCount_args')
- if self.localRev is not None:
- oprot.writeFieldBegin('localRev', TType.I64, 2)
- oprot.writeI64(self.localRev)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getNotificationBadgeCount_args)
-getNotificationBadgeCount_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'localRev', None, None, ), # 2
-)
-
-
-class getNotificationBadgeCount_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.I32:
- self.success = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getNotificationBadgeCount_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.I32, 0)
- oprot.writeI32(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getNotificationBadgeCount_result)
-getNotificationBadgeCount_result.thrift_spec = (
- (0, TType.I32, 'success', None, None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class issueChannelToken_args(object):
- """
- Attributes:
- - channelId
-
- """
-
-
- def __init__(self, channelId=None,):
- self.channelId = channelId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.channelId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('issueChannelToken_args')
- if self.channelId is not None:
- oprot.writeFieldBegin('channelId', TType.STRING, 1)
- oprot.writeString(self.channelId.encode('utf-8') if sys.version_info[0] == 2 else self.channelId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(issueChannelToken_args)
-issueChannelToken_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'channelId', 'UTF8', None, ), # 1
-)
-
-
-class issueChannelToken_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ChannelToken()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('issueChannelToken_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(issueChannelToken_result)
-issueChannelToken_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ChannelToken, None], None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class issueRequestToken_args(object):
- """
- Attributes:
- - channelId
- - otpId
-
- """
-
-
- def __init__(self, channelId=None, otpId=None,):
- self.channelId = channelId
- self.otpId = otpId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.channelId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.otpId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('issueRequestToken_args')
- if self.channelId is not None:
- oprot.writeFieldBegin('channelId', TType.STRING, 1)
- oprot.writeString(self.channelId.encode('utf-8') if sys.version_info[0] == 2 else self.channelId)
- oprot.writeFieldEnd()
- if self.otpId is not None:
- oprot.writeFieldBegin('otpId', TType.STRING, 2)
- oprot.writeString(self.otpId.encode('utf-8') if sys.version_info[0] == 2 else self.otpId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(issueRequestToken_args)
-issueRequestToken_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'channelId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'otpId', 'UTF8', None, ), # 2
-)
-
-
-class issueRequestToken_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('issueRequestToken_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(issueRequestToken_result)
-issueRequestToken_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class issueRequestTokenWithAuthScheme_args(object):
- """
- Attributes:
- - channelId
- - otpId
- - authScheme
- - returnUrl
-
- """
-
-
- def __init__(self, channelId=None, otpId=None, authScheme=None, returnUrl=None,):
- self.channelId = channelId
- self.otpId = otpId
- self.authScheme = authScheme
- self.returnUrl = returnUrl
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.channelId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 2:
- if ftype == TType.STRING:
- self.otpId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.LIST:
- self.authScheme = []
- (_etype652, _size649) = iprot.readListBegin()
- for _i653 in range(_size649):
- _elem654 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.authScheme.append(_elem654)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.returnUrl = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('issueRequestTokenWithAuthScheme_args')
- if self.channelId is not None:
- oprot.writeFieldBegin('channelId', TType.STRING, 1)
- oprot.writeString(self.channelId.encode('utf-8') if sys.version_info[0] == 2 else self.channelId)
- oprot.writeFieldEnd()
- if self.otpId is not None:
- oprot.writeFieldBegin('otpId', TType.STRING, 2)
- oprot.writeString(self.otpId.encode('utf-8') if sys.version_info[0] == 2 else self.otpId)
- oprot.writeFieldEnd()
- if self.authScheme is not None:
- oprot.writeFieldBegin('authScheme', TType.LIST, 3)
- oprot.writeListBegin(TType.STRING, len(self.authScheme))
- for iter655 in self.authScheme:
- oprot.writeString(iter655.encode('utf-8') if sys.version_info[0] == 2 else iter655)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.returnUrl is not None:
- oprot.writeFieldBegin('returnUrl', TType.STRING, 4)
- oprot.writeString(self.returnUrl.encode('utf-8') if sys.version_info[0] == 2 else self.returnUrl)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(issueRequestTokenWithAuthScheme_args)
-issueRequestTokenWithAuthScheme_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'channelId', 'UTF8', None, ), # 1
- (2, TType.STRING, 'otpId', 'UTF8', None, ), # 2
- (3, TType.LIST, 'authScheme', (TType.STRING, 'UTF8', False), None, ), # 3
- (4, TType.STRING, 'returnUrl', 'UTF8', None, ), # 4
-)
-
-
-class issueRequestTokenWithAuthScheme_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = RequestTokenResponse()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('issueRequestTokenWithAuthScheme_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(issueRequestTokenWithAuthScheme_result)
-issueRequestTokenWithAuthScheme_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [RequestTokenResponse, None], None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class reserveCoinUse_args(object):
- """
- Attributes:
- - request
- - locale
-
- """
-
-
- def __init__(self, request=None, locale=None,):
- self.request = request
- self.locale = locale
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRUCT:
- self.request = CoinUseReservation()
- self.request.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.locale = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('reserveCoinUse_args')
- if self.request is not None:
- oprot.writeFieldBegin('request', TType.STRUCT, 2)
- self.request.write(oprot)
- oprot.writeFieldEnd()
- if self.locale is not None:
- oprot.writeFieldBegin('locale', TType.STRING, 3)
- oprot.writeString(self.locale.encode('utf-8') if sys.version_info[0] == 2 else self.locale)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(reserveCoinUse_args)
-reserveCoinUse_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRUCT, 'request', [CoinUseReservation, None], None, ), # 2
- (3, TType.STRING, 'locale', 'UTF8', None, ), # 3
-)
-
-
-class reserveCoinUse_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRING:
- self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('reserveCoinUse_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRING, 0)
- oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(reserveCoinUse_result)
-reserveCoinUse_result.thrift_spec = (
- (0, TType.STRING, 'success', 'UTF8', None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class revokeChannel_args(object):
- """
- Attributes:
- - channelId
-
- """
-
-
- def __init__(self, channelId=None,):
- self.channelId = channelId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRING:
- self.channelId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('revokeChannel_args')
- if self.channelId is not None:
- oprot.writeFieldBegin('channelId', TType.STRING, 1)
- oprot.writeString(self.channelId.encode('utf-8') if sys.version_info[0] == 2 else self.channelId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(revokeChannel_args)
-revokeChannel_args.thrift_spec = (
- None, # 0
- (1, TType.STRING, 'channelId', 'UTF8', None, ), # 1
-)
-
-
-class revokeChannel_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('revokeChannel_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(revokeChannel_result)
-revokeChannel_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class syncChannelData_args(object):
- """
- Attributes:
- - lastSynced
- - locale
-
- """
-
-
- def __init__(self, lastSynced=None, locale=None,):
- self.lastSynced = lastSynced
- self.locale = locale
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.lastSynced = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.locale = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('syncChannelData_args')
- if self.lastSynced is not None:
- oprot.writeFieldBegin('lastSynced', TType.I64, 2)
- oprot.writeI64(self.lastSynced)
- oprot.writeFieldEnd()
- if self.locale is not None:
- oprot.writeFieldBegin('locale', TType.STRING, 3)
- oprot.writeString(self.locale.encode('utf-8') if sys.version_info[0] == 2 else self.locale)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(syncChannelData_args)
-syncChannelData_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'lastSynced', None, None, ), # 2
- (3, TType.STRING, 'locale', 'UTF8', None, ), # 3
-)
-
-
-class syncChannelData_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ChannelSyncDatas()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('syncChannelData_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(syncChannelData_result)
-syncChannelData_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ChannelSyncDatas, None], None, ), # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-
-
-class updateChannelNotificationSetting_args(object):
- """
- Attributes:
- - setting
-
- """
-
-
- def __init__(self, setting=None,):
- self.setting = setting
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.LIST:
- self.setting = []
- (_etype659, _size656) = iprot.readListBegin()
- for _i660 in range(_size656):
- _elem661 = ChannelNotificationSetting()
- _elem661.read(iprot)
- self.setting.append(_elem661)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateChannelNotificationSetting_args')
- if self.setting is not None:
- oprot.writeFieldBegin('setting', TType.LIST, 1)
- oprot.writeListBegin(TType.STRUCT, len(self.setting))
- for iter662 in self.setting:
- iter662.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateChannelNotificationSetting_args)
-updateChannelNotificationSetting_args.thrift_spec = (
- None, # 0
- (1, TType.LIST, 'setting', (TType.STRUCT, [ChannelNotificationSetting, None], False), None, ), # 1
-)
-
-
-class updateChannelNotificationSetting_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = ChannelException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('updateChannelNotificationSetting_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(updateChannelNotificationSetting_result)
-updateChannelNotificationSetting_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1
-)
-fix_spec(all_structs)
-del all_structs
-
diff --git a/libs/core/LICENSE.md b/libs/core/LICENSE.md
deleted file mode 100644
index cb564da..0000000
--- a/libs/core/LICENSE.md
+++ /dev/null
@@ -1,163 +0,0 @@
-GNU Lesser General Public License
-=================================
-
-_Version 3, 29 June 2007_
-_Copyright © 2007 Free Software Foundation, Inc. <>_
-
-Everyone is permitted to copy and distribute verbatim copies
-of this license document, but changing it is not allowed.
-
-
-This version of the GNU Lesser General Public License incorporates
-the terms and conditions of version 3 of the GNU General Public
-License, supplemented by the additional permissions listed below.
-
-### 0. Additional Definitions
-
-As used herein, “this License” refers to version 3 of the GNU Lesser
-General Public License, and the “GNU GPL” refers to version 3 of the GNU
-General Public License.
-
-“The Library” refers to a covered work governed by this License,
-other than an Application or a Combined Work as defined below.
-
-An “Application” is any work that makes use of an interface provided
-by the Library, but which is not otherwise based on the Library.
-Defining a subclass of a class defined by the Library is deemed a mode
-of using an interface provided by the Library.
-
-A “Combined Work” is a work produced by combining or linking an
-Application with the Library. The particular version of the Library
-with which the Combined Work was made is also called the “Linked
-Version”.
-
-The “Minimal Corresponding Source” for a Combined Work means the
-Corresponding Source for the Combined Work, excluding any source code
-for portions of the Combined Work that, considered in isolation, are
-based on the Application, and not on the Linked Version.
-
-The “Corresponding Application Code” for a Combined Work means the
-object code and/or source code for the Application, including any data
-and utility programs needed for reproducing the Combined Work from the
-Application, but excluding the System Libraries of the Combined Work.
-
-### 1. Exception to Section 3 of the GNU GPL
-
-You may convey a covered work under sections 3 and 4 of this License
-without being bound by section 3 of the GNU GPL.
-
-### 2. Conveying Modified Versions
-
-If you modify a copy of the Library, and, in your modifications, a
-facility refers to a function or data to be supplied by an Application
-that uses the facility (other than as an argument passed when the
-facility is invoked), then you may convey a copy of the modified
-version:
-
-* **a)** under this License, provided that you make a good faith effort to
-ensure that, in the event an Application does not supply the
-function or data, the facility still operates, and performs
-whatever part of its purpose remains meaningful, or
-
-* **b)** under the GNU GPL, with none of the additional permissions of
-this License applicable to that copy.
-
-### 3. Object Code Incorporating Material from Library Header Files
-
-The object code form of an Application may incorporate material from
-a header file that is part of the Library. You may convey such object
-code under terms of your choice, provided that, if the incorporated
-material is not limited to numerical parameters, data structure
-layouts and accessors, or small macros, inline functions and templates
-(ten or fewer lines in length), you do both of the following:
-
-* **a)** Give prominent notice with each copy of the object code that the
-Library is used in it and that the Library and its use are
-covered by this License.
-* **b)** Accompany the object code with a copy of the GNU GPL and this license
-document.
-
-### 4. Combined Works
-
-You may convey a Combined Work under terms of your choice that,
-taken together, effectively do not restrict modification of the
-portions of the Library contained in the Combined Work and reverse
-engineering for debugging such modifications, if you also do each of
-the following:
-
-* **a)** Give prominent notice with each copy of the Combined Work that
-the Library is used in it and that the Library and its use are
-covered by this License.
-
-* **b)** Accompany the Combined Work with a copy of the GNU GPL and this license
-document.
-
-* **c)** For a Combined Work that displays copyright notices during
-execution, include the copyright notice for the Library among
-these notices, as well as a reference directing the user to the
-copies of the GNU GPL and this license document.
-
-* **d)** Do one of the following:
- - **0)** Convey the Minimal Corresponding Source under the terms of this
-License, and the Corresponding Application Code in a form
-suitable for, and under terms that permit, the user to
-recombine or relink the Application with a modified version of
-the Linked Version to produce a modified Combined Work, in the
-manner specified by section 6 of the GNU GPL for conveying
-Corresponding Source.
- - **1)** Use a suitable shared library mechanism for linking with the
-Library. A suitable mechanism is one that **(a)** uses at run time
-a copy of the Library already present on the user's computer
-system, and **(b)** will operate properly with a modified version
-of the Library that is interface-compatible with the Linked
-Version.
-
-* **e)** Provide Installation Information, but only if you would otherwise
-be required to provide such information under section 6 of the
-GNU GPL, and only to the extent that such information is
-necessary to install and execute a modified version of the
-Combined Work produced by recombining or relinking the
-Application with a modified version of the Linked Version. (If
-you use option **4d0**, the Installation Information must accompany
-the Minimal Corresponding Source and Corresponding Application
-Code. If you use option **4d1**, you must provide the Installation
-Information in the manner specified by section 6 of the GNU GPL
-for conveying Corresponding Source.)
-
-### 5. Combined Libraries
-
-You may place library facilities that are a work based on the
-Library side by side in a single library together with other library
-facilities that are not Applications and are not covered by this
-License, and convey such a combined library under terms of your
-choice, if you do both of the following:
-
-* **a)** Accompany the combined library with a copy of the same work based
-on the Library, uncombined with any other library facilities,
-conveyed under the terms of this License.
-* **b)** Give prominent notice with the combined library that part of it
-is a work based on the Library, and explaining where to find the
-accompanying uncombined form of the same work.
-
-### 6. Revised Versions of the GNU Lesser General Public License
-
-The Free Software Foundation may publish revised and/or new versions
-of the GNU Lesser General Public License from time to time. Such new
-versions will be similar in spirit to the present version, but may
-differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number. If the
-Library as you received it specifies that a certain numbered version
-of the GNU Lesser General Public License “or any later version”
-applies to it, you have the option of following the terms and
-conditions either of that published version or of any later version
-published by the Free Software Foundation. If the Library as you
-received it does not specify a version number of the GNU Lesser
-General Public License, you may choose any version of the GNU Lesser
-General Public License ever published by the Free Software Foundation.
-
-If the Library as you received it specifies that a proxy can decide
-whether future versions of the GNU Lesser General Public License shall
-apply, that proxy's public statement of acceptance of any version is
-permanent authorization for you to choose that version for the
-Library.
diff --git a/libs/core/MessageService-remote b/libs/core/MessageService-remote
deleted file mode 100755
index 824ec0c..0000000
--- a/libs/core/MessageService-remote
+++ /dev/null
@@ -1,131 +0,0 @@
-#!/usr/bin/env python
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-import sys
-import pprint
-if sys.version_info[0] > 2:
- from urllib.parse import urlparse
-else:
- from urlparse import urlparse
-from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient
-from thrift.protocol.TBinaryProtocol import TBinaryProtocol
-
-from line import MessageService
-from line.ttypes import *
-
-if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print('')
- print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]')
- print('')
- print('Functions:')
- print(' MessageOperations fetchMessageOperations(i64 localRevision, i64 lastOpTimestamp, i32 count)')
- print(' LastReadMessageIds getLastReadMessageIds(string chatId)')
- print(' multiGetLastReadMessageIds( chatIds)')
- print('')
- sys.exit(0)
-
-pp = pprint.PrettyPrinter(indent=2)
-host = 'localhost'
-port = 9090
-uri = ''
-framed = False
-ssl = False
-validate = True
-ca_certs = None
-keyfile = None
-certfile = None
-http = False
-argi = 1
-
-if sys.argv[argi] == '-h':
- parts = sys.argv[argi + 1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- argi += 2
-
-if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi + 1])
- parts = url[1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- else:
- port = 80
- uri = url[2]
- if url[4]:
- uri += '?%s' % url[4]
- http = True
- argi += 2
-
-if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
- framed = True
- argi += 1
-
-if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
- ssl = True
- argi += 1
-
-if sys.argv[argi] == '-novalidate':
- validate = False
- argi += 1
-
-if sys.argv[argi] == '-ca_certs':
- ca_certs = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-keyfile':
- keyfile = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-certfile':
- certfile = sys.argv[argi+1]
- argi += 2
-
-cmd = sys.argv[argi]
-args = sys.argv[argi + 1:]
-
-if http:
- transport = THttpClient.THttpClient(host, port, uri)
-else:
- if ssl:
- socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile)
- else:
- socket = TSocket.TSocket(host, port)
- if framed:
- transport = TTransport.TFramedTransport(socket)
- else:
- transport = TTransport.TBufferedTransport(socket)
-protocol = TBinaryProtocol(transport)
-client = MessageService.Client(protocol)
-transport.open()
-
-if cmd == 'fetchMessageOperations':
- if len(args) != 3:
- print('fetchMessageOperations requires 3 args')
- sys.exit(1)
- pp.pprint(client.fetchMessageOperations(eval(args[0]), eval(args[1]), eval(args[2]),))
-
-elif cmd == 'getLastReadMessageIds':
- if len(args) != 1:
- print('getLastReadMessageIds requires 1 args')
- sys.exit(1)
- pp.pprint(client.getLastReadMessageIds(args[0],))
-
-elif cmd == 'multiGetLastReadMessageIds':
- if len(args) != 1:
- print('multiGetLastReadMessageIds requires 1 args')
- sys.exit(1)
- pp.pprint(client.multiGetLastReadMessageIds(eval(args[0]),))
-
-else:
- print('Unrecognized method %s' % cmd)
- sys.exit(1)
-
-transport.close()
diff --git a/libs/core/MessageService.py b/libs/core/MessageService.py
deleted file mode 100644
index 54b2969..0000000
--- a/libs/core/MessageService.py
+++ /dev/null
@@ -1,727 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-from thrift.TRecursive import fix_spec
-
-import sys
-import logging
-from .ttypes import *
-from thrift.Thrift import TProcessor
-from thrift.transport import TTransport
-all_structs = []
-
-
-class Iface(object):
- def fetchMessageOperations(self, localRevision, lastOpTimestamp, count):
- """
- Parameters:
- - localRevision
- - lastOpTimestamp
- - count
-
- """
- pass
-
- def getLastReadMessageIds(self, chatId):
- """
- Parameters:
- - chatId
-
- """
- pass
-
- def multiGetLastReadMessageIds(self, chatIds):
- """
- Parameters:
- - chatIds
-
- """
- pass
-
-
-class Client(Iface):
- def __init__(self, iprot, oprot=None):
- self._iprot = self._oprot = iprot
- if oprot is not None:
- self._oprot = oprot
- self._seqid = 0
-
- def fetchMessageOperations(self, localRevision, lastOpTimestamp, count):
- """
- Parameters:
- - localRevision
- - lastOpTimestamp
- - count
-
- """
- self.send_fetchMessageOperations(localRevision, lastOpTimestamp, count)
- return self.recv_fetchMessageOperations()
-
- def send_fetchMessageOperations(self, localRevision, lastOpTimestamp, count):
- self._oprot.writeMessageBegin('fetchMessageOperations', TMessageType.CALL, self._seqid)
- args = fetchMessageOperations_args()
- args.localRevision = localRevision
- args.lastOpTimestamp = lastOpTimestamp
- args.count = count
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_fetchMessageOperations(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = fetchMessageOperations_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchMessageOperations failed: unknown result")
-
- def getLastReadMessageIds(self, chatId):
- """
- Parameters:
- - chatId
-
- """
- self.send_getLastReadMessageIds(chatId)
- return self.recv_getLastReadMessageIds()
-
- def send_getLastReadMessageIds(self, chatId):
- self._oprot.writeMessageBegin('getLastReadMessageIds', TMessageType.CALL, self._seqid)
- args = getLastReadMessageIds_args()
- args.chatId = chatId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getLastReadMessageIds(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getLastReadMessageIds_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastReadMessageIds failed: unknown result")
-
- def multiGetLastReadMessageIds(self, chatIds):
- """
- Parameters:
- - chatIds
-
- """
- self.send_multiGetLastReadMessageIds(chatIds)
- return self.recv_multiGetLastReadMessageIds()
-
- def send_multiGetLastReadMessageIds(self, chatIds):
- self._oprot.writeMessageBegin('multiGetLastReadMessageIds', TMessageType.CALL, self._seqid)
- args = multiGetLastReadMessageIds_args()
- args.chatIds = chatIds
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_multiGetLastReadMessageIds(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = multiGetLastReadMessageIds_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "multiGetLastReadMessageIds failed: unknown result")
-
-
-class Processor(Iface, TProcessor):
- def __init__(self, handler):
- self._handler = handler
- self._processMap = {}
- self._processMap["fetchMessageOperations"] = Processor.process_fetchMessageOperations
- self._processMap["getLastReadMessageIds"] = Processor.process_getLastReadMessageIds
- self._processMap["multiGetLastReadMessageIds"] = Processor.process_multiGetLastReadMessageIds
- self._on_message_begin = None
-
- def on_message_begin(self, func):
- self._on_message_begin = func
-
- def process(self, iprot, oprot):
- (name, type, seqid) = iprot.readMessageBegin()
- if self._on_message_begin:
- self._on_message_begin(name, type, seqid)
- if name not in self._processMap:
- iprot.skip(TType.STRUCT)
- iprot.readMessageEnd()
- x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
- oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
- x.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
- return
- else:
- self._processMap[name](self, seqid, iprot, oprot)
- return True
-
- def process_fetchMessageOperations(self, seqid, iprot, oprot):
- args = fetchMessageOperations_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = fetchMessageOperations_result()
- try:
- result.success = self._handler.fetchMessageOperations(args.localRevision, args.lastOpTimestamp, args.count)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("fetchMessageOperations", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getLastReadMessageIds(self, seqid, iprot, oprot):
- args = getLastReadMessageIds_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getLastReadMessageIds_result()
- try:
- result.success = self._handler.getLastReadMessageIds(args.chatId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getLastReadMessageIds", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_multiGetLastReadMessageIds(self, seqid, iprot, oprot):
- args = multiGetLastReadMessageIds_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = multiGetLastReadMessageIds_result()
- try:
- result.success = self._handler.multiGetLastReadMessageIds(args.chatIds)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("multiGetLastReadMessageIds", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
-# HELPER FUNCTIONS AND STRUCTURES
-
-
-class fetchMessageOperations_args(object):
- """
- Attributes:
- - localRevision
- - lastOpTimestamp
- - count
-
- """
-
-
- def __init__(self, localRevision=None, lastOpTimestamp=None, count=None,):
- self.localRevision = localRevision
- self.lastOpTimestamp = lastOpTimestamp
- self.count = count
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.localRevision = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I64:
- self.lastOpTimestamp = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.I32:
- self.count = iprot.readI32()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('fetchMessageOperations_args')
- if self.localRevision is not None:
- oprot.writeFieldBegin('localRevision', TType.I64, 2)
- oprot.writeI64(self.localRevision)
- oprot.writeFieldEnd()
- if self.lastOpTimestamp is not None:
- oprot.writeFieldBegin('lastOpTimestamp', TType.I64, 3)
- oprot.writeI64(self.lastOpTimestamp)
- oprot.writeFieldEnd()
- if self.count is not None:
- oprot.writeFieldBegin('count', TType.I32, 4)
- oprot.writeI32(self.count)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(fetchMessageOperations_args)
-fetchMessageOperations_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'localRevision', None, None, ), # 2
- (3, TType.I64, 'lastOpTimestamp', None, None, ), # 3
- (4, TType.I32, 'count', None, None, ), # 4
-)
-
-
-class fetchMessageOperations_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = MessageOperations()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('fetchMessageOperations_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(fetchMessageOperations_result)
-fetchMessageOperations_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [MessageOperations, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getLastReadMessageIds_args(object):
- """
- Attributes:
- - chatId
-
- """
-
-
- def __init__(self, chatId=None,):
- self.chatId = chatId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.chatId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getLastReadMessageIds_args')
- if self.chatId is not None:
- oprot.writeFieldBegin('chatId', TType.STRING, 2)
- oprot.writeString(self.chatId.encode('utf-8') if sys.version_info[0] == 2 else self.chatId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getLastReadMessageIds_args)
-getLastReadMessageIds_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'chatId', 'UTF8', None, ), # 2
-)
-
-
-class getLastReadMessageIds_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = LastReadMessageIds()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getLastReadMessageIds_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getLastReadMessageIds_result)
-getLastReadMessageIds_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [LastReadMessageIds, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class multiGetLastReadMessageIds_args(object):
- """
- Attributes:
- - chatIds
-
- """
-
-
- def __init__(self, chatIds=None,):
- self.chatIds = chatIds
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.LIST:
- self.chatIds = []
- (_etype666, _size663) = iprot.readListBegin()
- for _i667 in range(_size663):
- _elem668 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.chatIds.append(_elem668)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('multiGetLastReadMessageIds_args')
- if self.chatIds is not None:
- oprot.writeFieldBegin('chatIds', TType.LIST, 2)
- oprot.writeListBegin(TType.STRING, len(self.chatIds))
- for iter669 in self.chatIds:
- oprot.writeString(iter669.encode('utf-8') if sys.version_info[0] == 2 else iter669)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(multiGetLastReadMessageIds_args)
-multiGetLastReadMessageIds_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.LIST, 'chatIds', (TType.STRING, 'UTF8', False), None, ), # 2
-)
-
-
-class multiGetLastReadMessageIds_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype673, _size670) = iprot.readListBegin()
- for _i674 in range(_size670):
- _elem675 = LastReadMessageIds()
- _elem675.read(iprot)
- self.success.append(_elem675)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('multiGetLastReadMessageIds_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter676 in self.success:
- iter676.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(multiGetLastReadMessageIds_result)
-multiGetLastReadMessageIds_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, [LastReadMessageIds, None], False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-fix_spec(all_structs)
-del all_structs
-
diff --git a/libs/core/README.md b/libs/core/README.md
deleted file mode 100644
index 2271eb3..0000000
--- a/libs/core/README.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# OpenLineSelfBot - Cores
-
-> version 2.0
-
-The core of OLSB project.
-
-It is used to connect services of LINE.
-
-## License
-
-The software licensed under [GNU Lesser General Public License 3.0](LICENSE.md)
-
-## Requirement
-
-### Library
-
- libs_of_thrift >= 0.11.0
-
-### Compile (If you need)
-
- thrift >= 0.13.0
-
-## Usage
-
-Clone the repository and get the library of the programming language you want.
-
-> Start to Create your Applications. >o<
-
-or Compile the ["line.thrift"](https://github.com/star-inc/olsb_cores/blob/master/origin/line.thrift) for yourself...
-
-*(c) 2019 Star Inc.*
diff --git a/libs/core/ShopService-remote b/libs/core/ShopService-remote
deleted file mode 100755
index 6a56ae5..0000000
--- a/libs/core/ShopService-remote
+++ /dev/null
@@ -1,285 +0,0 @@
-#!/usr/bin/env python
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-import sys
-import pprint
-if sys.version_info[0] > 2:
- from urllib.parse import urlparse
-else:
- from urlparse import urlparse
-from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient
-from thrift.protocol.TBinaryProtocol import TBinaryProtocol
-
-from line import ShopService
-from line.ttypes import *
-
-if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print('')
- print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]')
- print('')
- print('Functions:')
- print(' void buyCoinProduct(PaymentReservation paymentReservation)')
- print(' void buyFreeProduct(string receiverMid, string productId, i32 messageTemplate, string language, string country, i64 packageId)')
- print(' void buyMustbuyProduct(string receiverMid, string productId, i32 messageTemplate, string language, string country, i64 packageId, string serialNumber)')
- print(' void checkCanReceivePresent(string recipientMid, i64 packageId, string language, string country)')
- print(' ProductList getActivePurchases(i64 start, i32 size, string language, string country)')
- print(' ProductSimpleList getActivePurchaseVersions(i64 start, i32 size, string language, string country)')
- print(' getCoinProducts(PaymentType appStoreCode, string country, string language)')
- print(' getCoinProductsByPgCode(PaymentType appStoreCode, PaymentPgType pgCode, string country, string language)')
- print(' CoinHistoryResult getCoinPurchaseHistory(CoinHistoryCondition request)')
- print(' CoinHistoryResult getCoinUseAndRefundHistory(CoinHistoryCondition request)')
- print(' ProductList getDownloads(i64 start, i32 size, string language, string country)')
- print(' ProductList getEventPackages(i64 start, i32 size, string language, string country)')
- print(' ProductList getNewlyReleasedPackages(i64 start, i32 size, string language, string country)')
- print(' ProductList getPopularPackages(i64 start, i32 size, string language, string country)')
- print(' ProductList getPresentsReceived(i64 start, i32 size, string language, string country)')
- print(' ProductList getPresentsSent(i64 start, i32 size, string language, string country)')
- print(' Product getProduct(i64 packageID, string language, string country)')
- print(' ProductList getProductList( productIdList, string language, string country)')
- print(' ProductList getProductListWithCarrier( productIdList, string language, string country, string carrierCode)')
- print(' Product getProductWithCarrier(i64 packageID, string language, string country, string carrierCode)')
- print(' ProductList getPurchaseHistory(i64 start, i32 size, string language, string country)')
- print(' Coin getTotalBalance(PaymentType appStoreCode)')
- print(' i64 notifyDownloaded(i64 packageId, string language)')
- print(' PaymentReservationResult reserveCoinPurchase(CoinPurchaseReservation request)')
- print(' PaymentReservationResult reservePayment(PaymentReservation paymentReservation)')
- print('')
- sys.exit(0)
-
-pp = pprint.PrettyPrinter(indent=2)
-host = 'localhost'
-port = 9090
-uri = ''
-framed = False
-ssl = False
-validate = True
-ca_certs = None
-keyfile = None
-certfile = None
-http = False
-argi = 1
-
-if sys.argv[argi] == '-h':
- parts = sys.argv[argi + 1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- argi += 2
-
-if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi + 1])
- parts = url[1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- else:
- port = 80
- uri = url[2]
- if url[4]:
- uri += '?%s' % url[4]
- http = True
- argi += 2
-
-if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
- framed = True
- argi += 1
-
-if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
- ssl = True
- argi += 1
-
-if sys.argv[argi] == '-novalidate':
- validate = False
- argi += 1
-
-if sys.argv[argi] == '-ca_certs':
- ca_certs = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-keyfile':
- keyfile = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-certfile':
- certfile = sys.argv[argi+1]
- argi += 2
-
-cmd = sys.argv[argi]
-args = sys.argv[argi + 1:]
-
-if http:
- transport = THttpClient.THttpClient(host, port, uri)
-else:
- if ssl:
- socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile)
- else:
- socket = TSocket.TSocket(host, port)
- if framed:
- transport = TTransport.TFramedTransport(socket)
- else:
- transport = TTransport.TBufferedTransport(socket)
-protocol = TBinaryProtocol(transport)
-client = ShopService.Client(protocol)
-transport.open()
-
-if cmd == 'buyCoinProduct':
- if len(args) != 1:
- print('buyCoinProduct requires 1 args')
- sys.exit(1)
- pp.pprint(client.buyCoinProduct(eval(args[0]),))
-
-elif cmd == 'buyFreeProduct':
- if len(args) != 6:
- print('buyFreeProduct requires 6 args')
- sys.exit(1)
- pp.pprint(client.buyFreeProduct(args[0], args[1], eval(args[2]), args[3], args[4], eval(args[5]),))
-
-elif cmd == 'buyMustbuyProduct':
- if len(args) != 7:
- print('buyMustbuyProduct requires 7 args')
- sys.exit(1)
- pp.pprint(client.buyMustbuyProduct(args[0], args[1], eval(args[2]), args[3], args[4], eval(args[5]), args[6],))
-
-elif cmd == 'checkCanReceivePresent':
- if len(args) != 4:
- print('checkCanReceivePresent requires 4 args')
- sys.exit(1)
- pp.pprint(client.checkCanReceivePresent(args[0], eval(args[1]), args[2], args[3],))
-
-elif cmd == 'getActivePurchases':
- if len(args) != 4:
- print('getActivePurchases requires 4 args')
- sys.exit(1)
- pp.pprint(client.getActivePurchases(eval(args[0]), eval(args[1]), args[2], args[3],))
-
-elif cmd == 'getActivePurchaseVersions':
- if len(args) != 4:
- print('getActivePurchaseVersions requires 4 args')
- sys.exit(1)
- pp.pprint(client.getActivePurchaseVersions(eval(args[0]), eval(args[1]), args[2], args[3],))
-
-elif cmd == 'getCoinProducts':
- if len(args) != 3:
- print('getCoinProducts requires 3 args')
- sys.exit(1)
- pp.pprint(client.getCoinProducts(eval(args[0]), args[1], args[2],))
-
-elif cmd == 'getCoinProductsByPgCode':
- if len(args) != 4:
- print('getCoinProductsByPgCode requires 4 args')
- sys.exit(1)
- pp.pprint(client.getCoinProductsByPgCode(eval(args[0]), eval(args[1]), args[2], args[3],))
-
-elif cmd == 'getCoinPurchaseHistory':
- if len(args) != 1:
- print('getCoinPurchaseHistory requires 1 args')
- sys.exit(1)
- pp.pprint(client.getCoinPurchaseHistory(eval(args[0]),))
-
-elif cmd == 'getCoinUseAndRefundHistory':
- if len(args) != 1:
- print('getCoinUseAndRefundHistory requires 1 args')
- sys.exit(1)
- pp.pprint(client.getCoinUseAndRefundHistory(eval(args[0]),))
-
-elif cmd == 'getDownloads':
- if len(args) != 4:
- print('getDownloads requires 4 args')
- sys.exit(1)
- pp.pprint(client.getDownloads(eval(args[0]), eval(args[1]), args[2], args[3],))
-
-elif cmd == 'getEventPackages':
- if len(args) != 4:
- print('getEventPackages requires 4 args')
- sys.exit(1)
- pp.pprint(client.getEventPackages(eval(args[0]), eval(args[1]), args[2], args[3],))
-
-elif cmd == 'getNewlyReleasedPackages':
- if len(args) != 4:
- print('getNewlyReleasedPackages requires 4 args')
- sys.exit(1)
- pp.pprint(client.getNewlyReleasedPackages(eval(args[0]), eval(args[1]), args[2], args[3],))
-
-elif cmd == 'getPopularPackages':
- if len(args) != 4:
- print('getPopularPackages requires 4 args')
- sys.exit(1)
- pp.pprint(client.getPopularPackages(eval(args[0]), eval(args[1]), args[2], args[3],))
-
-elif cmd == 'getPresentsReceived':
- if len(args) != 4:
- print('getPresentsReceived requires 4 args')
- sys.exit(1)
- pp.pprint(client.getPresentsReceived(eval(args[0]), eval(args[1]), args[2], args[3],))
-
-elif cmd == 'getPresentsSent':
- if len(args) != 4:
- print('getPresentsSent requires 4 args')
- sys.exit(1)
- pp.pprint(client.getPresentsSent(eval(args[0]), eval(args[1]), args[2], args[3],))
-
-elif cmd == 'getProduct':
- if len(args) != 3:
- print('getProduct requires 3 args')
- sys.exit(1)
- pp.pprint(client.getProduct(eval(args[0]), args[1], args[2],))
-
-elif cmd == 'getProductList':
- if len(args) != 3:
- print('getProductList requires 3 args')
- sys.exit(1)
- pp.pprint(client.getProductList(eval(args[0]), args[1], args[2],))
-
-elif cmd == 'getProductListWithCarrier':
- if len(args) != 4:
- print('getProductListWithCarrier requires 4 args')
- sys.exit(1)
- pp.pprint(client.getProductListWithCarrier(eval(args[0]), args[1], args[2], args[3],))
-
-elif cmd == 'getProductWithCarrier':
- if len(args) != 4:
- print('getProductWithCarrier requires 4 args')
- sys.exit(1)
- pp.pprint(client.getProductWithCarrier(eval(args[0]), args[1], args[2], args[3],))
-
-elif cmd == 'getPurchaseHistory':
- if len(args) != 4:
- print('getPurchaseHistory requires 4 args')
- sys.exit(1)
- pp.pprint(client.getPurchaseHistory(eval(args[0]), eval(args[1]), args[2], args[3],))
-
-elif cmd == 'getTotalBalance':
- if len(args) != 1:
- print('getTotalBalance requires 1 args')
- sys.exit(1)
- pp.pprint(client.getTotalBalance(eval(args[0]),))
-
-elif cmd == 'notifyDownloaded':
- if len(args) != 2:
- print('notifyDownloaded requires 2 args')
- sys.exit(1)
- pp.pprint(client.notifyDownloaded(eval(args[0]), args[1],))
-
-elif cmd == 'reserveCoinPurchase':
- if len(args) != 1:
- print('reserveCoinPurchase requires 1 args')
- sys.exit(1)
- pp.pprint(client.reserveCoinPurchase(eval(args[0]),))
-
-elif cmd == 'reservePayment':
- if len(args) != 1:
- print('reservePayment requires 1 args')
- sys.exit(1)
- pp.pprint(client.reservePayment(eval(args[0]),))
-
-else:
- print('Unrecognized method %s' % cmd)
- sys.exit(1)
-
-transport.close()
diff --git a/libs/core/ShopService.py b/libs/core/ShopService.py
deleted file mode 100644
index 57425e7..0000000
--- a/libs/core/ShopService.py
+++ /dev/null
@@ -1,6070 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-from thrift.TRecursive import fix_spec
-
-import sys
-import logging
-from .ttypes import *
-from thrift.Thrift import TProcessor
-from thrift.transport import TTransport
-all_structs = []
-
-
-class Iface(object):
- def buyCoinProduct(self, paymentReservation):
- """
- Parameters:
- - paymentReservation
-
- """
- pass
-
- def buyFreeProduct(self, receiverMid, productId, messageTemplate, language, country, packageId):
- """
- Parameters:
- - receiverMid
- - productId
- - messageTemplate
- - language
- - country
- - packageId
-
- """
- pass
-
- def buyMustbuyProduct(self, receiverMid, productId, messageTemplate, language, country, packageId, serialNumber):
- """
- Parameters:
- - receiverMid
- - productId
- - messageTemplate
- - language
- - country
- - packageId
- - serialNumber
-
- """
- pass
-
- def checkCanReceivePresent(self, recipientMid, packageId, language, country):
- """
- Parameters:
- - recipientMid
- - packageId
- - language
- - country
-
- """
- pass
-
- def getActivePurchases(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- pass
-
- def getActivePurchaseVersions(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- pass
-
- def getCoinProducts(self, appStoreCode, country, language):
- """
- Parameters:
- - appStoreCode
- - country
- - language
-
- """
- pass
-
- def getCoinProductsByPgCode(self, appStoreCode, pgCode, country, language):
- """
- Parameters:
- - appStoreCode
- - pgCode
- - country
- - language
-
- """
- pass
-
- def getCoinPurchaseHistory(self, request):
- """
- Parameters:
- - request
-
- """
- pass
-
- def getCoinUseAndRefundHistory(self, request):
- """
- Parameters:
- - request
-
- """
- pass
-
- def getDownloads(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- pass
-
- def getEventPackages(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- pass
-
- def getNewlyReleasedPackages(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- pass
-
- def getPopularPackages(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- pass
-
- def getPresentsReceived(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- pass
-
- def getPresentsSent(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- pass
-
- def getProduct(self, packageID, language, country):
- """
- Parameters:
- - packageID
- - language
- - country
-
- """
- pass
-
- def getProductList(self, productIdList, language, country):
- """
- Parameters:
- - productIdList
- - language
- - country
-
- """
- pass
-
- def getProductListWithCarrier(self, productIdList, language, country, carrierCode):
- """
- Parameters:
- - productIdList
- - language
- - country
- - carrierCode
-
- """
- pass
-
- def getProductWithCarrier(self, packageID, language, country, carrierCode):
- """
- Parameters:
- - packageID
- - language
- - country
- - carrierCode
-
- """
- pass
-
- def getPurchaseHistory(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- pass
-
- def getTotalBalance(self, appStoreCode):
- """
- Parameters:
- - appStoreCode
-
- """
- pass
-
- def notifyDownloaded(self, packageId, language):
- """
- Parameters:
- - packageId
- - language
-
- """
- pass
-
- def reserveCoinPurchase(self, request):
- """
- Parameters:
- - request
-
- """
- pass
-
- def reservePayment(self, paymentReservation):
- """
- Parameters:
- - paymentReservation
-
- """
- pass
-
-
-class Client(Iface):
- def __init__(self, iprot, oprot=None):
- self._iprot = self._oprot = iprot
- if oprot is not None:
- self._oprot = oprot
- self._seqid = 0
-
- def buyCoinProduct(self, paymentReservation):
- """
- Parameters:
- - paymentReservation
-
- """
- self.send_buyCoinProduct(paymentReservation)
- self.recv_buyCoinProduct()
-
- def send_buyCoinProduct(self, paymentReservation):
- self._oprot.writeMessageBegin('buyCoinProduct', TMessageType.CALL, self._seqid)
- args = buyCoinProduct_args()
- args.paymentReservation = paymentReservation
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_buyCoinProduct(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = buyCoinProduct_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def buyFreeProduct(self, receiverMid, productId, messageTemplate, language, country, packageId):
- """
- Parameters:
- - receiverMid
- - productId
- - messageTemplate
- - language
- - country
- - packageId
-
- """
- self.send_buyFreeProduct(receiverMid, productId, messageTemplate, language, country, packageId)
- self.recv_buyFreeProduct()
-
- def send_buyFreeProduct(self, receiverMid, productId, messageTemplate, language, country, packageId):
- self._oprot.writeMessageBegin('buyFreeProduct', TMessageType.CALL, self._seqid)
- args = buyFreeProduct_args()
- args.receiverMid = receiverMid
- args.productId = productId
- args.messageTemplate = messageTemplate
- args.language = language
- args.country = country
- args.packageId = packageId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_buyFreeProduct(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = buyFreeProduct_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def buyMustbuyProduct(self, receiverMid, productId, messageTemplate, language, country, packageId, serialNumber):
- """
- Parameters:
- - receiverMid
- - productId
- - messageTemplate
- - language
- - country
- - packageId
- - serialNumber
-
- """
- self.send_buyMustbuyProduct(receiverMid, productId, messageTemplate, language, country, packageId, serialNumber)
- self.recv_buyMustbuyProduct()
-
- def send_buyMustbuyProduct(self, receiverMid, productId, messageTemplate, language, country, packageId, serialNumber):
- self._oprot.writeMessageBegin('buyMustbuyProduct', TMessageType.CALL, self._seqid)
- args = buyMustbuyProduct_args()
- args.receiverMid = receiverMid
- args.productId = productId
- args.messageTemplate = messageTemplate
- args.language = language
- args.country = country
- args.packageId = packageId
- args.serialNumber = serialNumber
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_buyMustbuyProduct(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = buyMustbuyProduct_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def checkCanReceivePresent(self, recipientMid, packageId, language, country):
- """
- Parameters:
- - recipientMid
- - packageId
- - language
- - country
-
- """
- self.send_checkCanReceivePresent(recipientMid, packageId, language, country)
- self.recv_checkCanReceivePresent()
-
- def send_checkCanReceivePresent(self, recipientMid, packageId, language, country):
- self._oprot.writeMessageBegin('checkCanReceivePresent', TMessageType.CALL, self._seqid)
- args = checkCanReceivePresent_args()
- args.recipientMid = recipientMid
- args.packageId = packageId
- args.language = language
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_checkCanReceivePresent(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = checkCanReceivePresent_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
- def getActivePurchases(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- self.send_getActivePurchases(start, size, language, country)
- return self.recv_getActivePurchases()
-
- def send_getActivePurchases(self, start, size, language, country):
- self._oprot.writeMessageBegin('getActivePurchases', TMessageType.CALL, self._seqid)
- args = getActivePurchases_args()
- args.start = start
- args.size = size
- args.language = language
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getActivePurchases(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getActivePurchases_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivePurchases failed: unknown result")
-
- def getActivePurchaseVersions(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- self.send_getActivePurchaseVersions(start, size, language, country)
- return self.recv_getActivePurchaseVersions()
-
- def send_getActivePurchaseVersions(self, start, size, language, country):
- self._oprot.writeMessageBegin('getActivePurchaseVersions', TMessageType.CALL, self._seqid)
- args = getActivePurchaseVersions_args()
- args.start = start
- args.size = size
- args.language = language
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getActivePurchaseVersions(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getActivePurchaseVersions_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivePurchaseVersions failed: unknown result")
-
- def getCoinProducts(self, appStoreCode, country, language):
- """
- Parameters:
- - appStoreCode
- - country
- - language
-
- """
- self.send_getCoinProducts(appStoreCode, country, language)
- return self.recv_getCoinProducts()
-
- def send_getCoinProducts(self, appStoreCode, country, language):
- self._oprot.writeMessageBegin('getCoinProducts', TMessageType.CALL, self._seqid)
- args = getCoinProducts_args()
- args.appStoreCode = appStoreCode
- args.country = country
- args.language = language
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getCoinProducts(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getCoinProducts_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getCoinProducts failed: unknown result")
-
- def getCoinProductsByPgCode(self, appStoreCode, pgCode, country, language):
- """
- Parameters:
- - appStoreCode
- - pgCode
- - country
- - language
-
- """
- self.send_getCoinProductsByPgCode(appStoreCode, pgCode, country, language)
- return self.recv_getCoinProductsByPgCode()
-
- def send_getCoinProductsByPgCode(self, appStoreCode, pgCode, country, language):
- self._oprot.writeMessageBegin('getCoinProductsByPgCode', TMessageType.CALL, self._seqid)
- args = getCoinProductsByPgCode_args()
- args.appStoreCode = appStoreCode
- args.pgCode = pgCode
- args.country = country
- args.language = language
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getCoinProductsByPgCode(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getCoinProductsByPgCode_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getCoinProductsByPgCode failed: unknown result")
-
- def getCoinPurchaseHistory(self, request):
- """
- Parameters:
- - request
-
- """
- self.send_getCoinPurchaseHistory(request)
- return self.recv_getCoinPurchaseHistory()
-
- def send_getCoinPurchaseHistory(self, request):
- self._oprot.writeMessageBegin('getCoinPurchaseHistory', TMessageType.CALL, self._seqid)
- args = getCoinPurchaseHistory_args()
- args.request = request
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getCoinPurchaseHistory(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getCoinPurchaseHistory_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getCoinPurchaseHistory failed: unknown result")
-
- def getCoinUseAndRefundHistory(self, request):
- """
- Parameters:
- - request
-
- """
- self.send_getCoinUseAndRefundHistory(request)
- return self.recv_getCoinUseAndRefundHistory()
-
- def send_getCoinUseAndRefundHistory(self, request):
- self._oprot.writeMessageBegin('getCoinUseAndRefundHistory', TMessageType.CALL, self._seqid)
- args = getCoinUseAndRefundHistory_args()
- args.request = request
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getCoinUseAndRefundHistory(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getCoinUseAndRefundHistory_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getCoinUseAndRefundHistory failed: unknown result")
-
- def getDownloads(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- self.send_getDownloads(start, size, language, country)
- return self.recv_getDownloads()
-
- def send_getDownloads(self, start, size, language, country):
- self._oprot.writeMessageBegin('getDownloads', TMessageType.CALL, self._seqid)
- args = getDownloads_args()
- args.start = start
- args.size = size
- args.language = language
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getDownloads(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getDownloads_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getDownloads failed: unknown result")
-
- def getEventPackages(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- self.send_getEventPackages(start, size, language, country)
- return self.recv_getEventPackages()
-
- def send_getEventPackages(self, start, size, language, country):
- self._oprot.writeMessageBegin('getEventPackages', TMessageType.CALL, self._seqid)
- args = getEventPackages_args()
- args.start = start
- args.size = size
- args.language = language
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getEventPackages(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getEventPackages_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getEventPackages failed: unknown result")
-
- def getNewlyReleasedPackages(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- self.send_getNewlyReleasedPackages(start, size, language, country)
- return self.recv_getNewlyReleasedPackages()
-
- def send_getNewlyReleasedPackages(self, start, size, language, country):
- self._oprot.writeMessageBegin('getNewlyReleasedPackages', TMessageType.CALL, self._seqid)
- args = getNewlyReleasedPackages_args()
- args.start = start
- args.size = size
- args.language = language
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getNewlyReleasedPackages(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getNewlyReleasedPackages_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getNewlyReleasedPackages failed: unknown result")
-
- def getPopularPackages(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- self.send_getPopularPackages(start, size, language, country)
- return self.recv_getPopularPackages()
-
- def send_getPopularPackages(self, start, size, language, country):
- self._oprot.writeMessageBegin('getPopularPackages', TMessageType.CALL, self._seqid)
- args = getPopularPackages_args()
- args.start = start
- args.size = size
- args.language = language
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getPopularPackages(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getPopularPackages_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getPopularPackages failed: unknown result")
-
- def getPresentsReceived(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- self.send_getPresentsReceived(start, size, language, country)
- return self.recv_getPresentsReceived()
-
- def send_getPresentsReceived(self, start, size, language, country):
- self._oprot.writeMessageBegin('getPresentsReceived', TMessageType.CALL, self._seqid)
- args = getPresentsReceived_args()
- args.start = start
- args.size = size
- args.language = language
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getPresentsReceived(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getPresentsReceived_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getPresentsReceived failed: unknown result")
-
- def getPresentsSent(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- self.send_getPresentsSent(start, size, language, country)
- return self.recv_getPresentsSent()
-
- def send_getPresentsSent(self, start, size, language, country):
- self._oprot.writeMessageBegin('getPresentsSent', TMessageType.CALL, self._seqid)
- args = getPresentsSent_args()
- args.start = start
- args.size = size
- args.language = language
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getPresentsSent(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getPresentsSent_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getPresentsSent failed: unknown result")
-
- def getProduct(self, packageID, language, country):
- """
- Parameters:
- - packageID
- - language
- - country
-
- """
- self.send_getProduct(packageID, language, country)
- return self.recv_getProduct()
-
- def send_getProduct(self, packageID, language, country):
- self._oprot.writeMessageBegin('getProduct', TMessageType.CALL, self._seqid)
- args = getProduct_args()
- args.packageID = packageID
- args.language = language
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getProduct(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getProduct_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getProduct failed: unknown result")
-
- def getProductList(self, productIdList, language, country):
- """
- Parameters:
- - productIdList
- - language
- - country
-
- """
- self.send_getProductList(productIdList, language, country)
- return self.recv_getProductList()
-
- def send_getProductList(self, productIdList, language, country):
- self._oprot.writeMessageBegin('getProductList', TMessageType.CALL, self._seqid)
- args = getProductList_args()
- args.productIdList = productIdList
- args.language = language
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getProductList(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getProductList_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductList failed: unknown result")
-
- def getProductListWithCarrier(self, productIdList, language, country, carrierCode):
- """
- Parameters:
- - productIdList
- - language
- - country
- - carrierCode
-
- """
- self.send_getProductListWithCarrier(productIdList, language, country, carrierCode)
- return self.recv_getProductListWithCarrier()
-
- def send_getProductListWithCarrier(self, productIdList, language, country, carrierCode):
- self._oprot.writeMessageBegin('getProductListWithCarrier', TMessageType.CALL, self._seqid)
- args = getProductListWithCarrier_args()
- args.productIdList = productIdList
- args.language = language
- args.country = country
- args.carrierCode = carrierCode
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getProductListWithCarrier(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getProductListWithCarrier_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductListWithCarrier failed: unknown result")
-
- def getProductWithCarrier(self, packageID, language, country, carrierCode):
- """
- Parameters:
- - packageID
- - language
- - country
- - carrierCode
-
- """
- self.send_getProductWithCarrier(packageID, language, country, carrierCode)
- return self.recv_getProductWithCarrier()
-
- def send_getProductWithCarrier(self, packageID, language, country, carrierCode):
- self._oprot.writeMessageBegin('getProductWithCarrier', TMessageType.CALL, self._seqid)
- args = getProductWithCarrier_args()
- args.packageID = packageID
- args.language = language
- args.country = country
- args.carrierCode = carrierCode
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getProductWithCarrier(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getProductWithCarrier_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductWithCarrier failed: unknown result")
-
- def getPurchaseHistory(self, start, size, language, country):
- """
- Parameters:
- - start
- - size
- - language
- - country
-
- """
- self.send_getPurchaseHistory(start, size, language, country)
- return self.recv_getPurchaseHistory()
-
- def send_getPurchaseHistory(self, start, size, language, country):
- self._oprot.writeMessageBegin('getPurchaseHistory', TMessageType.CALL, self._seqid)
- args = getPurchaseHistory_args()
- args.start = start
- args.size = size
- args.language = language
- args.country = country
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getPurchaseHistory(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getPurchaseHistory_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseHistory failed: unknown result")
-
- def getTotalBalance(self, appStoreCode):
- """
- Parameters:
- - appStoreCode
-
- """
- self.send_getTotalBalance(appStoreCode)
- return self.recv_getTotalBalance()
-
- def send_getTotalBalance(self, appStoreCode):
- self._oprot.writeMessageBegin('getTotalBalance', TMessageType.CALL, self._seqid)
- args = getTotalBalance_args()
- args.appStoreCode = appStoreCode
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getTotalBalance(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getTotalBalance_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getTotalBalance failed: unknown result")
-
- def notifyDownloaded(self, packageId, language):
- """
- Parameters:
- - packageId
- - language
-
- """
- self.send_notifyDownloaded(packageId, language)
- return self.recv_notifyDownloaded()
-
- def send_notifyDownloaded(self, packageId, language):
- self._oprot.writeMessageBegin('notifyDownloaded', TMessageType.CALL, self._seqid)
- args = notifyDownloaded_args()
- args.packageId = packageId
- args.language = language
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_notifyDownloaded(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = notifyDownloaded_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "notifyDownloaded failed: unknown result")
-
- def reserveCoinPurchase(self, request):
- """
- Parameters:
- - request
-
- """
- self.send_reserveCoinPurchase(request)
- return self.recv_reserveCoinPurchase()
-
- def send_reserveCoinPurchase(self, request):
- self._oprot.writeMessageBegin('reserveCoinPurchase', TMessageType.CALL, self._seqid)
- args = reserveCoinPurchase_args()
- args.request = request
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_reserveCoinPurchase(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = reserveCoinPurchase_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveCoinPurchase failed: unknown result")
-
- def reservePayment(self, paymentReservation):
- """
- Parameters:
- - paymentReservation
-
- """
- self.send_reservePayment(paymentReservation)
- return self.recv_reservePayment()
-
- def send_reservePayment(self, paymentReservation):
- self._oprot.writeMessageBegin('reservePayment', TMessageType.CALL, self._seqid)
- args = reservePayment_args()
- args.paymentReservation = paymentReservation
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_reservePayment(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = reservePayment_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "reservePayment failed: unknown result")
-
-
-class Processor(Iface, TProcessor):
- def __init__(self, handler):
- self._handler = handler
- self._processMap = {}
- self._processMap["buyCoinProduct"] = Processor.process_buyCoinProduct
- self._processMap["buyFreeProduct"] = Processor.process_buyFreeProduct
- self._processMap["buyMustbuyProduct"] = Processor.process_buyMustbuyProduct
- self._processMap["checkCanReceivePresent"] = Processor.process_checkCanReceivePresent
- self._processMap["getActivePurchases"] = Processor.process_getActivePurchases
- self._processMap["getActivePurchaseVersions"] = Processor.process_getActivePurchaseVersions
- self._processMap["getCoinProducts"] = Processor.process_getCoinProducts
- self._processMap["getCoinProductsByPgCode"] = Processor.process_getCoinProductsByPgCode
- self._processMap["getCoinPurchaseHistory"] = Processor.process_getCoinPurchaseHistory
- self._processMap["getCoinUseAndRefundHistory"] = Processor.process_getCoinUseAndRefundHistory
- self._processMap["getDownloads"] = Processor.process_getDownloads
- self._processMap["getEventPackages"] = Processor.process_getEventPackages
- self._processMap["getNewlyReleasedPackages"] = Processor.process_getNewlyReleasedPackages
- self._processMap["getPopularPackages"] = Processor.process_getPopularPackages
- self._processMap["getPresentsReceived"] = Processor.process_getPresentsReceived
- self._processMap["getPresentsSent"] = Processor.process_getPresentsSent
- self._processMap["getProduct"] = Processor.process_getProduct
- self._processMap["getProductList"] = Processor.process_getProductList
- self._processMap["getProductListWithCarrier"] = Processor.process_getProductListWithCarrier
- self._processMap["getProductWithCarrier"] = Processor.process_getProductWithCarrier
- self._processMap["getPurchaseHistory"] = Processor.process_getPurchaseHistory
- self._processMap["getTotalBalance"] = Processor.process_getTotalBalance
- self._processMap["notifyDownloaded"] = Processor.process_notifyDownloaded
- self._processMap["reserveCoinPurchase"] = Processor.process_reserveCoinPurchase
- self._processMap["reservePayment"] = Processor.process_reservePayment
- self._on_message_begin = None
-
- def on_message_begin(self, func):
- self._on_message_begin = func
-
- def process(self, iprot, oprot):
- (name, type, seqid) = iprot.readMessageBegin()
- if self._on_message_begin:
- self._on_message_begin(name, type, seqid)
- if name not in self._processMap:
- iprot.skip(TType.STRUCT)
- iprot.readMessageEnd()
- x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
- oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
- x.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
- return
- else:
- self._processMap[name](self, seqid, iprot, oprot)
- return True
-
- def process_buyCoinProduct(self, seqid, iprot, oprot):
- args = buyCoinProduct_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = buyCoinProduct_result()
- try:
- self._handler.buyCoinProduct(args.paymentReservation)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("buyCoinProduct", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_buyFreeProduct(self, seqid, iprot, oprot):
- args = buyFreeProduct_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = buyFreeProduct_result()
- try:
- self._handler.buyFreeProduct(args.receiverMid, args.productId, args.messageTemplate, args.language, args.country, args.packageId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("buyFreeProduct", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_buyMustbuyProduct(self, seqid, iprot, oprot):
- args = buyMustbuyProduct_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = buyMustbuyProduct_result()
- try:
- self._handler.buyMustbuyProduct(args.receiverMid, args.productId, args.messageTemplate, args.language, args.country, args.packageId, args.serialNumber)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("buyMustbuyProduct", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_checkCanReceivePresent(self, seqid, iprot, oprot):
- args = checkCanReceivePresent_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = checkCanReceivePresent_result()
- try:
- self._handler.checkCanReceivePresent(args.recipientMid, args.packageId, args.language, args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("checkCanReceivePresent", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getActivePurchases(self, seqid, iprot, oprot):
- args = getActivePurchases_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getActivePurchases_result()
- try:
- result.success = self._handler.getActivePurchases(args.start, args.size, args.language, args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getActivePurchases", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getActivePurchaseVersions(self, seqid, iprot, oprot):
- args = getActivePurchaseVersions_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getActivePurchaseVersions_result()
- try:
- result.success = self._handler.getActivePurchaseVersions(args.start, args.size, args.language, args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getActivePurchaseVersions", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getCoinProducts(self, seqid, iprot, oprot):
- args = getCoinProducts_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getCoinProducts_result()
- try:
- result.success = self._handler.getCoinProducts(args.appStoreCode, args.country, args.language)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getCoinProducts", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getCoinProductsByPgCode(self, seqid, iprot, oprot):
- args = getCoinProductsByPgCode_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getCoinProductsByPgCode_result()
- try:
- result.success = self._handler.getCoinProductsByPgCode(args.appStoreCode, args.pgCode, args.country, args.language)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getCoinProductsByPgCode", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getCoinPurchaseHistory(self, seqid, iprot, oprot):
- args = getCoinPurchaseHistory_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getCoinPurchaseHistory_result()
- try:
- result.success = self._handler.getCoinPurchaseHistory(args.request)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getCoinPurchaseHistory", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getCoinUseAndRefundHistory(self, seqid, iprot, oprot):
- args = getCoinUseAndRefundHistory_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getCoinUseAndRefundHistory_result()
- try:
- result.success = self._handler.getCoinUseAndRefundHistory(args.request)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getCoinUseAndRefundHistory", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getDownloads(self, seqid, iprot, oprot):
- args = getDownloads_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getDownloads_result()
- try:
- result.success = self._handler.getDownloads(args.start, args.size, args.language, args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getDownloads", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getEventPackages(self, seqid, iprot, oprot):
- args = getEventPackages_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getEventPackages_result()
- try:
- result.success = self._handler.getEventPackages(args.start, args.size, args.language, args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getEventPackages", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getNewlyReleasedPackages(self, seqid, iprot, oprot):
- args = getNewlyReleasedPackages_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getNewlyReleasedPackages_result()
- try:
- result.success = self._handler.getNewlyReleasedPackages(args.start, args.size, args.language, args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getNewlyReleasedPackages", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getPopularPackages(self, seqid, iprot, oprot):
- args = getPopularPackages_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getPopularPackages_result()
- try:
- result.success = self._handler.getPopularPackages(args.start, args.size, args.language, args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getPopularPackages", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getPresentsReceived(self, seqid, iprot, oprot):
- args = getPresentsReceived_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getPresentsReceived_result()
- try:
- result.success = self._handler.getPresentsReceived(args.start, args.size, args.language, args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getPresentsReceived", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getPresentsSent(self, seqid, iprot, oprot):
- args = getPresentsSent_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getPresentsSent_result()
- try:
- result.success = self._handler.getPresentsSent(args.start, args.size, args.language, args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getPresentsSent", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getProduct(self, seqid, iprot, oprot):
- args = getProduct_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getProduct_result()
- try:
- result.success = self._handler.getProduct(args.packageID, args.language, args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getProduct", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getProductList(self, seqid, iprot, oprot):
- args = getProductList_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getProductList_result()
- try:
- result.success = self._handler.getProductList(args.productIdList, args.language, args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getProductList", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getProductListWithCarrier(self, seqid, iprot, oprot):
- args = getProductListWithCarrier_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getProductListWithCarrier_result()
- try:
- result.success = self._handler.getProductListWithCarrier(args.productIdList, args.language, args.country, args.carrierCode)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getProductListWithCarrier", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getProductWithCarrier(self, seqid, iprot, oprot):
- args = getProductWithCarrier_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getProductWithCarrier_result()
- try:
- result.success = self._handler.getProductWithCarrier(args.packageID, args.language, args.country, args.carrierCode)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getProductWithCarrier", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getPurchaseHistory(self, seqid, iprot, oprot):
- args = getPurchaseHistory_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getPurchaseHistory_result()
- try:
- result.success = self._handler.getPurchaseHistory(args.start, args.size, args.language, args.country)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getPurchaseHistory", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getTotalBalance(self, seqid, iprot, oprot):
- args = getTotalBalance_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getTotalBalance_result()
- try:
- result.success = self._handler.getTotalBalance(args.appStoreCode)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getTotalBalance", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_notifyDownloaded(self, seqid, iprot, oprot):
- args = notifyDownloaded_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = notifyDownloaded_result()
- try:
- result.success = self._handler.notifyDownloaded(args.packageId, args.language)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("notifyDownloaded", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_reserveCoinPurchase(self, seqid, iprot, oprot):
- args = reserveCoinPurchase_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = reserveCoinPurchase_result()
- try:
- result.success = self._handler.reserveCoinPurchase(args.request)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("reserveCoinPurchase", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_reservePayment(self, seqid, iprot, oprot):
- args = reservePayment_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = reservePayment_result()
- try:
- result.success = self._handler.reservePayment(args.paymentReservation)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("reservePayment", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
-# HELPER FUNCTIONS AND STRUCTURES
-
-
-class buyCoinProduct_args(object):
- """
- Attributes:
- - paymentReservation
-
- """
-
-
- def __init__(self, paymentReservation=None,):
- self.paymentReservation = paymentReservation
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRUCT:
- self.paymentReservation = PaymentReservation()
- self.paymentReservation.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('buyCoinProduct_args')
- if self.paymentReservation is not None:
- oprot.writeFieldBegin('paymentReservation', TType.STRUCT, 2)
- self.paymentReservation.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(buyCoinProduct_args)
-buyCoinProduct_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRUCT, 'paymentReservation', [PaymentReservation, None], None, ), # 2
-)
-
-
-class buyCoinProduct_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('buyCoinProduct_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(buyCoinProduct_result)
-buyCoinProduct_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class buyFreeProduct_args(object):
- """
- Attributes:
- - receiverMid
- - productId
- - messageTemplate
- - language
- - country
- - packageId
-
- """
-
-
- def __init__(self, receiverMid=None, productId=None, messageTemplate=None, language=None, country=None, packageId=None,):
- self.receiverMid = receiverMid
- self.productId = productId
- self.messageTemplate = messageTemplate
- self.language = language
- self.country = country
- self.packageId = packageId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.receiverMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.productId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.I32:
- self.messageTemplate = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 6:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 7:
- if ftype == TType.I64:
- self.packageId = iprot.readI64()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('buyFreeProduct_args')
- if self.receiverMid is not None:
- oprot.writeFieldBegin('receiverMid', TType.STRING, 2)
- oprot.writeString(self.receiverMid.encode('utf-8') if sys.version_info[0] == 2 else self.receiverMid)
- oprot.writeFieldEnd()
- if self.productId is not None:
- oprot.writeFieldBegin('productId', TType.STRING, 3)
- oprot.writeString(self.productId.encode('utf-8') if sys.version_info[0] == 2 else self.productId)
- oprot.writeFieldEnd()
- if self.messageTemplate is not None:
- oprot.writeFieldBegin('messageTemplate', TType.I32, 4)
- oprot.writeI32(self.messageTemplate)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 5)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 6)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- if self.packageId is not None:
- oprot.writeFieldBegin('packageId', TType.I64, 7)
- oprot.writeI64(self.packageId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(buyFreeProduct_args)
-buyFreeProduct_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'receiverMid', 'UTF8', None, ), # 2
- (3, TType.STRING, 'productId', 'UTF8', None, ), # 3
- (4, TType.I32, 'messageTemplate', None, None, ), # 4
- (5, TType.STRING, 'language', 'UTF8', None, ), # 5
- (6, TType.STRING, 'country', 'UTF8', None, ), # 6
- (7, TType.I64, 'packageId', None, None, ), # 7
-)
-
-
-class buyFreeProduct_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('buyFreeProduct_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(buyFreeProduct_result)
-buyFreeProduct_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class buyMustbuyProduct_args(object):
- """
- Attributes:
- - receiverMid
- - productId
- - messageTemplate
- - language
- - country
- - packageId
- - serialNumber
-
- """
-
-
- def __init__(self, receiverMid=None, productId=None, messageTemplate=None, language=None, country=None, packageId=None, serialNumber=None,):
- self.receiverMid = receiverMid
- self.productId = productId
- self.messageTemplate = messageTemplate
- self.language = language
- self.country = country
- self.packageId = packageId
- self.serialNumber = serialNumber
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.receiverMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.productId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.I32:
- self.messageTemplate = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 6:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 7:
- if ftype == TType.I64:
- self.packageId = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 8:
- if ftype == TType.STRING:
- self.serialNumber = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('buyMustbuyProduct_args')
- if self.receiverMid is not None:
- oprot.writeFieldBegin('receiverMid', TType.STRING, 2)
- oprot.writeString(self.receiverMid.encode('utf-8') if sys.version_info[0] == 2 else self.receiverMid)
- oprot.writeFieldEnd()
- if self.productId is not None:
- oprot.writeFieldBegin('productId', TType.STRING, 3)
- oprot.writeString(self.productId.encode('utf-8') if sys.version_info[0] == 2 else self.productId)
- oprot.writeFieldEnd()
- if self.messageTemplate is not None:
- oprot.writeFieldBegin('messageTemplate', TType.I32, 4)
- oprot.writeI32(self.messageTemplate)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 5)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 6)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- if self.packageId is not None:
- oprot.writeFieldBegin('packageId', TType.I64, 7)
- oprot.writeI64(self.packageId)
- oprot.writeFieldEnd()
- if self.serialNumber is not None:
- oprot.writeFieldBegin('serialNumber', TType.STRING, 8)
- oprot.writeString(self.serialNumber.encode('utf-8') if sys.version_info[0] == 2 else self.serialNumber)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(buyMustbuyProduct_args)
-buyMustbuyProduct_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'receiverMid', 'UTF8', None, ), # 2
- (3, TType.STRING, 'productId', 'UTF8', None, ), # 3
- (4, TType.I32, 'messageTemplate', None, None, ), # 4
- (5, TType.STRING, 'language', 'UTF8', None, ), # 5
- (6, TType.STRING, 'country', 'UTF8', None, ), # 6
- (7, TType.I64, 'packageId', None, None, ), # 7
- (8, TType.STRING, 'serialNumber', 'UTF8', None, ), # 8
-)
-
-
-class buyMustbuyProduct_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('buyMustbuyProduct_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(buyMustbuyProduct_result)
-buyMustbuyProduct_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class checkCanReceivePresent_args(object):
- """
- Attributes:
- - recipientMid
- - packageId
- - language
- - country
-
- """
-
-
- def __init__(self, recipientMid=None, packageId=None, language=None, country=None,):
- self.recipientMid = recipientMid
- self.packageId = packageId
- self.language = language
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRING:
- self.recipientMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I64:
- self.packageId = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('checkCanReceivePresent_args')
- if self.recipientMid is not None:
- oprot.writeFieldBegin('recipientMid', TType.STRING, 2)
- oprot.writeString(self.recipientMid.encode('utf-8') if sys.version_info[0] == 2 else self.recipientMid)
- oprot.writeFieldEnd()
- if self.packageId is not None:
- oprot.writeFieldBegin('packageId', TType.I64, 3)
- oprot.writeI64(self.packageId)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 4)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 5)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(checkCanReceivePresent_args)
-checkCanReceivePresent_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRING, 'recipientMid', 'UTF8', None, ), # 2
- (3, TType.I64, 'packageId', None, None, ), # 3
- (4, TType.STRING, 'language', 'UTF8', None, ), # 4
- (5, TType.STRING, 'country', 'UTF8', None, ), # 5
-)
-
-
-class checkCanReceivePresent_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('checkCanReceivePresent_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(checkCanReceivePresent_result)
-checkCanReceivePresent_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getActivePurchases_args(object):
- """
- Attributes:
- - start
- - size
- - language
- - country
-
- """
-
-
- def __init__(self, start=None, size=None, language=None, country=None,):
- self.start = start
- self.size = size
- self.language = language
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.start = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I32:
- self.size = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getActivePurchases_args')
- if self.start is not None:
- oprot.writeFieldBegin('start', TType.I64, 2)
- oprot.writeI64(self.start)
- oprot.writeFieldEnd()
- if self.size is not None:
- oprot.writeFieldBegin('size', TType.I32, 3)
- oprot.writeI32(self.size)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 4)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 5)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getActivePurchases_args)
-getActivePurchases_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'start', None, None, ), # 2
- (3, TType.I32, 'size', None, None, ), # 3
- (4, TType.STRING, 'language', 'UTF8', None, ), # 4
- (5, TType.STRING, 'country', 'UTF8', None, ), # 5
-)
-
-
-class getActivePurchases_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ProductList()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getActivePurchases_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getActivePurchases_result)
-getActivePurchases_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ProductList, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getActivePurchaseVersions_args(object):
- """
- Attributes:
- - start
- - size
- - language
- - country
-
- """
-
-
- def __init__(self, start=None, size=None, language=None, country=None,):
- self.start = start
- self.size = size
- self.language = language
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.start = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I32:
- self.size = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getActivePurchaseVersions_args')
- if self.start is not None:
- oprot.writeFieldBegin('start', TType.I64, 2)
- oprot.writeI64(self.start)
- oprot.writeFieldEnd()
- if self.size is not None:
- oprot.writeFieldBegin('size', TType.I32, 3)
- oprot.writeI32(self.size)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 4)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 5)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getActivePurchaseVersions_args)
-getActivePurchaseVersions_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'start', None, None, ), # 2
- (3, TType.I32, 'size', None, None, ), # 3
- (4, TType.STRING, 'language', 'UTF8', None, ), # 4
- (5, TType.STRING, 'country', 'UTF8', None, ), # 5
-)
-
-
-class getActivePurchaseVersions_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ProductSimpleList()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getActivePurchaseVersions_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getActivePurchaseVersions_result)
-getActivePurchaseVersions_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ProductSimpleList, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getCoinProducts_args(object):
- """
- Attributes:
- - appStoreCode
- - country
- - language
-
- """
-
-
- def __init__(self, appStoreCode=None, country=None, language=None,):
- self.appStoreCode = appStoreCode
- self.country = country
- self.language = language
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I32:
- self.appStoreCode = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getCoinProducts_args')
- if self.appStoreCode is not None:
- oprot.writeFieldBegin('appStoreCode', TType.I32, 2)
- oprot.writeI32(self.appStoreCode)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 3)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 4)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getCoinProducts_args)
-getCoinProducts_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I32, 'appStoreCode', None, None, ), # 2
- (3, TType.STRING, 'country', 'UTF8', None, ), # 3
- (4, TType.STRING, 'language', 'UTF8', None, ), # 4
-)
-
-
-class getCoinProducts_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype680, _size677) = iprot.readListBegin()
- for _i681 in range(_size677):
- _elem682 = CoinProductItem()
- _elem682.read(iprot)
- self.success.append(_elem682)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getCoinProducts_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter683 in self.success:
- iter683.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getCoinProducts_result)
-getCoinProducts_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, [CoinProductItem, None], False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getCoinProductsByPgCode_args(object):
- """
- Attributes:
- - appStoreCode
- - pgCode
- - country
- - language
-
- """
-
-
- def __init__(self, appStoreCode=None, pgCode=None, country=None, language=None,):
- self.appStoreCode = appStoreCode
- self.pgCode = pgCode
- self.country = country
- self.language = language
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I32:
- self.appStoreCode = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I32:
- self.pgCode = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getCoinProductsByPgCode_args')
- if self.appStoreCode is not None:
- oprot.writeFieldBegin('appStoreCode', TType.I32, 2)
- oprot.writeI32(self.appStoreCode)
- oprot.writeFieldEnd()
- if self.pgCode is not None:
- oprot.writeFieldBegin('pgCode', TType.I32, 3)
- oprot.writeI32(self.pgCode)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 4)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 5)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getCoinProductsByPgCode_args)
-getCoinProductsByPgCode_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I32, 'appStoreCode', None, None, ), # 2
- (3, TType.I32, 'pgCode', None, None, ), # 3
- (4, TType.STRING, 'country', 'UTF8', None, ), # 4
- (5, TType.STRING, 'language', 'UTF8', None, ), # 5
-)
-
-
-class getCoinProductsByPgCode_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.LIST:
- self.success = []
- (_etype687, _size684) = iprot.readListBegin()
- for _i688 in range(_size684):
- _elem689 = CoinProductItem()
- _elem689.read(iprot)
- self.success.append(_elem689)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getCoinProductsByPgCode_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.LIST, 0)
- oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter690 in self.success:
- iter690.write(oprot)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getCoinProductsByPgCode_result)
-getCoinProductsByPgCode_result.thrift_spec = (
- (0, TType.LIST, 'success', (TType.STRUCT, [CoinProductItem, None], False), None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getCoinPurchaseHistory_args(object):
- """
- Attributes:
- - request
-
- """
-
-
- def __init__(self, request=None,):
- self.request = request
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRUCT:
- self.request = CoinHistoryCondition()
- self.request.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getCoinPurchaseHistory_args')
- if self.request is not None:
- oprot.writeFieldBegin('request', TType.STRUCT, 2)
- self.request.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getCoinPurchaseHistory_args)
-getCoinPurchaseHistory_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRUCT, 'request', [CoinHistoryCondition, None], None, ), # 2
-)
-
-
-class getCoinPurchaseHistory_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = CoinHistoryResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getCoinPurchaseHistory_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getCoinPurchaseHistory_result)
-getCoinPurchaseHistory_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [CoinHistoryResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getCoinUseAndRefundHistory_args(object):
- """
- Attributes:
- - request
-
- """
-
-
- def __init__(self, request=None,):
- self.request = request
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRUCT:
- self.request = CoinHistoryCondition()
- self.request.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getCoinUseAndRefundHistory_args')
- if self.request is not None:
- oprot.writeFieldBegin('request', TType.STRUCT, 2)
- self.request.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getCoinUseAndRefundHistory_args)
-getCoinUseAndRefundHistory_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRUCT, 'request', [CoinHistoryCondition, None], None, ), # 2
-)
-
-
-class getCoinUseAndRefundHistory_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = CoinHistoryResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getCoinUseAndRefundHistory_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getCoinUseAndRefundHistory_result)
-getCoinUseAndRefundHistory_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [CoinHistoryResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getDownloads_args(object):
- """
- Attributes:
- - start
- - size
- - language
- - country
-
- """
-
-
- def __init__(self, start=None, size=None, language=None, country=None,):
- self.start = start
- self.size = size
- self.language = language
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.start = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I32:
- self.size = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getDownloads_args')
- if self.start is not None:
- oprot.writeFieldBegin('start', TType.I64, 2)
- oprot.writeI64(self.start)
- oprot.writeFieldEnd()
- if self.size is not None:
- oprot.writeFieldBegin('size', TType.I32, 3)
- oprot.writeI32(self.size)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 4)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 5)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getDownloads_args)
-getDownloads_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'start', None, None, ), # 2
- (3, TType.I32, 'size', None, None, ), # 3
- (4, TType.STRING, 'language', 'UTF8', None, ), # 4
- (5, TType.STRING, 'country', 'UTF8', None, ), # 5
-)
-
-
-class getDownloads_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ProductList()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getDownloads_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getDownloads_result)
-getDownloads_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ProductList, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getEventPackages_args(object):
- """
- Attributes:
- - start
- - size
- - language
- - country
-
- """
-
-
- def __init__(self, start=None, size=None, language=None, country=None,):
- self.start = start
- self.size = size
- self.language = language
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.start = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I32:
- self.size = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getEventPackages_args')
- if self.start is not None:
- oprot.writeFieldBegin('start', TType.I64, 2)
- oprot.writeI64(self.start)
- oprot.writeFieldEnd()
- if self.size is not None:
- oprot.writeFieldBegin('size', TType.I32, 3)
- oprot.writeI32(self.size)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 4)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 5)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getEventPackages_args)
-getEventPackages_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'start', None, None, ), # 2
- (3, TType.I32, 'size', None, None, ), # 3
- (4, TType.STRING, 'language', 'UTF8', None, ), # 4
- (5, TType.STRING, 'country', 'UTF8', None, ), # 5
-)
-
-
-class getEventPackages_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ProductList()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getEventPackages_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getEventPackages_result)
-getEventPackages_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ProductList, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getNewlyReleasedPackages_args(object):
- """
- Attributes:
- - start
- - size
- - language
- - country
-
- """
-
-
- def __init__(self, start=None, size=None, language=None, country=None,):
- self.start = start
- self.size = size
- self.language = language
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.start = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I32:
- self.size = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getNewlyReleasedPackages_args')
- if self.start is not None:
- oprot.writeFieldBegin('start', TType.I64, 2)
- oprot.writeI64(self.start)
- oprot.writeFieldEnd()
- if self.size is not None:
- oprot.writeFieldBegin('size', TType.I32, 3)
- oprot.writeI32(self.size)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 4)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 5)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getNewlyReleasedPackages_args)
-getNewlyReleasedPackages_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'start', None, None, ), # 2
- (3, TType.I32, 'size', None, None, ), # 3
- (4, TType.STRING, 'language', 'UTF8', None, ), # 4
- (5, TType.STRING, 'country', 'UTF8', None, ), # 5
-)
-
-
-class getNewlyReleasedPackages_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ProductList()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getNewlyReleasedPackages_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getNewlyReleasedPackages_result)
-getNewlyReleasedPackages_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ProductList, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getPopularPackages_args(object):
- """
- Attributes:
- - start
- - size
- - language
- - country
-
- """
-
-
- def __init__(self, start=None, size=None, language=None, country=None,):
- self.start = start
- self.size = size
- self.language = language
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.start = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I32:
- self.size = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPopularPackages_args')
- if self.start is not None:
- oprot.writeFieldBegin('start', TType.I64, 2)
- oprot.writeI64(self.start)
- oprot.writeFieldEnd()
- if self.size is not None:
- oprot.writeFieldBegin('size', TType.I32, 3)
- oprot.writeI32(self.size)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 4)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 5)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPopularPackages_args)
-getPopularPackages_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'start', None, None, ), # 2
- (3, TType.I32, 'size', None, None, ), # 3
- (4, TType.STRING, 'language', 'UTF8', None, ), # 4
- (5, TType.STRING, 'country', 'UTF8', None, ), # 5
-)
-
-
-class getPopularPackages_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ProductList()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPopularPackages_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPopularPackages_result)
-getPopularPackages_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ProductList, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getPresentsReceived_args(object):
- """
- Attributes:
- - start
- - size
- - language
- - country
-
- """
-
-
- def __init__(self, start=None, size=None, language=None, country=None,):
- self.start = start
- self.size = size
- self.language = language
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.start = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I32:
- self.size = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPresentsReceived_args')
- if self.start is not None:
- oprot.writeFieldBegin('start', TType.I64, 2)
- oprot.writeI64(self.start)
- oprot.writeFieldEnd()
- if self.size is not None:
- oprot.writeFieldBegin('size', TType.I32, 3)
- oprot.writeI32(self.size)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 4)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 5)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPresentsReceived_args)
-getPresentsReceived_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'start', None, None, ), # 2
- (3, TType.I32, 'size', None, None, ), # 3
- (4, TType.STRING, 'language', 'UTF8', None, ), # 4
- (5, TType.STRING, 'country', 'UTF8', None, ), # 5
-)
-
-
-class getPresentsReceived_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ProductList()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPresentsReceived_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPresentsReceived_result)
-getPresentsReceived_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ProductList, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getPresentsSent_args(object):
- """
- Attributes:
- - start
- - size
- - language
- - country
-
- """
-
-
- def __init__(self, start=None, size=None, language=None, country=None,):
- self.start = start
- self.size = size
- self.language = language
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.start = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I32:
- self.size = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPresentsSent_args')
- if self.start is not None:
- oprot.writeFieldBegin('start', TType.I64, 2)
- oprot.writeI64(self.start)
- oprot.writeFieldEnd()
- if self.size is not None:
- oprot.writeFieldBegin('size', TType.I32, 3)
- oprot.writeI32(self.size)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 4)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 5)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPresentsSent_args)
-getPresentsSent_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'start', None, None, ), # 2
- (3, TType.I32, 'size', None, None, ), # 3
- (4, TType.STRING, 'language', 'UTF8', None, ), # 4
- (5, TType.STRING, 'country', 'UTF8', None, ), # 5
-)
-
-
-class getPresentsSent_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ProductList()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPresentsSent_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPresentsSent_result)
-getPresentsSent_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ProductList, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getProduct_args(object):
- """
- Attributes:
- - packageID
- - language
- - country
-
- """
-
-
- def __init__(self, packageID=None, language=None, country=None,):
- self.packageID = packageID
- self.language = language
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.packageID = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getProduct_args')
- if self.packageID is not None:
- oprot.writeFieldBegin('packageID', TType.I64, 2)
- oprot.writeI64(self.packageID)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 3)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 4)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getProduct_args)
-getProduct_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'packageID', None, None, ), # 2
- (3, TType.STRING, 'language', 'UTF8', None, ), # 3
- (4, TType.STRING, 'country', 'UTF8', None, ), # 4
-)
-
-
-class getProduct_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = Product()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getProduct_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getProduct_result)
-getProduct_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [Product, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getProductList_args(object):
- """
- Attributes:
- - productIdList
- - language
- - country
-
- """
-
-
- def __init__(self, productIdList=None, language=None, country=None,):
- self.productIdList = productIdList
- self.language = language
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.LIST:
- self.productIdList = []
- (_etype694, _size691) = iprot.readListBegin()
- for _i695 in range(_size691):
- _elem696 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.productIdList.append(_elem696)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getProductList_args')
- if self.productIdList is not None:
- oprot.writeFieldBegin('productIdList', TType.LIST, 2)
- oprot.writeListBegin(TType.STRING, len(self.productIdList))
- for iter697 in self.productIdList:
- oprot.writeString(iter697.encode('utf-8') if sys.version_info[0] == 2 else iter697)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 3)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 4)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getProductList_args)
-getProductList_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.LIST, 'productIdList', (TType.STRING, 'UTF8', False), None, ), # 2
- (3, TType.STRING, 'language', 'UTF8', None, ), # 3
- (4, TType.STRING, 'country', 'UTF8', None, ), # 4
-)
-
-
-class getProductList_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ProductList()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getProductList_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getProductList_result)
-getProductList_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ProductList, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getProductListWithCarrier_args(object):
- """
- Attributes:
- - productIdList
- - language
- - country
- - carrierCode
-
- """
-
-
- def __init__(self, productIdList=None, language=None, country=None, carrierCode=None,):
- self.productIdList = productIdList
- self.language = language
- self.country = country
- self.carrierCode = carrierCode
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.LIST:
- self.productIdList = []
- (_etype701, _size698) = iprot.readListBegin()
- for _i702 in range(_size698):
- _elem703 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.productIdList.append(_elem703)
- iprot.readListEnd()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.carrierCode = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getProductListWithCarrier_args')
- if self.productIdList is not None:
- oprot.writeFieldBegin('productIdList', TType.LIST, 2)
- oprot.writeListBegin(TType.STRING, len(self.productIdList))
- for iter704 in self.productIdList:
- oprot.writeString(iter704.encode('utf-8') if sys.version_info[0] == 2 else iter704)
- oprot.writeListEnd()
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 3)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 4)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- if self.carrierCode is not None:
- oprot.writeFieldBegin('carrierCode', TType.STRING, 5)
- oprot.writeString(self.carrierCode.encode('utf-8') if sys.version_info[0] == 2 else self.carrierCode)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getProductListWithCarrier_args)
-getProductListWithCarrier_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.LIST, 'productIdList', (TType.STRING, 'UTF8', False), None, ), # 2
- (3, TType.STRING, 'language', 'UTF8', None, ), # 3
- (4, TType.STRING, 'country', 'UTF8', None, ), # 4
- (5, TType.STRING, 'carrierCode', 'UTF8', None, ), # 5
-)
-
-
-class getProductListWithCarrier_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ProductList()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getProductListWithCarrier_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getProductListWithCarrier_result)
-getProductListWithCarrier_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ProductList, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getProductWithCarrier_args(object):
- """
- Attributes:
- - packageID
- - language
- - country
- - carrierCode
-
- """
-
-
- def __init__(self, packageID=None, language=None, country=None, carrierCode=None,):
- self.packageID = packageID
- self.language = language
- self.country = country
- self.carrierCode = carrierCode
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.packageID = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.carrierCode = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getProductWithCarrier_args')
- if self.packageID is not None:
- oprot.writeFieldBegin('packageID', TType.I64, 2)
- oprot.writeI64(self.packageID)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 3)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 4)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- if self.carrierCode is not None:
- oprot.writeFieldBegin('carrierCode', TType.STRING, 5)
- oprot.writeString(self.carrierCode.encode('utf-8') if sys.version_info[0] == 2 else self.carrierCode)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getProductWithCarrier_args)
-getProductWithCarrier_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'packageID', None, None, ), # 2
- (3, TType.STRING, 'language', 'UTF8', None, ), # 3
- (4, TType.STRING, 'country', 'UTF8', None, ), # 4
- (5, TType.STRING, 'carrierCode', 'UTF8', None, ), # 5
-)
-
-
-class getProductWithCarrier_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = Product()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getProductWithCarrier_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getProductWithCarrier_result)
-getProductWithCarrier_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [Product, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getPurchaseHistory_args(object):
- """
- Attributes:
- - start
- - size
- - language
- - country
-
- """
-
-
- def __init__(self, start=None, size=None, language=None, country=None,):
- self.start = start
- self.size = size
- self.language = language
- self.country = country
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.start = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.I32:
- self.size = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.STRING:
- self.country = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPurchaseHistory_args')
- if self.start is not None:
- oprot.writeFieldBegin('start', TType.I64, 2)
- oprot.writeI64(self.start)
- oprot.writeFieldEnd()
- if self.size is not None:
- oprot.writeFieldBegin('size', TType.I32, 3)
- oprot.writeI32(self.size)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 4)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- if self.country is not None:
- oprot.writeFieldBegin('country', TType.STRING, 5)
- oprot.writeString(self.country.encode('utf-8') if sys.version_info[0] == 2 else self.country)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPurchaseHistory_args)
-getPurchaseHistory_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'start', None, None, ), # 2
- (3, TType.I32, 'size', None, None, ), # 3
- (4, TType.STRING, 'language', 'UTF8', None, ), # 4
- (5, TType.STRING, 'country', 'UTF8', None, ), # 5
-)
-
-
-class getPurchaseHistory_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = ProductList()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getPurchaseHistory_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getPurchaseHistory_result)
-getPurchaseHistory_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [ProductList, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getTotalBalance_args(object):
- """
- Attributes:
- - appStoreCode
-
- """
-
-
- def __init__(self, appStoreCode=None,):
- self.appStoreCode = appStoreCode
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I32:
- self.appStoreCode = iprot.readI32()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getTotalBalance_args')
- if self.appStoreCode is not None:
- oprot.writeFieldBegin('appStoreCode', TType.I32, 2)
- oprot.writeI32(self.appStoreCode)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getTotalBalance_args)
-getTotalBalance_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I32, 'appStoreCode', None, None, ), # 2
-)
-
-
-class getTotalBalance_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = Coin()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getTotalBalance_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getTotalBalance_result)
-getTotalBalance_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [Coin, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class notifyDownloaded_args(object):
- """
- Attributes:
- - packageId
- - language
-
- """
-
-
- def __init__(self, packageId=None, language=None,):
- self.packageId = packageId
- self.language = language
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I64:
- self.packageId = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.language = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('notifyDownloaded_args')
- if self.packageId is not None:
- oprot.writeFieldBegin('packageId', TType.I64, 2)
- oprot.writeI64(self.packageId)
- oprot.writeFieldEnd()
- if self.language is not None:
- oprot.writeFieldBegin('language', TType.STRING, 3)
- oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(notifyDownloaded_args)
-notifyDownloaded_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I64, 'packageId', None, None, ), # 2
- (3, TType.STRING, 'language', 'UTF8', None, ), # 3
-)
-
-
-class notifyDownloaded_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.I64:
- self.success = iprot.readI64()
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('notifyDownloaded_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.I64, 0)
- oprot.writeI64(self.success)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(notifyDownloaded_result)
-notifyDownloaded_result.thrift_spec = (
- (0, TType.I64, 'success', None, None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class reserveCoinPurchase_args(object):
- """
- Attributes:
- - request
-
- """
-
-
- def __init__(self, request=None,):
- self.request = request
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRUCT:
- self.request = CoinPurchaseReservation()
- self.request.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('reserveCoinPurchase_args')
- if self.request is not None:
- oprot.writeFieldBegin('request', TType.STRUCT, 2)
- self.request.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(reserveCoinPurchase_args)
-reserveCoinPurchase_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRUCT, 'request', [CoinPurchaseReservation, None], None, ), # 2
-)
-
-
-class reserveCoinPurchase_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = PaymentReservationResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('reserveCoinPurchase_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(reserveCoinPurchase_result)
-reserveCoinPurchase_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [PaymentReservationResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class reservePayment_args(object):
- """
- Attributes:
- - paymentReservation
-
- """
-
-
- def __init__(self, paymentReservation=None,):
- self.paymentReservation = paymentReservation
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRUCT:
- self.paymentReservation = PaymentReservation()
- self.paymentReservation.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('reservePayment_args')
- if self.paymentReservation is not None:
- oprot.writeFieldBegin('paymentReservation', TType.STRUCT, 2)
- self.paymentReservation.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(reservePayment_args)
-reservePayment_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRUCT, 'paymentReservation', [PaymentReservation, None], None, ), # 2
-)
-
-
-class reservePayment_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = PaymentReservationResult()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('reservePayment_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(reservePayment_result)
-reservePayment_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [PaymentReservationResult, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-fix_spec(all_structs)
-del all_structs
-
diff --git a/libs/core/SnsAdaptorService-remote b/libs/core/SnsAdaptorService-remote
deleted file mode 100755
index 8eb16d9..0000000
--- a/libs/core/SnsAdaptorService-remote
+++ /dev/null
@@ -1,131 +0,0 @@
-#!/usr/bin/env python
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-import sys
-import pprint
-if sys.version_info[0] > 2:
- from urllib.parse import urlparse
-else:
- from urlparse import urlparse
-from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient
-from thrift.protocol.TBinaryProtocol import TBinaryProtocol
-
-from line import SnsAdaptorService
-from line.ttypes import *
-
-if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print('')
- print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]')
- print('')
- print('Functions:')
- print(' SnsFriends getSnsFriends(SnsIdType snsIdType, string snsAccessToken, i32 startIdx, i32 limit)')
- print(' SnsProfile getSnsMyProfile(SnsIdType snsIdType, string snsAccessToken)')
- print(' void postSnsInvitationMessage(SnsIdType snsIdType, string snsAccessToken, string toSnsUserId)')
- print('')
- sys.exit(0)
-
-pp = pprint.PrettyPrinter(indent=2)
-host = 'localhost'
-port = 9090
-uri = ''
-framed = False
-ssl = False
-validate = True
-ca_certs = None
-keyfile = None
-certfile = None
-http = False
-argi = 1
-
-if sys.argv[argi] == '-h':
- parts = sys.argv[argi + 1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- argi += 2
-
-if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi + 1])
- parts = url[1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- else:
- port = 80
- uri = url[2]
- if url[4]:
- uri += '?%s' % url[4]
- http = True
- argi += 2
-
-if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
- framed = True
- argi += 1
-
-if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
- ssl = True
- argi += 1
-
-if sys.argv[argi] == '-novalidate':
- validate = False
- argi += 1
-
-if sys.argv[argi] == '-ca_certs':
- ca_certs = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-keyfile':
- keyfile = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-certfile':
- certfile = sys.argv[argi+1]
- argi += 2
-
-cmd = sys.argv[argi]
-args = sys.argv[argi + 1:]
-
-if http:
- transport = THttpClient.THttpClient(host, port, uri)
-else:
- if ssl:
- socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile)
- else:
- socket = TSocket.TSocket(host, port)
- if framed:
- transport = TTransport.TFramedTransport(socket)
- else:
- transport = TTransport.TBufferedTransport(socket)
-protocol = TBinaryProtocol(transport)
-client = SnsAdaptorService.Client(protocol)
-transport.open()
-
-if cmd == 'getSnsFriends':
- if len(args) != 4:
- print('getSnsFriends requires 4 args')
- sys.exit(1)
- pp.pprint(client.getSnsFriends(eval(args[0]), args[1], eval(args[2]), eval(args[3]),))
-
-elif cmd == 'getSnsMyProfile':
- if len(args) != 2:
- print('getSnsMyProfile requires 2 args')
- sys.exit(1)
- pp.pprint(client.getSnsMyProfile(eval(args[0]), args[1],))
-
-elif cmd == 'postSnsInvitationMessage':
- if len(args) != 3:
- print('postSnsInvitationMessage requires 3 args')
- sys.exit(1)
- pp.pprint(client.postSnsInvitationMessage(eval(args[0]), args[1], args[2],))
-
-else:
- print('Unrecognized method %s' % cmd)
- sys.exit(1)
-
-transport.close()
diff --git a/libs/core/SnsAdaptorService.py b/libs/core/SnsAdaptorService.py
deleted file mode 100644
index 7cf4b51..0000000
--- a/libs/core/SnsAdaptorService.py
+++ /dev/null
@@ -1,757 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-from thrift.TRecursive import fix_spec
-
-import sys
-import logging
-from .ttypes import *
-from thrift.Thrift import TProcessor
-from thrift.transport import TTransport
-all_structs = []
-
-
-class Iface(object):
- def getSnsFriends(self, snsIdType, snsAccessToken, startIdx, limit):
- """
- Parameters:
- - snsIdType
- - snsAccessToken
- - startIdx
- - limit
-
- """
- pass
-
- def getSnsMyProfile(self, snsIdType, snsAccessToken):
- """
- Parameters:
- - snsIdType
- - snsAccessToken
-
- """
- pass
-
- def postSnsInvitationMessage(self, snsIdType, snsAccessToken, toSnsUserId):
- """
- Parameters:
- - snsIdType
- - snsAccessToken
- - toSnsUserId
-
- """
- pass
-
-
-class Client(Iface):
- def __init__(self, iprot, oprot=None):
- self._iprot = self._oprot = iprot
- if oprot is not None:
- self._oprot = oprot
- self._seqid = 0
-
- def getSnsFriends(self, snsIdType, snsAccessToken, startIdx, limit):
- """
- Parameters:
- - snsIdType
- - snsAccessToken
- - startIdx
- - limit
-
- """
- self.send_getSnsFriends(snsIdType, snsAccessToken, startIdx, limit)
- return self.recv_getSnsFriends()
-
- def send_getSnsFriends(self, snsIdType, snsAccessToken, startIdx, limit):
- self._oprot.writeMessageBegin('getSnsFriends', TMessageType.CALL, self._seqid)
- args = getSnsFriends_args()
- args.snsIdType = snsIdType
- args.snsAccessToken = snsAccessToken
- args.startIdx = startIdx
- args.limit = limit
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getSnsFriends(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getSnsFriends_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnsFriends failed: unknown result")
-
- def getSnsMyProfile(self, snsIdType, snsAccessToken):
- """
- Parameters:
- - snsIdType
- - snsAccessToken
-
- """
- self.send_getSnsMyProfile(snsIdType, snsAccessToken)
- return self.recv_getSnsMyProfile()
-
- def send_getSnsMyProfile(self, snsIdType, snsAccessToken):
- self._oprot.writeMessageBegin('getSnsMyProfile', TMessageType.CALL, self._seqid)
- args = getSnsMyProfile_args()
- args.snsIdType = snsIdType
- args.snsAccessToken = snsAccessToken
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_getSnsMyProfile(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = getSnsMyProfile_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.success is not None:
- return result.success
- if result.e is not None:
- raise result.e
- raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnsMyProfile failed: unknown result")
-
- def postSnsInvitationMessage(self, snsIdType, snsAccessToken, toSnsUserId):
- """
- Parameters:
- - snsIdType
- - snsAccessToken
- - toSnsUserId
-
- """
- self.send_postSnsInvitationMessage(snsIdType, snsAccessToken, toSnsUserId)
- self.recv_postSnsInvitationMessage()
-
- def send_postSnsInvitationMessage(self, snsIdType, snsAccessToken, toSnsUserId):
- self._oprot.writeMessageBegin('postSnsInvitationMessage', TMessageType.CALL, self._seqid)
- args = postSnsInvitationMessage_args()
- args.snsIdType = snsIdType
- args.snsAccessToken = snsAccessToken
- args.toSnsUserId = toSnsUserId
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_postSnsInvitationMessage(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = postSnsInvitationMessage_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
-
-class Processor(Iface, TProcessor):
- def __init__(self, handler):
- self._handler = handler
- self._processMap = {}
- self._processMap["getSnsFriends"] = Processor.process_getSnsFriends
- self._processMap["getSnsMyProfile"] = Processor.process_getSnsMyProfile
- self._processMap["postSnsInvitationMessage"] = Processor.process_postSnsInvitationMessage
- self._on_message_begin = None
-
- def on_message_begin(self, func):
- self._on_message_begin = func
-
- def process(self, iprot, oprot):
- (name, type, seqid) = iprot.readMessageBegin()
- if self._on_message_begin:
- self._on_message_begin(name, type, seqid)
- if name not in self._processMap:
- iprot.skip(TType.STRUCT)
- iprot.readMessageEnd()
- x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
- oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
- x.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
- return
- else:
- self._processMap[name](self, seqid, iprot, oprot)
- return True
-
- def process_getSnsFriends(self, seqid, iprot, oprot):
- args = getSnsFriends_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getSnsFriends_result()
- try:
- result.success = self._handler.getSnsFriends(args.snsIdType, args.snsAccessToken, args.startIdx, args.limit)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getSnsFriends", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_getSnsMyProfile(self, seqid, iprot, oprot):
- args = getSnsMyProfile_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = getSnsMyProfile_result()
- try:
- result.success = self._handler.getSnsMyProfile(args.snsIdType, args.snsAccessToken)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("getSnsMyProfile", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
- def process_postSnsInvitationMessage(self, seqid, iprot, oprot):
- args = postSnsInvitationMessage_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = postSnsInvitationMessage_result()
- try:
- self._handler.postSnsInvitationMessage(args.snsIdType, args.snsAccessToken, args.toSnsUserId)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except TalkException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("postSnsInvitationMessage", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
-# HELPER FUNCTIONS AND STRUCTURES
-
-
-class getSnsFriends_args(object):
- """
- Attributes:
- - snsIdType
- - snsAccessToken
- - startIdx
- - limit
-
- """
-
-
- def __init__(self, snsIdType=None, snsAccessToken=None, startIdx=None, limit=None,):
- self.snsIdType = snsIdType
- self.snsAccessToken = snsAccessToken
- self.startIdx = startIdx
- self.limit = limit
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I32:
- self.snsIdType = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.snsAccessToken = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.I32:
- self.startIdx = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 5:
- if ftype == TType.I32:
- self.limit = iprot.readI32()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getSnsFriends_args')
- if self.snsIdType is not None:
- oprot.writeFieldBegin('snsIdType', TType.I32, 2)
- oprot.writeI32(self.snsIdType)
- oprot.writeFieldEnd()
- if self.snsAccessToken is not None:
- oprot.writeFieldBegin('snsAccessToken', TType.STRING, 3)
- oprot.writeString(self.snsAccessToken.encode('utf-8') if sys.version_info[0] == 2 else self.snsAccessToken)
- oprot.writeFieldEnd()
- if self.startIdx is not None:
- oprot.writeFieldBegin('startIdx', TType.I32, 4)
- oprot.writeI32(self.startIdx)
- oprot.writeFieldEnd()
- if self.limit is not None:
- oprot.writeFieldBegin('limit', TType.I32, 5)
- oprot.writeI32(self.limit)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getSnsFriends_args)
-getSnsFriends_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I32, 'snsIdType', None, None, ), # 2
- (3, TType.STRING, 'snsAccessToken', 'UTF8', None, ), # 3
- (4, TType.I32, 'startIdx', None, None, ), # 4
- (5, TType.I32, 'limit', None, None, ), # 5
-)
-
-
-class getSnsFriends_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = SnsFriends()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getSnsFriends_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getSnsFriends_result)
-getSnsFriends_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [SnsFriends, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class getSnsMyProfile_args(object):
- """
- Attributes:
- - snsIdType
- - snsAccessToken
-
- """
-
-
- def __init__(self, snsIdType=None, snsAccessToken=None,):
- self.snsIdType = snsIdType
- self.snsAccessToken = snsAccessToken
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I32:
- self.snsIdType = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.snsAccessToken = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getSnsMyProfile_args')
- if self.snsIdType is not None:
- oprot.writeFieldBegin('snsIdType', TType.I32, 2)
- oprot.writeI32(self.snsIdType)
- oprot.writeFieldEnd()
- if self.snsAccessToken is not None:
- oprot.writeFieldBegin('snsAccessToken', TType.STRING, 3)
- oprot.writeString(self.snsAccessToken.encode('utf-8') if sys.version_info[0] == 2 else self.snsAccessToken)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getSnsMyProfile_args)
-getSnsMyProfile_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I32, 'snsIdType', None, None, ), # 2
- (3, TType.STRING, 'snsAccessToken', 'UTF8', None, ), # 3
-)
-
-
-class getSnsMyProfile_result(object):
- """
- Attributes:
- - success
- - e
-
- """
-
-
- def __init__(self, success=None, e=None,):
- self.success = success
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 0:
- if ftype == TType.STRUCT:
- self.success = SnsProfile()
- self.success.read(iprot)
- else:
- iprot.skip(ftype)
- elif fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('getSnsMyProfile_result')
- if self.success is not None:
- oprot.writeFieldBegin('success', TType.STRUCT, 0)
- self.success.write(oprot)
- oprot.writeFieldEnd()
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(getSnsMyProfile_result)
-getSnsMyProfile_result.thrift_spec = (
- (0, TType.STRUCT, 'success', [SnsProfile, None], None, ), # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-
-
-class postSnsInvitationMessage_args(object):
- """
- Attributes:
- - snsIdType
- - snsAccessToken
- - toSnsUserId
-
- """
-
-
- def __init__(self, snsIdType=None, snsAccessToken=None, toSnsUserId=None,):
- self.snsIdType = snsIdType
- self.snsAccessToken = snsAccessToken
- self.toSnsUserId = toSnsUserId
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.I32:
- self.snsIdType = iprot.readI32()
- else:
- iprot.skip(ftype)
- elif fid == 3:
- if ftype == TType.STRING:
- self.snsAccessToken = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- elif fid == 4:
- if ftype == TType.STRING:
- self.toSnsUserId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('postSnsInvitationMessage_args')
- if self.snsIdType is not None:
- oprot.writeFieldBegin('snsIdType', TType.I32, 2)
- oprot.writeI32(self.snsIdType)
- oprot.writeFieldEnd()
- if self.snsAccessToken is not None:
- oprot.writeFieldBegin('snsAccessToken', TType.STRING, 3)
- oprot.writeString(self.snsAccessToken.encode('utf-8') if sys.version_info[0] == 2 else self.snsAccessToken)
- oprot.writeFieldEnd()
- if self.toSnsUserId is not None:
- oprot.writeFieldBegin('toSnsUserId', TType.STRING, 4)
- oprot.writeString(self.toSnsUserId.encode('utf-8') if sys.version_info[0] == 2 else self.toSnsUserId)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(postSnsInvitationMessage_args)
-postSnsInvitationMessage_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.I32, 'snsIdType', None, None, ), # 2
- (3, TType.STRING, 'snsAccessToken', 'UTF8', None, ), # 3
- (4, TType.STRING, 'toSnsUserId', 'UTF8', None, ), # 4
-)
-
-
-class postSnsInvitationMessage_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = TalkException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('postSnsInvitationMessage_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(postSnsInvitationMessage_result)
-postSnsInvitationMessage_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
-)
-fix_spec(all_structs)
-del all_structs
-
diff --git a/libs/core/TalkService-remote b/libs/core/TalkService-remote
deleted file mode 100755
index c91b7dc..0000000
--- a/libs/core/TalkService-remote
+++ /dev/null
@@ -1,1412 +0,0 @@
-#!/usr/bin/env python
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-import sys
-import pprint
-if sys.version_info[0] > 2:
- from urllib.parse import urlparse
-else:
- from urlparse import urlparse
-from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient
-from thrift.protocol.TBinaryProtocol import TBinaryProtocol
-
-from line import TalkService
-from line.ttypes import *
-
-if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print('')
- print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]')
- print('')
- print('Functions:')
- print(' void acceptGroupInvitation(i32 reqSeq, string groupId)')
- print(' void acceptProximityMatches(string sessionId, ids)')
- print(' acquireCallRoute(string to)')
- print(' string acquireCallTicket(string to)')
- print(' string acquireEncryptedAccessToken(FeatureType featureType)')
- print(' string addSnsId(SnsIdType snsIdType, string snsAccessToken)')
- print(' void blockContact(i32 reqSeq, string id)')
- print(' void blockRecommendation(i32 reqSeq, string id)')
- print(' void cancelGroupInvitation(i32 reqSeq, string groupId, contactIds)')
- print(' VerificationSessionData changeVerificationMethod(string sessionId, VerificationMethod method)')
- print(' void clearIdentityCredential()')
- print(' void clearMessageBox(string channelId, string messageBoxId)')
- print(' void closeProximityMatch(string sessionId)')
- print(' commitSendMessage(i32 seq, string messageId, receiverMids)')
- print(' commitSendMessages(i32 seq, messageIds, receiverMids)')
- print(' commitUpdateProfile(i32 seq, attrs, receiverMids)')
- print(' void confirmEmail(string verifier, string pinCode)')
- print(' Group createGroup(i32 seq, string name, contactIds)')
- print(' string createQrcodeBase64Image(string url, string characterSet, i32 imageSize, i32 x, i32 y, i32 width, i32 height)')
- print(' Room createRoom(i32 reqSeq, contactIds)')
- print(' string createSession()')
- print(' fetchAnnouncements(i32 lastFetchedIndex)')
- print(' fetchMessages(i64 localTs, i32 count)')
- print(' fetchOperations(i64 localRev, i32 count)')
- print(' fetchOps(i64 localRev, i32 count, i64 globalRev, i64 individualRev)')
- print(' findAndAddContactsByEmail(i32 reqSeq, emails)')
- print(' findAndAddContactsByMid(i32 reqSeq, string mid)')
- print(' findAndAddContactsByPhone(i32 reqSeq, phones)')
- print(' findAndAddContactsByUserid(i32 reqSeq, string userid)')
- print(' Contact findContactByUserid(string userid)')
- print(' Contact findContactByUserTicket(string ticketId)')
- print(' findContactsByEmail( emails)')
- print(' findContactsByPhone( phones)')
- print(' SnsIdUserStatus findSnsIdUserStatus(SnsIdType snsIdType, string snsAccessToken, string udidHash)')
- print(' void finishUpdateVerification(string sessionId)')
- print(' Ticket generateUserTicket(i64 expirationTime, i32 maxUseCount)')
- print(' getAcceptedProximityMatches(string sessionId)')
- print(' getActiveBuddySubscriberIds()')
- print(' getAllContactIds()')
- print(' AuthQrcode getAuthQrcode(bool keepLoggedIn, string systemName)')
- print(' getBlockedContactIds()')
- print(' getBlockedContactIdsByRange(i32 start, i32 count)')
- print(' getBlockedRecommendationIds()')
- print(' getBuddyBlockerIds()')
- print(' Geolocation getBuddyLocation(string mid, i32 index)')
- print(' getCompactContactsModifiedSince(i64 timestamp)')
- print(' Group getCompactGroup(string groupId)')
- print(' Room getCompactRoom(string roomId)')
- print(' Contact getContact(string id)')
- print(' getContacts( ids)')
- print(' string getCountryWithRequestIp()')
- print(' getFavoriteMids()')
- print(' Group getGroup(string groupId)')
- print(' getGroupIdsInvited()')
- print(' getGroupIdsJoined()')
- print(' getGroups( groupIds)')
- print(' getHiddenContactMids()')
- print(' string getIdentityIdentifier()')
- print(' i32 getLastAnnouncementIndex()')
- print(' i64 getLastOpRevision()')
- print(' TMessageBox getMessageBox(string channelId, string messageBoxId, i32 lastMessagesCount)')
- print(' TMessageBoxWrapUp getMessageBoxCompactWrapUp(string mid)')
- print(' TMessageBoxWrapUpResponse getMessageBoxCompactWrapUpList(i32 start, i32 messageBoxCount)')
- print(' getMessageBoxList(string channelId, i32 lastMessagesCount)')
- print(' getMessageBoxListByStatus(string channelId, i32 lastMessagesCount, i32 status)')
- print(' TMessageBoxWrapUp getMessageBoxWrapUp(string mid)')
- print(' TMessageBoxWrapUpResponse getMessageBoxWrapUpList(i32 start, i32 messageBoxCount)')
- print(' getMessagesBySequenceNumber(string channelId, string messageBoxId, i64 startSeq, i64 endSeq)')
- print(' getNextMessages(string messageBoxId, i64 startSeq, i32 messagesCount)')
- print(' getNotificationPolicy(CarrierCode carrier)')
- print(' getPreviousMessages(string messageBoxId, i64 endSeq, i32 messagesCount)')
- print(' Profile getProfile()')
- print(' ProximityMatchCandidateResult getProximityMatchCandidateList(string sessionId)')
- print(' getProximityMatchCandidates(string sessionId)')
- print(' getRecentMessages(string messageBoxId, i32 messagesCount)')
- print(' getRecommendationIds()')
- print(' Room getRoom(string roomId)')
- print(' RSAKey getRSAKeyInfo(IdentityProvider provider)')
- print(' i64 getServerTime()')
- print(' getSessions()')
- print(' Settings getSettings()')
- print(' Settings getSettingsAttributes(i32 attrBitset)')
- print(' SystemConfiguration getSystemConfiguration()')
- print(' Ticket getUserTicket()')
- print(' WapInvitation getWapInvitation(string invitationHash)')
- print(' void invalidateUserTicket()')
- print(' void inviteFriendsBySms( phoneNumberList)')
- print(' void inviteIntoGroup(i32 reqSeq, string groupId, contactIds)')
- print(' void inviteIntoRoom(i32 reqSeq, string roomId, contactIds)')
- print(' void inviteViaEmail(i32 reqSeq, string email, string name)')
- print(' bool isIdentityIdentifierAvailable(IdentityProvider provider, string identifier)')
- print(' bool isUseridAvailable(string userid)')
- print(' void kickoutFromGroup(i32 reqSeq, string groupId, contactIds)')
- print(' void leaveGroup(i32 reqSeq, string groupId)')
- print(' void leaveRoom(i32 reqSeq, string roomId)')
- print(' string loginWithIdentityCredential(IdentityProvider identityProvider, string identifier, string password, bool keepLoggedIn, string accessLocation, string systemName, string certificate)')
- print(' LoginResult loginWithIdentityCredentialForCertificate(IdentityProvider identityProvider, string identifier, string password, bool keepLoggedIn, string accessLocation, string systemName, string certificate)')
- print(' string loginWithVerifier(string verifier)')
- print(' LoginResult loginWithVerifierForCerificate(string verifier)')
- print(' LoginResult loginWithVerifierForCertificate(string verifier)')
- print(' void logout()')
- print(' void logoutSession(string tokenKey)')
- print(' void noop()')
- print(' void notifiedRedirect( paramMap)')
- print(' notifyBuddyOnAir(i32 seq, receiverMids)')
- print(' void notifyIndividualEvent(NotificationStatus notificationStatus, receiverMids)')
- print(' void notifyInstalled(string udidHash, string applicationTypeWithExtensions)')
- print(' void notifyRegistrationComplete(string udidHash, string applicationTypeWithExtensions)')
- print(' void notifySleep(i64 lastRev, i32 badge)')
- print(' void notifyUpdated(i64 lastRev, DeviceInfo deviceInfo)')
- print(' string openProximityMatch(Location location)')
- print(' string registerBuddyUser(string buddyId, string registrarPassword)')
- print(' void registerBuddyUserid(i32 seq, string userid)')
- print(' string registerDevice(string sessionId)')
- print(' string registerDeviceWithIdentityCredential(string sessionId, IdentityProvider provider, string identifier, string verifier)')
- print(' string registerDeviceWithoutPhoneNumber(string region, string udidHash, DeviceInfo deviceInfo)')
- print(' string registerDeviceWithoutPhoneNumberWithIdentityCredential(string region, string udidHash, DeviceInfo deviceInfo, IdentityProvider provider, string identifier, string verifier, string mid)')
- print(' bool registerUserid(i32 reqSeq, string userid)')
- print(' string registerWapDevice(string invitationHash, string guidHash, string email, DeviceInfo deviceInfo)')
- print(' string registerWithExistingSnsIdAndIdentityCredential(IdentityCredential identityCredential, string region, string udidHash, DeviceInfo deviceInfo)')
- print(' RegisterWithSnsIdResult registerWithSnsId(SnsIdType snsIdType, string snsAccessToken, string region, string udidHash, DeviceInfo deviceInfo, string mid)')
- print(' string registerWithSnsIdAndIdentityCredential(SnsIdType snsIdType, string snsAccessToken, IdentityCredential identityCredential, string region, string udidHash, DeviceInfo deviceInfo)')
- print(' string reissueDeviceCredential()')
- print(' string reissueUserTicket(i64 expirationTime, i32 maxUseCount)')
- print(' void rejectGroupInvitation(i32 reqSeq, string groupId)')
- print(' void releaseSession()')
- print(' void removeAllMessages(i32 seq, string lastMessageId)')
- print(' void removeBuddyLocation(string mid, i32 index)')
- print(' bool removeMessage(string messageId)')
- print(' bool removeMessageFromMyHome(string messageId)')
- print(' string removeSnsId(SnsIdType snsIdType)')
- print(' void report(i64 syncOpRevision, SyncCategory category, string report)')
- print(' reportContacts(i64 syncOpRevision, SyncCategory category, contactReports, SyncActionType actionType)')
- print(' void reportGroups(i64 syncOpRevision, groups)')
- print(' void reportProfile(i64 syncOpRevision, Profile profile)')
- print(' void reportRooms(i64 syncOpRevision, rooms)')
- print(' void reportSettings(i64 syncOpRevision, Settings settings)')
- print(' void reportSpammer(string spammerMid, spammerReasons, spamMessageIds)')
- print(' void requestAccountPasswordReset(IdentityProvider provider, string identifier, string locale)')
- print(' EmailConfirmationSession requestEmailConfirmation(EmailConfirmation emailConfirmation)')
- print(' void requestIdentityUnbind(IdentityProvider provider, string identifier)')
- print(' EmailConfirmationSession resendEmailConfirmation(string verifier)')
- print(' void resendPinCode(string sessionId)')
- print(' void resendPinCodeBySMS(string sessionId)')
- print(' void sendChatChecked(i32 seq, string consumer, string lastMessageId)')
- print(' void sendChatRemoved(i32 seq, string consumer, string lastMessageId)')
- print(' sendContentPreviewUpdated(i32 esq, string messageId, receiverMids)')
- print(' void sendContentReceipt(i32 seq, string consumer, string messageId)')
- print(' void sendDummyPush()')
- print(' Message sendEvent(i32 seq, Message message)')
- print(' Message sendMessage(i32 seq, Message message)')
- print(' void sendMessageIgnored(i32 seq, string consumer, messageIds)')
- print(' void sendMessageReceipt(i32 seq, string consumer, messageIds)')
- print(' Message sendMessageToMyHome(i32 seq, Message message)')
- print(' void setBuddyLocation(string mid, i32 index, Geolocation location)')
- print(' void setIdentityCredential(IdentityProvider provider, string identifier, string verifier)')
- print(' void setNotificationsEnabled(i32 reqSeq, MIDType type, string target, bool enablement)')
- print(' VerificationSessionData startUpdateVerification(string region, CarrierCode carrier, string phone, string udidHash, DeviceInfo deviceInfo, string networkCode, string locale)')
- print(' VerificationSessionData startVerification(string region, CarrierCode carrier, string phone, string udidHash, DeviceInfo deviceInfo, string networkCode, string mid, string locale)')
- print(' void storeUpdateProfileAttribute(i32 seq, ProfileAttribute profileAttribute, string value)')
- print(' syncContactBySnsIds(i32 reqSeq, modifications)')
- print(' syncContacts(i32 reqSeq, localContacts)')
- print(' Message trySendMessage(i32 seq, Message message)')
- print(' void unblockContact(i32 reqSeq, string id)')
- print(' void unblockRecommendation(i32 reqSeq, string id)')
- print(' string unregisterUserAndDevice()')
- print(' void updateApnsDeviceToken(string apnsDeviceToken)')
- print(' void updateBuddySetting(string key, string value)')
- print(' void updateC2DMRegistrationId(string registrationId)')
- print(' void updateContactSetting(i32 reqSeq, string mid, ContactSetting flag, string value)')
- print(' void updateCustomModeSettings(CustomMode customMode, paramMap)')
- print(' void updateDeviceInfo(string deviceUid, DeviceInfo deviceInfo)')
- print(' void updateGroup(i32 reqSeq, Group group)')
- print(' void updateNotificationToken(NotificationType type, string token)')
- print(' void updateNotificationTokenWithBytes(NotificationType type, string token)')
- print(' void updateProfile(i32 reqSeq, Profile profile)')
- print(' void updateProfileAttribute(i32 reqSeq, ProfileAttribute attr, string value)')
- print(' void updateRegion(string region)')
- print(' void updateSettings(i32 reqSeq, Settings settings)')
- print(' i32 updateSettings2(i32 reqSeq, Settings settings)')
- print(' void updateSettingsAttribute(i32 reqSeq, SettingsAttribute attr, string value)')
- print(' i32 updateSettingsAttributes(i32 reqSeq, i32 attrBitset, Settings settings)')
- print(' void verifyIdentityCredential(IdentityProvider identityProvider, string identifier, string password)')
- print(' UserAuthStatus verifyIdentityCredentialWithResult(IdentityCredential identityCredential)')
- print(' VerificationResult verifyPhone(string sessionId, string pinCode, string udidHash)')
- print(' string verifyQrcode(string verifier, string pinCode)')
- print('')
- sys.exit(0)
-
-pp = pprint.PrettyPrinter(indent=2)
-host = 'localhost'
-port = 9090
-uri = ''
-framed = False
-ssl = False
-validate = True
-ca_certs = None
-keyfile = None
-certfile = None
-http = False
-argi = 1
-
-if sys.argv[argi] == '-h':
- parts = sys.argv[argi + 1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- argi += 2
-
-if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi + 1])
- parts = url[1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- else:
- port = 80
- uri = url[2]
- if url[4]:
- uri += '?%s' % url[4]
- http = True
- argi += 2
-
-if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
- framed = True
- argi += 1
-
-if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
- ssl = True
- argi += 1
-
-if sys.argv[argi] == '-novalidate':
- validate = False
- argi += 1
-
-if sys.argv[argi] == '-ca_certs':
- ca_certs = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-keyfile':
- keyfile = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-certfile':
- certfile = sys.argv[argi+1]
- argi += 2
-
-cmd = sys.argv[argi]
-args = sys.argv[argi + 1:]
-
-if http:
- transport = THttpClient.THttpClient(host, port, uri)
-else:
- if ssl:
- socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile)
- else:
- socket = TSocket.TSocket(host, port)
- if framed:
- transport = TTransport.TFramedTransport(socket)
- else:
- transport = TTransport.TBufferedTransport(socket)
-protocol = TBinaryProtocol(transport)
-client = TalkService.Client(protocol)
-transport.open()
-
-if cmd == 'acceptGroupInvitation':
- if len(args) != 2:
- print('acceptGroupInvitation requires 2 args')
- sys.exit(1)
- pp.pprint(client.acceptGroupInvitation(eval(args[0]), args[1],))
-
-elif cmd == 'acceptProximityMatches':
- if len(args) != 2:
- print('acceptProximityMatches requires 2 args')
- sys.exit(1)
- pp.pprint(client.acceptProximityMatches(args[0], eval(args[1]),))
-
-elif cmd == 'acquireCallRoute':
- if len(args) != 1:
- print('acquireCallRoute requires 1 args')
- sys.exit(1)
- pp.pprint(client.acquireCallRoute(args[0],))
-
-elif cmd == 'acquireCallTicket':
- if len(args) != 1:
- print('acquireCallTicket requires 1 args')
- sys.exit(1)
- pp.pprint(client.acquireCallTicket(args[0],))
-
-elif cmd == 'acquireEncryptedAccessToken':
- if len(args) != 1:
- print('acquireEncryptedAccessToken requires 1 args')
- sys.exit(1)
- pp.pprint(client.acquireEncryptedAccessToken(eval(args[0]),))
-
-elif cmd == 'addSnsId':
- if len(args) != 2:
- print('addSnsId requires 2 args')
- sys.exit(1)
- pp.pprint(client.addSnsId(eval(args[0]), args[1],))
-
-elif cmd == 'blockContact':
- if len(args) != 2:
- print('blockContact requires 2 args')
- sys.exit(1)
- pp.pprint(client.blockContact(eval(args[0]), args[1],))
-
-elif cmd == 'blockRecommendation':
- if len(args) != 2:
- print('blockRecommendation requires 2 args')
- sys.exit(1)
- pp.pprint(client.blockRecommendation(eval(args[0]), args[1],))
-
-elif cmd == 'cancelGroupInvitation':
- if len(args) != 3:
- print('cancelGroupInvitation requires 3 args')
- sys.exit(1)
- pp.pprint(client.cancelGroupInvitation(eval(args[0]), args[1], eval(args[2]),))
-
-elif cmd == 'changeVerificationMethod':
- if len(args) != 2:
- print('changeVerificationMethod requires 2 args')
- sys.exit(1)
- pp.pprint(client.changeVerificationMethod(args[0], eval(args[1]),))
-
-elif cmd == 'clearIdentityCredential':
- if len(args) != 0:
- print('clearIdentityCredential requires 0 args')
- sys.exit(1)
- pp.pprint(client.clearIdentityCredential())
-
-elif cmd == 'clearMessageBox':
- if len(args) != 2:
- print('clearMessageBox requires 2 args')
- sys.exit(1)
- pp.pprint(client.clearMessageBox(args[0], args[1],))
-
-elif cmd == 'closeProximityMatch':
- if len(args) != 1:
- print('closeProximityMatch requires 1 args')
- sys.exit(1)
- pp.pprint(client.closeProximityMatch(args[0],))
-
-elif cmd == 'commitSendMessage':
- if len(args) != 3:
- print('commitSendMessage requires 3 args')
- sys.exit(1)
- pp.pprint(client.commitSendMessage(eval(args[0]), args[1], eval(args[2]),))
-
-elif cmd == 'commitSendMessages':
- if len(args) != 3:
- print('commitSendMessages requires 3 args')
- sys.exit(1)
- pp.pprint(client.commitSendMessages(eval(args[0]), eval(args[1]), eval(args[2]),))
-
-elif cmd == 'commitUpdateProfile':
- if len(args) != 3:
- print('commitUpdateProfile requires 3 args')
- sys.exit(1)
- pp.pprint(client.commitUpdateProfile(eval(args[0]), eval(args[1]), eval(args[2]),))
-
-elif cmd == 'confirmEmail':
- if len(args) != 2:
- print('confirmEmail requires 2 args')
- sys.exit(1)
- pp.pprint(client.confirmEmail(args[0], args[1],))
-
-elif cmd == 'createGroup':
- if len(args) != 3:
- print('createGroup requires 3 args')
- sys.exit(1)
- pp.pprint(client.createGroup(eval(args[0]), args[1], eval(args[2]),))
-
-elif cmd == 'createQrcodeBase64Image':
- if len(args) != 7:
- print('createQrcodeBase64Image requires 7 args')
- sys.exit(1)
- pp.pprint(client.createQrcodeBase64Image(args[0], args[1], eval(args[2]), eval(args[3]), eval(args[4]), eval(args[5]), eval(args[6]),))
-
-elif cmd == 'createRoom':
- if len(args) != 2:
- print('createRoom requires 2 args')
- sys.exit(1)
- pp.pprint(client.createRoom(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'createSession':
- if len(args) != 0:
- print('createSession requires 0 args')
- sys.exit(1)
- pp.pprint(client.createSession())
-
-elif cmd == 'fetchAnnouncements':
- if len(args) != 1:
- print('fetchAnnouncements requires 1 args')
- sys.exit(1)
- pp.pprint(client.fetchAnnouncements(eval(args[0]),))
-
-elif cmd == 'fetchMessages':
- if len(args) != 2:
- print('fetchMessages requires 2 args')
- sys.exit(1)
- pp.pprint(client.fetchMessages(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'fetchOperations':
- if len(args) != 2:
- print('fetchOperations requires 2 args')
- sys.exit(1)
- pp.pprint(client.fetchOperations(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'fetchOps':
- if len(args) != 4:
- print('fetchOps requires 4 args')
- sys.exit(1)
- pp.pprint(client.fetchOps(eval(args[0]), eval(args[1]), eval(args[2]), eval(args[3]),))
-
-elif cmd == 'findAndAddContactsByEmail':
- if len(args) != 2:
- print('findAndAddContactsByEmail requires 2 args')
- sys.exit(1)
- pp.pprint(client.findAndAddContactsByEmail(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'findAndAddContactsByMid':
- if len(args) != 2:
- print('findAndAddContactsByMid requires 2 args')
- sys.exit(1)
- pp.pprint(client.findAndAddContactsByMid(eval(args[0]), args[1],))
-
-elif cmd == 'findAndAddContactsByPhone':
- if len(args) != 2:
- print('findAndAddContactsByPhone requires 2 args')
- sys.exit(1)
- pp.pprint(client.findAndAddContactsByPhone(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'findAndAddContactsByUserid':
- if len(args) != 2:
- print('findAndAddContactsByUserid requires 2 args')
- sys.exit(1)
- pp.pprint(client.findAndAddContactsByUserid(eval(args[0]), args[1],))
-
-elif cmd == 'findContactByUserid':
- if len(args) != 1:
- print('findContactByUserid requires 1 args')
- sys.exit(1)
- pp.pprint(client.findContactByUserid(args[0],))
-
-elif cmd == 'findContactByUserTicket':
- if len(args) != 1:
- print('findContactByUserTicket requires 1 args')
- sys.exit(1)
- pp.pprint(client.findContactByUserTicket(args[0],))
-
-elif cmd == 'findContactsByEmail':
- if len(args) != 1:
- print('findContactsByEmail requires 1 args')
- sys.exit(1)
- pp.pprint(client.findContactsByEmail(eval(args[0]),))
-
-elif cmd == 'findContactsByPhone':
- if len(args) != 1:
- print('findContactsByPhone requires 1 args')
- sys.exit(1)
- pp.pprint(client.findContactsByPhone(eval(args[0]),))
-
-elif cmd == 'findSnsIdUserStatus':
- if len(args) != 3:
- print('findSnsIdUserStatus requires 3 args')
- sys.exit(1)
- pp.pprint(client.findSnsIdUserStatus(eval(args[0]), args[1], args[2],))
-
-elif cmd == 'finishUpdateVerification':
- if len(args) != 1:
- print('finishUpdateVerification requires 1 args')
- sys.exit(1)
- pp.pprint(client.finishUpdateVerification(args[0],))
-
-elif cmd == 'generateUserTicket':
- if len(args) != 2:
- print('generateUserTicket requires 2 args')
- sys.exit(1)
- pp.pprint(client.generateUserTicket(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'getAcceptedProximityMatches':
- if len(args) != 1:
- print('getAcceptedProximityMatches requires 1 args')
- sys.exit(1)
- pp.pprint(client.getAcceptedProximityMatches(args[0],))
-
-elif cmd == 'getActiveBuddySubscriberIds':
- if len(args) != 0:
- print('getActiveBuddySubscriberIds requires 0 args')
- sys.exit(1)
- pp.pprint(client.getActiveBuddySubscriberIds())
-
-elif cmd == 'getAllContactIds':
- if len(args) != 0:
- print('getAllContactIds requires 0 args')
- sys.exit(1)
- pp.pprint(client.getAllContactIds())
-
-elif cmd == 'getAuthQrcode':
- if len(args) != 2:
- print('getAuthQrcode requires 2 args')
- sys.exit(1)
- pp.pprint(client.getAuthQrcode(eval(args[0]), args[1],))
-
-elif cmd == 'getBlockedContactIds':
- if len(args) != 0:
- print('getBlockedContactIds requires 0 args')
- sys.exit(1)
- pp.pprint(client.getBlockedContactIds())
-
-elif cmd == 'getBlockedContactIdsByRange':
- if len(args) != 2:
- print('getBlockedContactIdsByRange requires 2 args')
- sys.exit(1)
- pp.pprint(client.getBlockedContactIdsByRange(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'getBlockedRecommendationIds':
- if len(args) != 0:
- print('getBlockedRecommendationIds requires 0 args')
- sys.exit(1)
- pp.pprint(client.getBlockedRecommendationIds())
-
-elif cmd == 'getBuddyBlockerIds':
- if len(args) != 0:
- print('getBuddyBlockerIds requires 0 args')
- sys.exit(1)
- pp.pprint(client.getBuddyBlockerIds())
-
-elif cmd == 'getBuddyLocation':
- if len(args) != 2:
- print('getBuddyLocation requires 2 args')
- sys.exit(1)
- pp.pprint(client.getBuddyLocation(args[0], eval(args[1]),))
-
-elif cmd == 'getCompactContactsModifiedSince':
- if len(args) != 1:
- print('getCompactContactsModifiedSince requires 1 args')
- sys.exit(1)
- pp.pprint(client.getCompactContactsModifiedSince(eval(args[0]),))
-
-elif cmd == 'getCompactGroup':
- if len(args) != 1:
- print('getCompactGroup requires 1 args')
- sys.exit(1)
- pp.pprint(client.getCompactGroup(args[0],))
-
-elif cmd == 'getCompactRoom':
- if len(args) != 1:
- print('getCompactRoom requires 1 args')
- sys.exit(1)
- pp.pprint(client.getCompactRoom(args[0],))
-
-elif cmd == 'getContact':
- if len(args) != 1:
- print('getContact requires 1 args')
- sys.exit(1)
- pp.pprint(client.getContact(args[0],))
-
-elif cmd == 'getContacts':
- if len(args) != 1:
- print('getContacts requires 1 args')
- sys.exit(1)
- pp.pprint(client.getContacts(eval(args[0]),))
-
-elif cmd == 'getCountryWithRequestIp':
- if len(args) != 0:
- print('getCountryWithRequestIp requires 0 args')
- sys.exit(1)
- pp.pprint(client.getCountryWithRequestIp())
-
-elif cmd == 'getFavoriteMids':
- if len(args) != 0:
- print('getFavoriteMids requires 0 args')
- sys.exit(1)
- pp.pprint(client.getFavoriteMids())
-
-elif cmd == 'getGroup':
- if len(args) != 1:
- print('getGroup requires 1 args')
- sys.exit(1)
- pp.pprint(client.getGroup(args[0],))
-
-elif cmd == 'getGroupIdsInvited':
- if len(args) != 0:
- print('getGroupIdsInvited requires 0 args')
- sys.exit(1)
- pp.pprint(client.getGroupIdsInvited())
-
-elif cmd == 'getGroupIdsJoined':
- if len(args) != 0:
- print('getGroupIdsJoined requires 0 args')
- sys.exit(1)
- pp.pprint(client.getGroupIdsJoined())
-
-elif cmd == 'getGroups':
- if len(args) != 1:
- print('getGroups requires 1 args')
- sys.exit(1)
- pp.pprint(client.getGroups(eval(args[0]),))
-
-elif cmd == 'getHiddenContactMids':
- if len(args) != 0:
- print('getHiddenContactMids requires 0 args')
- sys.exit(1)
- pp.pprint(client.getHiddenContactMids())
-
-elif cmd == 'getIdentityIdentifier':
- if len(args) != 0:
- print('getIdentityIdentifier requires 0 args')
- sys.exit(1)
- pp.pprint(client.getIdentityIdentifier())
-
-elif cmd == 'getLastAnnouncementIndex':
- if len(args) != 0:
- print('getLastAnnouncementIndex requires 0 args')
- sys.exit(1)
- pp.pprint(client.getLastAnnouncementIndex())
-
-elif cmd == 'getLastOpRevision':
- if len(args) != 0:
- print('getLastOpRevision requires 0 args')
- sys.exit(1)
- pp.pprint(client.getLastOpRevision())
-
-elif cmd == 'getMessageBox':
- if len(args) != 3:
- print('getMessageBox requires 3 args')
- sys.exit(1)
- pp.pprint(client.getMessageBox(args[0], args[1], eval(args[2]),))
-
-elif cmd == 'getMessageBoxCompactWrapUp':
- if len(args) != 1:
- print('getMessageBoxCompactWrapUp requires 1 args')
- sys.exit(1)
- pp.pprint(client.getMessageBoxCompactWrapUp(args[0],))
-
-elif cmd == 'getMessageBoxCompactWrapUpList':
- if len(args) != 2:
- print('getMessageBoxCompactWrapUpList requires 2 args')
- sys.exit(1)
- pp.pprint(client.getMessageBoxCompactWrapUpList(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'getMessageBoxList':
- if len(args) != 2:
- print('getMessageBoxList requires 2 args')
- sys.exit(1)
- pp.pprint(client.getMessageBoxList(args[0], eval(args[1]),))
-
-elif cmd == 'getMessageBoxListByStatus':
- if len(args) != 3:
- print('getMessageBoxListByStatus requires 3 args')
- sys.exit(1)
- pp.pprint(client.getMessageBoxListByStatus(args[0], eval(args[1]), eval(args[2]),))
-
-elif cmd == 'getMessageBoxWrapUp':
- if len(args) != 1:
- print('getMessageBoxWrapUp requires 1 args')
- sys.exit(1)
- pp.pprint(client.getMessageBoxWrapUp(args[0],))
-
-elif cmd == 'getMessageBoxWrapUpList':
- if len(args) != 2:
- print('getMessageBoxWrapUpList requires 2 args')
- sys.exit(1)
- pp.pprint(client.getMessageBoxWrapUpList(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'getMessagesBySequenceNumber':
- if len(args) != 4:
- print('getMessagesBySequenceNumber requires 4 args')
- sys.exit(1)
- pp.pprint(client.getMessagesBySequenceNumber(args[0], args[1], eval(args[2]), eval(args[3]),))
-
-elif cmd == 'getNextMessages':
- if len(args) != 3:
- print('getNextMessages requires 3 args')
- sys.exit(1)
- pp.pprint(client.getNextMessages(args[0], eval(args[1]), eval(args[2]),))
-
-elif cmd == 'getNotificationPolicy':
- if len(args) != 1:
- print('getNotificationPolicy requires 1 args')
- sys.exit(1)
- pp.pprint(client.getNotificationPolicy(eval(args[0]),))
-
-elif cmd == 'getPreviousMessages':
- if len(args) != 3:
- print('getPreviousMessages requires 3 args')
- sys.exit(1)
- pp.pprint(client.getPreviousMessages(args[0], eval(args[1]), eval(args[2]),))
-
-elif cmd == 'getProfile':
- if len(args) != 0:
- print('getProfile requires 0 args')
- sys.exit(1)
- pp.pprint(client.getProfile())
-
-elif cmd == 'getProximityMatchCandidateList':
- if len(args) != 1:
- print('getProximityMatchCandidateList requires 1 args')
- sys.exit(1)
- pp.pprint(client.getProximityMatchCandidateList(args[0],))
-
-elif cmd == 'getProximityMatchCandidates':
- if len(args) != 1:
- print('getProximityMatchCandidates requires 1 args')
- sys.exit(1)
- pp.pprint(client.getProximityMatchCandidates(args[0],))
-
-elif cmd == 'getRecentMessages':
- if len(args) != 2:
- print('getRecentMessages requires 2 args')
- sys.exit(1)
- pp.pprint(client.getRecentMessages(args[0], eval(args[1]),))
-
-elif cmd == 'getRecommendationIds':
- if len(args) != 0:
- print('getRecommendationIds requires 0 args')
- sys.exit(1)
- pp.pprint(client.getRecommendationIds())
-
-elif cmd == 'getRoom':
- if len(args) != 1:
- print('getRoom requires 1 args')
- sys.exit(1)
- pp.pprint(client.getRoom(args[0],))
-
-elif cmd == 'getRSAKeyInfo':
- if len(args) != 1:
- print('getRSAKeyInfo requires 1 args')
- sys.exit(1)
- pp.pprint(client.getRSAKeyInfo(eval(args[0]),))
-
-elif cmd == 'getServerTime':
- if len(args) != 0:
- print('getServerTime requires 0 args')
- sys.exit(1)
- pp.pprint(client.getServerTime())
-
-elif cmd == 'getSessions':
- if len(args) != 0:
- print('getSessions requires 0 args')
- sys.exit(1)
- pp.pprint(client.getSessions())
-
-elif cmd == 'getSettings':
- if len(args) != 0:
- print('getSettings requires 0 args')
- sys.exit(1)
- pp.pprint(client.getSettings())
-
-elif cmd == 'getSettingsAttributes':
- if len(args) != 1:
- print('getSettingsAttributes requires 1 args')
- sys.exit(1)
- pp.pprint(client.getSettingsAttributes(eval(args[0]),))
-
-elif cmd == 'getSystemConfiguration':
- if len(args) != 0:
- print('getSystemConfiguration requires 0 args')
- sys.exit(1)
- pp.pprint(client.getSystemConfiguration())
-
-elif cmd == 'getUserTicket':
- if len(args) != 0:
- print('getUserTicket requires 0 args')
- sys.exit(1)
- pp.pprint(client.getUserTicket())
-
-elif cmd == 'getWapInvitation':
- if len(args) != 1:
- print('getWapInvitation requires 1 args')
- sys.exit(1)
- pp.pprint(client.getWapInvitation(args[0],))
-
-elif cmd == 'invalidateUserTicket':
- if len(args) != 0:
- print('invalidateUserTicket requires 0 args')
- sys.exit(1)
- pp.pprint(client.invalidateUserTicket())
-
-elif cmd == 'inviteFriendsBySms':
- if len(args) != 1:
- print('inviteFriendsBySms requires 1 args')
- sys.exit(1)
- pp.pprint(client.inviteFriendsBySms(eval(args[0]),))
-
-elif cmd == 'inviteIntoGroup':
- if len(args) != 3:
- print('inviteIntoGroup requires 3 args')
- sys.exit(1)
- pp.pprint(client.inviteIntoGroup(eval(args[0]), args[1], eval(args[2]),))
-
-elif cmd == 'inviteIntoRoom':
- if len(args) != 3:
- print('inviteIntoRoom requires 3 args')
- sys.exit(1)
- pp.pprint(client.inviteIntoRoom(eval(args[0]), args[1], eval(args[2]),))
-
-elif cmd == 'inviteViaEmail':
- if len(args) != 3:
- print('inviteViaEmail requires 3 args')
- sys.exit(1)
- pp.pprint(client.inviteViaEmail(eval(args[0]), args[1], args[2],))
-
-elif cmd == 'isIdentityIdentifierAvailable':
- if len(args) != 2:
- print('isIdentityIdentifierAvailable requires 2 args')
- sys.exit(1)
- pp.pprint(client.isIdentityIdentifierAvailable(eval(args[0]), args[1],))
-
-elif cmd == 'isUseridAvailable':
- if len(args) != 1:
- print('isUseridAvailable requires 1 args')
- sys.exit(1)
- pp.pprint(client.isUseridAvailable(args[0],))
-
-elif cmd == 'kickoutFromGroup':
- if len(args) != 3:
- print('kickoutFromGroup requires 3 args')
- sys.exit(1)
- pp.pprint(client.kickoutFromGroup(eval(args[0]), args[1], eval(args[2]),))
-
-elif cmd == 'leaveGroup':
- if len(args) != 2:
- print('leaveGroup requires 2 args')
- sys.exit(1)
- pp.pprint(client.leaveGroup(eval(args[0]), args[1],))
-
-elif cmd == 'leaveRoom':
- if len(args) != 2:
- print('leaveRoom requires 2 args')
- sys.exit(1)
- pp.pprint(client.leaveRoom(eval(args[0]), args[1],))
-
-elif cmd == 'loginWithIdentityCredential':
- if len(args) != 7:
- print('loginWithIdentityCredential requires 7 args')
- sys.exit(1)
- pp.pprint(client.loginWithIdentityCredential(eval(args[0]), args[1], args[2], eval(args[3]), args[4], args[5], args[6],))
-
-elif cmd == 'loginWithIdentityCredentialForCertificate':
- if len(args) != 7:
- print('loginWithIdentityCredentialForCertificate requires 7 args')
- sys.exit(1)
- pp.pprint(client.loginWithIdentityCredentialForCertificate(eval(args[0]), args[1], args[2], eval(args[3]), args[4], args[5], args[6],))
-
-elif cmd == 'loginWithVerifier':
- if len(args) != 1:
- print('loginWithVerifier requires 1 args')
- sys.exit(1)
- pp.pprint(client.loginWithVerifier(args[0],))
-
-elif cmd == 'loginWithVerifierForCerificate':
- if len(args) != 1:
- print('loginWithVerifierForCerificate requires 1 args')
- sys.exit(1)
- pp.pprint(client.loginWithVerifierForCerificate(args[0],))
-
-elif cmd == 'loginWithVerifierForCertificate':
- if len(args) != 1:
- print('loginWithVerifierForCertificate requires 1 args')
- sys.exit(1)
- pp.pprint(client.loginWithVerifierForCertificate(args[0],))
-
-elif cmd == 'logout':
- if len(args) != 0:
- print('logout requires 0 args')
- sys.exit(1)
- pp.pprint(client.logout())
-
-elif cmd == 'logoutSession':
- if len(args) != 1:
- print('logoutSession requires 1 args')
- sys.exit(1)
- pp.pprint(client.logoutSession(args[0],))
-
-elif cmd == 'noop':
- if len(args) != 0:
- print('noop requires 0 args')
- sys.exit(1)
- pp.pprint(client.noop())
-
-elif cmd == 'notifiedRedirect':
- if len(args) != 1:
- print('notifiedRedirect requires 1 args')
- sys.exit(1)
- pp.pprint(client.notifiedRedirect(eval(args[0]),))
-
-elif cmd == 'notifyBuddyOnAir':
- if len(args) != 2:
- print('notifyBuddyOnAir requires 2 args')
- sys.exit(1)
- pp.pprint(client.notifyBuddyOnAir(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'notifyIndividualEvent':
- if len(args) != 2:
- print('notifyIndividualEvent requires 2 args')
- sys.exit(1)
- pp.pprint(client.notifyIndividualEvent(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'notifyInstalled':
- if len(args) != 2:
- print('notifyInstalled requires 2 args')
- sys.exit(1)
- pp.pprint(client.notifyInstalled(args[0], args[1],))
-
-elif cmd == 'notifyRegistrationComplete':
- if len(args) != 2:
- print('notifyRegistrationComplete requires 2 args')
- sys.exit(1)
- pp.pprint(client.notifyRegistrationComplete(args[0], args[1],))
-
-elif cmd == 'notifySleep':
- if len(args) != 2:
- print('notifySleep requires 2 args')
- sys.exit(1)
- pp.pprint(client.notifySleep(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'notifyUpdated':
- if len(args) != 2:
- print('notifyUpdated requires 2 args')
- sys.exit(1)
- pp.pprint(client.notifyUpdated(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'openProximityMatch':
- if len(args) != 1:
- print('openProximityMatch requires 1 args')
- sys.exit(1)
- pp.pprint(client.openProximityMatch(eval(args[0]),))
-
-elif cmd == 'registerBuddyUser':
- if len(args) != 2:
- print('registerBuddyUser requires 2 args')
- sys.exit(1)
- pp.pprint(client.registerBuddyUser(args[0], args[1],))
-
-elif cmd == 'registerBuddyUserid':
- if len(args) != 2:
- print('registerBuddyUserid requires 2 args')
- sys.exit(1)
- pp.pprint(client.registerBuddyUserid(eval(args[0]), args[1],))
-
-elif cmd == 'registerDevice':
- if len(args) != 1:
- print('registerDevice requires 1 args')
- sys.exit(1)
- pp.pprint(client.registerDevice(args[0],))
-
-elif cmd == 'registerDeviceWithIdentityCredential':
- if len(args) != 4:
- print('registerDeviceWithIdentityCredential requires 4 args')
- sys.exit(1)
- pp.pprint(client.registerDeviceWithIdentityCredential(args[0], eval(args[1]), args[2], args[3],))
-
-elif cmd == 'registerDeviceWithoutPhoneNumber':
- if len(args) != 3:
- print('registerDeviceWithoutPhoneNumber requires 3 args')
- sys.exit(1)
- pp.pprint(client.registerDeviceWithoutPhoneNumber(args[0], args[1], eval(args[2]),))
-
-elif cmd == 'registerDeviceWithoutPhoneNumberWithIdentityCredential':
- if len(args) != 7:
- print('registerDeviceWithoutPhoneNumberWithIdentityCredential requires 7 args')
- sys.exit(1)
- pp.pprint(client.registerDeviceWithoutPhoneNumberWithIdentityCredential(args[0], args[1], eval(args[2]), eval(args[3]), args[4], args[5], args[6],))
-
-elif cmd == 'registerUserid':
- if len(args) != 2:
- print('registerUserid requires 2 args')
- sys.exit(1)
- pp.pprint(client.registerUserid(eval(args[0]), args[1],))
-
-elif cmd == 'registerWapDevice':
- if len(args) != 4:
- print('registerWapDevice requires 4 args')
- sys.exit(1)
- pp.pprint(client.registerWapDevice(args[0], args[1], args[2], eval(args[3]),))
-
-elif cmd == 'registerWithExistingSnsIdAndIdentityCredential':
- if len(args) != 4:
- print('registerWithExistingSnsIdAndIdentityCredential requires 4 args')
- sys.exit(1)
- pp.pprint(client.registerWithExistingSnsIdAndIdentityCredential(eval(args[0]), args[1], args[2], eval(args[3]),))
-
-elif cmd == 'registerWithSnsId':
- if len(args) != 6:
- print('registerWithSnsId requires 6 args')
- sys.exit(1)
- pp.pprint(client.registerWithSnsId(eval(args[0]), args[1], args[2], args[3], eval(args[4]), args[5],))
-
-elif cmd == 'registerWithSnsIdAndIdentityCredential':
- if len(args) != 6:
- print('registerWithSnsIdAndIdentityCredential requires 6 args')
- sys.exit(1)
- pp.pprint(client.registerWithSnsIdAndIdentityCredential(eval(args[0]), args[1], eval(args[2]), args[3], args[4], eval(args[5]),))
-
-elif cmd == 'reissueDeviceCredential':
- if len(args) != 0:
- print('reissueDeviceCredential requires 0 args')
- sys.exit(1)
- pp.pprint(client.reissueDeviceCredential())
-
-elif cmd == 'reissueUserTicket':
- if len(args) != 2:
- print('reissueUserTicket requires 2 args')
- sys.exit(1)
- pp.pprint(client.reissueUserTicket(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'rejectGroupInvitation':
- if len(args) != 2:
- print('rejectGroupInvitation requires 2 args')
- sys.exit(1)
- pp.pprint(client.rejectGroupInvitation(eval(args[0]), args[1],))
-
-elif cmd == 'releaseSession':
- if len(args) != 0:
- print('releaseSession requires 0 args')
- sys.exit(1)
- pp.pprint(client.releaseSession())
-
-elif cmd == 'removeAllMessages':
- if len(args) != 2:
- print('removeAllMessages requires 2 args')
- sys.exit(1)
- pp.pprint(client.removeAllMessages(eval(args[0]), args[1],))
-
-elif cmd == 'removeBuddyLocation':
- if len(args) != 2:
- print('removeBuddyLocation requires 2 args')
- sys.exit(1)
- pp.pprint(client.removeBuddyLocation(args[0], eval(args[1]),))
-
-elif cmd == 'removeMessage':
- if len(args) != 1:
- print('removeMessage requires 1 args')
- sys.exit(1)
- pp.pprint(client.removeMessage(args[0],))
-
-elif cmd == 'removeMessageFromMyHome':
- if len(args) != 1:
- print('removeMessageFromMyHome requires 1 args')
- sys.exit(1)
- pp.pprint(client.removeMessageFromMyHome(args[0],))
-
-elif cmd == 'removeSnsId':
- if len(args) != 1:
- print('removeSnsId requires 1 args')
- sys.exit(1)
- pp.pprint(client.removeSnsId(eval(args[0]),))
-
-elif cmd == 'report':
- if len(args) != 3:
- print('report requires 3 args')
- sys.exit(1)
- pp.pprint(client.report(eval(args[0]), eval(args[1]), args[2],))
-
-elif cmd == 'reportContacts':
- if len(args) != 4:
- print('reportContacts requires 4 args')
- sys.exit(1)
- pp.pprint(client.reportContacts(eval(args[0]), eval(args[1]), eval(args[2]), eval(args[3]),))
-
-elif cmd == 'reportGroups':
- if len(args) != 2:
- print('reportGroups requires 2 args')
- sys.exit(1)
- pp.pprint(client.reportGroups(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'reportProfile':
- if len(args) != 2:
- print('reportProfile requires 2 args')
- sys.exit(1)
- pp.pprint(client.reportProfile(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'reportRooms':
- if len(args) != 2:
- print('reportRooms requires 2 args')
- sys.exit(1)
- pp.pprint(client.reportRooms(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'reportSettings':
- if len(args) != 2:
- print('reportSettings requires 2 args')
- sys.exit(1)
- pp.pprint(client.reportSettings(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'reportSpammer':
- if len(args) != 3:
- print('reportSpammer requires 3 args')
- sys.exit(1)
- pp.pprint(client.reportSpammer(args[0], eval(args[1]), eval(args[2]),))
-
-elif cmd == 'requestAccountPasswordReset':
- if len(args) != 3:
- print('requestAccountPasswordReset requires 3 args')
- sys.exit(1)
- pp.pprint(client.requestAccountPasswordReset(eval(args[0]), args[1], args[2],))
-
-elif cmd == 'requestEmailConfirmation':
- if len(args) != 1:
- print('requestEmailConfirmation requires 1 args')
- sys.exit(1)
- pp.pprint(client.requestEmailConfirmation(eval(args[0]),))
-
-elif cmd == 'requestIdentityUnbind':
- if len(args) != 2:
- print('requestIdentityUnbind requires 2 args')
- sys.exit(1)
- pp.pprint(client.requestIdentityUnbind(eval(args[0]), args[1],))
-
-elif cmd == 'resendEmailConfirmation':
- if len(args) != 1:
- print('resendEmailConfirmation requires 1 args')
- sys.exit(1)
- pp.pprint(client.resendEmailConfirmation(args[0],))
-
-elif cmd == 'resendPinCode':
- if len(args) != 1:
- print('resendPinCode requires 1 args')
- sys.exit(1)
- pp.pprint(client.resendPinCode(args[0],))
-
-elif cmd == 'resendPinCodeBySMS':
- if len(args) != 1:
- print('resendPinCodeBySMS requires 1 args')
- sys.exit(1)
- pp.pprint(client.resendPinCodeBySMS(args[0],))
-
-elif cmd == 'sendChatChecked':
- if len(args) != 3:
- print('sendChatChecked requires 3 args')
- sys.exit(1)
- pp.pprint(client.sendChatChecked(eval(args[0]), args[1], args[2],))
-
-elif cmd == 'sendChatRemoved':
- if len(args) != 3:
- print('sendChatRemoved requires 3 args')
- sys.exit(1)
- pp.pprint(client.sendChatRemoved(eval(args[0]), args[1], args[2],))
-
-elif cmd == 'sendContentPreviewUpdated':
- if len(args) != 3:
- print('sendContentPreviewUpdated requires 3 args')
- sys.exit(1)
- pp.pprint(client.sendContentPreviewUpdated(eval(args[0]), args[1], eval(args[2]),))
-
-elif cmd == 'sendContentReceipt':
- if len(args) != 3:
- print('sendContentReceipt requires 3 args')
- sys.exit(1)
- pp.pprint(client.sendContentReceipt(eval(args[0]), args[1], args[2],))
-
-elif cmd == 'sendDummyPush':
- if len(args) != 0:
- print('sendDummyPush requires 0 args')
- sys.exit(1)
- pp.pprint(client.sendDummyPush())
-
-elif cmd == 'sendEvent':
- if len(args) != 2:
- print('sendEvent requires 2 args')
- sys.exit(1)
- pp.pprint(client.sendEvent(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'sendMessage':
- if len(args) != 2:
- print('sendMessage requires 2 args')
- sys.exit(1)
- pp.pprint(client.sendMessage(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'sendMessageIgnored':
- if len(args) != 3:
- print('sendMessageIgnored requires 3 args')
- sys.exit(1)
- pp.pprint(client.sendMessageIgnored(eval(args[0]), args[1], eval(args[2]),))
-
-elif cmd == 'sendMessageReceipt':
- if len(args) != 3:
- print('sendMessageReceipt requires 3 args')
- sys.exit(1)
- pp.pprint(client.sendMessageReceipt(eval(args[0]), args[1], eval(args[2]),))
-
-elif cmd == 'sendMessageToMyHome':
- if len(args) != 2:
- print('sendMessageToMyHome requires 2 args')
- sys.exit(1)
- pp.pprint(client.sendMessageToMyHome(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'setBuddyLocation':
- if len(args) != 3:
- print('setBuddyLocation requires 3 args')
- sys.exit(1)
- pp.pprint(client.setBuddyLocation(args[0], eval(args[1]), eval(args[2]),))
-
-elif cmd == 'setIdentityCredential':
- if len(args) != 3:
- print('setIdentityCredential requires 3 args')
- sys.exit(1)
- pp.pprint(client.setIdentityCredential(eval(args[0]), args[1], args[2],))
-
-elif cmd == 'setNotificationsEnabled':
- if len(args) != 4:
- print('setNotificationsEnabled requires 4 args')
- sys.exit(1)
- pp.pprint(client.setNotificationsEnabled(eval(args[0]), eval(args[1]), args[2], eval(args[3]),))
-
-elif cmd == 'startUpdateVerification':
- if len(args) != 7:
- print('startUpdateVerification requires 7 args')
- sys.exit(1)
- pp.pprint(client.startUpdateVerification(args[0], eval(args[1]), args[2], args[3], eval(args[4]), args[5], args[6],))
-
-elif cmd == 'startVerification':
- if len(args) != 8:
- print('startVerification requires 8 args')
- sys.exit(1)
- pp.pprint(client.startVerification(args[0], eval(args[1]), args[2], args[3], eval(args[4]), args[5], args[6], args[7],))
-
-elif cmd == 'storeUpdateProfileAttribute':
- if len(args) != 3:
- print('storeUpdateProfileAttribute requires 3 args')
- sys.exit(1)
- pp.pprint(client.storeUpdateProfileAttribute(eval(args[0]), eval(args[1]), args[2],))
-
-elif cmd == 'syncContactBySnsIds':
- if len(args) != 2:
- print('syncContactBySnsIds requires 2 args')
- sys.exit(1)
- pp.pprint(client.syncContactBySnsIds(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'syncContacts':
- if len(args) != 2:
- print('syncContacts requires 2 args')
- sys.exit(1)
- pp.pprint(client.syncContacts(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'trySendMessage':
- if len(args) != 2:
- print('trySendMessage requires 2 args')
- sys.exit(1)
- pp.pprint(client.trySendMessage(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'unblockContact':
- if len(args) != 2:
- print('unblockContact requires 2 args')
- sys.exit(1)
- pp.pprint(client.unblockContact(eval(args[0]), args[1],))
-
-elif cmd == 'unblockRecommendation':
- if len(args) != 2:
- print('unblockRecommendation requires 2 args')
- sys.exit(1)
- pp.pprint(client.unblockRecommendation(eval(args[0]), args[1],))
-
-elif cmd == 'unregisterUserAndDevice':
- if len(args) != 0:
- print('unregisterUserAndDevice requires 0 args')
- sys.exit(1)
- pp.pprint(client.unregisterUserAndDevice())
-
-elif cmd == 'updateApnsDeviceToken':
- if len(args) != 1:
- print('updateApnsDeviceToken requires 1 args')
- sys.exit(1)
- pp.pprint(client.updateApnsDeviceToken(args[0],))
-
-elif cmd == 'updateBuddySetting':
- if len(args) != 2:
- print('updateBuddySetting requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateBuddySetting(args[0], args[1],))
-
-elif cmd == 'updateC2DMRegistrationId':
- if len(args) != 1:
- print('updateC2DMRegistrationId requires 1 args')
- sys.exit(1)
- pp.pprint(client.updateC2DMRegistrationId(args[0],))
-
-elif cmd == 'updateContactSetting':
- if len(args) != 4:
- print('updateContactSetting requires 4 args')
- sys.exit(1)
- pp.pprint(client.updateContactSetting(eval(args[0]), args[1], eval(args[2]), args[3],))
-
-elif cmd == 'updateCustomModeSettings':
- if len(args) != 2:
- print('updateCustomModeSettings requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateCustomModeSettings(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'updateDeviceInfo':
- if len(args) != 2:
- print('updateDeviceInfo requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateDeviceInfo(args[0], eval(args[1]),))
-
-elif cmd == 'updateGroup':
- if len(args) != 2:
- print('updateGroup requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateGroup(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'updateNotificationToken':
- if len(args) != 2:
- print('updateNotificationToken requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateNotificationToken(eval(args[0]), args[1],))
-
-elif cmd == 'updateNotificationTokenWithBytes':
- if len(args) != 2:
- print('updateNotificationTokenWithBytes requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateNotificationTokenWithBytes(eval(args[0]), args[1],))
-
-elif cmd == 'updateProfile':
- if len(args) != 2:
- print('updateProfile requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateProfile(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'updateProfileAttribute':
- if len(args) != 3:
- print('updateProfileAttribute requires 3 args')
- sys.exit(1)
- pp.pprint(client.updateProfileAttribute(eval(args[0]), eval(args[1]), args[2],))
-
-elif cmd == 'updateRegion':
- if len(args) != 1:
- print('updateRegion requires 1 args')
- sys.exit(1)
- pp.pprint(client.updateRegion(args[0],))
-
-elif cmd == 'updateSettings':
- if len(args) != 2:
- print('updateSettings requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateSettings(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'updateSettings2':
- if len(args) != 2:
- print('updateSettings2 requires 2 args')
- sys.exit(1)
- pp.pprint(client.updateSettings2(eval(args[0]), eval(args[1]),))
-
-elif cmd == 'updateSettingsAttribute':
- if len(args) != 3:
- print('updateSettingsAttribute requires 3 args')
- sys.exit(1)
- pp.pprint(client.updateSettingsAttribute(eval(args[0]), eval(args[1]), args[2],))
-
-elif cmd == 'updateSettingsAttributes':
- if len(args) != 3:
- print('updateSettingsAttributes requires 3 args')
- sys.exit(1)
- pp.pprint(client.updateSettingsAttributes(eval(args[0]), eval(args[1]), eval(args[2]),))
-
-elif cmd == 'verifyIdentityCredential':
- if len(args) != 3:
- print('verifyIdentityCredential requires 3 args')
- sys.exit(1)
- pp.pprint(client.verifyIdentityCredential(eval(args[0]), args[1], args[2],))
-
-elif cmd == 'verifyIdentityCredentialWithResult':
- if len(args) != 1:
- print('verifyIdentityCredentialWithResult requires 1 args')
- sys.exit(1)
- pp.pprint(client.verifyIdentityCredentialWithResult(eval(args[0]),))
-
-elif cmd == 'verifyPhone':
- if len(args) != 3:
- print('verifyPhone requires 3 args')
- sys.exit(1)
- pp.pprint(client.verifyPhone(args[0], args[1], args[2],))
-
-elif cmd == 'verifyQrcode':
- if len(args) != 2:
- print('verifyQrcode requires 2 args')
- sys.exit(1)
- pp.pprint(client.verifyQrcode(args[0], args[1],))
-
-else:
- print('Unrecognized method %s' % cmd)
- sys.exit(1)
-
-transport.close()
diff --git a/libs/core/TalkService.py b/libs/core/TalkService.py
index d5359e4..7c5dda9 100644
--- a/libs/core/TalkService.py
+++ b/libs/core/TalkService.py
@@ -1,5 +1,5 @@
#
-# Autogenerated by Thrift Compiler (0.14.0)
+# Autogenerated by Thrift Compiler (0.11.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
@@ -24,7 +24,15 @@ class Iface(object):
Parameters:
- reqSeq
- groupId
+ """
+ pass
+ def acceptGroupInvitationByTicket(self, reqSeq, GroupMid, ticketId):
+ """
+ Parameters:
+ - reqSeq
+ - GroupMid
+ - ticketId
"""
pass
@@ -33,7 +41,6 @@ class Iface(object):
Parameters:
- sessionId
- ids
-
"""
pass
@@ -41,7 +48,6 @@ class Iface(object):
"""
Parameters:
- to
-
"""
pass
@@ -49,7 +55,6 @@ class Iface(object):
"""
Parameters:
- to
-
"""
pass
@@ -57,7 +62,6 @@ class Iface(object):
"""
Parameters:
- featureType
-
"""
pass
@@ -66,7 +70,6 @@ class Iface(object):
Parameters:
- snsIdType
- snsAccessToken
-
"""
pass
@@ -75,7 +78,6 @@ class Iface(object):
Parameters:
- reqSeq
- id
-
"""
pass
@@ -84,7 +86,6 @@ class Iface(object):
Parameters:
- reqSeq
- id
-
"""
pass
@@ -94,7 +95,6 @@ class Iface(object):
- reqSeq
- groupId
- contactIds
-
"""
pass
@@ -103,7 +103,6 @@ class Iface(object):
Parameters:
- sessionId
- method
-
"""
pass
@@ -115,7 +114,6 @@ class Iface(object):
Parameters:
- channelId
- messageBoxId
-
"""
pass
@@ -123,7 +121,6 @@ class Iface(object):
"""
Parameters:
- sessionId
-
"""
pass
@@ -133,7 +130,6 @@ class Iface(object):
- seq
- messageId
- receiverMids
-
"""
pass
@@ -143,7 +139,6 @@ class Iface(object):
- seq
- messageIds
- receiverMids
-
"""
pass
@@ -153,7 +148,6 @@ class Iface(object):
- seq
- attrs
- receiverMids
-
"""
pass
@@ -162,7 +156,6 @@ class Iface(object):
Parameters:
- verifier
- pinCode
-
"""
pass
@@ -172,7 +165,6 @@ class Iface(object):
- seq
- name
- contactIds
-
"""
pass
@@ -186,7 +178,6 @@ class Iface(object):
- y
- width
- height
-
"""
pass
@@ -195,7 +186,6 @@ class Iface(object):
Parameters:
- reqSeq
- contactIds
-
"""
pass
@@ -206,7 +196,6 @@ class Iface(object):
"""
Parameters:
- lastFetchedIndex
-
"""
pass
@@ -215,7 +204,6 @@ class Iface(object):
Parameters:
- localTs
- count
-
"""
pass
@@ -224,7 +212,6 @@ class Iface(object):
Parameters:
- localRev
- count
-
"""
pass
@@ -235,7 +222,6 @@ class Iface(object):
- count
- globalRev
- individualRev
-
"""
pass
@@ -244,7 +230,6 @@ class Iface(object):
Parameters:
- reqSeq
- emails
-
"""
pass
@@ -253,7 +238,6 @@ class Iface(object):
Parameters:
- reqSeq
- mid
-
"""
pass
@@ -262,7 +246,6 @@ class Iface(object):
Parameters:
- reqSeq
- phones
-
"""
pass
@@ -271,7 +254,6 @@ class Iface(object):
Parameters:
- reqSeq
- userid
-
"""
pass
@@ -279,7 +261,6 @@ class Iface(object):
"""
Parameters:
- userid
-
"""
pass
@@ -287,7 +268,6 @@ class Iface(object):
"""
Parameters:
- ticketId
-
"""
pass
@@ -295,7 +275,6 @@ class Iface(object):
"""
Parameters:
- emails
-
"""
pass
@@ -303,7 +282,6 @@ class Iface(object):
"""
Parameters:
- phones
-
"""
pass
@@ -313,7 +291,6 @@ class Iface(object):
- snsIdType
- snsAccessToken
- udidHash
-
"""
pass
@@ -321,7 +298,6 @@ class Iface(object):
"""
Parameters:
- sessionId
-
"""
pass
@@ -330,7 +306,6 @@ class Iface(object):
Parameters:
- expirationTime
- maxUseCount
-
"""
pass
@@ -338,7 +313,6 @@ class Iface(object):
"""
Parameters:
- sessionId
-
"""
pass
@@ -353,7 +327,6 @@ class Iface(object):
Parameters:
- keepLoggedIn
- systemName
-
"""
pass
@@ -365,7 +338,6 @@ class Iface(object):
Parameters:
- start
- count
-
"""
pass
@@ -380,7 +352,6 @@ class Iface(object):
Parameters:
- mid
- index
-
"""
pass
@@ -388,7 +359,6 @@ class Iface(object):
"""
Parameters:
- timestamp
-
"""
pass
@@ -396,7 +366,6 @@ class Iface(object):
"""
Parameters:
- groupId
-
"""
pass
@@ -404,7 +373,6 @@ class Iface(object):
"""
Parameters:
- roomId
-
"""
pass
@@ -412,7 +380,6 @@ class Iface(object):
"""
Parameters:
- id
-
"""
pass
@@ -420,7 +387,6 @@ class Iface(object):
"""
Parameters:
- ids
-
"""
pass
@@ -434,7 +400,6 @@ class Iface(object):
"""
Parameters:
- groupId
-
"""
pass
@@ -448,7 +413,6 @@ class Iface(object):
"""
Parameters:
- groupIds
-
"""
pass
@@ -470,7 +434,6 @@ class Iface(object):
- channelId
- messageBoxId
- lastMessagesCount
-
"""
pass
@@ -478,7 +441,6 @@ class Iface(object):
"""
Parameters:
- mid
-
"""
pass
@@ -487,7 +449,6 @@ class Iface(object):
Parameters:
- start
- messageBoxCount
-
"""
pass
@@ -496,7 +457,6 @@ class Iface(object):
Parameters:
- channelId
- lastMessagesCount
-
"""
pass
@@ -506,7 +466,6 @@ class Iface(object):
- channelId
- lastMessagesCount
- status
-
"""
pass
@@ -514,7 +473,6 @@ class Iface(object):
"""
Parameters:
- mid
-
"""
pass
@@ -523,7 +481,6 @@ class Iface(object):
Parameters:
- start
- messageBoxCount
-
"""
pass
@@ -534,7 +491,6 @@ class Iface(object):
- messageBoxId
- startSeq
- endSeq
-
"""
pass
@@ -544,7 +500,6 @@ class Iface(object):
- messageBoxId
- startSeq
- messagesCount
-
"""
pass
@@ -552,7 +507,6 @@ class Iface(object):
"""
Parameters:
- carrier
-
"""
pass
@@ -562,7 +516,6 @@ class Iface(object):
- messageBoxId
- endSeq
- messagesCount
-
"""
pass
@@ -573,7 +526,6 @@ class Iface(object):
"""
Parameters:
- sessionId
-
"""
pass
@@ -581,7 +533,6 @@ class Iface(object):
"""
Parameters:
- sessionId
-
"""
pass
@@ -590,7 +541,6 @@ class Iface(object):
Parameters:
- messageBoxId
- messagesCount
-
"""
pass
@@ -601,7 +551,6 @@ class Iface(object):
"""
Parameters:
- roomId
-
"""
pass
@@ -609,7 +558,6 @@ class Iface(object):
"""
Parameters:
- provider
-
"""
pass
@@ -626,7 +574,6 @@ class Iface(object):
"""
Parameters:
- attrBitset
-
"""
pass
@@ -640,7 +587,6 @@ class Iface(object):
"""
Parameters:
- invitationHash
-
"""
pass
@@ -651,7 +597,6 @@ class Iface(object):
"""
Parameters:
- phoneNumberList
-
"""
pass
@@ -661,7 +606,6 @@ class Iface(object):
- reqSeq
- groupId
- contactIds
-
"""
pass
@@ -671,7 +615,6 @@ class Iface(object):
- reqSeq
- roomId
- contactIds
-
"""
pass
@@ -681,7 +624,6 @@ class Iface(object):
- reqSeq
- email
- name
-
"""
pass
@@ -690,7 +632,6 @@ class Iface(object):
Parameters:
- provider
- identifier
-
"""
pass
@@ -698,7 +639,6 @@ class Iface(object):
"""
Parameters:
- userid
-
"""
pass
@@ -708,7 +648,20 @@ class Iface(object):
- reqSeq
- groupId
- contactIds
+ """
+ pass
+ def reissueGroupTicket(self, groupMid):
+ """
+ Parameters:
+ - groupMid
+ """
+ pass
+
+ def findGroupByTicket(self, ticketId):
+ """
+ Parameters:
+ - ticketId
"""
pass
@@ -717,7 +670,6 @@ class Iface(object):
Parameters:
- reqSeq
- groupId
-
"""
pass
@@ -726,7 +678,6 @@ class Iface(object):
Parameters:
- reqSeq
- roomId
-
"""
pass
@@ -740,7 +691,6 @@ class Iface(object):
- accessLocation
- systemName
- certificate
-
"""
pass
@@ -754,7 +704,6 @@ class Iface(object):
- accessLocation
- systemName
- certificate
-
"""
pass
@@ -762,7 +711,6 @@ class Iface(object):
"""
Parameters:
- verifier
-
"""
pass
@@ -770,7 +718,6 @@ class Iface(object):
"""
Parameters:
- verifier
-
"""
pass
@@ -778,7 +725,6 @@ class Iface(object):
"""
Parameters:
- verifier
-
"""
pass
@@ -789,7 +735,6 @@ class Iface(object):
"""
Parameters:
- tokenKey
-
"""
pass
@@ -800,7 +745,6 @@ class Iface(object):
"""
Parameters:
- paramMap
-
"""
pass
@@ -809,7 +753,6 @@ class Iface(object):
Parameters:
- seq
- receiverMids
-
"""
pass
@@ -818,7 +761,6 @@ class Iface(object):
Parameters:
- notificationStatus
- receiverMids
-
"""
pass
@@ -827,7 +769,6 @@ class Iface(object):
Parameters:
- udidHash
- applicationTypeWithExtensions
-
"""
pass
@@ -836,7 +777,6 @@ class Iface(object):
Parameters:
- udidHash
- applicationTypeWithExtensions
-
"""
pass
@@ -845,7 +785,6 @@ class Iface(object):
Parameters:
- lastRev
- badge
-
"""
pass
@@ -854,7 +793,6 @@ class Iface(object):
Parameters:
- lastRev
- deviceInfo
-
"""
pass
@@ -862,7 +800,6 @@ class Iface(object):
"""
Parameters:
- location
-
"""
pass
@@ -871,7 +808,6 @@ class Iface(object):
Parameters:
- buddyId
- registrarPassword
-
"""
pass
@@ -880,7 +816,6 @@ class Iface(object):
Parameters:
- seq
- userid
-
"""
pass
@@ -888,7 +823,6 @@ class Iface(object):
"""
Parameters:
- sessionId
-
"""
pass
@@ -899,7 +833,6 @@ class Iface(object):
- provider
- identifier
- verifier
-
"""
pass
@@ -909,7 +842,6 @@ class Iface(object):
- region
- udidHash
- deviceInfo
-
"""
pass
@@ -923,7 +855,6 @@ class Iface(object):
- identifier
- verifier
- mid
-
"""
pass
@@ -932,7 +863,6 @@ class Iface(object):
Parameters:
- reqSeq
- userid
-
"""
pass
@@ -943,7 +873,6 @@ class Iface(object):
- guidHash
- email
- deviceInfo
-
"""
pass
@@ -954,7 +883,6 @@ class Iface(object):
- region
- udidHash
- deviceInfo
-
"""
pass
@@ -967,7 +895,6 @@ class Iface(object):
- udidHash
- deviceInfo
- mid
-
"""
pass
@@ -980,7 +907,6 @@ class Iface(object):
- region
- udidHash
- deviceInfo
-
"""
pass
@@ -992,7 +918,6 @@ class Iface(object):
Parameters:
- expirationTime
- maxUseCount
-
"""
pass
@@ -1001,7 +926,6 @@ class Iface(object):
Parameters:
- reqSeq
- groupId
-
"""
pass
@@ -1013,7 +937,6 @@ class Iface(object):
Parameters:
- seq
- lastMessageId
-
"""
pass
@@ -1022,7 +945,6 @@ class Iface(object):
Parameters:
- mid
- index
-
"""
pass
@@ -1030,7 +952,6 @@ class Iface(object):
"""
Parameters:
- messageId
-
"""
pass
@@ -1038,7 +959,6 @@ class Iface(object):
"""
Parameters:
- messageId
-
"""
pass
@@ -1046,7 +966,6 @@ class Iface(object):
"""
Parameters:
- snsIdType
-
"""
pass
@@ -1056,7 +975,6 @@ class Iface(object):
- syncOpRevision
- category
- report
-
"""
pass
@@ -1067,7 +985,6 @@ class Iface(object):
- category
- contactReports
- actionType
-
"""
pass
@@ -1076,7 +993,6 @@ class Iface(object):
Parameters:
- syncOpRevision
- groups
-
"""
pass
@@ -1085,7 +1001,6 @@ class Iface(object):
Parameters:
- syncOpRevision
- profile
-
"""
pass
@@ -1094,7 +1009,6 @@ class Iface(object):
Parameters:
- syncOpRevision
- rooms
-
"""
pass
@@ -1103,7 +1017,6 @@ class Iface(object):
Parameters:
- syncOpRevision
- settings
-
"""
pass
@@ -1113,7 +1026,6 @@ class Iface(object):
- spammerMid
- spammerReasons
- spamMessageIds
-
"""
pass
@@ -1123,7 +1035,6 @@ class Iface(object):
- provider
- identifier
- locale
-
"""
pass
@@ -1131,7 +1042,6 @@ class Iface(object):
"""
Parameters:
- emailConfirmation
-
"""
pass
@@ -1140,7 +1050,6 @@ class Iface(object):
Parameters:
- provider
- identifier
-
"""
pass
@@ -1148,7 +1057,6 @@ class Iface(object):
"""
Parameters:
- verifier
-
"""
pass
@@ -1156,7 +1064,6 @@ class Iface(object):
"""
Parameters:
- sessionId
-
"""
pass
@@ -1164,7 +1071,6 @@ class Iface(object):
"""
Parameters:
- sessionId
-
"""
pass
@@ -1174,7 +1080,6 @@ class Iface(object):
- seq
- consumer
- lastMessageId
-
"""
pass
@@ -1184,7 +1089,6 @@ class Iface(object):
- seq
- consumer
- lastMessageId
-
"""
pass
@@ -1194,7 +1098,6 @@ class Iface(object):
- esq
- messageId
- receiverMids
-
"""
pass
@@ -1204,7 +1107,6 @@ class Iface(object):
- seq
- consumer
- messageId
-
"""
pass
@@ -1216,7 +1118,6 @@ class Iface(object):
Parameters:
- seq
- message
-
"""
pass
@@ -1225,7 +1126,6 @@ class Iface(object):
Parameters:
- seq
- message
-
"""
pass
@@ -1235,7 +1135,6 @@ class Iface(object):
- seq
- consumer
- messageIds
-
"""
pass
@@ -1245,7 +1144,6 @@ class Iface(object):
- seq
- consumer
- messageIds
-
"""
pass
@@ -1254,7 +1152,6 @@ class Iface(object):
Parameters:
- seq
- message
-
"""
pass
@@ -1264,7 +1161,6 @@ class Iface(object):
- mid
- index
- location
-
"""
pass
@@ -1274,7 +1170,6 @@ class Iface(object):
- provider
- identifier
- verifier
-
"""
pass
@@ -1285,7 +1180,6 @@ class Iface(object):
- type
- target
- enablement
-
"""
pass
@@ -1299,7 +1193,6 @@ class Iface(object):
- deviceInfo
- networkCode
- locale
-
"""
pass
@@ -1314,7 +1207,6 @@ class Iface(object):
- networkCode
- mid
- locale
-
"""
pass
@@ -1324,7 +1216,6 @@ class Iface(object):
- seq
- profileAttribute
- value
-
"""
pass
@@ -1333,7 +1224,6 @@ class Iface(object):
Parameters:
- reqSeq
- modifications
-
"""
pass
@@ -1342,7 +1232,6 @@ class Iface(object):
Parameters:
- reqSeq
- localContacts
-
"""
pass
@@ -1351,7 +1240,6 @@ class Iface(object):
Parameters:
- seq
- message
-
"""
pass
@@ -1360,7 +1248,6 @@ class Iface(object):
Parameters:
- reqSeq
- id
-
"""
pass
@@ -1369,7 +1256,6 @@ class Iface(object):
Parameters:
- reqSeq
- id
-
"""
pass
@@ -1380,7 +1266,6 @@ class Iface(object):
"""
Parameters:
- apnsDeviceToken
-
"""
pass
@@ -1389,7 +1274,6 @@ class Iface(object):
Parameters:
- key
- value
-
"""
pass
@@ -1397,7 +1281,6 @@ class Iface(object):
"""
Parameters:
- registrationId
-
"""
pass
@@ -1408,7 +1291,6 @@ class Iface(object):
- mid
- flag
- value
-
"""
pass
@@ -1417,7 +1299,6 @@ class Iface(object):
Parameters:
- customMode
- paramMap
-
"""
pass
@@ -1426,7 +1307,6 @@ class Iface(object):
Parameters:
- deviceUid
- deviceInfo
-
"""
pass
@@ -1435,7 +1315,6 @@ class Iface(object):
Parameters:
- reqSeq
- group
-
"""
pass
@@ -1444,7 +1323,6 @@ class Iface(object):
Parameters:
- type
- token
-
"""
pass
@@ -1453,7 +1331,6 @@ class Iface(object):
Parameters:
- type
- token
-
"""
pass
@@ -1462,7 +1339,6 @@ class Iface(object):
Parameters:
- reqSeq
- profile
-
"""
pass
@@ -1472,7 +1348,6 @@ class Iface(object):
- reqSeq
- attr
- value
-
"""
pass
@@ -1480,7 +1355,6 @@ class Iface(object):
"""
Parameters:
- region
-
"""
pass
@@ -1489,7 +1363,6 @@ class Iface(object):
Parameters:
- reqSeq
- settings
-
"""
pass
@@ -1498,7 +1371,6 @@ class Iface(object):
Parameters:
- reqSeq
- settings
-
"""
pass
@@ -1508,7 +1380,6 @@ class Iface(object):
- reqSeq
- attr
- value
-
"""
pass
@@ -1518,7 +1389,6 @@ class Iface(object):
- reqSeq
- attrBitset
- settings
-
"""
pass
@@ -1528,7 +1398,6 @@ class Iface(object):
- identityProvider
- identifier
- password
-
"""
pass
@@ -1536,7 +1405,6 @@ class Iface(object):
"""
Parameters:
- identityCredential
-
"""
pass
@@ -1546,7 +1414,6 @@ class Iface(object):
- sessionId
- pinCode
- udidHash
-
"""
pass
@@ -1555,7 +1422,6 @@ class Iface(object):
Parameters:
- verifier
- pinCode
-
"""
pass
@@ -1572,7 +1438,6 @@ class Client(Iface):
Parameters:
- reqSeq
- groupId
-
"""
self.send_acceptGroupInvitation(reqSeq, groupId)
self.recv_acceptGroupInvitation()
@@ -1601,12 +1466,46 @@ class Client(Iface):
raise result.e
return
+ def acceptGroupInvitationByTicket(self, reqSeq, GroupMid, ticketId):
+ """
+ Parameters:
+ - reqSeq
+ - GroupMid
+ - ticketId
+ """
+ self.send_acceptGroupInvitationByTicket(reqSeq, GroupMid, ticketId)
+ self.recv_acceptGroupInvitationByTicket()
+
+ def send_acceptGroupInvitationByTicket(self, reqSeq, GroupMid, ticketId):
+ self._oprot.writeMessageBegin('acceptGroupInvitationByTicket', TMessageType.CALL, self._seqid)
+ args = acceptGroupInvitationByTicket_args()
+ args.reqSeq = reqSeq
+ args.GroupMid = GroupMid
+ args.ticketId = ticketId
+ args.write(self._oprot)
+ self._oprot.writeMessageEnd()
+ self._oprot.trans.flush()
+
+ def recv_acceptGroupInvitationByTicket(self):
+ iprot = self._iprot
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
+ if mtype == TMessageType.EXCEPTION:
+ x = TApplicationException()
+ x.read(iprot)
+ iprot.readMessageEnd()
+ raise x
+ result = acceptGroupInvitationByTicket_result()
+ result.read(iprot)
+ iprot.readMessageEnd()
+ if result.e is not None:
+ raise result.e
+ return
+
def acceptProximityMatches(self, sessionId, ids):
"""
Parameters:
- sessionId
- ids
-
"""
self.send_acceptProximityMatches(sessionId, ids)
self.recv_acceptProximityMatches()
@@ -1639,7 +1538,6 @@ class Client(Iface):
"""
Parameters:
- to
-
"""
self.send_acquireCallRoute(to)
return self.recv_acquireCallRoute()
@@ -1673,7 +1571,6 @@ class Client(Iface):
"""
Parameters:
- to
-
"""
self.send_acquireCallTicket(to)
return self.recv_acquireCallTicket()
@@ -1707,7 +1604,6 @@ class Client(Iface):
"""
Parameters:
- featureType
-
"""
self.send_acquireEncryptedAccessToken(featureType)
return self.recv_acquireEncryptedAccessToken()
@@ -1742,7 +1638,6 @@ class Client(Iface):
Parameters:
- snsIdType
- snsAccessToken
-
"""
self.send_addSnsId(snsIdType, snsAccessToken)
return self.recv_addSnsId()
@@ -1778,7 +1673,6 @@ class Client(Iface):
Parameters:
- reqSeq
- id
-
"""
self.send_blockContact(reqSeq, id)
self.recv_blockContact()
@@ -1812,7 +1706,6 @@ class Client(Iface):
Parameters:
- reqSeq
- id
-
"""
self.send_blockRecommendation(reqSeq, id)
self.recv_blockRecommendation()
@@ -1847,7 +1740,6 @@ class Client(Iface):
- reqSeq
- groupId
- contactIds
-
"""
self.send_cancelGroupInvitation(reqSeq, groupId, contactIds)
self.recv_cancelGroupInvitation()
@@ -1882,7 +1774,6 @@ class Client(Iface):
Parameters:
- sessionId
- method
-
"""
self.send_changeVerificationMethod(sessionId, method)
return self.recv_changeVerificationMethod()
@@ -1944,7 +1835,6 @@ class Client(Iface):
Parameters:
- channelId
- messageBoxId
-
"""
self.send_clearMessageBox(channelId, messageBoxId)
self.recv_clearMessageBox()
@@ -1977,7 +1867,6 @@ class Client(Iface):
"""
Parameters:
- sessionId
-
"""
self.send_closeProximityMatch(sessionId)
self.recv_closeProximityMatch()
@@ -2011,7 +1900,6 @@ class Client(Iface):
- seq
- messageId
- receiverMids
-
"""
self.send_commitSendMessage(seq, messageId, receiverMids)
return self.recv_commitSendMessage()
@@ -2049,7 +1937,6 @@ class Client(Iface):
- seq
- messageIds
- receiverMids
-
"""
self.send_commitSendMessages(seq, messageIds, receiverMids)
return self.recv_commitSendMessages()
@@ -2087,7 +1974,6 @@ class Client(Iface):
- seq
- attrs
- receiverMids
-
"""
self.send_commitUpdateProfile(seq, attrs, receiverMids)
return self.recv_commitUpdateProfile()
@@ -2124,7 +2010,6 @@ class Client(Iface):
Parameters:
- verifier
- pinCode
-
"""
self.send_confirmEmail(verifier, pinCode)
self.recv_confirmEmail()
@@ -2159,7 +2044,6 @@ class Client(Iface):
- seq
- name
- contactIds
-
"""
self.send_createGroup(seq, name, contactIds)
return self.recv_createGroup()
@@ -2201,7 +2085,6 @@ class Client(Iface):
- y
- width
- height
-
"""
self.send_createQrcodeBase64Image(url, characterSet, imageSize, x, y, width, height)
return self.recv_createQrcodeBase64Image()
@@ -2242,7 +2125,6 @@ class Client(Iface):
Parameters:
- reqSeq
- contactIds
-
"""
self.send_createRoom(reqSeq, contactIds)
return self.recv_createRoom()
@@ -2305,7 +2187,6 @@ class Client(Iface):
"""
Parameters:
- lastFetchedIndex
-
"""
self.send_fetchAnnouncements(lastFetchedIndex)
return self.recv_fetchAnnouncements()
@@ -2340,7 +2221,6 @@ class Client(Iface):
Parameters:
- localTs
- count
-
"""
self.send_fetchMessages(localTs, count)
return self.recv_fetchMessages()
@@ -2376,7 +2256,6 @@ class Client(Iface):
Parameters:
- localRev
- count
-
"""
self.send_fetchOperations(localRev, count)
return self.recv_fetchOperations()
@@ -2414,7 +2293,6 @@ class Client(Iface):
- count
- globalRev
- individualRev
-
"""
self.send_fetchOps(localRev, count, globalRev, individualRev)
return self.recv_fetchOps()
@@ -2452,7 +2330,6 @@ class Client(Iface):
Parameters:
- reqSeq
- emails
-
"""
self.send_findAndAddContactsByEmail(reqSeq, emails)
return self.recv_findAndAddContactsByEmail()
@@ -2488,7 +2365,6 @@ class Client(Iface):
Parameters:
- reqSeq
- mid
-
"""
self.send_findAndAddContactsByMid(reqSeq, mid)
return self.recv_findAndAddContactsByMid()
@@ -2524,7 +2400,6 @@ class Client(Iface):
Parameters:
- reqSeq
- phones
-
"""
self.send_findAndAddContactsByPhone(reqSeq, phones)
return self.recv_findAndAddContactsByPhone()
@@ -2560,7 +2435,6 @@ class Client(Iface):
Parameters:
- reqSeq
- userid
-
"""
self.send_findAndAddContactsByUserid(reqSeq, userid)
return self.recv_findAndAddContactsByUserid()
@@ -2595,7 +2469,6 @@ class Client(Iface):
"""
Parameters:
- userid
-
"""
self.send_findContactByUserid(userid)
return self.recv_findContactByUserid()
@@ -2629,7 +2502,6 @@ class Client(Iface):
"""
Parameters:
- ticketId
-
"""
self.send_findContactByUserTicket(ticketId)
return self.recv_findContactByUserTicket()
@@ -2663,7 +2535,6 @@ class Client(Iface):
"""
Parameters:
- emails
-
"""
self.send_findContactsByEmail(emails)
return self.recv_findContactsByEmail()
@@ -2697,7 +2568,6 @@ class Client(Iface):
"""
Parameters:
- phones
-
"""
self.send_findContactsByPhone(phones)
return self.recv_findContactsByPhone()
@@ -2733,7 +2603,6 @@ class Client(Iface):
- snsIdType
- snsAccessToken
- udidHash
-
"""
self.send_findSnsIdUserStatus(snsIdType, snsAccessToken, udidHash)
return self.recv_findSnsIdUserStatus()
@@ -2769,7 +2638,6 @@ class Client(Iface):
"""
Parameters:
- sessionId
-
"""
self.send_finishUpdateVerification(sessionId)
self.recv_finishUpdateVerification()
@@ -2802,7 +2670,6 @@ class Client(Iface):
Parameters:
- expirationTime
- maxUseCount
-
"""
self.send_generateUserTicket(expirationTime, maxUseCount)
return self.recv_generateUserTicket()
@@ -2837,7 +2704,6 @@ class Client(Iface):
"""
Parameters:
- sessionId
-
"""
self.send_getAcceptedProximityMatches(sessionId)
return self.recv_getAcceptedProximityMatches()
@@ -2928,7 +2794,6 @@ class Client(Iface):
Parameters:
- keepLoggedIn
- systemName
-
"""
self.send_getAuthQrcode(keepLoggedIn, systemName)
return self.recv_getAuthQrcode()
@@ -2992,7 +2857,6 @@ class Client(Iface):
Parameters:
- start
- count
-
"""
self.send_getBlockedContactIdsByRange(start, count)
return self.recv_getBlockedContactIdsByRange()
@@ -3084,7 +2948,6 @@ class Client(Iface):
Parameters:
- mid
- index
-
"""
self.send_getBuddyLocation(mid, index)
return self.recv_getBuddyLocation()
@@ -3119,7 +2982,6 @@ class Client(Iface):
"""
Parameters:
- timestamp
-
"""
self.send_getCompactContactsModifiedSince(timestamp)
return self.recv_getCompactContactsModifiedSince()
@@ -3153,7 +3015,6 @@ class Client(Iface):
"""
Parameters:
- groupId
-
"""
self.send_getCompactGroup(groupId)
return self.recv_getCompactGroup()
@@ -3187,7 +3048,6 @@ class Client(Iface):
"""
Parameters:
- roomId
-
"""
self.send_getCompactRoom(roomId)
return self.recv_getCompactRoom()
@@ -3221,7 +3081,6 @@ class Client(Iface):
"""
Parameters:
- id
-
"""
self.send_getContact(id)
return self.recv_getContact()
@@ -3255,7 +3114,6 @@ class Client(Iface):
"""
Parameters:
- ids
-
"""
self.send_getContacts(ids)
return self.recv_getContacts()
@@ -3345,7 +3203,6 @@ class Client(Iface):
"""
Parameters:
- groupId
-
"""
self.send_getGroup(groupId)
return self.recv_getGroup()
@@ -3435,7 +3292,6 @@ class Client(Iface):
"""
Parameters:
- groupIds
-
"""
self.send_getGroups(groupIds)
return self.recv_getGroups()
@@ -3583,7 +3439,6 @@ class Client(Iface):
- channelId
- messageBoxId
- lastMessagesCount
-
"""
self.send_getMessageBox(channelId, messageBoxId, lastMessagesCount)
return self.recv_getMessageBox()
@@ -3619,7 +3474,6 @@ class Client(Iface):
"""
Parameters:
- mid
-
"""
self.send_getMessageBoxCompactWrapUp(mid)
return self.recv_getMessageBoxCompactWrapUp()
@@ -3654,7 +3508,6 @@ class Client(Iface):
Parameters:
- start
- messageBoxCount
-
"""
self.send_getMessageBoxCompactWrapUpList(start, messageBoxCount)
return self.recv_getMessageBoxCompactWrapUpList()
@@ -3690,7 +3543,6 @@ class Client(Iface):
Parameters:
- channelId
- lastMessagesCount
-
"""
self.send_getMessageBoxList(channelId, lastMessagesCount)
return self.recv_getMessageBoxList()
@@ -3727,7 +3579,6 @@ class Client(Iface):
- channelId
- lastMessagesCount
- status
-
"""
self.send_getMessageBoxListByStatus(channelId, lastMessagesCount, status)
return self.recv_getMessageBoxListByStatus()
@@ -3763,7 +3614,6 @@ class Client(Iface):
"""
Parameters:
- mid
-
"""
self.send_getMessageBoxWrapUp(mid)
return self.recv_getMessageBoxWrapUp()
@@ -3798,7 +3648,6 @@ class Client(Iface):
Parameters:
- start
- messageBoxCount
-
"""
self.send_getMessageBoxWrapUpList(start, messageBoxCount)
return self.recv_getMessageBoxWrapUpList()
@@ -3836,7 +3685,6 @@ class Client(Iface):
- messageBoxId
- startSeq
- endSeq
-
"""
self.send_getMessagesBySequenceNumber(channelId, messageBoxId, startSeq, endSeq)
return self.recv_getMessagesBySequenceNumber()
@@ -3875,7 +3723,6 @@ class Client(Iface):
- messageBoxId
- startSeq
- messagesCount
-
"""
self.send_getNextMessages(messageBoxId, startSeq, messagesCount)
return self.recv_getNextMessages()
@@ -3911,7 +3758,6 @@ class Client(Iface):
"""
Parameters:
- carrier
-
"""
self.send_getNotificationPolicy(carrier)
return self.recv_getNotificationPolicy()
@@ -3947,7 +3793,6 @@ class Client(Iface):
- messageBoxId
- endSeq
- messagesCount
-
"""
self.send_getPreviousMessages(messageBoxId, endSeq, messagesCount)
return self.recv_getPreviousMessages()
@@ -4011,7 +3856,6 @@ class Client(Iface):
"""
Parameters:
- sessionId
-
"""
self.send_getProximityMatchCandidateList(sessionId)
return self.recv_getProximityMatchCandidateList()
@@ -4045,7 +3889,6 @@ class Client(Iface):
"""
Parameters:
- sessionId
-
"""
self.send_getProximityMatchCandidates(sessionId)
return self.recv_getProximityMatchCandidates()
@@ -4080,7 +3923,6 @@ class Client(Iface):
Parameters:
- messageBoxId
- messagesCount
-
"""
self.send_getRecentMessages(messageBoxId, messagesCount)
return self.recv_getRecentMessages()
@@ -4143,7 +3985,6 @@ class Client(Iface):
"""
Parameters:
- roomId
-
"""
self.send_getRoom(roomId)
return self.recv_getRoom()
@@ -4177,7 +4018,6 @@ class Client(Iface):
"""
Parameters:
- provider
-
"""
self.send_getRSAKeyInfo(provider)
return self.recv_getRSAKeyInfo()
@@ -4295,7 +4135,6 @@ class Client(Iface):
"""
Parameters:
- attrBitset
-
"""
self.send_getSettingsAttributes(attrBitset)
return self.recv_getSettingsAttributes()
@@ -4385,7 +4224,6 @@ class Client(Iface):
"""
Parameters:
- invitationHash
-
"""
self.send_getWapInvitation(invitationHash)
return self.recv_getWapInvitation()
@@ -4445,7 +4283,6 @@ class Client(Iface):
"""
Parameters:
- phoneNumberList
-
"""
self.send_inviteFriendsBySms(phoneNumberList)
self.recv_inviteFriendsBySms()
@@ -4479,7 +4316,6 @@ class Client(Iface):
- reqSeq
- groupId
- contactIds
-
"""
self.send_inviteIntoGroup(reqSeq, groupId, contactIds)
self.recv_inviteIntoGroup()
@@ -4515,7 +4351,6 @@ class Client(Iface):
- reqSeq
- roomId
- contactIds
-
"""
self.send_inviteIntoRoom(reqSeq, roomId, contactIds)
self.recv_inviteIntoRoom()
@@ -4551,7 +4386,6 @@ class Client(Iface):
- reqSeq
- email
- name
-
"""
self.send_inviteViaEmail(reqSeq, email, name)
self.recv_inviteViaEmail()
@@ -4586,7 +4420,6 @@ class Client(Iface):
Parameters:
- provider
- identifier
-
"""
self.send_isIdentityIdentifierAvailable(provider, identifier)
return self.recv_isIdentityIdentifierAvailable()
@@ -4621,7 +4454,6 @@ class Client(Iface):
"""
Parameters:
- userid
-
"""
self.send_isUseridAvailable(userid)
return self.recv_isUseridAvailable()
@@ -4657,7 +4489,6 @@ class Client(Iface):
- reqSeq
- groupId
- contactIds
-
"""
self.send_kickoutFromGroup(reqSeq, groupId, contactIds)
self.recv_kickoutFromGroup()
@@ -4687,12 +4518,77 @@ class Client(Iface):
raise result.e
return
+ def reissueGroupTicket(self, groupMid):
+ """
+ Parameters:
+ - groupMid
+ """
+ self.send_reissueGroupTicket(groupMid)
+ return self.recv_reissueGroupTicket()
+
+ def send_reissueGroupTicket(self, groupMid):
+ self._oprot.writeMessageBegin('reissueGroupTicket', TMessageType.CALL, self._seqid)
+ args = reissueGroupTicket_args()
+ args.groupMid = groupMid
+ args.write(self._oprot)
+ self._oprot.writeMessageEnd()
+ self._oprot.trans.flush()
+
+ def recv_reissueGroupTicket(self):
+ iprot = self._iprot
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
+ if mtype == TMessageType.EXCEPTION:
+ x = TApplicationException()
+ x.read(iprot)
+ iprot.readMessageEnd()
+ raise x
+ result = reissueGroupTicket_result()
+ result.read(iprot)
+ iprot.readMessageEnd()
+ if result.success is not None:
+ return result.success
+ if result.e is not None:
+ raise result.e
+ raise TApplicationException(TApplicationException.MISSING_RESULT, "reissueGroupTicket failed: unknown result")
+
+ def findGroupByTicket(self, ticketId):
+ """
+ Parameters:
+ - ticketId
+ """
+ self.send_findGroupByTicket(ticketId)
+ return self.recv_findGroupByTicket()
+
+ def send_findGroupByTicket(self, ticketId):
+ self._oprot.writeMessageBegin('findGroupByTicket', TMessageType.CALL, self._seqid)
+ args = findGroupByTicket_args()
+ args.ticketId = ticketId
+ args.write(self._oprot)
+ self._oprot.writeMessageEnd()
+ self._oprot.trans.flush()
+
+ def recv_findGroupByTicket(self):
+ iprot = self._iprot
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
+ if mtype == TMessageType.EXCEPTION:
+ x = TApplicationException()
+ x.read(iprot)
+ iprot.readMessageEnd()
+ raise x
+ result = findGroupByTicket_result()
+ result.read(iprot)
+ iprot.readMessageEnd()
+ if result.success is not None:
+ return result.success
+ if result.e is not None:
+ raise result.e
+ raise TApplicationException(TApplicationException.MISSING_RESULT, "findGroupByTicket failed: unknown result")
+
def leaveGroup(self, reqSeq, groupId):
"""
Parameters:
- reqSeq
- groupId
-
"""
self.send_leaveGroup(reqSeq, groupId)
self.recv_leaveGroup()
@@ -4726,7 +4622,6 @@ class Client(Iface):
Parameters:
- reqSeq
- roomId
-
"""
self.send_leaveRoom(reqSeq, roomId)
self.recv_leaveRoom()
@@ -4765,7 +4660,6 @@ class Client(Iface):
- accessLocation
- systemName
- certificate
-
"""
self.send_loginWithIdentityCredential(identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate)
return self.recv_loginWithIdentityCredential()
@@ -4811,7 +4705,6 @@ class Client(Iface):
- accessLocation
- systemName
- certificate
-
"""
self.send_loginWithIdentityCredentialForCertificate(identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate)
return self.recv_loginWithIdentityCredentialForCertificate()
@@ -4851,7 +4744,6 @@ class Client(Iface):
"""
Parameters:
- verifier
-
"""
self.send_loginWithVerifier(verifier)
return self.recv_loginWithVerifier()
@@ -4885,7 +4777,6 @@ class Client(Iface):
"""
Parameters:
- verifier
-
"""
self.send_loginWithVerifierForCerificate(verifier)
return self.recv_loginWithVerifierForCerificate()
@@ -4919,7 +4810,6 @@ class Client(Iface):
"""
Parameters:
- verifier
-
"""
self.send_loginWithVerifierForCertificate(verifier)
return self.recv_loginWithVerifierForCertificate()
@@ -4979,7 +4869,6 @@ class Client(Iface):
"""
Parameters:
- tokenKey
-
"""
self.send_logoutSession(tokenKey)
self.recv_logoutSession()
@@ -5037,7 +4926,6 @@ class Client(Iface):
"""
Parameters:
- paramMap
-
"""
self.send_notifiedRedirect(paramMap)
self.recv_notifiedRedirect()
@@ -5070,7 +4958,6 @@ class Client(Iface):
Parameters:
- seq
- receiverMids
-
"""
self.send_notifyBuddyOnAir(seq, receiverMids)
return self.recv_notifyBuddyOnAir()
@@ -5106,7 +4993,6 @@ class Client(Iface):
Parameters:
- notificationStatus
- receiverMids
-
"""
self.send_notifyIndividualEvent(notificationStatus, receiverMids)
self.recv_notifyIndividualEvent()
@@ -5140,7 +5026,6 @@ class Client(Iface):
Parameters:
- udidHash
- applicationTypeWithExtensions
-
"""
self.send_notifyInstalled(udidHash, applicationTypeWithExtensions)
self.recv_notifyInstalled()
@@ -5172,7 +5057,6 @@ class Client(Iface):
Parameters:
- udidHash
- applicationTypeWithExtensions
-
"""
self.send_notifyRegistrationComplete(udidHash, applicationTypeWithExtensions)
self.recv_notifyRegistrationComplete()
@@ -5204,7 +5088,6 @@ class Client(Iface):
Parameters:
- lastRev
- badge
-
"""
self.send_notifySleep(lastRev, badge)
self.recv_notifySleep()
@@ -5238,7 +5121,6 @@ class Client(Iface):
Parameters:
- lastRev
- deviceInfo
-
"""
self.send_notifyUpdated(lastRev, deviceInfo)
self.recv_notifyUpdated()
@@ -5271,7 +5153,6 @@ class Client(Iface):
"""
Parameters:
- location
-
"""
self.send_openProximityMatch(location)
return self.recv_openProximityMatch()
@@ -5306,7 +5187,6 @@ class Client(Iface):
Parameters:
- buddyId
- registrarPassword
-
"""
self.send_registerBuddyUser(buddyId, registrarPassword)
return self.recv_registerBuddyUser()
@@ -5342,7 +5222,6 @@ class Client(Iface):
Parameters:
- seq
- userid
-
"""
self.send_registerBuddyUserid(seq, userid)
self.recv_registerBuddyUserid()
@@ -5375,7 +5254,6 @@ class Client(Iface):
"""
Parameters:
- sessionId
-
"""
self.send_registerDevice(sessionId)
return self.recv_registerDevice()
@@ -5412,7 +5290,6 @@ class Client(Iface):
- provider
- identifier
- verifier
-
"""
self.send_registerDeviceWithIdentityCredential(sessionId, provider, identifier, verifier)
return self.recv_registerDeviceWithIdentityCredential()
@@ -5451,7 +5328,6 @@ class Client(Iface):
- region
- udidHash
- deviceInfo
-
"""
self.send_registerDeviceWithoutPhoneNumber(region, udidHash, deviceInfo)
return self.recv_registerDeviceWithoutPhoneNumber()
@@ -5493,7 +5369,6 @@ class Client(Iface):
- identifier
- verifier
- mid
-
"""
self.send_registerDeviceWithoutPhoneNumberWithIdentityCredential(region, udidHash, deviceInfo, provider, identifier, verifier, mid)
return self.recv_registerDeviceWithoutPhoneNumberWithIdentityCredential()
@@ -5534,7 +5409,6 @@ class Client(Iface):
Parameters:
- reqSeq
- userid
-
"""
self.send_registerUserid(reqSeq, userid)
return self.recv_registerUserid()
@@ -5572,7 +5446,6 @@ class Client(Iface):
- guidHash
- email
- deviceInfo
-
"""
self.send_registerWapDevice(invitationHash, guidHash, email, deviceInfo)
return self.recv_registerWapDevice()
@@ -5612,7 +5485,6 @@ class Client(Iface):
- region
- udidHash
- deviceInfo
-
"""
self.send_registerWithExistingSnsIdAndIdentityCredential(identityCredential, region, udidHash, deviceInfo)
return self.recv_registerWithExistingSnsIdAndIdentityCredential()
@@ -5654,7 +5526,6 @@ class Client(Iface):
- udidHash
- deviceInfo
- mid
-
"""
self.send_registerWithSnsId(snsIdType, snsAccessToken, region, udidHash, deviceInfo, mid)
return self.recv_registerWithSnsId()
@@ -5698,7 +5569,6 @@ class Client(Iface):
- region
- udidHash
- deviceInfo
-
"""
self.send_registerWithSnsIdAndIdentityCredential(snsIdType, snsAccessToken, identityCredential, region, udidHash, deviceInfo)
return self.recv_registerWithSnsIdAndIdentityCredential()
@@ -5766,7 +5636,6 @@ class Client(Iface):
Parameters:
- expirationTime
- maxUseCount
-
"""
self.send_reissueUserTicket(expirationTime, maxUseCount)
return self.recv_reissueUserTicket()
@@ -5802,7 +5671,6 @@ class Client(Iface):
Parameters:
- reqSeq
- groupId
-
"""
self.send_rejectGroupInvitation(reqSeq, groupId)
self.recv_rejectGroupInvitation()
@@ -5862,7 +5730,6 @@ class Client(Iface):
Parameters:
- seq
- lastMessageId
-
"""
self.send_removeAllMessages(seq, lastMessageId)
self.recv_removeAllMessages()
@@ -5896,7 +5763,6 @@ class Client(Iface):
Parameters:
- mid
- index
-
"""
self.send_removeBuddyLocation(mid, index)
self.recv_removeBuddyLocation()
@@ -5929,7 +5795,6 @@ class Client(Iface):
"""
Parameters:
- messageId
-
"""
self.send_removeMessage(messageId)
return self.recv_removeMessage()
@@ -5963,7 +5828,6 @@ class Client(Iface):
"""
Parameters:
- messageId
-
"""
self.send_removeMessageFromMyHome(messageId)
return self.recv_removeMessageFromMyHome()
@@ -5997,7 +5861,6 @@ class Client(Iface):
"""
Parameters:
- snsIdType
-
"""
self.send_removeSnsId(snsIdType)
return self.recv_removeSnsId()
@@ -6033,7 +5896,6 @@ class Client(Iface):
- syncOpRevision
- category
- report
-
"""
self.send_report(syncOpRevision, category, report)
self.recv_report()
@@ -6070,7 +5932,6 @@ class Client(Iface):
- category
- contactReports
- actionType
-
"""
self.send_reportContacts(syncOpRevision, category, contactReports, actionType)
return self.recv_reportContacts()
@@ -6108,7 +5969,6 @@ class Client(Iface):
Parameters:
- syncOpRevision
- groups
-
"""
self.send_reportGroups(syncOpRevision, groups)
self.recv_reportGroups()
@@ -6142,7 +6002,6 @@ class Client(Iface):
Parameters:
- syncOpRevision
- profile
-
"""
self.send_reportProfile(syncOpRevision, profile)
self.recv_reportProfile()
@@ -6176,7 +6035,6 @@ class Client(Iface):
Parameters:
- syncOpRevision
- rooms
-
"""
self.send_reportRooms(syncOpRevision, rooms)
self.recv_reportRooms()
@@ -6210,7 +6068,6 @@ class Client(Iface):
Parameters:
- syncOpRevision
- settings
-
"""
self.send_reportSettings(syncOpRevision, settings)
self.recv_reportSettings()
@@ -6245,7 +6102,6 @@ class Client(Iface):
- spammerMid
- spammerReasons
- spamMessageIds
-
"""
self.send_reportSpammer(spammerMid, spammerReasons, spamMessageIds)
self.recv_reportSpammer()
@@ -6281,7 +6137,6 @@ class Client(Iface):
- provider
- identifier
- locale
-
"""
self.send_requestAccountPasswordReset(provider, identifier, locale)
self.recv_requestAccountPasswordReset()
@@ -6315,7 +6170,6 @@ class Client(Iface):
"""
Parameters:
- emailConfirmation
-
"""
self.send_requestEmailConfirmation(emailConfirmation)
return self.recv_requestEmailConfirmation()
@@ -6350,7 +6204,6 @@ class Client(Iface):
Parameters:
- provider
- identifier
-
"""
self.send_requestIdentityUnbind(provider, identifier)
self.recv_requestIdentityUnbind()
@@ -6383,7 +6236,6 @@ class Client(Iface):
"""
Parameters:
- verifier
-
"""
self.send_resendEmailConfirmation(verifier)
return self.recv_resendEmailConfirmation()
@@ -6417,7 +6269,6 @@ class Client(Iface):
"""
Parameters:
- sessionId
-
"""
self.send_resendPinCode(sessionId)
self.recv_resendPinCode()
@@ -6449,7 +6300,6 @@ class Client(Iface):
"""
Parameters:
- sessionId
-
"""
self.send_resendPinCodeBySMS(sessionId)
self.recv_resendPinCodeBySMS()
@@ -6483,7 +6333,6 @@ class Client(Iface):
- seq
- consumer
- lastMessageId
-
"""
self.send_sendChatChecked(seq, consumer, lastMessageId)
self.recv_sendChatChecked()
@@ -6519,7 +6368,6 @@ class Client(Iface):
- seq
- consumer
- lastMessageId
-
"""
self.send_sendChatRemoved(seq, consumer, lastMessageId)
self.recv_sendChatRemoved()
@@ -6555,7 +6403,6 @@ class Client(Iface):
- esq
- messageId
- receiverMids
-
"""
self.send_sendContentPreviewUpdated(esq, messageId, receiverMids)
return self.recv_sendContentPreviewUpdated()
@@ -6593,7 +6440,6 @@ class Client(Iface):
- seq
- consumer
- messageId
-
"""
self.send_sendContentReceipt(seq, consumer, messageId)
self.recv_sendContentReceipt()
@@ -6654,7 +6500,6 @@ class Client(Iface):
Parameters:
- seq
- message
-
"""
self.send_sendEvent(seq, message)
return self.recv_sendEvent()
@@ -6690,7 +6535,6 @@ class Client(Iface):
Parameters:
- seq
- message
-
"""
self.send_sendMessage(seq, message)
return self.recv_sendMessage()
@@ -6727,7 +6571,6 @@ class Client(Iface):
- seq
- consumer
- messageIds
-
"""
self.send_sendMessageIgnored(seq, consumer, messageIds)
self.recv_sendMessageIgnored()
@@ -6763,7 +6606,6 @@ class Client(Iface):
- seq
- consumer
- messageIds
-
"""
self.send_sendMessageReceipt(seq, consumer, messageIds)
self.recv_sendMessageReceipt()
@@ -6798,7 +6640,6 @@ class Client(Iface):
Parameters:
- seq
- message
-
"""
self.send_sendMessageToMyHome(seq, message)
return self.recv_sendMessageToMyHome()
@@ -6835,7 +6676,6 @@ class Client(Iface):
- mid
- index
- location
-
"""
self.send_setBuddyLocation(mid, index, location)
self.recv_setBuddyLocation()
@@ -6871,7 +6711,6 @@ class Client(Iface):
- provider
- identifier
- verifier
-
"""
self.send_setIdentityCredential(provider, identifier, verifier)
self.recv_setIdentityCredential()
@@ -6908,7 +6747,6 @@ class Client(Iface):
- type
- target
- enablement
-
"""
self.send_setNotificationsEnabled(reqSeq, type, target, enablement)
self.recv_setNotificationsEnabled()
@@ -6949,7 +6787,6 @@ class Client(Iface):
- deviceInfo
- networkCode
- locale
-
"""
self.send_startUpdateVerification(region, carrier, phone, udidHash, deviceInfo, networkCode, locale)
return self.recv_startUpdateVerification()
@@ -6996,7 +6833,6 @@ class Client(Iface):
- networkCode
- mid
- locale
-
"""
self.send_startVerification(region, carrier, phone, udidHash, deviceInfo, networkCode, mid, locale)
return self.recv_startVerification()
@@ -7039,7 +6875,6 @@ class Client(Iface):
- seq
- profileAttribute
- value
-
"""
self.send_storeUpdateProfileAttribute(seq, profileAttribute, value)
self.recv_storeUpdateProfileAttribute()
@@ -7074,7 +6909,6 @@ class Client(Iface):
Parameters:
- reqSeq
- modifications
-
"""
self.send_syncContactBySnsIds(reqSeq, modifications)
return self.recv_syncContactBySnsIds()
@@ -7110,7 +6944,6 @@ class Client(Iface):
Parameters:
- reqSeq
- localContacts
-
"""
self.send_syncContacts(reqSeq, localContacts)
return self.recv_syncContacts()
@@ -7146,7 +6979,6 @@ class Client(Iface):
Parameters:
- seq
- message
-
"""
self.send_trySendMessage(seq, message)
return self.recv_trySendMessage()
@@ -7182,7 +7014,6 @@ class Client(Iface):
Parameters:
- reqSeq
- id
-
"""
self.send_unblockContact(reqSeq, id)
self.recv_unblockContact()
@@ -7216,7 +7047,6 @@ class Client(Iface):
Parameters:
- reqSeq
- id
-
"""
self.send_unblockRecommendation(reqSeq, id)
self.recv_unblockRecommendation()
@@ -7277,7 +7107,6 @@ class Client(Iface):
"""
Parameters:
- apnsDeviceToken
-
"""
self.send_updateApnsDeviceToken(apnsDeviceToken)
self.recv_updateApnsDeviceToken()
@@ -7310,7 +7139,6 @@ class Client(Iface):
Parameters:
- key
- value
-
"""
self.send_updateBuddySetting(key, value)
self.recv_updateBuddySetting()
@@ -7343,7 +7171,6 @@ class Client(Iface):
"""
Parameters:
- registrationId
-
"""
self.send_updateC2DMRegistrationId(registrationId)
self.recv_updateC2DMRegistrationId()
@@ -7378,7 +7205,6 @@ class Client(Iface):
- mid
- flag
- value
-
"""
self.send_updateContactSetting(reqSeq, mid, flag, value)
self.recv_updateContactSetting()
@@ -7414,7 +7240,6 @@ class Client(Iface):
Parameters:
- customMode
- paramMap
-
"""
self.send_updateCustomModeSettings(customMode, paramMap)
self.recv_updateCustomModeSettings()
@@ -7448,7 +7273,6 @@ class Client(Iface):
Parameters:
- deviceUid
- deviceInfo
-
"""
self.send_updateDeviceInfo(deviceUid, deviceInfo)
self.recv_updateDeviceInfo()
@@ -7482,7 +7306,6 @@ class Client(Iface):
Parameters:
- reqSeq
- group
-
"""
self.send_updateGroup(reqSeq, group)
self.recv_updateGroup()
@@ -7516,7 +7339,6 @@ class Client(Iface):
Parameters:
- type
- token
-
"""
self.send_updateNotificationToken(type, token)
self.recv_updateNotificationToken()
@@ -7550,7 +7372,6 @@ class Client(Iface):
Parameters:
- type
- token
-
"""
self.send_updateNotificationTokenWithBytes(type, token)
self.recv_updateNotificationTokenWithBytes()
@@ -7584,7 +7405,6 @@ class Client(Iface):
Parameters:
- reqSeq
- profile
-
"""
self.send_updateProfile(reqSeq, profile)
self.recv_updateProfile()
@@ -7619,7 +7439,6 @@ class Client(Iface):
- reqSeq
- attr
- value
-
"""
self.send_updateProfileAttribute(reqSeq, attr, value)
self.recv_updateProfileAttribute()
@@ -7653,7 +7472,6 @@ class Client(Iface):
"""
Parameters:
- region
-
"""
self.send_updateRegion(region)
self.recv_updateRegion()
@@ -7686,7 +7504,6 @@ class Client(Iface):
Parameters:
- reqSeq
- settings
-
"""
self.send_updateSettings(reqSeq, settings)
self.recv_updateSettings()
@@ -7720,7 +7537,6 @@ class Client(Iface):
Parameters:
- reqSeq
- settings
-
"""
self.send_updateSettings2(reqSeq, settings)
return self.recv_updateSettings2()
@@ -7757,7 +7573,6 @@ class Client(Iface):
- reqSeq
- attr
- value
-
"""
self.send_updateSettingsAttribute(reqSeq, attr, value)
self.recv_updateSettingsAttribute()
@@ -7793,7 +7608,6 @@ class Client(Iface):
- reqSeq
- attrBitset
- settings
-
"""
self.send_updateSettingsAttributes(reqSeq, attrBitset, settings)
return self.recv_updateSettingsAttributes()
@@ -7831,7 +7645,6 @@ class Client(Iface):
- identityProvider
- identifier
- password
-
"""
self.send_verifyIdentityCredential(identityProvider, identifier, password)
self.recv_verifyIdentityCredential()
@@ -7865,7 +7678,6 @@ class Client(Iface):
"""
Parameters:
- identityCredential
-
"""
self.send_verifyIdentityCredentialWithResult(identityCredential)
return self.recv_verifyIdentityCredentialWithResult()
@@ -7901,7 +7713,6 @@ class Client(Iface):
- sessionId
- pinCode
- udidHash
-
"""
self.send_verifyPhone(sessionId, pinCode, udidHash)
return self.recv_verifyPhone()
@@ -7938,7 +7749,6 @@ class Client(Iface):
Parameters:
- verifier
- pinCode
-
"""
self.send_verifyQrcode(verifier, pinCode)
return self.recv_verifyQrcode()
@@ -7975,6 +7785,7 @@ class Processor(Iface, TProcessor):
self._handler = handler
self._processMap = {}
self._processMap["acceptGroupInvitation"] = Processor.process_acceptGroupInvitation
+ self._processMap["acceptGroupInvitationByTicket"] = Processor.process_acceptGroupInvitationByTicket
self._processMap["acceptProximityMatches"] = Processor.process_acceptProximityMatches
self._processMap["acquireCallRoute"] = Processor.process_acquireCallRoute
self._processMap["acquireCallTicket"] = Processor.process_acquireCallTicket
@@ -8067,6 +7878,8 @@ class Processor(Iface, TProcessor):
self._processMap["isIdentityIdentifierAvailable"] = Processor.process_isIdentityIdentifierAvailable
self._processMap["isUseridAvailable"] = Processor.process_isUseridAvailable
self._processMap["kickoutFromGroup"] = Processor.process_kickoutFromGroup
+ self._processMap["reissueGroupTicket"] = Processor.process_reissueGroupTicket
+ self._processMap["findGroupByTicket"] = Processor.process_findGroupByTicket
self._processMap["leaveGroup"] = Processor.process_leaveGroup
self._processMap["leaveRoom"] = Processor.process_leaveRoom
self._processMap["loginWithIdentityCredential"] = Processor.process_loginWithIdentityCredential
@@ -8160,15 +7973,9 @@ class Processor(Iface, TProcessor):
self._processMap["verifyIdentityCredentialWithResult"] = Processor.process_verifyIdentityCredentialWithResult
self._processMap["verifyPhone"] = Processor.process_verifyPhone
self._processMap["verifyQrcode"] = Processor.process_verifyQrcode
- self._on_message_begin = None
-
- def on_message_begin(self, func):
- self._on_message_begin = func
def process(self, iprot, oprot):
(name, type, seqid) = iprot.readMessageBegin()
- if self._on_message_begin:
- self._on_message_begin(name, type, seqid)
if name not in self._processMap:
iprot.skip(TType.STRUCT)
iprot.readMessageEnd()
@@ -8208,6 +8015,32 @@ class Processor(Iface, TProcessor):
oprot.writeMessageEnd()
oprot.trans.flush()
+ def process_acceptGroupInvitationByTicket(self, seqid, iprot, oprot):
+ args = acceptGroupInvitationByTicket_args()
+ args.read(iprot)
+ iprot.readMessageEnd()
+ result = acceptGroupInvitationByTicket_result()
+ try:
+ self._handler.acceptGroupInvitationByTicket(args.reqSeq, args.GroupMid, args.ticketId)
+ msg_type = TMessageType.REPLY
+ except TTransport.TTransportException:
+ raise
+ except TalkException as e:
+ msg_type = TMessageType.REPLY
+ result.e = e
+ except TApplicationException as ex:
+ logging.exception('TApplication exception in handler')
+ msg_type = TMessageType.EXCEPTION
+ result = ex
+ except Exception:
+ logging.exception('Unexpected exception in handler')
+ msg_type = TMessageType.EXCEPTION
+ result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
+ oprot.writeMessageBegin("acceptGroupInvitationByTicket", msg_type, seqid)
+ result.write(oprot)
+ oprot.writeMessageEnd()
+ oprot.trans.flush()
+
def process_acceptProximityMatches(self, seqid, iprot, oprot):
args = acceptProximityMatches_args()
args.read(iprot)
@@ -10600,6 +10433,58 @@ class Processor(Iface, TProcessor):
oprot.writeMessageEnd()
oprot.trans.flush()
+ def process_reissueGroupTicket(self, seqid, iprot, oprot):
+ args = reissueGroupTicket_args()
+ args.read(iprot)
+ iprot.readMessageEnd()
+ result = reissueGroupTicket_result()
+ try:
+ result.success = self._handler.reissueGroupTicket(args.groupMid)
+ msg_type = TMessageType.REPLY
+ except TTransport.TTransportException:
+ raise
+ except TalkException as e:
+ msg_type = TMessageType.REPLY
+ result.e = e
+ except TApplicationException as ex:
+ logging.exception('TApplication exception in handler')
+ msg_type = TMessageType.EXCEPTION
+ result = ex
+ except Exception:
+ logging.exception('Unexpected exception in handler')
+ msg_type = TMessageType.EXCEPTION
+ result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
+ oprot.writeMessageBegin("reissueGroupTicket", msg_type, seqid)
+ result.write(oprot)
+ oprot.writeMessageEnd()
+ oprot.trans.flush()
+
+ def process_findGroupByTicket(self, seqid, iprot, oprot):
+ args = findGroupByTicket_args()
+ args.read(iprot)
+ iprot.readMessageEnd()
+ result = findGroupByTicket_result()
+ try:
+ result.success = self._handler.findGroupByTicket(args.ticketId)
+ msg_type = TMessageType.REPLY
+ except TTransport.TTransportException:
+ raise
+ except TalkException as e:
+ msg_type = TMessageType.REPLY
+ result.e = e
+ except TApplicationException as ex:
+ logging.exception('TApplication exception in handler')
+ msg_type = TMessageType.EXCEPTION
+ result = ex
+ except Exception:
+ logging.exception('Unexpected exception in handler')
+ msg_type = TMessageType.EXCEPTION
+ result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
+ oprot.writeMessageBegin("findGroupByTicket", msg_type, seqid)
+ result.write(oprot)
+ oprot.writeMessageEnd()
+ oprot.trans.flush()
+
def process_leaveGroup(self, seqid, iprot, oprot):
args = leaveGroup_args()
args.read(iprot)
@@ -13020,7 +12905,6 @@ class acceptGroupInvitation_args(object):
Attributes:
- reqSeq
- groupId
-
"""
@@ -13093,7 +12977,6 @@ class acceptGroupInvitation_result(object):
"""
Attributes:
- e
-
"""
@@ -13152,12 +13035,158 @@ acceptGroupInvitation_result.thrift_spec = (
)
+class acceptGroupInvitationByTicket_args(object):
+ """
+ Attributes:
+ - reqSeq
+ - GroupMid
+ - ticketId
+ """
+
+
+ def __init__(self, reqSeq=None, GroupMid=None, ticketId=None,):
+ self.reqSeq = reqSeq
+ self.GroupMid = GroupMid
+ self.ticketId = ticketId
+
+ def read(self, iprot):
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
+ return
+ iprot.readStructBegin()
+ while True:
+ (fname, ftype, fid) = iprot.readFieldBegin()
+ if ftype == TType.STOP:
+ break
+ if fid == 1:
+ if ftype == TType.I32:
+ self.reqSeq = iprot.readI32()
+ else:
+ iprot.skip(ftype)
+ elif fid == 2:
+ if ftype == TType.STRING:
+ self.GroupMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ else:
+ iprot.skip(ftype)
+ elif fid == 3:
+ if ftype == TType.STRING:
+ self.ticketId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
+ return
+ oprot.writeStructBegin('acceptGroupInvitationByTicket_args')
+ if self.reqSeq is not None:
+ oprot.writeFieldBegin('reqSeq', TType.I32, 1)
+ oprot.writeI32(self.reqSeq)
+ oprot.writeFieldEnd()
+ if self.GroupMid is not None:
+ oprot.writeFieldBegin('GroupMid', TType.STRING, 2)
+ oprot.writeString(self.GroupMid.encode('utf-8') if sys.version_info[0] == 2 else self.GroupMid)
+ oprot.writeFieldEnd()
+ if self.ticketId is not None:
+ oprot.writeFieldBegin('ticketId', TType.STRING, 3)
+ oprot.writeString(self.ticketId.encode('utf-8') if sys.version_info[0] == 2 else self.ticketId)
+ oprot.writeFieldEnd()
+ oprot.writeFieldStop()
+ oprot.writeStructEnd()
+
+ def validate(self):
+ return
+
+ def __repr__(self):
+ L = ['%s=%r' % (key, value)
+ for key, value in self.__dict__.items()]
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+ def __eq__(self, other):
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not (self == other)
+all_structs.append(acceptGroupInvitationByTicket_args)
+acceptGroupInvitationByTicket_args.thrift_spec = (
+ None, # 0
+ (1, TType.I32, 'reqSeq', None, None, ), # 1
+ (2, TType.STRING, 'GroupMid', 'UTF8', None, ), # 2
+ (3, TType.STRING, 'ticketId', 'UTF8', None, ), # 3
+)
+
+
+class acceptGroupInvitationByTicket_result(object):
+ """
+ Attributes:
+ - e
+ """
+
+
+ def __init__(self, e=None,):
+ self.e = e
+
+ def read(self, iprot):
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
+ return
+ iprot.readStructBegin()
+ while True:
+ (fname, ftype, fid) = iprot.readFieldBegin()
+ if ftype == TType.STOP:
+ break
+ if fid == 1:
+ if ftype == TType.STRUCT:
+ self.e = TalkException()
+ self.e.read(iprot)
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
+ return
+ oprot.writeStructBegin('acceptGroupInvitationByTicket_result')
+ if self.e is not None:
+ oprot.writeFieldBegin('e', TType.STRUCT, 1)
+ self.e.write(oprot)
+ oprot.writeFieldEnd()
+ oprot.writeFieldStop()
+ oprot.writeStructEnd()
+
+ def validate(self):
+ return
+
+ def __repr__(self):
+ L = ['%s=%r' % (key, value)
+ for key, value in self.__dict__.items()]
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+ def __eq__(self, other):
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not (self == other)
+all_structs.append(acceptGroupInvitationByTicket_result)
+acceptGroupInvitationByTicket_result.thrift_spec = (
+ None, # 0
+ (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
+)
+
+
class acceptProximityMatches_args(object):
"""
Attributes:
- sessionId
- ids
-
"""
@@ -13182,10 +13211,10 @@ class acceptProximityMatches_args(object):
elif fid == 3:
if ftype == TType.SET:
self.ids = set()
- (_etype708, _size705) = iprot.readSetBegin()
- for _i709 in range(_size705):
- _elem710 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.ids.add(_elem710)
+ (_etype335, _size332) = iprot.readSetBegin()
+ for _i336 in range(_size332):
+ _elem337 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.ids.add(_elem337)
iprot.readSetEnd()
else:
iprot.skip(ftype)
@@ -13206,8 +13235,8 @@ class acceptProximityMatches_args(object):
if self.ids is not None:
oprot.writeFieldBegin('ids', TType.SET, 3)
oprot.writeSetBegin(TType.STRING, len(self.ids))
- for iter711 in self.ids:
- oprot.writeString(iter711.encode('utf-8') if sys.version_info[0] == 2 else iter711)
+ for iter338 in self.ids:
+ oprot.writeString(iter338.encode('utf-8') if sys.version_info[0] == 2 else iter338)
oprot.writeSetEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -13239,7 +13268,6 @@ class acceptProximityMatches_result(object):
"""
Attributes:
- e
-
"""
@@ -13302,7 +13330,6 @@ class acquireCallRoute_args(object):
"""
Attributes:
- to
-
"""
@@ -13366,7 +13393,6 @@ class acquireCallRoute_result(object):
Attributes:
- success
- e
-
"""
@@ -13386,10 +13412,10 @@ class acquireCallRoute_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype715, _size712) = iprot.readListBegin()
- for _i716 in range(_size712):
- _elem717 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem717)
+ (_etype342, _size339) = iprot.readListBegin()
+ for _i343 in range(_size339):
+ _elem344 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success.append(_elem344)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -13412,8 +13438,8 @@ class acquireCallRoute_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter718 in self.success:
- oprot.writeString(iter718.encode('utf-8') if sys.version_info[0] == 2 else iter718)
+ for iter345 in self.success:
+ oprot.writeString(iter345.encode('utf-8') if sys.version_info[0] == 2 else iter345)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -13447,7 +13473,6 @@ class acquireCallTicket_args(object):
"""
Attributes:
- to
-
"""
@@ -13511,7 +13536,6 @@ class acquireCallTicket_result(object):
Attributes:
- success
- e
-
"""
@@ -13584,7 +13608,6 @@ class acquireEncryptedAccessToken_args(object):
"""
Attributes:
- featureType
-
"""
@@ -13648,7 +13671,6 @@ class acquireEncryptedAccessToken_result(object):
Attributes:
- success
- e
-
"""
@@ -13722,7 +13744,6 @@ class addSnsId_args(object):
Attributes:
- snsIdType
- snsAccessToken
-
"""
@@ -13797,7 +13818,6 @@ class addSnsId_result(object):
Attributes:
- success
- e
-
"""
@@ -13871,7 +13891,6 @@ class blockContact_args(object):
Attributes:
- reqSeq
- id
-
"""
@@ -13944,7 +13963,6 @@ class blockContact_result(object):
"""
Attributes:
- e
-
"""
@@ -14008,7 +14026,6 @@ class blockRecommendation_args(object):
Attributes:
- reqSeq
- id
-
"""
@@ -14081,7 +14098,6 @@ class blockRecommendation_result(object):
"""
Attributes:
- e
-
"""
@@ -14146,7 +14162,6 @@ class cancelGroupInvitation_args(object):
- reqSeq
- groupId
- contactIds
-
"""
@@ -14177,10 +14192,10 @@ class cancelGroupInvitation_args(object):
elif fid == 3:
if ftype == TType.LIST:
self.contactIds = []
- (_etype722, _size719) = iprot.readListBegin()
- for _i723 in range(_size719):
- _elem724 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.contactIds.append(_elem724)
+ (_etype349, _size346) = iprot.readListBegin()
+ for _i350 in range(_size346):
+ _elem351 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.contactIds.append(_elem351)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -14205,8 +14220,8 @@ class cancelGroupInvitation_args(object):
if self.contactIds is not None:
oprot.writeFieldBegin('contactIds', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.contactIds))
- for iter725 in self.contactIds:
- oprot.writeString(iter725.encode('utf-8') if sys.version_info[0] == 2 else iter725)
+ for iter352 in self.contactIds:
+ oprot.writeString(iter352.encode('utf-8') if sys.version_info[0] == 2 else iter352)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -14238,7 +14253,6 @@ class cancelGroupInvitation_result(object):
"""
Attributes:
- e
-
"""
@@ -14302,7 +14316,6 @@ class changeVerificationMethod_args(object):
Attributes:
- sessionId
- method
-
"""
@@ -14377,7 +14390,6 @@ class changeVerificationMethod_result(object):
Attributes:
- success
- e
-
"""
@@ -14494,7 +14506,6 @@ class clearIdentityCredential_result(object):
"""
Attributes:
- e
-
"""
@@ -14558,7 +14569,6 @@ class clearMessageBox_args(object):
Attributes:
- channelId
- messageBoxId
-
"""
@@ -14632,7 +14642,6 @@ class clearMessageBox_result(object):
"""
Attributes:
- e
-
"""
@@ -14695,7 +14704,6 @@ class closeProximityMatch_args(object):
"""
Attributes:
- sessionId
-
"""
@@ -14758,7 +14766,6 @@ class closeProximityMatch_result(object):
"""
Attributes:
- e
-
"""
@@ -14823,7 +14830,6 @@ class commitSendMessage_args(object):
- seq
- messageId
- receiverMids
-
"""
@@ -14854,10 +14860,10 @@ class commitSendMessage_args(object):
elif fid == 3:
if ftype == TType.LIST:
self.receiverMids = []
- (_etype729, _size726) = iprot.readListBegin()
- for _i730 in range(_size726):
- _elem731 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.receiverMids.append(_elem731)
+ (_etype356, _size353) = iprot.readListBegin()
+ for _i357 in range(_size353):
+ _elem358 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.receiverMids.append(_elem358)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -14882,8 +14888,8 @@ class commitSendMessage_args(object):
if self.receiverMids is not None:
oprot.writeFieldBegin('receiverMids', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.receiverMids))
- for iter732 in self.receiverMids:
- oprot.writeString(iter732.encode('utf-8') if sys.version_info[0] == 2 else iter732)
+ for iter359 in self.receiverMids:
+ oprot.writeString(iter359.encode('utf-8') if sys.version_info[0] == 2 else iter359)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -14916,7 +14922,6 @@ class commitSendMessage_result(object):
Attributes:
- success
- e
-
"""
@@ -14936,11 +14941,11 @@ class commitSendMessage_result(object):
if fid == 0:
if ftype == TType.MAP:
self.success = {}
- (_ktype734, _vtype735, _size733) = iprot.readMapBegin()
- for _i737 in range(_size733):
- _key738 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val739 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success[_key738] = _val739
+ (_ktype361, _vtype362, _size360) = iprot.readMapBegin()
+ for _i364 in range(_size360):
+ _key365 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ _val366 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success[_key365] = _val366
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -14963,9 +14968,9 @@ class commitSendMessage_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
- for kiter740, viter741 in self.success.items():
- oprot.writeString(kiter740.encode('utf-8') if sys.version_info[0] == 2 else kiter740)
- oprot.writeString(viter741.encode('utf-8') if sys.version_info[0] == 2 else viter741)
+ for kiter367, viter368 in self.success.items():
+ oprot.writeString(kiter367.encode('utf-8') if sys.version_info[0] == 2 else kiter367)
+ oprot.writeString(viter368.encode('utf-8') if sys.version_info[0] == 2 else viter368)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -15001,7 +15006,6 @@ class commitSendMessages_args(object):
- seq
- messageIds
- receiverMids
-
"""
@@ -15027,20 +15031,20 @@ class commitSendMessages_args(object):
elif fid == 2:
if ftype == TType.LIST:
self.messageIds = []
- (_etype745, _size742) = iprot.readListBegin()
- for _i746 in range(_size742):
- _elem747 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.messageIds.append(_elem747)
+ (_etype372, _size369) = iprot.readListBegin()
+ for _i373 in range(_size369):
+ _elem374 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.messageIds.append(_elem374)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.receiverMids = []
- (_etype751, _size748) = iprot.readListBegin()
- for _i752 in range(_size748):
- _elem753 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.receiverMids.append(_elem753)
+ (_etype378, _size375) = iprot.readListBegin()
+ for _i379 in range(_size375):
+ _elem380 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.receiverMids.append(_elem380)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -15061,15 +15065,15 @@ class commitSendMessages_args(object):
if self.messageIds is not None:
oprot.writeFieldBegin('messageIds', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.messageIds))
- for iter754 in self.messageIds:
- oprot.writeString(iter754.encode('utf-8') if sys.version_info[0] == 2 else iter754)
+ for iter381 in self.messageIds:
+ oprot.writeString(iter381.encode('utf-8') if sys.version_info[0] == 2 else iter381)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.receiverMids is not None:
oprot.writeFieldBegin('receiverMids', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.receiverMids))
- for iter755 in self.receiverMids:
- oprot.writeString(iter755.encode('utf-8') if sys.version_info[0] == 2 else iter755)
+ for iter382 in self.receiverMids:
+ oprot.writeString(iter382.encode('utf-8') if sys.version_info[0] == 2 else iter382)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -15102,7 +15106,6 @@ class commitSendMessages_result(object):
Attributes:
- success
- e
-
"""
@@ -15122,11 +15125,11 @@ class commitSendMessages_result(object):
if fid == 0:
if ftype == TType.MAP:
self.success = {}
- (_ktype757, _vtype758, _size756) = iprot.readMapBegin()
- for _i760 in range(_size756):
- _key761 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val762 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success[_key761] = _val762
+ (_ktype384, _vtype385, _size383) = iprot.readMapBegin()
+ for _i387 in range(_size383):
+ _key388 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ _val389 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success[_key388] = _val389
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -15149,9 +15152,9 @@ class commitSendMessages_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
- for kiter763, viter764 in self.success.items():
- oprot.writeString(kiter763.encode('utf-8') if sys.version_info[0] == 2 else kiter763)
- oprot.writeString(viter764.encode('utf-8') if sys.version_info[0] == 2 else viter764)
+ for kiter390, viter391 in self.success.items():
+ oprot.writeString(kiter390.encode('utf-8') if sys.version_info[0] == 2 else kiter390)
+ oprot.writeString(viter391.encode('utf-8') if sys.version_info[0] == 2 else viter391)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -15187,7 +15190,6 @@ class commitUpdateProfile_args(object):
- seq
- attrs
- receiverMids
-
"""
@@ -15213,20 +15215,20 @@ class commitUpdateProfile_args(object):
elif fid == 2:
if ftype == TType.LIST:
self.attrs = []
- (_etype768, _size765) = iprot.readListBegin()
- for _i769 in range(_size765):
- _elem770 = iprot.readI32()
- self.attrs.append(_elem770)
+ (_etype395, _size392) = iprot.readListBegin()
+ for _i396 in range(_size392):
+ _elem397 = iprot.readI32()
+ self.attrs.append(_elem397)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.receiverMids = []
- (_etype774, _size771) = iprot.readListBegin()
- for _i775 in range(_size771):
- _elem776 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.receiverMids.append(_elem776)
+ (_etype401, _size398) = iprot.readListBegin()
+ for _i402 in range(_size398):
+ _elem403 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.receiverMids.append(_elem403)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -15247,15 +15249,15 @@ class commitUpdateProfile_args(object):
if self.attrs is not None:
oprot.writeFieldBegin('attrs', TType.LIST, 2)
oprot.writeListBegin(TType.I32, len(self.attrs))
- for iter777 in self.attrs:
- oprot.writeI32(iter777)
+ for iter404 in self.attrs:
+ oprot.writeI32(iter404)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.receiverMids is not None:
oprot.writeFieldBegin('receiverMids', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.receiverMids))
- for iter778 in self.receiverMids:
- oprot.writeString(iter778.encode('utf-8') if sys.version_info[0] == 2 else iter778)
+ for iter405 in self.receiverMids:
+ oprot.writeString(iter405.encode('utf-8') if sys.version_info[0] == 2 else iter405)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -15288,7 +15290,6 @@ class commitUpdateProfile_result(object):
Attributes:
- success
- e
-
"""
@@ -15308,11 +15309,11 @@ class commitUpdateProfile_result(object):
if fid == 0:
if ftype == TType.MAP:
self.success = {}
- (_ktype780, _vtype781, _size779) = iprot.readMapBegin()
- for _i783 in range(_size779):
- _key784 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val785 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success[_key784] = _val785
+ (_ktype407, _vtype408, _size406) = iprot.readMapBegin()
+ for _i410 in range(_size406):
+ _key411 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ _val412 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success[_key411] = _val412
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -15335,9 +15336,9 @@ class commitUpdateProfile_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
- for kiter786, viter787 in self.success.items():
- oprot.writeString(kiter786.encode('utf-8') if sys.version_info[0] == 2 else kiter786)
- oprot.writeString(viter787.encode('utf-8') if sys.version_info[0] == 2 else viter787)
+ for kiter413, viter414 in self.success.items():
+ oprot.writeString(kiter413.encode('utf-8') if sys.version_info[0] == 2 else kiter413)
+ oprot.writeString(viter414.encode('utf-8') if sys.version_info[0] == 2 else viter414)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -15372,7 +15373,6 @@ class confirmEmail_args(object):
Attributes:
- verifier
- pinCode
-
"""
@@ -15446,7 +15446,6 @@ class confirmEmail_result(object):
"""
Attributes:
- e
-
"""
@@ -15511,7 +15510,6 @@ class createGroup_args(object):
- seq
- name
- contactIds
-
"""
@@ -15542,10 +15540,10 @@ class createGroup_args(object):
elif fid == 3:
if ftype == TType.LIST:
self.contactIds = []
- (_etype791, _size788) = iprot.readListBegin()
- for _i792 in range(_size788):
- _elem793 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.contactIds.append(_elem793)
+ (_etype418, _size415) = iprot.readListBegin()
+ for _i419 in range(_size415):
+ _elem420 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.contactIds.append(_elem420)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -15570,8 +15568,8 @@ class createGroup_args(object):
if self.contactIds is not None:
oprot.writeFieldBegin('contactIds', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.contactIds))
- for iter794 in self.contactIds:
- oprot.writeString(iter794.encode('utf-8') if sys.version_info[0] == 2 else iter794)
+ for iter421 in self.contactIds:
+ oprot.writeString(iter421.encode('utf-8') if sys.version_info[0] == 2 else iter421)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -15604,7 +15602,6 @@ class createGroup_result(object):
Attributes:
- success
- e
-
"""
@@ -15684,7 +15681,6 @@ class createQrcodeBase64Image_args(object):
- y
- width
- height
-
"""
@@ -15814,7 +15810,6 @@ class createQrcodeBase64Image_result(object):
Attributes:
- success
- e
-
"""
@@ -15888,7 +15883,6 @@ class createRoom_args(object):
Attributes:
- reqSeq
- contactIds
-
"""
@@ -15913,10 +15907,10 @@ class createRoom_args(object):
elif fid == 2:
if ftype == TType.LIST:
self.contactIds = []
- (_etype798, _size795) = iprot.readListBegin()
- for _i799 in range(_size795):
- _elem800 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.contactIds.append(_elem800)
+ (_etype425, _size422) = iprot.readListBegin()
+ for _i426 in range(_size422):
+ _elem427 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.contactIds.append(_elem427)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -15937,8 +15931,8 @@ class createRoom_args(object):
if self.contactIds is not None:
oprot.writeFieldBegin('contactIds', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.contactIds))
- for iter801 in self.contactIds:
- oprot.writeString(iter801.encode('utf-8') if sys.version_info[0] == 2 else iter801)
+ for iter428 in self.contactIds:
+ oprot.writeString(iter428.encode('utf-8') if sys.version_info[0] == 2 else iter428)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -15970,7 +15964,6 @@ class createRoom_result(object):
Attributes:
- success
- e
-
"""
@@ -16088,7 +16081,6 @@ class createSession_result(object):
Attributes:
- success
- e
-
"""
@@ -16161,7 +16153,6 @@ class fetchAnnouncements_args(object):
"""
Attributes:
- lastFetchedIndex
-
"""
@@ -16225,7 +16216,6 @@ class fetchAnnouncements_result(object):
Attributes:
- success
- e
-
"""
@@ -16245,11 +16235,11 @@ class fetchAnnouncements_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype805, _size802) = iprot.readListBegin()
- for _i806 in range(_size802):
- _elem807 = Announcement()
- _elem807.read(iprot)
- self.success.append(_elem807)
+ (_etype432, _size429) = iprot.readListBegin()
+ for _i433 in range(_size429):
+ _elem434 = Announcement()
+ _elem434.read(iprot)
+ self.success.append(_elem434)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -16272,8 +16262,8 @@ class fetchAnnouncements_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter808 in self.success:
- iter808.write(oprot)
+ for iter435 in self.success:
+ iter435.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -16308,7 +16298,6 @@ class fetchMessages_args(object):
Attributes:
- localTs
- count
-
"""
@@ -16383,7 +16372,6 @@ class fetchMessages_result(object):
Attributes:
- success
- e
-
"""
@@ -16403,11 +16391,11 @@ class fetchMessages_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype812, _size809) = iprot.readListBegin()
- for _i813 in range(_size809):
- _elem814 = Message()
- _elem814.read(iprot)
- self.success.append(_elem814)
+ (_etype439, _size436) = iprot.readListBegin()
+ for _i440 in range(_size436):
+ _elem441 = Message()
+ _elem441.read(iprot)
+ self.success.append(_elem441)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -16430,8 +16418,8 @@ class fetchMessages_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter815 in self.success:
- iter815.write(oprot)
+ for iter442 in self.success:
+ iter442.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -16466,7 +16454,6 @@ class fetchOperations_args(object):
Attributes:
- localRev
- count
-
"""
@@ -16541,7 +16528,6 @@ class fetchOperations_result(object):
Attributes:
- success
- e
-
"""
@@ -16561,11 +16547,11 @@ class fetchOperations_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype819, _size816) = iprot.readListBegin()
- for _i820 in range(_size816):
- _elem821 = Operation()
- _elem821.read(iprot)
- self.success.append(_elem821)
+ (_etype446, _size443) = iprot.readListBegin()
+ for _i447 in range(_size443):
+ _elem448 = Operation()
+ _elem448.read(iprot)
+ self.success.append(_elem448)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -16588,8 +16574,8 @@ class fetchOperations_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter822 in self.success:
- iter822.write(oprot)
+ for iter449 in self.success:
+ iter449.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -16626,7 +16612,6 @@ class fetchOps_args(object):
- count
- globalRev
- individualRev
-
"""
@@ -16723,7 +16708,6 @@ class fetchOps_result(object):
Attributes:
- success
- e
-
"""
@@ -16743,11 +16727,11 @@ class fetchOps_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype826, _size823) = iprot.readListBegin()
- for _i827 in range(_size823):
- _elem828 = Operation()
- _elem828.read(iprot)
- self.success.append(_elem828)
+ (_etype453, _size450) = iprot.readListBegin()
+ for _i454 in range(_size450):
+ _elem455 = Operation()
+ _elem455.read(iprot)
+ self.success.append(_elem455)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -16770,8 +16754,8 @@ class fetchOps_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter829 in self.success:
- iter829.write(oprot)
+ for iter456 in self.success:
+ iter456.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -16806,7 +16790,6 @@ class findAndAddContactsByEmail_args(object):
Attributes:
- reqSeq
- emails
-
"""
@@ -16831,10 +16814,10 @@ class findAndAddContactsByEmail_args(object):
elif fid == 2:
if ftype == TType.SET:
self.emails = set()
- (_etype833, _size830) = iprot.readSetBegin()
- for _i834 in range(_size830):
- _elem835 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.emails.add(_elem835)
+ (_etype460, _size457) = iprot.readSetBegin()
+ for _i461 in range(_size457):
+ _elem462 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.emails.add(_elem462)
iprot.readSetEnd()
else:
iprot.skip(ftype)
@@ -16855,8 +16838,8 @@ class findAndAddContactsByEmail_args(object):
if self.emails is not None:
oprot.writeFieldBegin('emails', TType.SET, 2)
oprot.writeSetBegin(TType.STRING, len(self.emails))
- for iter836 in self.emails:
- oprot.writeString(iter836.encode('utf-8') if sys.version_info[0] == 2 else iter836)
+ for iter463 in self.emails:
+ oprot.writeString(iter463.encode('utf-8') if sys.version_info[0] == 2 else iter463)
oprot.writeSetEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -16888,7 +16871,6 @@ class findAndAddContactsByEmail_result(object):
Attributes:
- success
- e
-
"""
@@ -16908,12 +16890,12 @@ class findAndAddContactsByEmail_result(object):
if fid == 0:
if ftype == TType.MAP:
self.success = {}
- (_ktype838, _vtype839, _size837) = iprot.readMapBegin()
- for _i841 in range(_size837):
- _key842 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val843 = Contact()
- _val843.read(iprot)
- self.success[_key842] = _val843
+ (_ktype465, _vtype466, _size464) = iprot.readMapBegin()
+ for _i468 in range(_size464):
+ _key469 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ _val470 = Contact()
+ _val470.read(iprot)
+ self.success[_key469] = _val470
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -16936,9 +16918,9 @@ class findAndAddContactsByEmail_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
- for kiter844, viter845 in self.success.items():
- oprot.writeString(kiter844.encode('utf-8') if sys.version_info[0] == 2 else kiter844)
- viter845.write(oprot)
+ for kiter471, viter472 in self.success.items():
+ oprot.writeString(kiter471.encode('utf-8') if sys.version_info[0] == 2 else kiter471)
+ viter472.write(oprot)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -16973,7 +16955,6 @@ class findAndAddContactsByMid_args(object):
Attributes:
- reqSeq
- mid
-
"""
@@ -17047,7 +17028,6 @@ class findAndAddContactsByMid_result(object):
Attributes:
- success
- e
-
"""
@@ -17067,12 +17047,12 @@ class findAndAddContactsByMid_result(object):
if fid == 0:
if ftype == TType.MAP:
self.success = {}
- (_ktype847, _vtype848, _size846) = iprot.readMapBegin()
- for _i850 in range(_size846):
- _key851 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val852 = Contact()
- _val852.read(iprot)
- self.success[_key851] = _val852
+ (_ktype474, _vtype475, _size473) = iprot.readMapBegin()
+ for _i477 in range(_size473):
+ _key478 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ _val479 = Contact()
+ _val479.read(iprot)
+ self.success[_key478] = _val479
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -17095,9 +17075,9 @@ class findAndAddContactsByMid_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
- for kiter853, viter854 in self.success.items():
- oprot.writeString(kiter853.encode('utf-8') if sys.version_info[0] == 2 else kiter853)
- viter854.write(oprot)
+ for kiter480, viter481 in self.success.items():
+ oprot.writeString(kiter480.encode('utf-8') if sys.version_info[0] == 2 else kiter480)
+ viter481.write(oprot)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -17132,7 +17112,6 @@ class findAndAddContactsByPhone_args(object):
Attributes:
- reqSeq
- phones
-
"""
@@ -17157,10 +17136,10 @@ class findAndAddContactsByPhone_args(object):
elif fid == 2:
if ftype == TType.SET:
self.phones = set()
- (_etype858, _size855) = iprot.readSetBegin()
- for _i859 in range(_size855):
- _elem860 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.phones.add(_elem860)
+ (_etype485, _size482) = iprot.readSetBegin()
+ for _i486 in range(_size482):
+ _elem487 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.phones.add(_elem487)
iprot.readSetEnd()
else:
iprot.skip(ftype)
@@ -17181,8 +17160,8 @@ class findAndAddContactsByPhone_args(object):
if self.phones is not None:
oprot.writeFieldBegin('phones', TType.SET, 2)
oprot.writeSetBegin(TType.STRING, len(self.phones))
- for iter861 in self.phones:
- oprot.writeString(iter861.encode('utf-8') if sys.version_info[0] == 2 else iter861)
+ for iter488 in self.phones:
+ oprot.writeString(iter488.encode('utf-8') if sys.version_info[0] == 2 else iter488)
oprot.writeSetEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -17214,7 +17193,6 @@ class findAndAddContactsByPhone_result(object):
Attributes:
- success
- e
-
"""
@@ -17234,12 +17212,12 @@ class findAndAddContactsByPhone_result(object):
if fid == 0:
if ftype == TType.MAP:
self.success = {}
- (_ktype863, _vtype864, _size862) = iprot.readMapBegin()
- for _i866 in range(_size862):
- _key867 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val868 = Contact()
- _val868.read(iprot)
- self.success[_key867] = _val868
+ (_ktype490, _vtype491, _size489) = iprot.readMapBegin()
+ for _i493 in range(_size489):
+ _key494 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ _val495 = Contact()
+ _val495.read(iprot)
+ self.success[_key494] = _val495
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -17262,9 +17240,9 @@ class findAndAddContactsByPhone_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
- for kiter869, viter870 in self.success.items():
- oprot.writeString(kiter869.encode('utf-8') if sys.version_info[0] == 2 else kiter869)
- viter870.write(oprot)
+ for kiter496, viter497 in self.success.items():
+ oprot.writeString(kiter496.encode('utf-8') if sys.version_info[0] == 2 else kiter496)
+ viter497.write(oprot)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -17299,7 +17277,6 @@ class findAndAddContactsByUserid_args(object):
Attributes:
- reqSeq
- userid
-
"""
@@ -17373,7 +17350,6 @@ class findAndAddContactsByUserid_result(object):
Attributes:
- success
- e
-
"""
@@ -17393,12 +17369,12 @@ class findAndAddContactsByUserid_result(object):
if fid == 0:
if ftype == TType.MAP:
self.success = {}
- (_ktype872, _vtype873, _size871) = iprot.readMapBegin()
- for _i875 in range(_size871):
- _key876 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val877 = Contact()
- _val877.read(iprot)
- self.success[_key876] = _val877
+ (_ktype499, _vtype500, _size498) = iprot.readMapBegin()
+ for _i502 in range(_size498):
+ _key503 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ _val504 = Contact()
+ _val504.read(iprot)
+ self.success[_key503] = _val504
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -17421,9 +17397,9 @@ class findAndAddContactsByUserid_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
- for kiter878, viter879 in self.success.items():
- oprot.writeString(kiter878.encode('utf-8') if sys.version_info[0] == 2 else kiter878)
- viter879.write(oprot)
+ for kiter505, viter506 in self.success.items():
+ oprot.writeString(kiter505.encode('utf-8') if sys.version_info[0] == 2 else kiter505)
+ viter506.write(oprot)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -17457,7 +17433,6 @@ class findContactByUserid_args(object):
"""
Attributes:
- userid
-
"""
@@ -17521,7 +17496,6 @@ class findContactByUserid_result(object):
Attributes:
- success
- e
-
"""
@@ -17595,7 +17569,6 @@ class findContactByUserTicket_args(object):
"""
Attributes:
- ticketId
-
"""
@@ -17659,7 +17632,6 @@ class findContactByUserTicket_result(object):
Attributes:
- success
- e
-
"""
@@ -17733,7 +17705,6 @@ class findContactsByEmail_args(object):
"""
Attributes:
- emails
-
"""
@@ -17752,10 +17723,10 @@ class findContactsByEmail_args(object):
if fid == 2:
if ftype == TType.SET:
self.emails = set()
- (_etype883, _size880) = iprot.readSetBegin()
- for _i884 in range(_size880):
- _elem885 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.emails.add(_elem885)
+ (_etype510, _size507) = iprot.readSetBegin()
+ for _i511 in range(_size507):
+ _elem512 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.emails.add(_elem512)
iprot.readSetEnd()
else:
iprot.skip(ftype)
@@ -17772,8 +17743,8 @@ class findContactsByEmail_args(object):
if self.emails is not None:
oprot.writeFieldBegin('emails', TType.SET, 2)
oprot.writeSetBegin(TType.STRING, len(self.emails))
- for iter886 in self.emails:
- oprot.writeString(iter886.encode('utf-8') if sys.version_info[0] == 2 else iter886)
+ for iter513 in self.emails:
+ oprot.writeString(iter513.encode('utf-8') if sys.version_info[0] == 2 else iter513)
oprot.writeSetEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -17805,7 +17776,6 @@ class findContactsByEmail_result(object):
Attributes:
- success
- e
-
"""
@@ -17825,12 +17795,12 @@ class findContactsByEmail_result(object):
if fid == 0:
if ftype == TType.MAP:
self.success = {}
- (_ktype888, _vtype889, _size887) = iprot.readMapBegin()
- for _i891 in range(_size887):
- _key892 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val893 = Contact()
- _val893.read(iprot)
- self.success[_key892] = _val893
+ (_ktype515, _vtype516, _size514) = iprot.readMapBegin()
+ for _i518 in range(_size514):
+ _key519 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ _val520 = Contact()
+ _val520.read(iprot)
+ self.success[_key519] = _val520
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -17853,9 +17823,9 @@ class findContactsByEmail_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
- for kiter894, viter895 in self.success.items():
- oprot.writeString(kiter894.encode('utf-8') if sys.version_info[0] == 2 else kiter894)
- viter895.write(oprot)
+ for kiter521, viter522 in self.success.items():
+ oprot.writeString(kiter521.encode('utf-8') if sys.version_info[0] == 2 else kiter521)
+ viter522.write(oprot)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -17889,7 +17859,6 @@ class findContactsByPhone_args(object):
"""
Attributes:
- phones
-
"""
@@ -17908,10 +17877,10 @@ class findContactsByPhone_args(object):
if fid == 2:
if ftype == TType.SET:
self.phones = set()
- (_etype899, _size896) = iprot.readSetBegin()
- for _i900 in range(_size896):
- _elem901 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.phones.add(_elem901)
+ (_etype526, _size523) = iprot.readSetBegin()
+ for _i527 in range(_size523):
+ _elem528 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.phones.add(_elem528)
iprot.readSetEnd()
else:
iprot.skip(ftype)
@@ -17928,8 +17897,8 @@ class findContactsByPhone_args(object):
if self.phones is not None:
oprot.writeFieldBegin('phones', TType.SET, 2)
oprot.writeSetBegin(TType.STRING, len(self.phones))
- for iter902 in self.phones:
- oprot.writeString(iter902.encode('utf-8') if sys.version_info[0] == 2 else iter902)
+ for iter529 in self.phones:
+ oprot.writeString(iter529.encode('utf-8') if sys.version_info[0] == 2 else iter529)
oprot.writeSetEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -17961,7 +17930,6 @@ class findContactsByPhone_result(object):
Attributes:
- success
- e
-
"""
@@ -17981,12 +17949,12 @@ class findContactsByPhone_result(object):
if fid == 0:
if ftype == TType.MAP:
self.success = {}
- (_ktype904, _vtype905, _size903) = iprot.readMapBegin()
- for _i907 in range(_size903):
- _key908 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val909 = Contact()
- _val909.read(iprot)
- self.success[_key908] = _val909
+ (_ktype531, _vtype532, _size530) = iprot.readMapBegin()
+ for _i534 in range(_size530):
+ _key535 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ _val536 = Contact()
+ _val536.read(iprot)
+ self.success[_key535] = _val536
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -18009,9 +17977,9 @@ class findContactsByPhone_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
- for kiter910, viter911 in self.success.items():
- oprot.writeString(kiter910.encode('utf-8') if sys.version_info[0] == 2 else kiter910)
- viter911.write(oprot)
+ for kiter537, viter538 in self.success.items():
+ oprot.writeString(kiter537.encode('utf-8') if sys.version_info[0] == 2 else kiter537)
+ viter538.write(oprot)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -18047,7 +18015,6 @@ class findSnsIdUserStatus_args(object):
- snsIdType
- snsAccessToken
- udidHash
-
"""
@@ -18133,7 +18100,6 @@ class findSnsIdUserStatus_result(object):
Attributes:
- success
- e
-
"""
@@ -18207,7 +18173,6 @@ class finishUpdateVerification_args(object):
"""
Attributes:
- sessionId
-
"""
@@ -18270,7 +18235,6 @@ class finishUpdateVerification_result(object):
"""
Attributes:
- e
-
"""
@@ -18334,7 +18298,6 @@ class generateUserTicket_args(object):
Attributes:
- expirationTime
- maxUseCount
-
"""
@@ -18410,7 +18373,6 @@ class generateUserTicket_result(object):
Attributes:
- success
- e
-
"""
@@ -18484,7 +18446,6 @@ class getAcceptedProximityMatches_args(object):
"""
Attributes:
- sessionId
-
"""
@@ -18548,7 +18509,6 @@ class getAcceptedProximityMatches_result(object):
Attributes:
- success
- e
-
"""
@@ -18568,10 +18528,10 @@ class getAcceptedProximityMatches_result(object):
if fid == 0:
if ftype == TType.SET:
self.success = set()
- (_etype915, _size912) = iprot.readSetBegin()
- for _i916 in range(_size912):
- _elem917 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.add(_elem917)
+ (_etype542, _size539) = iprot.readSetBegin()
+ for _i543 in range(_size539):
+ _elem544 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success.add(_elem544)
iprot.readSetEnd()
else:
iprot.skip(ftype)
@@ -18594,8 +18554,8 @@ class getAcceptedProximityMatches_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.SET, 0)
oprot.writeSetBegin(TType.STRING, len(self.success))
- for iter918 in self.success:
- oprot.writeString(iter918.encode('utf-8') if sys.version_info[0] == 2 else iter918)
+ for iter545 in self.success:
+ oprot.writeString(iter545.encode('utf-8') if sys.version_info[0] == 2 else iter545)
oprot.writeSetEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -18673,7 +18633,6 @@ class getActiveBuddySubscriberIds_result(object):
Attributes:
- success
- e
-
"""
@@ -18693,10 +18652,10 @@ class getActiveBuddySubscriberIds_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype922, _size919) = iprot.readListBegin()
- for _i923 in range(_size919):
- _elem924 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem924)
+ (_etype549, _size546) = iprot.readListBegin()
+ for _i550 in range(_size546):
+ _elem551 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success.append(_elem551)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -18719,8 +18678,8 @@ class getActiveBuddySubscriberIds_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter925 in self.success:
- oprot.writeString(iter925.encode('utf-8') if sys.version_info[0] == 2 else iter925)
+ for iter552 in self.success:
+ oprot.writeString(iter552.encode('utf-8') if sys.version_info[0] == 2 else iter552)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -18798,7 +18757,6 @@ class getAllContactIds_result(object):
Attributes:
- success
- e
-
"""
@@ -18818,10 +18776,10 @@ class getAllContactIds_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype929, _size926) = iprot.readListBegin()
- for _i930 in range(_size926):
- _elem931 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem931)
+ (_etype556, _size553) = iprot.readListBegin()
+ for _i557 in range(_size553):
+ _elem558 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success.append(_elem558)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -18844,8 +18802,8 @@ class getAllContactIds_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter932 in self.success:
- oprot.writeString(iter932.encode('utf-8') if sys.version_info[0] == 2 else iter932)
+ for iter559 in self.success:
+ oprot.writeString(iter559.encode('utf-8') if sys.version_info[0] == 2 else iter559)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -18880,7 +18838,6 @@ class getAuthQrcode_args(object):
Attributes:
- keepLoggedIn
- systemName
-
"""
@@ -18955,7 +18912,6 @@ class getAuthQrcode_result(object):
Attributes:
- success
- e
-
"""
@@ -19073,7 +19029,6 @@ class getBlockedContactIds_result(object):
Attributes:
- success
- e
-
"""
@@ -19093,10 +19048,10 @@ class getBlockedContactIds_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype936, _size933) = iprot.readListBegin()
- for _i937 in range(_size933):
- _elem938 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem938)
+ (_etype563, _size560) = iprot.readListBegin()
+ for _i564 in range(_size560):
+ _elem565 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success.append(_elem565)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -19119,8 +19074,8 @@ class getBlockedContactIds_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter939 in self.success:
- oprot.writeString(iter939.encode('utf-8') if sys.version_info[0] == 2 else iter939)
+ for iter566 in self.success:
+ oprot.writeString(iter566.encode('utf-8') if sys.version_info[0] == 2 else iter566)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -19155,7 +19110,6 @@ class getBlockedContactIdsByRange_args(object):
Attributes:
- start
- count
-
"""
@@ -19230,7 +19184,6 @@ class getBlockedContactIdsByRange_result(object):
Attributes:
- success
- e
-
"""
@@ -19250,10 +19203,10 @@ class getBlockedContactIdsByRange_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype943, _size940) = iprot.readListBegin()
- for _i944 in range(_size940):
- _elem945 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem945)
+ (_etype570, _size567) = iprot.readListBegin()
+ for _i571 in range(_size567):
+ _elem572 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success.append(_elem572)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -19276,8 +19229,8 @@ class getBlockedContactIdsByRange_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter946 in self.success:
- oprot.writeString(iter946.encode('utf-8') if sys.version_info[0] == 2 else iter946)
+ for iter573 in self.success:
+ oprot.writeString(iter573.encode('utf-8') if sys.version_info[0] == 2 else iter573)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -19355,7 +19308,6 @@ class getBlockedRecommendationIds_result(object):
Attributes:
- success
- e
-
"""
@@ -19375,10 +19327,10 @@ class getBlockedRecommendationIds_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype950, _size947) = iprot.readListBegin()
- for _i951 in range(_size947):
- _elem952 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem952)
+ (_etype577, _size574) = iprot.readListBegin()
+ for _i578 in range(_size574):
+ _elem579 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success.append(_elem579)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -19401,8 +19353,8 @@ class getBlockedRecommendationIds_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter953 in self.success:
- oprot.writeString(iter953.encode('utf-8') if sys.version_info[0] == 2 else iter953)
+ for iter580 in self.success:
+ oprot.writeString(iter580.encode('utf-8') if sys.version_info[0] == 2 else iter580)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -19480,7 +19432,6 @@ class getBuddyBlockerIds_result(object):
Attributes:
- success
- e
-
"""
@@ -19500,10 +19451,10 @@ class getBuddyBlockerIds_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype957, _size954) = iprot.readListBegin()
- for _i958 in range(_size954):
- _elem959 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem959)
+ (_etype584, _size581) = iprot.readListBegin()
+ for _i585 in range(_size581):
+ _elem586 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success.append(_elem586)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -19526,8 +19477,8 @@ class getBuddyBlockerIds_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter960 in self.success:
- oprot.writeString(iter960.encode('utf-8') if sys.version_info[0] == 2 else iter960)
+ for iter587 in self.success:
+ oprot.writeString(iter587.encode('utf-8') if sys.version_info[0] == 2 else iter587)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -19562,7 +19513,6 @@ class getBuddyLocation_args(object):
Attributes:
- mid
- index
-
"""
@@ -19637,7 +19587,6 @@ class getBuddyLocation_result(object):
Attributes:
- success
- e
-
"""
@@ -19711,7 +19660,6 @@ class getCompactContactsModifiedSince_args(object):
"""
Attributes:
- timestamp
-
"""
@@ -19775,7 +19723,6 @@ class getCompactContactsModifiedSince_result(object):
Attributes:
- success
- e
-
"""
@@ -19795,11 +19742,11 @@ class getCompactContactsModifiedSince_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype964, _size961) = iprot.readListBegin()
- for _i965 in range(_size961):
- _elem966 = CompactContact()
- _elem966.read(iprot)
- self.success.append(_elem966)
+ (_etype591, _size588) = iprot.readListBegin()
+ for _i592 in range(_size588):
+ _elem593 = CompactContact()
+ _elem593.read(iprot)
+ self.success.append(_elem593)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -19822,8 +19769,8 @@ class getCompactContactsModifiedSince_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter967 in self.success:
- iter967.write(oprot)
+ for iter594 in self.success:
+ iter594.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -19857,7 +19804,6 @@ class getCompactGroup_args(object):
"""
Attributes:
- groupId
-
"""
@@ -19921,7 +19867,6 @@ class getCompactGroup_result(object):
Attributes:
- success
- e
-
"""
@@ -19995,7 +19940,6 @@ class getCompactRoom_args(object):
"""
Attributes:
- roomId
-
"""
@@ -20059,7 +20003,6 @@ class getCompactRoom_result(object):
Attributes:
- success
- e
-
"""
@@ -20133,7 +20076,6 @@ class getContact_args(object):
"""
Attributes:
- id
-
"""
@@ -20197,7 +20139,6 @@ class getContact_result(object):
Attributes:
- success
- e
-
"""
@@ -20271,7 +20212,6 @@ class getContacts_args(object):
"""
Attributes:
- ids
-
"""
@@ -20290,10 +20230,10 @@ class getContacts_args(object):
if fid == 2:
if ftype == TType.LIST:
self.ids = []
- (_etype971, _size968) = iprot.readListBegin()
- for _i972 in range(_size968):
- _elem973 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.ids.append(_elem973)
+ (_etype598, _size595) = iprot.readListBegin()
+ for _i599 in range(_size595):
+ _elem600 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.ids.append(_elem600)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -20310,8 +20250,8 @@ class getContacts_args(object):
if self.ids is not None:
oprot.writeFieldBegin('ids', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.ids))
- for iter974 in self.ids:
- oprot.writeString(iter974.encode('utf-8') if sys.version_info[0] == 2 else iter974)
+ for iter601 in self.ids:
+ oprot.writeString(iter601.encode('utf-8') if sys.version_info[0] == 2 else iter601)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -20343,7 +20283,6 @@ class getContacts_result(object):
Attributes:
- success
- e
-
"""
@@ -20363,11 +20302,11 @@ class getContacts_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype978, _size975) = iprot.readListBegin()
- for _i979 in range(_size975):
- _elem980 = Contact()
- _elem980.read(iprot)
- self.success.append(_elem980)
+ (_etype605, _size602) = iprot.readListBegin()
+ for _i606 in range(_size602):
+ _elem607 = Contact()
+ _elem607.read(iprot)
+ self.success.append(_elem607)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -20390,8 +20329,8 @@ class getContacts_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter981 in self.success:
- iter981.write(oprot)
+ for iter608 in self.success:
+ iter608.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -20469,7 +20408,6 @@ class getCountryWithRequestIp_result(object):
Attributes:
- success
- e
-
"""
@@ -20586,7 +20524,6 @@ class getFavoriteMids_result(object):
Attributes:
- success
- e
-
"""
@@ -20606,10 +20543,10 @@ class getFavoriteMids_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype985, _size982) = iprot.readListBegin()
- for _i986 in range(_size982):
- _elem987 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem987)
+ (_etype612, _size609) = iprot.readListBegin()
+ for _i613 in range(_size609):
+ _elem614 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success.append(_elem614)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -20632,8 +20569,8 @@ class getFavoriteMids_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter988 in self.success:
- oprot.writeString(iter988.encode('utf-8') if sys.version_info[0] == 2 else iter988)
+ for iter615 in self.success:
+ oprot.writeString(iter615.encode('utf-8') if sys.version_info[0] == 2 else iter615)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -20667,7 +20604,6 @@ class getGroup_args(object):
"""
Attributes:
- groupId
-
"""
@@ -20731,7 +20667,6 @@ class getGroup_result(object):
Attributes:
- success
- e
-
"""
@@ -20849,7 +20784,6 @@ class getGroupIdsInvited_result(object):
Attributes:
- success
- e
-
"""
@@ -20869,10 +20803,10 @@ class getGroupIdsInvited_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype992, _size989) = iprot.readListBegin()
- for _i993 in range(_size989):
- _elem994 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem994)
+ (_etype619, _size616) = iprot.readListBegin()
+ for _i620 in range(_size616):
+ _elem621 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success.append(_elem621)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -20895,8 +20829,8 @@ class getGroupIdsInvited_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter995 in self.success:
- oprot.writeString(iter995.encode('utf-8') if sys.version_info[0] == 2 else iter995)
+ for iter622 in self.success:
+ oprot.writeString(iter622.encode('utf-8') if sys.version_info[0] == 2 else iter622)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -20974,7 +20908,6 @@ class getGroupIdsJoined_result(object):
Attributes:
- success
- e
-
"""
@@ -20994,10 +20927,10 @@ class getGroupIdsJoined_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype999, _size996) = iprot.readListBegin()
- for _i1000 in range(_size996):
- _elem1001 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem1001)
+ (_etype626, _size623) = iprot.readListBegin()
+ for _i627 in range(_size623):
+ _elem628 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success.append(_elem628)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -21020,8 +20953,8 @@ class getGroupIdsJoined_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter1002 in self.success:
- oprot.writeString(iter1002.encode('utf-8') if sys.version_info[0] == 2 else iter1002)
+ for iter629 in self.success:
+ oprot.writeString(iter629.encode('utf-8') if sys.version_info[0] == 2 else iter629)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -21055,7 +20988,6 @@ class getGroups_args(object):
"""
Attributes:
- groupIds
-
"""
@@ -21074,10 +21006,10 @@ class getGroups_args(object):
if fid == 2:
if ftype == TType.LIST:
self.groupIds = []
- (_etype1006, _size1003) = iprot.readListBegin()
- for _i1007 in range(_size1003):
- _elem1008 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.groupIds.append(_elem1008)
+ (_etype633, _size630) = iprot.readListBegin()
+ for _i634 in range(_size630):
+ _elem635 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.groupIds.append(_elem635)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -21094,8 +21026,8 @@ class getGroups_args(object):
if self.groupIds is not None:
oprot.writeFieldBegin('groupIds', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.groupIds))
- for iter1009 in self.groupIds:
- oprot.writeString(iter1009.encode('utf-8') if sys.version_info[0] == 2 else iter1009)
+ for iter636 in self.groupIds:
+ oprot.writeString(iter636.encode('utf-8') if sys.version_info[0] == 2 else iter636)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -21127,7 +21059,6 @@ class getGroups_result(object):
Attributes:
- success
- e
-
"""
@@ -21147,11 +21078,11 @@ class getGroups_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1013, _size1010) = iprot.readListBegin()
- for _i1014 in range(_size1010):
- _elem1015 = Group()
- _elem1015.read(iprot)
- self.success.append(_elem1015)
+ (_etype640, _size637) = iprot.readListBegin()
+ for _i641 in range(_size637):
+ _elem642 = Group()
+ _elem642.read(iprot)
+ self.success.append(_elem642)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -21174,8 +21105,8 @@ class getGroups_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter1016 in self.success:
- iter1016.write(oprot)
+ for iter643 in self.success:
+ iter643.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -21253,7 +21184,6 @@ class getHiddenContactMids_result(object):
Attributes:
- success
- e
-
"""
@@ -21273,10 +21203,10 @@ class getHiddenContactMids_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1020, _size1017) = iprot.readListBegin()
- for _i1021 in range(_size1017):
- _elem1022 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem1022)
+ (_etype647, _size644) = iprot.readListBegin()
+ for _i648 in range(_size644):
+ _elem649 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success.append(_elem649)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -21299,8 +21229,8 @@ class getHiddenContactMids_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter1023 in self.success:
- oprot.writeString(iter1023.encode('utf-8') if sys.version_info[0] == 2 else iter1023)
+ for iter650 in self.success:
+ oprot.writeString(iter650.encode('utf-8') if sys.version_info[0] == 2 else iter650)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -21378,7 +21308,6 @@ class getIdentityIdentifier_result(object):
Attributes:
- success
- e
-
"""
@@ -21495,7 +21424,6 @@ class getLastAnnouncementIndex_result(object):
Attributes:
- success
- e
-
"""
@@ -21612,7 +21540,6 @@ class getLastOpRevision_result(object):
Attributes:
- success
- e
-
"""
@@ -21687,7 +21614,6 @@ class getMessageBox_args(object):
- channelId
- messageBoxId
- lastMessagesCount
-
"""
@@ -21773,7 +21699,6 @@ class getMessageBox_result(object):
Attributes:
- success
- e
-
"""
@@ -21847,7 +21772,6 @@ class getMessageBoxCompactWrapUp_args(object):
"""
Attributes:
- mid
-
"""
@@ -21911,7 +21835,6 @@ class getMessageBoxCompactWrapUp_result(object):
Attributes:
- success
- e
-
"""
@@ -21986,7 +21909,6 @@ class getMessageBoxCompactWrapUpList_args(object):
Attributes:
- start
- messageBoxCount
-
"""
@@ -22061,7 +21983,6 @@ class getMessageBoxCompactWrapUpList_result(object):
Attributes:
- success
- e
-
"""
@@ -22136,7 +22057,6 @@ class getMessageBoxList_args(object):
Attributes:
- channelId
- lastMessagesCount
-
"""
@@ -22211,7 +22131,6 @@ class getMessageBoxList_result(object):
Attributes:
- success
- e
-
"""
@@ -22231,11 +22150,11 @@ class getMessageBoxList_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1027, _size1024) = iprot.readListBegin()
- for _i1028 in range(_size1024):
- _elem1029 = TMessageBox()
- _elem1029.read(iprot)
- self.success.append(_elem1029)
+ (_etype654, _size651) = iprot.readListBegin()
+ for _i655 in range(_size651):
+ _elem656 = TMessageBox()
+ _elem656.read(iprot)
+ self.success.append(_elem656)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -22258,8 +22177,8 @@ class getMessageBoxList_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter1030 in self.success:
- iter1030.write(oprot)
+ for iter657 in self.success:
+ iter657.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -22295,7 +22214,6 @@ class getMessageBoxListByStatus_args(object):
- channelId
- lastMessagesCount
- status
-
"""
@@ -22381,7 +22299,6 @@ class getMessageBoxListByStatus_result(object):
Attributes:
- success
- e
-
"""
@@ -22401,11 +22318,11 @@ class getMessageBoxListByStatus_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1034, _size1031) = iprot.readListBegin()
- for _i1035 in range(_size1031):
- _elem1036 = TMessageBox()
- _elem1036.read(iprot)
- self.success.append(_elem1036)
+ (_etype661, _size658) = iprot.readListBegin()
+ for _i662 in range(_size658):
+ _elem663 = TMessageBox()
+ _elem663.read(iprot)
+ self.success.append(_elem663)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -22428,8 +22345,8 @@ class getMessageBoxListByStatus_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter1037 in self.success:
- iter1037.write(oprot)
+ for iter664 in self.success:
+ iter664.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -22463,7 +22380,6 @@ class getMessageBoxWrapUp_args(object):
"""
Attributes:
- mid
-
"""
@@ -22527,7 +22443,6 @@ class getMessageBoxWrapUp_result(object):
Attributes:
- success
- e
-
"""
@@ -22602,7 +22517,6 @@ class getMessageBoxWrapUpList_args(object):
Attributes:
- start
- messageBoxCount
-
"""
@@ -22677,7 +22591,6 @@ class getMessageBoxWrapUpList_result(object):
Attributes:
- success
- e
-
"""
@@ -22754,7 +22667,6 @@ class getMessagesBySequenceNumber_args(object):
- messageBoxId
- startSeq
- endSeq
-
"""
@@ -22851,7 +22763,6 @@ class getMessagesBySequenceNumber_result(object):
Attributes:
- success
- e
-
"""
@@ -22871,11 +22782,11 @@ class getMessagesBySequenceNumber_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1041, _size1038) = iprot.readListBegin()
- for _i1042 in range(_size1038):
- _elem1043 = Message()
- _elem1043.read(iprot)
- self.success.append(_elem1043)
+ (_etype668, _size665) = iprot.readListBegin()
+ for _i669 in range(_size665):
+ _elem670 = Message()
+ _elem670.read(iprot)
+ self.success.append(_elem670)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -22898,8 +22809,8 @@ class getMessagesBySequenceNumber_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter1044 in self.success:
- iter1044.write(oprot)
+ for iter671 in self.success:
+ iter671.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -22935,7 +22846,6 @@ class getNextMessages_args(object):
- messageBoxId
- startSeq
- messagesCount
-
"""
@@ -23021,7 +22931,6 @@ class getNextMessages_result(object):
Attributes:
- success
- e
-
"""
@@ -23041,11 +22950,11 @@ class getNextMessages_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1048, _size1045) = iprot.readListBegin()
- for _i1049 in range(_size1045):
- _elem1050 = Message()
- _elem1050.read(iprot)
- self.success.append(_elem1050)
+ (_etype675, _size672) = iprot.readListBegin()
+ for _i676 in range(_size672):
+ _elem677 = Message()
+ _elem677.read(iprot)
+ self.success.append(_elem677)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -23068,8 +22977,8 @@ class getNextMessages_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter1051 in self.success:
- iter1051.write(oprot)
+ for iter678 in self.success:
+ iter678.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -23103,7 +23012,6 @@ class getNotificationPolicy_args(object):
"""
Attributes:
- carrier
-
"""
@@ -23167,7 +23075,6 @@ class getNotificationPolicy_result(object):
Attributes:
- success
- e
-
"""
@@ -23187,10 +23094,10 @@ class getNotificationPolicy_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1055, _size1052) = iprot.readListBegin()
- for _i1056 in range(_size1052):
- _elem1057 = iprot.readI32()
- self.success.append(_elem1057)
+ (_etype682, _size679) = iprot.readListBegin()
+ for _i683 in range(_size679):
+ _elem684 = iprot.readI32()
+ self.success.append(_elem684)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -23213,8 +23120,8 @@ class getNotificationPolicy_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.I32, len(self.success))
- for iter1058 in self.success:
- oprot.writeI32(iter1058)
+ for iter685 in self.success:
+ oprot.writeI32(iter685)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -23250,7 +23157,6 @@ class getPreviousMessages_args(object):
- messageBoxId
- endSeq
- messagesCount
-
"""
@@ -23336,7 +23242,6 @@ class getPreviousMessages_result(object):
Attributes:
- success
- e
-
"""
@@ -23356,11 +23261,11 @@ class getPreviousMessages_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1062, _size1059) = iprot.readListBegin()
- for _i1063 in range(_size1059):
- _elem1064 = Message()
- _elem1064.read(iprot)
- self.success.append(_elem1064)
+ (_etype689, _size686) = iprot.readListBegin()
+ for _i690 in range(_size686):
+ _elem691 = Message()
+ _elem691.read(iprot)
+ self.success.append(_elem691)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -23383,8 +23288,8 @@ class getPreviousMessages_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter1065 in self.success:
- iter1065.write(oprot)
+ for iter692 in self.success:
+ iter692.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -23462,7 +23367,6 @@ class getProfile_result(object):
Attributes:
- success
- e
-
"""
@@ -23536,7 +23440,6 @@ class getProximityMatchCandidateList_args(object):
"""
Attributes:
- sessionId
-
"""
@@ -23600,7 +23503,6 @@ class getProximityMatchCandidateList_result(object):
Attributes:
- success
- e
-
"""
@@ -23674,7 +23576,6 @@ class getProximityMatchCandidates_args(object):
"""
Attributes:
- sessionId
-
"""
@@ -23738,7 +23639,6 @@ class getProximityMatchCandidates_result(object):
Attributes:
- success
- e
-
"""
@@ -23758,11 +23658,11 @@ class getProximityMatchCandidates_result(object):
if fid == 0:
if ftype == TType.SET:
self.success = set()
- (_etype1069, _size1066) = iprot.readSetBegin()
- for _i1070 in range(_size1066):
- _elem1071 = Contact()
- _elem1071.read(iprot)
- self.success.add(_elem1071)
+ (_etype696, _size693) = iprot.readSetBegin()
+ for _i697 in range(_size693):
+ _elem698 = Contact()
+ _elem698.read(iprot)
+ self.success.add(_elem698)
iprot.readSetEnd()
else:
iprot.skip(ftype)
@@ -23785,8 +23685,8 @@ class getProximityMatchCandidates_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.SET, 0)
oprot.writeSetBegin(TType.STRUCT, len(self.success))
- for iter1072 in self.success:
- iter1072.write(oprot)
+ for iter699 in self.success:
+ iter699.write(oprot)
oprot.writeSetEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -23821,7 +23721,6 @@ class getRecentMessages_args(object):
Attributes:
- messageBoxId
- messagesCount
-
"""
@@ -23896,7 +23795,6 @@ class getRecentMessages_result(object):
Attributes:
- success
- e
-
"""
@@ -23916,11 +23814,11 @@ class getRecentMessages_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1076, _size1073) = iprot.readListBegin()
- for _i1077 in range(_size1073):
- _elem1078 = Message()
- _elem1078.read(iprot)
- self.success.append(_elem1078)
+ (_etype703, _size700) = iprot.readListBegin()
+ for _i704 in range(_size700):
+ _elem705 = Message()
+ _elem705.read(iprot)
+ self.success.append(_elem705)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -23943,8 +23841,8 @@ class getRecentMessages_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter1079 in self.success:
- iter1079.write(oprot)
+ for iter706 in self.success:
+ iter706.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -24022,7 +23920,6 @@ class getRecommendationIds_result(object):
Attributes:
- success
- e
-
"""
@@ -24042,10 +23939,10 @@ class getRecommendationIds_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1083, _size1080) = iprot.readListBegin()
- for _i1084 in range(_size1080):
- _elem1085 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success.append(_elem1085)
+ (_etype710, _size707) = iprot.readListBegin()
+ for _i711 in range(_size707):
+ _elem712 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success.append(_elem712)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -24068,8 +23965,8 @@ class getRecommendationIds_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter1086 in self.success:
- oprot.writeString(iter1086.encode('utf-8') if sys.version_info[0] == 2 else iter1086)
+ for iter713 in self.success:
+ oprot.writeString(iter713.encode('utf-8') if sys.version_info[0] == 2 else iter713)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -24103,7 +24000,6 @@ class getRoom_args(object):
"""
Attributes:
- roomId
-
"""
@@ -24167,7 +24063,6 @@ class getRoom_result(object):
Attributes:
- success
- e
-
"""
@@ -24241,7 +24136,6 @@ class getRSAKeyInfo_args(object):
"""
Attributes:
- provider
-
"""
@@ -24305,7 +24199,6 @@ class getRSAKeyInfo_result(object):
Attributes:
- success
- e
-
"""
@@ -24423,7 +24316,6 @@ class getServerTime_result(object):
Attributes:
- success
- e
-
"""
@@ -24540,7 +24432,6 @@ class getSessions_result(object):
Attributes:
- success
- e
-
"""
@@ -24560,11 +24451,11 @@ class getSessions_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1090, _size1087) = iprot.readListBegin()
- for _i1091 in range(_size1087):
- _elem1092 = LoginSession()
- _elem1092.read(iprot)
- self.success.append(_elem1092)
+ (_etype717, _size714) = iprot.readListBegin()
+ for _i718 in range(_size714):
+ _elem719 = LoginSession()
+ _elem719.read(iprot)
+ self.success.append(_elem719)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -24587,8 +24478,8 @@ class getSessions_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter1093 in self.success:
- iter1093.write(oprot)
+ for iter720 in self.success:
+ iter720.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -24666,7 +24557,6 @@ class getSettings_result(object):
Attributes:
- success
- e
-
"""
@@ -24740,7 +24630,6 @@ class getSettingsAttributes_args(object):
"""
Attributes:
- attrBitset
-
"""
@@ -24804,7 +24693,6 @@ class getSettingsAttributes_result(object):
Attributes:
- success
- e
-
"""
@@ -24922,7 +24810,6 @@ class getSystemConfiguration_result(object):
Attributes:
- success
- e
-
"""
@@ -25040,7 +24927,6 @@ class getUserTicket_result(object):
Attributes:
- success
- e
-
"""
@@ -25114,7 +25000,6 @@ class getWapInvitation_args(object):
"""
Attributes:
- invitationHash
-
"""
@@ -25178,7 +25063,6 @@ class getWapInvitation_result(object):
Attributes:
- success
- e
-
"""
@@ -25295,7 +25179,6 @@ class invalidateUserTicket_result(object):
"""
Attributes:
- e
-
"""
@@ -25358,7 +25241,6 @@ class inviteFriendsBySms_args(object):
"""
Attributes:
- phoneNumberList
-
"""
@@ -25377,10 +25259,10 @@ class inviteFriendsBySms_args(object):
if fid == 2:
if ftype == TType.LIST:
self.phoneNumberList = []
- (_etype1097, _size1094) = iprot.readListBegin()
- for _i1098 in range(_size1094):
- _elem1099 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.phoneNumberList.append(_elem1099)
+ (_etype724, _size721) = iprot.readListBegin()
+ for _i725 in range(_size721):
+ _elem726 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.phoneNumberList.append(_elem726)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -25397,8 +25279,8 @@ class inviteFriendsBySms_args(object):
if self.phoneNumberList is not None:
oprot.writeFieldBegin('phoneNumberList', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.phoneNumberList))
- for iter1100 in self.phoneNumberList:
- oprot.writeString(iter1100.encode('utf-8') if sys.version_info[0] == 2 else iter1100)
+ for iter727 in self.phoneNumberList:
+ oprot.writeString(iter727.encode('utf-8') if sys.version_info[0] == 2 else iter727)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -25429,7 +25311,6 @@ class inviteFriendsBySms_result(object):
"""
Attributes:
- e
-
"""
@@ -25494,7 +25375,6 @@ class inviteIntoGroup_args(object):
- reqSeq
- groupId
- contactIds
-
"""
@@ -25525,10 +25405,10 @@ class inviteIntoGroup_args(object):
elif fid == 3:
if ftype == TType.LIST:
self.contactIds = []
- (_etype1104, _size1101) = iprot.readListBegin()
- for _i1105 in range(_size1101):
- _elem1106 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.contactIds.append(_elem1106)
+ (_etype731, _size728) = iprot.readListBegin()
+ for _i732 in range(_size728):
+ _elem733 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.contactIds.append(_elem733)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -25553,8 +25433,8 @@ class inviteIntoGroup_args(object):
if self.contactIds is not None:
oprot.writeFieldBegin('contactIds', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.contactIds))
- for iter1107 in self.contactIds:
- oprot.writeString(iter1107.encode('utf-8') if sys.version_info[0] == 2 else iter1107)
+ for iter734 in self.contactIds:
+ oprot.writeString(iter734.encode('utf-8') if sys.version_info[0] == 2 else iter734)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -25586,7 +25466,6 @@ class inviteIntoGroup_result(object):
"""
Attributes:
- e
-
"""
@@ -25651,7 +25530,6 @@ class inviteIntoRoom_args(object):
- reqSeq
- roomId
- contactIds
-
"""
@@ -25682,10 +25560,10 @@ class inviteIntoRoom_args(object):
elif fid == 3:
if ftype == TType.LIST:
self.contactIds = []
- (_etype1111, _size1108) = iprot.readListBegin()
- for _i1112 in range(_size1108):
- _elem1113 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.contactIds.append(_elem1113)
+ (_etype738, _size735) = iprot.readListBegin()
+ for _i739 in range(_size735):
+ _elem740 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.contactIds.append(_elem740)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -25710,8 +25588,8 @@ class inviteIntoRoom_args(object):
if self.contactIds is not None:
oprot.writeFieldBegin('contactIds', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.contactIds))
- for iter1114 in self.contactIds:
- oprot.writeString(iter1114.encode('utf-8') if sys.version_info[0] == 2 else iter1114)
+ for iter741 in self.contactIds:
+ oprot.writeString(iter741.encode('utf-8') if sys.version_info[0] == 2 else iter741)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -25743,7 +25621,6 @@ class inviteIntoRoom_result(object):
"""
Attributes:
- e
-
"""
@@ -25808,7 +25685,6 @@ class inviteViaEmail_args(object):
- reqSeq
- email
- name
-
"""
@@ -25892,7 +25768,6 @@ class inviteViaEmail_result(object):
"""
Attributes:
- e
-
"""
@@ -25956,7 +25831,6 @@ class isIdentityIdentifierAvailable_args(object):
Attributes:
- provider
- identifier
-
"""
@@ -26031,7 +25905,6 @@ class isIdentityIdentifierAvailable_result(object):
Attributes:
- success
- e
-
"""
@@ -26104,7 +25977,6 @@ class isUseridAvailable_args(object):
"""
Attributes:
- userid
-
"""
@@ -26168,7 +26040,6 @@ class isUseridAvailable_result(object):
Attributes:
- success
- e
-
"""
@@ -26243,7 +26114,6 @@ class kickoutFromGroup_args(object):
- reqSeq
- groupId
- contactIds
-
"""
@@ -26274,10 +26144,10 @@ class kickoutFromGroup_args(object):
elif fid == 3:
if ftype == TType.LIST:
self.contactIds = []
- (_etype1118, _size1115) = iprot.readListBegin()
- for _i1119 in range(_size1115):
- _elem1120 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.contactIds.append(_elem1120)
+ (_etype745, _size742) = iprot.readListBegin()
+ for _i746 in range(_size742):
+ _elem747 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.contactIds.append(_elem747)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -26302,8 +26172,8 @@ class kickoutFromGroup_args(object):
if self.contactIds is not None:
oprot.writeFieldBegin('contactIds', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.contactIds))
- for iter1121 in self.contactIds:
- oprot.writeString(iter1121.encode('utf-8') if sys.version_info[0] == 2 else iter1121)
+ for iter748 in self.contactIds:
+ oprot.writeString(iter748.encode('utf-8') if sys.version_info[0] == 2 else iter748)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -26335,7 +26205,6 @@ class kickoutFromGroup_result(object):
"""
Attributes:
- e
-
"""
@@ -26394,12 +26263,280 @@ kickoutFromGroup_result.thrift_spec = (
)
+class reissueGroupTicket_args(object):
+ """
+ Attributes:
+ - groupMid
+ """
+
+
+ def __init__(self, groupMid=None,):
+ self.groupMid = groupMid
+
+ def read(self, iprot):
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
+ return
+ iprot.readStructBegin()
+ while True:
+ (fname, ftype, fid) = iprot.readFieldBegin()
+ if ftype == TType.STOP:
+ break
+ if fid == 1:
+ if ftype == TType.STRING:
+ self.groupMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
+ return
+ oprot.writeStructBegin('reissueGroupTicket_args')
+ if self.groupMid is not None:
+ oprot.writeFieldBegin('groupMid', TType.STRING, 1)
+ oprot.writeString(self.groupMid.encode('utf-8') if sys.version_info[0] == 2 else self.groupMid)
+ oprot.writeFieldEnd()
+ oprot.writeFieldStop()
+ oprot.writeStructEnd()
+
+ def validate(self):
+ return
+
+ def __repr__(self):
+ L = ['%s=%r' % (key, value)
+ for key, value in self.__dict__.items()]
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+ def __eq__(self, other):
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not (self == other)
+all_structs.append(reissueGroupTicket_args)
+reissueGroupTicket_args.thrift_spec = (
+ None, # 0
+ (1, TType.STRING, 'groupMid', 'UTF8', None, ), # 1
+)
+
+
+class reissueGroupTicket_result(object):
+ """
+ Attributes:
+ - success
+ - e
+ """
+
+
+ def __init__(self, success=None, e=None,):
+ self.success = success
+ self.e = e
+
+ def read(self, iprot):
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
+ return
+ iprot.readStructBegin()
+ while True:
+ (fname, ftype, fid) = iprot.readFieldBegin()
+ if ftype == TType.STOP:
+ break
+ if fid == 0:
+ if ftype == TType.STRING:
+ self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ else:
+ iprot.skip(ftype)
+ elif fid == 1:
+ if ftype == TType.STRUCT:
+ self.e = TalkException()
+ self.e.read(iprot)
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
+ return
+ oprot.writeStructBegin('reissueGroupTicket_result')
+ if self.success is not None:
+ oprot.writeFieldBegin('success', TType.STRING, 0)
+ oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
+ oprot.writeFieldEnd()
+ if self.e is not None:
+ oprot.writeFieldBegin('e', TType.STRUCT, 1)
+ self.e.write(oprot)
+ oprot.writeFieldEnd()
+ oprot.writeFieldStop()
+ oprot.writeStructEnd()
+
+ def validate(self):
+ return
+
+ def __repr__(self):
+ L = ['%s=%r' % (key, value)
+ for key, value in self.__dict__.items()]
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+ def __eq__(self, other):
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not (self == other)
+all_structs.append(reissueGroupTicket_result)
+reissueGroupTicket_result.thrift_spec = (
+ (0, TType.STRING, 'success', 'UTF8', None, ), # 0
+ (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
+)
+
+
+class findGroupByTicket_args(object):
+ """
+ Attributes:
+ - ticketId
+ """
+
+
+ def __init__(self, ticketId=None,):
+ self.ticketId = ticketId
+
+ def read(self, iprot):
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
+ return
+ iprot.readStructBegin()
+ while True:
+ (fname, ftype, fid) = iprot.readFieldBegin()
+ if ftype == TType.STOP:
+ break
+ if fid == 1:
+ if ftype == TType.STRING:
+ self.ticketId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
+ return
+ oprot.writeStructBegin('findGroupByTicket_args')
+ if self.ticketId is not None:
+ oprot.writeFieldBegin('ticketId', TType.STRING, 1)
+ oprot.writeString(self.ticketId.encode('utf-8') if sys.version_info[0] == 2 else self.ticketId)
+ oprot.writeFieldEnd()
+ oprot.writeFieldStop()
+ oprot.writeStructEnd()
+
+ def validate(self):
+ return
+
+ def __repr__(self):
+ L = ['%s=%r' % (key, value)
+ for key, value in self.__dict__.items()]
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+ def __eq__(self, other):
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not (self == other)
+all_structs.append(findGroupByTicket_args)
+findGroupByTicket_args.thrift_spec = (
+ None, # 0
+ (1, TType.STRING, 'ticketId', 'UTF8', None, ), # 1
+)
+
+
+class findGroupByTicket_result(object):
+ """
+ Attributes:
+ - success
+ - e
+ """
+
+
+ def __init__(self, success=None, e=None,):
+ self.success = success
+ self.e = e
+
+ def read(self, iprot):
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
+ return
+ iprot.readStructBegin()
+ while True:
+ (fname, ftype, fid) = iprot.readFieldBegin()
+ if ftype == TType.STOP:
+ break
+ if fid == 0:
+ if ftype == TType.STRUCT:
+ self.success = Group()
+ self.success.read(iprot)
+ else:
+ iprot.skip(ftype)
+ elif fid == 1:
+ if ftype == TType.STRUCT:
+ self.e = TalkException()
+ self.e.read(iprot)
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
+ return
+ oprot.writeStructBegin('findGroupByTicket_result')
+ if self.success is not None:
+ oprot.writeFieldBegin('success', TType.STRUCT, 0)
+ self.success.write(oprot)
+ oprot.writeFieldEnd()
+ if self.e is not None:
+ oprot.writeFieldBegin('e', TType.STRUCT, 1)
+ self.e.write(oprot)
+ oprot.writeFieldEnd()
+ oprot.writeFieldStop()
+ oprot.writeStructEnd()
+
+ def validate(self):
+ return
+
+ def __repr__(self):
+ L = ['%s=%r' % (key, value)
+ for key, value in self.__dict__.items()]
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+ def __eq__(self, other):
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not (self == other)
+all_structs.append(findGroupByTicket_result)
+findGroupByTicket_result.thrift_spec = (
+ (0, TType.STRUCT, 'success', [Group, None], None, ), # 0
+ (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1
+)
+
+
class leaveGroup_args(object):
"""
Attributes:
- reqSeq
- groupId
-
"""
@@ -26472,7 +26609,6 @@ class leaveGroup_result(object):
"""
Attributes:
- e
-
"""
@@ -26536,7 +26672,6 @@ class leaveRoom_args(object):
Attributes:
- reqSeq
- roomId
-
"""
@@ -26609,7 +26744,6 @@ class leaveRoom_result(object):
"""
Attributes:
- e
-
"""
@@ -26678,7 +26812,6 @@ class loginWithIdentityCredential_args(object):
- accessLocation
- systemName
- certificate
-
"""
@@ -26809,7 +26942,6 @@ class loginWithIdentityCredential_result(object):
Attributes:
- success
- e
-
"""
@@ -26888,7 +27020,6 @@ class loginWithIdentityCredentialForCertificate_args(object):
- accessLocation
- systemName
- certificate
-
"""
@@ -27019,7 +27150,6 @@ class loginWithIdentityCredentialForCertificate_result(object):
Attributes:
- success
- e
-
"""
@@ -27093,7 +27223,6 @@ class loginWithVerifier_args(object):
"""
Attributes:
- verifier
-
"""
@@ -27158,7 +27287,6 @@ class loginWithVerifier_result(object):
Attributes:
- success
- e
-
"""
@@ -27231,7 +27359,6 @@ class loginWithVerifierForCerificate_args(object):
"""
Attributes:
- verifier
-
"""
@@ -27296,7 +27423,6 @@ class loginWithVerifierForCerificate_result(object):
Attributes:
- success
- e
-
"""
@@ -27370,7 +27496,6 @@ class loginWithVerifierForCertificate_args(object):
"""
Attributes:
- verifier
-
"""
@@ -27435,7 +27560,6 @@ class loginWithVerifierForCertificate_result(object):
Attributes:
- success
- e
-
"""
@@ -27552,7 +27676,6 @@ class logout_result(object):
"""
Attributes:
- e
-
"""
@@ -27615,7 +27738,6 @@ class logoutSession_args(object):
"""
Attributes:
- tokenKey
-
"""
@@ -27678,7 +27800,6 @@ class logoutSession_result(object):
"""
Attributes:
- e
-
"""
@@ -27784,7 +27905,6 @@ class noop_result(object):
"""
Attributes:
- e
-
"""
@@ -27847,7 +27967,6 @@ class notifiedRedirect_args(object):
"""
Attributes:
- paramMap
-
"""
@@ -27866,11 +27985,11 @@ class notifiedRedirect_args(object):
if fid == 2:
if ftype == TType.MAP:
self.paramMap = {}
- (_ktype1123, _vtype1124, _size1122) = iprot.readMapBegin()
- for _i1126 in range(_size1122):
- _key1127 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val1128 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.paramMap[_key1127] = _val1128
+ (_ktype750, _vtype751, _size749) = iprot.readMapBegin()
+ for _i753 in range(_size749):
+ _key754 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ _val755 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.paramMap[_key754] = _val755
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -27887,9 +28006,9 @@ class notifiedRedirect_args(object):
if self.paramMap is not None:
oprot.writeFieldBegin('paramMap', TType.MAP, 2)
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.paramMap))
- for kiter1129, viter1130 in self.paramMap.items():
- oprot.writeString(kiter1129.encode('utf-8') if sys.version_info[0] == 2 else kiter1129)
- oprot.writeString(viter1130.encode('utf-8') if sys.version_info[0] == 2 else viter1130)
+ for kiter756, viter757 in self.paramMap.items():
+ oprot.writeString(kiter756.encode('utf-8') if sys.version_info[0] == 2 else kiter756)
+ oprot.writeString(viter757.encode('utf-8') if sys.version_info[0] == 2 else viter757)
oprot.writeMapEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -27920,7 +28039,6 @@ class notifiedRedirect_result(object):
"""
Attributes:
- e
-
"""
@@ -27984,7 +28102,6 @@ class notifyBuddyOnAir_args(object):
Attributes:
- seq
- receiverMids
-
"""
@@ -28009,10 +28126,10 @@ class notifyBuddyOnAir_args(object):
elif fid == 2:
if ftype == TType.LIST:
self.receiverMids = []
- (_etype1134, _size1131) = iprot.readListBegin()
- for _i1135 in range(_size1131):
- _elem1136 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.receiverMids.append(_elem1136)
+ (_etype761, _size758) = iprot.readListBegin()
+ for _i762 in range(_size758):
+ _elem763 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.receiverMids.append(_elem763)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -28033,8 +28150,8 @@ class notifyBuddyOnAir_args(object):
if self.receiverMids is not None:
oprot.writeFieldBegin('receiverMids', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.receiverMids))
- for iter1137 in self.receiverMids:
- oprot.writeString(iter1137.encode('utf-8') if sys.version_info[0] == 2 else iter1137)
+ for iter764 in self.receiverMids:
+ oprot.writeString(iter764.encode('utf-8') if sys.version_info[0] == 2 else iter764)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -28066,7 +28183,6 @@ class notifyBuddyOnAir_result(object):
Attributes:
- success
- e
-
"""
@@ -28086,11 +28202,11 @@ class notifyBuddyOnAir_result(object):
if fid == 0:
if ftype == TType.MAP:
self.success = {}
- (_ktype1139, _vtype1140, _size1138) = iprot.readMapBegin()
- for _i1142 in range(_size1138):
- _key1143 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val1144 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success[_key1143] = _val1144
+ (_ktype766, _vtype767, _size765) = iprot.readMapBegin()
+ for _i769 in range(_size765):
+ _key770 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ _val771 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success[_key770] = _val771
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -28113,9 +28229,9 @@ class notifyBuddyOnAir_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
- for kiter1145, viter1146 in self.success.items():
- oprot.writeString(kiter1145.encode('utf-8') if sys.version_info[0] == 2 else kiter1145)
- oprot.writeString(viter1146.encode('utf-8') if sys.version_info[0] == 2 else viter1146)
+ for kiter772, viter773 in self.success.items():
+ oprot.writeString(kiter772.encode('utf-8') if sys.version_info[0] == 2 else kiter772)
+ oprot.writeString(viter773.encode('utf-8') if sys.version_info[0] == 2 else viter773)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -28150,7 +28266,6 @@ class notifyIndividualEvent_args(object):
Attributes:
- notificationStatus
- receiverMids
-
"""
@@ -28175,10 +28290,10 @@ class notifyIndividualEvent_args(object):
elif fid == 3:
if ftype == TType.LIST:
self.receiverMids = []
- (_etype1150, _size1147) = iprot.readListBegin()
- for _i1151 in range(_size1147):
- _elem1152 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.receiverMids.append(_elem1152)
+ (_etype777, _size774) = iprot.readListBegin()
+ for _i778 in range(_size774):
+ _elem779 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.receiverMids.append(_elem779)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -28199,8 +28314,8 @@ class notifyIndividualEvent_args(object):
if self.receiverMids is not None:
oprot.writeFieldBegin('receiverMids', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.receiverMids))
- for iter1153 in self.receiverMids:
- oprot.writeString(iter1153.encode('utf-8') if sys.version_info[0] == 2 else iter1153)
+ for iter780 in self.receiverMids:
+ oprot.writeString(iter780.encode('utf-8') if sys.version_info[0] == 2 else iter780)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -28232,7 +28347,6 @@ class notifyIndividualEvent_result(object):
"""
Attributes:
- e
-
"""
@@ -28296,7 +28410,6 @@ class notifyInstalled_args(object):
Attributes:
- udidHash
- applicationTypeWithExtensions
-
"""
@@ -28414,7 +28527,6 @@ class notifyRegistrationComplete_args(object):
Attributes:
- udidHash
- applicationTypeWithExtensions
-
"""
@@ -28532,7 +28644,6 @@ class notifySleep_args(object):
Attributes:
- lastRev
- badge
-
"""
@@ -28606,7 +28717,6 @@ class notifySleep_result(object):
"""
Attributes:
- e
-
"""
@@ -28670,7 +28780,6 @@ class notifyUpdated_args(object):
Attributes:
- lastRev
- deviceInfo
-
"""
@@ -28745,7 +28854,6 @@ class notifyUpdated_result(object):
"""
Attributes:
- e
-
"""
@@ -28808,7 +28916,6 @@ class openProximityMatch_args(object):
"""
Attributes:
- location
-
"""
@@ -28873,7 +28980,6 @@ class openProximityMatch_result(object):
Attributes:
- success
- e
-
"""
@@ -28947,7 +29053,6 @@ class registerBuddyUser_args(object):
Attributes:
- buddyId
- registrarPassword
-
"""
@@ -29022,7 +29127,6 @@ class registerBuddyUser_result(object):
Attributes:
- success
- e
-
"""
@@ -29096,7 +29200,6 @@ class registerBuddyUserid_args(object):
Attributes:
- seq
- userid
-
"""
@@ -29170,7 +29273,6 @@ class registerBuddyUserid_result(object):
"""
Attributes:
- e
-
"""
@@ -29233,7 +29335,6 @@ class registerDevice_args(object):
"""
Attributes:
- sessionId
-
"""
@@ -29297,7 +29398,6 @@ class registerDevice_result(object):
Attributes:
- success
- e
-
"""
@@ -29373,7 +29473,6 @@ class registerDeviceWithIdentityCredential_args(object):
- provider
- identifier
- verifier
-
"""
@@ -29470,7 +29569,6 @@ class registerDeviceWithIdentityCredential_result(object):
Attributes:
- success
- e
-
"""
@@ -29545,7 +29643,6 @@ class registerDeviceWithoutPhoneNumber_args(object):
- region
- udidHash
- deviceInfo
-
"""
@@ -29632,7 +29729,6 @@ class registerDeviceWithoutPhoneNumber_result(object):
Attributes:
- success
- e
-
"""
@@ -29711,7 +29807,6 @@ class registerDeviceWithoutPhoneNumberWithIdentityCredential_args(object):
- identifier
- verifier
- mid
-
"""
@@ -29842,7 +29937,6 @@ class registerDeviceWithoutPhoneNumberWithIdentityCredential_result(object):
Attributes:
- success
- e
-
"""
@@ -29916,7 +30010,6 @@ class registerUserid_args(object):
Attributes:
- reqSeq
- userid
-
"""
@@ -29990,7 +30083,6 @@ class registerUserid_result(object):
Attributes:
- success
- e
-
"""
@@ -30066,7 +30158,6 @@ class registerWapDevice_args(object):
- guidHash
- email
- deviceInfo
-
"""
@@ -30164,7 +30255,6 @@ class registerWapDevice_result(object):
Attributes:
- success
- e
-
"""
@@ -30240,7 +30330,6 @@ class registerWithExistingSnsIdAndIdentityCredential_args(object):
- region
- udidHash
- deviceInfo
-
"""
@@ -30339,7 +30428,6 @@ class registerWithExistingSnsIdAndIdentityCredential_result(object):
Attributes:
- success
- e
-
"""
@@ -30417,7 +30505,6 @@ class registerWithSnsId_args(object):
- udidHash
- deviceInfo
- mid
-
"""
@@ -30537,7 +30624,6 @@ class registerWithSnsId_result(object):
Attributes:
- success
- e
-
"""
@@ -30616,7 +30702,6 @@ class registerWithSnsIdAndIdentityCredential_args(object):
- region
- udidHash
- deviceInfo
-
"""
@@ -30737,7 +30822,6 @@ class registerWithSnsIdAndIdentityCredential_result(object):
Attributes:
- success
- e
-
"""
@@ -30854,7 +30938,6 @@ class reissueDeviceCredential_result(object):
Attributes:
- success
- e
-
"""
@@ -30928,7 +31011,6 @@ class reissueUserTicket_args(object):
Attributes:
- expirationTime
- maxUseCount
-
"""
@@ -31004,7 +31086,6 @@ class reissueUserTicket_result(object):
Attributes:
- success
- e
-
"""
@@ -31078,7 +31159,6 @@ class rejectGroupInvitation_args(object):
Attributes:
- reqSeq
- groupId
-
"""
@@ -31151,7 +31231,6 @@ class rejectGroupInvitation_result(object):
"""
Attributes:
- e
-
"""
@@ -31257,7 +31336,6 @@ class releaseSession_result(object):
"""
Attributes:
- e
-
"""
@@ -31321,7 +31399,6 @@ class removeAllMessages_args(object):
Attributes:
- seq
- lastMessageId
-
"""
@@ -31394,7 +31471,6 @@ class removeAllMessages_result(object):
"""
Attributes:
- e
-
"""
@@ -31458,7 +31534,6 @@ class removeBuddyLocation_args(object):
Attributes:
- mid
- index
-
"""
@@ -31532,7 +31607,6 @@ class removeBuddyLocation_result(object):
"""
Attributes:
- e
-
"""
@@ -31595,7 +31669,6 @@ class removeMessage_args(object):
"""
Attributes:
- messageId
-
"""
@@ -31659,7 +31732,6 @@ class removeMessage_result(object):
Attributes:
- success
- e
-
"""
@@ -31732,7 +31804,6 @@ class removeMessageFromMyHome_args(object):
"""
Attributes:
- messageId
-
"""
@@ -31796,7 +31867,6 @@ class removeMessageFromMyHome_result(object):
Attributes:
- success
- e
-
"""
@@ -31869,7 +31939,6 @@ class removeSnsId_args(object):
"""
Attributes:
- snsIdType
-
"""
@@ -31933,7 +32002,6 @@ class removeSnsId_result(object):
Attributes:
- success
- e
-
"""
@@ -32008,7 +32076,6 @@ class report_args(object):
- syncOpRevision
- category
- report
-
"""
@@ -32093,7 +32160,6 @@ class report_result(object):
"""
Attributes:
- e
-
"""
@@ -32159,7 +32225,6 @@ class reportContacts_args(object):
- category
- contactReports
- actionType
-
"""
@@ -32191,11 +32256,11 @@ class reportContacts_args(object):
elif fid == 4:
if ftype == TType.LIST:
self.contactReports = []
- (_etype1157, _size1154) = iprot.readListBegin()
- for _i1158 in range(_size1154):
- _elem1159 = ContactReport()
- _elem1159.read(iprot)
- self.contactReports.append(_elem1159)
+ (_etype784, _size781) = iprot.readListBegin()
+ for _i785 in range(_size781):
+ _elem786 = ContactReport()
+ _elem786.read(iprot)
+ self.contactReports.append(_elem786)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -32225,8 +32290,8 @@ class reportContacts_args(object):
if self.contactReports is not None:
oprot.writeFieldBegin('contactReports', TType.LIST, 4)
oprot.writeListBegin(TType.STRUCT, len(self.contactReports))
- for iter1160 in self.contactReports:
- iter1160.write(oprot)
+ for iter787 in self.contactReports:
+ iter787.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.actionType is not None:
@@ -32265,7 +32330,6 @@ class reportContacts_result(object):
Attributes:
- success
- e
-
"""
@@ -32285,11 +32349,11 @@ class reportContacts_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1164, _size1161) = iprot.readListBegin()
- for _i1165 in range(_size1161):
- _elem1166 = ContactReportResult()
- _elem1166.read(iprot)
- self.success.append(_elem1166)
+ (_etype791, _size788) = iprot.readListBegin()
+ for _i792 in range(_size788):
+ _elem793 = ContactReportResult()
+ _elem793.read(iprot)
+ self.success.append(_elem793)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -32312,8 +32376,8 @@ class reportContacts_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter1167 in self.success:
- iter1167.write(oprot)
+ for iter794 in self.success:
+ iter794.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -32348,7 +32412,6 @@ class reportGroups_args(object):
Attributes:
- syncOpRevision
- groups
-
"""
@@ -32373,11 +32436,11 @@ class reportGroups_args(object):
elif fid == 3:
if ftype == TType.LIST:
self.groups = []
- (_etype1171, _size1168) = iprot.readListBegin()
- for _i1172 in range(_size1168):
- _elem1173 = Group()
- _elem1173.read(iprot)
- self.groups.append(_elem1173)
+ (_etype798, _size795) = iprot.readListBegin()
+ for _i799 in range(_size795):
+ _elem800 = Group()
+ _elem800.read(iprot)
+ self.groups.append(_elem800)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -32398,8 +32461,8 @@ class reportGroups_args(object):
if self.groups is not None:
oprot.writeFieldBegin('groups', TType.LIST, 3)
oprot.writeListBegin(TType.STRUCT, len(self.groups))
- for iter1174 in self.groups:
- iter1174.write(oprot)
+ for iter801 in self.groups:
+ iter801.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -32431,7 +32494,6 @@ class reportGroups_result(object):
"""
Attributes:
- e
-
"""
@@ -32495,7 +32557,6 @@ class reportProfile_args(object):
Attributes:
- syncOpRevision
- profile
-
"""
@@ -32570,7 +32631,6 @@ class reportProfile_result(object):
"""
Attributes:
- e
-
"""
@@ -32634,7 +32694,6 @@ class reportRooms_args(object):
Attributes:
- syncOpRevision
- rooms
-
"""
@@ -32659,11 +32718,11 @@ class reportRooms_args(object):
elif fid == 3:
if ftype == TType.LIST:
self.rooms = []
- (_etype1178, _size1175) = iprot.readListBegin()
- for _i1179 in range(_size1175):
- _elem1180 = Room()
- _elem1180.read(iprot)
- self.rooms.append(_elem1180)
+ (_etype805, _size802) = iprot.readListBegin()
+ for _i806 in range(_size802):
+ _elem807 = Room()
+ _elem807.read(iprot)
+ self.rooms.append(_elem807)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -32684,8 +32743,8 @@ class reportRooms_args(object):
if self.rooms is not None:
oprot.writeFieldBegin('rooms', TType.LIST, 3)
oprot.writeListBegin(TType.STRUCT, len(self.rooms))
- for iter1181 in self.rooms:
- iter1181.write(oprot)
+ for iter808 in self.rooms:
+ iter808.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -32717,7 +32776,6 @@ class reportRooms_result(object):
"""
Attributes:
- e
-
"""
@@ -32781,7 +32839,6 @@ class reportSettings_args(object):
Attributes:
- syncOpRevision
- settings
-
"""
@@ -32856,7 +32913,6 @@ class reportSettings_result(object):
"""
Attributes:
- e
-
"""
@@ -32921,7 +32977,6 @@ class reportSpammer_args(object):
- spammerMid
- spammerReasons
- spamMessageIds
-
"""
@@ -32947,20 +33002,20 @@ class reportSpammer_args(object):
elif fid == 3:
if ftype == TType.LIST:
self.spammerReasons = []
- (_etype1185, _size1182) = iprot.readListBegin()
- for _i1186 in range(_size1182):
- _elem1187 = iprot.readI32()
- self.spammerReasons.append(_elem1187)
+ (_etype812, _size809) = iprot.readListBegin()
+ for _i813 in range(_size809):
+ _elem814 = iprot.readI32()
+ self.spammerReasons.append(_elem814)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.spamMessageIds = []
- (_etype1191, _size1188) = iprot.readListBegin()
- for _i1192 in range(_size1188):
- _elem1193 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.spamMessageIds.append(_elem1193)
+ (_etype818, _size815) = iprot.readListBegin()
+ for _i819 in range(_size815):
+ _elem820 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.spamMessageIds.append(_elem820)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -32981,15 +33036,15 @@ class reportSpammer_args(object):
if self.spammerReasons is not None:
oprot.writeFieldBegin('spammerReasons', TType.LIST, 3)
oprot.writeListBegin(TType.I32, len(self.spammerReasons))
- for iter1194 in self.spammerReasons:
- oprot.writeI32(iter1194)
+ for iter821 in self.spammerReasons:
+ oprot.writeI32(iter821)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.spamMessageIds is not None:
oprot.writeFieldBegin('spamMessageIds', TType.LIST, 4)
oprot.writeListBegin(TType.STRING, len(self.spamMessageIds))
- for iter1195 in self.spamMessageIds:
- oprot.writeString(iter1195.encode('utf-8') if sys.version_info[0] == 2 else iter1195)
+ for iter822 in self.spamMessageIds:
+ oprot.writeString(iter822.encode('utf-8') if sys.version_info[0] == 2 else iter822)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -33022,7 +33077,6 @@ class reportSpammer_result(object):
"""
Attributes:
- e
-
"""
@@ -33087,7 +33141,6 @@ class requestAccountPasswordReset_args(object):
- provider
- identifier
- locale
-
"""
@@ -33173,7 +33226,6 @@ class requestAccountPasswordReset_result(object):
"""
Attributes:
- e
-
"""
@@ -33236,7 +33288,6 @@ class requestEmailConfirmation_args(object):
"""
Attributes:
- emailConfirmation
-
"""
@@ -33301,7 +33352,6 @@ class requestEmailConfirmation_result(object):
Attributes:
- success
- e
-
"""
@@ -33376,7 +33426,6 @@ class requestIdentityUnbind_args(object):
Attributes:
- provider
- identifier
-
"""
@@ -33451,7 +33500,6 @@ class requestIdentityUnbind_result(object):
"""
Attributes:
- e
-
"""
@@ -33514,7 +33562,6 @@ class resendEmailConfirmation_args(object):
"""
Attributes:
- verifier
-
"""
@@ -33578,7 +33625,6 @@ class resendEmailConfirmation_result(object):
Attributes:
- success
- e
-
"""
@@ -33652,7 +33698,6 @@ class resendPinCode_args(object):
"""
Attributes:
- sessionId
-
"""
@@ -33715,7 +33760,6 @@ class resendPinCode_result(object):
"""
Attributes:
- e
-
"""
@@ -33778,7 +33822,6 @@ class resendPinCodeBySMS_args(object):
"""
Attributes:
- sessionId
-
"""
@@ -33841,7 +33884,6 @@ class resendPinCodeBySMS_result(object):
"""
Attributes:
- e
-
"""
@@ -33906,7 +33948,6 @@ class sendChatChecked_args(object):
- seq
- consumer
- lastMessageId
-
"""
@@ -33990,7 +34031,6 @@ class sendChatChecked_result(object):
"""
Attributes:
- e
-
"""
@@ -34055,7 +34095,6 @@ class sendChatRemoved_args(object):
- seq
- consumer
- lastMessageId
-
"""
@@ -34139,7 +34178,6 @@ class sendChatRemoved_result(object):
"""
Attributes:
- e
-
"""
@@ -34204,7 +34242,6 @@ class sendContentPreviewUpdated_args(object):
- esq
- messageId
- receiverMids
-
"""
@@ -34235,10 +34272,10 @@ class sendContentPreviewUpdated_args(object):
elif fid == 3:
if ftype == TType.LIST:
self.receiverMids = []
- (_etype1199, _size1196) = iprot.readListBegin()
- for _i1200 in range(_size1196):
- _elem1201 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.receiverMids.append(_elem1201)
+ (_etype826, _size823) = iprot.readListBegin()
+ for _i827 in range(_size823):
+ _elem828 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.receiverMids.append(_elem828)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -34263,8 +34300,8 @@ class sendContentPreviewUpdated_args(object):
if self.receiverMids is not None:
oprot.writeFieldBegin('receiverMids', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.receiverMids))
- for iter1202 in self.receiverMids:
- oprot.writeString(iter1202.encode('utf-8') if sys.version_info[0] == 2 else iter1202)
+ for iter829 in self.receiverMids:
+ oprot.writeString(iter829.encode('utf-8') if sys.version_info[0] == 2 else iter829)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -34297,7 +34334,6 @@ class sendContentPreviewUpdated_result(object):
Attributes:
- success
- e
-
"""
@@ -34317,11 +34353,11 @@ class sendContentPreviewUpdated_result(object):
if fid == 0:
if ftype == TType.MAP:
self.success = {}
- (_ktype1204, _vtype1205, _size1203) = iprot.readMapBegin()
- for _i1207 in range(_size1203):
- _key1208 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val1209 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.success[_key1208] = _val1209
+ (_ktype831, _vtype832, _size830) = iprot.readMapBegin()
+ for _i834 in range(_size830):
+ _key835 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ _val836 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.success[_key835] = _val836
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -34344,9 +34380,9 @@ class sendContentPreviewUpdated_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
- for kiter1210, viter1211 in self.success.items():
- oprot.writeString(kiter1210.encode('utf-8') if sys.version_info[0] == 2 else kiter1210)
- oprot.writeString(viter1211.encode('utf-8') if sys.version_info[0] == 2 else viter1211)
+ for kiter837, viter838 in self.success.items():
+ oprot.writeString(kiter837.encode('utf-8') if sys.version_info[0] == 2 else kiter837)
+ oprot.writeString(viter838.encode('utf-8') if sys.version_info[0] == 2 else viter838)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -34382,7 +34418,6 @@ class sendContentReceipt_args(object):
- seq
- consumer
- messageId
-
"""
@@ -34466,7 +34501,6 @@ class sendContentReceipt_result(object):
"""
Attributes:
- e
-
"""
@@ -34572,7 +34606,6 @@ class sendDummyPush_result(object):
"""
Attributes:
- e
-
"""
@@ -34636,7 +34669,6 @@ class sendEvent_args(object):
Attributes:
- seq
- message
-
"""
@@ -34711,7 +34743,6 @@ class sendEvent_result(object):
Attributes:
- success
- e
-
"""
@@ -34786,7 +34817,6 @@ class sendMessage_args(object):
Attributes:
- seq
- message
-
"""
@@ -34861,7 +34891,6 @@ class sendMessage_result(object):
Attributes:
- success
- e
-
"""
@@ -34937,7 +34966,6 @@ class sendMessageIgnored_args(object):
- seq
- consumer
- messageIds
-
"""
@@ -34968,10 +34996,10 @@ class sendMessageIgnored_args(object):
elif fid == 3:
if ftype == TType.LIST:
self.messageIds = []
- (_etype1215, _size1212) = iprot.readListBegin()
- for _i1216 in range(_size1212):
- _elem1217 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.messageIds.append(_elem1217)
+ (_etype842, _size839) = iprot.readListBegin()
+ for _i843 in range(_size839):
+ _elem844 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.messageIds.append(_elem844)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -34996,8 +35024,8 @@ class sendMessageIgnored_args(object):
if self.messageIds is not None:
oprot.writeFieldBegin('messageIds', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.messageIds))
- for iter1218 in self.messageIds:
- oprot.writeString(iter1218.encode('utf-8') if sys.version_info[0] == 2 else iter1218)
+ for iter845 in self.messageIds:
+ oprot.writeString(iter845.encode('utf-8') if sys.version_info[0] == 2 else iter845)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -35029,7 +35057,6 @@ class sendMessageIgnored_result(object):
"""
Attributes:
- e
-
"""
@@ -35094,7 +35121,6 @@ class sendMessageReceipt_args(object):
- seq
- consumer
- messageIds
-
"""
@@ -35125,10 +35151,10 @@ class sendMessageReceipt_args(object):
elif fid == 3:
if ftype == TType.LIST:
self.messageIds = []
- (_etype1222, _size1219) = iprot.readListBegin()
- for _i1223 in range(_size1219):
- _elem1224 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.messageIds.append(_elem1224)
+ (_etype849, _size846) = iprot.readListBegin()
+ for _i850 in range(_size846):
+ _elem851 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.messageIds.append(_elem851)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -35153,8 +35179,8 @@ class sendMessageReceipt_args(object):
if self.messageIds is not None:
oprot.writeFieldBegin('messageIds', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.messageIds))
- for iter1225 in self.messageIds:
- oprot.writeString(iter1225.encode('utf-8') if sys.version_info[0] == 2 else iter1225)
+ for iter852 in self.messageIds:
+ oprot.writeString(iter852.encode('utf-8') if sys.version_info[0] == 2 else iter852)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -35186,7 +35212,6 @@ class sendMessageReceipt_result(object):
"""
Attributes:
- e
-
"""
@@ -35250,7 +35275,6 @@ class sendMessageToMyHome_args(object):
Attributes:
- seq
- message
-
"""
@@ -35325,7 +35349,6 @@ class sendMessageToMyHome_result(object):
Attributes:
- success
- e
-
"""
@@ -35401,7 +35424,6 @@ class setBuddyLocation_args(object):
- mid
- index
- location
-
"""
@@ -35487,7 +35509,6 @@ class setBuddyLocation_result(object):
"""
Attributes:
- e
-
"""
@@ -35552,7 +35573,6 @@ class setIdentityCredential_args(object):
- provider
- identifier
- verifier
-
"""
@@ -35637,7 +35657,6 @@ class setIdentityCredential_result(object):
"""
Attributes:
- e
-
"""
@@ -35703,7 +35722,6 @@ class setNotificationsEnabled_args(object):
- type
- target
- enablement
-
"""
@@ -35798,7 +35816,6 @@ class setNotificationsEnabled_result(object):
"""
Attributes:
- e
-
"""
@@ -35867,7 +35884,6 @@ class startUpdateVerification_args(object):
- deviceInfo
- networkCode
- locale
-
"""
@@ -35998,7 +36014,6 @@ class startUpdateVerification_result(object):
Attributes:
- success
- e
-
"""
@@ -36079,7 +36094,6 @@ class startVerification_args(object):
- networkCode
- mid
- locale
-
"""
@@ -36221,7 +36235,6 @@ class startVerification_result(object):
Attributes:
- success
- e
-
"""
@@ -36297,7 +36310,6 @@ class storeUpdateProfileAttribute_args(object):
- seq
- profileAttribute
- value
-
"""
@@ -36381,7 +36393,6 @@ class storeUpdateProfileAttribute_result(object):
"""
Attributes:
- e
-
"""
@@ -36445,7 +36456,6 @@ class syncContactBySnsIds_args(object):
Attributes:
- reqSeq
- modifications
-
"""
@@ -36470,11 +36480,11 @@ class syncContactBySnsIds_args(object):
elif fid == 2:
if ftype == TType.LIST:
self.modifications = []
- (_etype1229, _size1226) = iprot.readListBegin()
- for _i1230 in range(_size1226):
- _elem1231 = SnsFriendModification()
- _elem1231.read(iprot)
- self.modifications.append(_elem1231)
+ (_etype856, _size853) = iprot.readListBegin()
+ for _i857 in range(_size853):
+ _elem858 = SnsFriendModification()
+ _elem858.read(iprot)
+ self.modifications.append(_elem858)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -36495,8 +36505,8 @@ class syncContactBySnsIds_args(object):
if self.modifications is not None:
oprot.writeFieldBegin('modifications', TType.LIST, 2)
oprot.writeListBegin(TType.STRUCT, len(self.modifications))
- for iter1232 in self.modifications:
- iter1232.write(oprot)
+ for iter859 in self.modifications:
+ iter859.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -36528,7 +36538,6 @@ class syncContactBySnsIds_result(object):
Attributes:
- success
- e
-
"""
@@ -36548,11 +36557,11 @@ class syncContactBySnsIds_result(object):
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1236, _size1233) = iprot.readListBegin()
- for _i1237 in range(_size1233):
- _elem1238 = SnsFriendContactRegistration()
- _elem1238.read(iprot)
- self.success.append(_elem1238)
+ (_etype863, _size860) = iprot.readListBegin()
+ for _i864 in range(_size860):
+ _elem865 = SnsFriendContactRegistration()
+ _elem865.read(iprot)
+ self.success.append(_elem865)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -36575,8 +36584,8 @@ class syncContactBySnsIds_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter1239 in self.success:
- iter1239.write(oprot)
+ for iter866 in self.success:
+ iter866.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -36611,7 +36620,6 @@ class syncContacts_args(object):
Attributes:
- reqSeq
- localContacts
-
"""
@@ -36636,11 +36644,11 @@ class syncContacts_args(object):
elif fid == 2:
if ftype == TType.LIST:
self.localContacts = []
- (_etype1243, _size1240) = iprot.readListBegin()
- for _i1244 in range(_size1240):
- _elem1245 = ContactModification()
- _elem1245.read(iprot)
- self.localContacts.append(_elem1245)
+ (_etype870, _size867) = iprot.readListBegin()
+ for _i871 in range(_size867):
+ _elem872 = ContactModification()
+ _elem872.read(iprot)
+ self.localContacts.append(_elem872)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -36661,8 +36669,8 @@ class syncContacts_args(object):
if self.localContacts is not None:
oprot.writeFieldBegin('localContacts', TType.LIST, 2)
oprot.writeListBegin(TType.STRUCT, len(self.localContacts))
- for iter1246 in self.localContacts:
- iter1246.write(oprot)
+ for iter873 in self.localContacts:
+ iter873.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -36694,7 +36702,6 @@ class syncContacts_result(object):
Attributes:
- success
- e
-
"""
@@ -36714,12 +36721,12 @@ class syncContacts_result(object):
if fid == 0:
if ftype == TType.MAP:
self.success = {}
- (_ktype1248, _vtype1249, _size1247) = iprot.readMapBegin()
- for _i1251 in range(_size1247):
- _key1252 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val1253 = ContactRegistration()
- _val1253.read(iprot)
- self.success[_key1252] = _val1253
+ (_ktype875, _vtype876, _size874) = iprot.readMapBegin()
+ for _i878 in range(_size874):
+ _key879 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ _val880 = ContactRegistration()
+ _val880.read(iprot)
+ self.success[_key879] = _val880
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -36742,9 +36749,9 @@ class syncContacts_result(object):
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
- for kiter1254, viter1255 in self.success.items():
- oprot.writeString(kiter1254.encode('utf-8') if sys.version_info[0] == 2 else kiter1254)
- viter1255.write(oprot)
+ for kiter881, viter882 in self.success.items():
+ oprot.writeString(kiter881.encode('utf-8') if sys.version_info[0] == 2 else kiter881)
+ viter882.write(oprot)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
@@ -36779,7 +36786,6 @@ class trySendMessage_args(object):
Attributes:
- seq
- message
-
"""
@@ -36854,7 +36860,6 @@ class trySendMessage_result(object):
Attributes:
- success
- e
-
"""
@@ -36929,7 +36934,6 @@ class unblockContact_args(object):
Attributes:
- reqSeq
- id
-
"""
@@ -37002,7 +37006,6 @@ class unblockContact_result(object):
"""
Attributes:
- e
-
"""
@@ -37066,7 +37069,6 @@ class unblockRecommendation_args(object):
Attributes:
- reqSeq
- id
-
"""
@@ -37139,7 +37141,6 @@ class unblockRecommendation_result(object):
"""
Attributes:
- e
-
"""
@@ -37246,7 +37247,6 @@ class unregisterUserAndDevice_result(object):
Attributes:
- success
- e
-
"""
@@ -37319,7 +37319,6 @@ class updateApnsDeviceToken_args(object):
"""
Attributes:
- apnsDeviceToken
-
"""
@@ -37382,7 +37381,6 @@ class updateApnsDeviceToken_result(object):
"""
Attributes:
- e
-
"""
@@ -37446,7 +37444,6 @@ class updateBuddySetting_args(object):
Attributes:
- key
- value
-
"""
@@ -37520,7 +37517,6 @@ class updateBuddySetting_result(object):
"""
Attributes:
- e
-
"""
@@ -37583,7 +37579,6 @@ class updateC2DMRegistrationId_args(object):
"""
Attributes:
- registrationId
-
"""
@@ -37646,7 +37641,6 @@ class updateC2DMRegistrationId_result(object):
"""
Attributes:
- e
-
"""
@@ -37712,7 +37706,6 @@ class updateContactSetting_args(object):
- mid
- flag
- value
-
"""
@@ -37807,7 +37800,6 @@ class updateContactSetting_result(object):
"""
Attributes:
- e
-
"""
@@ -37871,7 +37863,6 @@ class updateCustomModeSettings_args(object):
Attributes:
- customMode
- paramMap
-
"""
@@ -37896,11 +37887,11 @@ class updateCustomModeSettings_args(object):
elif fid == 3:
if ftype == TType.MAP:
self.paramMap = {}
- (_ktype1257, _vtype1258, _size1256) = iprot.readMapBegin()
- for _i1260 in range(_size1256):
- _key1261 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- _val1262 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
- self.paramMap[_key1261] = _val1262
+ (_ktype884, _vtype885, _size883) = iprot.readMapBegin()
+ for _i887 in range(_size883):
+ _key888 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ _val889 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ self.paramMap[_key888] = _val889
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -37921,9 +37912,9 @@ class updateCustomModeSettings_args(object):
if self.paramMap is not None:
oprot.writeFieldBegin('paramMap', TType.MAP, 3)
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.paramMap))
- for kiter1263, viter1264 in self.paramMap.items():
- oprot.writeString(kiter1263.encode('utf-8') if sys.version_info[0] == 2 else kiter1263)
- oprot.writeString(viter1264.encode('utf-8') if sys.version_info[0] == 2 else viter1264)
+ for kiter890, viter891 in self.paramMap.items():
+ oprot.writeString(kiter890.encode('utf-8') if sys.version_info[0] == 2 else kiter890)
+ oprot.writeString(viter891.encode('utf-8') if sys.version_info[0] == 2 else viter891)
oprot.writeMapEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -37955,7 +37946,6 @@ class updateCustomModeSettings_result(object):
"""
Attributes:
- e
-
"""
@@ -38019,7 +38009,6 @@ class updateDeviceInfo_args(object):
Attributes:
- deviceUid
- deviceInfo
-
"""
@@ -38094,7 +38083,6 @@ class updateDeviceInfo_result(object):
"""
Attributes:
- e
-
"""
@@ -38158,7 +38146,6 @@ class updateGroup_args(object):
Attributes:
- reqSeq
- group
-
"""
@@ -38232,7 +38219,6 @@ class updateGroup_result(object):
"""
Attributes:
- e
-
"""
@@ -38296,7 +38282,6 @@ class updateNotificationToken_args(object):
Attributes:
- type
- token
-
"""
@@ -38370,7 +38355,6 @@ class updateNotificationToken_result(object):
"""
Attributes:
- e
-
"""
@@ -38434,7 +38418,6 @@ class updateNotificationTokenWithBytes_args(object):
Attributes:
- type
- token
-
"""
@@ -38508,7 +38491,6 @@ class updateNotificationTokenWithBytes_result(object):
"""
Attributes:
- e
-
"""
@@ -38572,7 +38554,6 @@ class updateProfile_args(object):
Attributes:
- reqSeq
- profile
-
"""
@@ -38646,7 +38627,6 @@ class updateProfile_result(object):
"""
Attributes:
- e
-
"""
@@ -38711,7 +38691,6 @@ class updateProfileAttribute_args(object):
- reqSeq
- attr
- value
-
"""
@@ -38795,7 +38774,6 @@ class updateProfileAttribute_result(object):
"""
Attributes:
- e
-
"""
@@ -38858,7 +38836,6 @@ class updateRegion_args(object):
"""
Attributes:
- region
-
"""
@@ -38921,7 +38898,6 @@ class updateRegion_result(object):
"""
Attributes:
- e
-
"""
@@ -38985,7 +38961,6 @@ class updateSettings_args(object):
Attributes:
- reqSeq
- settings
-
"""
@@ -39059,7 +39034,6 @@ class updateSettings_result(object):
"""
Attributes:
- e
-
"""
@@ -39123,7 +39097,6 @@ class updateSettings2_args(object):
Attributes:
- reqSeq
- settings
-
"""
@@ -39198,7 +39171,6 @@ class updateSettings2_result(object):
Attributes:
- success
- e
-
"""
@@ -39273,7 +39245,6 @@ class updateSettingsAttribute_args(object):
- reqSeq
- attr
- value
-
"""
@@ -39357,7 +39328,6 @@ class updateSettingsAttribute_result(object):
"""
Attributes:
- e
-
"""
@@ -39422,7 +39392,6 @@ class updateSettingsAttributes_args(object):
- reqSeq
- attrBitset
- settings
-
"""
@@ -39508,7 +39477,6 @@ class updateSettingsAttributes_result(object):
Attributes:
- success
- e
-
"""
@@ -39583,7 +39551,6 @@ class verifyIdentityCredential_args(object):
- identityProvider
- identifier
- password
-
"""
@@ -39672,7 +39639,6 @@ class verifyIdentityCredential_result(object):
"""
Attributes:
- e
-
"""
@@ -39735,7 +39701,6 @@ class verifyIdentityCredentialWithResult_args(object):
"""
Attributes:
- identityCredential
-
"""
@@ -39800,7 +39765,6 @@ class verifyIdentityCredentialWithResult_result(object):
Attributes:
- success
- e
-
"""
@@ -39876,7 +39840,6 @@ class verifyPhone_args(object):
- sessionId
- pinCode
- udidHash
-
"""
@@ -39962,7 +39925,6 @@ class verifyPhone_result(object):
Attributes:
- success
- e
-
"""
@@ -40036,7 +39998,6 @@ class verifyQrcode_args(object):
Attributes:
- verifier
- pinCode
-
"""
@@ -40111,7 +40072,6 @@ class verifyQrcode_result(object):
Attributes:
- success
- e
-
"""
diff --git a/libs/core/UniversalNotificationService-remote b/libs/core/UniversalNotificationService-remote
deleted file mode 100755
index b352d6f..0000000
--- a/libs/core/UniversalNotificationService-remote
+++ /dev/null
@@ -1,117 +0,0 @@
-#!/usr/bin/env python
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-import sys
-import pprint
-if sys.version_info[0] > 2:
- from urllib.parse import urlparse
-else:
- from urlparse import urlparse
-from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient
-from thrift.protocol.TBinaryProtocol import TBinaryProtocol
-
-from line import UniversalNotificationService
-from line.ttypes import *
-
-if len(sys.argv) <= 1 or sys.argv[1] == '--help':
- print('')
- print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]')
- print('')
- print('Functions:')
- print(' void notify(GlobalEvent event)')
- print('')
- sys.exit(0)
-
-pp = pprint.PrettyPrinter(indent=2)
-host = 'localhost'
-port = 9090
-uri = ''
-framed = False
-ssl = False
-validate = True
-ca_certs = None
-keyfile = None
-certfile = None
-http = False
-argi = 1
-
-if sys.argv[argi] == '-h':
- parts = sys.argv[argi + 1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- argi += 2
-
-if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi + 1])
- parts = url[1].split(':')
- host = parts[0]
- if len(parts) > 1:
- port = int(parts[1])
- else:
- port = 80
- uri = url[2]
- if url[4]:
- uri += '?%s' % url[4]
- http = True
- argi += 2
-
-if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
- framed = True
- argi += 1
-
-if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl':
- ssl = True
- argi += 1
-
-if sys.argv[argi] == '-novalidate':
- validate = False
- argi += 1
-
-if sys.argv[argi] == '-ca_certs':
- ca_certs = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-keyfile':
- keyfile = sys.argv[argi+1]
- argi += 2
-
-if sys.argv[argi] == '-certfile':
- certfile = sys.argv[argi+1]
- argi += 2
-
-cmd = sys.argv[argi]
-args = sys.argv[argi + 1:]
-
-if http:
- transport = THttpClient.THttpClient(host, port, uri)
-else:
- if ssl:
- socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile)
- else:
- socket = TSocket.TSocket(host, port)
- if framed:
- transport = TTransport.TFramedTransport(socket)
- else:
- transport = TTransport.TBufferedTransport(socket)
-protocol = TBinaryProtocol(transport)
-client = UniversalNotificationService.Client(protocol)
-transport.open()
-
-if cmd == 'notify':
- if len(args) != 1:
- print('notify requires 1 args')
- sys.exit(1)
- pp.pprint(client.notify(eval(args[0]),))
-
-else:
- print('Unrecognized method %s' % cmd)
- sys.exit(1)
-
-transport.close()
diff --git a/libs/core/UniversalNotificationService.py b/libs/core/UniversalNotificationService.py
deleted file mode 100644
index 8e6c577..0000000
--- a/libs/core/UniversalNotificationService.py
+++ /dev/null
@@ -1,254 +0,0 @@
-#
-# Autogenerated by Thrift Compiler (0.14.0)
-#
-# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-#
-# options string: py
-#
-
-from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
-from thrift.protocol.TProtocol import TProtocolException
-from thrift.TRecursive import fix_spec
-
-import sys
-import logging
-from .ttypes import *
-from thrift.Thrift import TProcessor
-from thrift.transport import TTransport
-all_structs = []
-
-
-class Iface(object):
- def notify(self, event):
- """
- Parameters:
- - event
-
- """
- pass
-
-
-class Client(Iface):
- def __init__(self, iprot, oprot=None):
- self._iprot = self._oprot = iprot
- if oprot is not None:
- self._oprot = oprot
- self._seqid = 0
-
- def notify(self, event):
- """
- Parameters:
- - event
-
- """
- self.send_notify(event)
- self.recv_notify()
-
- def send_notify(self, event):
- self._oprot.writeMessageBegin('notify', TMessageType.CALL, self._seqid)
- args = notify_args()
- args.event = event
- args.write(self._oprot)
- self._oprot.writeMessageEnd()
- self._oprot.trans.flush()
-
- def recv_notify(self):
- iprot = self._iprot
- (fname, mtype, rseqid) = iprot.readMessageBegin()
- if mtype == TMessageType.EXCEPTION:
- x = TApplicationException()
- x.read(iprot)
- iprot.readMessageEnd()
- raise x
- result = notify_result()
- result.read(iprot)
- iprot.readMessageEnd()
- if result.e is not None:
- raise result.e
- return
-
-
-class Processor(Iface, TProcessor):
- def __init__(self, handler):
- self._handler = handler
- self._processMap = {}
- self._processMap["notify"] = Processor.process_notify
- self._on_message_begin = None
-
- def on_message_begin(self, func):
- self._on_message_begin = func
-
- def process(self, iprot, oprot):
- (name, type, seqid) = iprot.readMessageBegin()
- if self._on_message_begin:
- self._on_message_begin(name, type, seqid)
- if name not in self._processMap:
- iprot.skip(TType.STRUCT)
- iprot.readMessageEnd()
- x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
- oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
- x.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
- return
- else:
- self._processMap[name](self, seqid, iprot, oprot)
- return True
-
- def process_notify(self, seqid, iprot, oprot):
- args = notify_args()
- args.read(iprot)
- iprot.readMessageEnd()
- result = notify_result()
- try:
- self._handler.notify(args.event)
- msg_type = TMessageType.REPLY
- except TTransport.TTransportException:
- raise
- except UniversalNotificationServiceException as e:
- msg_type = TMessageType.REPLY
- result.e = e
- except TApplicationException as ex:
- logging.exception('TApplication exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = ex
- except Exception:
- logging.exception('Unexpected exception in handler')
- msg_type = TMessageType.EXCEPTION
- result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
- oprot.writeMessageBegin("notify", msg_type, seqid)
- result.write(oprot)
- oprot.writeMessageEnd()
- oprot.trans.flush()
-
-# HELPER FUNCTIONS AND STRUCTURES
-
-
-class notify_args(object):
- """
- Attributes:
- - event
-
- """
-
-
- def __init__(self, event=None,):
- self.event = event
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 2:
- if ftype == TType.STRUCT:
- self.event = GlobalEvent()
- self.event.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('notify_args')
- if self.event is not None:
- oprot.writeFieldBegin('event', TType.STRUCT, 2)
- self.event.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(notify_args)
-notify_args.thrift_spec = (
- None, # 0
- None, # 1
- (2, TType.STRUCT, 'event', [GlobalEvent, None], None, ), # 2
-)
-
-
-class notify_result(object):
- """
- Attributes:
- - e
-
- """
-
-
- def __init__(self, e=None,):
- self.e = e
-
- def read(self, iprot):
- if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
- iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
- return
- iprot.readStructBegin()
- while True:
- (fname, ftype, fid) = iprot.readFieldBegin()
- if ftype == TType.STOP:
- break
- if fid == 1:
- if ftype == TType.STRUCT:
- self.e = UniversalNotificationServiceException()
- self.e.read(iprot)
- else:
- iprot.skip(ftype)
- else:
- iprot.skip(ftype)
- iprot.readFieldEnd()
- iprot.readStructEnd()
-
- def write(self, oprot):
- if oprot._fast_encode is not None and self.thrift_spec is not None:
- oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
- return
- oprot.writeStructBegin('notify_result')
- if self.e is not None:
- oprot.writeFieldBegin('e', TType.STRUCT, 1)
- self.e.write(oprot)
- oprot.writeFieldEnd()
- oprot.writeFieldStop()
- oprot.writeStructEnd()
-
- def validate(self):
- return
-
- def __repr__(self):
- L = ['%s=%r' % (key, value)
- for key, value in self.__dict__.items()]
- return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
- def __eq__(self, other):
- return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- return not (self == other)
-all_structs.append(notify_result)
-notify_result.thrift_spec = (
- None, # 0
- (1, TType.STRUCT, 'e', [UniversalNotificationServiceException, None], None, ), # 1
-)
-fix_spec(all_structs)
-del all_structs
-
diff --git a/libs/core/__init__.py b/libs/core/__init__.py
index 3643232..e3aaa55 100644
--- a/libs/core/__init__.py
+++ b/libs/core/__init__.py
@@ -1 +1 @@
-__all__ = ['ttypes', 'constants', 'AccountSupervisorService', 'AgeCheckService', 'BuddyManagementService', 'BuddyService', 'ChannelApplicationProvidedService', 'ChannelService', 'MessageService', 'ShopService', 'SnsAdaptorService', 'TalkService', 'UniversalNotificationService']
+__all__ = ['ttypes', 'constants', 'TalkService']
diff --git a/libs/core/constants.py b/libs/core/constants.py
index 42fe029..0c217ce 100644
--- a/libs/core/constants.py
+++ b/libs/core/constants.py
@@ -1,5 +1,5 @@
#
-# Autogenerated by Thrift Compiler (0.14.0)
+# Autogenerated by Thrift Compiler (0.11.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
diff --git a/libs/core/src/LICENSE.md b/libs/core/src/LICENSE.md
new file mode 100644
index 0000000..f661031
--- /dev/null
+++ b/libs/core/src/LICENSE.md
@@ -0,0 +1,355 @@
+Mozilla Public License Version 2.0
+==================================
+
+### 1. Definitions
+
+**1.1. “Contributor”**
+ means each individual or legal entity that creates, contributes to
+ the creation of, or owns Covered Software.
+
+**1.2. “Contributor Version”**
+ means the combination of the Contributions of others (if any) used
+ by a Contributor and that particular Contributor's Contribution.
+
+**1.3. “Contribution”**
+ means Covered Software of a particular Contributor.
+
+**1.4. “Covered Software”**
+ means Source Code Form to which the initial Contributor has attached
+ the notice in Exhibit A, the Executable Form of such Source Code
+ Form, and Modifications of such Source Code Form, in each case
+ including portions thereof.
+
+**1.5. “Incompatible With Secondary Licenses”**
+ means
+
+* **(a)** that the initial Contributor has attached the notice described
+ in Exhibit B to the Covered Software; or
+* **(b)** that the Covered Software was made available under the terms of
+ version 1.1 or earlier of the License, but not also under the
+ terms of a Secondary License.
+
+**1.6. “Executable Form”**
+ means any form of the work other than Source Code Form.
+
+**1.7. “Larger Work”**
+ means a work that combines Covered Software with other material, in
+ a separate file or files, that is not Covered Software.
+
+**1.8. “License”**
+ means this document.
+
+**1.9. “Licensable”**
+ means having the right to grant, to the maximum extent possible,
+ whether at the time of the initial grant or subsequently, any and
+ all of the rights conveyed by this License.
+
+**1.10. “Modifications”**
+ means any of the following:
+
+* **(a)** any file in Source Code Form that results from an addition to,
+ deletion from, or modification of the contents of Covered
+ Software; or
+* **(b)** any new file in Source Code Form that contains any Covered
+ Software.
+
+**1.11. “Patent Claims” of a Contributor**
+ means any patent claim(s), including without limitation, method,
+ process, and apparatus claims, in any patent Licensable by such
+ Contributor that would be infringed, but for the grant of the
+ License, by the making, using, selling, offering for sale, having
+ made, import, or transfer of either its Contributions or its
+ Contributor Version.
+
+**1.12. “Secondary License”**
+ means either the GNU General Public License, Version 2.0, the GNU
+ Lesser General Public License, Version 2.1, the GNU Affero General
+ Public License, Version 3.0, or any later versions of those
+ licenses.
+
+**1.13. “Source Code Form”**
+ means the form of the work preferred for making modifications.
+
+**1.14. “You” (or “Your”)**
+ means an individual or a legal entity exercising rights under this
+ License. For legal entities, “You” includes any entity that
+ controls, is controlled by, or is under common control with You. For
+ purposes of this definition, “control” means **(a)** the power, direct
+ or indirect, to cause the direction or management of such entity,
+ whether by contract or otherwise, or **(b)** ownership of more than
+ fifty percent (50%) of the outstanding shares or beneficial
+ ownership of such entity.
+
+
+### 2. License Grants and Conditions
+
+#### 2.1. Grants
+
+Each Contributor hereby grants You a world-wide, royalty-free,
+non-exclusive license:
+
+* **(a)** under intellectual property rights (other than patent or trademark)
+ Licensable by such Contributor to use, reproduce, make available,
+ modify, display, perform, distribute, and otherwise exploit its
+ Contributions, either on an unmodified basis, with Modifications, or
+ as part of a Larger Work; and
+* **(b)** under Patent Claims of such Contributor to make, use, sell, offer
+ for sale, have made, import, and otherwise transfer either its
+ Contributions or its Contributor Version.
+
+#### 2.2. Effective Date
+
+The licenses granted in Section 2.1 with respect to any Contribution
+become effective for each Contribution on the date the Contributor first
+distributes such Contribution.
+
+#### 2.3. Limitations on Grant Scope
+
+The licenses granted in this Section 2 are the only rights granted under
+this License. No additional rights or licenses will be implied from the
+distribution or licensing of Covered Software under this License.
+Notwithstanding Section 2.1(b) above, no patent license is granted by a
+Contributor:
+
+* **(a)** for any code that a Contributor has removed from Covered Software;
+ or
+* **(b)** for infringements caused by: **(i)** Your and any other third party's
+ modifications of Covered Software, or **(ii)** the combination of its
+ Contributions with other software (except as part of its Contributor
+ Version); or
+* **(c)** under Patent Claims infringed by Covered Software in the absence of
+ its Contributions.
+
+This License does not grant any rights in the trademarks, service marks,
+or logos of any Contributor (except as may be necessary to comply with
+the notice requirements in Section 3.4).
+
+#### 2.4. Subsequent Licenses
+
+No Contributor makes additional grants as a result of Your choice to
+distribute the Covered Software under a subsequent version of this
+License (see Section 10.2) or under the terms of a Secondary License (if
+permitted under the terms of Section 3.3).
+
+#### 2.5. Representation
+
+Each Contributor represents that the Contributor believes its
+Contributions are its original creation(s) or it has sufficient rights
+to grant the rights to its Contributions conveyed by this License.
+
+#### 2.6. Fair Use
+
+This License is not intended to limit any rights You have under
+applicable copyright doctrines of fair use, fair dealing, or other
+equivalents.
+
+#### 2.7. Conditions
+
+Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
+in Section 2.1.
+
+
+### 3. Responsibilities
+
+#### 3.1. Distribution of Source Form
+
+All distribution of Covered Software in Source Code Form, including any
+Modifications that You create or to which You contribute, must be under
+the terms of this License. You must inform recipients that the Source
+Code Form of the Covered Software is governed by the terms of this
+License, and how they can obtain a copy of this License. You may not
+attempt to alter or restrict the recipients' rights in the Source Code
+Form.
+
+#### 3.2. Distribution of Executable Form
+
+If You distribute Covered Software in Executable Form then:
+
+* **(a)** such Covered Software must also be made available in Source Code
+ Form, as described in Section 3.1, and You must inform recipients of
+ the Executable Form how they can obtain a copy of such Source Code
+ Form by reasonable means in a timely manner, at a charge no more
+ than the cost of distribution to the recipient; and
+
+* **(b)** You may distribute such Executable Form under the terms of this
+ License, or sublicense it under different terms, provided that the
+ license for the Executable Form does not attempt to limit or alter
+ the recipients' rights in the Source Code Form under this License.
+
+#### 3.3. Distribution of a Larger Work
+
+You may create and distribute a Larger Work under terms of Your choice,
+provided that You also comply with the requirements of this License for
+the Covered Software. If the Larger Work is a combination of Covered
+Software with a work governed by one or more Secondary Licenses, and the
+Covered Software is not Incompatible With Secondary Licenses, this
+License permits You to additionally distribute such Covered Software
+under the terms of such Secondary License(s), so that the recipient of
+the Larger Work may, at their option, further distribute the Covered
+Software under the terms of either this License or such Secondary
+License(s).
+
+#### 3.4. Notices
+
+You may not remove or alter the substance of any license notices
+(including copyright notices, patent notices, disclaimers of warranty,
+or limitations of liability) contained within the Source Code Form of
+the Covered Software, except that You may alter any license notices to
+the extent required to remedy known factual inaccuracies.
+
+#### 3.5. Application of Additional Terms
+
+You may choose to offer, and to charge a fee for, warranty, support,
+indemnity or liability obligations to one or more recipients of Covered
+Software. However, You may do so only on Your own behalf, and not on
+behalf of any Contributor. You must make it absolutely clear that any
+such warranty, support, indemnity, or liability obligation is offered by
+You alone, and You hereby agree to indemnify every Contributor for any
+liability incurred by such Contributor as a result of warranty, support,
+indemnity or liability terms You offer. You may include additional
+disclaimers of warranty and limitations of liability specific to any
+jurisdiction.
+
+
+### 4. Inability to Comply Due to Statute or Regulation
+
+If it is impossible for You to comply with any of the terms of this
+License with respect to some or all of the Covered Software due to
+statute, judicial order, or regulation then You must: **(a)** comply with
+the terms of this License to the maximum extent possible; and **(b)**
+describe the limitations and the code they affect. Such description must
+be placed in a text file included with all distributions of the Covered
+Software under this License. Except to the extent prohibited by statute
+or regulation, such description must be sufficiently detailed for a
+recipient of ordinary skill to be able to understand it.
+
+
+### 5. Termination
+
+**5.1.** The rights granted under this License will terminate automatically
+if You fail to comply with any of its terms. However, if You become
+compliant, then the rights granted under this License from a particular
+Contributor are reinstated **(a)** provisionally, unless and until such
+Contributor explicitly and finally terminates Your grants, and **(b)** on an
+ongoing basis, if such Contributor fails to notify You of the
+non-compliance by some reasonable means prior to 60 days after You have
+come back into compliance. Moreover, Your grants from a particular
+Contributor are reinstated on an ongoing basis if such Contributor
+notifies You of the non-compliance by some reasonable means, this is the
+first time You have received notice of non-compliance with this License
+from such Contributor, and You become compliant prior to 30 days after
+Your receipt of the notice.
+
+**5.2.** If You initiate litigation against any entity by asserting a patent
+infringement claim (excluding declaratory judgment actions,
+counter-claims, and cross-claims) alleging that a Contributor Version
+directly or indirectly infringes any patent, then the rights granted to
+You by any and all Contributors for the Covered Software under Section
+2.1 of this License shall terminate.
+
+**5.3.** In the event of termination under Sections 5.1 or 5.2 above, all
+end user license agreements (excluding distributors and resellers) which
+have been validly granted by You or Your distributors under this License
+prior to termination shall survive termination.
+
+
+### 6. Disclaimer of Warranty
+
+> Covered Software is provided under this License on an “as is”
+> basis, without warranty of any kind, either expressed, implied, or
+> statutory, including, without limitation, warranties that the
+> Covered Software is free of defects, merchantable, fit for a
+> particular purpose or non-infringing. The entire risk as to the
+> quality and performance of the Covered Software is with You.
+> Should any Covered Software prove defective in any respect, You
+> (not any Contributor) assume the cost of any necessary servicing,
+> repair, or correction. This disclaimer of warranty constitutes an
+> essential part of this License. No use of any Covered Software is
+> authorized under this License except under this disclaimer.
+
+### 7. Limitation of Liability
+
+> Under no circumstances and under no legal theory, whether tort
+> (including negligence), contract, or otherwise, shall any
+> Contributor, or anyone who distributes Covered Software as
+> permitted above, be liable to You for any direct, indirect,
+> special, incidental, or consequential damages of any character
+> including, without limitation, damages for lost profits, loss of
+> goodwill, work stoppage, computer failure or malfunction, or any
+> and all other commercial damages or losses, even if such party
+> shall have been informed of the possibility of such damages. This
+> limitation of liability shall not apply to liability for death or
+> personal injury resulting from such party's negligence to the
+> extent applicable law prohibits such limitation. Some
+> jurisdictions do not allow the exclusion or limitation of
+> incidental or consequential damages, so this exclusion and
+> limitation may not apply to You.
+
+
+### 8. Litigation
+
+Any litigation relating to this License may be brought only in the
+courts of a jurisdiction where the defendant maintains its principal
+place of business and such litigation shall be governed by laws of that
+jurisdiction, without reference to its conflict-of-law provisions.
+Nothing in this Section shall prevent a party's ability to bring
+cross-claims or counter-claims.
+
+
+### 9. Miscellaneous
+
+This License represents the complete agreement concerning the subject
+matter hereof. If any provision of this License is held to be
+unenforceable, such provision shall be reformed only to the extent
+necessary to make it enforceable. Any law or regulation which provides
+that the language of a contract shall be construed against the drafter
+shall not be used to construe this License against a Contributor.
+
+
+### 10. Versions of the License
+
+#### 10.1. New Versions
+
+Mozilla Foundation is the license steward. Except as provided in Section
+10.3, no one other than the license steward has the right to modify or
+publish new versions of this License. Each version will be given a
+distinguishing version number.
+
+#### 10.2. Effect of New Versions
+
+You may distribute the Covered Software under the terms of the version
+of the License under which You originally received the Covered Software,
+or under the terms of any subsequent version published by the license
+steward.
+
+#### 10.3. Modified Versions
+
+If you create software not governed by this License, and you want to
+create a new license for such software, you may create and use a
+modified version of this License if you rename the license and remove
+any references to the name of the license steward (except to note that
+such modified license differs from this License).
+
+#### 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
+
+If You choose to distribute Source Code Form that is Incompatible With
+Secondary Licenses under the terms of this version of the License, the
+notice described in Exhibit B of this License must be attached.
+
+## Exhibit A - Source Code Form License Notice
+
+ This Source Code Form is subject to the terms of the Mozilla Public
+ License, v. 2.0. If a copy of the MPL was not distributed with this
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+If it is not possible or desirable to put the notice in a particular
+file, then You may include the notice in a location (such as a LICENSE
+file in a relevant directory) where a recipient would be likely to look
+for such a notice.
+
+You may add additional accurate notices of copyright ownership.
+
+## Exhibit B - “Incompatible With Secondary Licenses” Notice
+
+ This Source Code Form is "Incompatible With Secondary Licenses", as
+ defined by the Mozilla Public License, v. 2.0.
\ No newline at end of file
diff --git a/libs/core/src/README.md b/libs/core/src/README.md
new file mode 100644
index 0000000..d381f84
--- /dev/null
+++ b/libs/core/src/README.md
@@ -0,0 +1,12 @@
+# Yuuki_Core
+
+The LINE Protocol for Star Yuuki BOT
+
+ This Source Code Form is subject to the terms of the Mozilla Public
+ License, v. 2.0. If a copy of the MPL was not distributed with this
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+ This Source Code Form is "Incompatible With Secondary Licenses", as
+ defined by the Mozilla Public License, v. 2.0.
+
+Copyright 2019 [Star Inc.](https://starinc.xyz) All Rights Reserved.
\ No newline at end of file
diff --git a/libs/core/ttypes.py b/libs/core/ttypes.py
index ee6492b..9e5b5c9 100644
--- a/libs/core/ttypes.py
+++ b/libs/core/ttypes.py
@@ -1,5 +1,5 @@
#
-# Autogenerated by Thrift Compiler (0.14.0)
+# Autogenerated by Thrift Compiler (0.11.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
@@ -839,17 +839,23 @@ class GroupAttribute(object):
NAME = 1
PICTURE_STATUS = 2
ALL = 255
+ PREVENTED_JOIN_BY_TICKET = 4
+ NOTIFICATION_SETTING = 8
_VALUES_TO_NAMES = {
1: "NAME",
2: "PICTURE_STATUS",
255: "ALL",
+ 4: "PREVENTED_JOIN_BY_TICKET",
+ 8: "NOTIFICATION_SETTING",
}
_NAMES_TO_VALUES = {
"NAME": 1,
"PICTURE_STATUS": 2,
"ALL": 255,
+ "PREVENTED_JOIN_BY_TICKET": 4,
+ "NOTIFICATION_SETTING": 8,
}
@@ -1785,7 +1791,6 @@ class AgeCheckDocomoResult(object):
Attributes:
- authUrl
- userAgeType
-
"""
@@ -1853,7 +1858,6 @@ class AgeCheckRequestResult(object):
Attributes:
- authUrl
- sessionId
-
"""
@@ -1926,7 +1930,6 @@ class Announcement(object):
- createdTime
- pictureUrl
- thumbnailUrl
-
"""
@@ -2043,7 +2046,6 @@ class ChannelProvider(object):
"""
Attributes:
- name
-
"""
@@ -2109,7 +2111,6 @@ class ChannelInfo(object):
- permissions
- iconThumbnailImage
- channelConfigurations
-
"""
@@ -2274,7 +2275,6 @@ class ApprovedChannelInfo(object):
Attributes:
- channelInfo
- approvedAt
-
"""
@@ -2343,7 +2343,6 @@ class ApprovedChannelInfos(object):
Attributes:
- approvedChannelInfos
- revision
-
"""
@@ -2420,7 +2419,6 @@ class AuthQrcode(object):
Attributes:
- qrcode
- verifier
-
"""
@@ -2489,7 +2487,6 @@ class BuddyBanner(object):
- buddyBannerLinkType
- buddyBannerLink
- buddyBannerImageUrl
-
"""
@@ -2572,7 +2569,6 @@ class BuddyDetail(object):
- addable
- acceptableContentTypes
- capableMyhome
-
"""
@@ -2715,7 +2711,6 @@ class Contact(object):
- attributes
- settings
- picturePath
-
"""
@@ -2955,7 +2950,6 @@ class BuddyList(object):
- displayName
- totalBuddyCount
- popularContacts
-
"""
@@ -3055,7 +3049,6 @@ class Location(object):
- latitude
- longitude
- phone
-
"""
@@ -3156,7 +3149,6 @@ class BuddyMessageRequest(object):
- location
- content
- contentMetadata
-
"""
@@ -3265,7 +3257,6 @@ class BuddyOnAirUrls(object):
Attributes:
- hls
- smoothStreaming
-
"""
@@ -3360,7 +3351,6 @@ class BuddyOnAir(object):
- targetCount
- onAirType
- onAirUrls
-
"""
@@ -3503,7 +3493,6 @@ class BuddyProfile(object):
- displayName
- statusMessage
- contactCount
-
"""
@@ -3615,7 +3604,6 @@ class BuddySearchResult(object):
- picturePath
- statusMessage
- businessAccount
-
"""
@@ -3723,7 +3711,6 @@ class ChannelDomain(object):
Attributes:
- host
- removed
-
"""
@@ -3791,7 +3778,6 @@ class ChannelDomains(object):
Attributes:
- channelDomains
- revision
-
"""
@@ -3869,7 +3855,6 @@ class ChannelException(TException):
- code
- reason
- parameterMap
-
"""
@@ -3960,7 +3945,6 @@ class ChannelInfos(object):
Attributes:
- channelInfos
- revision
-
"""
@@ -4040,7 +4024,6 @@ class ChannelNotificationSetting(object):
- notificationReceivable
- messageReceivable
- showDefault
-
"""
@@ -4140,7 +4123,6 @@ class ChannelSyncDatas(object):
- channelDomains
- revision
- expires
-
"""
@@ -4249,7 +4231,6 @@ class ChannelToken(object):
- expiration
- refreshToken
- channelAccessToken
-
"""
@@ -4349,7 +4330,6 @@ class Coin(object):
- payedCoinBalance
- totalCoinBalance
- rewardCoinBalance
-
"""
@@ -4439,7 +4419,6 @@ class CoinPayLoad(object):
- freeCoin
- type
- rewardCoin
-
"""
@@ -4537,7 +4516,6 @@ class CoinHistory(object):
- displayPrice
- payload
- channelId
-
"""
@@ -4709,7 +4687,6 @@ class CoinHistoryCondition(object):
- language
- eddt
- appStoreCode
-
"""
@@ -4808,7 +4785,6 @@ class CoinHistoryResult(object):
- historys
- balance
- hasNext
-
"""
@@ -4902,7 +4878,6 @@ class CoinProductItem(object):
- displayPrice
- name
- desc
-
"""
@@ -5035,7 +5010,6 @@ class CoinPurchaseConfirm(object):
- seller
- requestType
- ignoreReceipt
-
"""
@@ -5159,7 +5133,6 @@ class CoinPurchaseReservation(object):
- language
- pgCode
- redirectUrl
-
"""
@@ -5288,7 +5261,6 @@ class CoinUseReservationItem(object):
- itemId
- itemName
- amount
-
"""
@@ -5369,7 +5341,6 @@ class CoinUseReservation(object):
- appStoreCode
- items
- country
-
"""
@@ -5480,7 +5451,6 @@ class CompactContact(object):
- status
- settings
- displayNameOverridden
-
"""
@@ -5591,7 +5561,6 @@ class ContactModification(object):
- phones
- emails
- userids
-
"""
@@ -5715,7 +5684,6 @@ class ContactRegistration(object):
- luid
- contactType
- contactKey
-
"""
@@ -5805,7 +5773,6 @@ class ContactReport(object):
- mid
- exists
- contact
-
"""
@@ -5884,7 +5851,6 @@ class ContactReportResult(object):
Attributes:
- mid
- exists
-
"""
@@ -5957,7 +5923,6 @@ class DeviceInfo(object):
- carrierCode
- carrierName
- applicationType
-
"""
@@ -6077,7 +6042,6 @@ class EmailConfirmation(object):
- email
- password
- ignoreDuplication
-
"""
@@ -6166,7 +6130,6 @@ class EmailConfirmationSession(object):
- emailConfirmationType
- verifier
- targetEmail
-
"""
@@ -6245,7 +6208,6 @@ class FriendChannelMatrix(object):
- channelId
- representMid
- count
-
"""
@@ -6323,7 +6285,6 @@ class FriendChannelMatricesResponse(object):
Attributes:
- expires
- matrices
-
"""
@@ -6400,7 +6361,6 @@ class Geolocation(object):
Attributes:
- longitude
- latitude
-
"""
@@ -6469,7 +6429,6 @@ class NotificationTarget(object):
- applicationType
- applicationVersion
- region
-
"""
@@ -6550,7 +6509,6 @@ class GlobalEvent(object):
- createdTime
- data
- maxDelay
-
"""
@@ -6652,6 +6610,73 @@ class GlobalEvent(object):
return not (self == other)
+class GroupPreference(object):
+ """
+ Attributes:
+ - invitationTicket
+ - favoriteTimestamp
+ """
+
+
+ def __init__(self, invitationTicket=None, favoriteTimestamp=None,):
+ self.invitationTicket = invitationTicket
+ self.favoriteTimestamp = favoriteTimestamp
+
+ def read(self, iprot):
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
+ return
+ iprot.readStructBegin()
+ while True:
+ (fname, ftype, fid) = iprot.readFieldBegin()
+ if ftype == TType.STOP:
+ break
+ if fid == 1:
+ if ftype == TType.STRING:
+ self.invitationTicket = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
+ else:
+ iprot.skip(ftype)
+ elif fid == 2:
+ if ftype == TType.I64:
+ self.favoriteTimestamp = iprot.readI64()
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
+ return
+ oprot.writeStructBegin('GroupPreference')
+ if self.invitationTicket is not None:
+ oprot.writeFieldBegin('invitationTicket', TType.STRING, 1)
+ oprot.writeString(self.invitationTicket.encode('utf-8') if sys.version_info[0] == 2 else self.invitationTicket)
+ oprot.writeFieldEnd()
+ if self.favoriteTimestamp is not None:
+ oprot.writeFieldBegin('favoriteTimestamp', TType.I64, 2)
+ oprot.writeI64(self.favoriteTimestamp)
+ oprot.writeFieldEnd()
+ oprot.writeFieldStop()
+ oprot.writeStructEnd()
+
+ def validate(self):
+ return
+
+ def __repr__(self):
+ L = ['%s=%r' % (key, value)
+ for key, value in self.__dict__.items()]
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+ def __eq__(self, other):
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not (self == other)
+
+
class Group(object):
"""
Attributes:
@@ -6659,19 +6684,22 @@ class Group(object):
- createdTime
- name
- pictureStatus
+ - preventedJoinByTicket
+ - groupPreference
- members
- creator
- invitee
- notificationDisabled
-
"""
- def __init__(self, id=None, createdTime=None, name=None, pictureStatus=None, members=None, creator=None, invitee=None, notificationDisabled=None,):
+ def __init__(self, id=None, createdTime=None, name=None, pictureStatus=None, preventedJoinByTicket=None, groupPreference=None, members=None, creator=None, invitee=None, notificationDisabled=None,):
self.id = id
self.createdTime = createdTime
self.name = name
self.pictureStatus = pictureStatus
+ self.preventedJoinByTicket = preventedJoinByTicket
+ self.groupPreference = groupPreference
self.members = members
self.creator = creator
self.invitee = invitee
@@ -6706,6 +6734,17 @@ class Group(object):
self.pictureStatus = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
+ elif fid == 12:
+ if ftype == TType.BOOL:
+ self.preventedJoinByTicket = iprot.readBool()
+ else:
+ iprot.skip(ftype)
+ elif fid == 13:
+ if ftype == TType.STRUCT:
+ self.groupPreference = GroupPreference()
+ self.groupPreference.read(iprot)
+ else:
+ iprot.skip(ftype)
elif fid == 20:
if ftype == TType.LIST:
self.members = []
@@ -6765,6 +6804,14 @@ class Group(object):
oprot.writeFieldBegin('pictureStatus', TType.STRING, 11)
oprot.writeString(self.pictureStatus.encode('utf-8') if sys.version_info[0] == 2 else self.pictureStatus)
oprot.writeFieldEnd()
+ if self.preventedJoinByTicket is not None:
+ oprot.writeFieldBegin('preventedJoinByTicket', TType.BOOL, 12)
+ oprot.writeBool(self.preventedJoinByTicket)
+ oprot.writeFieldEnd()
+ if self.groupPreference is not None:
+ oprot.writeFieldBegin('groupPreference', TType.STRUCT, 13)
+ self.groupPreference.write(oprot)
+ oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 20)
oprot.writeListBegin(TType.STRUCT, len(self.members))
@@ -6811,7 +6858,6 @@ class IdentityCredential(object):
- provider
- identifier
- password
-
"""
@@ -6889,7 +6935,6 @@ class LastReadMessageId(object):
Attributes:
- mid
- lastReadMessageId
-
"""
@@ -6957,7 +7002,6 @@ class LastReadMessageIds(object):
Attributes:
- chatId
- lastReadMessageIds
-
"""
@@ -7037,7 +7081,6 @@ class LoginResult(object):
- verifier
- pinCode
- type
-
"""
@@ -7138,7 +7181,6 @@ class LoginSession(object):
- applicationType
- systemName
- accessLocation
-
"""
@@ -7246,7 +7288,6 @@ class Message(object):
- contentType
- contentPreview
- contentMetadata
-
"""
@@ -7432,7 +7473,6 @@ class MessageOperation(object):
- param2
- param3
- message
-
"""
@@ -7571,7 +7611,6 @@ class MessageOperations(object):
Attributes:
- operations
- endFlag
-
"""
@@ -7649,7 +7688,6 @@ class MetaProfile(object):
- createTime
- regionCode
- identities
-
"""
@@ -7743,7 +7781,6 @@ class NotificationItem(object):
- revision
- createdTime
- content
-
"""
@@ -7881,7 +7918,6 @@ class NotificationFetchResult(object):
Attributes:
- fetchMode
- itemList
-
"""
@@ -7966,7 +8002,6 @@ class Operation(object):
- param2
- param3
- message
-
"""
@@ -8123,7 +8158,6 @@ class PaymentReservation(object):
- messageText
- messageTemplate
- packageId
-
"""
@@ -8272,7 +8306,6 @@ class PaymentReservationResult(object):
- orderId
- confirmUrl
- extras
-
"""
@@ -8386,7 +8419,6 @@ class Product(object):
- publishSince
- newFlag
- missionFlag
-
"""
@@ -8718,7 +8750,6 @@ class ProductList(object):
- bannerTargetPath
- productList
- bannerLang
-
"""
@@ -8838,7 +8869,6 @@ class ProductSimple(object):
- version
- onSale
- validUntil
-
"""
@@ -8940,7 +8970,6 @@ class ProductSimpleList(object):
- productList
- recentNewReleaseDate
- recentEventReleaseDate
-
"""
@@ -9068,7 +9097,6 @@ class Profile(object):
- allowSearchByUserid
- allowSearchByEmail
- picturePath
-
"""
@@ -9246,7 +9274,6 @@ class ProximityMatchCandidateResult(object):
Attributes:
- users
- buddies
-
"""
@@ -9332,7 +9359,6 @@ class RegisterWithSnsIdResult(object):
Attributes:
- authToken
- userCreated
-
"""
@@ -9400,7 +9426,6 @@ class RequestTokenResponse(object):
Attributes:
- requestToken
- returnUrl
-
"""
@@ -9470,7 +9495,6 @@ class Room(object):
- createdTime
- contacts
- notificationDisabled
-
"""
@@ -9569,7 +9593,6 @@ class RSAKey(object):
- nvalue
- evalue
- sessionKey
-
"""
@@ -9667,7 +9690,6 @@ class SendBuddyMessageResult(object):
- unregisterCount
- timestamp
- message
-
"""
@@ -9843,7 +9865,6 @@ class SetBuddyOnAirResult(object):
- unregisterCount
- timestamp
- message
-
"""
@@ -10013,7 +10034,6 @@ class Settings(object):
- emailConfirmationStatus
- preferenceLocale
- customModes
-
"""
@@ -10322,7 +10342,6 @@ class SimpleChannelClient(object):
- applicationType
- applicationVersion
- locale
-
"""
@@ -10403,7 +10422,6 @@ class SimpleChannelContact(object):
- pictureStatus
- picturePath
- statusMessage
-
"""
@@ -10502,7 +10520,6 @@ class SnsFriend(object):
- snsUserId
- snsUserName
- snsIdType
-
"""
@@ -10581,7 +10598,6 @@ class SnsFriendContactRegistration(object):
- contact
- snsIdType
- snsUserId
-
"""
@@ -10660,7 +10676,6 @@ class SnsFriendModification(object):
Attributes:
- type
- snsFriend
-
"""
@@ -10729,7 +10744,6 @@ class SnsFriends(object):
Attributes:
- snsFriends
- hasMore
-
"""
@@ -10807,7 +10821,6 @@ class SnsIdUserStatus(object):
- userExisting
- phoneNumberRegistered
- sameDevice
-
"""
@@ -10887,7 +10900,6 @@ class SnsProfile(object):
- snsUserName
- email
- thumbnailUrl
-
"""
@@ -10978,7 +10990,6 @@ class SystemConfiguration(object):
- updateUrl
- c2dmAccount
- nniServer
-
"""
@@ -11077,7 +11088,6 @@ class TalkException(TException):
- code
- reason
- parameterMap
-
"""
@@ -11169,7 +11179,6 @@ class Ticket(object):
- id
- expirationTime
- maxUseCount
-
"""
@@ -11253,7 +11262,6 @@ class TMessageBox(object):
- status
- midType
- lastMessages
-
"""
@@ -11392,7 +11400,6 @@ class TMessageBoxWrapUp(object):
- name
- contacts
- pictureRevision
-
"""
@@ -11490,7 +11497,6 @@ class TMessageBoxWrapUpResponse(object):
Attributes:
- messageBoxWrapUpList
- totalSize
-
"""
@@ -11568,7 +11574,6 @@ class UniversalNotificationServiceException(TException):
- code
- reason
- parameterMap
-
"""
@@ -11667,7 +11672,6 @@ class UpdateBuddyProfileResult(object):
- unregisterCount
- timestamp
- message
-
"""
@@ -11815,7 +11819,6 @@ class UserAuthStatus(object):
Attributes:
- phoneNumberRegistered
- registeredSnsIdTypes
-
"""
@@ -11896,7 +11899,6 @@ class VerificationSessionData(object):
- countryCode
- nationalSignificantNumber
- availableVerificationMethods
-
"""
@@ -12024,7 +12026,6 @@ class WapInvitation(object):
- inviteeEmail
- inviterMid
- roomMid
-
"""
@@ -12608,6 +12609,12 @@ GlobalEvent.thrift_spec = (
(4, TType.I64, 'data', None, None, ), # 4
(5, TType.I32, 'maxDelay', None, None, ), # 5
)
+all_structs.append(GroupPreference)
+GroupPreference.thrift_spec = (
+ None, # 0
+ (1, TType.STRING, 'invitationTicket', 'UTF8', None, ), # 1
+ (2, TType.I64, 'favoriteTimestamp', None, None, ), # 2
+)
all_structs.append(Group)
Group.thrift_spec = (
None, # 0
@@ -12622,8 +12629,8 @@ Group.thrift_spec = (
None, # 9
(10, TType.STRING, 'name', 'UTF8', None, ), # 10
(11, TType.STRING, 'pictureStatus', 'UTF8', None, ), # 11
- None, # 12
- None, # 13
+ (12, TType.BOOL, 'preventedJoinByTicket', None, None, ), # 12
+ (13, TType.STRUCT, 'groupPreference', [GroupPreference, None], None, ), # 13
None, # 14
None, # 15
None, # 16
diff --git a/libs/webadmin/reader.py b/libs/webadmin/reader.py
new file mode 100644
index 0000000..546fdea
--- /dev/null
+++ b/libs/webadmin/reader.py
@@ -0,0 +1,34 @@
+from bs4 import BeautifulSoup
+
+class Yuuki_WebDataReader:
+ def __init__(self, Yuuki_Data):
+ self.handle = Yuuki_Data
+
+ def get_log(self, name):
+ if name not in self.handle.LogType:
+ return {"status": 404}
+ with open(
+ self.handle.LogPath
+ +
+ self.handle.LogName.format(name)
+ ) as file:
+ html_doc = file.read()
+ parser = BeautifulSoup(html_doc, 'html.parser')
+ events = parser.find_all('li')
+ return {name: [result.string for result in events]}
+
+ def get_all_logs(self):
+ logs = {}
+
+ for name in self.handle.LogType:
+ with open(
+ self.handle.LogPath
+ +
+ self.handle.LogName.format(name)
+ ) as file:
+ html_doc = file.read()
+ parser = BeautifulSoup(html_doc, 'html.parser')
+ events = parser.find_all('li')
+ logs[name] = [result.string for result in events]
+
+ return logs
diff --git a/libs/webadmin/server.py b/libs/webadmin/server.py
index f0fc56e..a178fd5 100644
--- a/libs/webadmin/server.py
+++ b/libs/webadmin/server.py
@@ -3,6 +3,8 @@ import json
import random
import time
+from .reader import Yuuki_WebDataReader
+
from flask import Flask, render_template, Response, request, redirect
from flask_bootstrap import Bootstrap
@@ -10,14 +12,16 @@ from gevent.pywsgi import WSGIServer
wa_app = Flask(__name__)
Yuuki_Handle = None
+Yuuki_DataHandle = None
passports = []
password = str(hash(random.random()))
class Yuuki_WebAdmin:
def __init__(self, Yuuki):
- global Yuuki_Handle
+ global Yuuki_Handle, Yuuki_DataHandle
Yuuki_Handle = Yuuki
+ Yuuki_DataHandle = Yuuki_WebDataReader(Yuuki_Handle.data)
self.app = wa_app
Bootstrap(self.app)
@@ -80,6 +84,19 @@ class Yuuki_WebAdmin:
)
return response
+ @staticmethod
+ @wa_app.route("/api/logs")
+ @wa_app.route("/api/logs/")
+ def logs(name=""):
+ result = {"status": 403}
+ if "yuuki_admin" in request.cookies:
+ if request.cookies.get("yuuki_admin") in passports:
+ if name:
+ result = Yuuki_DataHandle.get_log(name)
+ else:
+ result = Yuuki_DataHandle.get_all_logs()
+ return Response(json.dumps(result), mimetype='application/json')
+
@staticmethod
def set_password(code):
global password
diff --git a/requirements.txt b/requirements.txt
index b009a3d..a091375 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,4 @@
+beautifulsoup4==4.8.2
gevent==1.4.0
flask==1.1.1
bootstrap-flask==1.2.0