diff --git a/README.md b/README.md index b0e479a..123c30a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# KazumiLineBot +# かずみの單機半垢 A linebot built by my friend. diff --git a/akad/AccountSupervisorService.py b/akad/AccountSupervisorService.py new file mode 100644 index 0000000..4b22176 --- /dev/null +++ b/akad/AccountSupervisorService.py @@ -0,0 +1,1302 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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 = {} + (_ktype962, _vtype963, _size961) = iprot.readMapBegin() + for _i965 in range(_size961): + _key966 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val967 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.parameterMap[_key966] = _val967 + 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 kiter968, viter969 in self.parameterMap.items(): + oprot.writeString(kiter968.encode('utf-8') if sys.version_info[0] == 2 else kiter968) + oprot.writeString(viter969.encode('utf-8') if sys.version_info[0] == 2 else viter969) + 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/akad/AgeCheckService.py b/akad/AgeCheckService.py new file mode 100644 index 0000000..9b8b990 --- /dev/null +++ b/akad/AgeCheckService.py @@ -0,0 +1,911 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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/akad/AuthService.py b/akad/AuthService.py new file mode 100644 index 0000000..7051929 --- /dev/null +++ b/akad/AuthService.py @@ -0,0 +1,1800 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 normalizePhoneNumber(self, countryCode, phoneNumber, countryCodeHint): + """ + Parameters: + - countryCode + - phoneNumber + - countryCodeHint + """ + pass + + def respondE2EELoginRequest(self, verifier, publicKey, encryptedKeyChain, hashKeyChain, errorCode): + """ + Parameters: + - verifier + - publicKey + - encryptedKeyChain + - hashKeyChain + - errorCode + """ + pass + + def confirmE2EELogin(self, verifier, deviceSecret): + """ + Parameters: + - verifier + - deviceSecret + """ + pass + + def logoutZ(self): + pass + + def loginZ(self, loginRequest): + """ + Parameters: + - loginRequest + """ + pass + + def issueTokenForAccountMigrationSettings(self, enforce): + """ + Parameters: + - enforce + """ + pass + + def issueTokenForAccountMigration(self, migrationSessionId): + """ + Parameters: + - migrationSessionId + """ + pass + + def verifyQrcodeWithE2EE(self, verifier, pinCode, errorCode, publicKey, encryptedKeyChain, hashKeyChain): + """ + Parameters: + - verifier + - pinCode + - errorCode + - publicKey + - encryptedKeyChain + - hashKeyChain + """ + 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 normalizePhoneNumber(self, countryCode, phoneNumber, countryCodeHint): + """ + Parameters: + - countryCode + - phoneNumber + - countryCodeHint + """ + self.send_normalizePhoneNumber(countryCode, phoneNumber, countryCodeHint) + return self.recv_normalizePhoneNumber() + + def send_normalizePhoneNumber(self, countryCode, phoneNumber, countryCodeHint): + self._oprot.writeMessageBegin('normalizePhoneNumber', TMessageType.CALL, self._seqid) + args = normalizePhoneNumber_args() + args.countryCode = countryCode + args.phoneNumber = phoneNumber + args.countryCodeHint = countryCodeHint + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_normalizePhoneNumber(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = normalizePhoneNumber_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, "normalizePhoneNumber failed: unknown result") + + def respondE2EELoginRequest(self, verifier, publicKey, encryptedKeyChain, hashKeyChain, errorCode): + """ + Parameters: + - verifier + - publicKey + - encryptedKeyChain + - hashKeyChain + - errorCode + """ + self.send_respondE2EELoginRequest(verifier, publicKey, encryptedKeyChain, hashKeyChain, errorCode) + self.recv_respondE2EELoginRequest() + + def send_respondE2EELoginRequest(self, verifier, publicKey, encryptedKeyChain, hashKeyChain, errorCode): + self._oprot.writeMessageBegin('respondE2EELoginRequest', TMessageType.CALL, self._seqid) + args = respondE2EELoginRequest_args() + args.verifier = verifier + args.publicKey = publicKey + args.encryptedKeyChain = encryptedKeyChain + args.hashKeyChain = hashKeyChain + args.errorCode = errorCode + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_respondE2EELoginRequest(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = respondE2EELoginRequest_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def confirmE2EELogin(self, verifier, deviceSecret): + """ + Parameters: + - verifier + - deviceSecret + """ + self.send_confirmE2EELogin(verifier, deviceSecret) + return self.recv_confirmE2EELogin() + + def send_confirmE2EELogin(self, verifier, deviceSecret): + self._oprot.writeMessageBegin('confirmE2EELogin', TMessageType.CALL, self._seqid) + args = confirmE2EELogin_args() + args.verifier = verifier + args.deviceSecret = deviceSecret + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_confirmE2EELogin(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = confirmE2EELogin_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, "confirmE2EELogin failed: unknown result") + + def logoutZ(self): + self.send_logoutZ() + self.recv_logoutZ() + + def send_logoutZ(self): + self._oprot.writeMessageBegin('logoutZ', TMessageType.CALL, self._seqid) + args = logoutZ_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_logoutZ(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = logoutZ_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def loginZ(self, loginRequest): + """ + Parameters: + - loginRequest + """ + self.send_loginZ(loginRequest) + return self.recv_loginZ() + + def send_loginZ(self, loginRequest): + self._oprot.writeMessageBegin('loginZ', TMessageType.CALL, self._seqid) + args = loginZ_args() + args.loginRequest = loginRequest + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_loginZ(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = loginZ_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, "loginZ failed: unknown result") + + def issueTokenForAccountMigrationSettings(self, enforce): + """ + Parameters: + - enforce + """ + self.send_issueTokenForAccountMigrationSettings(enforce) + return self.recv_issueTokenForAccountMigrationSettings() + + def send_issueTokenForAccountMigrationSettings(self, enforce): + self._oprot.writeMessageBegin('issueTokenForAccountMigrationSettings', TMessageType.CALL, self._seqid) + args = issueTokenForAccountMigrationSettings_args() + args.enforce = enforce + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_issueTokenForAccountMigrationSettings(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = issueTokenForAccountMigrationSettings_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, "issueTokenForAccountMigrationSettings failed: unknown result") + + def issueTokenForAccountMigration(self, migrationSessionId): + """ + Parameters: + - migrationSessionId + """ + self.send_issueTokenForAccountMigration(migrationSessionId) + return self.recv_issueTokenForAccountMigration() + + def send_issueTokenForAccountMigration(self, migrationSessionId): + self._oprot.writeMessageBegin('issueTokenForAccountMigration', TMessageType.CALL, self._seqid) + args = issueTokenForAccountMigration_args() + args.migrationSessionId = migrationSessionId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_issueTokenForAccountMigration(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = issueTokenForAccountMigration_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, "issueTokenForAccountMigration failed: unknown result") + + def verifyQrcodeWithE2EE(self, verifier, pinCode, errorCode, publicKey, encryptedKeyChain, hashKeyChain): + """ + Parameters: + - verifier + - pinCode + - errorCode + - publicKey + - encryptedKeyChain + - hashKeyChain + """ + self.send_verifyQrcodeWithE2EE(verifier, pinCode, errorCode, publicKey, encryptedKeyChain, hashKeyChain) + return self.recv_verifyQrcodeWithE2EE() + + def send_verifyQrcodeWithE2EE(self, verifier, pinCode, errorCode, publicKey, encryptedKeyChain, hashKeyChain): + self._oprot.writeMessageBegin('verifyQrcodeWithE2EE', TMessageType.CALL, self._seqid) + args = verifyQrcodeWithE2EE_args() + args.verifier = verifier + args.pinCode = pinCode + args.errorCode = errorCode + args.publicKey = publicKey + args.encryptedKeyChain = encryptedKeyChain + args.hashKeyChain = hashKeyChain + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_verifyQrcodeWithE2EE(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = verifyQrcodeWithE2EE_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, "verifyQrcodeWithE2EE failed: unknown result") + + +class Processor(Iface, TProcessor): + def __init__(self, handler): + self._handler = handler + self._processMap = {} + self._processMap["normalizePhoneNumber"] = Processor.process_normalizePhoneNumber + self._processMap["respondE2EELoginRequest"] = Processor.process_respondE2EELoginRequest + self._processMap["confirmE2EELogin"] = Processor.process_confirmE2EELogin + self._processMap["logoutZ"] = Processor.process_logoutZ + self._processMap["loginZ"] = Processor.process_loginZ + self._processMap["issueTokenForAccountMigrationSettings"] = Processor.process_issueTokenForAccountMigrationSettings + self._processMap["issueTokenForAccountMigration"] = Processor.process_issueTokenForAccountMigration + self._processMap["verifyQrcodeWithE2EE"] = Processor.process_verifyQrcodeWithE2EE + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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_normalizePhoneNumber(self, seqid, iprot, oprot): + args = normalizePhoneNumber_args() + args.read(iprot) + iprot.readMessageEnd() + result = normalizePhoneNumber_result() + try: + result.success = self._handler.normalizePhoneNumber(args.countryCode, args.phoneNumber, args.countryCodeHint) + 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("normalizePhoneNumber", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_respondE2EELoginRequest(self, seqid, iprot, oprot): + args = respondE2EELoginRequest_args() + args.read(iprot) + iprot.readMessageEnd() + result = respondE2EELoginRequest_result() + try: + self._handler.respondE2EELoginRequest(args.verifier, args.publicKey, args.encryptedKeyChain, args.hashKeyChain, args.errorCode) + 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("respondE2EELoginRequest", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_confirmE2EELogin(self, seqid, iprot, oprot): + args = confirmE2EELogin_args() + args.read(iprot) + iprot.readMessageEnd() + result = confirmE2EELogin_result() + try: + result.success = self._handler.confirmE2EELogin(args.verifier, args.deviceSecret) + 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("confirmE2EELogin", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_logoutZ(self, seqid, iprot, oprot): + args = logoutZ_args() + args.read(iprot) + iprot.readMessageEnd() + result = logoutZ_result() + try: + self._handler.logoutZ() + 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("logoutZ", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_loginZ(self, seqid, iprot, oprot): + args = loginZ_args() + args.read(iprot) + iprot.readMessageEnd() + result = loginZ_result() + try: + result.success = self._handler.loginZ(args.loginRequest) + 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("loginZ", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_issueTokenForAccountMigrationSettings(self, seqid, iprot, oprot): + args = issueTokenForAccountMigrationSettings_args() + args.read(iprot) + iprot.readMessageEnd() + result = issueTokenForAccountMigrationSettings_result() + try: + result.success = self._handler.issueTokenForAccountMigrationSettings(args.enforce) + 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("issueTokenForAccountMigrationSettings", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_issueTokenForAccountMigration(self, seqid, iprot, oprot): + args = issueTokenForAccountMigration_args() + args.read(iprot) + iprot.readMessageEnd() + result = issueTokenForAccountMigration_result() + try: + result.success = self._handler.issueTokenForAccountMigration(args.migrationSessionId) + 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("issueTokenForAccountMigration", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_verifyQrcodeWithE2EE(self, seqid, iprot, oprot): + args = verifyQrcodeWithE2EE_args() + args.read(iprot) + iprot.readMessageEnd() + result = verifyQrcodeWithE2EE_result() + try: + result.success = self._handler.verifyQrcodeWithE2EE(args.verifier, args.pinCode, args.errorCode, args.publicKey, args.encryptedKeyChain, args.hashKeyChain) + 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("verifyQrcodeWithE2EE", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + +# HELPER FUNCTIONS AND STRUCTURES + + +class normalizePhoneNumber_args(object): + """ + Attributes: + - countryCode + - phoneNumber + - countryCodeHint + """ + + + def __init__(self, countryCode=None, phoneNumber=None, countryCodeHint=None,): + self.countryCode = countryCode + self.phoneNumber = phoneNumber + self.countryCodeHint = countryCodeHint + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.countryCode = 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.phoneNumber = 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.countryCodeHint = 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('normalizePhoneNumber_args') + if self.countryCode is not None: + oprot.writeFieldBegin('countryCode', TType.STRING, 2) + oprot.writeString(self.countryCode.encode('utf-8') if sys.version_info[0] == 2 else self.countryCode) + oprot.writeFieldEnd() + if self.phoneNumber is not None: + oprot.writeFieldBegin('phoneNumber', TType.STRING, 3) + oprot.writeString(self.phoneNumber.encode('utf-8') if sys.version_info[0] == 2 else self.phoneNumber) + oprot.writeFieldEnd() + if self.countryCodeHint is not None: + oprot.writeFieldBegin('countryCodeHint', TType.STRING, 4) + oprot.writeString(self.countryCodeHint.encode('utf-8') if sys.version_info[0] == 2 else self.countryCodeHint) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(normalizePhoneNumber_args) +normalizePhoneNumber_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'countryCode', 'UTF8', None, ), # 2 + (3, TType.STRING, 'phoneNumber', 'UTF8', None, ), # 3 + (4, TType.STRING, 'countryCodeHint', 'UTF8', None, ), # 4 +) + + +class normalizePhoneNumber_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('normalizePhoneNumber_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(normalizePhoneNumber_result) +normalizePhoneNumber_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class respondE2EELoginRequest_args(object): + """ + Attributes: + - verifier + - publicKey + - encryptedKeyChain + - hashKeyChain + - errorCode + """ + + + def __init__(self, verifier=None, publicKey=None, encryptedKeyChain=None, hashKeyChain=None, errorCode=None,): + self.verifier = verifier + self.publicKey = publicKey + self.encryptedKeyChain = encryptedKeyChain + self.hashKeyChain = hashKeyChain + self.errorCode = errorCode + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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) + elif fid == 2: + if ftype == TType.STRUCT: + self.publicKey = E2EEPublicKey() + self.publicKey.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.encryptedKeyChain = iprot.readBinary() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.hashKeyChain = iprot.readBinary() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.errorCode = 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('respondE2EELoginRequest_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() + if self.publicKey is not None: + oprot.writeFieldBegin('publicKey', TType.STRUCT, 2) + self.publicKey.write(oprot) + oprot.writeFieldEnd() + if self.encryptedKeyChain is not None: + oprot.writeFieldBegin('encryptedKeyChain', TType.STRING, 3) + oprot.writeBinary(self.encryptedKeyChain) + oprot.writeFieldEnd() + if self.hashKeyChain is not None: + oprot.writeFieldBegin('hashKeyChain', TType.STRING, 4) + oprot.writeBinary(self.hashKeyChain) + oprot.writeFieldEnd() + if self.errorCode is not None: + oprot.writeFieldBegin('errorCode', TType.I32, 5) + oprot.writeI32(self.errorCode) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(respondE2EELoginRequest_args) +respondE2EELoginRequest_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'verifier', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'publicKey', [E2EEPublicKey, None], None, ), # 2 + (3, TType.STRING, 'encryptedKeyChain', 'BINARY', None, ), # 3 + (4, TType.STRING, 'hashKeyChain', 'BINARY', None, ), # 4 + (5, TType.I32, 'errorCode', None, None, ), # 5 +) + + +class respondE2EELoginRequest_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('respondE2EELoginRequest_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(respondE2EELoginRequest_result) +respondE2EELoginRequest_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class confirmE2EELogin_args(object): + """ + Attributes: + - verifier + - deviceSecret + """ + + + def __init__(self, verifier=None, deviceSecret=None,): + self.verifier = verifier + self.deviceSecret = deviceSecret + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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) + elif fid == 2: + if ftype == TType.STRING: + self.deviceSecret = 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('confirmE2EELogin_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() + if self.deviceSecret is not None: + oprot.writeFieldBegin('deviceSecret', TType.STRING, 2) + oprot.writeBinary(self.deviceSecret) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(confirmE2EELogin_args) +confirmE2EELogin_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'verifier', 'UTF8', None, ), # 1 + (2, TType.STRING, 'deviceSecret', 'BINARY', None, ), # 2 +) + + +class confirmE2EELogin_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('confirmE2EELogin_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(confirmE2EELogin_result) +confirmE2EELogin_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class logoutZ_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('logoutZ_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(logoutZ_args) +logoutZ_args.thrift_spec = ( +) + + +class logoutZ_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('logoutZ_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(logoutZ_result) +logoutZ_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class loginZ_args(object): + """ + Attributes: + - loginRequest + """ + + + def __init__(self, loginRequest=None,): + self.loginRequest = loginRequest + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.loginRequest = LoginRequest() + self.loginRequest.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('loginZ_args') + if self.loginRequest is not None: + oprot.writeFieldBegin('loginRequest', TType.STRUCT, 2) + self.loginRequest.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(loginZ_args) +loginZ_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRUCT, 'loginRequest', [LoginRequest, None], None, ), # 2 +) + + +class loginZ_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 = LoginResult() + 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('loginZ_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(loginZ_result) +loginZ_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [LoginResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class issueTokenForAccountMigrationSettings_args(object): + """ + Attributes: + - enforce + """ + + + def __init__(self, enforce=None,): + self.enforce = enforce + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.BOOL: + self.enforce = 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('issueTokenForAccountMigrationSettings_args') + if self.enforce is not None: + oprot.writeFieldBegin('enforce', TType.BOOL, 2) + oprot.writeBool(self.enforce) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(issueTokenForAccountMigrationSettings_args) +issueTokenForAccountMigrationSettings_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.BOOL, 'enforce', None, None, ), # 2 +) + + +class issueTokenForAccountMigrationSettings_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 = SecurityCenterResult() + 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('issueTokenForAccountMigrationSettings_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(issueTokenForAccountMigrationSettings_result) +issueTokenForAccountMigrationSettings_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [SecurityCenterResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class issueTokenForAccountMigration_args(object): + """ + Attributes: + - migrationSessionId + """ + + + def __init__(self, migrationSessionId=None,): + self.migrationSessionId = migrationSessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.migrationSessionId = 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('issueTokenForAccountMigration_args') + if self.migrationSessionId is not None: + oprot.writeFieldBegin('migrationSessionId', TType.STRING, 2) + oprot.writeString(self.migrationSessionId.encode('utf-8') if sys.version_info[0] == 2 else self.migrationSessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(issueTokenForAccountMigration_args) +issueTokenForAccountMigration_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'migrationSessionId', 'UTF8', None, ), # 2 +) + + +class issueTokenForAccountMigration_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 = SecurityCenterResult() + 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('issueTokenForAccountMigration_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(issueTokenForAccountMigration_result) +issueTokenForAccountMigration_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [SecurityCenterResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class verifyQrcodeWithE2EE_args(object): + """ + Attributes: + - verifier + - pinCode + - errorCode + - publicKey + - encryptedKeyChain + - hashKeyChain + """ + + + def __init__(self, verifier=None, pinCode=None, errorCode=None, publicKey=None, encryptedKeyChain=None, hashKeyChain=None,): + self.verifier = verifier + self.pinCode = pinCode + self.errorCode = errorCode + self.publicKey = publicKey + self.encryptedKeyChain = encryptedKeyChain + self.hashKeyChain = hashKeyChain + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.verifier = 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.pinCode = 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.errorCode = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.publicKey = E2EEPublicKey() + self.publicKey.read(iprot) + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.encryptedKeyChain = iprot.readBinary() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.hashKeyChain = 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('verifyQrcodeWithE2EE_args') + if self.verifier is not None: + oprot.writeFieldBegin('verifier', TType.STRING, 2) + oprot.writeString(self.verifier.encode('utf-8') if sys.version_info[0] == 2 else self.verifier) + oprot.writeFieldEnd() + if self.pinCode is not None: + oprot.writeFieldBegin('pinCode', TType.STRING, 3) + oprot.writeString(self.pinCode.encode('utf-8') if sys.version_info[0] == 2 else self.pinCode) + oprot.writeFieldEnd() + if self.errorCode is not None: + oprot.writeFieldBegin('errorCode', TType.I32, 4) + oprot.writeI32(self.errorCode) + oprot.writeFieldEnd() + if self.publicKey is not None: + oprot.writeFieldBegin('publicKey', TType.STRUCT, 5) + self.publicKey.write(oprot) + oprot.writeFieldEnd() + if self.encryptedKeyChain is not None: + oprot.writeFieldBegin('encryptedKeyChain', TType.STRING, 6) + oprot.writeBinary(self.encryptedKeyChain) + oprot.writeFieldEnd() + if self.hashKeyChain is not None: + oprot.writeFieldBegin('hashKeyChain', TType.STRING, 7) + oprot.writeBinary(self.hashKeyChain) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(verifyQrcodeWithE2EE_args) +verifyQrcodeWithE2EE_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'verifier', 'UTF8', None, ), # 2 + (3, TType.STRING, 'pinCode', 'UTF8', None, ), # 3 + (4, TType.I32, 'errorCode', None, None, ), # 4 + (5, TType.STRUCT, 'publicKey', [E2EEPublicKey, None], None, ), # 5 + (6, TType.STRING, 'encryptedKeyChain', 'BINARY', None, ), # 6 + (7, TType.STRING, 'hashKeyChain', 'BINARY', None, ), # 7 +) + + +class verifyQrcodeWithE2EE_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('verifyQrcodeWithE2EE_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(verifyQrcodeWithE2EE_result) +verifyQrcodeWithE2EE_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/akad/BotService.py b/akad/BotService.py new file mode 100644 index 0000000..eb7cf99 --- /dev/null +++ b/akad/BotService.py @@ -0,0 +1,866 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 notifyLeaveGroup(self, groupMid): + """ + Parameters: + - groupMid + """ + pass + + def notifyLeaveRoom(self, roomMid): + """ + Parameters: + - roomMid + """ + pass + + def getBotUseInfo(self, botMid): + """ + Parameters: + - botMid + """ + pass + + def sendChatCheckedByWatermark(self, seq, mid, watermark, sessionId): + """ + Parameters: + - seq + - mid + - watermark + - sessionId + """ + 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 notifyLeaveGroup(self, groupMid): + """ + Parameters: + - groupMid + """ + self.send_notifyLeaveGroup(groupMid) + self.recv_notifyLeaveGroup() + + def send_notifyLeaveGroup(self, groupMid): + self._oprot.writeMessageBegin('notifyLeaveGroup', TMessageType.CALL, self._seqid) + args = notifyLeaveGroup_args() + args.groupMid = groupMid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_notifyLeaveGroup(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = notifyLeaveGroup_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def notifyLeaveRoom(self, roomMid): + """ + Parameters: + - roomMid + """ + self.send_notifyLeaveRoom(roomMid) + self.recv_notifyLeaveRoom() + + def send_notifyLeaveRoom(self, roomMid): + self._oprot.writeMessageBegin('notifyLeaveRoom', TMessageType.CALL, self._seqid) + args = notifyLeaveRoom_args() + args.roomMid = roomMid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_notifyLeaveRoom(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = notifyLeaveRoom_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def getBotUseInfo(self, botMid): + """ + Parameters: + - botMid + """ + self.send_getBotUseInfo(botMid) + return self.recv_getBotUseInfo() + + def send_getBotUseInfo(self, botMid): + self._oprot.writeMessageBegin('getBotUseInfo', TMessageType.CALL, self._seqid) + args = getBotUseInfo_args() + args.botMid = botMid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getBotUseInfo(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getBotUseInfo_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, "getBotUseInfo failed: unknown result") + + def sendChatCheckedByWatermark(self, seq, mid, watermark, sessionId): + """ + Parameters: + - seq + - mid + - watermark + - sessionId + """ + self.send_sendChatCheckedByWatermark(seq, mid, watermark, sessionId) + self.recv_sendChatCheckedByWatermark() + + def send_sendChatCheckedByWatermark(self, seq, mid, watermark, sessionId): + self._oprot.writeMessageBegin('sendChatCheckedByWatermark', TMessageType.CALL, self._seqid) + args = sendChatCheckedByWatermark_args() + args.seq = seq + args.mid = mid + args.watermark = watermark + args.sessionId = sessionId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendChatCheckedByWatermark(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendChatCheckedByWatermark_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["notifyLeaveGroup"] = Processor.process_notifyLeaveGroup + self._processMap["notifyLeaveRoom"] = Processor.process_notifyLeaveRoom + self._processMap["getBotUseInfo"] = Processor.process_getBotUseInfo + self._processMap["sendChatCheckedByWatermark"] = Processor.process_sendChatCheckedByWatermark + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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_notifyLeaveGroup(self, seqid, iprot, oprot): + args = notifyLeaveGroup_args() + args.read(iprot) + iprot.readMessageEnd() + result = notifyLeaveGroup_result() + try: + self._handler.notifyLeaveGroup(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("notifyLeaveGroup", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_notifyLeaveRoom(self, seqid, iprot, oprot): + args = notifyLeaveRoom_args() + args.read(iprot) + iprot.readMessageEnd() + result = notifyLeaveRoom_result() + try: + self._handler.notifyLeaveRoom(args.roomMid) + 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("notifyLeaveRoom", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getBotUseInfo(self, seqid, iprot, oprot): + args = getBotUseInfo_args() + args.read(iprot) + iprot.readMessageEnd() + result = getBotUseInfo_result() + try: + result.success = self._handler.getBotUseInfo(args.botMid) + 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("getBotUseInfo", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_sendChatCheckedByWatermark(self, seqid, iprot, oprot): + args = sendChatCheckedByWatermark_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendChatCheckedByWatermark_result() + try: + self._handler.sendChatCheckedByWatermark(args.seq, args.mid, args.watermark, args.sessionId) + 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("sendChatCheckedByWatermark", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + +# HELPER FUNCTIONS AND STRUCTURES + + +class notifyLeaveGroup_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('notifyLeaveGroup_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(notifyLeaveGroup_args) +notifyLeaveGroup_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'groupMid', 'UTF8', None, ), # 1 +) + + +class notifyLeaveGroup_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('notifyLeaveGroup_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(notifyLeaveGroup_result) +notifyLeaveGroup_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class notifyLeaveRoom_args(object): + """ + Attributes: + - roomMid + """ + + + def __init__(self, roomMid=None,): + self.roomMid = roomMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.roomMid = 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('notifyLeaveRoom_args') + if self.roomMid is not None: + oprot.writeFieldBegin('roomMid', TType.STRING, 1) + oprot.writeString(self.roomMid.encode('utf-8') if sys.version_info[0] == 2 else self.roomMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(notifyLeaveRoom_args) +notifyLeaveRoom_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'roomMid', 'UTF8', None, ), # 1 +) + + +class notifyLeaveRoom_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('notifyLeaveRoom_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(notifyLeaveRoom_result) +notifyLeaveRoom_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getBotUseInfo_args(object): + """ + Attributes: + - botMid + """ + + + def __init__(self, botMid=None,): + self.botMid = botMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.botMid = 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('getBotUseInfo_args') + if self.botMid is not None: + oprot.writeFieldBegin('botMid', TType.STRING, 2) + oprot.writeString(self.botMid.encode('utf-8') if sys.version_info[0] == 2 else self.botMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getBotUseInfo_args) +getBotUseInfo_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'botMid', 'UTF8', None, ), # 2 +) + + +class getBotUseInfo_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 = BotUseInfo() + 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('getBotUseInfo_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(getBotUseInfo_result) +getBotUseInfo_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [BotUseInfo, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class sendChatCheckedByWatermark_args(object): + """ + Attributes: + - seq + - mid + - watermark + - sessionId + """ + + + def __init__(self, seq=None, mid=None, watermark=None, sessionId=None,): + self.seq = seq + self.mid = mid + self.watermark = watermark + self.sessionId = sessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.seq = iprot.readI32() + 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) + elif fid == 3: + if ftype == TType.I64: + self.watermark = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BYTE: + self.sessionId = iprot.readByte() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('sendChatCheckedByWatermark_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + 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() + if self.watermark is not None: + oprot.writeFieldBegin('watermark', TType.I64, 3) + oprot.writeI64(self.watermark) + oprot.writeFieldEnd() + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.BYTE, 4) + oprot.writeByte(self.sessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(sendChatCheckedByWatermark_args) +sendChatCheckedByWatermark_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 + (3, TType.I64, 'watermark', None, None, ), # 3 + (4, TType.BYTE, 'sessionId', None, None, ), # 4 +) + + +class sendChatCheckedByWatermark_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('sendChatCheckedByWatermark_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(sendChatCheckedByWatermark_result) +sendChatCheckedByWatermark_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) +fix_spec(all_structs) +del all_structs + diff --git a/akad/BuddyManagementService.py b/akad/BuddyManagementService.py new file mode 100644 index 0000000..81bf0d6 --- /dev/null +++ b/akad/BuddyManagementService.py @@ -0,0 +1,12057 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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 = [] + (_etype973, _size970) = iprot.readListBegin() + for _i974 in range(_size970): + _elem975 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.userMids.append(_elem975) + 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 iter976 in self.userMids: + oprot.writeString(iter976.encode('utf-8') if sys.version_info[0] == 2 else iter976) + 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 = [] + (_etype980, _size977) = iprot.readListBegin() + for _i981 in range(_size977): + _elem982 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.requestIdList.append(_elem982) + 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 iter983 in self.requestIdList: + oprot.writeString(iter983.encode('utf-8') if sys.version_info[0] == 2 else iter983) + 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 = [] + (_etype987, _size984) = iprot.readListBegin() + for _i988 in range(_size984): + _elem989 = SendBuddyMessageResult() + _elem989.read(iprot) + self.success.append(_elem989) + 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 iter990 in self.success: + iter990.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 = [] + (_etype994, _size991) = iprot.readListBegin() + for _i995 in range(_size991): + _elem996 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.requestIdList.append(_elem996) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.mids = [] + (_etype1000, _size997) = iprot.readListBegin() + for _i1001 in range(_size997): + _elem1002 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.mids.append(_elem1002) + 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 iter1003 in self.requestIdList: + oprot.writeString(iter1003.encode('utf-8') if sys.version_info[0] == 2 else iter1003) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.mids is not None: + oprot.writeFieldBegin('mids', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.mids)) + for iter1004 in self.mids: + oprot.writeString(iter1004.encode('utf-8') if sys.version_info[0] == 2 else iter1004) + 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 = [] + (_etype1008, _size1005) = iprot.readListBegin() + for _i1009 in range(_size1005): + _elem1010 = SendBuddyMessageResult() + _elem1010.read(iprot) + self.success.append(_elem1010) + 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 iter1011 in self.success: + iter1011.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 = [] + (_etype1015, _size1012) = iprot.readListBegin() + for _i1016 in range(_size1012): + _elem1017 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1017) + 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 iter1018 in self.success: + oprot.writeString(iter1018.encode('utf-8') if sys.version_info[0] == 2 else iter1018) + 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 = [] + (_etype1022, _size1019) = iprot.readListBegin() + for _i1023 in range(_size1019): + _elem1024 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1024) + 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 iter1025 in self.success: + oprot.writeString(iter1025.encode('utf-8') if sys.version_info[0] == 2 else iter1025) + 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 = [] + (_etype1029, _size1026) = iprot.readListBegin() + for _i1030 in range(_size1026): + _elem1031 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1031) + 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 iter1032 in self.success: + oprot.writeString(iter1032.encode('utf-8') if sys.version_info[0] == 2 else iter1032) + 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 = [] + (_etype1036, _size1033) = iprot.readListBegin() + for _i1037 in range(_size1033): + _elem1038 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.mids.append(_elem1038) + 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 iter1039 in self.mids: + oprot.writeString(iter1039.encode('utf-8') if sys.version_info[0] == 2 else iter1039) + 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 = {} + (_ktype1041, _vtype1042, _size1040) = iprot.readMapBegin() + for _i1044 in range(_size1040): + _key1045 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1046 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.settings[_key1045] = _val1046 + 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 kiter1047, viter1048 in self.settings.items(): + oprot.writeString(kiter1047.encode('utf-8') if sys.version_info[0] == 2 else kiter1047) + oprot.writeString(viter1048.encode('utf-8') if sys.version_info[0] == 2 else viter1048) + 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 = [] + (_etype1052, _size1049) = iprot.readListBegin() + for _i1053 in range(_size1049): + _elem1054 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.userMids.append(_elem1054) + 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 iter1055 in self.userMids: + oprot.writeString(iter1055.encode('utf-8') if sys.version_info[0] == 2 else iter1055) + 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 = [] + (_etype1059, _size1056) = iprot.readListBegin() + for _i1060 in range(_size1056): + _elem1061 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.mids.append(_elem1061) + 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 iter1062 in self.mids: + oprot.writeString(iter1062.encode('utf-8') if sys.version_info[0] == 2 else iter1062) + 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 = [] + (_etype1066, _size1063) = iprot.readListBegin() + for _i1067 in range(_size1063): + _elem1068 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.mids.append(_elem1068) + 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 iter1069 in self.mids: + oprot.writeString(iter1069.encode('utf-8') if sys.version_info[0] == 2 else iter1069) + 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 = [] + (_etype1073, _size1070) = iprot.readListBegin() + for _i1074 in range(_size1070): + _elem1075 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.mids.append(_elem1075) + 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 iter1076 in self.mids: + oprot.writeString(iter1076.encode('utf-8') if sys.version_info[0] == 2 else iter1076) + 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 = [] + (_etype1080, _size1077) = iprot.readListBegin() + for _i1081 in range(_size1077): + _elem1082 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.mids.append(_elem1082) + 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 iter1083 in self.mids: + oprot.writeString(iter1083.encode('utf-8') if sys.version_info[0] == 2 else iter1083) + 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 = {} + (_ktype1085, _vtype1086, _size1084) = iprot.readMapBegin() + for _i1088 in range(_size1084): + _key1089 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1090 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.attributes[_key1089] = _val1090 + 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 kiter1091, viter1092 in self.attributes.items(): + oprot.writeString(kiter1091.encode('utf-8') if sys.version_info[0] == 2 else kiter1091) + oprot.writeString(viter1092.encode('utf-8') if sys.version_info[0] == 2 else viter1092) + 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 = {} + (_ktype1094, _vtype1095, _size1093) = iprot.readMapBegin() + for _i1097 in range(_size1093): + _key1098 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1099 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.attributes[_key1098] = _val1099 + 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 kiter1100, viter1101 in self.attributes.items(): + oprot.writeString(kiter1100.encode('utf-8') if sys.version_info[0] == 2 else kiter1100) + oprot.writeString(viter1101.encode('utf-8') if sys.version_info[0] == 2 else viter1101) + 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 = {} + (_ktype1103, _vtype1104, _size1102) = iprot.readMapBegin() + for _i1106 in range(_size1102): + _key1107 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1108 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.attributes[_key1107] = _val1108 + 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 kiter1109, viter1110 in self.attributes.items(): + oprot.writeString(kiter1109.encode('utf-8') if sys.version_info[0] == 2 else kiter1109) + oprot.writeString(viter1110.encode('utf-8') if sys.version_info[0] == 2 else viter1110) + 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 = {} + (_ktype1112, _vtype1113, _size1111) = iprot.readMapBegin() + for _i1115 in range(_size1111): + _key1116 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1117 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.settings[_key1116] = _val1117 + 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 kiter1118, viter1119 in self.settings.items(): + oprot.writeString(kiter1118.encode('utf-8') if sys.version_info[0] == 2 else kiter1118) + oprot.writeString(viter1119.encode('utf-8') if sys.version_info[0] == 2 else viter1119) + 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/akad/BuddyService.py b/akad/BuddyService.py new file mode 100644 index 0000000..2f54951 --- /dev/null +++ b/akad/BuddyService.py @@ -0,0 +1,2116 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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 = [] + (_etype1123, _size1120) = iprot.readListBegin() + for _i1124 in range(_size1120): + _elem1125 = BuddySearchResult() + _elem1125.read(iprot) + self.success.append(_elem1125) + 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 iter1126 in self.success: + iter1126.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 = [] + (_etype1130, _size1127) = iprot.readListBegin() + for _i1131 in range(_size1127): + _elem1132 = Contact() + _elem1132.read(iprot) + self.success.append(_elem1132) + 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 iter1133 in self.success: + iter1133.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 = [] + (_etype1137, _size1134) = iprot.readListBegin() + for _i1138 in range(_size1134): + _elem1139 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1139) + 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 iter1140 in self.success: + oprot.writeString(iter1140.encode('utf-8') if sys.version_info[0] == 2 else iter1140) + 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 = {} + (_ktype1142, _vtype1143, _size1141) = iprot.readMapBegin() + for _i1145 in range(_size1141): + _key1146 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1147 = iprot.readI64() + self.success[_key1146] = _val1147 + 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 kiter1148, viter1149 in self.success.items(): + oprot.writeString(kiter1148.encode('utf-8') if sys.version_info[0] == 2 else kiter1148) + oprot.writeI64(viter1149) + 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 = [] + (_etype1153, _size1150) = iprot.readListBegin() + for _i1154 in range(_size1150): + _elem1155 = BuddyList() + _elem1155.read(iprot) + self.success.append(_elem1155) + 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 iter1156 in self.success: + iter1156.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 = [] + (_etype1160, _size1157) = iprot.readListBegin() + for _i1161 in range(_size1157): + _elem1162 = Contact() + _elem1162.read(iprot) + self.success.append(_elem1162) + 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 iter1163 in self.success: + iter1163.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/akad/CallService.py b/akad/CallService.py new file mode 100644 index 0000000..f5d46df --- /dev/null +++ b/akad/CallService.py @@ -0,0 +1,14811 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 getUserStatus(self, mid): + """ + Parameters: + - mid + """ + pass + + def updateProfileAttributeForChannel(self, profileAttribute, value): + """ + Parameters: + - profileAttribute + - value + """ + pass + + def updateExtendedProfileAttribute(self, attr, extendedProfile): + """ + Parameters: + - attr + - extendedProfile + """ + pass + + def getAllSimpleChannelContacts(self, statusSticonFallbackDisabled): + """ + Parameters: + - statusSticonFallbackDisabled + """ + pass + + def getUserIdentities(self): + pass + + def markPaidCallAd(self, dialedNumber, language, disableCallerId): + """ + Parameters: + - dialedNumber + - language + - disableCallerId + """ + pass + + def isGroupMember(self, groupId): + """ + Parameters: + - groupId + """ + pass + + def getPhoneInfoFromPhoneNumber(self, region, phoneNumber): + """ + Parameters: + - region + - phoneNumber + """ + pass + + def redeemPaidCallVoucher(self, serial, language): + """ + Parameters: + - serial + - language + """ + pass + + def getPreferredDisplayName(self, mids): + """ + Parameters: + - mids + """ + pass + + def getContactsForChannel(self, ids): + """ + Parameters: + - ids + """ + pass + + def getCallCreditProducts(self, appStoreCode, pgCode, country, language): + """ + Parameters: + - appStoreCode + - pgCode + - country + - language + """ + pass + + def getCompactContacts(self, lastModifiedTimestamp): + """ + Parameters: + - lastModifiedTimestamp + """ + pass + + def notifyNotiCenterEvent(self, event): + """ + Parameters: + - event + """ + pass + + def isInContact(self, mid): + """ + Parameters: + - mid + """ + pass + + def lookupGroupMembers(self, groupId, mids): + """ + Parameters: + - groupId + - mids + """ + pass + + def getRoomInformation(self, roomMid): + """ + Parameters: + - roomMid + """ + pass + + def getGroupCall(self, chatMid): + """ + Parameters: + - chatMid + """ + pass + + def isAllowSecondaryDeviceLogin(self): + pass + + def getPrimaryClientForChannel(self): + pass + + def createRoomWithBuddy(self, reqSeq, buddyMid, contactIds): + """ + Parameters: + - reqSeq + - buddyMid + - contactIds + """ + pass + + def getDisplayName(self, mid): + """ + Parameters: + - mid + """ + pass + + def getPaidCallMetadata(self, language): + """ + Parameters: + - language + """ + pass + + def getMid(self): + pass + + def getUserCountryForBilling(self, country, remoteIp): + """ + Parameters: + - country + - remoteIp + """ + pass + + def getFavoriteGroupIdsForChannel(self): + pass + + def getPaidCallHistory(self, start, size, language): + """ + Parameters: + - start + - size + - language + """ + pass + + def sendPinCodeOperation(self, verifier): + """ + Parameters: + - verifier + """ + pass + + def inviteIntoGroupCall(self, chatMid, memberMids, mediaType): + """ + Parameters: + - chatMid + - memberMids + - mediaType + """ + pass + + def getFriendMids(self): + pass + + def getMetaProfile(self): + pass + + def sendMessageForChannel(self, message): + """ + Parameters: + - message + """ + pass + + def activeBuddySubscriberCount(self): + pass + + def getCallCreditPurchaseHistory(self, request): + """ + Parameters: + - request + """ + pass + + def isRoomMember(self, roomId): + """ + Parameters: + - roomId + """ + pass + + def sendSystemOAMessage(self, message): + """ + Parameters: + - message + """ + pass + + def acquirePaidCallRoute(self, paidCallType, dialedNumber, language, networkCode, disableCallerId, referer, adSessionId): + """ + Parameters: + - paidCallType + - dialedNumber + - language + - networkCode + - disableCallerId + - referer + - adSessionId + """ + pass + + def getGroupsForChannel(self, groupIds): + """ + Parameters: + - groupIds + """ + pass + + def getUserCreateTime(self): + pass + + def registerChannelCP(self, cpId, registerPassword): + """ + Parameters: + - cpId + - registerPassword + """ + pass + + def reserveCallCreditPurchase(self, request): + """ + Parameters: + - request + """ + pass + + def acquirePaidCallCurrencyExchangeRate(self, language): + """ + Parameters: + - language + """ + pass + + def getRoomMemberMidsForAppPlatform(self, roomId): + """ + Parameters: + - roomId + """ + pass + + def getPaidCallBalanceList(self, language): + """ + Parameters: + - language + """ + pass + + def getPersonalInfos(self, requiredPersonalInfos): + """ + Parameters: + - requiredPersonalInfos + """ + pass + + def getPrimaryClientsForChannel(self, userMids): + """ + Parameters: + - userMids + """ + pass + + def addBuddyToContact(self, buddyMid): + """ + Parameters: + - buddyMid + """ + pass + + def getGroupMemberMidsForAppPlatform(self, groupId): + """ + Parameters: + - groupId + """ + pass + + def getUserLanguage(self): + pass + + def lookupPaidCall(self, dialedNumber, language, referer): + """ + Parameters: + - dialedNumber + - language + - referer + """ + pass + + def getExtendedProfile(self): + pass + + def getReverseCompactContacts(self, ids): + """ + Parameters: + - ids + """ + pass + + def getPaidCallAdStatus(self): + pass + + def findContactByUseridWithoutAbuseBlockForChannel(self, userid): + """ + Parameters: + - userid + """ + pass + + def getGroupMemberMids(self, groupId): + """ + Parameters: + - groupId + """ + pass + + def sendMessageWithoutRelationship(self, message): + """ + Parameters: + - message + """ + pass + + def displayBuddySubscriberCountInBulk(self, mids): + """ + Parameters: + - mids + """ + pass + + def lookupRoomMembers(self, roomId, mids): + """ + Parameters: + - roomId + - mids + """ + pass + + def getFavoriteMidsForChannel(self): + pass + + def getAllContactIdsForChannel(self): + pass + + def displayBuddySubscriberCount(self): + pass + + def getProfileForChannel(self): + pass + + def getUserTickets(self, userMids): + """ + Parameters: + - userMids + """ + pass + + def getOAFriendMids(self): + pass + + def searchPaidCallUserRate(self, countryCode, language): + """ + Parameters: + - countryCode + - language + """ + pass + + def getJoinedGroupIdsForChannel(self): + pass + + def acquireGroupCallRoute(self, chatMid, mediaType): + """ + Parameters: + - chatMid + - mediaType + """ + pass + + def getUserMidsWhoAddedMe(self): + pass + + def getIdentityCredential(self): + pass + + def addOperationForChannel(self, opType, param1, param2, param3): + """ + Parameters: + - opType + - param1 + - param2 + - param3 + """ + pass + + def getSimpleChannelContacts(self, ids, statusSticonFallbackDisabled): + """ + Parameters: + - ids + - statusSticonFallbackDisabled + """ + pass + + def getUserLastSentMessageTimeStamp(self, mid): + """ + Parameters: + - mid + """ + 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 getUserStatus(self, mid): + """ + Parameters: + - mid + """ + self.send_getUserStatus(mid) + return self.recv_getUserStatus() + + def send_getUserStatus(self, mid): + self._oprot.writeMessageBegin('getUserStatus', TMessageType.CALL, self._seqid) + args = getUserStatus_args() + args.mid = mid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getUserStatus(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getUserStatus_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, "getUserStatus failed: unknown result") + + 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 + + def updateExtendedProfileAttribute(self, attr, extendedProfile): + """ + Parameters: + - attr + - extendedProfile + """ + self.send_updateExtendedProfileAttribute(attr, extendedProfile) + self.recv_updateExtendedProfileAttribute() + + def send_updateExtendedProfileAttribute(self, attr, extendedProfile): + self._oprot.writeMessageBegin('updateExtendedProfileAttribute', TMessageType.CALL, self._seqid) + args = updateExtendedProfileAttribute_args() + args.attr = attr + args.extendedProfile = extendedProfile + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateExtendedProfileAttribute(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateExtendedProfileAttribute_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def getAllSimpleChannelContacts(self, statusSticonFallbackDisabled): + """ + Parameters: + - statusSticonFallbackDisabled + """ + self.send_getAllSimpleChannelContacts(statusSticonFallbackDisabled) + return self.recv_getAllSimpleChannelContacts() + + def send_getAllSimpleChannelContacts(self, statusSticonFallbackDisabled): + self._oprot.writeMessageBegin('getAllSimpleChannelContacts', TMessageType.CALL, self._seqid) + args = getAllSimpleChannelContacts_args() + args.statusSticonFallbackDisabled = statusSticonFallbackDisabled + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getAllSimpleChannelContacts(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getAllSimpleChannelContacts_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, "getAllSimpleChannelContacts 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 markPaidCallAd(self, dialedNumber, language, disableCallerId): + """ + Parameters: + - dialedNumber + - language + - disableCallerId + """ + self.send_markPaidCallAd(dialedNumber, language, disableCallerId) + return self.recv_markPaidCallAd() + + def send_markPaidCallAd(self, dialedNumber, language, disableCallerId): + self._oprot.writeMessageBegin('markPaidCallAd', TMessageType.CALL, self._seqid) + args = markPaidCallAd_args() + args.dialedNumber = dialedNumber + args.language = language + args.disableCallerId = disableCallerId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_markPaidCallAd(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = markPaidCallAd_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, "markPaidCallAd 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 getPhoneInfoFromPhoneNumber(self, region, phoneNumber): + """ + Parameters: + - region + - phoneNumber + """ + self.send_getPhoneInfoFromPhoneNumber(region, phoneNumber) + return self.recv_getPhoneInfoFromPhoneNumber() + + def send_getPhoneInfoFromPhoneNumber(self, region, phoneNumber): + self._oprot.writeMessageBegin('getPhoneInfoFromPhoneNumber', TMessageType.CALL, self._seqid) + args = getPhoneInfoFromPhoneNumber_args() + args.region = region + args.phoneNumber = phoneNumber + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getPhoneInfoFromPhoneNumber(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getPhoneInfoFromPhoneNumber_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, "getPhoneInfoFromPhoneNumber failed: unknown result") + + def redeemPaidCallVoucher(self, serial, language): + """ + Parameters: + - serial + - language + """ + self.send_redeemPaidCallVoucher(serial, language) + return self.recv_redeemPaidCallVoucher() + + def send_redeemPaidCallVoucher(self, serial, language): + self._oprot.writeMessageBegin('redeemPaidCallVoucher', TMessageType.CALL, self._seqid) + args = redeemPaidCallVoucher_args() + args.serial = serial + args.language = language + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_redeemPaidCallVoucher(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = redeemPaidCallVoucher_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, "redeemPaidCallVoucher failed: unknown result") + + def getPreferredDisplayName(self, mids): + """ + Parameters: + - mids + """ + self.send_getPreferredDisplayName(mids) + return self.recv_getPreferredDisplayName() + + def send_getPreferredDisplayName(self, mids): + self._oprot.writeMessageBegin('getPreferredDisplayName', TMessageType.CALL, self._seqid) + args = getPreferredDisplayName_args() + args.mids = mids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getPreferredDisplayName(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getPreferredDisplayName_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, "getPreferredDisplayName 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 getCallCreditProducts(self, appStoreCode, pgCode, country, language): + """ + Parameters: + - appStoreCode + - pgCode + - country + - language + """ + self.send_getCallCreditProducts(appStoreCode, pgCode, country, language) + return self.recv_getCallCreditProducts() + + def send_getCallCreditProducts(self, appStoreCode, pgCode, country, language): + self._oprot.writeMessageBegin('getCallCreditProducts', TMessageType.CALL, self._seqid) + args = getCallCreditProducts_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_getCallCreditProducts(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getCallCreditProducts_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, "getCallCreditProducts 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 notifyNotiCenterEvent(self, event): + """ + Parameters: + - event + """ + self.send_notifyNotiCenterEvent(event) + self.recv_notifyNotiCenterEvent() + + def send_notifyNotiCenterEvent(self, event): + self._oprot.writeMessageBegin('notifyNotiCenterEvent', TMessageType.CALL, self._seqid) + args = notifyNotiCenterEvent_args() + args.event = event + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_notifyNotiCenterEvent(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = notifyNotiCenterEvent_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + 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 lookupGroupMembers(self, groupId, mids): + """ + Parameters: + - groupId + - mids + """ + self.send_lookupGroupMembers(groupId, mids) + return self.recv_lookupGroupMembers() + + def send_lookupGroupMembers(self, groupId, mids): + self._oprot.writeMessageBegin('lookupGroupMembers', TMessageType.CALL, self._seqid) + args = lookupGroupMembers_args() + args.groupId = groupId + args.mids = mids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_lookupGroupMembers(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = lookupGroupMembers_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, "lookupGroupMembers failed: unknown result") + + def getRoomInformation(self, roomMid): + """ + Parameters: + - roomMid + """ + self.send_getRoomInformation(roomMid) + return self.recv_getRoomInformation() + + def send_getRoomInformation(self, roomMid): + self._oprot.writeMessageBegin('getRoomInformation', TMessageType.CALL, self._seqid) + args = getRoomInformation_args() + args.roomMid = roomMid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getRoomInformation(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getRoomInformation_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, "getRoomInformation failed: unknown result") + + def getGroupCall(self, chatMid): + """ + Parameters: + - chatMid + """ + self.send_getGroupCall(chatMid) + return self.recv_getGroupCall() + + def send_getGroupCall(self, chatMid): + self._oprot.writeMessageBegin('getGroupCall', TMessageType.CALL, self._seqid) + args = getGroupCall_args() + args.chatMid = chatMid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getGroupCall(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getGroupCall_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, "getGroupCall failed: unknown result") + + def isAllowSecondaryDeviceLogin(self): + self.send_isAllowSecondaryDeviceLogin() + return self.recv_isAllowSecondaryDeviceLogin() + + def send_isAllowSecondaryDeviceLogin(self): + self._oprot.writeMessageBegin('isAllowSecondaryDeviceLogin', TMessageType.CALL, self._seqid) + args = isAllowSecondaryDeviceLogin_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_isAllowSecondaryDeviceLogin(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = isAllowSecondaryDeviceLogin_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, "isAllowSecondaryDeviceLogin 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 createRoomWithBuddy(self, reqSeq, buddyMid, contactIds): + """ + Parameters: + - reqSeq + - buddyMid + - contactIds + """ + self.send_createRoomWithBuddy(reqSeq, buddyMid, contactIds) + return self.recv_createRoomWithBuddy() + + def send_createRoomWithBuddy(self, reqSeq, buddyMid, contactIds): + self._oprot.writeMessageBegin('createRoomWithBuddy', TMessageType.CALL, self._seqid) + args = createRoomWithBuddy_args() + args.reqSeq = reqSeq + args.buddyMid = buddyMid + args.contactIds = contactIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_createRoomWithBuddy(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = createRoomWithBuddy_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, "createRoomWithBuddy 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 getPaidCallMetadata(self, language): + """ + Parameters: + - language + """ + self.send_getPaidCallMetadata(language) + return self.recv_getPaidCallMetadata() + + def send_getPaidCallMetadata(self, language): + self._oprot.writeMessageBegin('getPaidCallMetadata', TMessageType.CALL, self._seqid) + args = getPaidCallMetadata_args() + args.language = language + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getPaidCallMetadata(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getPaidCallMetadata_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, "getPaidCallMetadata 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 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 getFavoriteGroupIdsForChannel(self): + self.send_getFavoriteGroupIdsForChannel() + return self.recv_getFavoriteGroupIdsForChannel() + + def send_getFavoriteGroupIdsForChannel(self): + self._oprot.writeMessageBegin('getFavoriteGroupIdsForChannel', TMessageType.CALL, self._seqid) + args = getFavoriteGroupIdsForChannel_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getFavoriteGroupIdsForChannel(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getFavoriteGroupIdsForChannel_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, "getFavoriteGroupIdsForChannel failed: unknown result") + + def getPaidCallHistory(self, start, size, language): + """ + Parameters: + - start + - size + - language + """ + self.send_getPaidCallHistory(start, size, language) + return self.recv_getPaidCallHistory() + + def send_getPaidCallHistory(self, start, size, language): + self._oprot.writeMessageBegin('getPaidCallHistory', TMessageType.CALL, self._seqid) + args = getPaidCallHistory_args() + args.start = start + args.size = size + args.language = language + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getPaidCallHistory(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getPaidCallHistory_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, "getPaidCallHistory 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 inviteIntoGroupCall(self, chatMid, memberMids, mediaType): + """ + Parameters: + - chatMid + - memberMids + - mediaType + """ + self.send_inviteIntoGroupCall(chatMid, memberMids, mediaType) + self.recv_inviteIntoGroupCall() + + def send_inviteIntoGroupCall(self, chatMid, memberMids, mediaType): + self._oprot.writeMessageBegin('inviteIntoGroupCall', TMessageType.CALL, self._seqid) + args = inviteIntoGroupCall_args() + args.chatMid = chatMid + args.memberMids = memberMids + args.mediaType = mediaType + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_inviteIntoGroupCall(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = inviteIntoGroupCall_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + 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 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 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 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 getCallCreditPurchaseHistory(self, request): + """ + Parameters: + - request + """ + self.send_getCallCreditPurchaseHistory(request) + return self.recv_getCallCreditPurchaseHistory() + + def send_getCallCreditPurchaseHistory(self, request): + self._oprot.writeMessageBegin('getCallCreditPurchaseHistory', TMessageType.CALL, self._seqid) + args = getCallCreditPurchaseHistory_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getCallCreditPurchaseHistory(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getCallCreditPurchaseHistory_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, "getCallCreditPurchaseHistory failed: unknown result") + + def isRoomMember(self, roomId): + """ + Parameters: + - roomId + """ + self.send_isRoomMember(roomId) + return self.recv_isRoomMember() + + def send_isRoomMember(self, roomId): + self._oprot.writeMessageBegin('isRoomMember', TMessageType.CALL, self._seqid) + args = isRoomMember_args() + args.roomId = roomId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_isRoomMember(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = isRoomMember_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, "isRoomMember failed: unknown result") + + def sendSystemOAMessage(self, message): + """ + Parameters: + - message + """ + self.send_sendSystemOAMessage(message) + return self.recv_sendSystemOAMessage() + + def send_sendSystemOAMessage(self, message): + self._oprot.writeMessageBegin('sendSystemOAMessage', TMessageType.CALL, self._seqid) + args = sendSystemOAMessage_args() + args.message = message + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendSystemOAMessage(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendSystemOAMessage_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, "sendSystemOAMessage failed: unknown result") + + def acquirePaidCallRoute(self, paidCallType, dialedNumber, language, networkCode, disableCallerId, referer, adSessionId): + """ + Parameters: + - paidCallType + - dialedNumber + - language + - networkCode + - disableCallerId + - referer + - adSessionId + """ + self.send_acquirePaidCallRoute(paidCallType, dialedNumber, language, networkCode, disableCallerId, referer, adSessionId) + return self.recv_acquirePaidCallRoute() + + def send_acquirePaidCallRoute(self, paidCallType, dialedNumber, language, networkCode, disableCallerId, referer, adSessionId): + self._oprot.writeMessageBegin('acquirePaidCallRoute', TMessageType.CALL, self._seqid) + args = acquirePaidCallRoute_args() + args.paidCallType = paidCallType + args.dialedNumber = dialedNumber + args.language = language + args.networkCode = networkCode + args.disableCallerId = disableCallerId + args.referer = referer + args.adSessionId = adSessionId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_acquirePaidCallRoute(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = acquirePaidCallRoute_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, "acquirePaidCallRoute 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 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 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 reserveCallCreditPurchase(self, request): + """ + Parameters: + - request + """ + self.send_reserveCallCreditPurchase(request) + return self.recv_reserveCallCreditPurchase() + + def send_reserveCallCreditPurchase(self, request): + self._oprot.writeMessageBegin('reserveCallCreditPurchase', TMessageType.CALL, self._seqid) + args = reserveCallCreditPurchase_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reserveCallCreditPurchase(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reserveCallCreditPurchase_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, "reserveCallCreditPurchase failed: unknown result") + + def acquirePaidCallCurrencyExchangeRate(self, language): + """ + Parameters: + - language + """ + self.send_acquirePaidCallCurrencyExchangeRate(language) + return self.recv_acquirePaidCallCurrencyExchangeRate() + + def send_acquirePaidCallCurrencyExchangeRate(self, language): + self._oprot.writeMessageBegin('acquirePaidCallCurrencyExchangeRate', TMessageType.CALL, self._seqid) + args = acquirePaidCallCurrencyExchangeRate_args() + args.language = language + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_acquirePaidCallCurrencyExchangeRate(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = acquirePaidCallCurrencyExchangeRate_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, "acquirePaidCallCurrencyExchangeRate failed: unknown result") + + def getRoomMemberMidsForAppPlatform(self, roomId): + """ + Parameters: + - roomId + """ + self.send_getRoomMemberMidsForAppPlatform(roomId) + return self.recv_getRoomMemberMidsForAppPlatform() + + def send_getRoomMemberMidsForAppPlatform(self, roomId): + self._oprot.writeMessageBegin('getRoomMemberMidsForAppPlatform', TMessageType.CALL, self._seqid) + args = getRoomMemberMidsForAppPlatform_args() + args.roomId = roomId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getRoomMemberMidsForAppPlatform(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getRoomMemberMidsForAppPlatform_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, "getRoomMemberMidsForAppPlatform failed: unknown result") + + def getPaidCallBalanceList(self, language): + """ + Parameters: + - language + """ + self.send_getPaidCallBalanceList(language) + return self.recv_getPaidCallBalanceList() + + def send_getPaidCallBalanceList(self, language): + self._oprot.writeMessageBegin('getPaidCallBalanceList', TMessageType.CALL, self._seqid) + args = getPaidCallBalanceList_args() + args.language = language + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getPaidCallBalanceList(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getPaidCallBalanceList_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, "getPaidCallBalanceList failed: unknown result") + + def getPersonalInfos(self, requiredPersonalInfos): + """ + Parameters: + - requiredPersonalInfos + """ + self.send_getPersonalInfos(requiredPersonalInfos) + return self.recv_getPersonalInfos() + + def send_getPersonalInfos(self, requiredPersonalInfos): + self._oprot.writeMessageBegin('getPersonalInfos', TMessageType.CALL, self._seqid) + args = getPersonalInfos_args() + args.requiredPersonalInfos = requiredPersonalInfos + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getPersonalInfos(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getPersonalInfos_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, "getPersonalInfos failed: unknown result") + + def getPrimaryClientsForChannel(self, userMids): + """ + Parameters: + - userMids + """ + self.send_getPrimaryClientsForChannel(userMids) + return self.recv_getPrimaryClientsForChannel() + + def send_getPrimaryClientsForChannel(self, userMids): + self._oprot.writeMessageBegin('getPrimaryClientsForChannel', TMessageType.CALL, self._seqid) + args = getPrimaryClientsForChannel_args() + args.userMids = userMids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getPrimaryClientsForChannel(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getPrimaryClientsForChannel_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, "getPrimaryClientsForChannel failed: unknown result") + + def addBuddyToContact(self, buddyMid): + """ + Parameters: + - buddyMid + """ + self.send_addBuddyToContact(buddyMid) + return self.recv_addBuddyToContact() + + def send_addBuddyToContact(self, buddyMid): + self._oprot.writeMessageBegin('addBuddyToContact', TMessageType.CALL, self._seqid) + args = addBuddyToContact_args() + args.buddyMid = buddyMid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_addBuddyToContact(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = addBuddyToContact_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, "addBuddyToContact failed: unknown result") + + def getGroupMemberMidsForAppPlatform(self, groupId): + """ + Parameters: + - groupId + """ + self.send_getGroupMemberMidsForAppPlatform(groupId) + return self.recv_getGroupMemberMidsForAppPlatform() + + def send_getGroupMemberMidsForAppPlatform(self, groupId): + self._oprot.writeMessageBegin('getGroupMemberMidsForAppPlatform', TMessageType.CALL, self._seqid) + args = getGroupMemberMidsForAppPlatform_args() + args.groupId = groupId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getGroupMemberMidsForAppPlatform(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getGroupMemberMidsForAppPlatform_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, "getGroupMemberMidsForAppPlatform 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 lookupPaidCall(self, dialedNumber, language, referer): + """ + Parameters: + - dialedNumber + - language + - referer + """ + self.send_lookupPaidCall(dialedNumber, language, referer) + return self.recv_lookupPaidCall() + + def send_lookupPaidCall(self, dialedNumber, language, referer): + self._oprot.writeMessageBegin('lookupPaidCall', TMessageType.CALL, self._seqid) + args = lookupPaidCall_args() + args.dialedNumber = dialedNumber + args.language = language + args.referer = referer + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_lookupPaidCall(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = lookupPaidCall_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, "lookupPaidCall failed: unknown result") + + def getExtendedProfile(self): + self.send_getExtendedProfile() + return self.recv_getExtendedProfile() + + def send_getExtendedProfile(self): + self._oprot.writeMessageBegin('getExtendedProfile', TMessageType.CALL, self._seqid) + args = getExtendedProfile_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getExtendedProfile(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getExtendedProfile_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, "getExtendedProfile failed: unknown result") + + def getReverseCompactContacts(self, ids): + """ + Parameters: + - ids + """ + self.send_getReverseCompactContacts(ids) + return self.recv_getReverseCompactContacts() + + def send_getReverseCompactContacts(self, ids): + self._oprot.writeMessageBegin('getReverseCompactContacts', TMessageType.CALL, self._seqid) + args = getReverseCompactContacts_args() + args.ids = ids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getReverseCompactContacts(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getReverseCompactContacts_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, "getReverseCompactContacts failed: unknown result") + + def getPaidCallAdStatus(self): + self.send_getPaidCallAdStatus() + return self.recv_getPaidCallAdStatus() + + def send_getPaidCallAdStatus(self): + self._oprot.writeMessageBegin('getPaidCallAdStatus', TMessageType.CALL, self._seqid) + args = getPaidCallAdStatus_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getPaidCallAdStatus(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getPaidCallAdStatus_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, "getPaidCallAdStatus 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 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 sendMessageWithoutRelationship(self, message): + """ + Parameters: + - message + """ + self.send_sendMessageWithoutRelationship(message) + return self.recv_sendMessageWithoutRelationship() + + def send_sendMessageWithoutRelationship(self, message): + self._oprot.writeMessageBegin('sendMessageWithoutRelationship', TMessageType.CALL, self._seqid) + args = sendMessageWithoutRelationship_args() + args.message = message + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendMessageWithoutRelationship(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendMessageWithoutRelationship_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, "sendMessageWithoutRelationship failed: unknown result") + + def displayBuddySubscriberCountInBulk(self, mids): + """ + Parameters: + - mids + """ + self.send_displayBuddySubscriberCountInBulk(mids) + return self.recv_displayBuddySubscriberCountInBulk() + + def send_displayBuddySubscriberCountInBulk(self, mids): + self._oprot.writeMessageBegin('displayBuddySubscriberCountInBulk', TMessageType.CALL, self._seqid) + args = displayBuddySubscriberCountInBulk_args() + args.mids = mids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_displayBuddySubscriberCountInBulk(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = displayBuddySubscriberCountInBulk_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, "displayBuddySubscriberCountInBulk failed: unknown result") + + def lookupRoomMembers(self, roomId, mids): + """ + Parameters: + - roomId + - mids + """ + self.send_lookupRoomMembers(roomId, mids) + return self.recv_lookupRoomMembers() + + def send_lookupRoomMembers(self, roomId, mids): + self._oprot.writeMessageBegin('lookupRoomMembers', TMessageType.CALL, self._seqid) + args = lookupRoomMembers_args() + args.roomId = roomId + args.mids = mids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_lookupRoomMembers(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = lookupRoomMembers_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, "lookupRoomMembers 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 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 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 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 getUserTickets(self, userMids): + """ + Parameters: + - userMids + """ + self.send_getUserTickets(userMids) + return self.recv_getUserTickets() + + def send_getUserTickets(self, userMids): + self._oprot.writeMessageBegin('getUserTickets', TMessageType.CALL, self._seqid) + args = getUserTickets_args() + args.userMids = userMids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getUserTickets(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getUserTickets_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, "getUserTickets failed: unknown result") + + def getOAFriendMids(self): + self.send_getOAFriendMids() + return self.recv_getOAFriendMids() + + def send_getOAFriendMids(self): + self._oprot.writeMessageBegin('getOAFriendMids', TMessageType.CALL, self._seqid) + args = getOAFriendMids_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getOAFriendMids(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getOAFriendMids_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, "getOAFriendMids failed: unknown result") + + def searchPaidCallUserRate(self, countryCode, language): + """ + Parameters: + - countryCode + - language + """ + self.send_searchPaidCallUserRate(countryCode, language) + return self.recv_searchPaidCallUserRate() + + def send_searchPaidCallUserRate(self, countryCode, language): + self._oprot.writeMessageBegin('searchPaidCallUserRate', TMessageType.CALL, self._seqid) + args = searchPaidCallUserRate_args() + args.countryCode = countryCode + args.language = language + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_searchPaidCallUserRate(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = searchPaidCallUserRate_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, "searchPaidCallUserRate 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 acquireGroupCallRoute(self, chatMid, mediaType): + """ + Parameters: + - chatMid + - mediaType + """ + self.send_acquireGroupCallRoute(chatMid, mediaType) + return self.recv_acquireGroupCallRoute() + + def send_acquireGroupCallRoute(self, chatMid, mediaType): + self._oprot.writeMessageBegin('acquireGroupCallRoute', TMessageType.CALL, self._seqid) + args = acquireGroupCallRoute_args() + args.chatMid = chatMid + args.mediaType = mediaType + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_acquireGroupCallRoute(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = acquireGroupCallRoute_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, "acquireGroupCallRoute 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 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 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 getSimpleChannelContacts(self, ids, statusSticonFallbackDisabled): + """ + Parameters: + - ids + - statusSticonFallbackDisabled + """ + self.send_getSimpleChannelContacts(ids, statusSticonFallbackDisabled) + return self.recv_getSimpleChannelContacts() + + def send_getSimpleChannelContacts(self, ids, statusSticonFallbackDisabled): + self._oprot.writeMessageBegin('getSimpleChannelContacts', TMessageType.CALL, self._seqid) + args = getSimpleChannelContacts_args() + args.ids = ids + args.statusSticonFallbackDisabled = statusSticonFallbackDisabled + 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 getUserLastSentMessageTimeStamp(self, mid): + """ + Parameters: + - mid + """ + self.send_getUserLastSentMessageTimeStamp(mid) + return self.recv_getUserLastSentMessageTimeStamp() + + def send_getUserLastSentMessageTimeStamp(self, mid): + self._oprot.writeMessageBegin('getUserLastSentMessageTimeStamp', TMessageType.CALL, self._seqid) + args = getUserLastSentMessageTimeStamp_args() + args.mid = mid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getUserLastSentMessageTimeStamp(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getUserLastSentMessageTimeStamp_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, "getUserLastSentMessageTimeStamp failed: unknown result") + + +class Processor(Iface, TProcessor): + def __init__(self, handler): + self._handler = handler + self._processMap = {} + self._processMap["getUserStatus"] = Processor.process_getUserStatus + self._processMap["updateProfileAttributeForChannel"] = Processor.process_updateProfileAttributeForChannel + self._processMap["updateExtendedProfileAttribute"] = Processor.process_updateExtendedProfileAttribute + self._processMap["getAllSimpleChannelContacts"] = Processor.process_getAllSimpleChannelContacts + self._processMap["getUserIdentities"] = Processor.process_getUserIdentities + self._processMap["markPaidCallAd"] = Processor.process_markPaidCallAd + self._processMap["isGroupMember"] = Processor.process_isGroupMember + self._processMap["getPhoneInfoFromPhoneNumber"] = Processor.process_getPhoneInfoFromPhoneNumber + self._processMap["redeemPaidCallVoucher"] = Processor.process_redeemPaidCallVoucher + self._processMap["getPreferredDisplayName"] = Processor.process_getPreferredDisplayName + self._processMap["getContactsForChannel"] = Processor.process_getContactsForChannel + self._processMap["getCallCreditProducts"] = Processor.process_getCallCreditProducts + self._processMap["getCompactContacts"] = Processor.process_getCompactContacts + self._processMap["notifyNotiCenterEvent"] = Processor.process_notifyNotiCenterEvent + self._processMap["isInContact"] = Processor.process_isInContact + self._processMap["lookupGroupMembers"] = Processor.process_lookupGroupMembers + self._processMap["getRoomInformation"] = Processor.process_getRoomInformation + self._processMap["getGroupCall"] = Processor.process_getGroupCall + self._processMap["isAllowSecondaryDeviceLogin"] = Processor.process_isAllowSecondaryDeviceLogin + self._processMap["getPrimaryClientForChannel"] = Processor.process_getPrimaryClientForChannel + self._processMap["createRoomWithBuddy"] = Processor.process_createRoomWithBuddy + self._processMap["getDisplayName"] = Processor.process_getDisplayName + self._processMap["getPaidCallMetadata"] = Processor.process_getPaidCallMetadata + self._processMap["getMid"] = Processor.process_getMid + self._processMap["getUserCountryForBilling"] = Processor.process_getUserCountryForBilling + self._processMap["getFavoriteGroupIdsForChannel"] = Processor.process_getFavoriteGroupIdsForChannel + self._processMap["getPaidCallHistory"] = Processor.process_getPaidCallHistory + self._processMap["sendPinCodeOperation"] = Processor.process_sendPinCodeOperation + self._processMap["inviteIntoGroupCall"] = Processor.process_inviteIntoGroupCall + self._processMap["getFriendMids"] = Processor.process_getFriendMids + self._processMap["getMetaProfile"] = Processor.process_getMetaProfile + self._processMap["sendMessageForChannel"] = Processor.process_sendMessageForChannel + self._processMap["activeBuddySubscriberCount"] = Processor.process_activeBuddySubscriberCount + self._processMap["getCallCreditPurchaseHistory"] = Processor.process_getCallCreditPurchaseHistory + self._processMap["isRoomMember"] = Processor.process_isRoomMember + self._processMap["sendSystemOAMessage"] = Processor.process_sendSystemOAMessage + self._processMap["acquirePaidCallRoute"] = Processor.process_acquirePaidCallRoute + self._processMap["getGroupsForChannel"] = Processor.process_getGroupsForChannel + self._processMap["getUserCreateTime"] = Processor.process_getUserCreateTime + self._processMap["registerChannelCP"] = Processor.process_registerChannelCP + self._processMap["reserveCallCreditPurchase"] = Processor.process_reserveCallCreditPurchase + self._processMap["acquirePaidCallCurrencyExchangeRate"] = Processor.process_acquirePaidCallCurrencyExchangeRate + self._processMap["getRoomMemberMidsForAppPlatform"] = Processor.process_getRoomMemberMidsForAppPlatform + self._processMap["getPaidCallBalanceList"] = Processor.process_getPaidCallBalanceList + self._processMap["getPersonalInfos"] = Processor.process_getPersonalInfos + self._processMap["getPrimaryClientsForChannel"] = Processor.process_getPrimaryClientsForChannel + self._processMap["addBuddyToContact"] = Processor.process_addBuddyToContact + self._processMap["getGroupMemberMidsForAppPlatform"] = Processor.process_getGroupMemberMidsForAppPlatform + self._processMap["getUserLanguage"] = Processor.process_getUserLanguage + self._processMap["lookupPaidCall"] = Processor.process_lookupPaidCall + self._processMap["getExtendedProfile"] = Processor.process_getExtendedProfile + self._processMap["getReverseCompactContacts"] = Processor.process_getReverseCompactContacts + self._processMap["getPaidCallAdStatus"] = Processor.process_getPaidCallAdStatus + self._processMap["findContactByUseridWithoutAbuseBlockForChannel"] = Processor.process_findContactByUseridWithoutAbuseBlockForChannel + self._processMap["getGroupMemberMids"] = Processor.process_getGroupMemberMids + self._processMap["sendMessageWithoutRelationship"] = Processor.process_sendMessageWithoutRelationship + self._processMap["displayBuddySubscriberCountInBulk"] = Processor.process_displayBuddySubscriberCountInBulk + self._processMap["lookupRoomMembers"] = Processor.process_lookupRoomMembers + self._processMap["getFavoriteMidsForChannel"] = Processor.process_getFavoriteMidsForChannel + self._processMap["getAllContactIdsForChannel"] = Processor.process_getAllContactIdsForChannel + self._processMap["displayBuddySubscriberCount"] = Processor.process_displayBuddySubscriberCount + self._processMap["getProfileForChannel"] = Processor.process_getProfileForChannel + self._processMap["getUserTickets"] = Processor.process_getUserTickets + self._processMap["getOAFriendMids"] = Processor.process_getOAFriendMids + self._processMap["searchPaidCallUserRate"] = Processor.process_searchPaidCallUserRate + self._processMap["getJoinedGroupIdsForChannel"] = Processor.process_getJoinedGroupIdsForChannel + self._processMap["acquireGroupCallRoute"] = Processor.process_acquireGroupCallRoute + self._processMap["getUserMidsWhoAddedMe"] = Processor.process_getUserMidsWhoAddedMe + self._processMap["getIdentityCredential"] = Processor.process_getIdentityCredential + self._processMap["addOperationForChannel"] = Processor.process_addOperationForChannel + self._processMap["getSimpleChannelContacts"] = Processor.process_getSimpleChannelContacts + self._processMap["getUserLastSentMessageTimeStamp"] = Processor.process_getUserLastSentMessageTimeStamp + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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_getUserStatus(self, seqid, iprot, oprot): + args = getUserStatus_args() + args.read(iprot) + iprot.readMessageEnd() + result = getUserStatus_result() + try: + result.success = self._handler.getUserStatus(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("getUserStatus", 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() + + def process_updateExtendedProfileAttribute(self, seqid, iprot, oprot): + args = updateExtendedProfileAttribute_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateExtendedProfileAttribute_result() + try: + self._handler.updateExtendedProfileAttribute(args.attr, args.extendedProfile) + 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("updateExtendedProfileAttribute", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllSimpleChannelContacts(self, seqid, iprot, oprot): + args = getAllSimpleChannelContacts_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllSimpleChannelContacts_result() + try: + result.success = self._handler.getAllSimpleChannelContacts(args.statusSticonFallbackDisabled) + 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("getAllSimpleChannelContacts", 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_markPaidCallAd(self, seqid, iprot, oprot): + args = markPaidCallAd_args() + args.read(iprot) + iprot.readMessageEnd() + result = markPaidCallAd_result() + try: + result.success = self._handler.markPaidCallAd(args.dialedNumber, args.language, args.disableCallerId) + 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("markPaidCallAd", 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_getPhoneInfoFromPhoneNumber(self, seqid, iprot, oprot): + args = getPhoneInfoFromPhoneNumber_args() + args.read(iprot) + iprot.readMessageEnd() + result = getPhoneInfoFromPhoneNumber_result() + try: + result.success = self._handler.getPhoneInfoFromPhoneNumber(args.region, args.phoneNumber) + 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("getPhoneInfoFromPhoneNumber", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_redeemPaidCallVoucher(self, seqid, iprot, oprot): + args = redeemPaidCallVoucher_args() + args.read(iprot) + iprot.readMessageEnd() + result = redeemPaidCallVoucher_result() + try: + result.success = self._handler.redeemPaidCallVoucher(args.serial, 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("redeemPaidCallVoucher", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getPreferredDisplayName(self, seqid, iprot, oprot): + args = getPreferredDisplayName_args() + args.read(iprot) + iprot.readMessageEnd() + result = getPreferredDisplayName_result() + try: + result.success = self._handler.getPreferredDisplayName(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("getPreferredDisplayName", 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_getCallCreditProducts(self, seqid, iprot, oprot): + args = getCallCreditProducts_args() + args.read(iprot) + iprot.readMessageEnd() + result = getCallCreditProducts_result() + try: + result.success = self._handler.getCallCreditProducts(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("getCallCreditProducts", 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_notifyNotiCenterEvent(self, seqid, iprot, oprot): + args = notifyNotiCenterEvent_args() + args.read(iprot) + iprot.readMessageEnd() + result = notifyNotiCenterEvent_result() + try: + self._handler.notifyNotiCenterEvent(args.event) + 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("notifyNotiCenterEvent", 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_lookupGroupMembers(self, seqid, iprot, oprot): + args = lookupGroupMembers_args() + args.read(iprot) + iprot.readMessageEnd() + result = lookupGroupMembers_result() + try: + result.success = self._handler.lookupGroupMembers(args.groupId, 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("lookupGroupMembers", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getRoomInformation(self, seqid, iprot, oprot): + args = getRoomInformation_args() + args.read(iprot) + iprot.readMessageEnd() + result = getRoomInformation_result() + try: + result.success = self._handler.getRoomInformation(args.roomMid) + 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("getRoomInformation", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getGroupCall(self, seqid, iprot, oprot): + args = getGroupCall_args() + args.read(iprot) + iprot.readMessageEnd() + result = getGroupCall_result() + try: + result.success = self._handler.getGroupCall(args.chatMid) + 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("getGroupCall", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_isAllowSecondaryDeviceLogin(self, seqid, iprot, oprot): + args = isAllowSecondaryDeviceLogin_args() + args.read(iprot) + iprot.readMessageEnd() + result = isAllowSecondaryDeviceLogin_result() + try: + result.success = self._handler.isAllowSecondaryDeviceLogin() + 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("isAllowSecondaryDeviceLogin", 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_createRoomWithBuddy(self, seqid, iprot, oprot): + args = createRoomWithBuddy_args() + args.read(iprot) + iprot.readMessageEnd() + result = createRoomWithBuddy_result() + try: + result.success = self._handler.createRoomWithBuddy(args.reqSeq, args.buddyMid, args.contactIds) + 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("createRoomWithBuddy", 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_getPaidCallMetadata(self, seqid, iprot, oprot): + args = getPaidCallMetadata_args() + args.read(iprot) + iprot.readMessageEnd() + result = getPaidCallMetadata_result() + try: + result.success = self._handler.getPaidCallMetadata(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("getPaidCallMetadata", 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_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_getFavoriteGroupIdsForChannel(self, seqid, iprot, oprot): + args = getFavoriteGroupIdsForChannel_args() + args.read(iprot) + iprot.readMessageEnd() + result = getFavoriteGroupIdsForChannel_result() + try: + result.success = self._handler.getFavoriteGroupIdsForChannel() + 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("getFavoriteGroupIdsForChannel", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getPaidCallHistory(self, seqid, iprot, oprot): + args = getPaidCallHistory_args() + args.read(iprot) + iprot.readMessageEnd() + result = getPaidCallHistory_result() + try: + result.success = self._handler.getPaidCallHistory(args.start, args.size, 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("getPaidCallHistory", 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_inviteIntoGroupCall(self, seqid, iprot, oprot): + args = inviteIntoGroupCall_args() + args.read(iprot) + iprot.readMessageEnd() + result = inviteIntoGroupCall_result() + try: + self._handler.inviteIntoGroupCall(args.chatMid, args.memberMids, args.mediaType) + 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("inviteIntoGroupCall", 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_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_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_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_getCallCreditPurchaseHistory(self, seqid, iprot, oprot): + args = getCallCreditPurchaseHistory_args() + args.read(iprot) + iprot.readMessageEnd() + result = getCallCreditPurchaseHistory_result() + try: + result.success = self._handler.getCallCreditPurchaseHistory(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("getCallCreditPurchaseHistory", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_isRoomMember(self, seqid, iprot, oprot): + args = isRoomMember_args() + args.read(iprot) + iprot.readMessageEnd() + result = isRoomMember_result() + try: + result.success = self._handler.isRoomMember(args.roomId) + 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("isRoomMember", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_sendSystemOAMessage(self, seqid, iprot, oprot): + args = sendSystemOAMessage_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendSystemOAMessage_result() + try: + result.success = self._handler.sendSystemOAMessage(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("sendSystemOAMessage", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_acquirePaidCallRoute(self, seqid, iprot, oprot): + args = acquirePaidCallRoute_args() + args.read(iprot) + iprot.readMessageEnd() + result = acquirePaidCallRoute_result() + try: + result.success = self._handler.acquirePaidCallRoute(args.paidCallType, args.dialedNumber, args.language, args.networkCode, args.disableCallerId, args.referer, args.adSessionId) + 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("acquirePaidCallRoute", 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_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_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_reserveCallCreditPurchase(self, seqid, iprot, oprot): + args = reserveCallCreditPurchase_args() + args.read(iprot) + iprot.readMessageEnd() + result = reserveCallCreditPurchase_result() + try: + result.success = self._handler.reserveCallCreditPurchase(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("reserveCallCreditPurchase", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_acquirePaidCallCurrencyExchangeRate(self, seqid, iprot, oprot): + args = acquirePaidCallCurrencyExchangeRate_args() + args.read(iprot) + iprot.readMessageEnd() + result = acquirePaidCallCurrencyExchangeRate_result() + try: + result.success = self._handler.acquirePaidCallCurrencyExchangeRate(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("acquirePaidCallCurrencyExchangeRate", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getRoomMemberMidsForAppPlatform(self, seqid, iprot, oprot): + args = getRoomMemberMidsForAppPlatform_args() + args.read(iprot) + iprot.readMessageEnd() + result = getRoomMemberMidsForAppPlatform_result() + try: + result.success = self._handler.getRoomMemberMidsForAppPlatform(args.roomId) + 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("getRoomMemberMidsForAppPlatform", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getPaidCallBalanceList(self, seqid, iprot, oprot): + args = getPaidCallBalanceList_args() + args.read(iprot) + iprot.readMessageEnd() + result = getPaidCallBalanceList_result() + try: + result.success = self._handler.getPaidCallBalanceList(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("getPaidCallBalanceList", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getPersonalInfos(self, seqid, iprot, oprot): + args = getPersonalInfos_args() + args.read(iprot) + iprot.readMessageEnd() + result = getPersonalInfos_result() + try: + result.success = self._handler.getPersonalInfos(args.requiredPersonalInfos) + 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("getPersonalInfos", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getPrimaryClientsForChannel(self, seqid, iprot, oprot): + args = getPrimaryClientsForChannel_args() + args.read(iprot) + iprot.readMessageEnd() + result = getPrimaryClientsForChannel_result() + try: + result.success = self._handler.getPrimaryClientsForChannel(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("getPrimaryClientsForChannel", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_addBuddyToContact(self, seqid, iprot, oprot): + args = addBuddyToContact_args() + args.read(iprot) + iprot.readMessageEnd() + result = addBuddyToContact_result() + try: + result.success = self._handler.addBuddyToContact(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("addBuddyToContact", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getGroupMemberMidsForAppPlatform(self, seqid, iprot, oprot): + args = getGroupMemberMidsForAppPlatform_args() + args.read(iprot) + iprot.readMessageEnd() + result = getGroupMemberMidsForAppPlatform_result() + try: + result.success = self._handler.getGroupMemberMidsForAppPlatform(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("getGroupMemberMidsForAppPlatform", 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_lookupPaidCall(self, seqid, iprot, oprot): + args = lookupPaidCall_args() + args.read(iprot) + iprot.readMessageEnd() + result = lookupPaidCall_result() + try: + result.success = self._handler.lookupPaidCall(args.dialedNumber, args.language, args.referer) + 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("lookupPaidCall", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getExtendedProfile(self, seqid, iprot, oprot): + args = getExtendedProfile_args() + args.read(iprot) + iprot.readMessageEnd() + result = getExtendedProfile_result() + try: + result.success = self._handler.getExtendedProfile() + 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("getExtendedProfile", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getReverseCompactContacts(self, seqid, iprot, oprot): + args = getReverseCompactContacts_args() + args.read(iprot) + iprot.readMessageEnd() + result = getReverseCompactContacts_result() + try: + result.success = self._handler.getReverseCompactContacts(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("getReverseCompactContacts", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getPaidCallAdStatus(self, seqid, iprot, oprot): + args = getPaidCallAdStatus_args() + args.read(iprot) + iprot.readMessageEnd() + result = getPaidCallAdStatus_result() + try: + result.success = self._handler.getPaidCallAdStatus() + 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("getPaidCallAdStatus", 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_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_sendMessageWithoutRelationship(self, seqid, iprot, oprot): + args = sendMessageWithoutRelationship_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendMessageWithoutRelationship_result() + try: + result.success = self._handler.sendMessageWithoutRelationship(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("sendMessageWithoutRelationship", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_displayBuddySubscriberCountInBulk(self, seqid, iprot, oprot): + args = displayBuddySubscriberCountInBulk_args() + args.read(iprot) + iprot.readMessageEnd() + result = displayBuddySubscriberCountInBulk_result() + try: + result.success = self._handler.displayBuddySubscriberCountInBulk(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("displayBuddySubscriberCountInBulk", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_lookupRoomMembers(self, seqid, iprot, oprot): + args = lookupRoomMembers_args() + args.read(iprot) + iprot.readMessageEnd() + result = lookupRoomMembers_result() + try: + result.success = self._handler.lookupRoomMembers(args.roomId, 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("lookupRoomMembers", 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_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_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_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_getUserTickets(self, seqid, iprot, oprot): + args = getUserTickets_args() + args.read(iprot) + iprot.readMessageEnd() + result = getUserTickets_result() + try: + result.success = self._handler.getUserTickets(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("getUserTickets", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getOAFriendMids(self, seqid, iprot, oprot): + args = getOAFriendMids_args() + args.read(iprot) + iprot.readMessageEnd() + result = getOAFriendMids_result() + try: + result.success = self._handler.getOAFriendMids() + 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("getOAFriendMids", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchPaidCallUserRate(self, seqid, iprot, oprot): + args = searchPaidCallUserRate_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchPaidCallUserRate_result() + try: + result.success = self._handler.searchPaidCallUserRate(args.countryCode, 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("searchPaidCallUserRate", 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_acquireGroupCallRoute(self, seqid, iprot, oprot): + args = acquireGroupCallRoute_args() + args.read(iprot) + iprot.readMessageEnd() + result = acquireGroupCallRoute_result() + try: + result.success = self._handler.acquireGroupCallRoute(args.chatMid, args.mediaType) + 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("acquireGroupCallRoute", 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_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_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_getSimpleChannelContacts(self, seqid, iprot, oprot): + args = getSimpleChannelContacts_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSimpleChannelContacts_result() + try: + result.success = self._handler.getSimpleChannelContacts(args.ids, args.statusSticonFallbackDisabled) + 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_getUserLastSentMessageTimeStamp(self, seqid, iprot, oprot): + args = getUserLastSentMessageTimeStamp_args() + args.read(iprot) + iprot.readMessageEnd() + result = getUserLastSentMessageTimeStamp_result() + try: + result.success = self._handler.getUserLastSentMessageTimeStamp(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("getUserLastSentMessageTimeStamp", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + +# HELPER FUNCTIONS AND STRUCTURES + + +class getUserStatus_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 == 1: + 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('getUserStatus_args') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + 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(getUserStatus_args) +getUserStatus_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 +) + + +class getUserStatus_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('getUserStatus_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(getUserStatus_result) +getUserStatus_result.thrift_spec = ( + (0, TType.I32, 'success', None, 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 +) + + +class updateExtendedProfileAttribute_args(object): + """ + Attributes: + - attr + - extendedProfile + """ + + + def __init__(self, attr=None, extendedProfile=None,): + self.attr = attr + self.extendedProfile = extendedProfile + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.attr = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.extendedProfile = ExtendedProfile() + self.extendedProfile.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('updateExtendedProfileAttribute_args') + if self.attr is not None: + oprot.writeFieldBegin('attr', TType.I32, 1) + oprot.writeI32(self.attr) + oprot.writeFieldEnd() + if self.extendedProfile is not None: + oprot.writeFieldBegin('extendedProfile', TType.STRUCT, 2) + self.extendedProfile.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(updateExtendedProfileAttribute_args) +updateExtendedProfileAttribute_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'attr', None, None, ), # 1 + (2, TType.STRUCT, 'extendedProfile', [ExtendedProfile, None], None, ), # 2 +) + + +class updateExtendedProfileAttribute_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('updateExtendedProfileAttribute_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(updateExtendedProfileAttribute_result) +updateExtendedProfileAttribute_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getAllSimpleChannelContacts_args(object): + """ + Attributes: + - statusSticonFallbackDisabled + """ + + + def __init__(self, statusSticonFallbackDisabled=None,): + self.statusSticonFallbackDisabled = statusSticonFallbackDisabled + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.BOOL: + self.statusSticonFallbackDisabled = 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('getAllSimpleChannelContacts_args') + if self.statusSticonFallbackDisabled is not None: + oprot.writeFieldBegin('statusSticonFallbackDisabled', TType.BOOL, 1) + oprot.writeBool(self.statusSticonFallbackDisabled) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getAllSimpleChannelContacts_args) +getAllSimpleChannelContacts_args.thrift_spec = ( + None, # 0 + (1, TType.BOOL, 'statusSticonFallbackDisabled', None, None, ), # 1 +) + + +class getAllSimpleChannelContacts_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 = [] + (_etype2101, _size2098) = iprot.readListBegin() + for _i2102 in range(_size2098): + _elem2103 = SimpleChannelContact() + _elem2103.read(iprot) + self.success.append(_elem2103) + 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('getAllSimpleChannelContacts_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter2104 in self.success: + iter2104.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(getAllSimpleChannelContacts_result) +getAllSimpleChannelContacts_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [SimpleChannelContact, None], False), 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 = {} + (_ktype2106, _vtype2107, _size2105) = iprot.readMapBegin() + for _i2109 in range(_size2105): + _key2110 = iprot.readI32() + _val2111 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success[_key2110] = _val2111 + 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 kiter2112, viter2113 in self.success.items(): + oprot.writeI32(kiter2112) + oprot.writeString(viter2113.encode('utf-8') if sys.version_info[0] == 2 else viter2113) + 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 markPaidCallAd_args(object): + """ + Attributes: + - dialedNumber + - language + - disableCallerId + """ + + + def __init__(self, dialedNumber=None, language=None, disableCallerId=None,): + self.dialedNumber = dialedNumber + self.language = language + self.disableCallerId = disableCallerId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.dialedNumber = 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.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.BOOL: + self.disableCallerId = 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('markPaidCallAd_args') + if self.dialedNumber is not None: + oprot.writeFieldBegin('dialedNumber', TType.STRING, 2) + oprot.writeString(self.dialedNumber.encode('utf-8') if sys.version_info[0] == 2 else self.dialedNumber) + 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.disableCallerId is not None: + oprot.writeFieldBegin('disableCallerId', TType.BOOL, 4) + oprot.writeBool(self.disableCallerId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(markPaidCallAd_args) +markPaidCallAd_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'dialedNumber', 'UTF8', None, ), # 2 + (3, TType.STRING, 'language', 'UTF8', None, ), # 3 + (4, TType.BOOL, 'disableCallerId', None, None, ), # 4 +) + + +class markPaidCallAd_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 = PaidCallDialing() + 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('markPaidCallAd_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(markPaidCallAd_result) +markPaidCallAd_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PaidCallDialing, None], 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 getPhoneInfoFromPhoneNumber_args(object): + """ + Attributes: + - region + - phoneNumber + """ + + + def __init__(self, region=None, phoneNumber=None,): + self.region = region + self.phoneNumber = phoneNumber + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.region = 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.phoneNumber = 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('getPhoneInfoFromPhoneNumber_args') + if self.region is not None: + oprot.writeFieldBegin('region', TType.STRING, 1) + oprot.writeString(self.region.encode('utf-8') if sys.version_info[0] == 2 else self.region) + oprot.writeFieldEnd() + if self.phoneNumber is not None: + oprot.writeFieldBegin('phoneNumber', TType.STRING, 2) + oprot.writeString(self.phoneNumber.encode('utf-8') if sys.version_info[0] == 2 else self.phoneNumber) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getPhoneInfoFromPhoneNumber_args) +getPhoneInfoFromPhoneNumber_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'region', 'UTF8', None, ), # 1 + (2, TType.STRING, 'phoneNumber', 'UTF8', None, ), # 2 +) + + +class getPhoneInfoFromPhoneNumber_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 = PhoneInfoForChannel() + 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('getPhoneInfoFromPhoneNumber_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(getPhoneInfoFromPhoneNumber_result) +getPhoneInfoFromPhoneNumber_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PhoneInfoForChannel, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class redeemPaidCallVoucher_args(object): + """ + Attributes: + - serial + - language + """ + + + def __init__(self, serial=None, language=None,): + self.serial = serial + 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.STRING: + self.serial = 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.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('redeemPaidCallVoucher_args') + if self.serial is not None: + oprot.writeFieldBegin('serial', TType.STRING, 2) + oprot.writeString(self.serial.encode('utf-8') if sys.version_info[0] == 2 else self.serial) + 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(redeemPaidCallVoucher_args) +redeemPaidCallVoucher_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'serial', 'UTF8', None, ), # 2 + (3, TType.STRING, 'language', 'UTF8', None, ), # 3 +) + + +class redeemPaidCallVoucher_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 = PaidCallRedeemResult() + 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('redeemPaidCallVoucher_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(redeemPaidCallVoucher_result) +redeemPaidCallVoucher_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PaidCallRedeemResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getPreferredDisplayName_args(object): + """ + Attributes: + - mids + """ + + + def __init__(self, mids=None,): + 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.mids = [] + (_etype2117, _size2114) = iprot.readListBegin() + for _i2118 in range(_size2114): + _elem2119 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.mids.append(_elem2119) + 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('getPreferredDisplayName_args') + if self.mids is not None: + oprot.writeFieldBegin('mids', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.mids)) + for iter2120 in self.mids: + oprot.writeString(iter2120.encode('utf-8') if sys.version_info[0] == 2 else iter2120) + 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(getPreferredDisplayName_args) +getPreferredDisplayName_args.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'mids', (TType.STRING, 'UTF8', False), None, ), # 1 +) + + +class getPreferredDisplayName_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 = {} + (_ktype2122, _vtype2123, _size2121) = iprot.readMapBegin() + for _i2125 in range(_size2121): + _key2126 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val2127 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success[_key2126] = _val2127 + 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('getPreferredDisplayName_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) + for kiter2128, viter2129 in self.success.items(): + oprot.writeString(kiter2128.encode('utf-8') if sys.version_info[0] == 2 else kiter2128) + oprot.writeString(viter2129.encode('utf-8') if sys.version_info[0] == 2 else viter2129) + 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(getPreferredDisplayName_result) +getPreferredDisplayName_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', 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 = [] + (_etype2133, _size2130) = iprot.readListBegin() + for _i2134 in range(_size2130): + _elem2135 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.ids.append(_elem2135) + 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 iter2136 in self.ids: + oprot.writeString(iter2136.encode('utf-8') if sys.version_info[0] == 2 else iter2136) + 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 = [] + (_etype2140, _size2137) = iprot.readListBegin() + for _i2141 in range(_size2137): + _elem2142 = Contact() + _elem2142.read(iprot) + self.success.append(_elem2142) + 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 iter2143 in self.success: + iter2143.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 getCallCreditProducts_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('getCallCreditProducts_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(getCallCreditProducts_args) +getCallCreditProducts_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 getCallCreditProducts_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 = [] + (_etype2147, _size2144) = iprot.readListBegin() + for _i2148 in range(_size2144): + _elem2149 = CoinProductItem() + _elem2149.read(iprot) + self.success.append(_elem2149) + 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('getCallCreditProducts_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter2150 in self.success: + iter2150.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(getCallCreditProducts_result) +getCallCreditProducts_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [CoinProductItem, None], 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 = [] + (_etype2154, _size2151) = iprot.readListBegin() + for _i2155 in range(_size2151): + _elem2156 = CompactContact() + _elem2156.read(iprot) + self.success.append(_elem2156) + 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 iter2157 in self.success: + iter2157.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 notifyNotiCenterEvent_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 == 1: + if ftype == TType.STRUCT: + self.event = NotiCenterEventData() + 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('notifyNotiCenterEvent_args') + if self.event is not None: + oprot.writeFieldBegin('event', TType.STRUCT, 1) + 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(notifyNotiCenterEvent_args) +notifyNotiCenterEvent_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'event', [NotiCenterEventData, None], None, ), # 1 +) + + +class notifyNotiCenterEvent_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('notifyNotiCenterEvent_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(notifyNotiCenterEvent_result) +notifyNotiCenterEvent_result.thrift_spec = ( + 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 lookupGroupMembers_args(object): + """ + Attributes: + - groupId + - mids + """ + + + def __init__(self, groupId=None, mids=None,): + self.groupId = groupId + 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.groupId = 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.mids = [] + (_etype2161, _size2158) = iprot.readListBegin() + for _i2162 in range(_size2158): + _elem2163 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.mids.append(_elem2163) + 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('lookupGroupMembers_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() + if self.mids is not None: + oprot.writeFieldBegin('mids', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.mids)) + for iter2164 in self.mids: + oprot.writeString(iter2164.encode('utf-8') if sys.version_info[0] == 2 else iter2164) + 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(lookupGroupMembers_args) +lookupGroupMembers_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'groupId', 'UTF8', None, ), # 1 + (2, TType.LIST, 'mids', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class lookupGroupMembers_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 = [] + (_etype2168, _size2165) = iprot.readListBegin() + for _i2169 in range(_size2165): + _elem2170 = SimpleChannelContact() + _elem2170.read(iprot) + self.success.append(_elem2170) + 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('lookupGroupMembers_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter2171 in self.success: + iter2171.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(lookupGroupMembers_result) +lookupGroupMembers_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [SimpleChannelContact, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getRoomInformation_args(object): + """ + Attributes: + - roomMid + """ + + + def __init__(self, roomMid=None,): + self.roomMid = roomMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.roomMid = 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('getRoomInformation_args') + if self.roomMid is not None: + oprot.writeFieldBegin('roomMid', TType.STRING, 1) + oprot.writeString(self.roomMid.encode('utf-8') if sys.version_info[0] == 2 else self.roomMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getRoomInformation_args) +getRoomInformation_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'roomMid', 'UTF8', None, ), # 1 +) + + +class getRoomInformation_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 = Room() + 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('getRoomInformation_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(getRoomInformation_result) +getRoomInformation_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Room, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getGroupCall_args(object): + """ + Attributes: + - chatMid + """ + + + def __init__(self, chatMid=None,): + self.chatMid = chatMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.chatMid = 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('getGroupCall_args') + if self.chatMid is not None: + oprot.writeFieldBegin('chatMid', TType.STRING, 2) + oprot.writeString(self.chatMid.encode('utf-8') if sys.version_info[0] == 2 else self.chatMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getGroupCall_args) +getGroupCall_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'chatMid', 'UTF8', None, ), # 2 +) + + +class getGroupCall_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 = GroupCall() + 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('getGroupCall_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(getGroupCall_result) +getGroupCall_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GroupCall, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class isAllowSecondaryDeviceLogin_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('isAllowSecondaryDeviceLogin_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(isAllowSecondaryDeviceLogin_args) +isAllowSecondaryDeviceLogin_args.thrift_spec = ( +) + + +class isAllowSecondaryDeviceLogin_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('isAllowSecondaryDeviceLogin_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(isAllowSecondaryDeviceLogin_result) +isAllowSecondaryDeviceLogin_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, 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 createRoomWithBuddy_args(object): + """ + Attributes: + - reqSeq + - buddyMid + - contactIds + """ + + + def __init__(self, reqSeq=None, buddyMid=None, contactIds=None,): + self.reqSeq = reqSeq + self.buddyMid = buddyMid + self.contactIds = contactIds + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.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.LIST: + self.contactIds = [] + (_etype2175, _size2172) = iprot.readListBegin() + for _i2176 in range(_size2172): + _elem2177 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.contactIds.append(_elem2177) + 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('createRoomWithBuddy_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + 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.contactIds is not None: + oprot.writeFieldBegin('contactIds', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.contactIds)) + for iter2178 in self.contactIds: + oprot.writeString(iter2178.encode('utf-8') if sys.version_info[0] == 2 else iter2178) + 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(createRoomWithBuddy_args) +createRoomWithBuddy_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'buddyMid', 'UTF8', None, ), # 2 + (3, TType.LIST, 'contactIds', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class createRoomWithBuddy_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 = Room() + 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('createRoomWithBuddy_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(createRoomWithBuddy_result) +createRoomWithBuddy_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Room, None], 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 getPaidCallMetadata_args(object): + """ + Attributes: + - language + """ + + + def __init__(self, language=None,): + 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.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('getPaidCallMetadata_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() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getPaidCallMetadata_args) +getPaidCallMetadata_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'language', 'UTF8', None, ), # 2 +) + + +class getPaidCallMetadata_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 = PaidCallMetadataResult() + 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('getPaidCallMetadata_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(getPaidCallMetadata_result) +getPaidCallMetadata_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PaidCallMetadataResult, 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 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 getFavoriteGroupIdsForChannel_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('getFavoriteGroupIdsForChannel_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(getFavoriteGroupIdsForChannel_args) +getFavoriteGroupIdsForChannel_args.thrift_spec = ( +) + + +class getFavoriteGroupIdsForChannel_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 = [] + (_etype2182, _size2179) = iprot.readListBegin() + for _i2183 in range(_size2179): + _elem2184 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem2184) + 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('getFavoriteGroupIdsForChannel_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter2185 in self.success: + oprot.writeString(iter2185.encode('utf-8') if sys.version_info[0] == 2 else iter2185) + 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(getFavoriteGroupIdsForChannel_result) +getFavoriteGroupIdsForChannel_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getPaidCallHistory_args(object): + """ + Attributes: + - start + - size + - language + """ + + + def __init__(self, start=None, size=None, language=None,): + self.start = start + self.size = size + 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.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) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('getPaidCallHistory_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() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getPaidCallHistory_args) +getPaidCallHistory_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 +) + + +class getPaidCallHistory_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 = PaidCallHistoryResult() + 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('getPaidCallHistory_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(getPaidCallHistory_result) +getPaidCallHistory_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PaidCallHistoryResult, 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 inviteIntoGroupCall_args(object): + """ + Attributes: + - chatMid + - memberMids + - mediaType + """ + + + def __init__(self, chatMid=None, memberMids=None, mediaType=None,): + self.chatMid = chatMid + self.memberMids = memberMids + self.mediaType = mediaType + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.chatMid = 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.memberMids = [] + (_etype2189, _size2186) = iprot.readListBegin() + for _i2190 in range(_size2186): + _elem2191 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.memberMids.append(_elem2191) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.mediaType = 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('inviteIntoGroupCall_args') + if self.chatMid is not None: + oprot.writeFieldBegin('chatMid', TType.STRING, 2) + oprot.writeString(self.chatMid.encode('utf-8') if sys.version_info[0] == 2 else self.chatMid) + oprot.writeFieldEnd() + if self.memberMids is not None: + oprot.writeFieldBegin('memberMids', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.memberMids)) + for iter2192 in self.memberMids: + oprot.writeString(iter2192.encode('utf-8') if sys.version_info[0] == 2 else iter2192) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.mediaType is not None: + oprot.writeFieldBegin('mediaType', TType.I32, 4) + oprot.writeI32(self.mediaType) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(inviteIntoGroupCall_args) +inviteIntoGroupCall_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'chatMid', 'UTF8', None, ), # 2 + (3, TType.LIST, 'memberMids', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.I32, 'mediaType', None, None, ), # 4 +) + + +class inviteIntoGroupCall_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('inviteIntoGroupCall_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(inviteIntoGroupCall_result) +inviteIntoGroupCall_result.thrift_spec = ( + 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 = [] + (_etype2196, _size2193) = iprot.readListBegin() + for _i2197 in range(_size2193): + _elem2198 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem2198) + 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 iter2199 in self.success: + oprot.writeString(iter2199.encode('utf-8') if sys.version_info[0] == 2 else iter2199) + 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 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 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 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 getCallCreditPurchaseHistory_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('getCallCreditPurchaseHistory_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(getCallCreditPurchaseHistory_args) +getCallCreditPurchaseHistory_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRUCT, 'request', [CoinHistoryCondition, None], None, ), # 2 +) + + +class getCallCreditPurchaseHistory_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('getCallCreditPurchaseHistory_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(getCallCreditPurchaseHistory_result) +getCallCreditPurchaseHistory_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [CoinHistoryResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class isRoomMember_args(object): + """ + Attributes: + - roomId + """ + + + def __init__(self, roomId=None,): + self.roomId = roomId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.roomId = 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('isRoomMember_args') + if self.roomId is not None: + oprot.writeFieldBegin('roomId', TType.STRING, 1) + oprot.writeString(self.roomId.encode('utf-8') if sys.version_info[0] == 2 else self.roomId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(isRoomMember_args) +isRoomMember_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'roomId', 'UTF8', None, ), # 1 +) + + +class isRoomMember_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('isRoomMember_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(isRoomMember_result) +isRoomMember_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class sendSystemOAMessage_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 == 1: + 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('sendSystemOAMessage_args') + if self.message is not None: + oprot.writeFieldBegin('message', TType.STRUCT, 1) + 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(sendSystemOAMessage_args) +sendSystemOAMessage_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'message', [Message, None], None, ), # 1 +) + + +class sendSystemOAMessage_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('sendSystemOAMessage_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(sendSystemOAMessage_result) +sendSystemOAMessage_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Message, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class acquirePaidCallRoute_args(object): + """ + Attributes: + - paidCallType + - dialedNumber + - language + - networkCode + - disableCallerId + - referer + - adSessionId + """ + + + def __init__(self, paidCallType=None, dialedNumber=None, language=None, networkCode=None, disableCallerId=None, referer=None, adSessionId=None,): + self.paidCallType = paidCallType + self.dialedNumber = dialedNumber + self.language = language + self.networkCode = networkCode + self.disableCallerId = disableCallerId + self.referer = referer + self.adSessionId = adSessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.paidCallType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.dialedNumber = 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) + elif fid == 5: + if ftype == TType.STRING: + self.networkCode = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.BOOL: + self.disableCallerId = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.referer = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.adSessionId = 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('acquirePaidCallRoute_args') + if self.paidCallType is not None: + oprot.writeFieldBegin('paidCallType', TType.I32, 2) + oprot.writeI32(self.paidCallType) + oprot.writeFieldEnd() + if self.dialedNumber is not None: + oprot.writeFieldBegin('dialedNumber', TType.STRING, 3) + oprot.writeString(self.dialedNumber.encode('utf-8') if sys.version_info[0] == 2 else self.dialedNumber) + 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.networkCode is not None: + oprot.writeFieldBegin('networkCode', TType.STRING, 5) + oprot.writeString(self.networkCode.encode('utf-8') if sys.version_info[0] == 2 else self.networkCode) + oprot.writeFieldEnd() + if self.disableCallerId is not None: + oprot.writeFieldBegin('disableCallerId', TType.BOOL, 6) + oprot.writeBool(self.disableCallerId) + oprot.writeFieldEnd() + if self.referer is not None: + oprot.writeFieldBegin('referer', TType.STRING, 7) + oprot.writeString(self.referer.encode('utf-8') if sys.version_info[0] == 2 else self.referer) + oprot.writeFieldEnd() + if self.adSessionId is not None: + oprot.writeFieldBegin('adSessionId', TType.STRING, 8) + oprot.writeString(self.adSessionId.encode('utf-8') if sys.version_info[0] == 2 else self.adSessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(acquirePaidCallRoute_args) +acquirePaidCallRoute_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'paidCallType', None, None, ), # 2 + (3, TType.STRING, 'dialedNumber', 'UTF8', None, ), # 3 + (4, TType.STRING, 'language', 'UTF8', None, ), # 4 + (5, TType.STRING, 'networkCode', 'UTF8', None, ), # 5 + (6, TType.BOOL, 'disableCallerId', None, None, ), # 6 + (7, TType.STRING, 'referer', 'UTF8', None, ), # 7 + (8, TType.STRING, 'adSessionId', 'UTF8', None, ), # 8 +) + + +class acquirePaidCallRoute_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 = PaidCallResponse() + 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('acquirePaidCallRoute_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(acquirePaidCallRoute_result) +acquirePaidCallRoute_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PaidCallResponse, None], 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 = [] + (_etype2203, _size2200) = iprot.readListBegin() + for _i2204 in range(_size2200): + _elem2205 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.groupIds.append(_elem2205) + 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 iter2206 in self.groupIds: + oprot.writeString(iter2206.encode('utf-8') if sys.version_info[0] == 2 else iter2206) + 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 = [] + (_etype2210, _size2207) = iprot.readListBegin() + for _i2211 in range(_size2207): + _elem2212 = Group() + _elem2212.read(iprot) + self.success.append(_elem2212) + 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 iter2213 in self.success: + iter2213.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 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 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 reserveCallCreditPurchase_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('reserveCallCreditPurchase_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(reserveCallCreditPurchase_args) +reserveCallCreditPurchase_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRUCT, 'request', [CoinPurchaseReservation, None], None, ), # 2 +) + + +class reserveCallCreditPurchase_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('reserveCallCreditPurchase_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(reserveCallCreditPurchase_result) +reserveCallCreditPurchase_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PaymentReservationResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class acquirePaidCallCurrencyExchangeRate_args(object): + """ + Attributes: + - language + """ + + + def __init__(self, language=None,): + 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.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('acquirePaidCallCurrencyExchangeRate_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() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(acquirePaidCallCurrencyExchangeRate_args) +acquirePaidCallCurrencyExchangeRate_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'language', 'UTF8', None, ), # 2 +) + + +class acquirePaidCallCurrencyExchangeRate_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 = [] + (_etype2217, _size2214) = iprot.readListBegin() + for _i2218 in range(_size2214): + _elem2219 = PaidCallCurrencyExchangeRate() + _elem2219.read(iprot) + self.success.append(_elem2219) + 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('acquirePaidCallCurrencyExchangeRate_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter2220 in self.success: + iter2220.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(acquirePaidCallCurrencyExchangeRate_result) +acquirePaidCallCurrencyExchangeRate_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [PaidCallCurrencyExchangeRate, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getRoomMemberMidsForAppPlatform_args(object): + """ + Attributes: + - roomId + """ + + + def __init__(self, roomId=None,): + self.roomId = roomId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.roomId = 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('getRoomMemberMidsForAppPlatform_args') + if self.roomId is not None: + oprot.writeFieldBegin('roomId', TType.STRING, 1) + oprot.writeString(self.roomId.encode('utf-8') if sys.version_info[0] == 2 else self.roomId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getRoomMemberMidsForAppPlatform_args) +getRoomMemberMidsForAppPlatform_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'roomId', 'UTF8', None, ), # 1 +) + + +class getRoomMemberMidsForAppPlatform_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 = [] + (_etype2224, _size2221) = iprot.readListBegin() + for _i2225 in range(_size2221): + _elem2226 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem2226) + 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('getRoomMemberMidsForAppPlatform_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter2227 in self.success: + oprot.writeString(iter2227.encode('utf-8') if sys.version_info[0] == 2 else iter2227) + 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(getRoomMemberMidsForAppPlatform_result) +getRoomMemberMidsForAppPlatform_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getPaidCallBalanceList_args(object): + """ + Attributes: + - language + """ + + + def __init__(self, language=None,): + 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.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('getPaidCallBalanceList_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() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getPaidCallBalanceList_args) +getPaidCallBalanceList_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'language', 'UTF8', None, ), # 2 +) + + +class getPaidCallBalanceList_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 = [] + (_etype2231, _size2228) = iprot.readListBegin() + for _i2232 in range(_size2228): + _elem2233 = PaidCallBalance() + _elem2233.read(iprot) + self.success.append(_elem2233) + 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('getPaidCallBalanceList_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter2234 in self.success: + iter2234.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(getPaidCallBalanceList_result) +getPaidCallBalanceList_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [PaidCallBalance, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getPersonalInfos_args(object): + """ + Attributes: + - requiredPersonalInfos + """ + + + def __init__(self, requiredPersonalInfos=None,): + self.requiredPersonalInfos = requiredPersonalInfos + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.requiredPersonalInfos = set() + (_etype2238, _size2235) = iprot.readSetBegin() + for _i2239 in range(_size2235): + _elem2240 = iprot.readI32() + self.requiredPersonalInfos.add(_elem2240) + iprot.readSetEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('getPersonalInfos_args') + if self.requiredPersonalInfos is not None: + oprot.writeFieldBegin('requiredPersonalInfos', TType.SET, 1) + oprot.writeSetBegin(TType.I32, len(self.requiredPersonalInfos)) + for iter2241 in self.requiredPersonalInfos: + oprot.writeI32(iter2241) + oprot.writeSetEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getPersonalInfos_args) +getPersonalInfos_args.thrift_spec = ( + None, # 0 + (1, TType.SET, 'requiredPersonalInfos', (TType.I32, None, False), None, ), # 1 +) + + +class getPersonalInfos_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 = {} + (_ktype2243, _vtype2244, _size2242) = iprot.readMapBegin() + for _i2246 in range(_size2242): + _key2247 = iprot.readI32() + _val2248 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success[_key2247] = _val2248 + 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('getPersonalInfos_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.I32, TType.STRING, len(self.success)) + for kiter2249, viter2250 in self.success.items(): + oprot.writeI32(kiter2249) + oprot.writeString(viter2250.encode('utf-8') if sys.version_info[0] == 2 else viter2250) + 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(getPersonalInfos_result) +getPersonalInfos_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 getPrimaryClientsForChannel_args(object): + """ + Attributes: + - userMids + """ + + + def __init__(self, userMids=None,): + 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.LIST: + self.userMids = [] + (_etype2254, _size2251) = iprot.readListBegin() + for _i2255 in range(_size2251): + _elem2256 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.userMids.append(_elem2256) + 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('getPrimaryClientsForChannel_args') + if self.userMids is not None: + oprot.writeFieldBegin('userMids', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.userMids)) + for iter2257 in self.userMids: + oprot.writeString(iter2257.encode('utf-8') if sys.version_info[0] == 2 else iter2257) + 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(getPrimaryClientsForChannel_args) +getPrimaryClientsForChannel_args.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'userMids', (TType.STRING, 'UTF8', False), None, ), # 1 +) + + +class getPrimaryClientsForChannel_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 = [] + (_etype2261, _size2258) = iprot.readListBegin() + for _i2262 in range(_size2258): + _elem2263 = SimpleChannelClient() + _elem2263.read(iprot) + self.success.append(_elem2263) + 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('getPrimaryClientsForChannel_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter2264 in self.success: + iter2264.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(getPrimaryClientsForChannel_result) +getPrimaryClientsForChannel_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [SimpleChannelClient, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class addBuddyToContact_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 == 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) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('addBuddyToContact_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() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(addBuddyToContact_args) +addBuddyToContact_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'buddyMid', 'UTF8', None, ), # 1 +) + + +class addBuddyToContact_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 = ContactTransition() + 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('addBuddyToContact_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(addBuddyToContact_result) +addBuddyToContact_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ContactTransition, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getGroupMemberMidsForAppPlatform_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('getGroupMemberMidsForAppPlatform_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(getGroupMemberMidsForAppPlatform_args) +getGroupMemberMidsForAppPlatform_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'groupId', 'UTF8', None, ), # 1 +) + + +class getGroupMemberMidsForAppPlatform_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 = [] + (_etype2268, _size2265) = iprot.readListBegin() + for _i2269 in range(_size2265): + _elem2270 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem2270) + 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('getGroupMemberMidsForAppPlatform_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter2271 in self.success: + oprot.writeString(iter2271.encode('utf-8') if sys.version_info[0] == 2 else iter2271) + 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(getGroupMemberMidsForAppPlatform_result) +getGroupMemberMidsForAppPlatform_result.thrift_spec = ( + (0, TType.LIST, 'success', (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 lookupPaidCall_args(object): + """ + Attributes: + - dialedNumber + - language + - referer + """ + + + def __init__(self, dialedNumber=None, language=None, referer=None,): + self.dialedNumber = dialedNumber + self.language = language + self.referer = referer + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.dialedNumber = 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.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.referer = 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('lookupPaidCall_args') + if self.dialedNumber is not None: + oprot.writeFieldBegin('dialedNumber', TType.STRING, 2) + oprot.writeString(self.dialedNumber.encode('utf-8') if sys.version_info[0] == 2 else self.dialedNumber) + 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.referer is not None: + oprot.writeFieldBegin('referer', TType.STRING, 4) + oprot.writeString(self.referer.encode('utf-8') if sys.version_info[0] == 2 else self.referer) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(lookupPaidCall_args) +lookupPaidCall_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'dialedNumber', 'UTF8', None, ), # 2 + (3, TType.STRING, 'language', 'UTF8', None, ), # 3 + (4, TType.STRING, 'referer', 'UTF8', None, ), # 4 +) + + +class lookupPaidCall_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 = PaidCallResponse() + 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('lookupPaidCall_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(lookupPaidCall_result) +lookupPaidCall_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PaidCallResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getExtendedProfile_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('getExtendedProfile_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(getExtendedProfile_args) +getExtendedProfile_args.thrift_spec = ( +) + + +class getExtendedProfile_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 = ExtendedProfile() + 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('getExtendedProfile_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(getExtendedProfile_result) +getExtendedProfile_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExtendedProfile, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getReverseCompactContacts_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 = [] + (_etype2275, _size2272) = iprot.readListBegin() + for _i2276 in range(_size2272): + _elem2277 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.ids.append(_elem2277) + 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('getReverseCompactContacts_args') + if self.ids is not None: + oprot.writeFieldBegin('ids', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.ids)) + for iter2278 in self.ids: + oprot.writeString(iter2278.encode('utf-8') if sys.version_info[0] == 2 else iter2278) + 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(getReverseCompactContacts_args) +getReverseCompactContacts_args.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'ids', (TType.STRING, 'UTF8', False), None, ), # 1 +) + + +class getReverseCompactContacts_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 = {} + (_ktype2280, _vtype2281, _size2279) = iprot.readMapBegin() + for _i2283 in range(_size2279): + _key2284 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val2285 = CompactContact() + _val2285.read(iprot) + self.success[_key2284] = _val2285 + 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('getReverseCompactContacts_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) + for kiter2286, viter2287 in self.success.items(): + oprot.writeString(kiter2286.encode('utf-8') if sys.version_info[0] == 2 else kiter2286) + viter2287.write(oprot) + 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(getReverseCompactContacts_result) +getReverseCompactContacts_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRUCT, [CompactContact, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getPaidCallAdStatus_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('getPaidCallAdStatus_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(getPaidCallAdStatus_args) +getPaidCallAdStatus_args.thrift_spec = ( +) + + +class getPaidCallAdStatus_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 = PaidCallAdResult() + 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('getPaidCallAdStatus_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(getPaidCallAdStatus_result) +getPaidCallAdStatus_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PaidCallAdResult, 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 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 = [] + (_etype2291, _size2288) = iprot.readListBegin() + for _i2292 in range(_size2288): + _elem2293 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem2293) + 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 iter2294 in self.success: + oprot.writeString(iter2294.encode('utf-8') if sys.version_info[0] == 2 else iter2294) + 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 sendMessageWithoutRelationship_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('sendMessageWithoutRelationship_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(sendMessageWithoutRelationship_args) +sendMessageWithoutRelationship_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRUCT, 'message', [Message, None], None, ), # 2 +) + + +class sendMessageWithoutRelationship_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('sendMessageWithoutRelationship_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(sendMessageWithoutRelationship_result) +sendMessageWithoutRelationship_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Message, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class displayBuddySubscriberCountInBulk_args(object): + """ + Attributes: + - mids + """ + + + def __init__(self, mids=None,): + 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.mids = [] + (_etype2298, _size2295) = iprot.readListBegin() + for _i2299 in range(_size2295): + _elem2300 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.mids.append(_elem2300) + 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('displayBuddySubscriberCountInBulk_args') + if self.mids is not None: + oprot.writeFieldBegin('mids', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.mids)) + for iter2301 in self.mids: + oprot.writeString(iter2301.encode('utf-8') if sys.version_info[0] == 2 else iter2301) + 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(displayBuddySubscriberCountInBulk_args) +displayBuddySubscriberCountInBulk_args.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'mids', (TType.STRING, 'UTF8', False), None, ), # 1 +) + + +class displayBuddySubscriberCountInBulk_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 = {} + (_ktype2303, _vtype2304, _size2302) = iprot.readMapBegin() + for _i2306 in range(_size2302): + _key2307 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val2308 = iprot.readI64() + self.success[_key2307] = _val2308 + 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('displayBuddySubscriberCountInBulk_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.I64, len(self.success)) + for kiter2309, viter2310 in self.success.items(): + oprot.writeString(kiter2309.encode('utf-8') if sys.version_info[0] == 2 else kiter2309) + oprot.writeI64(viter2310) + 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(displayBuddySubscriberCountInBulk_result) +displayBuddySubscriberCountInBulk_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 lookupRoomMembers_args(object): + """ + Attributes: + - roomId + - mids + """ + + + def __init__(self, roomId=None, mids=None,): + self.roomId = roomId + 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.roomId = 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.mids = [] + (_etype2314, _size2311) = iprot.readListBegin() + for _i2315 in range(_size2311): + _elem2316 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.mids.append(_elem2316) + 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('lookupRoomMembers_args') + if self.roomId is not None: + oprot.writeFieldBegin('roomId', TType.STRING, 1) + oprot.writeString(self.roomId.encode('utf-8') if sys.version_info[0] == 2 else self.roomId) + oprot.writeFieldEnd() + if self.mids is not None: + oprot.writeFieldBegin('mids', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.mids)) + for iter2317 in self.mids: + oprot.writeString(iter2317.encode('utf-8') if sys.version_info[0] == 2 else iter2317) + 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(lookupRoomMembers_args) +lookupRoomMembers_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'roomId', 'UTF8', None, ), # 1 + (2, TType.LIST, 'mids', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class lookupRoomMembers_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 = [] + (_etype2321, _size2318) = iprot.readListBegin() + for _i2322 in range(_size2318): + _elem2323 = SimpleChannelContact() + _elem2323.read(iprot) + self.success.append(_elem2323) + 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('lookupRoomMembers_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter2324 in self.success: + iter2324.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(lookupRoomMembers_result) +lookupRoomMembers_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [SimpleChannelContact, None], False), 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 = [] + (_etype2328, _size2325) = iprot.readListBegin() + for _i2329 in range(_size2325): + _elem2330 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem2330) + 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 iter2331 in self.success: + oprot.writeString(iter2331.encode('utf-8') if sys.version_info[0] == 2 else iter2331) + 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 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 = [] + (_etype2335, _size2332) = iprot.readListBegin() + for _i2336 in range(_size2332): + _elem2337 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem2337) + 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 iter2338 in self.success: + oprot.writeString(iter2338.encode('utf-8') if sys.version_info[0] == 2 else iter2338) + 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 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 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 getUserTickets_args(object): + """ + Attributes: + - userMids + """ + + + def __init__(self, userMids=None,): + 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.LIST: + self.userMids = [] + (_etype2342, _size2339) = iprot.readListBegin() + for _i2343 in range(_size2339): + _elem2344 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.userMids.append(_elem2344) + 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('getUserTickets_args') + if self.userMids is not None: + oprot.writeFieldBegin('userMids', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.userMids)) + for iter2345 in self.userMids: + oprot.writeString(iter2345.encode('utf-8') if sys.version_info[0] == 2 else iter2345) + 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(getUserTickets_args) +getUserTickets_args.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'userMids', (TType.STRING, 'UTF8', False), None, ), # 1 +) + + +class getUserTickets_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 = [] + (_etype2349, _size2346) = iprot.readListBegin() + for _i2350 in range(_size2346): + _elem2351 = UserTicketResponse() + _elem2351.read(iprot) + self.success.append(_elem2351) + 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('getUserTickets_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter2352 in self.success: + iter2352.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(getUserTickets_result) +getUserTickets_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [UserTicketResponse, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getOAFriendMids_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('getOAFriendMids_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(getOAFriendMids_args) +getOAFriendMids_args.thrift_spec = ( +) + + +class getOAFriendMids_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 = [] + (_etype2356, _size2353) = iprot.readListBegin() + for _i2357 in range(_size2353): + _elem2358 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem2358) + 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('getOAFriendMids_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter2359 in self.success: + oprot.writeString(iter2359.encode('utf-8') if sys.version_info[0] == 2 else iter2359) + 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(getOAFriendMids_result) +getOAFriendMids_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class searchPaidCallUserRate_args(object): + """ + Attributes: + - countryCode + - language + """ + + + def __init__(self, countryCode=None, language=None,): + self.countryCode = countryCode + 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.STRING: + self.countryCode = 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.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('searchPaidCallUserRate_args') + if self.countryCode is not None: + oprot.writeFieldBegin('countryCode', TType.STRING, 2) + oprot.writeString(self.countryCode.encode('utf-8') if sys.version_info[0] == 2 else self.countryCode) + 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(searchPaidCallUserRate_args) +searchPaidCallUserRate_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'countryCode', 'UTF8', None, ), # 2 + (3, TType.STRING, 'language', 'UTF8', None, ), # 3 +) + + +class searchPaidCallUserRate_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 = [] + (_etype2363, _size2360) = iprot.readListBegin() + for _i2364 in range(_size2360): + _elem2365 = PaidCallUserRate() + _elem2365.read(iprot) + self.success.append(_elem2365) + 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('searchPaidCallUserRate_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter2366 in self.success: + iter2366.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(searchPaidCallUserRate_result) +searchPaidCallUserRate_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [PaidCallUserRate, None], False), 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 = [] + (_etype2370, _size2367) = iprot.readListBegin() + for _i2371 in range(_size2367): + _elem2372 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem2372) + 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 iter2373 in self.success: + oprot.writeString(iter2373.encode('utf-8') if sys.version_info[0] == 2 else iter2373) + 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 acquireGroupCallRoute_args(object): + """ + Attributes: + - chatMid + - mediaType + """ + + + def __init__(self, chatMid=None, mediaType=None,): + self.chatMid = chatMid + self.mediaType = mediaType + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.chatMid = 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.mediaType = 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('acquireGroupCallRoute_args') + if self.chatMid is not None: + oprot.writeFieldBegin('chatMid', TType.STRING, 2) + oprot.writeString(self.chatMid.encode('utf-8') if sys.version_info[0] == 2 else self.chatMid) + oprot.writeFieldEnd() + if self.mediaType is not None: + oprot.writeFieldBegin('mediaType', TType.I32, 3) + oprot.writeI32(self.mediaType) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(acquireGroupCallRoute_args) +acquireGroupCallRoute_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'chatMid', 'UTF8', None, ), # 2 + (3, TType.I32, 'mediaType', None, None, ), # 3 +) + + +class acquireGroupCallRoute_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 = GroupCallRoute() + 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('acquireGroupCallRoute_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(acquireGroupCallRoute_result) +acquireGroupCallRoute_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GroupCallRoute, None], 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 = [] + (_etype2377, _size2374) = iprot.readListBegin() + for _i2378 in range(_size2374): + _elem2379 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem2379) + 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 iter2380 in self.success: + oprot.writeString(iter2380.encode('utf-8') if sys.version_info[0] == 2 else iter2380) + 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 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 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 getSimpleChannelContacts_args(object): + """ + Attributes: + - ids + - statusSticonFallbackDisabled + """ + + + def __init__(self, ids=None, statusSticonFallbackDisabled=None,): + self.ids = ids + self.statusSticonFallbackDisabled = statusSticonFallbackDisabled + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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 = [] + (_etype2384, _size2381) = iprot.readListBegin() + for _i2385 in range(_size2381): + _elem2386 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.ids.append(_elem2386) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.BOOL: + self.statusSticonFallbackDisabled = 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('getSimpleChannelContacts_args') + if self.ids is not None: + oprot.writeFieldBegin('ids', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.ids)) + for iter2387 in self.ids: + oprot.writeString(iter2387.encode('utf-8') if sys.version_info[0] == 2 else iter2387) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.statusSticonFallbackDisabled is not None: + oprot.writeFieldBegin('statusSticonFallbackDisabled', TType.BOOL, 2) + oprot.writeBool(self.statusSticonFallbackDisabled) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __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 + (2, TType.BOOL, 'statusSticonFallbackDisabled', None, None, ), # 2 +) + + +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 = [] + (_etype2391, _size2388) = iprot.readListBegin() + for _i2392 in range(_size2388): + _elem2393 = SimpleChannelContact() + _elem2393.read(iprot) + self.success.append(_elem2393) + 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 iter2394 in self.success: + iter2394.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 getUserLastSentMessageTimeStamp_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 == 1: + 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('getUserLastSentMessageTimeStamp_args') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + 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(getUserLastSentMessageTimeStamp_args) +getUserLastSentMessageTimeStamp_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 +) + + +class getUserLastSentMessageTimeStamp_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('getUserLastSentMessageTimeStamp_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(getUserLastSentMessageTimeStamp_result) +getUserLastSentMessageTimeStamp_result.thrift_spec = ( + (0, TType.I64, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) +fix_spec(all_structs) +del all_structs + diff --git a/akad/ChannelApplicationProvidedService.py b/akad/ChannelApplicationProvidedService.py new file mode 100644 index 0000000..37542d5 --- /dev/null +++ b/akad/ChannelApplicationProvidedService.py @@ -0,0 +1,6053 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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 = [] + (_etype1167, _size1164) = iprot.readListBegin() + for _i1168 in range(_size1164): + _elem1169 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1169) + 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 iter1170 in self.success: + oprot.writeString(iter1170.encode('utf-8') if sys.version_info[0] == 2 else iter1170) + 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 = [] + (_etype1174, _size1171) = iprot.readListBegin() + for _i1175 in range(_size1171): + _elem1176 = CompactContact() + _elem1176.read(iprot) + self.success.append(_elem1176) + 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 iter1177 in self.success: + iter1177.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 = [] + (_etype1181, _size1178) = iprot.readListBegin() + for _i1182 in range(_size1178): + _elem1183 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.ids.append(_elem1183) + 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 iter1184 in self.ids: + oprot.writeString(iter1184.encode('utf-8') if sys.version_info[0] == 2 else iter1184) + 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 = [] + (_etype1188, _size1185) = iprot.readListBegin() + for _i1189 in range(_size1185): + _elem1190 = Contact() + _elem1190.read(iprot) + self.success.append(_elem1190) + 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 iter1191 in self.success: + iter1191.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 = [] + (_etype1195, _size1192) = iprot.readListBegin() + for _i1196 in range(_size1192): + _elem1197 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1197) + 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 iter1198 in self.success: + oprot.writeString(iter1198.encode('utf-8') if sys.version_info[0] == 2 else iter1198) + 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 = [] + (_etype1202, _size1199) = iprot.readListBegin() + for _i1203 in range(_size1199): + _elem1204 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1204) + 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 iter1205 in self.success: + oprot.writeString(iter1205.encode('utf-8') if sys.version_info[0] == 2 else iter1205) + 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 = [] + (_etype1209, _size1206) = iprot.readListBegin() + for _i1210 in range(_size1206): + _elem1211 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1211) + 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 iter1212 in self.success: + oprot.writeString(iter1212.encode('utf-8') if sys.version_info[0] == 2 else iter1212) + 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 = [] + (_etype1216, _size1213) = iprot.readListBegin() + for _i1217 in range(_size1213): + _elem1218 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.groupIds.append(_elem1218) + 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 iter1219 in self.groupIds: + oprot.writeString(iter1219.encode('utf-8') if sys.version_info[0] == 2 else iter1219) + 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 = [] + (_etype1223, _size1220) = iprot.readListBegin() + for _i1224 in range(_size1220): + _elem1225 = Group() + _elem1225.read(iprot) + self.success.append(_elem1225) + 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 iter1226 in self.success: + iter1226.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 = [] + (_etype1230, _size1227) = iprot.readListBegin() + for _i1231 in range(_size1227): + _elem1232 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1232) + 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 iter1233 in self.success: + oprot.writeString(iter1233.encode('utf-8') if sys.version_info[0] == 2 else iter1233) + 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 = [] + (_etype1237, _size1234) = iprot.readListBegin() + for _i1238 in range(_size1234): + _elem1239 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.ids.append(_elem1239) + 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 iter1240 in self.ids: + oprot.writeString(iter1240.encode('utf-8') if sys.version_info[0] == 2 else iter1240) + 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 = [] + (_etype1244, _size1241) = iprot.readListBegin() + for _i1245 in range(_size1241): + _elem1246 = SimpleChannelContact() + _elem1246.read(iprot) + self.success.append(_elem1246) + 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 iter1247 in self.success: + iter1247.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 = {} + (_ktype1249, _vtype1250, _size1248) = iprot.readMapBegin() + for _i1252 in range(_size1248): + _key1253 = iprot.readI32() + _val1254 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success[_key1253] = _val1254 + 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 kiter1255, viter1256 in self.success.items(): + oprot.writeI32(kiter1255) + oprot.writeString(viter1256.encode('utf-8') if sys.version_info[0] == 2 else viter1256) + 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 = [] + (_etype1260, _size1257) = iprot.readListBegin() + for _i1261 in range(_size1257): + _elem1262 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1262) + 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 iter1263 in self.success: + oprot.writeString(iter1263.encode('utf-8') if sys.version_info[0] == 2 else iter1263) + 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/akad/ChannelService.py b/akad/ChannelService.py new file mode 100644 index 0000000..b68137e --- /dev/null +++ b/akad/ChannelService.py @@ -0,0 +1,4922 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 issueOTP(self, channelId): + """ + Parameters: + - channelId + """ + pass + + 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 updateChannelSettings(self, channelSettings): + """ + Parameters: + - channelSettings + """ + pass + + def getCommonDomains(self, lastSynced): + """ + Parameters: + - lastSynced + """ + 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 issueRequestTokenForAutoLogin(self, channelId, otpId, redirectUrl): + """ + Parameters: + - channelId + - otpId + - redirectUrl + """ + pass + + def getUpdatedChannelIds(self, channelIds): + """ + Parameters: + - channelIds + """ + 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 issueOTP(self, channelId): + """ + Parameters: + - channelId + """ + self.send_issueOTP(channelId) + return self.recv_issueOTP() + + def send_issueOTP(self, channelId): + self._oprot.writeMessageBegin('issueOTP', TMessageType.CALL, self._seqid) + args = issueOTP_args() + args.channelId = channelId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_issueOTP(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = issueOTP_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, "issueOTP failed: unknown result") + + 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 updateChannelSettings(self, channelSettings): + """ + Parameters: + - channelSettings + """ + self.send_updateChannelSettings(channelSettings) + return self.recv_updateChannelSettings() + + def send_updateChannelSettings(self, channelSettings): + self._oprot.writeMessageBegin('updateChannelSettings', TMessageType.CALL, self._seqid) + args = updateChannelSettings_args() + args.channelSettings = channelSettings + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateChannelSettings(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateChannelSettings_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, "updateChannelSettings failed: unknown result") + + def getCommonDomains(self, lastSynced): + """ + Parameters: + - lastSynced + """ + self.send_getCommonDomains(lastSynced) + return self.recv_getCommonDomains() + + def send_getCommonDomains(self, lastSynced): + self._oprot.writeMessageBegin('getCommonDomains', TMessageType.CALL, self._seqid) + args = getCommonDomains_args() + args.lastSynced = lastSynced + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getCommonDomains(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getCommonDomains_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, "getCommonDomains 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 issueRequestTokenForAutoLogin(self, channelId, otpId, redirectUrl): + """ + Parameters: + - channelId + - otpId + - redirectUrl + """ + self.send_issueRequestTokenForAutoLogin(channelId, otpId, redirectUrl) + return self.recv_issueRequestTokenForAutoLogin() + + def send_issueRequestTokenForAutoLogin(self, channelId, otpId, redirectUrl): + self._oprot.writeMessageBegin('issueRequestTokenForAutoLogin', TMessageType.CALL, self._seqid) + args = issueRequestTokenForAutoLogin_args() + args.channelId = channelId + args.otpId = otpId + args.redirectUrl = redirectUrl + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_issueRequestTokenForAutoLogin(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = issueRequestTokenForAutoLogin_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, "issueRequestTokenForAutoLogin failed: unknown result") + + def getUpdatedChannelIds(self, channelIds): + """ + Parameters: + - channelIds + """ + self.send_getUpdatedChannelIds(channelIds) + return self.recv_getUpdatedChannelIds() + + def send_getUpdatedChannelIds(self, channelIds): + self._oprot.writeMessageBegin('getUpdatedChannelIds', TMessageType.CALL, self._seqid) + args = getUpdatedChannelIds_args() + args.channelIds = channelIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getUpdatedChannelIds(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getUpdatedChannelIds_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, "getUpdatedChannelIds 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["issueOTP"] = Processor.process_issueOTP + 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["updateChannelSettings"] = Processor.process_updateChannelSettings + self._processMap["getCommonDomains"] = Processor.process_getCommonDomains + 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["issueRequestTokenForAutoLogin"] = Processor.process_issueRequestTokenForAutoLogin + self._processMap["getUpdatedChannelIds"] = Processor.process_getUpdatedChannelIds + self._processMap["reserveCoinUse"] = Processor.process_reserveCoinUse + self._processMap["revokeChannel"] = Processor.process_revokeChannel + self._processMap["syncChannelData"] = Processor.process_syncChannelData + self._processMap["updateChannelNotificationSetting"] = Processor.process_updateChannelNotificationSetting + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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_issueOTP(self, seqid, iprot, oprot): + args = issueOTP_args() + args.read(iprot) + iprot.readMessageEnd() + result = issueOTP_result() + try: + result.success = self._handler.issueOTP(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("issueOTP", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + 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_updateChannelSettings(self, seqid, iprot, oprot): + args = updateChannelSettings_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateChannelSettings_result() + try: + result.success = self._handler.updateChannelSettings(args.channelSettings) + 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("updateChannelSettings", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getCommonDomains(self, seqid, iprot, oprot): + args = getCommonDomains_args() + args.read(iprot) + iprot.readMessageEnd() + result = getCommonDomains_result() + try: + result.success = self._handler.getCommonDomains(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("getCommonDomains", 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_issueRequestTokenForAutoLogin(self, seqid, iprot, oprot): + args = issueRequestTokenForAutoLogin_args() + args.read(iprot) + iprot.readMessageEnd() + result = issueRequestTokenForAutoLogin_result() + try: + result.success = self._handler.issueRequestTokenForAutoLogin(args.channelId, args.otpId, args.redirectUrl) + 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("issueRequestTokenForAutoLogin", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getUpdatedChannelIds(self, seqid, iprot, oprot): + args = getUpdatedChannelIds_args() + args.read(iprot) + iprot.readMessageEnd() + result = getUpdatedChannelIds_result() + try: + result.success = self._handler.getUpdatedChannelIds(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("getUpdatedChannelIds", 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 issueOTP_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 == 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) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('issueOTP_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() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(issueOTP_args) +issueOTP_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'channelId', 'UTF8', None, ), # 2 +) + + +class issueOTP_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 = OTPResult() + 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('issueOTP_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(issueOTP_result) +issueOTP_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [OTPResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1 +) + + +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 = [] + (_etype1267, _size1264) = iprot.readListBegin() + for _i1268 in range(_size1264): + _elem1269 = ChannelNotificationSetting() + _elem1269.read(iprot) + self.success.append(_elem1269) + 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 iter1270 in self.success: + iter1270.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 = [] + (_etype1274, _size1271) = iprot.readListBegin() + for _i1275 in range(_size1271): + _elem1276 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.channelIds.append(_elem1276) + 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 iter1277 in self.channelIds: + oprot.writeString(iter1277.encode('utf-8') if sys.version_info[0] == 2 else iter1277) + 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 updateChannelSettings_args(object): + """ + Attributes: + - channelSettings + """ + + + def __init__(self, channelSettings=None,): + self.channelSettings = channelSettings + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.channelSettings = ChannelSettings() + self.channelSettings.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('updateChannelSettings_args') + if self.channelSettings is not None: + oprot.writeFieldBegin('channelSettings', TType.STRUCT, 1) + self.channelSettings.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(updateChannelSettings_args) +updateChannelSettings_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'channelSettings', [ChannelSettings, None], None, ), # 1 +) + + +class updateChannelSettings_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 = 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('updateChannelSettings_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(updateChannelSettings_result) +updateChannelSettings_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1 +) + + +class getCommonDomains_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 == 1: + 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('getCommonDomains_args') + if self.lastSynced is not None: + oprot.writeFieldBegin('lastSynced', TType.I64, 1) + 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(getCommonDomains_args) +getCommonDomains_args.thrift_spec = ( + None, # 0 + (1, TType.I64, 'lastSynced', None, None, ), # 1 +) + + +class getCommonDomains_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('getCommonDomains_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(getCommonDomains_result) +getCommonDomains_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ChannelDomains, 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 = [] + (_etype1281, _size1278) = iprot.readListBegin() + for _i1282 in range(_size1278): + _elem1283 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.authScheme.append(_elem1283) + 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 iter1284 in self.authScheme: + oprot.writeString(iter1284.encode('utf-8') if sys.version_info[0] == 2 else iter1284) + 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 issueRequestTokenForAutoLogin_args(object): + """ + Attributes: + - channelId + - otpId + - redirectUrl + """ + + + def __init__(self, channelId=None, otpId=None, redirectUrl=None,): + self.channelId = channelId + self.otpId = otpId + self.redirectUrl = redirectUrl + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.otpId = 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.redirectUrl = 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('issueRequestTokenForAutoLogin_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.otpId is not None: + oprot.writeFieldBegin('otpId', TType.STRING, 3) + oprot.writeString(self.otpId.encode('utf-8') if sys.version_info[0] == 2 else self.otpId) + oprot.writeFieldEnd() + if self.redirectUrl is not None: + oprot.writeFieldBegin('redirectUrl', TType.STRING, 4) + oprot.writeString(self.redirectUrl.encode('utf-8') if sys.version_info[0] == 2 else self.redirectUrl) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(issueRequestTokenForAutoLogin_args) +issueRequestTokenForAutoLogin_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'channelId', 'UTF8', None, ), # 2 + (3, TType.STRING, 'otpId', 'UTF8', None, ), # 3 + (4, TType.STRING, 'redirectUrl', 'UTF8', None, ), # 4 +) + + +class issueRequestTokenForAutoLogin_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('issueRequestTokenForAutoLogin_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(issueRequestTokenForAutoLogin_result) +issueRequestTokenForAutoLogin_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [ChannelException, None], None, ), # 1 +) + + +class getUpdatedChannelIds_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 = [] + (_etype1288, _size1285) = iprot.readListBegin() + for _i1289 in range(_size1285): + _elem1290 = ChannelIdWithLastUpdated() + _elem1290.read(iprot) + self.channelIds.append(_elem1290) + 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('getUpdatedChannelIds_args') + if self.channelIds is not None: + oprot.writeFieldBegin('channelIds', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.channelIds)) + for iter1291 in self.channelIds: + iter1291.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(getUpdatedChannelIds_args) +getUpdatedChannelIds_args.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'channelIds', (TType.STRUCT, [ChannelIdWithLastUpdated, None], False), None, ), # 1 +) + + +class getUpdatedChannelIds_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 = [] + (_etype1295, _size1292) = iprot.readListBegin() + for _i1296 in range(_size1292): + _elem1297 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1297) + 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('getUpdatedChannelIds_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1298 in self.success: + oprot.writeString(iter1298.encode('utf-8') if sys.version_info[0] == 2 else iter1298) + 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(getUpdatedChannelIds_result) +getUpdatedChannelIds_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), 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 = [] + (_etype1302, _size1299) = iprot.readListBegin() + for _i1303 in range(_size1299): + _elem1304 = ChannelNotificationSetting() + _elem1304.read(iprot) + self.setting.append(_elem1304) + 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 iter1305 in self.setting: + iter1305.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/akad/MessageService.py b/akad/MessageService.py new file mode 100644 index 0000000..94b7149 --- /dev/null +++ b/akad/MessageService.py @@ -0,0 +1,709 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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 = [] + (_etype1309, _size1306) = iprot.readListBegin() + for _i1310 in range(_size1306): + _elem1311 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.chatIds.append(_elem1311) + 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 iter1312 in self.chatIds: + oprot.writeString(iter1312.encode('utf-8') if sys.version_info[0] == 2 else iter1312) + 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 = [] + (_etype1316, _size1313) = iprot.readListBegin() + for _i1317 in range(_size1313): + _elem1318 = LastReadMessageIds() + _elem1318.read(iprot) + self.success.append(_elem1318) + 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 iter1319 in self.success: + iter1319.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/akad/ShopService.py b/akad/ShopService.py new file mode 100644 index 0000000..9b9039a --- /dev/null +++ b/akad/ShopService.py @@ -0,0 +1,5964 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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 = [] + (_etype1323, _size1320) = iprot.readListBegin() + for _i1324 in range(_size1320): + _elem1325 = CoinProductItem() + _elem1325.read(iprot) + self.success.append(_elem1325) + 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 iter1326 in self.success: + iter1326.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 = [] + (_etype1330, _size1327) = iprot.readListBegin() + for _i1331 in range(_size1327): + _elem1332 = CoinProductItem() + _elem1332.read(iprot) + self.success.append(_elem1332) + 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 iter1333 in self.success: + iter1333.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 = [] + (_etype1337, _size1334) = iprot.readListBegin() + for _i1338 in range(_size1334): + _elem1339 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.productIdList.append(_elem1339) + 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 iter1340 in self.productIdList: + oprot.writeString(iter1340.encode('utf-8') if sys.version_info[0] == 2 else iter1340) + 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 = [] + (_etype1344, _size1341) = iprot.readListBegin() + for _i1345 in range(_size1341): + _elem1346 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.productIdList.append(_elem1346) + 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 iter1347 in self.productIdList: + oprot.writeString(iter1347.encode('utf-8') if sys.version_info[0] == 2 else iter1347) + 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/akad/SnsAdaptorService.py b/akad/SnsAdaptorService.py new file mode 100644 index 0000000..1c6f46a --- /dev/null +++ b/akad/SnsAdaptorService.py @@ -0,0 +1,739 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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/akad/SpotService.py b/akad/SpotService.py new file mode 100644 index 0000000..1108f04 --- /dev/null +++ b/akad/SpotService.py @@ -0,0 +1,521 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 lookupByPhoneNumber(self, countryAreaCode, phoneNumber): + """ + Parameters: + - countryAreaCode + - phoneNumber + """ + pass + + def lookupNearby(self, location, category, query, countryAreaCode): + """ + Parameters: + - location + - category + - query + - countryAreaCode + """ + 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 lookupByPhoneNumber(self, countryAreaCode, phoneNumber): + """ + Parameters: + - countryAreaCode + - phoneNumber + """ + self.send_lookupByPhoneNumber(countryAreaCode, phoneNumber) + return self.recv_lookupByPhoneNumber() + + def send_lookupByPhoneNumber(self, countryAreaCode, phoneNumber): + self._oprot.writeMessageBegin('lookupByPhoneNumber', TMessageType.CALL, self._seqid) + args = lookupByPhoneNumber_args() + args.countryAreaCode = countryAreaCode + args.phoneNumber = phoneNumber + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_lookupByPhoneNumber(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = lookupByPhoneNumber_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, "lookupByPhoneNumber failed: unknown result") + + def lookupNearby(self, location, category, query, countryAreaCode): + """ + Parameters: + - location + - category + - query + - countryAreaCode + """ + self.send_lookupNearby(location, category, query, countryAreaCode) + return self.recv_lookupNearby() + + def send_lookupNearby(self, location, category, query, countryAreaCode): + self._oprot.writeMessageBegin('lookupNearby', TMessageType.CALL, self._seqid) + args = lookupNearby_args() + args.location = location + args.category = category + args.query = query + args.countryAreaCode = countryAreaCode + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_lookupNearby(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = lookupNearby_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, "lookupNearby failed: unknown result") + + +class Processor(Iface, TProcessor): + def __init__(self, handler): + self._handler = handler + self._processMap = {} + self._processMap["lookupByPhoneNumber"] = Processor.process_lookupByPhoneNumber + self._processMap["lookupNearby"] = Processor.process_lookupNearby + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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_lookupByPhoneNumber(self, seqid, iprot, oprot): + args = lookupByPhoneNumber_args() + args.read(iprot) + iprot.readMessageEnd() + result = lookupByPhoneNumber_result() + try: + result.success = self._handler.lookupByPhoneNumber(args.countryAreaCode, args.phoneNumber) + 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("lookupByPhoneNumber", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_lookupNearby(self, seqid, iprot, oprot): + args = lookupNearby_args() + args.read(iprot) + iprot.readMessageEnd() + result = lookupNearby_result() + try: + result.success = self._handler.lookupNearby(args.location, args.category, args.query, args.countryAreaCode) + 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("lookupNearby", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + +# HELPER FUNCTIONS AND STRUCTURES + + +class lookupByPhoneNumber_args(object): + """ + Attributes: + - countryAreaCode + - phoneNumber + """ + + + def __init__(self, countryAreaCode=None, phoneNumber=None,): + self.countryAreaCode = countryAreaCode + self.phoneNumber = phoneNumber + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.countryAreaCode = 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.phoneNumber = 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('lookupByPhoneNumber_args') + if self.countryAreaCode is not None: + oprot.writeFieldBegin('countryAreaCode', TType.STRING, 2) + oprot.writeString(self.countryAreaCode.encode('utf-8') if sys.version_info[0] == 2 else self.countryAreaCode) + oprot.writeFieldEnd() + if self.phoneNumber is not None: + oprot.writeFieldBegin('phoneNumber', TType.STRING, 3) + oprot.writeString(self.phoneNumber.encode('utf-8') if sys.version_info[0] == 2 else self.phoneNumber) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(lookupByPhoneNumber_args) +lookupByPhoneNumber_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'countryAreaCode', 'UTF8', None, ), # 2 + (3, TType.STRING, 'phoneNumber', 'UTF8', None, ), # 3 +) + + +class lookupByPhoneNumber_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 = SpotPhoneNumberResponse() + 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('lookupByPhoneNumber_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(lookupByPhoneNumber_result) +lookupByPhoneNumber_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [SpotPhoneNumberResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class lookupNearby_args(object): + """ + Attributes: + - location + - category + - query + - countryAreaCode + """ + + + def __init__(self, location=None, category=None, query=None, countryAreaCode=None,): + self.location = location + self.category = category + self.query = query + self.countryAreaCode = countryAreaCode + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.location = Location() + self.location.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.category = iprot.readI32() + 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.STRING: + self.countryAreaCode = 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('lookupNearby_args') + if self.location is not None: + oprot.writeFieldBegin('location', TType.STRUCT, 2) + self.location.write(oprot) + oprot.writeFieldEnd() + if self.category is not None: + oprot.writeFieldBegin('category', TType.I32, 3) + oprot.writeI32(self.category) + 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.countryAreaCode is not None: + oprot.writeFieldBegin('countryAreaCode', TType.STRING, 5) + oprot.writeString(self.countryAreaCode.encode('utf-8') if sys.version_info[0] == 2 else self.countryAreaCode) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(lookupNearby_args) +lookupNearby_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRUCT, 'location', [Location, None], None, ), # 2 + (3, TType.I32, 'category', None, None, ), # 3 + (4, TType.STRING, 'query', 'UTF8', None, ), # 4 + (5, TType.STRING, 'countryAreaCode', 'UTF8', None, ), # 5 +) + + +class lookupNearby_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 = SpotNearbyResponse() + 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('lookupNearby_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(lookupNearby_result) +lookupNearby_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [SpotNearbyResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) +fix_spec(all_structs) +del all_structs + diff --git a/akad/SquareService.py b/akad/SquareService.py new file mode 100644 index 0000000..8d34220 --- /dev/null +++ b/akad/SquareService.py @@ -0,0 +1,11016 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 getSquareChatAnnouncements(self, request): + """ + Parameters: + - request + """ + pass + + def deleteSquareChatAnnouncement(self, request): + """ + Parameters: + - request + """ + pass + + def createSquareChatAnnouncement(self, request): + """ + Parameters: + - request + """ + pass + + def getNoteStatus(self, request): + """ + Parameters: + - request + """ + pass + + def getSquareStatus(self, request): + """ + Parameters: + - request + """ + pass + + def reportSquareMember(self, request): + """ + Parameters: + - request + """ + pass + + def reportSquareMessage(self, request): + """ + Parameters: + - request + """ + pass + + def reportSquareChat(self, request): + """ + Parameters: + - request + """ + pass + + def reportSquare(self, request): + """ + Parameters: + - request + """ + pass + + def updateSquareMemberRelation(self, request): + """ + Parameters: + - request + """ + pass + + def updateSquareAuthority(self, request): + """ + Parameters: + - request + """ + pass + + def updateSquareChatMember(self, request): + """ + Parameters: + - request + """ + pass + + def updateSquareChat(self, request): + """ + Parameters: + - request + """ + pass + + def refreshSubscriptions(self, request): + """ + Parameters: + - request + """ + pass + + def removeSubscriptions(self, request): + """ + Parameters: + - request + """ + pass + + def rejectSquareMembers(self, request): + """ + Parameters: + - request + """ + pass + + def updateSquareMembers(self, request): + """ + Parameters: + - request + """ + pass + + def updateSquareMember(self, request): + """ + Parameters: + - request + """ + pass + + def updateSquareFeatureSet(self, request): + """ + Parameters: + - request + """ + pass + + def getSquareFeatureSet(self, request): + """ + Parameters: + - request + """ + pass + + def searchSquares(self, request): + """ + Parameters: + - request + """ + pass + + def updateSquare(self, request): + """ + Parameters: + - request + """ + pass + + def getCategories(self, request): + """ + Parameters: + - request + """ + pass + + def searchSquareMembers(self, request): + """ + Parameters: + - request + """ + pass + + def fetchSquareChatEvents(self, request): + """ + Parameters: + - request + """ + pass + + def fetchMyEvents(self, request): + """ + Parameters: + - request + """ + pass + + def markAsRead(self, request): + """ + Parameters: + - request + """ + pass + + def getSquareAuthority(self, request): + """ + Parameters: + - request + """ + pass + + def sendMessage(self, request): + """ + Parameters: + - request + """ + pass + + def leaveSquare(self, request): + """ + Parameters: + - request + """ + pass + + def leaveSquareChat(self, request): + """ + Parameters: + - request + """ + pass + + def joinSquareChat(self, request): + """ + Parameters: + - request + """ + pass + + def joinSquare(self, request): + """ + Parameters: + - request + """ + pass + + def inviteToSquare(self, request): + """ + Parameters: + - request + """ + pass + + def inviteToSquareChat(self, request): + """ + Parameters: + - request + """ + pass + + def getSquareMember(self, request): + """ + Parameters: + - request + """ + pass + + def getSquareMembers(self, request): + """ + Parameters: + - request + """ + pass + + def getSquareMemberRelation(self, request): + """ + Parameters: + - request + """ + pass + + def getSquareMemberRelations(self, request): + """ + Parameters: + - request + """ + pass + + def getSquareChatMembers(self, request): + """ + Parameters: + - request + """ + pass + + def getSquareChatStatus(self, request): + """ + Parameters: + - request + """ + pass + + def getSquareChat(self, request): + """ + Parameters: + - request + """ + pass + + def getSquare(self, request): + """ + Parameters: + - request + """ + pass + + def getJoinedSquares(self, request): + """ + Parameters: + - request + """ + pass + + def getJoinedSquareChats(self, request): + """ + Parameters: + - request + """ + pass + + def approveSquareMembers(self, request): + """ + Parameters: + - request + """ + pass + + def createSquareChat(self, request): + """ + Parameters: + - request + """ + pass + + def createSquare(self, request): + """ + Parameters: + - request + """ + pass + + def deleteSquareChat(self, request): + """ + Parameters: + - request + """ + pass + + def deleteSquare(self, request): + """ + Parameters: + - request + """ + pass + + def destroyMessage(self, request): + """ + Parameters: + - request + """ + pass + + def getJoinableSquareChats(self, request): + """ + Parameters: + - request + """ + pass + + def getInvitationTicketUrl(self, request): + """ + Parameters: + - request + """ + pass + + def findSquareByInvitationTicket(self, request): + """ + Parameters: + - request + """ + 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 getSquareChatAnnouncements(self, request): + """ + Parameters: + - request + """ + self.send_getSquareChatAnnouncements(request) + return self.recv_getSquareChatAnnouncements() + + def send_getSquareChatAnnouncements(self, request): + self._oprot.writeMessageBegin('getSquareChatAnnouncements', TMessageType.CALL, self._seqid) + args = getSquareChatAnnouncements_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSquareChatAnnouncements(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSquareChatAnnouncements_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, "getSquareChatAnnouncements failed: unknown result") + + def deleteSquareChatAnnouncement(self, request): + """ + Parameters: + - request + """ + self.send_deleteSquareChatAnnouncement(request) + return self.recv_deleteSquareChatAnnouncement() + + def send_deleteSquareChatAnnouncement(self, request): + self._oprot.writeMessageBegin('deleteSquareChatAnnouncement', TMessageType.CALL, self._seqid) + args = deleteSquareChatAnnouncement_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_deleteSquareChatAnnouncement(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = deleteSquareChatAnnouncement_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, "deleteSquareChatAnnouncement failed: unknown result") + + def createSquareChatAnnouncement(self, request): + """ + Parameters: + - request + """ + self.send_createSquareChatAnnouncement(request) + return self.recv_createSquareChatAnnouncement() + + def send_createSquareChatAnnouncement(self, request): + self._oprot.writeMessageBegin('createSquareChatAnnouncement', TMessageType.CALL, self._seqid) + args = createSquareChatAnnouncement_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_createSquareChatAnnouncement(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = createSquareChatAnnouncement_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, "createSquareChatAnnouncement failed: unknown result") + + def getNoteStatus(self, request): + """ + Parameters: + - request + """ + self.send_getNoteStatus(request) + return self.recv_getNoteStatus() + + def send_getNoteStatus(self, request): + self._oprot.writeMessageBegin('getNoteStatus', TMessageType.CALL, self._seqid) + args = getNoteStatus_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getNoteStatus(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getNoteStatus_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, "getNoteStatus failed: unknown result") + + def getSquareStatus(self, request): + """ + Parameters: + - request + """ + self.send_getSquareStatus(request) + return self.recv_getSquareStatus() + + def send_getSquareStatus(self, request): + self._oprot.writeMessageBegin('getSquareStatus', TMessageType.CALL, self._seqid) + args = getSquareStatus_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSquareStatus(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSquareStatus_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, "getSquareStatus failed: unknown result") + + def reportSquareMember(self, request): + """ + Parameters: + - request + """ + self.send_reportSquareMember(request) + return self.recv_reportSquareMember() + + def send_reportSquareMember(self, request): + self._oprot.writeMessageBegin('reportSquareMember', TMessageType.CALL, self._seqid) + args = reportSquareMember_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reportSquareMember(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reportSquareMember_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, "reportSquareMember failed: unknown result") + + def reportSquareMessage(self, request): + """ + Parameters: + - request + """ + self.send_reportSquareMessage(request) + return self.recv_reportSquareMessage() + + def send_reportSquareMessage(self, request): + self._oprot.writeMessageBegin('reportSquareMessage', TMessageType.CALL, self._seqid) + args = reportSquareMessage_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reportSquareMessage(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reportSquareMessage_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, "reportSquareMessage failed: unknown result") + + def reportSquareChat(self, request): + """ + Parameters: + - request + """ + self.send_reportSquareChat(request) + return self.recv_reportSquareChat() + + def send_reportSquareChat(self, request): + self._oprot.writeMessageBegin('reportSquareChat', TMessageType.CALL, self._seqid) + args = reportSquareChat_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reportSquareChat(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reportSquareChat_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, "reportSquareChat failed: unknown result") + + def reportSquare(self, request): + """ + Parameters: + - request + """ + self.send_reportSquare(request) + return self.recv_reportSquare() + + def send_reportSquare(self, request): + self._oprot.writeMessageBegin('reportSquare', TMessageType.CALL, self._seqid) + args = reportSquare_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reportSquare(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reportSquare_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, "reportSquare failed: unknown result") + + def updateSquareMemberRelation(self, request): + """ + Parameters: + - request + """ + self.send_updateSquareMemberRelation(request) + return self.recv_updateSquareMemberRelation() + + def send_updateSquareMemberRelation(self, request): + self._oprot.writeMessageBegin('updateSquareMemberRelation', TMessageType.CALL, self._seqid) + args = updateSquareMemberRelation_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateSquareMemberRelation(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateSquareMemberRelation_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, "updateSquareMemberRelation failed: unknown result") + + def updateSquareAuthority(self, request): + """ + Parameters: + - request + """ + self.send_updateSquareAuthority(request) + return self.recv_updateSquareAuthority() + + def send_updateSquareAuthority(self, request): + self._oprot.writeMessageBegin('updateSquareAuthority', TMessageType.CALL, self._seqid) + args = updateSquareAuthority_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateSquareAuthority(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateSquareAuthority_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, "updateSquareAuthority failed: unknown result") + + def updateSquareChatMember(self, request): + """ + Parameters: + - request + """ + self.send_updateSquareChatMember(request) + return self.recv_updateSquareChatMember() + + def send_updateSquareChatMember(self, request): + self._oprot.writeMessageBegin('updateSquareChatMember', TMessageType.CALL, self._seqid) + args = updateSquareChatMember_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateSquareChatMember(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateSquareChatMember_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, "updateSquareChatMember failed: unknown result") + + def updateSquareChat(self, request): + """ + Parameters: + - request + """ + self.send_updateSquareChat(request) + return self.recv_updateSquareChat() + + def send_updateSquareChat(self, request): + self._oprot.writeMessageBegin('updateSquareChat', TMessageType.CALL, self._seqid) + args = updateSquareChat_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateSquareChat(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateSquareChat_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, "updateSquareChat failed: unknown result") + + def refreshSubscriptions(self, request): + """ + Parameters: + - request + """ + self.send_refreshSubscriptions(request) + return self.recv_refreshSubscriptions() + + def send_refreshSubscriptions(self, request): + self._oprot.writeMessageBegin('refreshSubscriptions', TMessageType.CALL, self._seqid) + args = refreshSubscriptions_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_refreshSubscriptions(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = refreshSubscriptions_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, "refreshSubscriptions failed: unknown result") + + def removeSubscriptions(self, request): + """ + Parameters: + - request + """ + self.send_removeSubscriptions(request) + return self.recv_removeSubscriptions() + + def send_removeSubscriptions(self, request): + self._oprot.writeMessageBegin('removeSubscriptions', TMessageType.CALL, self._seqid) + args = removeSubscriptions_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_removeSubscriptions(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = removeSubscriptions_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, "removeSubscriptions failed: unknown result") + + def rejectSquareMembers(self, request): + """ + Parameters: + - request + """ + self.send_rejectSquareMembers(request) + return self.recv_rejectSquareMembers() + + def send_rejectSquareMembers(self, request): + self._oprot.writeMessageBegin('rejectSquareMembers', TMessageType.CALL, self._seqid) + args = rejectSquareMembers_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_rejectSquareMembers(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = rejectSquareMembers_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, "rejectSquareMembers failed: unknown result") + + def updateSquareMembers(self, request): + """ + Parameters: + - request + """ + self.send_updateSquareMembers(request) + return self.recv_updateSquareMembers() + + def send_updateSquareMembers(self, request): + self._oprot.writeMessageBegin('updateSquareMembers', TMessageType.CALL, self._seqid) + args = updateSquareMembers_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateSquareMembers(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateSquareMembers_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, "updateSquareMembers failed: unknown result") + + def updateSquareMember(self, request): + """ + Parameters: + - request + """ + self.send_updateSquareMember(request) + return self.recv_updateSquareMember() + + def send_updateSquareMember(self, request): + self._oprot.writeMessageBegin('updateSquareMember', TMessageType.CALL, self._seqid) + args = updateSquareMember_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateSquareMember(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateSquareMember_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, "updateSquareMember failed: unknown result") + + def updateSquareFeatureSet(self, request): + """ + Parameters: + - request + """ + self.send_updateSquareFeatureSet(request) + return self.recv_updateSquareFeatureSet() + + def send_updateSquareFeatureSet(self, request): + self._oprot.writeMessageBegin('updateSquareFeatureSet', TMessageType.CALL, self._seqid) + args = updateSquareFeatureSet_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateSquareFeatureSet(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateSquareFeatureSet_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, "updateSquareFeatureSet failed: unknown result") + + def getSquareFeatureSet(self, request): + """ + Parameters: + - request + """ + self.send_getSquareFeatureSet(request) + return self.recv_getSquareFeatureSet() + + def send_getSquareFeatureSet(self, request): + self._oprot.writeMessageBegin('getSquareFeatureSet', TMessageType.CALL, self._seqid) + args = getSquareFeatureSet_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSquareFeatureSet(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSquareFeatureSet_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, "getSquareFeatureSet failed: unknown result") + + def searchSquares(self, request): + """ + Parameters: + - request + """ + self.send_searchSquares(request) + return self.recv_searchSquares() + + def send_searchSquares(self, request): + self._oprot.writeMessageBegin('searchSquares', TMessageType.CALL, self._seqid) + args = searchSquares_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_searchSquares(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = searchSquares_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, "searchSquares failed: unknown result") + + def updateSquare(self, request): + """ + Parameters: + - request + """ + self.send_updateSquare(request) + return self.recv_updateSquare() + + def send_updateSquare(self, request): + self._oprot.writeMessageBegin('updateSquare', TMessageType.CALL, self._seqid) + args = updateSquare_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateSquare(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateSquare_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, "updateSquare failed: unknown result") + + def getCategories(self, request): + """ + Parameters: + - request + """ + self.send_getCategories(request) + return self.recv_getCategories() + + def send_getCategories(self, request): + self._oprot.writeMessageBegin('getCategories', TMessageType.CALL, self._seqid) + args = getCategories_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getCategories(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getCategories_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, "getCategories failed: unknown result") + + def searchSquareMembers(self, request): + """ + Parameters: + - request + """ + self.send_searchSquareMembers(request) + return self.recv_searchSquareMembers() + + def send_searchSquareMembers(self, request): + self._oprot.writeMessageBegin('searchSquareMembers', TMessageType.CALL, self._seqid) + args = searchSquareMembers_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_searchSquareMembers(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = searchSquareMembers_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, "searchSquareMembers failed: unknown result") + + def fetchSquareChatEvents(self, request): + """ + Parameters: + - request + """ + self.send_fetchSquareChatEvents(request) + return self.recv_fetchSquareChatEvents() + + def send_fetchSquareChatEvents(self, request): + self._oprot.writeMessageBegin('fetchSquareChatEvents', TMessageType.CALL, self._seqid) + args = fetchSquareChatEvents_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_fetchSquareChatEvents(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = fetchSquareChatEvents_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, "fetchSquareChatEvents failed: unknown result") + + def fetchMyEvents(self, request): + """ + Parameters: + - request + """ + self.send_fetchMyEvents(request) + return self.recv_fetchMyEvents() + + def send_fetchMyEvents(self, request): + self._oprot.writeMessageBegin('fetchMyEvents', TMessageType.CALL, self._seqid) + args = fetchMyEvents_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_fetchMyEvents(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = fetchMyEvents_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, "fetchMyEvents failed: unknown result") + + def markAsRead(self, request): + """ + Parameters: + - request + """ + self.send_markAsRead(request) + return self.recv_markAsRead() + + def send_markAsRead(self, request): + self._oprot.writeMessageBegin('markAsRead', TMessageType.CALL, self._seqid) + args = markAsRead_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_markAsRead(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = markAsRead_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, "markAsRead failed: unknown result") + + def getSquareAuthority(self, request): + """ + Parameters: + - request + """ + self.send_getSquareAuthority(request) + return self.recv_getSquareAuthority() + + def send_getSquareAuthority(self, request): + self._oprot.writeMessageBegin('getSquareAuthority', TMessageType.CALL, self._seqid) + args = getSquareAuthority_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSquareAuthority(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSquareAuthority_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, "getSquareAuthority failed: unknown result") + + def sendMessage(self, request): + """ + Parameters: + - request + """ + self.send_sendMessage(request) + return self.recv_sendMessage() + + def send_sendMessage(self, request): + self._oprot.writeMessageBegin('sendMessage', TMessageType.CALL, self._seqid) + args = sendMessage_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendMessage(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendMessage_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, "sendMessage failed: unknown result") + + def leaveSquare(self, request): + """ + Parameters: + - request + """ + self.send_leaveSquare(request) + return self.recv_leaveSquare() + + def send_leaveSquare(self, request): + self._oprot.writeMessageBegin('leaveSquare', TMessageType.CALL, self._seqid) + args = leaveSquare_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_leaveSquare(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = leaveSquare_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, "leaveSquare failed: unknown result") + + def leaveSquareChat(self, request): + """ + Parameters: + - request + """ + self.send_leaveSquareChat(request) + return self.recv_leaveSquareChat() + + def send_leaveSquareChat(self, request): + self._oprot.writeMessageBegin('leaveSquareChat', TMessageType.CALL, self._seqid) + args = leaveSquareChat_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_leaveSquareChat(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = leaveSquareChat_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, "leaveSquareChat failed: unknown result") + + def joinSquareChat(self, request): + """ + Parameters: + - request + """ + self.send_joinSquareChat(request) + return self.recv_joinSquareChat() + + def send_joinSquareChat(self, request): + self._oprot.writeMessageBegin('joinSquareChat', TMessageType.CALL, self._seqid) + args = joinSquareChat_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_joinSquareChat(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = joinSquareChat_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, "joinSquareChat failed: unknown result") + + def joinSquare(self, request): + """ + Parameters: + - request + """ + self.send_joinSquare(request) + return self.recv_joinSquare() + + def send_joinSquare(self, request): + self._oprot.writeMessageBegin('joinSquare', TMessageType.CALL, self._seqid) + args = joinSquare_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_joinSquare(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = joinSquare_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, "joinSquare failed: unknown result") + + def inviteToSquare(self, request): + """ + Parameters: + - request + """ + self.send_inviteToSquare(request) + return self.recv_inviteToSquare() + + def send_inviteToSquare(self, request): + self._oprot.writeMessageBegin('inviteToSquare', TMessageType.CALL, self._seqid) + args = inviteToSquare_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_inviteToSquare(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = inviteToSquare_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, "inviteToSquare failed: unknown result") + + def inviteToSquareChat(self, request): + """ + Parameters: + - request + """ + self.send_inviteToSquareChat(request) + return self.recv_inviteToSquareChat() + + def send_inviteToSquareChat(self, request): + self._oprot.writeMessageBegin('inviteToSquareChat', TMessageType.CALL, self._seqid) + args = inviteToSquareChat_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_inviteToSquareChat(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = inviteToSquareChat_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, "inviteToSquareChat failed: unknown result") + + def getSquareMember(self, request): + """ + Parameters: + - request + """ + self.send_getSquareMember(request) + return self.recv_getSquareMember() + + def send_getSquareMember(self, request): + self._oprot.writeMessageBegin('getSquareMember', TMessageType.CALL, self._seqid) + args = getSquareMember_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSquareMember(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSquareMember_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, "getSquareMember failed: unknown result") + + def getSquareMembers(self, request): + """ + Parameters: + - request + """ + self.send_getSquareMembers(request) + return self.recv_getSquareMembers() + + def send_getSquareMembers(self, request): + self._oprot.writeMessageBegin('getSquareMembers', TMessageType.CALL, self._seqid) + args = getSquareMembers_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSquareMembers(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSquareMembers_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, "getSquareMembers failed: unknown result") + + def getSquareMemberRelation(self, request): + """ + Parameters: + - request + """ + self.send_getSquareMemberRelation(request) + return self.recv_getSquareMemberRelation() + + def send_getSquareMemberRelation(self, request): + self._oprot.writeMessageBegin('getSquareMemberRelation', TMessageType.CALL, self._seqid) + args = getSquareMemberRelation_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSquareMemberRelation(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSquareMemberRelation_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, "getSquareMemberRelation failed: unknown result") + + def getSquareMemberRelations(self, request): + """ + Parameters: + - request + """ + self.send_getSquareMemberRelations(request) + return self.recv_getSquareMemberRelations() + + def send_getSquareMemberRelations(self, request): + self._oprot.writeMessageBegin('getSquareMemberRelations', TMessageType.CALL, self._seqid) + args = getSquareMemberRelations_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSquareMemberRelations(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSquareMemberRelations_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, "getSquareMemberRelations failed: unknown result") + + def getSquareChatMembers(self, request): + """ + Parameters: + - request + """ + self.send_getSquareChatMembers(request) + return self.recv_getSquareChatMembers() + + def send_getSquareChatMembers(self, request): + self._oprot.writeMessageBegin('getSquareChatMembers', TMessageType.CALL, self._seqid) + args = getSquareChatMembers_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSquareChatMembers(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSquareChatMembers_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, "getSquareChatMembers failed: unknown result") + + def getSquareChatStatus(self, request): + """ + Parameters: + - request + """ + self.send_getSquareChatStatus(request) + return self.recv_getSquareChatStatus() + + def send_getSquareChatStatus(self, request): + self._oprot.writeMessageBegin('getSquareChatStatus', TMessageType.CALL, self._seqid) + args = getSquareChatStatus_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSquareChatStatus(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSquareChatStatus_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, "getSquareChatStatus failed: unknown result") + + def getSquareChat(self, request): + """ + Parameters: + - request + """ + self.send_getSquareChat(request) + return self.recv_getSquareChat() + + def send_getSquareChat(self, request): + self._oprot.writeMessageBegin('getSquareChat', TMessageType.CALL, self._seqid) + args = getSquareChat_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSquareChat(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSquareChat_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, "getSquareChat failed: unknown result") + + def getSquare(self, request): + """ + Parameters: + - request + """ + self.send_getSquare(request) + return self.recv_getSquare() + + def send_getSquare(self, request): + self._oprot.writeMessageBegin('getSquare', TMessageType.CALL, self._seqid) + args = getSquare_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSquare(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSquare_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, "getSquare failed: unknown result") + + def getJoinedSquares(self, request): + """ + Parameters: + - request + """ + self.send_getJoinedSquares(request) + return self.recv_getJoinedSquares() + + def send_getJoinedSquares(self, request): + self._oprot.writeMessageBegin('getJoinedSquares', TMessageType.CALL, self._seqid) + args = getJoinedSquares_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getJoinedSquares(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getJoinedSquares_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, "getJoinedSquares failed: unknown result") + + def getJoinedSquareChats(self, request): + """ + Parameters: + - request + """ + self.send_getJoinedSquareChats(request) + return self.recv_getJoinedSquareChats() + + def send_getJoinedSquareChats(self, request): + self._oprot.writeMessageBegin('getJoinedSquareChats', TMessageType.CALL, self._seqid) + args = getJoinedSquareChats_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getJoinedSquareChats(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getJoinedSquareChats_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, "getJoinedSquareChats failed: unknown result") + + def approveSquareMembers(self, request): + """ + Parameters: + - request + """ + self.send_approveSquareMembers(request) + return self.recv_approveSquareMembers() + + def send_approveSquareMembers(self, request): + self._oprot.writeMessageBegin('approveSquareMembers', TMessageType.CALL, self._seqid) + args = approveSquareMembers_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_approveSquareMembers(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = approveSquareMembers_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, "approveSquareMembers failed: unknown result") + + def createSquareChat(self, request): + """ + Parameters: + - request + """ + self.send_createSquareChat(request) + return self.recv_createSquareChat() + + def send_createSquareChat(self, request): + self._oprot.writeMessageBegin('createSquareChat', TMessageType.CALL, self._seqid) + args = createSquareChat_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_createSquareChat(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = createSquareChat_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, "createSquareChat failed: unknown result") + + def createSquare(self, request): + """ + Parameters: + - request + """ + self.send_createSquare(request) + return self.recv_createSquare() + + def send_createSquare(self, request): + self._oprot.writeMessageBegin('createSquare', TMessageType.CALL, self._seqid) + args = createSquare_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_createSquare(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = createSquare_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, "createSquare failed: unknown result") + + def deleteSquareChat(self, request): + """ + Parameters: + - request + """ + self.send_deleteSquareChat(request) + return self.recv_deleteSquareChat() + + def send_deleteSquareChat(self, request): + self._oprot.writeMessageBegin('deleteSquareChat', TMessageType.CALL, self._seqid) + args = deleteSquareChat_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_deleteSquareChat(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = deleteSquareChat_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, "deleteSquareChat failed: unknown result") + + def deleteSquare(self, request): + """ + Parameters: + - request + """ + self.send_deleteSquare(request) + return self.recv_deleteSquare() + + def send_deleteSquare(self, request): + self._oprot.writeMessageBegin('deleteSquare', TMessageType.CALL, self._seqid) + args = deleteSquare_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_deleteSquare(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = deleteSquare_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, "deleteSquare failed: unknown result") + + def destroyMessage(self, request): + """ + Parameters: + - request + """ + self.send_destroyMessage(request) + return self.recv_destroyMessage() + + def send_destroyMessage(self, request): + self._oprot.writeMessageBegin('destroyMessage', TMessageType.CALL, self._seqid) + args = destroyMessage_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_destroyMessage(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = destroyMessage_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, "destroyMessage failed: unknown result") + + def getJoinableSquareChats(self, request): + """ + Parameters: + - request + """ + self.send_getJoinableSquareChats(request) + return self.recv_getJoinableSquareChats() + + def send_getJoinableSquareChats(self, request): + self._oprot.writeMessageBegin('getJoinableSquareChats', TMessageType.CALL, self._seqid) + args = getJoinableSquareChats_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getJoinableSquareChats(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getJoinableSquareChats_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, "getJoinableSquareChats failed: unknown result") + + def getInvitationTicketUrl(self, request): + """ + Parameters: + - request + """ + self.send_getInvitationTicketUrl(request) + return self.recv_getInvitationTicketUrl() + + def send_getInvitationTicketUrl(self, request): + self._oprot.writeMessageBegin('getInvitationTicketUrl', TMessageType.CALL, self._seqid) + args = getInvitationTicketUrl_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getInvitationTicketUrl(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getInvitationTicketUrl_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, "getInvitationTicketUrl failed: unknown result") + + def findSquareByInvitationTicket(self, request): + """ + Parameters: + - request + """ + self.send_findSquareByInvitationTicket(request) + return self.recv_findSquareByInvitationTicket() + + def send_findSquareByInvitationTicket(self, request): + self._oprot.writeMessageBegin('findSquareByInvitationTicket', TMessageType.CALL, self._seqid) + args = findSquareByInvitationTicket_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_findSquareByInvitationTicket(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = findSquareByInvitationTicket_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, "findSquareByInvitationTicket failed: unknown result") + + +class Processor(Iface, TProcessor): + def __init__(self, handler): + self._handler = handler + self._processMap = {} + self._processMap["getSquareChatAnnouncements"] = Processor.process_getSquareChatAnnouncements + self._processMap["deleteSquareChatAnnouncement"] = Processor.process_deleteSquareChatAnnouncement + self._processMap["createSquareChatAnnouncement"] = Processor.process_createSquareChatAnnouncement + self._processMap["getNoteStatus"] = Processor.process_getNoteStatus + self._processMap["getSquareStatus"] = Processor.process_getSquareStatus + self._processMap["reportSquareMember"] = Processor.process_reportSquareMember + self._processMap["reportSquareMessage"] = Processor.process_reportSquareMessage + self._processMap["reportSquareChat"] = Processor.process_reportSquareChat + self._processMap["reportSquare"] = Processor.process_reportSquare + self._processMap["updateSquareMemberRelation"] = Processor.process_updateSquareMemberRelation + self._processMap["updateSquareAuthority"] = Processor.process_updateSquareAuthority + self._processMap["updateSquareChatMember"] = Processor.process_updateSquareChatMember + self._processMap["updateSquareChat"] = Processor.process_updateSquareChat + self._processMap["refreshSubscriptions"] = Processor.process_refreshSubscriptions + self._processMap["removeSubscriptions"] = Processor.process_removeSubscriptions + self._processMap["rejectSquareMembers"] = Processor.process_rejectSquareMembers + self._processMap["updateSquareMembers"] = Processor.process_updateSquareMembers + self._processMap["updateSquareMember"] = Processor.process_updateSquareMember + self._processMap["updateSquareFeatureSet"] = Processor.process_updateSquareFeatureSet + self._processMap["getSquareFeatureSet"] = Processor.process_getSquareFeatureSet + self._processMap["searchSquares"] = Processor.process_searchSquares + self._processMap["updateSquare"] = Processor.process_updateSquare + self._processMap["getCategories"] = Processor.process_getCategories + self._processMap["searchSquareMembers"] = Processor.process_searchSquareMembers + self._processMap["fetchSquareChatEvents"] = Processor.process_fetchSquareChatEvents + self._processMap["fetchMyEvents"] = Processor.process_fetchMyEvents + self._processMap["markAsRead"] = Processor.process_markAsRead + self._processMap["getSquareAuthority"] = Processor.process_getSquareAuthority + self._processMap["sendMessage"] = Processor.process_sendMessage + self._processMap["leaveSquare"] = Processor.process_leaveSquare + self._processMap["leaveSquareChat"] = Processor.process_leaveSquareChat + self._processMap["joinSquareChat"] = Processor.process_joinSquareChat + self._processMap["joinSquare"] = Processor.process_joinSquare + self._processMap["inviteToSquare"] = Processor.process_inviteToSquare + self._processMap["inviteToSquareChat"] = Processor.process_inviteToSquareChat + self._processMap["getSquareMember"] = Processor.process_getSquareMember + self._processMap["getSquareMembers"] = Processor.process_getSquareMembers + self._processMap["getSquareMemberRelation"] = Processor.process_getSquareMemberRelation + self._processMap["getSquareMemberRelations"] = Processor.process_getSquareMemberRelations + self._processMap["getSquareChatMembers"] = Processor.process_getSquareChatMembers + self._processMap["getSquareChatStatus"] = Processor.process_getSquareChatStatus + self._processMap["getSquareChat"] = Processor.process_getSquareChat + self._processMap["getSquare"] = Processor.process_getSquare + self._processMap["getJoinedSquares"] = Processor.process_getJoinedSquares + self._processMap["getJoinedSquareChats"] = Processor.process_getJoinedSquareChats + self._processMap["approveSquareMembers"] = Processor.process_approveSquareMembers + self._processMap["createSquareChat"] = Processor.process_createSquareChat + self._processMap["createSquare"] = Processor.process_createSquare + self._processMap["deleteSquareChat"] = Processor.process_deleteSquareChat + self._processMap["deleteSquare"] = Processor.process_deleteSquare + self._processMap["destroyMessage"] = Processor.process_destroyMessage + self._processMap["getJoinableSquareChats"] = Processor.process_getJoinableSquareChats + self._processMap["getInvitationTicketUrl"] = Processor.process_getInvitationTicketUrl + self._processMap["findSquareByInvitationTicket"] = Processor.process_findSquareByInvitationTicket + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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_getSquareChatAnnouncements(self, seqid, iprot, oprot): + args = getSquareChatAnnouncements_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSquareChatAnnouncements_result() + try: + result.success = self._handler.getSquareChatAnnouncements(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getSquareChatAnnouncements", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteSquareChatAnnouncement(self, seqid, iprot, oprot): + args = deleteSquareChatAnnouncement_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteSquareChatAnnouncement_result() + try: + result.success = self._handler.deleteSquareChatAnnouncement(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("deleteSquareChatAnnouncement", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_createSquareChatAnnouncement(self, seqid, iprot, oprot): + args = createSquareChatAnnouncement_args() + args.read(iprot) + iprot.readMessageEnd() + result = createSquareChatAnnouncement_result() + try: + result.success = self._handler.createSquareChatAnnouncement(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("createSquareChatAnnouncement", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getNoteStatus(self, seqid, iprot, oprot): + args = getNoteStatus_args() + args.read(iprot) + iprot.readMessageEnd() + result = getNoteStatus_result() + try: + result.success = self._handler.getNoteStatus(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getNoteStatus", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSquareStatus(self, seqid, iprot, oprot): + args = getSquareStatus_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSquareStatus_result() + try: + result.success = self._handler.getSquareStatus(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getSquareStatus", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_reportSquareMember(self, seqid, iprot, oprot): + args = reportSquareMember_args() + args.read(iprot) + iprot.readMessageEnd() + result = reportSquareMember_result() + try: + result.success = self._handler.reportSquareMember(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("reportSquareMember", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_reportSquareMessage(self, seqid, iprot, oprot): + args = reportSquareMessage_args() + args.read(iprot) + iprot.readMessageEnd() + result = reportSquareMessage_result() + try: + result.success = self._handler.reportSquareMessage(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("reportSquareMessage", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_reportSquareChat(self, seqid, iprot, oprot): + args = reportSquareChat_args() + args.read(iprot) + iprot.readMessageEnd() + result = reportSquareChat_result() + try: + result.success = self._handler.reportSquareChat(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("reportSquareChat", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_reportSquare(self, seqid, iprot, oprot): + args = reportSquare_args() + args.read(iprot) + iprot.readMessageEnd() + result = reportSquare_result() + try: + result.success = self._handler.reportSquare(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("reportSquare", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateSquareMemberRelation(self, seqid, iprot, oprot): + args = updateSquareMemberRelation_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateSquareMemberRelation_result() + try: + result.success = self._handler.updateSquareMemberRelation(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("updateSquareMemberRelation", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateSquareAuthority(self, seqid, iprot, oprot): + args = updateSquareAuthority_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateSquareAuthority_result() + try: + result.success = self._handler.updateSquareAuthority(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("updateSquareAuthority", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateSquareChatMember(self, seqid, iprot, oprot): + args = updateSquareChatMember_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateSquareChatMember_result() + try: + result.success = self._handler.updateSquareChatMember(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("updateSquareChatMember", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateSquareChat(self, seqid, iprot, oprot): + args = updateSquareChat_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateSquareChat_result() + try: + result.success = self._handler.updateSquareChat(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("updateSquareChat", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_refreshSubscriptions(self, seqid, iprot, oprot): + args = refreshSubscriptions_args() + args.read(iprot) + iprot.readMessageEnd() + result = refreshSubscriptions_result() + try: + result.success = self._handler.refreshSubscriptions(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("refreshSubscriptions", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_removeSubscriptions(self, seqid, iprot, oprot): + args = removeSubscriptions_args() + args.read(iprot) + iprot.readMessageEnd() + result = removeSubscriptions_result() + try: + result.success = self._handler.removeSubscriptions(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("removeSubscriptions", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_rejectSquareMembers(self, seqid, iprot, oprot): + args = rejectSquareMembers_args() + args.read(iprot) + iprot.readMessageEnd() + result = rejectSquareMembers_result() + try: + result.success = self._handler.rejectSquareMembers(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("rejectSquareMembers", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateSquareMembers(self, seqid, iprot, oprot): + args = updateSquareMembers_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateSquareMembers_result() + try: + result.success = self._handler.updateSquareMembers(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("updateSquareMembers", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateSquareMember(self, seqid, iprot, oprot): + args = updateSquareMember_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateSquareMember_result() + try: + result.success = self._handler.updateSquareMember(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("updateSquareMember", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateSquareFeatureSet(self, seqid, iprot, oprot): + args = updateSquareFeatureSet_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateSquareFeatureSet_result() + try: + result.success = self._handler.updateSquareFeatureSet(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("updateSquareFeatureSet", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSquareFeatureSet(self, seqid, iprot, oprot): + args = getSquareFeatureSet_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSquareFeatureSet_result() + try: + result.success = self._handler.getSquareFeatureSet(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getSquareFeatureSet", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchSquares(self, seqid, iprot, oprot): + args = searchSquares_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchSquares_result() + try: + result.success = self._handler.searchSquares(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("searchSquares", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateSquare(self, seqid, iprot, oprot): + args = updateSquare_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateSquare_result() + try: + result.success = self._handler.updateSquare(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("updateSquare", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getCategories(self, seqid, iprot, oprot): + args = getCategories_args() + args.read(iprot) + iprot.readMessageEnd() + result = getCategories_result() + try: + result.success = self._handler.getCategories(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getCategories", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_searchSquareMembers(self, seqid, iprot, oprot): + args = searchSquareMembers_args() + args.read(iprot) + iprot.readMessageEnd() + result = searchSquareMembers_result() + try: + result.success = self._handler.searchSquareMembers(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("searchSquareMembers", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_fetchSquareChatEvents(self, seqid, iprot, oprot): + args = fetchSquareChatEvents_args() + args.read(iprot) + iprot.readMessageEnd() + result = fetchSquareChatEvents_result() + try: + result.success = self._handler.fetchSquareChatEvents(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("fetchSquareChatEvents", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_fetchMyEvents(self, seqid, iprot, oprot): + args = fetchMyEvents_args() + args.read(iprot) + iprot.readMessageEnd() + result = fetchMyEvents_result() + try: + result.success = self._handler.fetchMyEvents(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("fetchMyEvents", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_markAsRead(self, seqid, iprot, oprot): + args = markAsRead_args() + args.read(iprot) + iprot.readMessageEnd() + result = markAsRead_result() + try: + result.success = self._handler.markAsRead(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("markAsRead", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSquareAuthority(self, seqid, iprot, oprot): + args = getSquareAuthority_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSquareAuthority_result() + try: + result.success = self._handler.getSquareAuthority(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getSquareAuthority", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_sendMessage(self, seqid, iprot, oprot): + args = sendMessage_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendMessage_result() + try: + result.success = self._handler.sendMessage(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("sendMessage", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_leaveSquare(self, seqid, iprot, oprot): + args = leaveSquare_args() + args.read(iprot) + iprot.readMessageEnd() + result = leaveSquare_result() + try: + result.success = self._handler.leaveSquare(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("leaveSquare", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_leaveSquareChat(self, seqid, iprot, oprot): + args = leaveSquareChat_args() + args.read(iprot) + iprot.readMessageEnd() + result = leaveSquareChat_result() + try: + result.success = self._handler.leaveSquareChat(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("leaveSquareChat", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_joinSquareChat(self, seqid, iprot, oprot): + args = joinSquareChat_args() + args.read(iprot) + iprot.readMessageEnd() + result = joinSquareChat_result() + try: + result.success = self._handler.joinSquareChat(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("joinSquareChat", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_joinSquare(self, seqid, iprot, oprot): + args = joinSquare_args() + args.read(iprot) + iprot.readMessageEnd() + result = joinSquare_result() + try: + result.success = self._handler.joinSquare(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("joinSquare", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_inviteToSquare(self, seqid, iprot, oprot): + args = inviteToSquare_args() + args.read(iprot) + iprot.readMessageEnd() + result = inviteToSquare_result() + try: + result.success = self._handler.inviteToSquare(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("inviteToSquare", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_inviteToSquareChat(self, seqid, iprot, oprot): + args = inviteToSquareChat_args() + args.read(iprot) + iprot.readMessageEnd() + result = inviteToSquareChat_result() + try: + result.success = self._handler.inviteToSquareChat(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("inviteToSquareChat", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSquareMember(self, seqid, iprot, oprot): + args = getSquareMember_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSquareMember_result() + try: + result.success = self._handler.getSquareMember(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getSquareMember", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSquareMembers(self, seqid, iprot, oprot): + args = getSquareMembers_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSquareMembers_result() + try: + result.success = self._handler.getSquareMembers(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getSquareMembers", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSquareMemberRelation(self, seqid, iprot, oprot): + args = getSquareMemberRelation_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSquareMemberRelation_result() + try: + result.success = self._handler.getSquareMemberRelation(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getSquareMemberRelation", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSquareMemberRelations(self, seqid, iprot, oprot): + args = getSquareMemberRelations_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSquareMemberRelations_result() + try: + result.success = self._handler.getSquareMemberRelations(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getSquareMemberRelations", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSquareChatMembers(self, seqid, iprot, oprot): + args = getSquareChatMembers_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSquareChatMembers_result() + try: + result.success = self._handler.getSquareChatMembers(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getSquareChatMembers", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSquareChatStatus(self, seqid, iprot, oprot): + args = getSquareChatStatus_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSquareChatStatus_result() + try: + result.success = self._handler.getSquareChatStatus(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getSquareChatStatus", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSquareChat(self, seqid, iprot, oprot): + args = getSquareChat_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSquareChat_result() + try: + result.success = self._handler.getSquareChat(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getSquareChat", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSquare(self, seqid, iprot, oprot): + args = getSquare_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSquare_result() + try: + result.success = self._handler.getSquare(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getSquare", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getJoinedSquares(self, seqid, iprot, oprot): + args = getJoinedSquares_args() + args.read(iprot) + iprot.readMessageEnd() + result = getJoinedSquares_result() + try: + result.success = self._handler.getJoinedSquares(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getJoinedSquares", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getJoinedSquareChats(self, seqid, iprot, oprot): + args = getJoinedSquareChats_args() + args.read(iprot) + iprot.readMessageEnd() + result = getJoinedSquareChats_result() + try: + result.success = self._handler.getJoinedSquareChats(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getJoinedSquareChats", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_approveSquareMembers(self, seqid, iprot, oprot): + args = approveSquareMembers_args() + args.read(iprot) + iprot.readMessageEnd() + result = approveSquareMembers_result() + try: + result.success = self._handler.approveSquareMembers(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("approveSquareMembers", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_createSquareChat(self, seqid, iprot, oprot): + args = createSquareChat_args() + args.read(iprot) + iprot.readMessageEnd() + result = createSquareChat_result() + try: + result.success = self._handler.createSquareChat(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("createSquareChat", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_createSquare(self, seqid, iprot, oprot): + args = createSquare_args() + args.read(iprot) + iprot.readMessageEnd() + result = createSquare_result() + try: + result.success = self._handler.createSquare(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("createSquare", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteSquareChat(self, seqid, iprot, oprot): + args = deleteSquareChat_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteSquareChat_result() + try: + result.success = self._handler.deleteSquareChat(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("deleteSquareChat", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_deleteSquare(self, seqid, iprot, oprot): + args = deleteSquare_args() + args.read(iprot) + iprot.readMessageEnd() + result = deleteSquare_result() + try: + result.success = self._handler.deleteSquare(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("deleteSquare", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_destroyMessage(self, seqid, iprot, oprot): + args = destroyMessage_args() + args.read(iprot) + iprot.readMessageEnd() + result = destroyMessage_result() + try: + result.success = self._handler.destroyMessage(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("destroyMessage", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getJoinableSquareChats(self, seqid, iprot, oprot): + args = getJoinableSquareChats_args() + args.read(iprot) + iprot.readMessageEnd() + result = getJoinableSquareChats_result() + try: + result.success = self._handler.getJoinableSquareChats(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getJoinableSquareChats", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getInvitationTicketUrl(self, seqid, iprot, oprot): + args = getInvitationTicketUrl_args() + args.read(iprot) + iprot.readMessageEnd() + result = getInvitationTicketUrl_result() + try: + result.success = self._handler.getInvitationTicketUrl(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("getInvitationTicketUrl", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_findSquareByInvitationTicket(self, seqid, iprot, oprot): + args = findSquareByInvitationTicket_args() + args.read(iprot) + iprot.readMessageEnd() + result = findSquareByInvitationTicket_result() + try: + result.success = self._handler.findSquareByInvitationTicket(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except SquareException 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("findSquareByInvitationTicket", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + +# HELPER FUNCTIONS AND STRUCTURES + + +class getSquareChatAnnouncements_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 == 1: + if ftype == TType.STRUCT: + self.request = GetSquareChatAnnouncementsRequest() + 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('getSquareChatAnnouncements_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getSquareChatAnnouncements_args) +getSquareChatAnnouncements_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetSquareChatAnnouncementsRequest, None], None, ), # 1 +) + + +class getSquareChatAnnouncements_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 = GetSquareChatAnnouncementsResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getSquareChatAnnouncements_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(getSquareChatAnnouncements_result) +getSquareChatAnnouncements_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSquareChatAnnouncementsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class deleteSquareChatAnnouncement_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 == 1: + if ftype == TType.STRUCT: + self.request = DeleteSquareChatAnnouncementRequest() + 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('deleteSquareChatAnnouncement_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(deleteSquareChatAnnouncement_args) +deleteSquareChatAnnouncement_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [DeleteSquareChatAnnouncementRequest, None], None, ), # 1 +) + + +class deleteSquareChatAnnouncement_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 = DeleteSquareChatAnnouncementResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('deleteSquareChatAnnouncement_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(deleteSquareChatAnnouncement_result) +deleteSquareChatAnnouncement_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [DeleteSquareChatAnnouncementResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class createSquareChatAnnouncement_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 == 1: + if ftype == TType.STRUCT: + self.request = CreateSquareChatAnnouncementRequest() + 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('createSquareChatAnnouncement_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(createSquareChatAnnouncement_args) +createSquareChatAnnouncement_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [CreateSquareChatAnnouncementRequest, None], None, ), # 1 +) + + +class createSquareChatAnnouncement_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 = CreateSquareChatAnnouncementResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('createSquareChatAnnouncement_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(createSquareChatAnnouncement_result) +createSquareChatAnnouncement_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [CreateSquareChatAnnouncementResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getNoteStatus_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 == 1: + if ftype == TType.STRUCT: + self.request = GetNoteStatusRequest() + 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('getNoteStatus_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getNoteStatus_args) +getNoteStatus_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetNoteStatusRequest, None], None, ), # 1 +) + + +class getNoteStatus_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 = GetNoteStatusResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getNoteStatus_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(getNoteStatus_result) +getNoteStatus_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetNoteStatusResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getSquareStatus_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 == 1: + if ftype == TType.STRUCT: + self.request = GetSquareStatusRequest() + 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('getSquareStatus_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getSquareStatus_args) +getSquareStatus_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetSquareStatusRequest, None], None, ), # 1 +) + + +class getSquareStatus_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 = GetSquareStatusResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getSquareStatus_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(getSquareStatus_result) +getSquareStatus_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSquareStatusResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class reportSquareMember_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 == 1: + if ftype == TType.STRUCT: + self.request = ReportSquareMemberRequest() + 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('reportSquareMember_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(reportSquareMember_args) +reportSquareMember_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [ReportSquareMemberRequest, None], None, ), # 1 +) + + +class reportSquareMember_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 = ReportSquareMemberResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('reportSquareMember_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(reportSquareMember_result) +reportSquareMember_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ReportSquareMemberResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class reportSquareMessage_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 == 1: + if ftype == TType.STRUCT: + self.request = ReportSquareMessageRequest() + 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('reportSquareMessage_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(reportSquareMessage_args) +reportSquareMessage_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [ReportSquareMessageRequest, None], None, ), # 1 +) + + +class reportSquareMessage_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 = ReportSquareMessageResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('reportSquareMessage_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(reportSquareMessage_result) +reportSquareMessage_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ReportSquareMessageResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class reportSquareChat_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 == 1: + if ftype == TType.STRUCT: + self.request = ReportSquareChatRequest() + 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('reportSquareChat_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(reportSquareChat_args) +reportSquareChat_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [ReportSquareChatRequest, None], None, ), # 1 +) + + +class reportSquareChat_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 = ReportSquareChatResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('reportSquareChat_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(reportSquareChat_result) +reportSquareChat_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ReportSquareChatResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class reportSquare_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 == 1: + if ftype == TType.STRUCT: + self.request = ReportSquareRequest() + 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('reportSquare_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(reportSquare_args) +reportSquare_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [ReportSquareRequest, None], None, ), # 1 +) + + +class reportSquare_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 = ReportSquareResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('reportSquare_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(reportSquare_result) +reportSquare_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ReportSquareResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class updateSquareMemberRelation_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 == 1: + if ftype == TType.STRUCT: + self.request = UpdateSquareMemberRelationRequest() + 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('updateSquareMemberRelation_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(updateSquareMemberRelation_args) +updateSquareMemberRelation_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [UpdateSquareMemberRelationRequest, None], None, ), # 1 +) + + +class updateSquareMemberRelation_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 = UpdateSquareMemberRelationResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('updateSquareMemberRelation_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(updateSquareMemberRelation_result) +updateSquareMemberRelation_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [UpdateSquareMemberRelationResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class updateSquareAuthority_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 == 1: + if ftype == TType.STRUCT: + self.request = UpdateSquareAuthorityRequest() + 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('updateSquareAuthority_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(updateSquareAuthority_args) +updateSquareAuthority_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [UpdateSquareAuthorityRequest, None], None, ), # 1 +) + + +class updateSquareAuthority_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 = UpdateSquareAuthorityResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('updateSquareAuthority_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(updateSquareAuthority_result) +updateSquareAuthority_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [UpdateSquareAuthorityResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class updateSquareChatMember_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 == 1: + if ftype == TType.STRUCT: + self.request = UpdateSquareChatMemberRequest() + 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('updateSquareChatMember_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(updateSquareChatMember_args) +updateSquareChatMember_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [UpdateSquareChatMemberRequest, None], None, ), # 1 +) + + +class updateSquareChatMember_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 = UpdateSquareChatMemberResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('updateSquareChatMember_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(updateSquareChatMember_result) +updateSquareChatMember_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [UpdateSquareChatMemberResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class updateSquareChat_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 == 1: + if ftype == TType.STRUCT: + self.request = UpdateSquareChatRequest() + 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('updateSquareChat_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(updateSquareChat_args) +updateSquareChat_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [UpdateSquareChatRequest, None], None, ), # 1 +) + + +class updateSquareChat_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 = UpdateSquareChatResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('updateSquareChat_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(updateSquareChat_result) +updateSquareChat_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [UpdateSquareChatResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class refreshSubscriptions_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 == 1: + if ftype == TType.STRUCT: + self.request = RefreshSubscriptionsRequest() + 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('refreshSubscriptions_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(refreshSubscriptions_args) +refreshSubscriptions_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [RefreshSubscriptionsRequest, None], None, ), # 1 +) + + +class refreshSubscriptions_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 = RefreshSubscriptionsResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('refreshSubscriptions_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(refreshSubscriptions_result) +refreshSubscriptions_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [RefreshSubscriptionsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class removeSubscriptions_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 == 1: + if ftype == TType.STRUCT: + self.request = RemoveSubscriptionsRequest() + 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('removeSubscriptions_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(removeSubscriptions_args) +removeSubscriptions_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [RemoveSubscriptionsRequest, None], None, ), # 1 +) + + +class removeSubscriptions_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 = RemoveSubscriptionsResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('removeSubscriptions_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(removeSubscriptions_result) +removeSubscriptions_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [RemoveSubscriptionsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class rejectSquareMembers_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 == 1: + if ftype == TType.STRUCT: + self.request = RejectSquareMembersRequest() + 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('rejectSquareMembers_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(rejectSquareMembers_args) +rejectSquareMembers_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [RejectSquareMembersRequest, None], None, ), # 1 +) + + +class rejectSquareMembers_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 = RejectSquareMembersResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('rejectSquareMembers_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(rejectSquareMembers_result) +rejectSquareMembers_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [RejectSquareMembersResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class updateSquareMembers_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 == 1: + if ftype == TType.STRUCT: + self.request = UpdateSquareMembersRequest() + 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('updateSquareMembers_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(updateSquareMembers_args) +updateSquareMembers_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [UpdateSquareMembersRequest, None], None, ), # 1 +) + + +class updateSquareMembers_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 = UpdateSquareMembersResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('updateSquareMembers_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(updateSquareMembers_result) +updateSquareMembers_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [UpdateSquareMembersResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class updateSquareMember_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 == 1: + if ftype == TType.STRUCT: + self.request = UpdateSquareMemberRequest() + 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('updateSquareMember_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(updateSquareMember_args) +updateSquareMember_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [UpdateSquareMemberRequest, None], None, ), # 1 +) + + +class updateSquareMember_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 = UpdateSquareMemberResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('updateSquareMember_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(updateSquareMember_result) +updateSquareMember_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [UpdateSquareMemberResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class updateSquareFeatureSet_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 == 1: + if ftype == TType.STRUCT: + self.request = UpdateSquareFeatureSetRequest() + 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('updateSquareFeatureSet_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(updateSquareFeatureSet_args) +updateSquareFeatureSet_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [UpdateSquareFeatureSetRequest, None], None, ), # 1 +) + + +class updateSquareFeatureSet_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 = UpdateSquareFeatureSetResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('updateSquareFeatureSet_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(updateSquareFeatureSet_result) +updateSquareFeatureSet_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [UpdateSquareFeatureSetResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getSquareFeatureSet_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 == 1: + if ftype == TType.STRUCT: + self.request = GetSquareFeatureSetRequest() + 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('getSquareFeatureSet_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getSquareFeatureSet_args) +getSquareFeatureSet_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetSquareFeatureSetRequest, None], None, ), # 1 +) + + +class getSquareFeatureSet_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 = GetSquareFeatureSetResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getSquareFeatureSet_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(getSquareFeatureSet_result) +getSquareFeatureSet_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSquareFeatureSetResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class searchSquares_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 == 1: + if ftype == TType.STRUCT: + self.request = SearchSquaresRequest() + 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('searchSquares_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(searchSquares_args) +searchSquares_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [SearchSquaresRequest, None], None, ), # 1 +) + + +class searchSquares_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 = SearchSquaresResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('searchSquares_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(searchSquares_result) +searchSquares_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [SearchSquaresResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class updateSquare_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 == 1: + if ftype == TType.STRUCT: + self.request = UpdateSquareRequest() + 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('updateSquare_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(updateSquare_args) +updateSquare_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [UpdateSquareRequest, None], None, ), # 1 +) + + +class updateSquare_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 = UpdateSquareResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('updateSquare_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(updateSquare_result) +updateSquare_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [UpdateSquareResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getCategories_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 == 1: + if ftype == TType.STRUCT: + self.request = GetSquareCategoriesRequest() + 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('getCategories_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getCategories_args) +getCategories_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetSquareCategoriesRequest, None], None, ), # 1 +) + + +class getCategories_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 = GetSquareCategoriesResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getCategories_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(getCategories_result) +getCategories_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSquareCategoriesResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class searchSquareMembers_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 == 1: + if ftype == TType.STRUCT: + self.request = SearchSquareMembersRequest() + 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('searchSquareMembers_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(searchSquareMembers_args) +searchSquareMembers_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [SearchSquareMembersRequest, None], None, ), # 1 +) + + +class searchSquareMembers_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 = SearchSquareMembersResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('searchSquareMembers_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(searchSquareMembers_result) +searchSquareMembers_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [SearchSquareMembersResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class fetchSquareChatEvents_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 == 1: + if ftype == TType.STRUCT: + self.request = FetchSquareChatEventsRequest() + 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('fetchSquareChatEvents_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(fetchSquareChatEvents_args) +fetchSquareChatEvents_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [FetchSquareChatEventsRequest, None], None, ), # 1 +) + + +class fetchSquareChatEvents_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 = FetchSquareChatEventsResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('fetchSquareChatEvents_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(fetchSquareChatEvents_result) +fetchSquareChatEvents_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [FetchSquareChatEventsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class fetchMyEvents_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 == 1: + if ftype == TType.STRUCT: + self.request = FetchMyEventsRequest() + 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('fetchMyEvents_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(fetchMyEvents_args) +fetchMyEvents_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [FetchMyEventsRequest, None], None, ), # 1 +) + + +class fetchMyEvents_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 = FetchMyEventsResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('fetchMyEvents_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(fetchMyEvents_result) +fetchMyEvents_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [FetchMyEventsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class markAsRead_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 == 1: + if ftype == TType.STRUCT: + self.request = MarkAsReadRequest() + 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('markAsRead_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(markAsRead_args) +markAsRead_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [MarkAsReadRequest, None], None, ), # 1 +) + + +class markAsRead_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 = MarkAsReadResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('markAsRead_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(markAsRead_result) +markAsRead_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [MarkAsReadResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getSquareAuthority_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 == 1: + if ftype == TType.STRUCT: + self.request = GetSquareAuthorityRequest() + 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('getSquareAuthority_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getSquareAuthority_args) +getSquareAuthority_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetSquareAuthorityRequest, None], None, ), # 1 +) + + +class getSquareAuthority_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 = GetSquareAuthorityResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getSquareAuthority_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(getSquareAuthority_result) +getSquareAuthority_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSquareAuthorityResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class sendMessage_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 == 1: + if ftype == TType.STRUCT: + self.request = SendMessageRequest() + 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('sendMessage_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(sendMessage_args) +sendMessage_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [SendMessageRequest, None], None, ), # 1 +) + + +class sendMessage_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 = SendMessageResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('sendMessage_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(sendMessage_result) +sendMessage_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [SendMessageResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class leaveSquare_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 == 1: + if ftype == TType.STRUCT: + self.request = LeaveSquareRequest() + 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('leaveSquare_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(leaveSquare_args) +leaveSquare_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [LeaveSquareRequest, None], None, ), # 1 +) + + +class leaveSquare_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 = LeaveSquareResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('leaveSquare_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(leaveSquare_result) +leaveSquare_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [LeaveSquareResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class leaveSquareChat_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 == 1: + if ftype == TType.STRUCT: + self.request = LeaveSquareChatRequest() + 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('leaveSquareChat_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(leaveSquareChat_args) +leaveSquareChat_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [LeaveSquareChatRequest, None], None, ), # 1 +) + + +class leaveSquareChat_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 = LeaveSquareChatResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('leaveSquareChat_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(leaveSquareChat_result) +leaveSquareChat_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [LeaveSquareChatResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class joinSquareChat_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 == 1: + if ftype == TType.STRUCT: + self.request = JoinSquareChatRequest() + 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('joinSquareChat_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(joinSquareChat_args) +joinSquareChat_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [JoinSquareChatRequest, None], None, ), # 1 +) + + +class joinSquareChat_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 = JoinSquareChatResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('joinSquareChat_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(joinSquareChat_result) +joinSquareChat_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [JoinSquareChatResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class joinSquare_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 == 1: + if ftype == TType.STRUCT: + self.request = JoinSquareRequest() + 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('joinSquare_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(joinSquare_args) +joinSquare_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [JoinSquareRequest, None], None, ), # 1 +) + + +class joinSquare_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 = JoinSquareResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('joinSquare_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(joinSquare_result) +joinSquare_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [JoinSquareResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class inviteToSquare_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 == 1: + if ftype == TType.STRUCT: + self.request = InviteToSquareRequest() + 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('inviteToSquare_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(inviteToSquare_args) +inviteToSquare_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [InviteToSquareRequest, None], None, ), # 1 +) + + +class inviteToSquare_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 = InviteToSquareResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('inviteToSquare_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(inviteToSquare_result) +inviteToSquare_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [InviteToSquareResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class inviteToSquareChat_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 == 1: + if ftype == TType.STRUCT: + self.request = InviteToSquareChatRequest() + 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('inviteToSquareChat_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(inviteToSquareChat_args) +inviteToSquareChat_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [InviteToSquareChatRequest, None], None, ), # 1 +) + + +class inviteToSquareChat_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 = InviteToSquareChatResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('inviteToSquareChat_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(inviteToSquareChat_result) +inviteToSquareChat_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [InviteToSquareChatResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getSquareMember_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 == 1: + if ftype == TType.STRUCT: + self.request = GetSquareMemberRequest() + 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('getSquareMember_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getSquareMember_args) +getSquareMember_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetSquareMemberRequest, None], None, ), # 1 +) + + +class getSquareMember_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 = GetSquareMemberResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getSquareMember_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(getSquareMember_result) +getSquareMember_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSquareMemberResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getSquareMembers_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 == 1: + if ftype == TType.STRUCT: + self.request = GetSquareMembersRequest() + 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('getSquareMembers_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getSquareMembers_args) +getSquareMembers_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetSquareMembersRequest, None], None, ), # 1 +) + + +class getSquareMembers_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 = GetSquareMembersResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getSquareMembers_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(getSquareMembers_result) +getSquareMembers_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSquareMembersResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getSquareMemberRelation_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 == 1: + if ftype == TType.STRUCT: + self.request = GetSquareMemberRelationRequest() + 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('getSquareMemberRelation_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getSquareMemberRelation_args) +getSquareMemberRelation_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetSquareMemberRelationRequest, None], None, ), # 1 +) + + +class getSquareMemberRelation_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 = GetSquareMemberRelationResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getSquareMemberRelation_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(getSquareMemberRelation_result) +getSquareMemberRelation_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSquareMemberRelationResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getSquareMemberRelations_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 == 1: + if ftype == TType.STRUCT: + self.request = GetSquareMemberRelationsRequest() + 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('getSquareMemberRelations_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getSquareMemberRelations_args) +getSquareMemberRelations_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetSquareMemberRelationsRequest, None], None, ), # 1 +) + + +class getSquareMemberRelations_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 = GetSquareMemberRelationsResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getSquareMemberRelations_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(getSquareMemberRelations_result) +getSquareMemberRelations_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSquareMemberRelationsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getSquareChatMembers_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 == 1: + if ftype == TType.STRUCT: + self.request = GetSquareChatMembersRequest() + 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('getSquareChatMembers_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getSquareChatMembers_args) +getSquareChatMembers_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetSquareChatMembersRequest, None], None, ), # 1 +) + + +class getSquareChatMembers_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 = GetSquareChatMembersResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getSquareChatMembers_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(getSquareChatMembers_result) +getSquareChatMembers_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSquareChatMembersResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getSquareChatStatus_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 == 1: + if ftype == TType.STRUCT: + self.request = GetSquareChatStatusRequest() + 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('getSquareChatStatus_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getSquareChatStatus_args) +getSquareChatStatus_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetSquareChatStatusRequest, None], None, ), # 1 +) + + +class getSquareChatStatus_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 = GetSquareChatStatusResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getSquareChatStatus_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(getSquareChatStatus_result) +getSquareChatStatus_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSquareChatStatusResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getSquareChat_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 == 1: + if ftype == TType.STRUCT: + self.request = GetSquareChatRequest() + 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('getSquareChat_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getSquareChat_args) +getSquareChat_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetSquareChatRequest, None], None, ), # 1 +) + + +class getSquareChat_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 = GetSquareChatResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getSquareChat_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(getSquareChat_result) +getSquareChat_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSquareChatResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getSquare_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 == 1: + if ftype == TType.STRUCT: + self.request = GetSquareRequest() + 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('getSquare_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getSquare_args) +getSquare_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetSquareRequest, None], None, ), # 1 +) + + +class getSquare_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 = GetSquareResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getSquare_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(getSquare_result) +getSquare_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSquareResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getJoinedSquares_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 == 1: + if ftype == TType.STRUCT: + self.request = GetJoinedSquaresRequest() + 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('getJoinedSquares_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getJoinedSquares_args) +getJoinedSquares_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetJoinedSquaresRequest, None], None, ), # 1 +) + + +class getJoinedSquares_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 = GetJoinedSquaresResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getJoinedSquares_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(getJoinedSquares_result) +getJoinedSquares_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetJoinedSquaresResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getJoinedSquareChats_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 == 1: + if ftype == TType.STRUCT: + self.request = GetJoinedSquareChatsRequest() + 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('getJoinedSquareChats_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getJoinedSquareChats_args) +getJoinedSquareChats_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetJoinedSquareChatsRequest, None], None, ), # 1 +) + + +class getJoinedSquareChats_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 = GetJoinedSquareChatsResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getJoinedSquareChats_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(getJoinedSquareChats_result) +getJoinedSquareChats_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetJoinedSquareChatsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class approveSquareMembers_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 == 1: + if ftype == TType.STRUCT: + self.request = ApproveSquareMembersRequest() + 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('approveSquareMembers_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(approveSquareMembers_args) +approveSquareMembers_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [ApproveSquareMembersRequest, None], None, ), # 1 +) + + +class approveSquareMembers_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 = ApproveSquareMembersResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('approveSquareMembers_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(approveSquareMembers_result) +approveSquareMembers_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ApproveSquareMembersResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class createSquareChat_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 == 1: + if ftype == TType.STRUCT: + self.request = CreateSquareChatRequest() + 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('createSquareChat_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(createSquareChat_args) +createSquareChat_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [CreateSquareChatRequest, None], None, ), # 1 +) + + +class createSquareChat_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 = CreateSquareChatResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('createSquareChat_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(createSquareChat_result) +createSquareChat_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [CreateSquareChatResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class createSquare_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 == 1: + if ftype == TType.STRUCT: + self.request = CreateSquareRequest() + 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('createSquare_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(createSquare_args) +createSquare_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [CreateSquareRequest, None], None, ), # 1 +) + + +class createSquare_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 = CreateSquareResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('createSquare_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(createSquare_result) +createSquare_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [CreateSquareResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class deleteSquareChat_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 == 1: + if ftype == TType.STRUCT: + self.request = DeleteSquareChatRequest() + 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('deleteSquareChat_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(deleteSquareChat_args) +deleteSquareChat_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [DeleteSquareChatRequest, None], None, ), # 1 +) + + +class deleteSquareChat_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 = DeleteSquareChatResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('deleteSquareChat_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(deleteSquareChat_result) +deleteSquareChat_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [DeleteSquareChatResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class deleteSquare_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 == 1: + if ftype == TType.STRUCT: + self.request = DeleteSquareRequest() + 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('deleteSquare_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(deleteSquare_args) +deleteSquare_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [DeleteSquareRequest, None], None, ), # 1 +) + + +class deleteSquare_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 = DeleteSquareResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('deleteSquare_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(deleteSquare_result) +deleteSquare_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [DeleteSquareResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class destroyMessage_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 == 1: + if ftype == TType.STRUCT: + self.request = DestroyMessageRequest() + 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('destroyMessage_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(destroyMessage_args) +destroyMessage_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [DestroyMessageRequest, None], None, ), # 1 +) + + +class destroyMessage_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 = DestroyMessageResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('destroyMessage_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(destroyMessage_result) +destroyMessage_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [DestroyMessageResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getJoinableSquareChats_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 == 1: + if ftype == TType.STRUCT: + self.request = GetJoinableSquareChatsRequest() + 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('getJoinableSquareChats_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getJoinableSquareChats_args) +getJoinableSquareChats_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetJoinableSquareChatsRequest, None], None, ), # 1 +) + + +class getJoinableSquareChats_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 = GetJoinableSquareChatsResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getJoinableSquareChats_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(getJoinableSquareChats_result) +getJoinableSquareChats_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetJoinableSquareChatsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class getInvitationTicketUrl_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 == 1: + if ftype == TType.STRUCT: + self.request = GetInvitationTicketUrlRequest() + 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('getInvitationTicketUrl_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(getInvitationTicketUrl_args) +getInvitationTicketUrl_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetInvitationTicketUrlRequest, None], None, ), # 1 +) + + +class getInvitationTicketUrl_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 = GetInvitationTicketUrlResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('getInvitationTicketUrl_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(getInvitationTicketUrl_result) +getInvitationTicketUrl_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetInvitationTicketUrlResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) + + +class findSquareByInvitationTicket_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 == 1: + if ftype == TType.STRUCT: + self.request = FindSquareByInvitationTicketRequest() + 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('findSquareByInvitationTicket_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + 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(findSquareByInvitationTicket_args) +findSquareByInvitationTicket_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [FindSquareByInvitationTicketRequest, None], None, ), # 1 +) + + +class findSquareByInvitationTicket_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 = FindSquareByInvitationTicketResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = SquareException() + 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('findSquareByInvitationTicket_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(findSquareByInvitationTicket_result) +findSquareByInvitationTicket_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [FindSquareByInvitationTicketResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [SquareException, None], None, ), # 1 +) +fix_spec(all_structs) +del all_structs + diff --git a/akad/TalkService.py b/akad/TalkService.py new file mode 100644 index 0000000..1fb657c --- /dev/null +++ b/akad/TalkService.py @@ -0,0 +1,49946 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 getChatRoomAnnouncementsBulk(self, chatRoomMids): + """ + Parameters: + - chatRoomMids + """ + pass + + def getChatRoomAnnouncements(self, chatRoomMid): + """ + Parameters: + - chatRoomMid + """ + pass + + def createChatRoomAnnouncement(self, reqSeq, chatRoomMid, type, contents): + """ + Parameters: + - reqSeq + - chatRoomMid + - type + - contents + """ + pass + + def removeChatRoomAnnouncement(self, reqSeq, chatRoomMid, announcementSeq): + """ + Parameters: + - reqSeq + - chatRoomMid + - announcementSeq + """ + pass + + def unsendMessage(self, seq, messageId): + """ + Parameters: + - seq + - messageId + """ + pass + + def getGroupWithoutMembers(self, groupId): + """ + Parameters: + - groupId + """ + pass + + def requestResendMessage(self, reqSeq, senderMid, messageId): + """ + Parameters: + - reqSeq + - senderMid + - messageId + """ + pass + + def respondResendMessage(self, reqSeq, receiverMid, originalMessageId, resendMessage, errorCode): + """ + Parameters: + - reqSeq + - receiverMid + - originalMessageId + - resendMessage + - errorCode + """ + pass + + def acceptGroupInvitation(self, reqSeq, groupId): + """ + Parameters: + - reqSeq + - groupId + """ + pass + + def acceptGroupInvitationByTicket(self, reqSeq, GroupMid, ticketId): + """ + Parameters: + - reqSeq + - GroupMid + - ticketId + """ + pass + + def acceptProximityMatches(self, sessionId, ids): + """ + Parameters: + - sessionId + - ids + """ + pass + + def acquireCallRoute(self, to): + """ + Parameters: + - to + """ + pass + + def acquireCallTicket(self, to): + """ + Parameters: + - to + """ + pass + + def acquireEncryptedAccessToken(self, featureType): + """ + Parameters: + - featureType + """ + pass + + def addSnsId(self, snsIdType, snsAccessToken): + """ + Parameters: + - snsIdType + - snsAccessToken + """ + pass + + def blockContact(self, reqSeq, id): + """ + Parameters: + - reqSeq + - id + """ + pass + + def blockRecommendation(self, reqSeq, id): + """ + Parameters: + - reqSeq + - id + """ + pass + + def cancelGroupInvitation(self, reqSeq, groupId, contactIds): + """ + Parameters: + - reqSeq + - groupId + - contactIds + """ + pass + + def changeVerificationMethod(self, sessionId, method): + """ + Parameters: + - sessionId + - method + """ + pass + + def clearIdentityCredential(self): + pass + + def clearMessageBox(self, channelId, messageBoxId): + """ + Parameters: + - channelId + - messageBoxId + """ + pass + + def closeProximityMatch(self, sessionId): + """ + Parameters: + - sessionId + """ + pass + + def commitSendMessage(self, seq, messageId, receiverMids): + """ + Parameters: + - seq + - messageId + - receiverMids + """ + pass + + def commitSendMessages(self, seq, messageIds, receiverMids): + """ + Parameters: + - seq + - messageIds + - receiverMids + """ + pass + + def commitUpdateProfile(self, seq, attrs, receiverMids): + """ + Parameters: + - seq + - attrs + - receiverMids + """ + pass + + def confirmEmail(self, verifier, pinCode): + """ + Parameters: + - verifier + - pinCode + """ + pass + + def createGroup(self, seq, name, contactIds): + """ + Parameters: + - seq + - name + - contactIds + """ + pass + + def createQrcodeBase64Image(self, url, characterSet, imageSize, x, y, width, height): + """ + Parameters: + - url + - characterSet + - imageSize + - x + - y + - width + - height + """ + pass + + def createRoom(self, reqSeq, contactIds): + """ + Parameters: + - reqSeq + - contactIds + """ + pass + + def createSession(self): + pass + + def fetchAnnouncements(self, lastFetchedIndex): + """ + Parameters: + - lastFetchedIndex + """ + pass + + def fetchMessages(self, localTs, count): + """ + Parameters: + - localTs + - count + """ + pass + + def fetchOperations(self, localRev, count): + """ + Parameters: + - localRev + - count + """ + pass + + def fetchOps(self, localRev, count, globalRev, individualRev): + """ + Parameters: + - localRev + - count + - globalRev + - individualRev + """ + pass + + def findAndAddContactsByEmail(self, reqSeq, emails): + """ + Parameters: + - reqSeq + - emails + """ + pass + + def findAndAddContactsByMid(self, reqSeq, mid, type, reference): + """ + Parameters: + - reqSeq + - mid + - type + - reference + """ + pass + + def findGroupByTicketV2(self, ticketId): + """ + Parameters: + - ticketId + """ + pass + + def findAndAddContactsByPhone(self, reqSeq, phones): + """ + Parameters: + - reqSeq + - phones + """ + pass + + def getFriendRequests(self, direction, lastSeenSeqId): + """ + Parameters: + - direction + - lastSeenSeqId + """ + pass + + def removeFriendRequest(self, direction, midOrEMid): + """ + Parameters: + - direction + - midOrEMid + """ + pass + + def findAndAddContactsByUserid(self, reqSeq, userid): + """ + Parameters: + - reqSeq + - userid + """ + pass + + def findContactByUserid(self, userid): + """ + Parameters: + - userid + """ + pass + + def findContactByUserTicket(self, ticketIdWithTag): + """ + Parameters: + - ticketIdWithTag + """ + pass + + def findContactsByEmail(self, emails): + """ + Parameters: + - emails + """ + pass + + def findContactsByPhone(self, phones): + """ + Parameters: + - phones + """ + pass + + def findSnsIdUserStatus(self, snsIdType, snsAccessToken, udidHash): + """ + Parameters: + - snsIdType + - snsAccessToken + - udidHash + """ + pass + + def finishUpdateVerification(self, sessionId): + """ + Parameters: + - sessionId + """ + pass + + def generateUserTicket(self, expirationTime, maxUseCount): + """ + Parameters: + - expirationTime + - maxUseCount + """ + pass + + def destroyMessage(self, seq, chatId, messageId, sessionId): + """ + Parameters: + - seq + - chatId + - messageId + - sessionId + """ + pass + + def getAcceptedProximityMatches(self, sessionId): + """ + Parameters: + - sessionId + """ + pass + + def getActiveBuddySubscriberIds(self): + pass + + def getAllContactIds(self): + pass + + def getAuthQrcode(self, keepLoggedIn, systemName): + """ + Parameters: + - keepLoggedIn + - systemName + """ + pass + + def getBlockedContactIds(self): + pass + + def registerWithPhoneNumber(self, sessionId, migrationPincodeSessionId): + """ + Parameters: + - sessionId + - migrationPincodeSessionId + """ + pass + + def registerWithPhoneNumberAndPassword(self, sessionId, keynm, encrypted): + """ + Parameters: + - sessionId + - keynm + - encrypted + """ + pass + + def getAnalyticsInfo(self): + pass + + def reportClientStatistics(self, reqSeq, category, count): + """ + Parameters: + - reqSeq + - category + - count + """ + pass + + def verifyPhoneNumberForLogin(self, verifierFromPhone, pinCodeForPhone, verifierFromLogin): + """ + Parameters: + - verifierFromPhone + - pinCodeForPhone + - verifierFromLogin + """ + pass + + def verifyPhoneNumber(self, sessionId, pinCode, udidHash, migrationPincodeSessionId, oldUdidHash): + """ + Parameters: + - sessionId + - pinCode + - udidHash + - migrationPincodeSessionId + - oldUdidHash + """ + pass + + def getBlockedContactIdsByRange(self, start, count): + """ + Parameters: + - start + - count + """ + pass + + def getBlockedRecommendationIds(self): + pass + + def getBuddyBlockerIds(self): + pass + + def getBuddyLocation(self, mid, index): + """ + Parameters: + - mid + - index + """ + pass + + def getCompactContactsModifiedSince(self, timestamp): + """ + Parameters: + - timestamp + """ + pass + + def getCompactGroup(self, groupId): + """ + Parameters: + - groupId + """ + pass + + def getCompactRoom(self, roomId): + """ + Parameters: + - roomId + """ + pass + + def getContact(self, id): + """ + Parameters: + - id + """ + pass + + def getContacts(self, ids): + """ + Parameters: + - ids + """ + pass + + def getContactWithFriendRequestStatus(self, id): + """ + Parameters: + - id + """ + pass + + def getCountryWithRequestIp(self): + pass + + def getFavoriteMids(self): + pass + + def getGroup(self, groupId): + """ + Parameters: + - groupId + """ + pass + + def getGroupIdsInvited(self): + pass + + def getGroupIdsJoined(self): + pass + + def getGroups(self, groupIds): + """ + Parameters: + - groupIds + """ + pass + + def getHiddenContactMids(self): + pass + + def getIdentityIdentifier(self): + pass + + def getLastAnnouncementIndex(self): + pass + + def getLastOpRevision(self): + pass + + def getSuggestRevisions(self): + pass + + def getPreviousMessagesV2WithReadCount(self, messageBoxId, endMessageId, messagesCount): + """ + Parameters: + - messageBoxId + - endMessageId + - messagesCount + """ + pass + + def getMessageBox(self, channelId, messageBoxId, lastMessagesCount): + """ + Parameters: + - channelId + - messageBoxId + - lastMessagesCount + """ + pass + + def getMessageBoxCompactWrapUp(self, mid): + """ + Parameters: + - mid + """ + pass + + def getMessageBoxCompactWrapUpList(self, start, messageBoxCount): + """ + Parameters: + - start + - messageBoxCount + """ + pass + + def getMessageBoxList(self, channelId, lastMessagesCount): + """ + Parameters: + - channelId + - lastMessagesCount + """ + pass + + def getMessageBoxListByStatus(self, channelId, lastMessagesCount, status): + """ + Parameters: + - channelId + - lastMessagesCount + - status + """ + pass + + def getMessageBoxWrapUp(self, mid): + """ + Parameters: + - mid + """ + pass + + def getMessageBoxWrapUpList(self, start, messageBoxCount): + """ + Parameters: + - start + - messageBoxCount + """ + pass + + def getMessagesBySequenceNumber(self, channelId, messageBoxId, startSeq, endSeq): + """ + Parameters: + - channelId + - messageBoxId + - startSeq + - endSeq + """ + pass + + def getNextMessages(self, messageBoxId, startSeq, messagesCount): + """ + Parameters: + - messageBoxId + - startSeq + - messagesCount + """ + pass + + def getNotificationPolicy(self, carrier): + """ + Parameters: + - carrier + """ + pass + + def getPreviousMessages(self, messageBoxId, endSeq, messagesCount): + """ + Parameters: + - messageBoxId + - endSeq + - messagesCount + """ + pass + + def getProfile(self): + pass + + def getProximityMatchCandidateList(self, sessionId): + """ + Parameters: + - sessionId + """ + pass + + def getProximityMatchCandidates(self, sessionId): + """ + Parameters: + - sessionId + """ + pass + + def getRecentMessages(self, messageBoxId, messagesCount): + """ + Parameters: + - messageBoxId + - messagesCount + """ + pass + + def getRecommendationIds(self): + pass + + def getRoom(self, roomId): + """ + Parameters: + - roomId + """ + pass + + def getRSAKeyInfo(self, provider): + """ + Parameters: + - provider + """ + pass + + def getServerTime(self): + pass + + def getSessions(self): + pass + + def getSettings(self): + pass + + def getGroupsV2(self, groupIds): + """ + Parameters: + - groupIds + """ + pass + + def getSettingsAttributes(self, attrBitset): + """ + Parameters: + - attrBitset + """ + pass + + def getSystemConfiguration(self): + pass + + def getUserTicket(self): + pass + + def getWapInvitation(self, invitationHash): + """ + Parameters: + - invitationHash + """ + pass + + def invalidateUserTicket(self): + pass + + def inviteFriendsBySms(self, phoneNumberList): + """ + Parameters: + - phoneNumberList + """ + pass + + def inviteIntoGroup(self, reqSeq, groupId, contactIds): + """ + Parameters: + - reqSeq + - groupId + - contactIds + """ + pass + + def inviteIntoRoom(self, reqSeq, roomId, contactIds): + """ + Parameters: + - reqSeq + - roomId + - contactIds + """ + pass + + def inviteViaEmail(self, reqSeq, email, name): + """ + Parameters: + - reqSeq + - email + - name + """ + pass + + def isIdentityIdentifierAvailable(self, provider, identifier): + """ + Parameters: + - provider + - identifier + """ + pass + + def isUseridAvailable(self, userid): + """ + Parameters: + - userid + """ + pass + + def kickoutFromGroup(self, reqSeq, groupId, contactIds): + """ + Parameters: + - reqSeq + - groupId + - contactIds + """ + pass + + def reissueGroupTicket(self, groupMid): + """ + Parameters: + - groupMid + """ + pass + + def findGroupByTicket(self, ticketId): + """ + Parameters: + - ticketId + """ + pass + + def leaveGroup(self, reqSeq, groupId): + """ + Parameters: + - reqSeq + - groupId + """ + pass + + def leaveRoom(self, reqSeq, roomId): + """ + Parameters: + - reqSeq + - roomId + """ + pass + + def loginWithIdentityCredential(self, identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate): + """ + Parameters: + - identityProvider + - identifier + - password + - keepLoggedIn + - accessLocation + - systemName + - certificate + """ + pass + + def loginWithIdentityCredentialForCertificate(self, identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate): + """ + Parameters: + - identityProvider + - identifier + - password + - keepLoggedIn + - accessLocation + - systemName + - certificate + """ + pass + + def loginWithVerifier(self, verifier): + """ + Parameters: + - verifier + """ + pass + + def loginWithVerifierForCerificate(self, verifier): + """ + Parameters: + - verifier + """ + pass + + def loginWithVerifierForCertificate(self, verifier): + """ + Parameters: + - verifier + """ + pass + + def logout(self): + pass + + def logoutSession(self, tokenKey): + """ + Parameters: + - tokenKey + """ + pass + + def noop(self): + pass + + def notifiedRedirect(self, paramMap): + """ + Parameters: + - paramMap + """ + pass + + def notifyBuddyOnAir(self, seq, receiverMids): + """ + Parameters: + - seq + - receiverMids + """ + pass + + def notifyIndividualEvent(self, notificationStatus, receiverMids): + """ + Parameters: + - notificationStatus + - receiverMids + """ + pass + + def notifyInstalled(self, udidHash, applicationTypeWithExtensions): + """ + Parameters: + - udidHash + - applicationTypeWithExtensions + """ + pass + + def notifyRegistrationComplete(self, udidHash, applicationTypeWithExtensions): + """ + Parameters: + - udidHash + - applicationTypeWithExtensions + """ + pass + + def notifySleep(self, lastRev, badge): + """ + Parameters: + - lastRev + - badge + """ + pass + + def notifyUpdated(self, lastRev, deviceInfo): + """ + Parameters: + - lastRev + - deviceInfo + """ + pass + + def openProximityMatch(self, location): + """ + Parameters: + - location + """ + pass + + def registerBuddyUser(self, buddyId, registrarPassword): + """ + Parameters: + - buddyId + - registrarPassword + """ + pass + + def registerBuddyUserid(self, seq, userid): + """ + Parameters: + - seq + - userid + """ + pass + + def registerDevice(self, sessionId): + """ + Parameters: + - sessionId + """ + pass + + def registerDeviceWithIdentityCredential(self, sessionId, provider, identifier, verifier): + """ + Parameters: + - sessionId + - provider + - identifier + - verifier + """ + pass + + def registerDeviceWithoutPhoneNumber(self, region, udidHash, deviceInfo): + """ + Parameters: + - region + - udidHash + - deviceInfo + """ + pass + + def registerDeviceWithoutPhoneNumberWithIdentityCredential(self, region, udidHash, deviceInfo, provider, identifier, verifier, mid, migrationPincodeSessionId): + """ + Parameters: + - region + - udidHash + - deviceInfo + - provider + - identifier + - verifier + - mid + - migrationPincodeSessionId + """ + pass + + def registerUserid(self, reqSeq, userid): + """ + Parameters: + - reqSeq + - userid + """ + pass + + def registerWapDevice(self, invitationHash, guidHash, email, deviceInfo): + """ + Parameters: + - invitationHash + - guidHash + - email + - deviceInfo + """ + pass + + def registerWithExistingSnsIdAndIdentityCredential(self, identityCredential, region, udidHash, deviceInfo): + """ + Parameters: + - identityCredential + - region + - udidHash + - deviceInfo + """ + pass + + def registerWithSnsId(self, snsIdType, snsAccessToken, region, udidHash, deviceInfo, mid): + """ + Parameters: + - snsIdType + - snsAccessToken + - region + - udidHash + - deviceInfo + - mid + """ + pass + + def registerWithSnsIdAndIdentityCredential(self, snsIdType, snsAccessToken, identityCredential, region, udidHash, deviceInfo): + """ + Parameters: + - snsIdType + - snsAccessToken + - identityCredential + - region + - udidHash + - deviceInfo + """ + pass + + def reissueDeviceCredential(self): + pass + + def reissueUserTicket(self, expirationTime, maxUseCount): + """ + Parameters: + - expirationTime + - maxUseCount + """ + pass + + def getMessageReadRange(self, chatIds): + """ + Parameters: + - chatIds + """ + pass + + def rejectGroupInvitation(self, reqSeq, groupId): + """ + Parameters: + - reqSeq + - groupId + """ + pass + + def releaseSession(self): + pass + + def removeAllMessages(self, seq, lastMessageId): + """ + Parameters: + - seq + - lastMessageId + """ + pass + + def removeBuddyLocation(self, mid, index): + """ + Parameters: + - mid + - index + """ + pass + + def removeMessage(self, messageId): + """ + Parameters: + - messageId + """ + pass + + def makeUserAddMyselfAsContact(self, contactOwnerMid): + """ + Parameters: + - contactOwnerMid + """ + pass + + def removeMessageFromMyHome(self, messageId): + """ + Parameters: + - messageId + """ + pass + + def removeSnsId(self, snsIdType): + """ + Parameters: + - snsIdType + """ + pass + + def report(self, syncOpRevision, category, report): + """ + Parameters: + - syncOpRevision + - category + - report + """ + pass + + def reportContacts(self, syncOpRevision, category, contactReports, actionType): + """ + Parameters: + - syncOpRevision + - category + - contactReports + - actionType + """ + pass + + def reportGroups(self, syncOpRevision, groups): + """ + Parameters: + - syncOpRevision + - groups + """ + pass + + def reportProfile(self, syncOpRevision, profile): + """ + Parameters: + - syncOpRevision + - profile + """ + pass + + def reportRooms(self, syncOpRevision, rooms): + """ + Parameters: + - syncOpRevision + - rooms + """ + pass + + def findAndAddContactByMetaTag(self, reqSeq, userid, reference): + """ + Parameters: + - reqSeq + - userid + - reference + """ + pass + + def reportSettings(self, syncOpRevision, settings): + """ + Parameters: + - syncOpRevision + - settings + """ + pass + + def reportSpam(self, chatMid, memberMids, spammerReasons, senderMids, spamMessageIds, spamMessages): + """ + Parameters: + - chatMid + - memberMids + - spammerReasons + - senderMids + - spamMessageIds + - spamMessages + """ + pass + + def reportSpammer(self, spammerMid, spammerReasons, spamMessageIds): + """ + Parameters: + - spammerMid + - spammerReasons + - spamMessageIds + """ + pass + + def requestAccountPasswordReset(self, provider, identifier, locale): + """ + Parameters: + - provider + - identifier + - locale + """ + pass + + def requestEmailConfirmation(self, emailConfirmation): + """ + Parameters: + - emailConfirmation + """ + pass + + def requestIdentityUnbind(self, provider, identifier): + """ + Parameters: + - provider + - identifier + """ + pass + + def resendEmailConfirmation(self, verifier): + """ + Parameters: + - verifier + """ + pass + + def resendPinCode(self, sessionId): + """ + Parameters: + - sessionId + """ + pass + + def resendPinCodeBySMS(self, sessionId): + """ + Parameters: + - sessionId + """ + pass + + def sendChatChecked(self, seq, consumer, lastMessageId): + """ + Parameters: + - seq + - consumer + - lastMessageId + """ + pass + + def sendMessageAwaitCommit(self, seq, message): + """ + Parameters: + - seq + - message + """ + pass + + def sendChatRemoved(self, seq, consumer, lastMessageId): + """ + Parameters: + - seq + - consumer + - lastMessageId + """ + pass + + def sendContentPreviewUpdated(self, esq, messageId, receiverMids): + """ + Parameters: + - esq + - messageId + - receiverMids + """ + pass + + def sendContentReceipt(self, seq, consumer, messageId): + """ + Parameters: + - seq + - consumer + - messageId + """ + pass + + def sendDummyPush(self): + pass + + def removeE2EEPublicKey(self, publicKey): + """ + Parameters: + - publicKey + """ + pass + + def negotiateE2EEPublicKey(self, mid): + """ + Parameters: + - mid + """ + pass + + def getE2EEPublicKey(self, mid, version, keyId): + """ + Parameters: + - mid + - version + - keyId + """ + pass + + def requestE2EEKeyExchange(self, reqSeq, temporalPublicKey, publicKey, verifier): + """ + Parameters: + - reqSeq + - temporalPublicKey + - publicKey + - verifier + """ + pass + + def getLastE2EEPublicKeys(self, chatMid): + """ + Parameters: + - chatMid + """ + pass + + def registerE2EEPublicKey(self, reqSeq, publicKey): + """ + Parameters: + - reqSeq + - publicKey + """ + pass + + def getE2EEPublicKeys(self): + pass + + def getE2EEPublicKeysEx(self, ignoreE2EEStatus): + """ + Parameters: + - ignoreE2EEStatus + """ + pass + + def getReadMessageOpsInBulk(self, chatIds): + """ + Parameters: + - chatIds + """ + pass + + def sendEvent(self, seq, message): + """ + Parameters: + - seq + - message + """ + pass + + def sendMessage(self, seq, message): + """ + Parameters: + - seq + - message + """ + pass + + def sendMessageIgnored(self, seq, consumer, messageIds): + """ + Parameters: + - seq + - consumer + - messageIds + """ + pass + + def sendMessageReceipt(self, seq, consumer, messageIds): + """ + Parameters: + - seq + - consumer + - messageIds + """ + pass + + def findContactByMetaTag(self, userid, reference): + """ + Parameters: + - userid + - reference + """ + pass + + def sendMessageToMyHome(self, seq, message): + """ + Parameters: + - seq + - message + """ + pass + + def setBuddyLocation(self, mid, index, location): + """ + Parameters: + - mid + - index + - location + """ + pass + + def setIdentityCredential(self, identifier, verifier, provider): + """ + Parameters: + - identifier + - verifier + - provider + """ + pass + + def setNotificationsEnabled(self, reqSeq, type, target, enablement): + """ + Parameters: + - reqSeq + - type + - target + - enablement + """ + pass + + def startUpdateVerification(self, region, carrier, phone, udidHash, deviceInfo, networkCode, locale): + """ + Parameters: + - region + - carrier + - phone + - udidHash + - deviceInfo + - networkCode + - locale + """ + pass + + def startVerification(self, region, carrier, phone, udidHash, deviceInfo, networkCode, mid, locale, simInfo, oldUdidHash): + """ + Parameters: + - region + - carrier + - phone + - udidHash + - deviceInfo + - networkCode + - mid + - locale + - simInfo + - oldUdidHash + """ + pass + + def updateGroupPreferenceAttribute(self, reqSeq, groupMid, updatedAttrs): + """ + Parameters: + - reqSeq + - groupMid + - updatedAttrs + """ + pass + + def createRoomV2(self, reqSeq, contactIds): + """ + Parameters: + - reqSeq + - contactIds + """ + pass + + def storeUpdateProfileAttribute(self, seq, profileAttribute, value): + """ + Parameters: + - seq + - profileAttribute + - value + """ + pass + + def syncContactBySnsIds(self, reqSeq, modifications): + """ + Parameters: + - reqSeq + - modifications + """ + pass + + def syncContacts(self, reqSeq, localContacts): + """ + Parameters: + - reqSeq + - localContacts + """ + pass + + def trySendMessage(self, seq, message): + """ + Parameters: + - seq + - message + """ + pass + + def getNextMessagesV2(self, messageBoxId, startMessageId, messagesCount): + """ + Parameters: + - messageBoxId + - startMessageId + - messagesCount + """ + pass + + def getMessageBoxCompactWrapUpV2(self, messageBoxId): + """ + Parameters: + - messageBoxId + """ + pass + + def getRecentMessagesV2(self, messageBoxId, messagesCount): + """ + Parameters: + - messageBoxId + - messagesCount + """ + pass + + def validateContactsOnBot(self, contacts): + """ + Parameters: + - contacts + """ + pass + + def tryFriendRequest(self, midOrEMid, method, friendRequestParams): + """ + Parameters: + - midOrEMid + - method + - friendRequestParams + """ + pass + + def unblockContact(self, reqSeq, id): + """ + Parameters: + - reqSeq + - id + """ + pass + + def unblockRecommendation(self, reqSeq, id): + """ + Parameters: + - reqSeq + - id + """ + pass + + def unregisterUserAndDevice(self): + pass + + def updateApnsDeviceToken(self, apnsDeviceToken): + """ + Parameters: + - apnsDeviceToken + """ + pass + + def updateBuddySetting(self, key, value): + """ + Parameters: + - key + - value + """ + pass + + def updateC2DMRegistrationId(self, registrationId): + """ + Parameters: + - registrationId + """ + pass + + def updateContactSetting(self, reqSeq, mid, flag, value): + """ + Parameters: + - reqSeq + - mid + - flag + - value + """ + pass + + def updateCustomModeSettings(self, customMode, paramMap): + """ + Parameters: + - customMode + - paramMap + """ + pass + + def updateDeviceInfo(self, deviceUid, deviceInfo): + """ + Parameters: + - deviceUid + - deviceInfo + """ + pass + + def updateGroup(self, reqSeq, group): + """ + Parameters: + - reqSeq + - group + """ + pass + + def updateNotificationToken(self, type, token): + """ + Parameters: + - type + - token + """ + pass + + def updateNotificationTokenWithBytes(self, type, token): + """ + Parameters: + - type + - token + """ + pass + + def updateProfile(self, reqSeq, profile): + """ + Parameters: + - reqSeq + - profile + """ + pass + + def updateProfileAttribute(self, reqSeq, attr, value): + """ + Parameters: + - reqSeq + - attr + - value + """ + pass + + def updateRegion(self, region): + """ + Parameters: + - region + """ + pass + + def updateSettings(self, reqSeq, settings): + """ + Parameters: + - reqSeq + - settings + """ + pass + + def updateSettings2(self, reqSeq, settings): + """ + Parameters: + - reqSeq + - settings + """ + pass + + def updateSettingsAttribute(self, reqSeq, attr, value): + """ + Parameters: + - reqSeq + - attr + - value + """ + pass + + def updateSettingsAttributes(self, reqSeq, attrBitset, settings): + """ + Parameters: + - reqSeq + - attrBitset + - settings + """ + pass + + def verifyIdentityCredential(self, identityProvider, identifier, password): + """ + Parameters: + - identityProvider + - identifier + - password + """ + pass + + def verifyIdentityCredentialWithResult(self, identityCredential): + """ + Parameters: + - identityCredential + """ + pass + + def verifyPhone(self, sessionId, pinCode, udidHash): + """ + Parameters: + - sessionId + - pinCode + - udidHash + """ + pass + + def verifyQrcode(self, verifier, pinCode): + """ + Parameters: + - verifier + - pinCode + """ + 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 getChatRoomAnnouncementsBulk(self, chatRoomMids): + """ + Parameters: + - chatRoomMids + """ + self.send_getChatRoomAnnouncementsBulk(chatRoomMids) + return self.recv_getChatRoomAnnouncementsBulk() + + def send_getChatRoomAnnouncementsBulk(self, chatRoomMids): + self._oprot.writeMessageBegin('getChatRoomAnnouncementsBulk', TMessageType.CALL, self._seqid) + args = getChatRoomAnnouncementsBulk_args() + args.chatRoomMids = chatRoomMids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getChatRoomAnnouncementsBulk(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getChatRoomAnnouncementsBulk_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, "getChatRoomAnnouncementsBulk failed: unknown result") + + def getChatRoomAnnouncements(self, chatRoomMid): + """ + Parameters: + - chatRoomMid + """ + self.send_getChatRoomAnnouncements(chatRoomMid) + return self.recv_getChatRoomAnnouncements() + + def send_getChatRoomAnnouncements(self, chatRoomMid): + self._oprot.writeMessageBegin('getChatRoomAnnouncements', TMessageType.CALL, self._seqid) + args = getChatRoomAnnouncements_args() + args.chatRoomMid = chatRoomMid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getChatRoomAnnouncements(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getChatRoomAnnouncements_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, "getChatRoomAnnouncements failed: unknown result") + + def createChatRoomAnnouncement(self, reqSeq, chatRoomMid, type, contents): + """ + Parameters: + - reqSeq + - chatRoomMid + - type + - contents + """ + self.send_createChatRoomAnnouncement(reqSeq, chatRoomMid, type, contents) + return self.recv_createChatRoomAnnouncement() + + def send_createChatRoomAnnouncement(self, reqSeq, chatRoomMid, type, contents): + self._oprot.writeMessageBegin('createChatRoomAnnouncement', TMessageType.CALL, self._seqid) + args = createChatRoomAnnouncement_args() + args.reqSeq = reqSeq + args.chatRoomMid = chatRoomMid + args.type = type + args.contents = contents + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_createChatRoomAnnouncement(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = createChatRoomAnnouncement_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, "createChatRoomAnnouncement failed: unknown result") + + def removeChatRoomAnnouncement(self, reqSeq, chatRoomMid, announcementSeq): + """ + Parameters: + - reqSeq + - chatRoomMid + - announcementSeq + """ + self.send_removeChatRoomAnnouncement(reqSeq, chatRoomMid, announcementSeq) + self.recv_removeChatRoomAnnouncement() + + def send_removeChatRoomAnnouncement(self, reqSeq, chatRoomMid, announcementSeq): + self._oprot.writeMessageBegin('removeChatRoomAnnouncement', TMessageType.CALL, self._seqid) + args = removeChatRoomAnnouncement_args() + args.reqSeq = reqSeq + args.chatRoomMid = chatRoomMid + args.announcementSeq = announcementSeq + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_removeChatRoomAnnouncement(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = removeChatRoomAnnouncement_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def unsendMessage(self, seq, messageId): + """ + Parameters: + - seq + - messageId + """ + self.send_unsendMessage(seq, messageId) + self.recv_unsendMessage() + + def send_unsendMessage(self, seq, messageId): + self._oprot.writeMessageBegin('unsendMessage', TMessageType.CALL, self._seqid) + args = unsendMessage_args() + args.seq = seq + args.messageId = messageId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_unsendMessage(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = unsendMessage_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def getGroupWithoutMembers(self, groupId): + """ + Parameters: + - groupId + """ + self.send_getGroupWithoutMembers(groupId) + return self.recv_getGroupWithoutMembers() + + def send_getGroupWithoutMembers(self, groupId): + self._oprot.writeMessageBegin('getGroupWithoutMembers', TMessageType.CALL, self._seqid) + args = getGroupWithoutMembers_args() + args.groupId = groupId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getGroupWithoutMembers(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getGroupWithoutMembers_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, "getGroupWithoutMembers failed: unknown result") + + def requestResendMessage(self, reqSeq, senderMid, messageId): + """ + Parameters: + - reqSeq + - senderMid + - messageId + """ + self.send_requestResendMessage(reqSeq, senderMid, messageId) + self.recv_requestResendMessage() + + def send_requestResendMessage(self, reqSeq, senderMid, messageId): + self._oprot.writeMessageBegin('requestResendMessage', TMessageType.CALL, self._seqid) + args = requestResendMessage_args() + args.reqSeq = reqSeq + args.senderMid = senderMid + args.messageId = messageId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_requestResendMessage(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = requestResendMessage_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def respondResendMessage(self, reqSeq, receiverMid, originalMessageId, resendMessage, errorCode): + """ + Parameters: + - reqSeq + - receiverMid + - originalMessageId + - resendMessage + - errorCode + """ + self.send_respondResendMessage(reqSeq, receiverMid, originalMessageId, resendMessage, errorCode) + self.recv_respondResendMessage() + + def send_respondResendMessage(self, reqSeq, receiverMid, originalMessageId, resendMessage, errorCode): + self._oprot.writeMessageBegin('respondResendMessage', TMessageType.CALL, self._seqid) + args = respondResendMessage_args() + args.reqSeq = reqSeq + args.receiverMid = receiverMid + args.originalMessageId = originalMessageId + args.resendMessage = resendMessage + args.errorCode = errorCode + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_respondResendMessage(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = respondResendMessage_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def acceptGroupInvitation(self, reqSeq, groupId): + """ + Parameters: + - reqSeq + - groupId + """ + self.send_acceptGroupInvitation(reqSeq, groupId) + self.recv_acceptGroupInvitation() + + def send_acceptGroupInvitation(self, reqSeq, groupId): + self._oprot.writeMessageBegin('acceptGroupInvitation', TMessageType.CALL, self._seqid) + args = acceptGroupInvitation_args() + args.reqSeq = reqSeq + args.groupId = groupId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_acceptGroupInvitation(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = acceptGroupInvitation_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + 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() + + def send_acceptProximityMatches(self, sessionId, ids): + self._oprot.writeMessageBegin('acceptProximityMatches', TMessageType.CALL, self._seqid) + args = acceptProximityMatches_args() + args.sessionId = sessionId + args.ids = ids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_acceptProximityMatches(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = acceptProximityMatches_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def acquireCallRoute(self, to): + """ + Parameters: + - to + """ + self.send_acquireCallRoute(to) + return self.recv_acquireCallRoute() + + def send_acquireCallRoute(self, to): + self._oprot.writeMessageBegin('acquireCallRoute', TMessageType.CALL, self._seqid) + args = acquireCallRoute_args() + args.to = to + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_acquireCallRoute(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = acquireCallRoute_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, "acquireCallRoute failed: unknown result") + + def acquireCallTicket(self, to): + """ + Parameters: + - to + """ + self.send_acquireCallTicket(to) + return self.recv_acquireCallTicket() + + def send_acquireCallTicket(self, to): + self._oprot.writeMessageBegin('acquireCallTicket', TMessageType.CALL, self._seqid) + args = acquireCallTicket_args() + args.to = to + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_acquireCallTicket(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = acquireCallTicket_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, "acquireCallTicket failed: unknown result") + + def acquireEncryptedAccessToken(self, featureType): + """ + Parameters: + - featureType + """ + self.send_acquireEncryptedAccessToken(featureType) + return self.recv_acquireEncryptedAccessToken() + + def send_acquireEncryptedAccessToken(self, featureType): + self._oprot.writeMessageBegin('acquireEncryptedAccessToken', TMessageType.CALL, self._seqid) + args = acquireEncryptedAccessToken_args() + args.featureType = featureType + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_acquireEncryptedAccessToken(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = acquireEncryptedAccessToken_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, "acquireEncryptedAccessToken failed: unknown result") + + def addSnsId(self, snsIdType, snsAccessToken): + """ + Parameters: + - snsIdType + - snsAccessToken + """ + self.send_addSnsId(snsIdType, snsAccessToken) + return self.recv_addSnsId() + + def send_addSnsId(self, snsIdType, snsAccessToken): + self._oprot.writeMessageBegin('addSnsId', TMessageType.CALL, self._seqid) + args = addSnsId_args() + args.snsIdType = snsIdType + args.snsAccessToken = snsAccessToken + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_addSnsId(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = addSnsId_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, "addSnsId failed: unknown result") + + def blockContact(self, reqSeq, id): + """ + Parameters: + - reqSeq + - id + """ + self.send_blockContact(reqSeq, id) + self.recv_blockContact() + + def send_blockContact(self, reqSeq, id): + self._oprot.writeMessageBegin('blockContact', TMessageType.CALL, self._seqid) + args = blockContact_args() + args.reqSeq = reqSeq + args.id = id + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_blockContact(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = blockContact_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def blockRecommendation(self, reqSeq, id): + """ + Parameters: + - reqSeq + - id + """ + self.send_blockRecommendation(reqSeq, id) + self.recv_blockRecommendation() + + def send_blockRecommendation(self, reqSeq, id): + self._oprot.writeMessageBegin('blockRecommendation', TMessageType.CALL, self._seqid) + args = blockRecommendation_args() + args.reqSeq = reqSeq + args.id = id + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_blockRecommendation(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = blockRecommendation_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def cancelGroupInvitation(self, reqSeq, groupId, contactIds): + """ + Parameters: + - reqSeq + - groupId + - contactIds + """ + self.send_cancelGroupInvitation(reqSeq, groupId, contactIds) + self.recv_cancelGroupInvitation() + + def send_cancelGroupInvitation(self, reqSeq, groupId, contactIds): + self._oprot.writeMessageBegin('cancelGroupInvitation', TMessageType.CALL, self._seqid) + args = cancelGroupInvitation_args() + args.reqSeq = reqSeq + args.groupId = groupId + args.contactIds = contactIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_cancelGroupInvitation(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = cancelGroupInvitation_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def changeVerificationMethod(self, sessionId, method): + """ + Parameters: + - sessionId + - method + """ + self.send_changeVerificationMethod(sessionId, method) + return self.recv_changeVerificationMethod() + + def send_changeVerificationMethod(self, sessionId, method): + self._oprot.writeMessageBegin('changeVerificationMethod', TMessageType.CALL, self._seqid) + args = changeVerificationMethod_args() + args.sessionId = sessionId + args.method = method + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_changeVerificationMethod(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = changeVerificationMethod_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, "changeVerificationMethod failed: unknown result") + + def clearIdentityCredential(self): + self.send_clearIdentityCredential() + self.recv_clearIdentityCredential() + + def send_clearIdentityCredential(self): + self._oprot.writeMessageBegin('clearIdentityCredential', TMessageType.CALL, self._seqid) + args = clearIdentityCredential_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_clearIdentityCredential(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = clearIdentityCredential_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def clearMessageBox(self, channelId, messageBoxId): + """ + Parameters: + - channelId + - messageBoxId + """ + self.send_clearMessageBox(channelId, messageBoxId) + self.recv_clearMessageBox() + + def send_clearMessageBox(self, channelId, messageBoxId): + self._oprot.writeMessageBegin('clearMessageBox', TMessageType.CALL, self._seqid) + args = clearMessageBox_args() + args.channelId = channelId + args.messageBoxId = messageBoxId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_clearMessageBox(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = clearMessageBox_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def closeProximityMatch(self, sessionId): + """ + Parameters: + - sessionId + """ + self.send_closeProximityMatch(sessionId) + self.recv_closeProximityMatch() + + def send_closeProximityMatch(self, sessionId): + self._oprot.writeMessageBegin('closeProximityMatch', TMessageType.CALL, self._seqid) + args = closeProximityMatch_args() + args.sessionId = sessionId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_closeProximityMatch(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = closeProximityMatch_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def commitSendMessage(self, seq, messageId, receiverMids): + """ + Parameters: + - seq + - messageId + - receiverMids + """ + self.send_commitSendMessage(seq, messageId, receiverMids) + return self.recv_commitSendMessage() + + def send_commitSendMessage(self, seq, messageId, receiverMids): + self._oprot.writeMessageBegin('commitSendMessage', TMessageType.CALL, self._seqid) + args = commitSendMessage_args() + args.seq = seq + args.messageId = messageId + args.receiverMids = receiverMids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_commitSendMessage(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = commitSendMessage_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, "commitSendMessage failed: unknown result") + + def commitSendMessages(self, seq, messageIds, receiverMids): + """ + Parameters: + - seq + - messageIds + - receiverMids + """ + self.send_commitSendMessages(seq, messageIds, receiverMids) + return self.recv_commitSendMessages() + + def send_commitSendMessages(self, seq, messageIds, receiverMids): + self._oprot.writeMessageBegin('commitSendMessages', TMessageType.CALL, self._seqid) + args = commitSendMessages_args() + args.seq = seq + args.messageIds = messageIds + args.receiverMids = receiverMids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_commitSendMessages(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = commitSendMessages_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, "commitSendMessages failed: unknown result") + + def commitUpdateProfile(self, seq, attrs, receiverMids): + """ + Parameters: + - seq + - attrs + - receiverMids + """ + self.send_commitUpdateProfile(seq, attrs, receiverMids) + return self.recv_commitUpdateProfile() + + def send_commitUpdateProfile(self, seq, attrs, receiverMids): + self._oprot.writeMessageBegin('commitUpdateProfile', TMessageType.CALL, self._seqid) + args = commitUpdateProfile_args() + args.seq = seq + args.attrs = attrs + args.receiverMids = receiverMids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_commitUpdateProfile(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = commitUpdateProfile_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, "commitUpdateProfile failed: unknown result") + + def confirmEmail(self, verifier, pinCode): + """ + Parameters: + - verifier + - pinCode + """ + self.send_confirmEmail(verifier, pinCode) + self.recv_confirmEmail() + + def send_confirmEmail(self, verifier, pinCode): + self._oprot.writeMessageBegin('confirmEmail', TMessageType.CALL, self._seqid) + args = confirmEmail_args() + args.verifier = verifier + args.pinCode = pinCode + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_confirmEmail(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = confirmEmail_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def createGroup(self, seq, name, contactIds): + """ + Parameters: + - seq + - name + - contactIds + """ + self.send_createGroup(seq, name, contactIds) + return self.recv_createGroup() + + def send_createGroup(self, seq, name, contactIds): + self._oprot.writeMessageBegin('createGroup', TMessageType.CALL, self._seqid) + args = createGroup_args() + args.seq = seq + args.name = name + args.contactIds = contactIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_createGroup(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = createGroup_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, "createGroup failed: unknown result") + + def createQrcodeBase64Image(self, url, characterSet, imageSize, x, y, width, height): + """ + Parameters: + - url + - characterSet + - imageSize + - x + - y + - width + - height + """ + self.send_createQrcodeBase64Image(url, characterSet, imageSize, x, y, width, height) + return self.recv_createQrcodeBase64Image() + + def send_createQrcodeBase64Image(self, url, characterSet, imageSize, x, y, width, height): + self._oprot.writeMessageBegin('createQrcodeBase64Image', TMessageType.CALL, self._seqid) + args = createQrcodeBase64Image_args() + args.url = url + args.characterSet = characterSet + args.imageSize = imageSize + args.x = x + args.y = y + args.width = width + args.height = height + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_createQrcodeBase64Image(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = createQrcodeBase64Image_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, "createQrcodeBase64Image failed: unknown result") + + def createRoom(self, reqSeq, contactIds): + """ + Parameters: + - reqSeq + - contactIds + """ + self.send_createRoom(reqSeq, contactIds) + return self.recv_createRoom() + + def send_createRoom(self, reqSeq, contactIds): + self._oprot.writeMessageBegin('createRoom', TMessageType.CALL, self._seqid) + args = createRoom_args() + args.reqSeq = reqSeq + args.contactIds = contactIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_createRoom(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = createRoom_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, "createRoom failed: unknown result") + + def createSession(self): + self.send_createSession() + return self.recv_createSession() + + def send_createSession(self): + self._oprot.writeMessageBegin('createSession', TMessageType.CALL, self._seqid) + args = createSession_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_createSession(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = createSession_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, "createSession failed: unknown result") + + def fetchAnnouncements(self, lastFetchedIndex): + """ + Parameters: + - lastFetchedIndex + """ + self.send_fetchAnnouncements(lastFetchedIndex) + return self.recv_fetchAnnouncements() + + def send_fetchAnnouncements(self, lastFetchedIndex): + self._oprot.writeMessageBegin('fetchAnnouncements', TMessageType.CALL, self._seqid) + args = fetchAnnouncements_args() + args.lastFetchedIndex = lastFetchedIndex + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_fetchAnnouncements(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = fetchAnnouncements_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, "fetchAnnouncements failed: unknown result") + + def fetchMessages(self, localTs, count): + """ + Parameters: + - localTs + - count + """ + self.send_fetchMessages(localTs, count) + return self.recv_fetchMessages() + + def send_fetchMessages(self, localTs, count): + self._oprot.writeMessageBegin('fetchMessages', TMessageType.CALL, self._seqid) + args = fetchMessages_args() + args.localTs = localTs + args.count = count + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_fetchMessages(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = fetchMessages_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, "fetchMessages failed: unknown result") + + def fetchOperations(self, localRev, count): + """ + Parameters: + - localRev + - count + """ + self.send_fetchOperations(localRev, count) + return self.recv_fetchOperations() + + def send_fetchOperations(self, localRev, count): + self._oprot.writeMessageBegin('fetchOperations', TMessageType.CALL, self._seqid) + args = fetchOperations_args() + args.localRev = localRev + args.count = count + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_fetchOperations(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = fetchOperations_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, "fetchOperations failed: unknown result") + + def fetchOps(self, localRev, count, globalRev, individualRev): + """ + Parameters: + - localRev + - count + - globalRev + - individualRev + """ + self.send_fetchOps(localRev, count, globalRev, individualRev) + return self.recv_fetchOps() + + def send_fetchOps(self, localRev, count, globalRev, individualRev): + self._oprot.writeMessageBegin('fetchOps', TMessageType.CALL, self._seqid) + args = fetchOps_args() + args.localRev = localRev + args.count = count + args.globalRev = globalRev + args.individualRev = individualRev + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_fetchOps(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = fetchOps_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, "fetchOps failed: unknown result") + + def findAndAddContactsByEmail(self, reqSeq, emails): + """ + Parameters: + - reqSeq + - emails + """ + self.send_findAndAddContactsByEmail(reqSeq, emails) + return self.recv_findAndAddContactsByEmail() + + def send_findAndAddContactsByEmail(self, reqSeq, emails): + self._oprot.writeMessageBegin('findAndAddContactsByEmail', TMessageType.CALL, self._seqid) + args = findAndAddContactsByEmail_args() + args.reqSeq = reqSeq + args.emails = emails + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_findAndAddContactsByEmail(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = findAndAddContactsByEmail_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, "findAndAddContactsByEmail failed: unknown result") + + def findAndAddContactsByMid(self, reqSeq, mid, type, reference): + """ + Parameters: + - reqSeq + - mid + - type + - reference + """ + self.send_findAndAddContactsByMid(reqSeq, mid, type, reference) + return self.recv_findAndAddContactsByMid() + + def send_findAndAddContactsByMid(self, reqSeq, mid, type, reference): + self._oprot.writeMessageBegin('findAndAddContactsByMid', TMessageType.CALL, self._seqid) + args = findAndAddContactsByMid_args() + args.reqSeq = reqSeq + args.mid = mid + args.type = type + args.reference = reference + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_findAndAddContactsByMid(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = findAndAddContactsByMid_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, "findAndAddContactsByMid failed: unknown result") + + def findGroupByTicketV2(self, ticketId): + """ + Parameters: + - ticketId + """ + self.send_findGroupByTicketV2(ticketId) + return self.recv_findGroupByTicketV2() + + def send_findGroupByTicketV2(self, ticketId): + self._oprot.writeMessageBegin('findGroupByTicketV2', TMessageType.CALL, self._seqid) + args = findGroupByTicketV2_args() + args.ticketId = ticketId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_findGroupByTicketV2(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = findGroupByTicketV2_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, "findGroupByTicketV2 failed: unknown result") + + def findAndAddContactsByPhone(self, reqSeq, phones): + """ + Parameters: + - reqSeq + - phones + """ + self.send_findAndAddContactsByPhone(reqSeq, phones) + return self.recv_findAndAddContactsByPhone() + + def send_findAndAddContactsByPhone(self, reqSeq, phones): + self._oprot.writeMessageBegin('findAndAddContactsByPhone', TMessageType.CALL, self._seqid) + args = findAndAddContactsByPhone_args() + args.reqSeq = reqSeq + args.phones = phones + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_findAndAddContactsByPhone(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = findAndAddContactsByPhone_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, "findAndAddContactsByPhone failed: unknown result") + + def getFriendRequests(self, direction, lastSeenSeqId): + """ + Parameters: + - direction + - lastSeenSeqId + """ + self.send_getFriendRequests(direction, lastSeenSeqId) + return self.recv_getFriendRequests() + + def send_getFriendRequests(self, direction, lastSeenSeqId): + self._oprot.writeMessageBegin('getFriendRequests', TMessageType.CALL, self._seqid) + args = getFriendRequests_args() + args.direction = direction + args.lastSeenSeqId = lastSeenSeqId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getFriendRequests(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getFriendRequests_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, "getFriendRequests failed: unknown result") + + def removeFriendRequest(self, direction, midOrEMid): + """ + Parameters: + - direction + - midOrEMid + """ + self.send_removeFriendRequest(direction, midOrEMid) + self.recv_removeFriendRequest() + + def send_removeFriendRequest(self, direction, midOrEMid): + self._oprot.writeMessageBegin('removeFriendRequest', TMessageType.CALL, self._seqid) + args = removeFriendRequest_args() + args.direction = direction + args.midOrEMid = midOrEMid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_removeFriendRequest(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = removeFriendRequest_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def findAndAddContactsByUserid(self, reqSeq, userid): + """ + Parameters: + - reqSeq + - userid + """ + self.send_findAndAddContactsByUserid(reqSeq, userid) + return self.recv_findAndAddContactsByUserid() + + def send_findAndAddContactsByUserid(self, reqSeq, userid): + self._oprot.writeMessageBegin('findAndAddContactsByUserid', TMessageType.CALL, self._seqid) + args = findAndAddContactsByUserid_args() + args.reqSeq = reqSeq + args.userid = userid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_findAndAddContactsByUserid(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = findAndAddContactsByUserid_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, "findAndAddContactsByUserid failed: unknown result") + + def findContactByUserid(self, userid): + """ + Parameters: + - userid + """ + self.send_findContactByUserid(userid) + return self.recv_findContactByUserid() + + def send_findContactByUserid(self, userid): + self._oprot.writeMessageBegin('findContactByUserid', TMessageType.CALL, self._seqid) + args = findContactByUserid_args() + args.userid = userid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_findContactByUserid(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = findContactByUserid_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, "findContactByUserid failed: unknown result") + + def findContactByUserTicket(self, ticketIdWithTag): + """ + Parameters: + - ticketIdWithTag + """ + self.send_findContactByUserTicket(ticketIdWithTag) + return self.recv_findContactByUserTicket() + + def send_findContactByUserTicket(self, ticketIdWithTag): + self._oprot.writeMessageBegin('findContactByUserTicket', TMessageType.CALL, self._seqid) + args = findContactByUserTicket_args() + args.ticketIdWithTag = ticketIdWithTag + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_findContactByUserTicket(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = findContactByUserTicket_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, "findContactByUserTicket failed: unknown result") + + def findContactsByEmail(self, emails): + """ + Parameters: + - emails + """ + self.send_findContactsByEmail(emails) + return self.recv_findContactsByEmail() + + def send_findContactsByEmail(self, emails): + self._oprot.writeMessageBegin('findContactsByEmail', TMessageType.CALL, self._seqid) + args = findContactsByEmail_args() + args.emails = emails + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_findContactsByEmail(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = findContactsByEmail_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, "findContactsByEmail failed: unknown result") + + def findContactsByPhone(self, phones): + """ + Parameters: + - phones + """ + self.send_findContactsByPhone(phones) + return self.recv_findContactsByPhone() + + def send_findContactsByPhone(self, phones): + self._oprot.writeMessageBegin('findContactsByPhone', TMessageType.CALL, self._seqid) + args = findContactsByPhone_args() + args.phones = phones + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_findContactsByPhone(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = findContactsByPhone_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, "findContactsByPhone failed: unknown result") + + def findSnsIdUserStatus(self, snsIdType, snsAccessToken, udidHash): + """ + Parameters: + - snsIdType + - snsAccessToken + - udidHash + """ + self.send_findSnsIdUserStatus(snsIdType, snsAccessToken, udidHash) + return self.recv_findSnsIdUserStatus() + + def send_findSnsIdUserStatus(self, snsIdType, snsAccessToken, udidHash): + self._oprot.writeMessageBegin('findSnsIdUserStatus', TMessageType.CALL, self._seqid) + args = findSnsIdUserStatus_args() + args.snsIdType = snsIdType + args.snsAccessToken = snsAccessToken + args.udidHash = udidHash + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_findSnsIdUserStatus(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = findSnsIdUserStatus_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, "findSnsIdUserStatus failed: unknown result") + + def finishUpdateVerification(self, sessionId): + """ + Parameters: + - sessionId + """ + self.send_finishUpdateVerification(sessionId) + self.recv_finishUpdateVerification() + + def send_finishUpdateVerification(self, sessionId): + self._oprot.writeMessageBegin('finishUpdateVerification', TMessageType.CALL, self._seqid) + args = finishUpdateVerification_args() + args.sessionId = sessionId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_finishUpdateVerification(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = finishUpdateVerification_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def generateUserTicket(self, expirationTime, maxUseCount): + """ + Parameters: + - expirationTime + - maxUseCount + """ + self.send_generateUserTicket(expirationTime, maxUseCount) + return self.recv_generateUserTicket() + + def send_generateUserTicket(self, expirationTime, maxUseCount): + self._oprot.writeMessageBegin('generateUserTicket', TMessageType.CALL, self._seqid) + args = generateUserTicket_args() + args.expirationTime = expirationTime + args.maxUseCount = maxUseCount + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_generateUserTicket(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = generateUserTicket_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, "generateUserTicket failed: unknown result") + + def destroyMessage(self, seq, chatId, messageId, sessionId): + """ + Parameters: + - seq + - chatId + - messageId + - sessionId + """ + self.send_destroyMessage(seq, chatId, messageId, sessionId) + self.recv_destroyMessage() + + def send_destroyMessage(self, seq, chatId, messageId, sessionId): + self._oprot.writeMessageBegin('destroyMessage', TMessageType.CALL, self._seqid) + args = destroyMessage_args() + args.seq = seq + args.chatId = chatId + args.messageId = messageId + args.sessionId = sessionId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_destroyMessage(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = destroyMessage_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def getAcceptedProximityMatches(self, sessionId): + """ + Parameters: + - sessionId + """ + self.send_getAcceptedProximityMatches(sessionId) + return self.recv_getAcceptedProximityMatches() + + def send_getAcceptedProximityMatches(self, sessionId): + self._oprot.writeMessageBegin('getAcceptedProximityMatches', TMessageType.CALL, self._seqid) + args = getAcceptedProximityMatches_args() + args.sessionId = sessionId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getAcceptedProximityMatches(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getAcceptedProximityMatches_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, "getAcceptedProximityMatches failed: unknown result") + + def getActiveBuddySubscriberIds(self): + self.send_getActiveBuddySubscriberIds() + return self.recv_getActiveBuddySubscriberIds() + + def send_getActiveBuddySubscriberIds(self): + self._oprot.writeMessageBegin('getActiveBuddySubscriberIds', TMessageType.CALL, self._seqid) + args = getActiveBuddySubscriberIds_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getActiveBuddySubscriberIds(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getActiveBuddySubscriberIds_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, "getActiveBuddySubscriberIds failed: unknown result") + + def getAllContactIds(self): + self.send_getAllContactIds() + return self.recv_getAllContactIds() + + def send_getAllContactIds(self): + self._oprot.writeMessageBegin('getAllContactIds', TMessageType.CALL, self._seqid) + args = getAllContactIds_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getAllContactIds(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getAllContactIds_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, "getAllContactIds failed: unknown result") + + def getAuthQrcode(self, keepLoggedIn, systemName): + """ + Parameters: + - keepLoggedIn + - systemName + """ + self.send_getAuthQrcode(keepLoggedIn, systemName) + return self.recv_getAuthQrcode() + + def send_getAuthQrcode(self, keepLoggedIn, systemName): + self._oprot.writeMessageBegin('getAuthQrcode', TMessageType.CALL, self._seqid) + args = getAuthQrcode_args() + args.keepLoggedIn = keepLoggedIn + args.systemName = systemName + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getAuthQrcode(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getAuthQrcode_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, "getAuthQrcode failed: unknown result") + + def getBlockedContactIds(self): + self.send_getBlockedContactIds() + return self.recv_getBlockedContactIds() + + def send_getBlockedContactIds(self): + self._oprot.writeMessageBegin('getBlockedContactIds', TMessageType.CALL, self._seqid) + args = getBlockedContactIds_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getBlockedContactIds(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getBlockedContactIds_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, "getBlockedContactIds failed: unknown result") + + def registerWithPhoneNumber(self, sessionId, migrationPincodeSessionId): + """ + Parameters: + - sessionId + - migrationPincodeSessionId + """ + self.send_registerWithPhoneNumber(sessionId, migrationPincodeSessionId) + return self.recv_registerWithPhoneNumber() + + def send_registerWithPhoneNumber(self, sessionId, migrationPincodeSessionId): + self._oprot.writeMessageBegin('registerWithPhoneNumber', TMessageType.CALL, self._seqid) + args = registerWithPhoneNumber_args() + args.sessionId = sessionId + args.migrationPincodeSessionId = migrationPincodeSessionId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerWithPhoneNumber(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = registerWithPhoneNumber_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, "registerWithPhoneNumber failed: unknown result") + + def registerWithPhoneNumberAndPassword(self, sessionId, keynm, encrypted): + """ + Parameters: + - sessionId + - keynm + - encrypted + """ + self.send_registerWithPhoneNumberAndPassword(sessionId, keynm, encrypted) + return self.recv_registerWithPhoneNumberAndPassword() + + def send_registerWithPhoneNumberAndPassword(self, sessionId, keynm, encrypted): + self._oprot.writeMessageBegin('registerWithPhoneNumberAndPassword', TMessageType.CALL, self._seqid) + args = registerWithPhoneNumberAndPassword_args() + args.sessionId = sessionId + args.keynm = keynm + args.encrypted = encrypted + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerWithPhoneNumberAndPassword(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = registerWithPhoneNumberAndPassword_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, "registerWithPhoneNumberAndPassword failed: unknown result") + + def getAnalyticsInfo(self): + self.send_getAnalyticsInfo() + return self.recv_getAnalyticsInfo() + + def send_getAnalyticsInfo(self): + self._oprot.writeMessageBegin('getAnalyticsInfo', TMessageType.CALL, self._seqid) + args = getAnalyticsInfo_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getAnalyticsInfo(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getAnalyticsInfo_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, "getAnalyticsInfo failed: unknown result") + + def reportClientStatistics(self, reqSeq, category, count): + """ + Parameters: + - reqSeq + - category + - count + """ + self.send_reportClientStatistics(reqSeq, category, count) + self.recv_reportClientStatistics() + + def send_reportClientStatistics(self, reqSeq, category, count): + self._oprot.writeMessageBegin('reportClientStatistics', TMessageType.CALL, self._seqid) + args = reportClientStatistics_args() + args.reqSeq = reqSeq + args.category = category + args.count = count + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reportClientStatistics(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reportClientStatistics_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def verifyPhoneNumberForLogin(self, verifierFromPhone, pinCodeForPhone, verifierFromLogin): + """ + Parameters: + - verifierFromPhone + - pinCodeForPhone + - verifierFromLogin + """ + self.send_verifyPhoneNumberForLogin(verifierFromPhone, pinCodeForPhone, verifierFromLogin) + return self.recv_verifyPhoneNumberForLogin() + + def send_verifyPhoneNumberForLogin(self, verifierFromPhone, pinCodeForPhone, verifierFromLogin): + self._oprot.writeMessageBegin('verifyPhoneNumberForLogin', TMessageType.CALL, self._seqid) + args = verifyPhoneNumberForLogin_args() + args.verifierFromPhone = verifierFromPhone + args.pinCodeForPhone = pinCodeForPhone + args.verifierFromLogin = verifierFromLogin + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_verifyPhoneNumberForLogin(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = verifyPhoneNumberForLogin_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, "verifyPhoneNumberForLogin failed: unknown result") + + def verifyPhoneNumber(self, sessionId, pinCode, udidHash, migrationPincodeSessionId, oldUdidHash): + """ + Parameters: + - sessionId + - pinCode + - udidHash + - migrationPincodeSessionId + - oldUdidHash + """ + self.send_verifyPhoneNumber(sessionId, pinCode, udidHash, migrationPincodeSessionId, oldUdidHash) + return self.recv_verifyPhoneNumber() + + def send_verifyPhoneNumber(self, sessionId, pinCode, udidHash, migrationPincodeSessionId, oldUdidHash): + self._oprot.writeMessageBegin('verifyPhoneNumber', TMessageType.CALL, self._seqid) + args = verifyPhoneNumber_args() + args.sessionId = sessionId + args.pinCode = pinCode + args.udidHash = udidHash + args.migrationPincodeSessionId = migrationPincodeSessionId + args.oldUdidHash = oldUdidHash + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_verifyPhoneNumber(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = verifyPhoneNumber_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, "verifyPhoneNumber failed: unknown result") + + def getBlockedContactIdsByRange(self, start, count): + """ + Parameters: + - start + - count + """ + self.send_getBlockedContactIdsByRange(start, count) + return self.recv_getBlockedContactIdsByRange() + + def send_getBlockedContactIdsByRange(self, start, count): + self._oprot.writeMessageBegin('getBlockedContactIdsByRange', TMessageType.CALL, self._seqid) + args = getBlockedContactIdsByRange_args() + args.start = start + args.count = count + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getBlockedContactIdsByRange(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getBlockedContactIdsByRange_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, "getBlockedContactIdsByRange failed: unknown result") + + def getBlockedRecommendationIds(self): + self.send_getBlockedRecommendationIds() + return self.recv_getBlockedRecommendationIds() + + def send_getBlockedRecommendationIds(self): + self._oprot.writeMessageBegin('getBlockedRecommendationIds', TMessageType.CALL, self._seqid) + args = getBlockedRecommendationIds_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getBlockedRecommendationIds(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getBlockedRecommendationIds_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, "getBlockedRecommendationIds failed: unknown result") + + def getBuddyBlockerIds(self): + self.send_getBuddyBlockerIds() + return self.recv_getBuddyBlockerIds() + + def send_getBuddyBlockerIds(self): + self._oprot.writeMessageBegin('getBuddyBlockerIds', TMessageType.CALL, self._seqid) + args = getBuddyBlockerIds_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getBuddyBlockerIds(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getBuddyBlockerIds_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, "getBuddyBlockerIds failed: unknown result") + + def getBuddyLocation(self, mid, index): + """ + Parameters: + - mid + - index + """ + self.send_getBuddyLocation(mid, index) + return self.recv_getBuddyLocation() + + def send_getBuddyLocation(self, mid, index): + self._oprot.writeMessageBegin('getBuddyLocation', TMessageType.CALL, self._seqid) + args = getBuddyLocation_args() + args.mid = mid + args.index = index + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getBuddyLocation(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getBuddyLocation_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, "getBuddyLocation failed: unknown result") + + def getCompactContactsModifiedSince(self, timestamp): + """ + Parameters: + - timestamp + """ + self.send_getCompactContactsModifiedSince(timestamp) + return self.recv_getCompactContactsModifiedSince() + + def send_getCompactContactsModifiedSince(self, timestamp): + self._oprot.writeMessageBegin('getCompactContactsModifiedSince', TMessageType.CALL, self._seqid) + args = getCompactContactsModifiedSince_args() + args.timestamp = timestamp + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getCompactContactsModifiedSince(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getCompactContactsModifiedSince_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, "getCompactContactsModifiedSince failed: unknown result") + + def getCompactGroup(self, groupId): + """ + Parameters: + - groupId + """ + self.send_getCompactGroup(groupId) + return self.recv_getCompactGroup() + + def send_getCompactGroup(self, groupId): + self._oprot.writeMessageBegin('getCompactGroup', TMessageType.CALL, self._seqid) + args = getCompactGroup_args() + args.groupId = groupId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getCompactGroup(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getCompactGroup_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, "getCompactGroup failed: unknown result") + + def getCompactRoom(self, roomId): + """ + Parameters: + - roomId + """ + self.send_getCompactRoom(roomId) + return self.recv_getCompactRoom() + + def send_getCompactRoom(self, roomId): + self._oprot.writeMessageBegin('getCompactRoom', TMessageType.CALL, self._seqid) + args = getCompactRoom_args() + args.roomId = roomId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getCompactRoom(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getCompactRoom_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, "getCompactRoom failed: unknown result") + + def getContact(self, id): + """ + Parameters: + - id + """ + self.send_getContact(id) + return self.recv_getContact() + + def send_getContact(self, id): + self._oprot.writeMessageBegin('getContact', TMessageType.CALL, self._seqid) + args = getContact_args() + args.id = id + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getContact(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getContact_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, "getContact failed: unknown result") + + def getContacts(self, ids): + """ + Parameters: + - ids + """ + self.send_getContacts(ids) + return self.recv_getContacts() + + def send_getContacts(self, ids): + self._oprot.writeMessageBegin('getContacts', TMessageType.CALL, self._seqid) + args = getContacts_args() + args.ids = ids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getContacts(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getContacts_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, "getContacts failed: unknown result") + + def getContactWithFriendRequestStatus(self, id): + """ + Parameters: + - id + """ + self.send_getContactWithFriendRequestStatus(id) + return self.recv_getContactWithFriendRequestStatus() + + def send_getContactWithFriendRequestStatus(self, id): + self._oprot.writeMessageBegin('getContactWithFriendRequestStatus', TMessageType.CALL, self._seqid) + args = getContactWithFriendRequestStatus_args() + args.id = id + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getContactWithFriendRequestStatus(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getContactWithFriendRequestStatus_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, "getContactWithFriendRequestStatus failed: unknown result") + + def getCountryWithRequestIp(self): + self.send_getCountryWithRequestIp() + return self.recv_getCountryWithRequestIp() + + def send_getCountryWithRequestIp(self): + self._oprot.writeMessageBegin('getCountryWithRequestIp', TMessageType.CALL, self._seqid) + args = getCountryWithRequestIp_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getCountryWithRequestIp(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getCountryWithRequestIp_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, "getCountryWithRequestIp failed: unknown result") + + def getFavoriteMids(self): + self.send_getFavoriteMids() + return self.recv_getFavoriteMids() + + def send_getFavoriteMids(self): + self._oprot.writeMessageBegin('getFavoriteMids', TMessageType.CALL, self._seqid) + args = getFavoriteMids_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getFavoriteMids(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getFavoriteMids_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, "getFavoriteMids failed: unknown result") + + def getGroup(self, groupId): + """ + Parameters: + - groupId + """ + self.send_getGroup(groupId) + return self.recv_getGroup() + + def send_getGroup(self, groupId): + self._oprot.writeMessageBegin('getGroup', TMessageType.CALL, self._seqid) + args = getGroup_args() + args.groupId = groupId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getGroup(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getGroup_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, "getGroup failed: unknown result") + + def getGroupIdsInvited(self): + self.send_getGroupIdsInvited() + return self.recv_getGroupIdsInvited() + + def send_getGroupIdsInvited(self): + self._oprot.writeMessageBegin('getGroupIdsInvited', TMessageType.CALL, self._seqid) + args = getGroupIdsInvited_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getGroupIdsInvited(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getGroupIdsInvited_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, "getGroupIdsInvited failed: unknown result") + + def getGroupIdsJoined(self): + self.send_getGroupIdsJoined() + return self.recv_getGroupIdsJoined() + + def send_getGroupIdsJoined(self): + self._oprot.writeMessageBegin('getGroupIdsJoined', TMessageType.CALL, self._seqid) + args = getGroupIdsJoined_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getGroupIdsJoined(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getGroupIdsJoined_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, "getGroupIdsJoined failed: unknown result") + + def getGroups(self, groupIds): + """ + Parameters: + - groupIds + """ + self.send_getGroups(groupIds) + return self.recv_getGroups() + + def send_getGroups(self, groupIds): + self._oprot.writeMessageBegin('getGroups', TMessageType.CALL, self._seqid) + args = getGroups_args() + args.groupIds = groupIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getGroups(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getGroups_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, "getGroups failed: unknown result") + + def getHiddenContactMids(self): + self.send_getHiddenContactMids() + return self.recv_getHiddenContactMids() + + def send_getHiddenContactMids(self): + self._oprot.writeMessageBegin('getHiddenContactMids', TMessageType.CALL, self._seqid) + args = getHiddenContactMids_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getHiddenContactMids(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getHiddenContactMids_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, "getHiddenContactMids failed: unknown result") + + def getIdentityIdentifier(self): + self.send_getIdentityIdentifier() + return self.recv_getIdentityIdentifier() + + def send_getIdentityIdentifier(self): + self._oprot.writeMessageBegin('getIdentityIdentifier', TMessageType.CALL, self._seqid) + args = getIdentityIdentifier_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getIdentityIdentifier(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getIdentityIdentifier_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, "getIdentityIdentifier failed: unknown result") + + def getLastAnnouncementIndex(self): + self.send_getLastAnnouncementIndex() + return self.recv_getLastAnnouncementIndex() + + def send_getLastAnnouncementIndex(self): + self._oprot.writeMessageBegin('getLastAnnouncementIndex', TMessageType.CALL, self._seqid) + args = getLastAnnouncementIndex_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getLastAnnouncementIndex(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getLastAnnouncementIndex_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, "getLastAnnouncementIndex failed: unknown result") + + def getLastOpRevision(self): + self.send_getLastOpRevision() + return self.recv_getLastOpRevision() + + def send_getLastOpRevision(self): + self._oprot.writeMessageBegin('getLastOpRevision', TMessageType.CALL, self._seqid) + args = getLastOpRevision_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getLastOpRevision(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getLastOpRevision_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, "getLastOpRevision failed: unknown result") + + def getSuggestRevisions(self): + self.send_getSuggestRevisions() + return self.recv_getSuggestRevisions() + + def send_getSuggestRevisions(self): + self._oprot.writeMessageBegin('getSuggestRevisions', TMessageType.CALL, self._seqid) + args = getSuggestRevisions_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSuggestRevisions(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSuggestRevisions_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, "getSuggestRevisions failed: unknown result") + + def getPreviousMessagesV2WithReadCount(self, messageBoxId, endMessageId, messagesCount): + """ + Parameters: + - messageBoxId + - endMessageId + - messagesCount + """ + self.send_getPreviousMessagesV2WithReadCount(messageBoxId, endMessageId, messagesCount) + return self.recv_getPreviousMessagesV2WithReadCount() + + def send_getPreviousMessagesV2WithReadCount(self, messageBoxId, endMessageId, messagesCount): + self._oprot.writeMessageBegin('getPreviousMessagesV2WithReadCount', TMessageType.CALL, self._seqid) + args = getPreviousMessagesV2WithReadCount_args() + args.messageBoxId = messageBoxId + args.endMessageId = endMessageId + args.messagesCount = messagesCount + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getPreviousMessagesV2WithReadCount(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getPreviousMessagesV2WithReadCount_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, "getPreviousMessagesV2WithReadCount failed: unknown result") + + def getMessageBox(self, channelId, messageBoxId, lastMessagesCount): + """ + Parameters: + - channelId + - messageBoxId + - lastMessagesCount + """ + self.send_getMessageBox(channelId, messageBoxId, lastMessagesCount) + return self.recv_getMessageBox() + + def send_getMessageBox(self, channelId, messageBoxId, lastMessagesCount): + self._oprot.writeMessageBegin('getMessageBox', TMessageType.CALL, self._seqid) + args = getMessageBox_args() + args.channelId = channelId + args.messageBoxId = messageBoxId + args.lastMessagesCount = lastMessagesCount + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getMessageBox(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getMessageBox_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, "getMessageBox failed: unknown result") + + def getMessageBoxCompactWrapUp(self, mid): + """ + Parameters: + - mid + """ + self.send_getMessageBoxCompactWrapUp(mid) + return self.recv_getMessageBoxCompactWrapUp() + + def send_getMessageBoxCompactWrapUp(self, mid): + self._oprot.writeMessageBegin('getMessageBoxCompactWrapUp', TMessageType.CALL, self._seqid) + args = getMessageBoxCompactWrapUp_args() + args.mid = mid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getMessageBoxCompactWrapUp(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getMessageBoxCompactWrapUp_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, "getMessageBoxCompactWrapUp failed: unknown result") + + def getMessageBoxCompactWrapUpList(self, start, messageBoxCount): + """ + Parameters: + - start + - messageBoxCount + """ + self.send_getMessageBoxCompactWrapUpList(start, messageBoxCount) + return self.recv_getMessageBoxCompactWrapUpList() + + def send_getMessageBoxCompactWrapUpList(self, start, messageBoxCount): + self._oprot.writeMessageBegin('getMessageBoxCompactWrapUpList', TMessageType.CALL, self._seqid) + args = getMessageBoxCompactWrapUpList_args() + args.start = start + args.messageBoxCount = messageBoxCount + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getMessageBoxCompactWrapUpList(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getMessageBoxCompactWrapUpList_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, "getMessageBoxCompactWrapUpList failed: unknown result") + + def getMessageBoxList(self, channelId, lastMessagesCount): + """ + Parameters: + - channelId + - lastMessagesCount + """ + self.send_getMessageBoxList(channelId, lastMessagesCount) + return self.recv_getMessageBoxList() + + def send_getMessageBoxList(self, channelId, lastMessagesCount): + self._oprot.writeMessageBegin('getMessageBoxList', TMessageType.CALL, self._seqid) + args = getMessageBoxList_args() + args.channelId = channelId + args.lastMessagesCount = lastMessagesCount + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getMessageBoxList(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getMessageBoxList_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, "getMessageBoxList failed: unknown result") + + def getMessageBoxListByStatus(self, channelId, lastMessagesCount, status): + """ + Parameters: + - channelId + - lastMessagesCount + - status + """ + self.send_getMessageBoxListByStatus(channelId, lastMessagesCount, status) + return self.recv_getMessageBoxListByStatus() + + def send_getMessageBoxListByStatus(self, channelId, lastMessagesCount, status): + self._oprot.writeMessageBegin('getMessageBoxListByStatus', TMessageType.CALL, self._seqid) + args = getMessageBoxListByStatus_args() + args.channelId = channelId + args.lastMessagesCount = lastMessagesCount + args.status = status + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getMessageBoxListByStatus(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getMessageBoxListByStatus_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, "getMessageBoxListByStatus failed: unknown result") + + def getMessageBoxWrapUp(self, mid): + """ + Parameters: + - mid + """ + self.send_getMessageBoxWrapUp(mid) + return self.recv_getMessageBoxWrapUp() + + def send_getMessageBoxWrapUp(self, mid): + self._oprot.writeMessageBegin('getMessageBoxWrapUp', TMessageType.CALL, self._seqid) + args = getMessageBoxWrapUp_args() + args.mid = mid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getMessageBoxWrapUp(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getMessageBoxWrapUp_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, "getMessageBoxWrapUp failed: unknown result") + + def getMessageBoxWrapUpList(self, start, messageBoxCount): + """ + Parameters: + - start + - messageBoxCount + """ + self.send_getMessageBoxWrapUpList(start, messageBoxCount) + return self.recv_getMessageBoxWrapUpList() + + def send_getMessageBoxWrapUpList(self, start, messageBoxCount): + self._oprot.writeMessageBegin('getMessageBoxWrapUpList', TMessageType.CALL, self._seqid) + args = getMessageBoxWrapUpList_args() + args.start = start + args.messageBoxCount = messageBoxCount + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getMessageBoxWrapUpList(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getMessageBoxWrapUpList_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, "getMessageBoxWrapUpList failed: unknown result") + + def getMessagesBySequenceNumber(self, channelId, messageBoxId, startSeq, endSeq): + """ + Parameters: + - channelId + - messageBoxId + - startSeq + - endSeq + """ + self.send_getMessagesBySequenceNumber(channelId, messageBoxId, startSeq, endSeq) + return self.recv_getMessagesBySequenceNumber() + + def send_getMessagesBySequenceNumber(self, channelId, messageBoxId, startSeq, endSeq): + self._oprot.writeMessageBegin('getMessagesBySequenceNumber', TMessageType.CALL, self._seqid) + args = getMessagesBySequenceNumber_args() + args.channelId = channelId + args.messageBoxId = messageBoxId + args.startSeq = startSeq + args.endSeq = endSeq + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getMessagesBySequenceNumber(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getMessagesBySequenceNumber_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, "getMessagesBySequenceNumber failed: unknown result") + + def getNextMessages(self, messageBoxId, startSeq, messagesCount): + """ + Parameters: + - messageBoxId + - startSeq + - messagesCount + """ + self.send_getNextMessages(messageBoxId, startSeq, messagesCount) + return self.recv_getNextMessages() + + def send_getNextMessages(self, messageBoxId, startSeq, messagesCount): + self._oprot.writeMessageBegin('getNextMessages', TMessageType.CALL, self._seqid) + args = getNextMessages_args() + args.messageBoxId = messageBoxId + args.startSeq = startSeq + args.messagesCount = messagesCount + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getNextMessages(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getNextMessages_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, "getNextMessages failed: unknown result") + + def getNotificationPolicy(self, carrier): + """ + Parameters: + - carrier + """ + self.send_getNotificationPolicy(carrier) + return self.recv_getNotificationPolicy() + + def send_getNotificationPolicy(self, carrier): + self._oprot.writeMessageBegin('getNotificationPolicy', TMessageType.CALL, self._seqid) + args = getNotificationPolicy_args() + args.carrier = carrier + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getNotificationPolicy(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getNotificationPolicy_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, "getNotificationPolicy failed: unknown result") + + def getPreviousMessages(self, messageBoxId, endSeq, messagesCount): + """ + Parameters: + - messageBoxId + - endSeq + - messagesCount + """ + self.send_getPreviousMessages(messageBoxId, endSeq, messagesCount) + return self.recv_getPreviousMessages() + + def send_getPreviousMessages(self, messageBoxId, endSeq, messagesCount): + self._oprot.writeMessageBegin('getPreviousMessages', TMessageType.CALL, self._seqid) + args = getPreviousMessages_args() + args.messageBoxId = messageBoxId + args.endSeq = endSeq + args.messagesCount = messagesCount + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getPreviousMessages(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getPreviousMessages_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, "getPreviousMessages failed: unknown result") + + def getProfile(self): + self.send_getProfile() + return self.recv_getProfile() + + def send_getProfile(self): + self._oprot.writeMessageBegin('getProfile', TMessageType.CALL, self._seqid) + args = getProfile_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getProfile(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getProfile_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, "getProfile failed: unknown result") + + def getProximityMatchCandidateList(self, sessionId): + """ + Parameters: + - sessionId + """ + self.send_getProximityMatchCandidateList(sessionId) + return self.recv_getProximityMatchCandidateList() + + def send_getProximityMatchCandidateList(self, sessionId): + self._oprot.writeMessageBegin('getProximityMatchCandidateList', TMessageType.CALL, self._seqid) + args = getProximityMatchCandidateList_args() + args.sessionId = sessionId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getProximityMatchCandidateList(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getProximityMatchCandidateList_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, "getProximityMatchCandidateList failed: unknown result") + + def getProximityMatchCandidates(self, sessionId): + """ + Parameters: + - sessionId + """ + self.send_getProximityMatchCandidates(sessionId) + return self.recv_getProximityMatchCandidates() + + def send_getProximityMatchCandidates(self, sessionId): + self._oprot.writeMessageBegin('getProximityMatchCandidates', TMessageType.CALL, self._seqid) + args = getProximityMatchCandidates_args() + args.sessionId = sessionId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getProximityMatchCandidates(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getProximityMatchCandidates_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, "getProximityMatchCandidates failed: unknown result") + + def getRecentMessages(self, messageBoxId, messagesCount): + """ + Parameters: + - messageBoxId + - messagesCount + """ + self.send_getRecentMessages(messageBoxId, messagesCount) + return self.recv_getRecentMessages() + + def send_getRecentMessages(self, messageBoxId, messagesCount): + self._oprot.writeMessageBegin('getRecentMessages', TMessageType.CALL, self._seqid) + args = getRecentMessages_args() + args.messageBoxId = messageBoxId + args.messagesCount = messagesCount + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getRecentMessages(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getRecentMessages_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, "getRecentMessages failed: unknown result") + + def getRecommendationIds(self): + self.send_getRecommendationIds() + return self.recv_getRecommendationIds() + + def send_getRecommendationIds(self): + self._oprot.writeMessageBegin('getRecommendationIds', TMessageType.CALL, self._seqid) + args = getRecommendationIds_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getRecommendationIds(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getRecommendationIds_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, "getRecommendationIds failed: unknown result") + + def getRoom(self, roomId): + """ + Parameters: + - roomId + """ + self.send_getRoom(roomId) + return self.recv_getRoom() + + def send_getRoom(self, roomId): + self._oprot.writeMessageBegin('getRoom', TMessageType.CALL, self._seqid) + args = getRoom_args() + args.roomId = roomId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getRoom(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getRoom_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, "getRoom failed: unknown result") + + def getRSAKeyInfo(self, provider): + """ + Parameters: + - provider + """ + self.send_getRSAKeyInfo(provider) + return self.recv_getRSAKeyInfo() + + def send_getRSAKeyInfo(self, provider): + self._oprot.writeMessageBegin('getRSAKeyInfo', TMessageType.CALL, self._seqid) + args = getRSAKeyInfo_args() + args.provider = provider + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getRSAKeyInfo(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getRSAKeyInfo_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, "getRSAKeyInfo failed: unknown result") + + def getServerTime(self): + self.send_getServerTime() + return self.recv_getServerTime() + + def send_getServerTime(self): + self._oprot.writeMessageBegin('getServerTime', TMessageType.CALL, self._seqid) + args = getServerTime_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getServerTime(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getServerTime_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, "getServerTime failed: unknown result") + + def getSessions(self): + self.send_getSessions() + return self.recv_getSessions() + + def send_getSessions(self): + self._oprot.writeMessageBegin('getSessions', TMessageType.CALL, self._seqid) + args = getSessions_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSessions(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSessions_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, "getSessions failed: unknown result") + + def getSettings(self): + self.send_getSettings() + return self.recv_getSettings() + + def send_getSettings(self): + self._oprot.writeMessageBegin('getSettings', TMessageType.CALL, self._seqid) + args = getSettings_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSettings(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSettings_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, "getSettings failed: unknown result") + + def getGroupsV2(self, groupIds): + """ + Parameters: + - groupIds + """ + self.send_getGroupsV2(groupIds) + return self.recv_getGroupsV2() + + def send_getGroupsV2(self, groupIds): + self._oprot.writeMessageBegin('getGroupsV2', TMessageType.CALL, self._seqid) + args = getGroupsV2_args() + args.groupIds = groupIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getGroupsV2(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getGroupsV2_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, "getGroupsV2 failed: unknown result") + + def getSettingsAttributes(self, attrBitset): + """ + Parameters: + - attrBitset + """ + self.send_getSettingsAttributes(attrBitset) + return self.recv_getSettingsAttributes() + + def send_getSettingsAttributes(self, attrBitset): + self._oprot.writeMessageBegin('getSettingsAttributes', TMessageType.CALL, self._seqid) + args = getSettingsAttributes_args() + args.attrBitset = attrBitset + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSettingsAttributes(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSettingsAttributes_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, "getSettingsAttributes failed: unknown result") + + def getSystemConfiguration(self): + self.send_getSystemConfiguration() + return self.recv_getSystemConfiguration() + + def send_getSystemConfiguration(self): + self._oprot.writeMessageBegin('getSystemConfiguration', TMessageType.CALL, self._seqid) + args = getSystemConfiguration_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSystemConfiguration(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getSystemConfiguration_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, "getSystemConfiguration failed: unknown result") + + def getUserTicket(self): + self.send_getUserTicket() + return self.recv_getUserTicket() + + def send_getUserTicket(self): + self._oprot.writeMessageBegin('getUserTicket', TMessageType.CALL, self._seqid) + args = getUserTicket_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getUserTicket(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getUserTicket_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, "getUserTicket failed: unknown result") + + def getWapInvitation(self, invitationHash): + """ + Parameters: + - invitationHash + """ + self.send_getWapInvitation(invitationHash) + return self.recv_getWapInvitation() + + def send_getWapInvitation(self, invitationHash): + self._oprot.writeMessageBegin('getWapInvitation', TMessageType.CALL, self._seqid) + args = getWapInvitation_args() + args.invitationHash = invitationHash + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getWapInvitation(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getWapInvitation_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, "getWapInvitation failed: unknown result") + + def invalidateUserTicket(self): + self.send_invalidateUserTicket() + self.recv_invalidateUserTicket() + + def send_invalidateUserTicket(self): + self._oprot.writeMessageBegin('invalidateUserTicket', TMessageType.CALL, self._seqid) + args = invalidateUserTicket_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_invalidateUserTicket(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = invalidateUserTicket_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def inviteFriendsBySms(self, phoneNumberList): + """ + Parameters: + - phoneNumberList + """ + self.send_inviteFriendsBySms(phoneNumberList) + self.recv_inviteFriendsBySms() + + def send_inviteFriendsBySms(self, phoneNumberList): + self._oprot.writeMessageBegin('inviteFriendsBySms', TMessageType.CALL, self._seqid) + args = inviteFriendsBySms_args() + args.phoneNumberList = phoneNumberList + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_inviteFriendsBySms(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = inviteFriendsBySms_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def inviteIntoGroup(self, reqSeq, groupId, contactIds): + """ + Parameters: + - reqSeq + - groupId + - contactIds + """ + self.send_inviteIntoGroup(reqSeq, groupId, contactIds) + self.recv_inviteIntoGroup() + + def send_inviteIntoGroup(self, reqSeq, groupId, contactIds): + self._oprot.writeMessageBegin('inviteIntoGroup', TMessageType.CALL, self._seqid) + args = inviteIntoGroup_args() + args.reqSeq = reqSeq + args.groupId = groupId + args.contactIds = contactIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_inviteIntoGroup(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = inviteIntoGroup_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def inviteIntoRoom(self, reqSeq, roomId, contactIds): + """ + Parameters: + - reqSeq + - roomId + - contactIds + """ + self.send_inviteIntoRoom(reqSeq, roomId, contactIds) + self.recv_inviteIntoRoom() + + def send_inviteIntoRoom(self, reqSeq, roomId, contactIds): + self._oprot.writeMessageBegin('inviteIntoRoom', TMessageType.CALL, self._seqid) + args = inviteIntoRoom_args() + args.reqSeq = reqSeq + args.roomId = roomId + args.contactIds = contactIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_inviteIntoRoom(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = inviteIntoRoom_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def inviteViaEmail(self, reqSeq, email, name): + """ + Parameters: + - reqSeq + - email + - name + """ + self.send_inviteViaEmail(reqSeq, email, name) + self.recv_inviteViaEmail() + + def send_inviteViaEmail(self, reqSeq, email, name): + self._oprot.writeMessageBegin('inviteViaEmail', TMessageType.CALL, self._seqid) + args = inviteViaEmail_args() + args.reqSeq = reqSeq + args.email = email + args.name = name + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_inviteViaEmail(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = inviteViaEmail_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def isIdentityIdentifierAvailable(self, provider, identifier): + """ + Parameters: + - provider + - identifier + """ + self.send_isIdentityIdentifierAvailable(provider, identifier) + return self.recv_isIdentityIdentifierAvailable() + + def send_isIdentityIdentifierAvailable(self, provider, identifier): + self._oprot.writeMessageBegin('isIdentityIdentifierAvailable', TMessageType.CALL, self._seqid) + args = isIdentityIdentifierAvailable_args() + args.provider = provider + args.identifier = identifier + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_isIdentityIdentifierAvailable(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = isIdentityIdentifierAvailable_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, "isIdentityIdentifierAvailable failed: unknown result") + + def isUseridAvailable(self, userid): + """ + Parameters: + - userid + """ + self.send_isUseridAvailable(userid) + return self.recv_isUseridAvailable() + + def send_isUseridAvailable(self, userid): + self._oprot.writeMessageBegin('isUseridAvailable', TMessageType.CALL, self._seqid) + args = isUseridAvailable_args() + args.userid = userid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_isUseridAvailable(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = isUseridAvailable_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, "isUseridAvailable failed: unknown result") + + def kickoutFromGroup(self, reqSeq, groupId, contactIds): + """ + Parameters: + - reqSeq + - groupId + - contactIds + """ + self.send_kickoutFromGroup(reqSeq, groupId, contactIds) + self.recv_kickoutFromGroup() + + def send_kickoutFromGroup(self, reqSeq, groupId, contactIds): + self._oprot.writeMessageBegin('kickoutFromGroup', TMessageType.CALL, self._seqid) + args = kickoutFromGroup_args() + args.reqSeq = reqSeq + args.groupId = groupId + args.contactIds = contactIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_kickoutFromGroup(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = kickoutFromGroup_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + 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() + + def send_leaveGroup(self, reqSeq, groupId): + self._oprot.writeMessageBegin('leaveGroup', TMessageType.CALL, self._seqid) + args = leaveGroup_args() + args.reqSeq = reqSeq + args.groupId = groupId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_leaveGroup(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = leaveGroup_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def leaveRoom(self, reqSeq, roomId): + """ + Parameters: + - reqSeq + - roomId + """ + self.send_leaveRoom(reqSeq, roomId) + self.recv_leaveRoom() + + def send_leaveRoom(self, reqSeq, roomId): + self._oprot.writeMessageBegin('leaveRoom', TMessageType.CALL, self._seqid) + args = leaveRoom_args() + args.reqSeq = reqSeq + args.roomId = roomId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_leaveRoom(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = leaveRoom_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def loginWithIdentityCredential(self, identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate): + """ + Parameters: + - identityProvider + - identifier + - password + - keepLoggedIn + - accessLocation + - systemName + - certificate + """ + self.send_loginWithIdentityCredential(identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate) + return self.recv_loginWithIdentityCredential() + + def send_loginWithIdentityCredential(self, identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate): + self._oprot.writeMessageBegin('loginWithIdentityCredential', TMessageType.CALL, self._seqid) + args = loginWithIdentityCredential_args() + args.identityProvider = identityProvider + args.identifier = identifier + args.password = password + args.keepLoggedIn = keepLoggedIn + args.accessLocation = accessLocation + args.systemName = systemName + args.certificate = certificate + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_loginWithIdentityCredential(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = loginWithIdentityCredential_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, "loginWithIdentityCredential failed: unknown result") + + def loginWithIdentityCredentialForCertificate(self, identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate): + """ + Parameters: + - identityProvider + - identifier + - password + - keepLoggedIn + - accessLocation + - systemName + - certificate + """ + self.send_loginWithIdentityCredentialForCertificate(identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate) + return self.recv_loginWithIdentityCredentialForCertificate() + + def send_loginWithIdentityCredentialForCertificate(self, identityProvider, identifier, password, keepLoggedIn, accessLocation, systemName, certificate): + self._oprot.writeMessageBegin('loginWithIdentityCredentialForCertificate', TMessageType.CALL, self._seqid) + args = loginWithIdentityCredentialForCertificate_args() + args.identityProvider = identityProvider + args.identifier = identifier + args.password = password + args.keepLoggedIn = keepLoggedIn + args.accessLocation = accessLocation + args.systemName = systemName + args.certificate = certificate + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_loginWithIdentityCredentialForCertificate(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = loginWithIdentityCredentialForCertificate_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, "loginWithIdentityCredentialForCertificate failed: unknown result") + + def loginWithVerifier(self, verifier): + """ + Parameters: + - verifier + """ + self.send_loginWithVerifier(verifier) + return self.recv_loginWithVerifier() + + def send_loginWithVerifier(self, verifier): + self._oprot.writeMessageBegin('loginWithVerifier', TMessageType.CALL, self._seqid) + args = loginWithVerifier_args() + args.verifier = verifier + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_loginWithVerifier(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = loginWithVerifier_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, "loginWithVerifier failed: unknown result") + + def loginWithVerifierForCerificate(self, verifier): + """ + Parameters: + - verifier + """ + self.send_loginWithVerifierForCerificate(verifier) + return self.recv_loginWithVerifierForCerificate() + + def send_loginWithVerifierForCerificate(self, verifier): + self._oprot.writeMessageBegin('loginWithVerifierForCerificate', TMessageType.CALL, self._seqid) + args = loginWithVerifierForCerificate_args() + args.verifier = verifier + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_loginWithVerifierForCerificate(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = loginWithVerifierForCerificate_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, "loginWithVerifierForCerificate failed: unknown result") + + def loginWithVerifierForCertificate(self, verifier): + """ + Parameters: + - verifier + """ + self.send_loginWithVerifierForCertificate(verifier) + return self.recv_loginWithVerifierForCertificate() + + def send_loginWithVerifierForCertificate(self, verifier): + self._oprot.writeMessageBegin('loginWithVerifierForCertificate', TMessageType.CALL, self._seqid) + args = loginWithVerifierForCertificate_args() + args.verifier = verifier + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_loginWithVerifierForCertificate(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = loginWithVerifierForCertificate_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, "loginWithVerifierForCertificate failed: unknown result") + + def logout(self): + self.send_logout() + self.recv_logout() + + def send_logout(self): + self._oprot.writeMessageBegin('logout', TMessageType.CALL, self._seqid) + args = logout_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_logout(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = logout_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def logoutSession(self, tokenKey): + """ + Parameters: + - tokenKey + """ + self.send_logoutSession(tokenKey) + self.recv_logoutSession() + + def send_logoutSession(self, tokenKey): + self._oprot.writeMessageBegin('logoutSession', TMessageType.CALL, self._seqid) + args = logoutSession_args() + args.tokenKey = tokenKey + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_logoutSession(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = logoutSession_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def noop(self): + self.send_noop() + self.recv_noop() + + def send_noop(self): + self._oprot.writeMessageBegin('noop', TMessageType.CALL, self._seqid) + args = noop_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_noop(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = noop_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def notifiedRedirect(self, paramMap): + """ + Parameters: + - paramMap + """ + self.send_notifiedRedirect(paramMap) + self.recv_notifiedRedirect() + + def send_notifiedRedirect(self, paramMap): + self._oprot.writeMessageBegin('notifiedRedirect', TMessageType.CALL, self._seqid) + args = notifiedRedirect_args() + args.paramMap = paramMap + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_notifiedRedirect(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = notifiedRedirect_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def notifyBuddyOnAir(self, seq, receiverMids): + """ + Parameters: + - seq + - receiverMids + """ + self.send_notifyBuddyOnAir(seq, receiverMids) + return self.recv_notifyBuddyOnAir() + + def send_notifyBuddyOnAir(self, seq, receiverMids): + self._oprot.writeMessageBegin('notifyBuddyOnAir', TMessageType.CALL, self._seqid) + args = notifyBuddyOnAir_args() + args.seq = seq + args.receiverMids = receiverMids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_notifyBuddyOnAir(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = notifyBuddyOnAir_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, "notifyBuddyOnAir failed: unknown result") + + def notifyIndividualEvent(self, notificationStatus, receiverMids): + """ + Parameters: + - notificationStatus + - receiverMids + """ + self.send_notifyIndividualEvent(notificationStatus, receiverMids) + self.recv_notifyIndividualEvent() + + def send_notifyIndividualEvent(self, notificationStatus, receiverMids): + self._oprot.writeMessageBegin('notifyIndividualEvent', TMessageType.CALL, self._seqid) + args = notifyIndividualEvent_args() + args.notificationStatus = notificationStatus + args.receiverMids = receiverMids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_notifyIndividualEvent(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = notifyIndividualEvent_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def notifyInstalled(self, udidHash, applicationTypeWithExtensions): + """ + Parameters: + - udidHash + - applicationTypeWithExtensions + """ + self.send_notifyInstalled(udidHash, applicationTypeWithExtensions) + self.recv_notifyInstalled() + + def send_notifyInstalled(self, udidHash, applicationTypeWithExtensions): + self._oprot.writeMessageBegin('notifyInstalled', TMessageType.CALL, self._seqid) + args = notifyInstalled_args() + args.udidHash = udidHash + args.applicationTypeWithExtensions = applicationTypeWithExtensions + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_notifyInstalled(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = notifyInstalled_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def notifyRegistrationComplete(self, udidHash, applicationTypeWithExtensions): + """ + Parameters: + - udidHash + - applicationTypeWithExtensions + """ + self.send_notifyRegistrationComplete(udidHash, applicationTypeWithExtensions) + self.recv_notifyRegistrationComplete() + + def send_notifyRegistrationComplete(self, udidHash, applicationTypeWithExtensions): + self._oprot.writeMessageBegin('notifyRegistrationComplete', TMessageType.CALL, self._seqid) + args = notifyRegistrationComplete_args() + args.udidHash = udidHash + args.applicationTypeWithExtensions = applicationTypeWithExtensions + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_notifyRegistrationComplete(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = notifyRegistrationComplete_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def notifySleep(self, lastRev, badge): + """ + Parameters: + - lastRev + - badge + """ + self.send_notifySleep(lastRev, badge) + self.recv_notifySleep() + + def send_notifySleep(self, lastRev, badge): + self._oprot.writeMessageBegin('notifySleep', TMessageType.CALL, self._seqid) + args = notifySleep_args() + args.lastRev = lastRev + args.badge = badge + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_notifySleep(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = notifySleep_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def notifyUpdated(self, lastRev, deviceInfo): + """ + Parameters: + - lastRev + - deviceInfo + """ + self.send_notifyUpdated(lastRev, deviceInfo) + self.recv_notifyUpdated() + + def send_notifyUpdated(self, lastRev, deviceInfo): + self._oprot.writeMessageBegin('notifyUpdated', TMessageType.CALL, self._seqid) + args = notifyUpdated_args() + args.lastRev = lastRev + args.deviceInfo = deviceInfo + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_notifyUpdated(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = notifyUpdated_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def openProximityMatch(self, location): + """ + Parameters: + - location + """ + self.send_openProximityMatch(location) + return self.recv_openProximityMatch() + + def send_openProximityMatch(self, location): + self._oprot.writeMessageBegin('openProximityMatch', TMessageType.CALL, self._seqid) + args = openProximityMatch_args() + args.location = location + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_openProximityMatch(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = openProximityMatch_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, "openProximityMatch failed: unknown result") + + def registerBuddyUser(self, buddyId, registrarPassword): + """ + Parameters: + - buddyId + - registrarPassword + """ + self.send_registerBuddyUser(buddyId, registrarPassword) + return self.recv_registerBuddyUser() + + def send_registerBuddyUser(self, buddyId, registrarPassword): + self._oprot.writeMessageBegin('registerBuddyUser', TMessageType.CALL, self._seqid) + args = registerBuddyUser_args() + args.buddyId = buddyId + args.registrarPassword = registrarPassword + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerBuddyUser(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = registerBuddyUser_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, "registerBuddyUser failed: unknown result") + + def registerBuddyUserid(self, seq, userid): + """ + Parameters: + - seq + - userid + """ + self.send_registerBuddyUserid(seq, userid) + self.recv_registerBuddyUserid() + + def send_registerBuddyUserid(self, seq, userid): + self._oprot.writeMessageBegin('registerBuddyUserid', TMessageType.CALL, self._seqid) + args = registerBuddyUserid_args() + args.seq = seq + args.userid = userid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerBuddyUserid(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = registerBuddyUserid_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def registerDevice(self, sessionId): + """ + Parameters: + - sessionId + """ + self.send_registerDevice(sessionId) + return self.recv_registerDevice() + + def send_registerDevice(self, sessionId): + self._oprot.writeMessageBegin('registerDevice', TMessageType.CALL, self._seqid) + args = registerDevice_args() + args.sessionId = sessionId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerDevice(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = registerDevice_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, "registerDevice failed: unknown result") + + def registerDeviceWithIdentityCredential(self, sessionId, provider, identifier, verifier): + """ + Parameters: + - sessionId + - provider + - identifier + - verifier + """ + self.send_registerDeviceWithIdentityCredential(sessionId, provider, identifier, verifier) + return self.recv_registerDeviceWithIdentityCredential() + + def send_registerDeviceWithIdentityCredential(self, sessionId, provider, identifier, verifier): + self._oprot.writeMessageBegin('registerDeviceWithIdentityCredential', TMessageType.CALL, self._seqid) + args = registerDeviceWithIdentityCredential_args() + args.sessionId = sessionId + args.provider = provider + args.identifier = identifier + args.verifier = verifier + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerDeviceWithIdentityCredential(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = registerDeviceWithIdentityCredential_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, "registerDeviceWithIdentityCredential failed: unknown result") + + def registerDeviceWithoutPhoneNumber(self, region, udidHash, deviceInfo): + """ + Parameters: + - region + - udidHash + - deviceInfo + """ + self.send_registerDeviceWithoutPhoneNumber(region, udidHash, deviceInfo) + return self.recv_registerDeviceWithoutPhoneNumber() + + def send_registerDeviceWithoutPhoneNumber(self, region, udidHash, deviceInfo): + self._oprot.writeMessageBegin('registerDeviceWithoutPhoneNumber', TMessageType.CALL, self._seqid) + args = registerDeviceWithoutPhoneNumber_args() + args.region = region + args.udidHash = udidHash + args.deviceInfo = deviceInfo + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerDeviceWithoutPhoneNumber(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = registerDeviceWithoutPhoneNumber_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, "registerDeviceWithoutPhoneNumber failed: unknown result") + + def registerDeviceWithoutPhoneNumberWithIdentityCredential(self, region, udidHash, deviceInfo, provider, identifier, verifier, mid, migrationPincodeSessionId): + """ + Parameters: + - region + - udidHash + - deviceInfo + - provider + - identifier + - verifier + - mid + - migrationPincodeSessionId + """ + self.send_registerDeviceWithoutPhoneNumberWithIdentityCredential(region, udidHash, deviceInfo, provider, identifier, verifier, mid, migrationPincodeSessionId) + return self.recv_registerDeviceWithoutPhoneNumberWithIdentityCredential() + + def send_registerDeviceWithoutPhoneNumberWithIdentityCredential(self, region, udidHash, deviceInfo, provider, identifier, verifier, mid, migrationPincodeSessionId): + self._oprot.writeMessageBegin('registerDeviceWithoutPhoneNumberWithIdentityCredential', TMessageType.CALL, self._seqid) + args = registerDeviceWithoutPhoneNumberWithIdentityCredential_args() + args.region = region + args.udidHash = udidHash + args.deviceInfo = deviceInfo + args.provider = provider + args.identifier = identifier + args.verifier = verifier + args.mid = mid + args.migrationPincodeSessionId = migrationPincodeSessionId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerDeviceWithoutPhoneNumberWithIdentityCredential(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = registerDeviceWithoutPhoneNumberWithIdentityCredential_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, "registerDeviceWithoutPhoneNumberWithIdentityCredential failed: unknown result") + + def registerUserid(self, reqSeq, userid): + """ + Parameters: + - reqSeq + - userid + """ + self.send_registerUserid(reqSeq, userid) + return self.recv_registerUserid() + + def send_registerUserid(self, reqSeq, userid): + self._oprot.writeMessageBegin('registerUserid', TMessageType.CALL, self._seqid) + args = registerUserid_args() + args.reqSeq = reqSeq + args.userid = userid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerUserid(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = registerUserid_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, "registerUserid failed: unknown result") + + def registerWapDevice(self, invitationHash, guidHash, email, deviceInfo): + """ + Parameters: + - invitationHash + - guidHash + - email + - deviceInfo + """ + self.send_registerWapDevice(invitationHash, guidHash, email, deviceInfo) + return self.recv_registerWapDevice() + + def send_registerWapDevice(self, invitationHash, guidHash, email, deviceInfo): + self._oprot.writeMessageBegin('registerWapDevice', TMessageType.CALL, self._seqid) + args = registerWapDevice_args() + args.invitationHash = invitationHash + args.guidHash = guidHash + args.email = email + args.deviceInfo = deviceInfo + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerWapDevice(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = registerWapDevice_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, "registerWapDevice failed: unknown result") + + def registerWithExistingSnsIdAndIdentityCredential(self, identityCredential, region, udidHash, deviceInfo): + """ + Parameters: + - identityCredential + - region + - udidHash + - deviceInfo + """ + self.send_registerWithExistingSnsIdAndIdentityCredential(identityCredential, region, udidHash, deviceInfo) + return self.recv_registerWithExistingSnsIdAndIdentityCredential() + + def send_registerWithExistingSnsIdAndIdentityCredential(self, identityCredential, region, udidHash, deviceInfo): + self._oprot.writeMessageBegin('registerWithExistingSnsIdAndIdentityCredential', TMessageType.CALL, self._seqid) + args = registerWithExistingSnsIdAndIdentityCredential_args() + args.identityCredential = identityCredential + args.region = region + args.udidHash = udidHash + args.deviceInfo = deviceInfo + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerWithExistingSnsIdAndIdentityCredential(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = registerWithExistingSnsIdAndIdentityCredential_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, "registerWithExistingSnsIdAndIdentityCredential failed: unknown result") + + def registerWithSnsId(self, snsIdType, snsAccessToken, region, udidHash, deviceInfo, mid): + """ + Parameters: + - snsIdType + - snsAccessToken + - region + - udidHash + - deviceInfo + - mid + """ + self.send_registerWithSnsId(snsIdType, snsAccessToken, region, udidHash, deviceInfo, mid) + return self.recv_registerWithSnsId() + + def send_registerWithSnsId(self, snsIdType, snsAccessToken, region, udidHash, deviceInfo, mid): + self._oprot.writeMessageBegin('registerWithSnsId', TMessageType.CALL, self._seqid) + args = registerWithSnsId_args() + args.snsIdType = snsIdType + args.snsAccessToken = snsAccessToken + args.region = region + args.udidHash = udidHash + args.deviceInfo = deviceInfo + args.mid = mid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerWithSnsId(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = registerWithSnsId_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, "registerWithSnsId failed: unknown result") + + def registerWithSnsIdAndIdentityCredential(self, snsIdType, snsAccessToken, identityCredential, region, udidHash, deviceInfo): + """ + Parameters: + - snsIdType + - snsAccessToken + - identityCredential + - region + - udidHash + - deviceInfo + """ + self.send_registerWithSnsIdAndIdentityCredential(snsIdType, snsAccessToken, identityCredential, region, udidHash, deviceInfo) + return self.recv_registerWithSnsIdAndIdentityCredential() + + def send_registerWithSnsIdAndIdentityCredential(self, snsIdType, snsAccessToken, identityCredential, region, udidHash, deviceInfo): + self._oprot.writeMessageBegin('registerWithSnsIdAndIdentityCredential', TMessageType.CALL, self._seqid) + args = registerWithSnsIdAndIdentityCredential_args() + args.snsIdType = snsIdType + args.snsAccessToken = snsAccessToken + args.identityCredential = identityCredential + args.region = region + args.udidHash = udidHash + args.deviceInfo = deviceInfo + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerWithSnsIdAndIdentityCredential(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = registerWithSnsIdAndIdentityCredential_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, "registerWithSnsIdAndIdentityCredential failed: unknown result") + + def reissueDeviceCredential(self): + self.send_reissueDeviceCredential() + return self.recv_reissueDeviceCredential() + + def send_reissueDeviceCredential(self): + self._oprot.writeMessageBegin('reissueDeviceCredential', TMessageType.CALL, self._seqid) + args = reissueDeviceCredential_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reissueDeviceCredential(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reissueDeviceCredential_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, "reissueDeviceCredential failed: unknown result") + + def reissueUserTicket(self, expirationTime, maxUseCount): + """ + Parameters: + - expirationTime + - maxUseCount + """ + self.send_reissueUserTicket(expirationTime, maxUseCount) + return self.recv_reissueUserTicket() + + def send_reissueUserTicket(self, expirationTime, maxUseCount): + self._oprot.writeMessageBegin('reissueUserTicket', TMessageType.CALL, self._seqid) + args = reissueUserTicket_args() + args.expirationTime = expirationTime + args.maxUseCount = maxUseCount + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reissueUserTicket(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reissueUserTicket_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, "reissueUserTicket failed: unknown result") + + def getMessageReadRange(self, chatIds): + """ + Parameters: + - chatIds + """ + self.send_getMessageReadRange(chatIds) + return self.recv_getMessageReadRange() + + def send_getMessageReadRange(self, chatIds): + self._oprot.writeMessageBegin('getMessageReadRange', TMessageType.CALL, self._seqid) + args = getMessageReadRange_args() + args.chatIds = chatIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getMessageReadRange(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getMessageReadRange_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, "getMessageReadRange failed: unknown result") + + def rejectGroupInvitation(self, reqSeq, groupId): + """ + Parameters: + - reqSeq + - groupId + """ + self.send_rejectGroupInvitation(reqSeq, groupId) + self.recv_rejectGroupInvitation() + + def send_rejectGroupInvitation(self, reqSeq, groupId): + self._oprot.writeMessageBegin('rejectGroupInvitation', TMessageType.CALL, self._seqid) + args = rejectGroupInvitation_args() + args.reqSeq = reqSeq + args.groupId = groupId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_rejectGroupInvitation(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = rejectGroupInvitation_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def releaseSession(self): + self.send_releaseSession() + self.recv_releaseSession() + + def send_releaseSession(self): + self._oprot.writeMessageBegin('releaseSession', TMessageType.CALL, self._seqid) + args = releaseSession_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_releaseSession(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = releaseSession_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def removeAllMessages(self, seq, lastMessageId): + """ + Parameters: + - seq + - lastMessageId + """ + self.send_removeAllMessages(seq, lastMessageId) + self.recv_removeAllMessages() + + def send_removeAllMessages(self, seq, lastMessageId): + self._oprot.writeMessageBegin('removeAllMessages', TMessageType.CALL, self._seqid) + args = removeAllMessages_args() + args.seq = seq + args.lastMessageId = lastMessageId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_removeAllMessages(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = removeAllMessages_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def removeBuddyLocation(self, mid, index): + """ + Parameters: + - mid + - index + """ + self.send_removeBuddyLocation(mid, index) + self.recv_removeBuddyLocation() + + def send_removeBuddyLocation(self, mid, index): + self._oprot.writeMessageBegin('removeBuddyLocation', TMessageType.CALL, self._seqid) + args = removeBuddyLocation_args() + args.mid = mid + args.index = index + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_removeBuddyLocation(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = removeBuddyLocation_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def removeMessage(self, messageId): + """ + Parameters: + - messageId + """ + self.send_removeMessage(messageId) + return self.recv_removeMessage() + + def send_removeMessage(self, messageId): + self._oprot.writeMessageBegin('removeMessage', TMessageType.CALL, self._seqid) + args = removeMessage_args() + args.messageId = messageId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_removeMessage(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = removeMessage_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, "removeMessage failed: unknown result") + + def makeUserAddMyselfAsContact(self, contactOwnerMid): + """ + Parameters: + - contactOwnerMid + """ + self.send_makeUserAddMyselfAsContact(contactOwnerMid) + return self.recv_makeUserAddMyselfAsContact() + + def send_makeUserAddMyselfAsContact(self, contactOwnerMid): + self._oprot.writeMessageBegin('makeUserAddMyselfAsContact', TMessageType.CALL, self._seqid) + args = makeUserAddMyselfAsContact_args() + args.contactOwnerMid = contactOwnerMid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_makeUserAddMyselfAsContact(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = makeUserAddMyselfAsContact_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, "makeUserAddMyselfAsContact failed: unknown result") + + def removeMessageFromMyHome(self, messageId): + """ + Parameters: + - messageId + """ + self.send_removeMessageFromMyHome(messageId) + return self.recv_removeMessageFromMyHome() + + def send_removeMessageFromMyHome(self, messageId): + self._oprot.writeMessageBegin('removeMessageFromMyHome', TMessageType.CALL, self._seqid) + args = removeMessageFromMyHome_args() + args.messageId = messageId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_removeMessageFromMyHome(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = removeMessageFromMyHome_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, "removeMessageFromMyHome failed: unknown result") + + def removeSnsId(self, snsIdType): + """ + Parameters: + - snsIdType + """ + self.send_removeSnsId(snsIdType) + return self.recv_removeSnsId() + + def send_removeSnsId(self, snsIdType): + self._oprot.writeMessageBegin('removeSnsId', TMessageType.CALL, self._seqid) + args = removeSnsId_args() + args.snsIdType = snsIdType + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_removeSnsId(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = removeSnsId_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, "removeSnsId failed: unknown result") + + def report(self, syncOpRevision, category, report): + """ + Parameters: + - syncOpRevision + - category + - report + """ + self.send_report(syncOpRevision, category, report) + self.recv_report() + + def send_report(self, syncOpRevision, category, report): + self._oprot.writeMessageBegin('report', TMessageType.CALL, self._seqid) + args = report_args() + args.syncOpRevision = syncOpRevision + args.category = category + args.report = report + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_report(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = report_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def reportContacts(self, syncOpRevision, category, contactReports, actionType): + """ + Parameters: + - syncOpRevision + - category + - contactReports + - actionType + """ + self.send_reportContacts(syncOpRevision, category, contactReports, actionType) + return self.recv_reportContacts() + + def send_reportContacts(self, syncOpRevision, category, contactReports, actionType): + self._oprot.writeMessageBegin('reportContacts', TMessageType.CALL, self._seqid) + args = reportContacts_args() + args.syncOpRevision = syncOpRevision + args.category = category + args.contactReports = contactReports + args.actionType = actionType + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reportContacts(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reportContacts_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, "reportContacts failed: unknown result") + + def reportGroups(self, syncOpRevision, groups): + """ + Parameters: + - syncOpRevision + - groups + """ + self.send_reportGroups(syncOpRevision, groups) + self.recv_reportGroups() + + def send_reportGroups(self, syncOpRevision, groups): + self._oprot.writeMessageBegin('reportGroups', TMessageType.CALL, self._seqid) + args = reportGroups_args() + args.syncOpRevision = syncOpRevision + args.groups = groups + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reportGroups(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reportGroups_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def reportProfile(self, syncOpRevision, profile): + """ + Parameters: + - syncOpRevision + - profile + """ + self.send_reportProfile(syncOpRevision, profile) + self.recv_reportProfile() + + def send_reportProfile(self, syncOpRevision, profile): + self._oprot.writeMessageBegin('reportProfile', TMessageType.CALL, self._seqid) + args = reportProfile_args() + args.syncOpRevision = syncOpRevision + args.profile = profile + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reportProfile(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reportProfile_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def reportRooms(self, syncOpRevision, rooms): + """ + Parameters: + - syncOpRevision + - rooms + """ + self.send_reportRooms(syncOpRevision, rooms) + self.recv_reportRooms() + + def send_reportRooms(self, syncOpRevision, rooms): + self._oprot.writeMessageBegin('reportRooms', TMessageType.CALL, self._seqid) + args = reportRooms_args() + args.syncOpRevision = syncOpRevision + args.rooms = rooms + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reportRooms(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reportRooms_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def findAndAddContactByMetaTag(self, reqSeq, userid, reference): + """ + Parameters: + - reqSeq + - userid + - reference + """ + self.send_findAndAddContactByMetaTag(reqSeq, userid, reference) + return self.recv_findAndAddContactByMetaTag() + + def send_findAndAddContactByMetaTag(self, reqSeq, userid, reference): + self._oprot.writeMessageBegin('findAndAddContactByMetaTag', TMessageType.CALL, self._seqid) + args = findAndAddContactByMetaTag_args() + args.reqSeq = reqSeq + args.userid = userid + args.reference = reference + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_findAndAddContactByMetaTag(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = findAndAddContactByMetaTag_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, "findAndAddContactByMetaTag failed: unknown result") + + def reportSettings(self, syncOpRevision, settings): + """ + Parameters: + - syncOpRevision + - settings + """ + self.send_reportSettings(syncOpRevision, settings) + self.recv_reportSettings() + + def send_reportSettings(self, syncOpRevision, settings): + self._oprot.writeMessageBegin('reportSettings', TMessageType.CALL, self._seqid) + args = reportSettings_args() + args.syncOpRevision = syncOpRevision + args.settings = settings + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reportSettings(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reportSettings_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def reportSpam(self, chatMid, memberMids, spammerReasons, senderMids, spamMessageIds, spamMessages): + """ + Parameters: + - chatMid + - memberMids + - spammerReasons + - senderMids + - spamMessageIds + - spamMessages + """ + self.send_reportSpam(chatMid, memberMids, spammerReasons, senderMids, spamMessageIds, spamMessages) + self.recv_reportSpam() + + def send_reportSpam(self, chatMid, memberMids, spammerReasons, senderMids, spamMessageIds, spamMessages): + self._oprot.writeMessageBegin('reportSpam', TMessageType.CALL, self._seqid) + args = reportSpam_args() + args.chatMid = chatMid + args.memberMids = memberMids + args.spammerReasons = spammerReasons + args.senderMids = senderMids + args.spamMessageIds = spamMessageIds + args.spamMessages = spamMessages + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reportSpam(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reportSpam_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def reportSpammer(self, spammerMid, spammerReasons, spamMessageIds): + """ + Parameters: + - spammerMid + - spammerReasons + - spamMessageIds + """ + self.send_reportSpammer(spammerMid, spammerReasons, spamMessageIds) + self.recv_reportSpammer() + + def send_reportSpammer(self, spammerMid, spammerReasons, spamMessageIds): + self._oprot.writeMessageBegin('reportSpammer', TMessageType.CALL, self._seqid) + args = reportSpammer_args() + args.spammerMid = spammerMid + args.spammerReasons = spammerReasons + args.spamMessageIds = spamMessageIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_reportSpammer(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = reportSpammer_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def requestAccountPasswordReset(self, provider, identifier, locale): + """ + Parameters: + - provider + - identifier + - locale + """ + self.send_requestAccountPasswordReset(provider, identifier, locale) + self.recv_requestAccountPasswordReset() + + def send_requestAccountPasswordReset(self, provider, identifier, locale): + self._oprot.writeMessageBegin('requestAccountPasswordReset', TMessageType.CALL, self._seqid) + args = requestAccountPasswordReset_args() + args.provider = provider + args.identifier = identifier + args.locale = locale + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_requestAccountPasswordReset(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = requestAccountPasswordReset_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def requestEmailConfirmation(self, emailConfirmation): + """ + Parameters: + - emailConfirmation + """ + self.send_requestEmailConfirmation(emailConfirmation) + return self.recv_requestEmailConfirmation() + + def send_requestEmailConfirmation(self, emailConfirmation): + self._oprot.writeMessageBegin('requestEmailConfirmation', TMessageType.CALL, self._seqid) + args = requestEmailConfirmation_args() + args.emailConfirmation = emailConfirmation + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_requestEmailConfirmation(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = requestEmailConfirmation_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, "requestEmailConfirmation failed: unknown result") + + def requestIdentityUnbind(self, provider, identifier): + """ + Parameters: + - provider + - identifier + """ + self.send_requestIdentityUnbind(provider, identifier) + self.recv_requestIdentityUnbind() + + def send_requestIdentityUnbind(self, provider, identifier): + self._oprot.writeMessageBegin('requestIdentityUnbind', TMessageType.CALL, self._seqid) + args = requestIdentityUnbind_args() + args.provider = provider + args.identifier = identifier + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_requestIdentityUnbind(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = requestIdentityUnbind_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def resendEmailConfirmation(self, verifier): + """ + Parameters: + - verifier + """ + self.send_resendEmailConfirmation(verifier) + return self.recv_resendEmailConfirmation() + + def send_resendEmailConfirmation(self, verifier): + self._oprot.writeMessageBegin('resendEmailConfirmation', TMessageType.CALL, self._seqid) + args = resendEmailConfirmation_args() + args.verifier = verifier + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_resendEmailConfirmation(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = resendEmailConfirmation_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, "resendEmailConfirmation failed: unknown result") + + def resendPinCode(self, sessionId): + """ + Parameters: + - sessionId + """ + self.send_resendPinCode(sessionId) + self.recv_resendPinCode() + + def send_resendPinCode(self, sessionId): + self._oprot.writeMessageBegin('resendPinCode', TMessageType.CALL, self._seqid) + args = resendPinCode_args() + args.sessionId = sessionId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_resendPinCode(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = resendPinCode_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def resendPinCodeBySMS(self, sessionId): + """ + Parameters: + - sessionId + """ + self.send_resendPinCodeBySMS(sessionId) + self.recv_resendPinCodeBySMS() + + def send_resendPinCodeBySMS(self, sessionId): + self._oprot.writeMessageBegin('resendPinCodeBySMS', TMessageType.CALL, self._seqid) + args = resendPinCodeBySMS_args() + args.sessionId = sessionId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_resendPinCodeBySMS(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = resendPinCodeBySMS_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def sendChatChecked(self, seq, consumer, lastMessageId): + """ + Parameters: + - seq + - consumer + - lastMessageId + """ + self.send_sendChatChecked(seq, consumer, lastMessageId) + self.recv_sendChatChecked() + + def send_sendChatChecked(self, seq, consumer, lastMessageId): + self._oprot.writeMessageBegin('sendChatChecked', TMessageType.CALL, self._seqid) + args = sendChatChecked_args() + args.seq = seq + args.consumer = consumer + args.lastMessageId = lastMessageId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendChatChecked(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendChatChecked_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def sendMessageAwaitCommit(self, seq, message): + """ + Parameters: + - seq + - message + """ + self.send_sendMessageAwaitCommit(seq, message) + return self.recv_sendMessageAwaitCommit() + + def send_sendMessageAwaitCommit(self, seq, message): + self._oprot.writeMessageBegin('sendMessageAwaitCommit', TMessageType.CALL, self._seqid) + args = sendMessageAwaitCommit_args() + args.seq = seq + args.message = message + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendMessageAwaitCommit(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendMessageAwaitCommit_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, "sendMessageAwaitCommit failed: unknown result") + + def sendChatRemoved(self, seq, consumer, lastMessageId): + """ + Parameters: + - seq + - consumer + - lastMessageId + """ + self.send_sendChatRemoved(seq, consumer, lastMessageId) + self.recv_sendChatRemoved() + + def send_sendChatRemoved(self, seq, consumer, lastMessageId): + self._oprot.writeMessageBegin('sendChatRemoved', TMessageType.CALL, self._seqid) + args = sendChatRemoved_args() + args.seq = seq + args.consumer = consumer + args.lastMessageId = lastMessageId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendChatRemoved(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendChatRemoved_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def sendContentPreviewUpdated(self, esq, messageId, receiverMids): + """ + Parameters: + - esq + - messageId + - receiverMids + """ + self.send_sendContentPreviewUpdated(esq, messageId, receiverMids) + return self.recv_sendContentPreviewUpdated() + + def send_sendContentPreviewUpdated(self, esq, messageId, receiverMids): + self._oprot.writeMessageBegin('sendContentPreviewUpdated', TMessageType.CALL, self._seqid) + args = sendContentPreviewUpdated_args() + args.esq = esq + args.messageId = messageId + args.receiverMids = receiverMids + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendContentPreviewUpdated(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendContentPreviewUpdated_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, "sendContentPreviewUpdated failed: unknown result") + + def sendContentReceipt(self, seq, consumer, messageId): + """ + Parameters: + - seq + - consumer + - messageId + """ + self.send_sendContentReceipt(seq, consumer, messageId) + self.recv_sendContentReceipt() + + def send_sendContentReceipt(self, seq, consumer, messageId): + self._oprot.writeMessageBegin('sendContentReceipt', TMessageType.CALL, self._seqid) + args = sendContentReceipt_args() + args.seq = seq + args.consumer = consumer + args.messageId = messageId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendContentReceipt(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendContentReceipt_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def sendDummyPush(self): + self.send_sendDummyPush() + self.recv_sendDummyPush() + + def send_sendDummyPush(self): + self._oprot.writeMessageBegin('sendDummyPush', TMessageType.CALL, self._seqid) + args = sendDummyPush_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendDummyPush(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendDummyPush_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def removeE2EEPublicKey(self, publicKey): + """ + Parameters: + - publicKey + """ + self.send_removeE2EEPublicKey(publicKey) + self.recv_removeE2EEPublicKey() + + def send_removeE2EEPublicKey(self, publicKey): + self._oprot.writeMessageBegin('removeE2EEPublicKey', TMessageType.CALL, self._seqid) + args = removeE2EEPublicKey_args() + args.publicKey = publicKey + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_removeE2EEPublicKey(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = removeE2EEPublicKey_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def negotiateE2EEPublicKey(self, mid): + """ + Parameters: + - mid + """ + self.send_negotiateE2EEPublicKey(mid) + return self.recv_negotiateE2EEPublicKey() + + def send_negotiateE2EEPublicKey(self, mid): + self._oprot.writeMessageBegin('negotiateE2EEPublicKey', TMessageType.CALL, self._seqid) + args = negotiateE2EEPublicKey_args() + args.mid = mid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_negotiateE2EEPublicKey(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = negotiateE2EEPublicKey_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, "negotiateE2EEPublicKey failed: unknown result") + + def getE2EEPublicKey(self, mid, version, keyId): + """ + Parameters: + - mid + - version + - keyId + """ + self.send_getE2EEPublicKey(mid, version, keyId) + return self.recv_getE2EEPublicKey() + + def send_getE2EEPublicKey(self, mid, version, keyId): + self._oprot.writeMessageBegin('getE2EEPublicKey', TMessageType.CALL, self._seqid) + args = getE2EEPublicKey_args() + args.mid = mid + args.version = version + args.keyId = keyId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getE2EEPublicKey(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getE2EEPublicKey_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, "getE2EEPublicKey failed: unknown result") + + def requestE2EEKeyExchange(self, reqSeq, temporalPublicKey, publicKey, verifier): + """ + Parameters: + - reqSeq + - temporalPublicKey + - publicKey + - verifier + """ + self.send_requestE2EEKeyExchange(reqSeq, temporalPublicKey, publicKey, verifier) + self.recv_requestE2EEKeyExchange() + + def send_requestE2EEKeyExchange(self, reqSeq, temporalPublicKey, publicKey, verifier): + self._oprot.writeMessageBegin('requestE2EEKeyExchange', TMessageType.CALL, self._seqid) + args = requestE2EEKeyExchange_args() + args.reqSeq = reqSeq + args.temporalPublicKey = temporalPublicKey + args.publicKey = publicKey + args.verifier = verifier + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_requestE2EEKeyExchange(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = requestE2EEKeyExchange_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def getLastE2EEPublicKeys(self, chatMid): + """ + Parameters: + - chatMid + """ + self.send_getLastE2EEPublicKeys(chatMid) + return self.recv_getLastE2EEPublicKeys() + + def send_getLastE2EEPublicKeys(self, chatMid): + self._oprot.writeMessageBegin('getLastE2EEPublicKeys', TMessageType.CALL, self._seqid) + args = getLastE2EEPublicKeys_args() + args.chatMid = chatMid + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getLastE2EEPublicKeys(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getLastE2EEPublicKeys_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, "getLastE2EEPublicKeys failed: unknown result") + + def registerE2EEPublicKey(self, reqSeq, publicKey): + """ + Parameters: + - reqSeq + - publicKey + """ + self.send_registerE2EEPublicKey(reqSeq, publicKey) + return self.recv_registerE2EEPublicKey() + + def send_registerE2EEPublicKey(self, reqSeq, publicKey): + self._oprot.writeMessageBegin('registerE2EEPublicKey', TMessageType.CALL, self._seqid) + args = registerE2EEPublicKey_args() + args.reqSeq = reqSeq + args.publicKey = publicKey + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_registerE2EEPublicKey(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = registerE2EEPublicKey_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, "registerE2EEPublicKey failed: unknown result") + + def getE2EEPublicKeys(self): + self.send_getE2EEPublicKeys() + return self.recv_getE2EEPublicKeys() + + def send_getE2EEPublicKeys(self): + self._oprot.writeMessageBegin('getE2EEPublicKeys', TMessageType.CALL, self._seqid) + args = getE2EEPublicKeys_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getE2EEPublicKeys(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getE2EEPublicKeys_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, "getE2EEPublicKeys failed: unknown result") + + def getE2EEPublicKeysEx(self, ignoreE2EEStatus): + """ + Parameters: + - ignoreE2EEStatus + """ + self.send_getE2EEPublicKeysEx(ignoreE2EEStatus) + return self.recv_getE2EEPublicKeysEx() + + def send_getE2EEPublicKeysEx(self, ignoreE2EEStatus): + self._oprot.writeMessageBegin('getE2EEPublicKeysEx', TMessageType.CALL, self._seqid) + args = getE2EEPublicKeysEx_args() + args.ignoreE2EEStatus = ignoreE2EEStatus + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getE2EEPublicKeysEx(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getE2EEPublicKeysEx_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, "getE2EEPublicKeysEx failed: unknown result") + + def getReadMessageOpsInBulk(self, chatIds): + """ + Parameters: + - chatIds + """ + self.send_getReadMessageOpsInBulk(chatIds) + return self.recv_getReadMessageOpsInBulk() + + def send_getReadMessageOpsInBulk(self, chatIds): + self._oprot.writeMessageBegin('getReadMessageOpsInBulk', TMessageType.CALL, self._seqid) + args = getReadMessageOpsInBulk_args() + args.chatIds = chatIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getReadMessageOpsInBulk(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getReadMessageOpsInBulk_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, "getReadMessageOpsInBulk failed: unknown result") + + def sendEvent(self, seq, message): + """ + Parameters: + - seq + - message + """ + self.send_sendEvent(seq, message) + return self.recv_sendEvent() + + def send_sendEvent(self, seq, message): + self._oprot.writeMessageBegin('sendEvent', TMessageType.CALL, self._seqid) + args = sendEvent_args() + args.seq = seq + args.message = message + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendEvent(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendEvent_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, "sendEvent failed: unknown result") + + def sendMessage(self, seq, message): + """ + Parameters: + - seq + - message + """ + self.send_sendMessage(seq, message) + return self.recv_sendMessage() + + def send_sendMessage(self, seq, message): + self._oprot.writeMessageBegin('sendMessage', TMessageType.CALL, self._seqid) + args = sendMessage_args() + args.seq = seq + args.message = message + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendMessage(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendMessage_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, "sendMessage failed: unknown result") + + def sendMessageIgnored(self, seq, consumer, messageIds): + """ + Parameters: + - seq + - consumer + - messageIds + """ + self.send_sendMessageIgnored(seq, consumer, messageIds) + self.recv_sendMessageIgnored() + + def send_sendMessageIgnored(self, seq, consumer, messageIds): + self._oprot.writeMessageBegin('sendMessageIgnored', TMessageType.CALL, self._seqid) + args = sendMessageIgnored_args() + args.seq = seq + args.consumer = consumer + args.messageIds = messageIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendMessageIgnored(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendMessageIgnored_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def sendMessageReceipt(self, seq, consumer, messageIds): + """ + Parameters: + - seq + - consumer + - messageIds + """ + self.send_sendMessageReceipt(seq, consumer, messageIds) + self.recv_sendMessageReceipt() + + def send_sendMessageReceipt(self, seq, consumer, messageIds): + self._oprot.writeMessageBegin('sendMessageReceipt', TMessageType.CALL, self._seqid) + args = sendMessageReceipt_args() + args.seq = seq + args.consumer = consumer + args.messageIds = messageIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendMessageReceipt(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendMessageReceipt_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def findContactByMetaTag(self, userid, reference): + """ + Parameters: + - userid + - reference + """ + self.send_findContactByMetaTag(userid, reference) + return self.recv_findContactByMetaTag() + + def send_findContactByMetaTag(self, userid, reference): + self._oprot.writeMessageBegin('findContactByMetaTag', TMessageType.CALL, self._seqid) + args = findContactByMetaTag_args() + args.userid = userid + args.reference = reference + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_findContactByMetaTag(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = findContactByMetaTag_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, "findContactByMetaTag failed: unknown result") + + def sendMessageToMyHome(self, seq, message): + """ + Parameters: + - seq + - message + """ + self.send_sendMessageToMyHome(seq, message) + return self.recv_sendMessageToMyHome() + + def send_sendMessageToMyHome(self, seq, message): + self._oprot.writeMessageBegin('sendMessageToMyHome', TMessageType.CALL, self._seqid) + args = sendMessageToMyHome_args() + args.seq = seq + args.message = message + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_sendMessageToMyHome(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = sendMessageToMyHome_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, "sendMessageToMyHome failed: unknown result") + + def setBuddyLocation(self, mid, index, location): + """ + Parameters: + - mid + - index + - location + """ + self.send_setBuddyLocation(mid, index, location) + self.recv_setBuddyLocation() + + def send_setBuddyLocation(self, mid, index, location): + self._oprot.writeMessageBegin('setBuddyLocation', TMessageType.CALL, self._seqid) + args = setBuddyLocation_args() + args.mid = mid + args.index = index + args.location = location + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_setBuddyLocation(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = setBuddyLocation_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def setIdentityCredential(self, identifier, verifier, provider): + """ + Parameters: + - identifier + - verifier + - provider + """ + self.send_setIdentityCredential(identifier, verifier, provider) + self.recv_setIdentityCredential() + + def send_setIdentityCredential(self, identifier, verifier, provider): + self._oprot.writeMessageBegin('setIdentityCredential', TMessageType.CALL, self._seqid) + args = setIdentityCredential_args() + args.identifier = identifier + args.verifier = verifier + args.provider = provider + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_setIdentityCredential(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = setIdentityCredential_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def setNotificationsEnabled(self, reqSeq, type, target, enablement): + """ + Parameters: + - reqSeq + - type + - target + - enablement + """ + self.send_setNotificationsEnabled(reqSeq, type, target, enablement) + self.recv_setNotificationsEnabled() + + def send_setNotificationsEnabled(self, reqSeq, type, target, enablement): + self._oprot.writeMessageBegin('setNotificationsEnabled', TMessageType.CALL, self._seqid) + args = setNotificationsEnabled_args() + args.reqSeq = reqSeq + args.type = type + args.target = target + args.enablement = enablement + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_setNotificationsEnabled(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = setNotificationsEnabled_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def startUpdateVerification(self, region, carrier, phone, udidHash, deviceInfo, networkCode, locale): + """ + Parameters: + - region + - carrier + - phone + - udidHash + - deviceInfo + - networkCode + - locale + """ + self.send_startUpdateVerification(region, carrier, phone, udidHash, deviceInfo, networkCode, locale) + return self.recv_startUpdateVerification() + + def send_startUpdateVerification(self, region, carrier, phone, udidHash, deviceInfo, networkCode, locale): + self._oprot.writeMessageBegin('startUpdateVerification', TMessageType.CALL, self._seqid) + args = startUpdateVerification_args() + args.region = region + args.carrier = carrier + args.phone = phone + args.udidHash = udidHash + args.deviceInfo = deviceInfo + args.networkCode = networkCode + args.locale = locale + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_startUpdateVerification(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = startUpdateVerification_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, "startUpdateVerification failed: unknown result") + + def startVerification(self, region, carrier, phone, udidHash, deviceInfo, networkCode, mid, locale, simInfo, oldUdidHash): + """ + Parameters: + - region + - carrier + - phone + - udidHash + - deviceInfo + - networkCode + - mid + - locale + - simInfo + - oldUdidHash + """ + self.send_startVerification(region, carrier, phone, udidHash, deviceInfo, networkCode, mid, locale, simInfo, oldUdidHash) + return self.recv_startVerification() + + def send_startVerification(self, region, carrier, phone, udidHash, deviceInfo, networkCode, mid, locale, simInfo, oldUdidHash): + self._oprot.writeMessageBegin('startVerification', TMessageType.CALL, self._seqid) + args = startVerification_args() + args.region = region + args.carrier = carrier + args.phone = phone + args.udidHash = udidHash + args.deviceInfo = deviceInfo + args.networkCode = networkCode + args.mid = mid + args.locale = locale + args.simInfo = simInfo + args.oldUdidHash = oldUdidHash + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_startVerification(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = startVerification_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, "startVerification failed: unknown result") + + def updateGroupPreferenceAttribute(self, reqSeq, groupMid, updatedAttrs): + """ + Parameters: + - reqSeq + - groupMid + - updatedAttrs + """ + self.send_updateGroupPreferenceAttribute(reqSeq, groupMid, updatedAttrs) + self.recv_updateGroupPreferenceAttribute() + + def send_updateGroupPreferenceAttribute(self, reqSeq, groupMid, updatedAttrs): + self._oprot.writeMessageBegin('updateGroupPreferenceAttribute', TMessageType.CALL, self._seqid) + args = updateGroupPreferenceAttribute_args() + args.reqSeq = reqSeq + args.groupMid = groupMid + args.updatedAttrs = updatedAttrs + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateGroupPreferenceAttribute(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateGroupPreferenceAttribute_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def createRoomV2(self, reqSeq, contactIds): + """ + Parameters: + - reqSeq + - contactIds + """ + self.send_createRoomV2(reqSeq, contactIds) + return self.recv_createRoomV2() + + def send_createRoomV2(self, reqSeq, contactIds): + self._oprot.writeMessageBegin('createRoomV2', TMessageType.CALL, self._seqid) + args = createRoomV2_args() + args.reqSeq = reqSeq + args.contactIds = contactIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_createRoomV2(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = createRoomV2_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, "createRoomV2 failed: unknown result") + + def storeUpdateProfileAttribute(self, seq, profileAttribute, value): + """ + Parameters: + - seq + - profileAttribute + - value + """ + self.send_storeUpdateProfileAttribute(seq, profileAttribute, value) + self.recv_storeUpdateProfileAttribute() + + def send_storeUpdateProfileAttribute(self, seq, profileAttribute, value): + self._oprot.writeMessageBegin('storeUpdateProfileAttribute', TMessageType.CALL, self._seqid) + args = storeUpdateProfileAttribute_args() + args.seq = seq + args.profileAttribute = profileAttribute + args.value = value + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_storeUpdateProfileAttribute(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = storeUpdateProfileAttribute_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def syncContactBySnsIds(self, reqSeq, modifications): + """ + Parameters: + - reqSeq + - modifications + """ + self.send_syncContactBySnsIds(reqSeq, modifications) + return self.recv_syncContactBySnsIds() + + def send_syncContactBySnsIds(self, reqSeq, modifications): + self._oprot.writeMessageBegin('syncContactBySnsIds', TMessageType.CALL, self._seqid) + args = syncContactBySnsIds_args() + args.reqSeq = reqSeq + args.modifications = modifications + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_syncContactBySnsIds(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = syncContactBySnsIds_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, "syncContactBySnsIds failed: unknown result") + + def syncContacts(self, reqSeq, localContacts): + """ + Parameters: + - reqSeq + - localContacts + """ + self.send_syncContacts(reqSeq, localContacts) + return self.recv_syncContacts() + + def send_syncContacts(self, reqSeq, localContacts): + self._oprot.writeMessageBegin('syncContacts', TMessageType.CALL, self._seqid) + args = syncContacts_args() + args.reqSeq = reqSeq + args.localContacts = localContacts + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_syncContacts(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = syncContacts_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, "syncContacts failed: unknown result") + + def trySendMessage(self, seq, message): + """ + Parameters: + - seq + - message + """ + self.send_trySendMessage(seq, message) + return self.recv_trySendMessage() + + def send_trySendMessage(self, seq, message): + self._oprot.writeMessageBegin('trySendMessage', TMessageType.CALL, self._seqid) + args = trySendMessage_args() + args.seq = seq + args.message = message + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_trySendMessage(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = trySendMessage_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, "trySendMessage failed: unknown result") + + def getNextMessagesV2(self, messageBoxId, startMessageId, messagesCount): + """ + Parameters: + - messageBoxId + - startMessageId + - messagesCount + """ + self.send_getNextMessagesV2(messageBoxId, startMessageId, messagesCount) + return self.recv_getNextMessagesV2() + + def send_getNextMessagesV2(self, messageBoxId, startMessageId, messagesCount): + self._oprot.writeMessageBegin('getNextMessagesV2', TMessageType.CALL, self._seqid) + args = getNextMessagesV2_args() + args.messageBoxId = messageBoxId + args.startMessageId = startMessageId + args.messagesCount = messagesCount + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getNextMessagesV2(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getNextMessagesV2_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, "getNextMessagesV2 failed: unknown result") + + def getMessageBoxCompactWrapUpV2(self, messageBoxId): + """ + Parameters: + - messageBoxId + """ + self.send_getMessageBoxCompactWrapUpV2(messageBoxId) + return self.recv_getMessageBoxCompactWrapUpV2() + + def send_getMessageBoxCompactWrapUpV2(self, messageBoxId): + self._oprot.writeMessageBegin('getMessageBoxCompactWrapUpV2', TMessageType.CALL, self._seqid) + args = getMessageBoxCompactWrapUpV2_args() + args.messageBoxId = messageBoxId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getMessageBoxCompactWrapUpV2(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getMessageBoxCompactWrapUpV2_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, "getMessageBoxCompactWrapUpV2 failed: unknown result") + + def getRecentMessagesV2(self, messageBoxId, messagesCount): + """ + Parameters: + - messageBoxId + - messagesCount + """ + self.send_getRecentMessagesV2(messageBoxId, messagesCount) + return self.recv_getRecentMessagesV2() + + def send_getRecentMessagesV2(self, messageBoxId, messagesCount): + self._oprot.writeMessageBegin('getRecentMessagesV2', TMessageType.CALL, self._seqid) + args = getRecentMessagesV2_args() + args.messageBoxId = messageBoxId + args.messagesCount = messagesCount + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getRecentMessagesV2(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = getRecentMessagesV2_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, "getRecentMessagesV2 failed: unknown result") + + def validateContactsOnBot(self, contacts): + """ + Parameters: + - contacts + """ + self.send_validateContactsOnBot(contacts) + return self.recv_validateContactsOnBot() + + def send_validateContactsOnBot(self, contacts): + self._oprot.writeMessageBegin('validateContactsOnBot', TMessageType.CALL, self._seqid) + args = validateContactsOnBot_args() + args.contacts = contacts + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_validateContactsOnBot(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = validateContactsOnBot_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, "validateContactsOnBot failed: unknown result") + + def tryFriendRequest(self, midOrEMid, method, friendRequestParams): + """ + Parameters: + - midOrEMid + - method + - friendRequestParams + """ + self.send_tryFriendRequest(midOrEMid, method, friendRequestParams) + self.recv_tryFriendRequest() + + def send_tryFriendRequest(self, midOrEMid, method, friendRequestParams): + self._oprot.writeMessageBegin('tryFriendRequest', TMessageType.CALL, self._seqid) + args = tryFriendRequest_args() + args.midOrEMid = midOrEMid + args.method = method + args.friendRequestParams = friendRequestParams + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_tryFriendRequest(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = tryFriendRequest_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def unblockContact(self, reqSeq, id): + """ + Parameters: + - reqSeq + - id + """ + self.send_unblockContact(reqSeq, id) + self.recv_unblockContact() + + def send_unblockContact(self, reqSeq, id): + self._oprot.writeMessageBegin('unblockContact', TMessageType.CALL, self._seqid) + args = unblockContact_args() + args.reqSeq = reqSeq + args.id = id + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_unblockContact(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = unblockContact_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def unblockRecommendation(self, reqSeq, id): + """ + Parameters: + - reqSeq + - id + """ + self.send_unblockRecommendation(reqSeq, id) + self.recv_unblockRecommendation() + + def send_unblockRecommendation(self, reqSeq, id): + self._oprot.writeMessageBegin('unblockRecommendation', TMessageType.CALL, self._seqid) + args = unblockRecommendation_args() + args.reqSeq = reqSeq + args.id = id + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_unblockRecommendation(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = unblockRecommendation_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def unregisterUserAndDevice(self): + self.send_unregisterUserAndDevice() + return self.recv_unregisterUserAndDevice() + + def send_unregisterUserAndDevice(self): + self._oprot.writeMessageBegin('unregisterUserAndDevice', TMessageType.CALL, self._seqid) + args = unregisterUserAndDevice_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_unregisterUserAndDevice(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = unregisterUserAndDevice_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, "unregisterUserAndDevice failed: unknown result") + + def updateApnsDeviceToken(self, apnsDeviceToken): + """ + Parameters: + - apnsDeviceToken + """ + self.send_updateApnsDeviceToken(apnsDeviceToken) + self.recv_updateApnsDeviceToken() + + def send_updateApnsDeviceToken(self, apnsDeviceToken): + self._oprot.writeMessageBegin('updateApnsDeviceToken', TMessageType.CALL, self._seqid) + args = updateApnsDeviceToken_args() + args.apnsDeviceToken = apnsDeviceToken + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateApnsDeviceToken(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateApnsDeviceToken_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def updateBuddySetting(self, key, value): + """ + Parameters: + - key + - value + """ + self.send_updateBuddySetting(key, value) + self.recv_updateBuddySetting() + + def send_updateBuddySetting(self, key, value): + self._oprot.writeMessageBegin('updateBuddySetting', TMessageType.CALL, self._seqid) + args = updateBuddySetting_args() + args.key = key + args.value = value + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateBuddySetting(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateBuddySetting_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def updateC2DMRegistrationId(self, registrationId): + """ + Parameters: + - registrationId + """ + self.send_updateC2DMRegistrationId(registrationId) + self.recv_updateC2DMRegistrationId() + + def send_updateC2DMRegistrationId(self, registrationId): + self._oprot.writeMessageBegin('updateC2DMRegistrationId', TMessageType.CALL, self._seqid) + args = updateC2DMRegistrationId_args() + args.registrationId = registrationId + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateC2DMRegistrationId(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateC2DMRegistrationId_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def updateContactSetting(self, reqSeq, mid, flag, value): + """ + Parameters: + - reqSeq + - mid + - flag + - value + """ + self.send_updateContactSetting(reqSeq, mid, flag, value) + self.recv_updateContactSetting() + + def send_updateContactSetting(self, reqSeq, mid, flag, value): + self._oprot.writeMessageBegin('updateContactSetting', TMessageType.CALL, self._seqid) + args = updateContactSetting_args() + args.reqSeq = reqSeq + args.mid = mid + args.flag = flag + args.value = value + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateContactSetting(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateContactSetting_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def updateCustomModeSettings(self, customMode, paramMap): + """ + Parameters: + - customMode + - paramMap + """ + self.send_updateCustomModeSettings(customMode, paramMap) + self.recv_updateCustomModeSettings() + + def send_updateCustomModeSettings(self, customMode, paramMap): + self._oprot.writeMessageBegin('updateCustomModeSettings', TMessageType.CALL, self._seqid) + args = updateCustomModeSettings_args() + args.customMode = customMode + args.paramMap = paramMap + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateCustomModeSettings(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateCustomModeSettings_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def updateDeviceInfo(self, deviceUid, deviceInfo): + """ + Parameters: + - deviceUid + - deviceInfo + """ + self.send_updateDeviceInfo(deviceUid, deviceInfo) + self.recv_updateDeviceInfo() + + def send_updateDeviceInfo(self, deviceUid, deviceInfo): + self._oprot.writeMessageBegin('updateDeviceInfo', TMessageType.CALL, self._seqid) + args = updateDeviceInfo_args() + args.deviceUid = deviceUid + args.deviceInfo = deviceInfo + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateDeviceInfo(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateDeviceInfo_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def updateGroup(self, reqSeq, group): + """ + Parameters: + - reqSeq + - group + """ + self.send_updateGroup(reqSeq, group) + self.recv_updateGroup() + + def send_updateGroup(self, reqSeq, group): + self._oprot.writeMessageBegin('updateGroup', TMessageType.CALL, self._seqid) + args = updateGroup_args() + args.reqSeq = reqSeq + args.group = group + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateGroup(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateGroup_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def updateNotificationToken(self, type, token): + """ + Parameters: + - type + - token + """ + self.send_updateNotificationToken(type, token) + self.recv_updateNotificationToken() + + def send_updateNotificationToken(self, type, token): + self._oprot.writeMessageBegin('updateNotificationToken', TMessageType.CALL, self._seqid) + args = updateNotificationToken_args() + args.type = type + args.token = token + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateNotificationToken(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateNotificationToken_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def updateNotificationTokenWithBytes(self, type, token): + """ + Parameters: + - type + - token + """ + self.send_updateNotificationTokenWithBytes(type, token) + self.recv_updateNotificationTokenWithBytes() + + def send_updateNotificationTokenWithBytes(self, type, token): + self._oprot.writeMessageBegin('updateNotificationTokenWithBytes', TMessageType.CALL, self._seqid) + args = updateNotificationTokenWithBytes_args() + args.type = type + args.token = token + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateNotificationTokenWithBytes(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateNotificationTokenWithBytes_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def updateProfile(self, reqSeq, profile): + """ + Parameters: + - reqSeq + - profile + """ + self.send_updateProfile(reqSeq, profile) + self.recv_updateProfile() + + def send_updateProfile(self, reqSeq, profile): + self._oprot.writeMessageBegin('updateProfile', TMessageType.CALL, self._seqid) + args = updateProfile_args() + args.reqSeq = reqSeq + args.profile = profile + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateProfile(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateProfile_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def updateProfileAttribute(self, reqSeq, attr, value): + """ + Parameters: + - reqSeq + - attr + - value + """ + self.send_updateProfileAttribute(reqSeq, attr, value) + self.recv_updateProfileAttribute() + + def send_updateProfileAttribute(self, reqSeq, attr, value): + self._oprot.writeMessageBegin('updateProfileAttribute', TMessageType.CALL, self._seqid) + args = updateProfileAttribute_args() + args.reqSeq = reqSeq + args.attr = attr + args.value = value + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateProfileAttribute(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateProfileAttribute_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def updateRegion(self, region): + """ + Parameters: + - region + """ + self.send_updateRegion(region) + self.recv_updateRegion() + + def send_updateRegion(self, region): + self._oprot.writeMessageBegin('updateRegion', TMessageType.CALL, self._seqid) + args = updateRegion_args() + args.region = region + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateRegion(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateRegion_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def updateSettings(self, reqSeq, settings): + """ + Parameters: + - reqSeq + - settings + """ + self.send_updateSettings(reqSeq, settings) + self.recv_updateSettings() + + def send_updateSettings(self, reqSeq, settings): + self._oprot.writeMessageBegin('updateSettings', TMessageType.CALL, self._seqid) + args = updateSettings_args() + args.reqSeq = reqSeq + args.settings = settings + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateSettings(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateSettings_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def updateSettings2(self, reqSeq, settings): + """ + Parameters: + - reqSeq + - settings + """ + self.send_updateSettings2(reqSeq, settings) + return self.recv_updateSettings2() + + def send_updateSettings2(self, reqSeq, settings): + self._oprot.writeMessageBegin('updateSettings2', TMessageType.CALL, self._seqid) + args = updateSettings2_args() + args.reqSeq = reqSeq + args.settings = settings + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateSettings2(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateSettings2_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, "updateSettings2 failed: unknown result") + + def updateSettingsAttribute(self, reqSeq, attr, value): + """ + Parameters: + - reqSeq + - attr + - value + """ + self.send_updateSettingsAttribute(reqSeq, attr, value) + self.recv_updateSettingsAttribute() + + def send_updateSettingsAttribute(self, reqSeq, attr, value): + self._oprot.writeMessageBegin('updateSettingsAttribute', TMessageType.CALL, self._seqid) + args = updateSettingsAttribute_args() + args.reqSeq = reqSeq + args.attr = attr + args.value = value + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateSettingsAttribute(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateSettingsAttribute_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def updateSettingsAttributes(self, reqSeq, attrBitset, settings): + """ + Parameters: + - reqSeq + - attrBitset + - settings + """ + self.send_updateSettingsAttributes(reqSeq, attrBitset, settings) + return self.recv_updateSettingsAttributes() + + def send_updateSettingsAttributes(self, reqSeq, attrBitset, settings): + self._oprot.writeMessageBegin('updateSettingsAttributes', TMessageType.CALL, self._seqid) + args = updateSettingsAttributes_args() + args.reqSeq = reqSeq + args.attrBitset = attrBitset + args.settings = settings + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_updateSettingsAttributes(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = updateSettingsAttributes_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, "updateSettingsAttributes failed: unknown result") + + def verifyIdentityCredential(self, identityProvider, identifier, password): + """ + Parameters: + - identityProvider + - identifier + - password + """ + self.send_verifyIdentityCredential(identityProvider, identifier, password) + self.recv_verifyIdentityCredential() + + def send_verifyIdentityCredential(self, identityProvider, identifier, password): + self._oprot.writeMessageBegin('verifyIdentityCredential', TMessageType.CALL, self._seqid) + args = verifyIdentityCredential_args() + args.identityProvider = identityProvider + args.identifier = identifier + args.password = password + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_verifyIdentityCredential(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = verifyIdentityCredential_result() + result.read(iprot) + iprot.readMessageEnd() + if result.e is not None: + raise result.e + return + + def verifyIdentityCredentialWithResult(self, identityCredential): + """ + Parameters: + - identityCredential + """ + self.send_verifyIdentityCredentialWithResult(identityCredential) + return self.recv_verifyIdentityCredentialWithResult() + + def send_verifyIdentityCredentialWithResult(self, identityCredential): + self._oprot.writeMessageBegin('verifyIdentityCredentialWithResult', TMessageType.CALL, self._seqid) + args = verifyIdentityCredentialWithResult_args() + args.identityCredential = identityCredential + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_verifyIdentityCredentialWithResult(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = verifyIdentityCredentialWithResult_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, "verifyIdentityCredentialWithResult failed: unknown result") + + def verifyPhone(self, sessionId, pinCode, udidHash): + """ + Parameters: + - sessionId + - pinCode + - udidHash + """ + self.send_verifyPhone(sessionId, pinCode, udidHash) + return self.recv_verifyPhone() + + def send_verifyPhone(self, sessionId, pinCode, udidHash): + self._oprot.writeMessageBegin('verifyPhone', TMessageType.CALL, self._seqid) + args = verifyPhone_args() + args.sessionId = sessionId + args.pinCode = pinCode + args.udidHash = udidHash + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_verifyPhone(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = verifyPhone_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, "verifyPhone failed: unknown result") + + def verifyQrcode(self, verifier, pinCode): + """ + Parameters: + - verifier + - pinCode + """ + self.send_verifyQrcode(verifier, pinCode) + return self.recv_verifyQrcode() + + def send_verifyQrcode(self, verifier, pinCode): + self._oprot.writeMessageBegin('verifyQrcode', TMessageType.CALL, self._seqid) + args = verifyQrcode_args() + args.verifier = verifier + args.pinCode = pinCode + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_verifyQrcode(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = verifyQrcode_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, "verifyQrcode failed: unknown result") + + +class Processor(Iface, TProcessor): + def __init__(self, handler): + self._handler = handler + self._processMap = {} + self._processMap["getChatRoomAnnouncementsBulk"] = Processor.process_getChatRoomAnnouncementsBulk + self._processMap["getChatRoomAnnouncements"] = Processor.process_getChatRoomAnnouncements + self._processMap["createChatRoomAnnouncement"] = Processor.process_createChatRoomAnnouncement + self._processMap["removeChatRoomAnnouncement"] = Processor.process_removeChatRoomAnnouncement + self._processMap["unsendMessage"] = Processor.process_unsendMessage + self._processMap["getGroupWithoutMembers"] = Processor.process_getGroupWithoutMembers + self._processMap["requestResendMessage"] = Processor.process_requestResendMessage + self._processMap["respondResendMessage"] = Processor.process_respondResendMessage + 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 + self._processMap["acquireEncryptedAccessToken"] = Processor.process_acquireEncryptedAccessToken + self._processMap["addSnsId"] = Processor.process_addSnsId + self._processMap["blockContact"] = Processor.process_blockContact + self._processMap["blockRecommendation"] = Processor.process_blockRecommendation + self._processMap["cancelGroupInvitation"] = Processor.process_cancelGroupInvitation + self._processMap["changeVerificationMethod"] = Processor.process_changeVerificationMethod + self._processMap["clearIdentityCredential"] = Processor.process_clearIdentityCredential + self._processMap["clearMessageBox"] = Processor.process_clearMessageBox + self._processMap["closeProximityMatch"] = Processor.process_closeProximityMatch + self._processMap["commitSendMessage"] = Processor.process_commitSendMessage + self._processMap["commitSendMessages"] = Processor.process_commitSendMessages + self._processMap["commitUpdateProfile"] = Processor.process_commitUpdateProfile + self._processMap["confirmEmail"] = Processor.process_confirmEmail + self._processMap["createGroup"] = Processor.process_createGroup + self._processMap["createQrcodeBase64Image"] = Processor.process_createQrcodeBase64Image + self._processMap["createRoom"] = Processor.process_createRoom + self._processMap["createSession"] = Processor.process_createSession + self._processMap["fetchAnnouncements"] = Processor.process_fetchAnnouncements + self._processMap["fetchMessages"] = Processor.process_fetchMessages + self._processMap["fetchOperations"] = Processor.process_fetchOperations + self._processMap["fetchOps"] = Processor.process_fetchOps + self._processMap["findAndAddContactsByEmail"] = Processor.process_findAndAddContactsByEmail + self._processMap["findAndAddContactsByMid"] = Processor.process_findAndAddContactsByMid + self._processMap["findGroupByTicketV2"] = Processor.process_findGroupByTicketV2 + self._processMap["findAndAddContactsByPhone"] = Processor.process_findAndAddContactsByPhone + self._processMap["getFriendRequests"] = Processor.process_getFriendRequests + self._processMap["removeFriendRequest"] = Processor.process_removeFriendRequest + self._processMap["findAndAddContactsByUserid"] = Processor.process_findAndAddContactsByUserid + self._processMap["findContactByUserid"] = Processor.process_findContactByUserid + self._processMap["findContactByUserTicket"] = Processor.process_findContactByUserTicket + self._processMap["findContactsByEmail"] = Processor.process_findContactsByEmail + self._processMap["findContactsByPhone"] = Processor.process_findContactsByPhone + self._processMap["findSnsIdUserStatus"] = Processor.process_findSnsIdUserStatus + self._processMap["finishUpdateVerification"] = Processor.process_finishUpdateVerification + self._processMap["generateUserTicket"] = Processor.process_generateUserTicket + self._processMap["destroyMessage"] = Processor.process_destroyMessage + self._processMap["getAcceptedProximityMatches"] = Processor.process_getAcceptedProximityMatches + self._processMap["getActiveBuddySubscriberIds"] = Processor.process_getActiveBuddySubscriberIds + self._processMap["getAllContactIds"] = Processor.process_getAllContactIds + self._processMap["getAuthQrcode"] = Processor.process_getAuthQrcode + self._processMap["getBlockedContactIds"] = Processor.process_getBlockedContactIds + self._processMap["registerWithPhoneNumber"] = Processor.process_registerWithPhoneNumber + self._processMap["registerWithPhoneNumberAndPassword"] = Processor.process_registerWithPhoneNumberAndPassword + self._processMap["getAnalyticsInfo"] = Processor.process_getAnalyticsInfo + self._processMap["reportClientStatistics"] = Processor.process_reportClientStatistics + self._processMap["verifyPhoneNumberForLogin"] = Processor.process_verifyPhoneNumberForLogin + self._processMap["verifyPhoneNumber"] = Processor.process_verifyPhoneNumber + self._processMap["getBlockedContactIdsByRange"] = Processor.process_getBlockedContactIdsByRange + self._processMap["getBlockedRecommendationIds"] = Processor.process_getBlockedRecommendationIds + self._processMap["getBuddyBlockerIds"] = Processor.process_getBuddyBlockerIds + self._processMap["getBuddyLocation"] = Processor.process_getBuddyLocation + self._processMap["getCompactContactsModifiedSince"] = Processor.process_getCompactContactsModifiedSince + self._processMap["getCompactGroup"] = Processor.process_getCompactGroup + self._processMap["getCompactRoom"] = Processor.process_getCompactRoom + self._processMap["getContact"] = Processor.process_getContact + self._processMap["getContacts"] = Processor.process_getContacts + self._processMap["getContactWithFriendRequestStatus"] = Processor.process_getContactWithFriendRequestStatus + self._processMap["getCountryWithRequestIp"] = Processor.process_getCountryWithRequestIp + self._processMap["getFavoriteMids"] = Processor.process_getFavoriteMids + self._processMap["getGroup"] = Processor.process_getGroup + self._processMap["getGroupIdsInvited"] = Processor.process_getGroupIdsInvited + self._processMap["getGroupIdsJoined"] = Processor.process_getGroupIdsJoined + self._processMap["getGroups"] = Processor.process_getGroups + self._processMap["getHiddenContactMids"] = Processor.process_getHiddenContactMids + self._processMap["getIdentityIdentifier"] = Processor.process_getIdentityIdentifier + self._processMap["getLastAnnouncementIndex"] = Processor.process_getLastAnnouncementIndex + self._processMap["getLastOpRevision"] = Processor.process_getLastOpRevision + self._processMap["getSuggestRevisions"] = Processor.process_getSuggestRevisions + self._processMap["getPreviousMessagesV2WithReadCount"] = Processor.process_getPreviousMessagesV2WithReadCount + self._processMap["getMessageBox"] = Processor.process_getMessageBox + self._processMap["getMessageBoxCompactWrapUp"] = Processor.process_getMessageBoxCompactWrapUp + self._processMap["getMessageBoxCompactWrapUpList"] = Processor.process_getMessageBoxCompactWrapUpList + self._processMap["getMessageBoxList"] = Processor.process_getMessageBoxList + self._processMap["getMessageBoxListByStatus"] = Processor.process_getMessageBoxListByStatus + self._processMap["getMessageBoxWrapUp"] = Processor.process_getMessageBoxWrapUp + self._processMap["getMessageBoxWrapUpList"] = Processor.process_getMessageBoxWrapUpList + self._processMap["getMessagesBySequenceNumber"] = Processor.process_getMessagesBySequenceNumber + self._processMap["getNextMessages"] = Processor.process_getNextMessages + self._processMap["getNotificationPolicy"] = Processor.process_getNotificationPolicy + self._processMap["getPreviousMessages"] = Processor.process_getPreviousMessages + self._processMap["getProfile"] = Processor.process_getProfile + self._processMap["getProximityMatchCandidateList"] = Processor.process_getProximityMatchCandidateList + self._processMap["getProximityMatchCandidates"] = Processor.process_getProximityMatchCandidates + self._processMap["getRecentMessages"] = Processor.process_getRecentMessages + self._processMap["getRecommendationIds"] = Processor.process_getRecommendationIds + self._processMap["getRoom"] = Processor.process_getRoom + self._processMap["getRSAKeyInfo"] = Processor.process_getRSAKeyInfo + self._processMap["getServerTime"] = Processor.process_getServerTime + self._processMap["getSessions"] = Processor.process_getSessions + self._processMap["getSettings"] = Processor.process_getSettings + self._processMap["getGroupsV2"] = Processor.process_getGroupsV2 + self._processMap["getSettingsAttributes"] = Processor.process_getSettingsAttributes + self._processMap["getSystemConfiguration"] = Processor.process_getSystemConfiguration + self._processMap["getUserTicket"] = Processor.process_getUserTicket + self._processMap["getWapInvitation"] = Processor.process_getWapInvitation + self._processMap["invalidateUserTicket"] = Processor.process_invalidateUserTicket + self._processMap["inviteFriendsBySms"] = Processor.process_inviteFriendsBySms + self._processMap["inviteIntoGroup"] = Processor.process_inviteIntoGroup + self._processMap["inviteIntoRoom"] = Processor.process_inviteIntoRoom + self._processMap["inviteViaEmail"] = Processor.process_inviteViaEmail + 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 + self._processMap["loginWithIdentityCredentialForCertificate"] = Processor.process_loginWithIdentityCredentialForCertificate + self._processMap["loginWithVerifier"] = Processor.process_loginWithVerifier + self._processMap["loginWithVerifierForCerificate"] = Processor.process_loginWithVerifierForCerificate + self._processMap["loginWithVerifierForCertificate"] = Processor.process_loginWithVerifierForCertificate + self._processMap["logout"] = Processor.process_logout + self._processMap["logoutSession"] = Processor.process_logoutSession + self._processMap["noop"] = Processor.process_noop + self._processMap["notifiedRedirect"] = Processor.process_notifiedRedirect + self._processMap["notifyBuddyOnAir"] = Processor.process_notifyBuddyOnAir + self._processMap["notifyIndividualEvent"] = Processor.process_notifyIndividualEvent + self._processMap["notifyInstalled"] = Processor.process_notifyInstalled + self._processMap["notifyRegistrationComplete"] = Processor.process_notifyRegistrationComplete + self._processMap["notifySleep"] = Processor.process_notifySleep + self._processMap["notifyUpdated"] = Processor.process_notifyUpdated + self._processMap["openProximityMatch"] = Processor.process_openProximityMatch + self._processMap["registerBuddyUser"] = Processor.process_registerBuddyUser + self._processMap["registerBuddyUserid"] = Processor.process_registerBuddyUserid + self._processMap["registerDevice"] = Processor.process_registerDevice + self._processMap["registerDeviceWithIdentityCredential"] = Processor.process_registerDeviceWithIdentityCredential + self._processMap["registerDeviceWithoutPhoneNumber"] = Processor.process_registerDeviceWithoutPhoneNumber + self._processMap["registerDeviceWithoutPhoneNumberWithIdentityCredential"] = Processor.process_registerDeviceWithoutPhoneNumberWithIdentityCredential + self._processMap["registerUserid"] = Processor.process_registerUserid + self._processMap["registerWapDevice"] = Processor.process_registerWapDevice + self._processMap["registerWithExistingSnsIdAndIdentityCredential"] = Processor.process_registerWithExistingSnsIdAndIdentityCredential + self._processMap["registerWithSnsId"] = Processor.process_registerWithSnsId + self._processMap["registerWithSnsIdAndIdentityCredential"] = Processor.process_registerWithSnsIdAndIdentityCredential + self._processMap["reissueDeviceCredential"] = Processor.process_reissueDeviceCredential + self._processMap["reissueUserTicket"] = Processor.process_reissueUserTicket + self._processMap["getMessageReadRange"] = Processor.process_getMessageReadRange + self._processMap["rejectGroupInvitation"] = Processor.process_rejectGroupInvitation + self._processMap["releaseSession"] = Processor.process_releaseSession + self._processMap["removeAllMessages"] = Processor.process_removeAllMessages + self._processMap["removeBuddyLocation"] = Processor.process_removeBuddyLocation + self._processMap["removeMessage"] = Processor.process_removeMessage + self._processMap["makeUserAddMyselfAsContact"] = Processor.process_makeUserAddMyselfAsContact + self._processMap["removeMessageFromMyHome"] = Processor.process_removeMessageFromMyHome + self._processMap["removeSnsId"] = Processor.process_removeSnsId + self._processMap["report"] = Processor.process_report + self._processMap["reportContacts"] = Processor.process_reportContacts + self._processMap["reportGroups"] = Processor.process_reportGroups + self._processMap["reportProfile"] = Processor.process_reportProfile + self._processMap["reportRooms"] = Processor.process_reportRooms + self._processMap["findAndAddContactByMetaTag"] = Processor.process_findAndAddContactByMetaTag + self._processMap["reportSettings"] = Processor.process_reportSettings + self._processMap["reportSpam"] = Processor.process_reportSpam + self._processMap["reportSpammer"] = Processor.process_reportSpammer + self._processMap["requestAccountPasswordReset"] = Processor.process_requestAccountPasswordReset + self._processMap["requestEmailConfirmation"] = Processor.process_requestEmailConfirmation + self._processMap["requestIdentityUnbind"] = Processor.process_requestIdentityUnbind + self._processMap["resendEmailConfirmation"] = Processor.process_resendEmailConfirmation + self._processMap["resendPinCode"] = Processor.process_resendPinCode + self._processMap["resendPinCodeBySMS"] = Processor.process_resendPinCodeBySMS + self._processMap["sendChatChecked"] = Processor.process_sendChatChecked + self._processMap["sendMessageAwaitCommit"] = Processor.process_sendMessageAwaitCommit + self._processMap["sendChatRemoved"] = Processor.process_sendChatRemoved + self._processMap["sendContentPreviewUpdated"] = Processor.process_sendContentPreviewUpdated + self._processMap["sendContentReceipt"] = Processor.process_sendContentReceipt + self._processMap["sendDummyPush"] = Processor.process_sendDummyPush + self._processMap["removeE2EEPublicKey"] = Processor.process_removeE2EEPublicKey + self._processMap["negotiateE2EEPublicKey"] = Processor.process_negotiateE2EEPublicKey + self._processMap["getE2EEPublicKey"] = Processor.process_getE2EEPublicKey + self._processMap["requestE2EEKeyExchange"] = Processor.process_requestE2EEKeyExchange + self._processMap["getLastE2EEPublicKeys"] = Processor.process_getLastE2EEPublicKeys + self._processMap["registerE2EEPublicKey"] = Processor.process_registerE2EEPublicKey + self._processMap["getE2EEPublicKeys"] = Processor.process_getE2EEPublicKeys + self._processMap["getE2EEPublicKeysEx"] = Processor.process_getE2EEPublicKeysEx + self._processMap["getReadMessageOpsInBulk"] = Processor.process_getReadMessageOpsInBulk + self._processMap["sendEvent"] = Processor.process_sendEvent + self._processMap["sendMessage"] = Processor.process_sendMessage + self._processMap["sendMessageIgnored"] = Processor.process_sendMessageIgnored + self._processMap["sendMessageReceipt"] = Processor.process_sendMessageReceipt + self._processMap["findContactByMetaTag"] = Processor.process_findContactByMetaTag + self._processMap["sendMessageToMyHome"] = Processor.process_sendMessageToMyHome + self._processMap["setBuddyLocation"] = Processor.process_setBuddyLocation + self._processMap["setIdentityCredential"] = Processor.process_setIdentityCredential + self._processMap["setNotificationsEnabled"] = Processor.process_setNotificationsEnabled + self._processMap["startUpdateVerification"] = Processor.process_startUpdateVerification + self._processMap["startVerification"] = Processor.process_startVerification + self._processMap["updateGroupPreferenceAttribute"] = Processor.process_updateGroupPreferenceAttribute + self._processMap["createRoomV2"] = Processor.process_createRoomV2 + self._processMap["storeUpdateProfileAttribute"] = Processor.process_storeUpdateProfileAttribute + self._processMap["syncContactBySnsIds"] = Processor.process_syncContactBySnsIds + self._processMap["syncContacts"] = Processor.process_syncContacts + self._processMap["trySendMessage"] = Processor.process_trySendMessage + self._processMap["getNextMessagesV2"] = Processor.process_getNextMessagesV2 + self._processMap["getMessageBoxCompactWrapUpV2"] = Processor.process_getMessageBoxCompactWrapUpV2 + self._processMap["getRecentMessagesV2"] = Processor.process_getRecentMessagesV2 + self._processMap["validateContactsOnBot"] = Processor.process_validateContactsOnBot + self._processMap["tryFriendRequest"] = Processor.process_tryFriendRequest + self._processMap["unblockContact"] = Processor.process_unblockContact + self._processMap["unblockRecommendation"] = Processor.process_unblockRecommendation + self._processMap["unregisterUserAndDevice"] = Processor.process_unregisterUserAndDevice + self._processMap["updateApnsDeviceToken"] = Processor.process_updateApnsDeviceToken + self._processMap["updateBuddySetting"] = Processor.process_updateBuddySetting + self._processMap["updateC2DMRegistrationId"] = Processor.process_updateC2DMRegistrationId + self._processMap["updateContactSetting"] = Processor.process_updateContactSetting + self._processMap["updateCustomModeSettings"] = Processor.process_updateCustomModeSettings + self._processMap["updateDeviceInfo"] = Processor.process_updateDeviceInfo + self._processMap["updateGroup"] = Processor.process_updateGroup + self._processMap["updateNotificationToken"] = Processor.process_updateNotificationToken + self._processMap["updateNotificationTokenWithBytes"] = Processor.process_updateNotificationTokenWithBytes + self._processMap["updateProfile"] = Processor.process_updateProfile + self._processMap["updateProfileAttribute"] = Processor.process_updateProfileAttribute + self._processMap["updateRegion"] = Processor.process_updateRegion + self._processMap["updateSettings"] = Processor.process_updateSettings + self._processMap["updateSettings2"] = Processor.process_updateSettings2 + self._processMap["updateSettingsAttribute"] = Processor.process_updateSettingsAttribute + self._processMap["updateSettingsAttributes"] = Processor.process_updateSettingsAttributes + self._processMap["verifyIdentityCredential"] = Processor.process_verifyIdentityCredential + self._processMap["verifyIdentityCredentialWithResult"] = Processor.process_verifyIdentityCredentialWithResult + self._processMap["verifyPhone"] = Processor.process_verifyPhone + self._processMap["verifyQrcode"] = Processor.process_verifyQrcode + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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_getChatRoomAnnouncementsBulk(self, seqid, iprot, oprot): + args = getChatRoomAnnouncementsBulk_args() + args.read(iprot) + iprot.readMessageEnd() + result = getChatRoomAnnouncementsBulk_result() + try: + result.success = self._handler.getChatRoomAnnouncementsBulk(args.chatRoomMids) + 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("getChatRoomAnnouncementsBulk", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getChatRoomAnnouncements(self, seqid, iprot, oprot): + args = getChatRoomAnnouncements_args() + args.read(iprot) + iprot.readMessageEnd() + result = getChatRoomAnnouncements_result() + try: + result.success = self._handler.getChatRoomAnnouncements(args.chatRoomMid) + 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("getChatRoomAnnouncements", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_createChatRoomAnnouncement(self, seqid, iprot, oprot): + args = createChatRoomAnnouncement_args() + args.read(iprot) + iprot.readMessageEnd() + result = createChatRoomAnnouncement_result() + try: + result.success = self._handler.createChatRoomAnnouncement(args.reqSeq, args.chatRoomMid, args.type, args.contents) + 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("createChatRoomAnnouncement", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_removeChatRoomAnnouncement(self, seqid, iprot, oprot): + args = removeChatRoomAnnouncement_args() + args.read(iprot) + iprot.readMessageEnd() + result = removeChatRoomAnnouncement_result() + try: + self._handler.removeChatRoomAnnouncement(args.reqSeq, args.chatRoomMid, args.announcementSeq) + 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("removeChatRoomAnnouncement", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_unsendMessage(self, seqid, iprot, oprot): + args = unsendMessage_args() + args.read(iprot) + iprot.readMessageEnd() + result = unsendMessage_result() + try: + self._handler.unsendMessage(args.seq, 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("unsendMessage", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getGroupWithoutMembers(self, seqid, iprot, oprot): + args = getGroupWithoutMembers_args() + args.read(iprot) + iprot.readMessageEnd() + result = getGroupWithoutMembers_result() + try: + result.success = self._handler.getGroupWithoutMembers(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("getGroupWithoutMembers", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_requestResendMessage(self, seqid, iprot, oprot): + args = requestResendMessage_args() + args.read(iprot) + iprot.readMessageEnd() + result = requestResendMessage_result() + try: + self._handler.requestResendMessage(args.reqSeq, args.senderMid, 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("requestResendMessage", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_respondResendMessage(self, seqid, iprot, oprot): + args = respondResendMessage_args() + args.read(iprot) + iprot.readMessageEnd() + result = respondResendMessage_result() + try: + self._handler.respondResendMessage(args.reqSeq, args.receiverMid, args.originalMessageId, args.resendMessage, args.errorCode) + 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("respondResendMessage", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_acceptGroupInvitation(self, seqid, iprot, oprot): + args = acceptGroupInvitation_args() + args.read(iprot) + iprot.readMessageEnd() + result = acceptGroupInvitation_result() + try: + self._handler.acceptGroupInvitation(args.reqSeq, 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("acceptGroupInvitation", msg_type, seqid) + result.write(oprot) + 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) + iprot.readMessageEnd() + result = acceptProximityMatches_result() + try: + self._handler.acceptProximityMatches(args.sessionId, 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("acceptProximityMatches", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_acquireCallRoute(self, seqid, iprot, oprot): + args = acquireCallRoute_args() + args.read(iprot) + iprot.readMessageEnd() + result = acquireCallRoute_result() + try: + result.success = self._handler.acquireCallRoute(args.to) + 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("acquireCallRoute", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_acquireCallTicket(self, seqid, iprot, oprot): + args = acquireCallTicket_args() + args.read(iprot) + iprot.readMessageEnd() + result = acquireCallTicket_result() + try: + result.success = self._handler.acquireCallTicket(args.to) + 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("acquireCallTicket", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_acquireEncryptedAccessToken(self, seqid, iprot, oprot): + args = acquireEncryptedAccessToken_args() + args.read(iprot) + iprot.readMessageEnd() + result = acquireEncryptedAccessToken_result() + try: + result.success = self._handler.acquireEncryptedAccessToken(args.featureType) + 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("acquireEncryptedAccessToken", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_addSnsId(self, seqid, iprot, oprot): + args = addSnsId_args() + args.read(iprot) + iprot.readMessageEnd() + result = addSnsId_result() + try: + result.success = self._handler.addSnsId(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("addSnsId", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_blockContact(self, seqid, iprot, oprot): + args = blockContact_args() + args.read(iprot) + iprot.readMessageEnd() + result = blockContact_result() + try: + self._handler.blockContact(args.reqSeq, args.id) + 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("blockContact", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_blockRecommendation(self, seqid, iprot, oprot): + args = blockRecommendation_args() + args.read(iprot) + iprot.readMessageEnd() + result = blockRecommendation_result() + try: + self._handler.blockRecommendation(args.reqSeq, args.id) + 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("blockRecommendation", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_cancelGroupInvitation(self, seqid, iprot, oprot): + args = cancelGroupInvitation_args() + args.read(iprot) + iprot.readMessageEnd() + result = cancelGroupInvitation_result() + try: + self._handler.cancelGroupInvitation(args.reqSeq, args.groupId, args.contactIds) + 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("cancelGroupInvitation", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_changeVerificationMethod(self, seqid, iprot, oprot): + args = changeVerificationMethod_args() + args.read(iprot) + iprot.readMessageEnd() + result = changeVerificationMethod_result() + try: + result.success = self._handler.changeVerificationMethod(args.sessionId, args.method) + 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("changeVerificationMethod", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_clearIdentityCredential(self, seqid, iprot, oprot): + args = clearIdentityCredential_args() + args.read(iprot) + iprot.readMessageEnd() + result = clearIdentityCredential_result() + try: + self._handler.clearIdentityCredential() + 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("clearIdentityCredential", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_clearMessageBox(self, seqid, iprot, oprot): + args = clearMessageBox_args() + args.read(iprot) + iprot.readMessageEnd() + result = clearMessageBox_result() + try: + self._handler.clearMessageBox(args.channelId, args.messageBoxId) + 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("clearMessageBox", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_closeProximityMatch(self, seqid, iprot, oprot): + args = closeProximityMatch_args() + args.read(iprot) + iprot.readMessageEnd() + result = closeProximityMatch_result() + try: + self._handler.closeProximityMatch(args.sessionId) + 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("closeProximityMatch", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_commitSendMessage(self, seqid, iprot, oprot): + args = commitSendMessage_args() + args.read(iprot) + iprot.readMessageEnd() + result = commitSendMessage_result() + try: + result.success = self._handler.commitSendMessage(args.seq, args.messageId, args.receiverMids) + 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("commitSendMessage", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_commitSendMessages(self, seqid, iprot, oprot): + args = commitSendMessages_args() + args.read(iprot) + iprot.readMessageEnd() + result = commitSendMessages_result() + try: + result.success = self._handler.commitSendMessages(args.seq, args.messageIds, args.receiverMids) + 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("commitSendMessages", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_commitUpdateProfile(self, seqid, iprot, oprot): + args = commitUpdateProfile_args() + args.read(iprot) + iprot.readMessageEnd() + result = commitUpdateProfile_result() + try: + result.success = self._handler.commitUpdateProfile(args.seq, args.attrs, args.receiverMids) + 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("commitUpdateProfile", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_confirmEmail(self, seqid, iprot, oprot): + args = confirmEmail_args() + args.read(iprot) + iprot.readMessageEnd() + result = confirmEmail_result() + try: + self._handler.confirmEmail(args.verifier, args.pinCode) + 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("confirmEmail", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_createGroup(self, seqid, iprot, oprot): + args = createGroup_args() + args.read(iprot) + iprot.readMessageEnd() + result = createGroup_result() + try: + result.success = self._handler.createGroup(args.seq, args.name, args.contactIds) + 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("createGroup", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_createQrcodeBase64Image(self, seqid, iprot, oprot): + args = createQrcodeBase64Image_args() + args.read(iprot) + iprot.readMessageEnd() + result = createQrcodeBase64Image_result() + try: + result.success = self._handler.createQrcodeBase64Image(args.url, args.characterSet, args.imageSize, args.x, args.y, args.width, args.height) + 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("createQrcodeBase64Image", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_createRoom(self, seqid, iprot, oprot): + args = createRoom_args() + args.read(iprot) + iprot.readMessageEnd() + result = createRoom_result() + try: + result.success = self._handler.createRoom(args.reqSeq, args.contactIds) + 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("createRoom", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_createSession(self, seqid, iprot, oprot): + args = createSession_args() + args.read(iprot) + iprot.readMessageEnd() + result = createSession_result() + try: + result.success = self._handler.createSession() + 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("createSession", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_fetchAnnouncements(self, seqid, iprot, oprot): + args = fetchAnnouncements_args() + args.read(iprot) + iprot.readMessageEnd() + result = fetchAnnouncements_result() + try: + result.success = self._handler.fetchAnnouncements(args.lastFetchedIndex) + 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("fetchAnnouncements", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_fetchMessages(self, seqid, iprot, oprot): + args = fetchMessages_args() + args.read(iprot) + iprot.readMessageEnd() + result = fetchMessages_result() + try: + result.success = self._handler.fetchMessages(args.localTs, 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("fetchMessages", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_fetchOperations(self, seqid, iprot, oprot): + args = fetchOperations_args() + args.read(iprot) + iprot.readMessageEnd() + result = fetchOperations_result() + try: + result.success = self._handler.fetchOperations(args.localRev, args.count) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except ShouldSyncException 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("fetchOperations", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_fetchOps(self, seqid, iprot, oprot): + args = fetchOps_args() + args.read(iprot) + iprot.readMessageEnd() + result = fetchOps_result() + try: + result.success = self._handler.fetchOps(args.localRev, args.count, args.globalRev, args.individualRev) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except ShouldSyncException 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("fetchOps", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_findAndAddContactsByEmail(self, seqid, iprot, oprot): + args = findAndAddContactsByEmail_args() + args.read(iprot) + iprot.readMessageEnd() + result = findAndAddContactsByEmail_result() + try: + result.success = self._handler.findAndAddContactsByEmail(args.reqSeq, args.emails) + 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("findAndAddContactsByEmail", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_findAndAddContactsByMid(self, seqid, iprot, oprot): + args = findAndAddContactsByMid_args() + args.read(iprot) + iprot.readMessageEnd() + result = findAndAddContactsByMid_result() + try: + result.success = self._handler.findAndAddContactsByMid(args.reqSeq, args.mid, args.type, args.reference) + 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("findAndAddContactsByMid", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_findGroupByTicketV2(self, seqid, iprot, oprot): + args = findGroupByTicketV2_args() + args.read(iprot) + iprot.readMessageEnd() + result = findGroupByTicketV2_result() + try: + result.success = self._handler.findGroupByTicketV2(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("findGroupByTicketV2", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_findAndAddContactsByPhone(self, seqid, iprot, oprot): + args = findAndAddContactsByPhone_args() + args.read(iprot) + iprot.readMessageEnd() + result = findAndAddContactsByPhone_result() + try: + result.success = self._handler.findAndAddContactsByPhone(args.reqSeq, args.phones) + 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("findAndAddContactsByPhone", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getFriendRequests(self, seqid, iprot, oprot): + args = getFriendRequests_args() + args.read(iprot) + iprot.readMessageEnd() + result = getFriendRequests_result() + try: + result.success = self._handler.getFriendRequests(args.direction, args.lastSeenSeqId) + 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("getFriendRequests", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_removeFriendRequest(self, seqid, iprot, oprot): + args = removeFriendRequest_args() + args.read(iprot) + iprot.readMessageEnd() + result = removeFriendRequest_result() + try: + self._handler.removeFriendRequest(args.direction, args.midOrEMid) + 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("removeFriendRequest", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_findAndAddContactsByUserid(self, seqid, iprot, oprot): + args = findAndAddContactsByUserid_args() + args.read(iprot) + iprot.readMessageEnd() + result = findAndAddContactsByUserid_result() + try: + result.success = self._handler.findAndAddContactsByUserid(args.reqSeq, 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("findAndAddContactsByUserid", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_findContactByUserid(self, seqid, iprot, oprot): + args = findContactByUserid_args() + args.read(iprot) + iprot.readMessageEnd() + result = findContactByUserid_result() + try: + result.success = self._handler.findContactByUserid(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("findContactByUserid", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_findContactByUserTicket(self, seqid, iprot, oprot): + args = findContactByUserTicket_args() + args.read(iprot) + iprot.readMessageEnd() + result = findContactByUserTicket_result() + try: + result.success = self._handler.findContactByUserTicket(args.ticketIdWithTag) + 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("findContactByUserTicket", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_findContactsByEmail(self, seqid, iprot, oprot): + args = findContactsByEmail_args() + args.read(iprot) + iprot.readMessageEnd() + result = findContactsByEmail_result() + try: + result.success = self._handler.findContactsByEmail(args.emails) + 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("findContactsByEmail", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_findContactsByPhone(self, seqid, iprot, oprot): + args = findContactsByPhone_args() + args.read(iprot) + iprot.readMessageEnd() + result = findContactsByPhone_result() + try: + result.success = self._handler.findContactsByPhone(args.phones) + 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("findContactsByPhone", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_findSnsIdUserStatus(self, seqid, iprot, oprot): + args = findSnsIdUserStatus_args() + args.read(iprot) + iprot.readMessageEnd() + result = findSnsIdUserStatus_result() + try: + result.success = self._handler.findSnsIdUserStatus(args.snsIdType, args.snsAccessToken, args.udidHash) + 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("findSnsIdUserStatus", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_finishUpdateVerification(self, seqid, iprot, oprot): + args = finishUpdateVerification_args() + args.read(iprot) + iprot.readMessageEnd() + result = finishUpdateVerification_result() + try: + self._handler.finishUpdateVerification(args.sessionId) + 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("finishUpdateVerification", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_generateUserTicket(self, seqid, iprot, oprot): + args = generateUserTicket_args() + args.read(iprot) + iprot.readMessageEnd() + result = generateUserTicket_result() + try: + result.success = self._handler.generateUserTicket(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("generateUserTicket", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_destroyMessage(self, seqid, iprot, oprot): + args = destroyMessage_args() + args.read(iprot) + iprot.readMessageEnd() + result = destroyMessage_result() + try: + self._handler.destroyMessage(args.seq, args.chatId, args.messageId, args.sessionId) + 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("destroyMessage", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAcceptedProximityMatches(self, seqid, iprot, oprot): + args = getAcceptedProximityMatches_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAcceptedProximityMatches_result() + try: + result.success = self._handler.getAcceptedProximityMatches(args.sessionId) + 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("getAcceptedProximityMatches", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getActiveBuddySubscriberIds(self, seqid, iprot, oprot): + args = getActiveBuddySubscriberIds_args() + args.read(iprot) + iprot.readMessageEnd() + result = getActiveBuddySubscriberIds_result() + try: + result.success = self._handler.getActiveBuddySubscriberIds() + 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("getActiveBuddySubscriberIds", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAllContactIds(self, seqid, iprot, oprot): + args = getAllContactIds_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAllContactIds_result() + try: + result.success = self._handler.getAllContactIds() + 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("getAllContactIds", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAuthQrcode(self, seqid, iprot, oprot): + args = getAuthQrcode_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAuthQrcode_result() + try: + result.success = self._handler.getAuthQrcode(args.keepLoggedIn, args.systemName) + 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("getAuthQrcode", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getBlockedContactIds(self, seqid, iprot, oprot): + args = getBlockedContactIds_args() + args.read(iprot) + iprot.readMessageEnd() + result = getBlockedContactIds_result() + try: + result.success = self._handler.getBlockedContactIds() + 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("getBlockedContactIds", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerWithPhoneNumber(self, seqid, iprot, oprot): + args = registerWithPhoneNumber_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerWithPhoneNumber_result() + try: + result.success = self._handler.registerWithPhoneNumber(args.sessionId, args.migrationPincodeSessionId) + 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("registerWithPhoneNumber", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerWithPhoneNumberAndPassword(self, seqid, iprot, oprot): + args = registerWithPhoneNumberAndPassword_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerWithPhoneNumberAndPassword_result() + try: + result.success = self._handler.registerWithPhoneNumberAndPassword(args.sessionId, args.keynm, args.encrypted) + 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("registerWithPhoneNumberAndPassword", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getAnalyticsInfo(self, seqid, iprot, oprot): + args = getAnalyticsInfo_args() + args.read(iprot) + iprot.readMessageEnd() + result = getAnalyticsInfo_result() + try: + result.success = self._handler.getAnalyticsInfo() + 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("getAnalyticsInfo", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_reportClientStatistics(self, seqid, iprot, oprot): + args = reportClientStatistics_args() + args.read(iprot) + iprot.readMessageEnd() + result = reportClientStatistics_result() + try: + self._handler.reportClientStatistics(args.reqSeq, args.category, 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("reportClientStatistics", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_verifyPhoneNumberForLogin(self, seqid, iprot, oprot): + args = verifyPhoneNumberForLogin_args() + args.read(iprot) + iprot.readMessageEnd() + result = verifyPhoneNumberForLogin_result() + try: + result.success = self._handler.verifyPhoneNumberForLogin(args.verifierFromPhone, args.pinCodeForPhone, args.verifierFromLogin) + 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("verifyPhoneNumberForLogin", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_verifyPhoneNumber(self, seqid, iprot, oprot): + args = verifyPhoneNumber_args() + args.read(iprot) + iprot.readMessageEnd() + result = verifyPhoneNumber_result() + try: + result.success = self._handler.verifyPhoneNumber(args.sessionId, args.pinCode, args.udidHash, args.migrationPincodeSessionId, args.oldUdidHash) + 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("verifyPhoneNumber", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getBlockedContactIdsByRange(self, seqid, iprot, oprot): + args = getBlockedContactIdsByRange_args() + args.read(iprot) + iprot.readMessageEnd() + result = getBlockedContactIdsByRange_result() + try: + result.success = self._handler.getBlockedContactIdsByRange(args.start, 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("getBlockedContactIdsByRange", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getBlockedRecommendationIds(self, seqid, iprot, oprot): + args = getBlockedRecommendationIds_args() + args.read(iprot) + iprot.readMessageEnd() + result = getBlockedRecommendationIds_result() + try: + result.success = self._handler.getBlockedRecommendationIds() + 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("getBlockedRecommendationIds", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getBuddyBlockerIds(self, seqid, iprot, oprot): + args = getBuddyBlockerIds_args() + args.read(iprot) + iprot.readMessageEnd() + result = getBuddyBlockerIds_result() + try: + result.success = self._handler.getBuddyBlockerIds() + 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("getBuddyBlockerIds", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getBuddyLocation(self, seqid, iprot, oprot): + args = getBuddyLocation_args() + args.read(iprot) + iprot.readMessageEnd() + result = getBuddyLocation_result() + try: + result.success = self._handler.getBuddyLocation(args.mid, args.index) + 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("getBuddyLocation", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getCompactContactsModifiedSince(self, seqid, iprot, oprot): + args = getCompactContactsModifiedSince_args() + args.read(iprot) + iprot.readMessageEnd() + result = getCompactContactsModifiedSince_result() + try: + result.success = self._handler.getCompactContactsModifiedSince(args.timestamp) + 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("getCompactContactsModifiedSince", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getCompactGroup(self, seqid, iprot, oprot): + args = getCompactGroup_args() + args.read(iprot) + iprot.readMessageEnd() + result = getCompactGroup_result() + try: + result.success = self._handler.getCompactGroup(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("getCompactGroup", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getCompactRoom(self, seqid, iprot, oprot): + args = getCompactRoom_args() + args.read(iprot) + iprot.readMessageEnd() + result = getCompactRoom_result() + try: + result.success = self._handler.getCompactRoom(args.roomId) + 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("getCompactRoom", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getContact(self, seqid, iprot, oprot): + args = getContact_args() + args.read(iprot) + iprot.readMessageEnd() + result = getContact_result() + try: + result.success = self._handler.getContact(args.id) + 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("getContact", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getContacts(self, seqid, iprot, oprot): + args = getContacts_args() + args.read(iprot) + iprot.readMessageEnd() + result = getContacts_result() + try: + result.success = self._handler.getContacts(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("getContacts", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getContactWithFriendRequestStatus(self, seqid, iprot, oprot): + args = getContactWithFriendRequestStatus_args() + args.read(iprot) + iprot.readMessageEnd() + result = getContactWithFriendRequestStatus_result() + try: + result.success = self._handler.getContactWithFriendRequestStatus(args.id) + 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("getContactWithFriendRequestStatus", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getCountryWithRequestIp(self, seqid, iprot, oprot): + args = getCountryWithRequestIp_args() + args.read(iprot) + iprot.readMessageEnd() + result = getCountryWithRequestIp_result() + try: + result.success = self._handler.getCountryWithRequestIp() + 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("getCountryWithRequestIp", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getFavoriteMids(self, seqid, iprot, oprot): + args = getFavoriteMids_args() + args.read(iprot) + iprot.readMessageEnd() + result = getFavoriteMids_result() + try: + result.success = self._handler.getFavoriteMids() + 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("getFavoriteMids", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getGroup(self, seqid, iprot, oprot): + args = getGroup_args() + args.read(iprot) + iprot.readMessageEnd() + result = getGroup_result() + try: + result.success = self._handler.getGroup(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("getGroup", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getGroupIdsInvited(self, seqid, iprot, oprot): + args = getGroupIdsInvited_args() + args.read(iprot) + iprot.readMessageEnd() + result = getGroupIdsInvited_result() + try: + result.success = self._handler.getGroupIdsInvited() + 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("getGroupIdsInvited", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getGroupIdsJoined(self, seqid, iprot, oprot): + args = getGroupIdsJoined_args() + args.read(iprot) + iprot.readMessageEnd() + result = getGroupIdsJoined_result() + try: + result.success = self._handler.getGroupIdsJoined() + 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("getGroupIdsJoined", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getGroups(self, seqid, iprot, oprot): + args = getGroups_args() + args.read(iprot) + iprot.readMessageEnd() + result = getGroups_result() + try: + result.success = self._handler.getGroups(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("getGroups", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getHiddenContactMids(self, seqid, iprot, oprot): + args = getHiddenContactMids_args() + args.read(iprot) + iprot.readMessageEnd() + result = getHiddenContactMids_result() + try: + result.success = self._handler.getHiddenContactMids() + 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("getHiddenContactMids", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getIdentityIdentifier(self, seqid, iprot, oprot): + args = getIdentityIdentifier_args() + args.read(iprot) + iprot.readMessageEnd() + result = getIdentityIdentifier_result() + try: + result.success = self._handler.getIdentityIdentifier() + 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("getIdentityIdentifier", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getLastAnnouncementIndex(self, seqid, iprot, oprot): + args = getLastAnnouncementIndex_args() + args.read(iprot) + iprot.readMessageEnd() + result = getLastAnnouncementIndex_result() + try: + result.success = self._handler.getLastAnnouncementIndex() + 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("getLastAnnouncementIndex", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getLastOpRevision(self, seqid, iprot, oprot): + args = getLastOpRevision_args() + args.read(iprot) + iprot.readMessageEnd() + result = getLastOpRevision_result() + try: + result.success = self._handler.getLastOpRevision() + 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("getLastOpRevision", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSuggestRevisions(self, seqid, iprot, oprot): + args = getSuggestRevisions_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSuggestRevisions_result() + try: + result.success = self._handler.getSuggestRevisions() + 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("getSuggestRevisions", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getPreviousMessagesV2WithReadCount(self, seqid, iprot, oprot): + args = getPreviousMessagesV2WithReadCount_args() + args.read(iprot) + iprot.readMessageEnd() + result = getPreviousMessagesV2WithReadCount_result() + try: + result.success = self._handler.getPreviousMessagesV2WithReadCount(args.messageBoxId, args.endMessageId, args.messagesCount) + 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("getPreviousMessagesV2WithReadCount", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getMessageBox(self, seqid, iprot, oprot): + args = getMessageBox_args() + args.read(iprot) + iprot.readMessageEnd() + result = getMessageBox_result() + try: + result.success = self._handler.getMessageBox(args.channelId, args.messageBoxId, args.lastMessagesCount) + 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("getMessageBox", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getMessageBoxCompactWrapUp(self, seqid, iprot, oprot): + args = getMessageBoxCompactWrapUp_args() + args.read(iprot) + iprot.readMessageEnd() + result = getMessageBoxCompactWrapUp_result() + try: + result.success = self._handler.getMessageBoxCompactWrapUp(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("getMessageBoxCompactWrapUp", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getMessageBoxCompactWrapUpList(self, seqid, iprot, oprot): + args = getMessageBoxCompactWrapUpList_args() + args.read(iprot) + iprot.readMessageEnd() + result = getMessageBoxCompactWrapUpList_result() + try: + result.success = self._handler.getMessageBoxCompactWrapUpList(args.start, args.messageBoxCount) + 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("getMessageBoxCompactWrapUpList", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getMessageBoxList(self, seqid, iprot, oprot): + args = getMessageBoxList_args() + args.read(iprot) + iprot.readMessageEnd() + result = getMessageBoxList_result() + try: + result.success = self._handler.getMessageBoxList(args.channelId, args.lastMessagesCount) + 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("getMessageBoxList", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getMessageBoxListByStatus(self, seqid, iprot, oprot): + args = getMessageBoxListByStatus_args() + args.read(iprot) + iprot.readMessageEnd() + result = getMessageBoxListByStatus_result() + try: + result.success = self._handler.getMessageBoxListByStatus(args.channelId, args.lastMessagesCount, args.status) + 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("getMessageBoxListByStatus", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getMessageBoxWrapUp(self, seqid, iprot, oprot): + args = getMessageBoxWrapUp_args() + args.read(iprot) + iprot.readMessageEnd() + result = getMessageBoxWrapUp_result() + try: + result.success = self._handler.getMessageBoxWrapUp(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("getMessageBoxWrapUp", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getMessageBoxWrapUpList(self, seqid, iprot, oprot): + args = getMessageBoxWrapUpList_args() + args.read(iprot) + iprot.readMessageEnd() + result = getMessageBoxWrapUpList_result() + try: + result.success = self._handler.getMessageBoxWrapUpList(args.start, args.messageBoxCount) + 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("getMessageBoxWrapUpList", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getMessagesBySequenceNumber(self, seqid, iprot, oprot): + args = getMessagesBySequenceNumber_args() + args.read(iprot) + iprot.readMessageEnd() + result = getMessagesBySequenceNumber_result() + try: + result.success = self._handler.getMessagesBySequenceNumber(args.channelId, args.messageBoxId, args.startSeq, args.endSeq) + 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("getMessagesBySequenceNumber", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getNextMessages(self, seqid, iprot, oprot): + args = getNextMessages_args() + args.read(iprot) + iprot.readMessageEnd() + result = getNextMessages_result() + try: + result.success = self._handler.getNextMessages(args.messageBoxId, args.startSeq, args.messagesCount) + 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("getNextMessages", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getNotificationPolicy(self, seqid, iprot, oprot): + args = getNotificationPolicy_args() + args.read(iprot) + iprot.readMessageEnd() + result = getNotificationPolicy_result() + try: + result.success = self._handler.getNotificationPolicy(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("getNotificationPolicy", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getPreviousMessages(self, seqid, iprot, oprot): + args = getPreviousMessages_args() + args.read(iprot) + iprot.readMessageEnd() + result = getPreviousMessages_result() + try: + result.success = self._handler.getPreviousMessages(args.messageBoxId, args.endSeq, args.messagesCount) + 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("getPreviousMessages", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getProfile(self, seqid, iprot, oprot): + args = getProfile_args() + args.read(iprot) + iprot.readMessageEnd() + result = getProfile_result() + try: + result.success = self._handler.getProfile() + 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("getProfile", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getProximityMatchCandidateList(self, seqid, iprot, oprot): + args = getProximityMatchCandidateList_args() + args.read(iprot) + iprot.readMessageEnd() + result = getProximityMatchCandidateList_result() + try: + result.success = self._handler.getProximityMatchCandidateList(args.sessionId) + 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("getProximityMatchCandidateList", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getProximityMatchCandidates(self, seqid, iprot, oprot): + args = getProximityMatchCandidates_args() + args.read(iprot) + iprot.readMessageEnd() + result = getProximityMatchCandidates_result() + try: + result.success = self._handler.getProximityMatchCandidates(args.sessionId) + 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("getProximityMatchCandidates", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getRecentMessages(self, seqid, iprot, oprot): + args = getRecentMessages_args() + args.read(iprot) + iprot.readMessageEnd() + result = getRecentMessages_result() + try: + result.success = self._handler.getRecentMessages(args.messageBoxId, args.messagesCount) + 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("getRecentMessages", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getRecommendationIds(self, seqid, iprot, oprot): + args = getRecommendationIds_args() + args.read(iprot) + iprot.readMessageEnd() + result = getRecommendationIds_result() + try: + result.success = self._handler.getRecommendationIds() + 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("getRecommendationIds", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getRoom(self, seqid, iprot, oprot): + args = getRoom_args() + args.read(iprot) + iprot.readMessageEnd() + result = getRoom_result() + try: + result.success = self._handler.getRoom(args.roomId) + 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("getRoom", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getRSAKeyInfo(self, seqid, iprot, oprot): + args = getRSAKeyInfo_args() + args.read(iprot) + iprot.readMessageEnd() + result = getRSAKeyInfo_result() + try: + result.success = self._handler.getRSAKeyInfo(args.provider) + 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("getRSAKeyInfo", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getServerTime(self, seqid, iprot, oprot): + args = getServerTime_args() + args.read(iprot) + iprot.readMessageEnd() + result = getServerTime_result() + try: + result.success = self._handler.getServerTime() + 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("getServerTime", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSessions(self, seqid, iprot, oprot): + args = getSessions_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSessions_result() + try: + result.success = self._handler.getSessions() + 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("getSessions", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSettings(self, seqid, iprot, oprot): + args = getSettings_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSettings_result() + try: + result.success = self._handler.getSettings() + 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("getSettings", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getGroupsV2(self, seqid, iprot, oprot): + args = getGroupsV2_args() + args.read(iprot) + iprot.readMessageEnd() + result = getGroupsV2_result() + try: + result.success = self._handler.getGroupsV2(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("getGroupsV2", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSettingsAttributes(self, seqid, iprot, oprot): + args = getSettingsAttributes_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSettingsAttributes_result() + try: + result.success = self._handler.getSettingsAttributes(args.attrBitset) + 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("getSettingsAttributes", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getSystemConfiguration(self, seqid, iprot, oprot): + args = getSystemConfiguration_args() + args.read(iprot) + iprot.readMessageEnd() + result = getSystemConfiguration_result() + try: + result.success = self._handler.getSystemConfiguration() + 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("getSystemConfiguration", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getUserTicket(self, seqid, iprot, oprot): + args = getUserTicket_args() + args.read(iprot) + iprot.readMessageEnd() + result = getUserTicket_result() + try: + result.success = self._handler.getUserTicket() + 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("getUserTicket", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getWapInvitation(self, seqid, iprot, oprot): + args = getWapInvitation_args() + args.read(iprot) + iprot.readMessageEnd() + result = getWapInvitation_result() + try: + result.success = self._handler.getWapInvitation(args.invitationHash) + 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("getWapInvitation", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_invalidateUserTicket(self, seqid, iprot, oprot): + args = invalidateUserTicket_args() + args.read(iprot) + iprot.readMessageEnd() + result = invalidateUserTicket_result() + try: + self._handler.invalidateUserTicket() + 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("invalidateUserTicket", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_inviteFriendsBySms(self, seqid, iprot, oprot): + args = inviteFriendsBySms_args() + args.read(iprot) + iprot.readMessageEnd() + result = inviteFriendsBySms_result() + try: + self._handler.inviteFriendsBySms(args.phoneNumberList) + 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("inviteFriendsBySms", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_inviteIntoGroup(self, seqid, iprot, oprot): + args = inviteIntoGroup_args() + args.read(iprot) + iprot.readMessageEnd() + result = inviteIntoGroup_result() + try: + self._handler.inviteIntoGroup(args.reqSeq, args.groupId, args.contactIds) + 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("inviteIntoGroup", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_inviteIntoRoom(self, seqid, iprot, oprot): + args = inviteIntoRoom_args() + args.read(iprot) + iprot.readMessageEnd() + result = inviteIntoRoom_result() + try: + self._handler.inviteIntoRoom(args.reqSeq, args.roomId, args.contactIds) + 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("inviteIntoRoom", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_inviteViaEmail(self, seqid, iprot, oprot): + args = inviteViaEmail_args() + args.read(iprot) + iprot.readMessageEnd() + result = inviteViaEmail_result() + try: + self._handler.inviteViaEmail(args.reqSeq, args.email, args.name) + 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("inviteViaEmail", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_isIdentityIdentifierAvailable(self, seqid, iprot, oprot): + args = isIdentityIdentifierAvailable_args() + args.read(iprot) + iprot.readMessageEnd() + result = isIdentityIdentifierAvailable_result() + try: + result.success = self._handler.isIdentityIdentifierAvailable(args.provider, args.identifier) + 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("isIdentityIdentifierAvailable", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_isUseridAvailable(self, seqid, iprot, oprot): + args = isUseridAvailable_args() + args.read(iprot) + iprot.readMessageEnd() + result = isUseridAvailable_result() + try: + result.success = self._handler.isUseridAvailable(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("isUseridAvailable", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_kickoutFromGroup(self, seqid, iprot, oprot): + args = kickoutFromGroup_args() + args.read(iprot) + iprot.readMessageEnd() + result = kickoutFromGroup_result() + try: + self._handler.kickoutFromGroup(args.reqSeq, args.groupId, args.contactIds) + 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("kickoutFromGroup", msg_type, seqid) + result.write(oprot) + 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) + iprot.readMessageEnd() + result = leaveGroup_result() + try: + self._handler.leaveGroup(args.reqSeq, 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("leaveGroup", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_leaveRoom(self, seqid, iprot, oprot): + args = leaveRoom_args() + args.read(iprot) + iprot.readMessageEnd() + result = leaveRoom_result() + try: + self._handler.leaveRoom(args.reqSeq, args.roomId) + 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("leaveRoom", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_loginWithIdentityCredential(self, seqid, iprot, oprot): + args = loginWithIdentityCredential_args() + args.read(iprot) + iprot.readMessageEnd() + result = loginWithIdentityCredential_result() + try: + result.success = self._handler.loginWithIdentityCredential(args.identityProvider, args.identifier, args.password, args.keepLoggedIn, args.accessLocation, args.systemName, args.certificate) + 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("loginWithIdentityCredential", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_loginWithIdentityCredentialForCertificate(self, seqid, iprot, oprot): + args = loginWithIdentityCredentialForCertificate_args() + args.read(iprot) + iprot.readMessageEnd() + result = loginWithIdentityCredentialForCertificate_result() + try: + result.success = self._handler.loginWithIdentityCredentialForCertificate(args.identityProvider, args.identifier, args.password, args.keepLoggedIn, args.accessLocation, args.systemName, args.certificate) + 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("loginWithIdentityCredentialForCertificate", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_loginWithVerifier(self, seqid, iprot, oprot): + args = loginWithVerifier_args() + args.read(iprot) + iprot.readMessageEnd() + result = loginWithVerifier_result() + try: + result.success = self._handler.loginWithVerifier(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("loginWithVerifier", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_loginWithVerifierForCerificate(self, seqid, iprot, oprot): + args = loginWithVerifierForCerificate_args() + args.read(iprot) + iprot.readMessageEnd() + result = loginWithVerifierForCerificate_result() + try: + result.success = self._handler.loginWithVerifierForCerificate(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("loginWithVerifierForCerificate", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_loginWithVerifierForCertificate(self, seqid, iprot, oprot): + args = loginWithVerifierForCertificate_args() + args.read(iprot) + iprot.readMessageEnd() + result = loginWithVerifierForCertificate_result() + try: + result.success = self._handler.loginWithVerifierForCertificate(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("loginWithVerifierForCertificate", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_logout(self, seqid, iprot, oprot): + args = logout_args() + args.read(iprot) + iprot.readMessageEnd() + result = logout_result() + try: + self._handler.logout() + 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("logout", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_logoutSession(self, seqid, iprot, oprot): + args = logoutSession_args() + args.read(iprot) + iprot.readMessageEnd() + result = logoutSession_result() + try: + self._handler.logoutSession(args.tokenKey) + 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("logoutSession", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_noop(self, seqid, iprot, oprot): + args = noop_args() + args.read(iprot) + iprot.readMessageEnd() + result = noop_result() + try: + self._handler.noop() + 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("noop", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_notifiedRedirect(self, seqid, iprot, oprot): + args = notifiedRedirect_args() + args.read(iprot) + iprot.readMessageEnd() + result = notifiedRedirect_result() + try: + self._handler.notifiedRedirect(args.paramMap) + 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("notifiedRedirect", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_notifyBuddyOnAir(self, seqid, iprot, oprot): + args = notifyBuddyOnAir_args() + args.read(iprot) + iprot.readMessageEnd() + result = notifyBuddyOnAir_result() + try: + result.success = self._handler.notifyBuddyOnAir(args.seq, args.receiverMids) + 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("notifyBuddyOnAir", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_notifyIndividualEvent(self, seqid, iprot, oprot): + args = notifyIndividualEvent_args() + args.read(iprot) + iprot.readMessageEnd() + result = notifyIndividualEvent_result() + try: + self._handler.notifyIndividualEvent(args.notificationStatus, args.receiverMids) + 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("notifyIndividualEvent", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_notifyInstalled(self, seqid, iprot, oprot): + args = notifyInstalled_args() + args.read(iprot) + iprot.readMessageEnd() + result = notifyInstalled_result() + try: + self._handler.notifyInstalled(args.udidHash, args.applicationTypeWithExtensions) + 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("notifyInstalled", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_notifyRegistrationComplete(self, seqid, iprot, oprot): + args = notifyRegistrationComplete_args() + args.read(iprot) + iprot.readMessageEnd() + result = notifyRegistrationComplete_result() + try: + self._handler.notifyRegistrationComplete(args.udidHash, args.applicationTypeWithExtensions) + 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("notifyRegistrationComplete", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_notifySleep(self, seqid, iprot, oprot): + args = notifySleep_args() + args.read(iprot) + iprot.readMessageEnd() + result = notifySleep_result() + try: + self._handler.notifySleep(args.lastRev, args.badge) + 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("notifySleep", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_notifyUpdated(self, seqid, iprot, oprot): + args = notifyUpdated_args() + args.read(iprot) + iprot.readMessageEnd() + result = notifyUpdated_result() + try: + self._handler.notifyUpdated(args.lastRev, args.deviceInfo) + 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("notifyUpdated", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_openProximityMatch(self, seqid, iprot, oprot): + args = openProximityMatch_args() + args.read(iprot) + iprot.readMessageEnd() + result = openProximityMatch_result() + try: + result.success = self._handler.openProximityMatch(args.location) + 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("openProximityMatch", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerBuddyUser(self, seqid, iprot, oprot): + args = registerBuddyUser_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerBuddyUser_result() + try: + result.success = self._handler.registerBuddyUser(args.buddyId, args.registrarPassword) + 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("registerBuddyUser", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerBuddyUserid(self, seqid, iprot, oprot): + args = registerBuddyUserid_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerBuddyUserid_result() + try: + self._handler.registerBuddyUserid(args.seq, 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("registerBuddyUserid", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerDevice(self, seqid, iprot, oprot): + args = registerDevice_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerDevice_result() + try: + result.success = self._handler.registerDevice(args.sessionId) + 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("registerDevice", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerDeviceWithIdentityCredential(self, seqid, iprot, oprot): + args = registerDeviceWithIdentityCredential_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerDeviceWithIdentityCredential_result() + try: + result.success = self._handler.registerDeviceWithIdentityCredential(args.sessionId, args.provider, args.identifier, 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("registerDeviceWithIdentityCredential", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerDeviceWithoutPhoneNumber(self, seqid, iprot, oprot): + args = registerDeviceWithoutPhoneNumber_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerDeviceWithoutPhoneNumber_result() + try: + result.success = self._handler.registerDeviceWithoutPhoneNumber(args.region, args.udidHash, args.deviceInfo) + 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("registerDeviceWithoutPhoneNumber", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerDeviceWithoutPhoneNumberWithIdentityCredential(self, seqid, iprot, oprot): + args = registerDeviceWithoutPhoneNumberWithIdentityCredential_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerDeviceWithoutPhoneNumberWithIdentityCredential_result() + try: + result.success = self._handler.registerDeviceWithoutPhoneNumberWithIdentityCredential(args.region, args.udidHash, args.deviceInfo, args.provider, args.identifier, args.verifier, args.mid, args.migrationPincodeSessionId) + 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("registerDeviceWithoutPhoneNumberWithIdentityCredential", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerUserid(self, seqid, iprot, oprot): + args = registerUserid_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerUserid_result() + try: + result.success = self._handler.registerUserid(args.reqSeq, 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("registerUserid", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerWapDevice(self, seqid, iprot, oprot): + args = registerWapDevice_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerWapDevice_result() + try: + result.success = self._handler.registerWapDevice(args.invitationHash, args.guidHash, args.email, args.deviceInfo) + 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("registerWapDevice", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerWithExistingSnsIdAndIdentityCredential(self, seqid, iprot, oprot): + args = registerWithExistingSnsIdAndIdentityCredential_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerWithExistingSnsIdAndIdentityCredential_result() + try: + result.success = self._handler.registerWithExistingSnsIdAndIdentityCredential(args.identityCredential, args.region, args.udidHash, args.deviceInfo) + 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("registerWithExistingSnsIdAndIdentityCredential", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerWithSnsId(self, seqid, iprot, oprot): + args = registerWithSnsId_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerWithSnsId_result() + try: + result.success = self._handler.registerWithSnsId(args.snsIdType, args.snsAccessToken, args.region, args.udidHash, args.deviceInfo, 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("registerWithSnsId", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerWithSnsIdAndIdentityCredential(self, seqid, iprot, oprot): + args = registerWithSnsIdAndIdentityCredential_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerWithSnsIdAndIdentityCredential_result() + try: + result.success = self._handler.registerWithSnsIdAndIdentityCredential(args.snsIdType, args.snsAccessToken, args.identityCredential, args.region, args.udidHash, args.deviceInfo) + 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("registerWithSnsIdAndIdentityCredential", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_reissueDeviceCredential(self, seqid, iprot, oprot): + args = reissueDeviceCredential_args() + args.read(iprot) + iprot.readMessageEnd() + result = reissueDeviceCredential_result() + try: + result.success = self._handler.reissueDeviceCredential() + 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("reissueDeviceCredential", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_reissueUserTicket(self, seqid, iprot, oprot): + args = reissueUserTicket_args() + args.read(iprot) + iprot.readMessageEnd() + result = reissueUserTicket_result() + try: + result.success = self._handler.reissueUserTicket(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("reissueUserTicket", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getMessageReadRange(self, seqid, iprot, oprot): + args = getMessageReadRange_args() + args.read(iprot) + iprot.readMessageEnd() + result = getMessageReadRange_result() + try: + result.success = self._handler.getMessageReadRange(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("getMessageReadRange", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_rejectGroupInvitation(self, seqid, iprot, oprot): + args = rejectGroupInvitation_args() + args.read(iprot) + iprot.readMessageEnd() + result = rejectGroupInvitation_result() + try: + self._handler.rejectGroupInvitation(args.reqSeq, 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("rejectGroupInvitation", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_releaseSession(self, seqid, iprot, oprot): + args = releaseSession_args() + args.read(iprot) + iprot.readMessageEnd() + result = releaseSession_result() + try: + self._handler.releaseSession() + 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("releaseSession", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_removeAllMessages(self, seqid, iprot, oprot): + args = removeAllMessages_args() + args.read(iprot) + iprot.readMessageEnd() + result = removeAllMessages_result() + try: + self._handler.removeAllMessages(args.seq, args.lastMessageId) + 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("removeAllMessages", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_removeBuddyLocation(self, seqid, iprot, oprot): + args = removeBuddyLocation_args() + args.read(iprot) + iprot.readMessageEnd() + result = removeBuddyLocation_result() + try: + self._handler.removeBuddyLocation(args.mid, args.index) + 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("removeBuddyLocation", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_removeMessage(self, seqid, iprot, oprot): + args = removeMessage_args() + args.read(iprot) + iprot.readMessageEnd() + result = removeMessage_result() + try: + result.success = self._handler.removeMessage(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("removeMessage", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_makeUserAddMyselfAsContact(self, seqid, iprot, oprot): + args = makeUserAddMyselfAsContact_args() + args.read(iprot) + iprot.readMessageEnd() + result = makeUserAddMyselfAsContact_result() + try: + result.success = self._handler.makeUserAddMyselfAsContact(args.contactOwnerMid) + 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("makeUserAddMyselfAsContact", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_removeMessageFromMyHome(self, seqid, iprot, oprot): + args = removeMessageFromMyHome_args() + args.read(iprot) + iprot.readMessageEnd() + result = removeMessageFromMyHome_result() + try: + result.success = self._handler.removeMessageFromMyHome(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("removeMessageFromMyHome", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_removeSnsId(self, seqid, iprot, oprot): + args = removeSnsId_args() + args.read(iprot) + iprot.readMessageEnd() + result = removeSnsId_result() + try: + result.success = self._handler.removeSnsId(args.snsIdType) + 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("removeSnsId", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_report(self, seqid, iprot, oprot): + args = report_args() + args.read(iprot) + iprot.readMessageEnd() + result = report_result() + try: + self._handler.report(args.syncOpRevision, args.category, args.report) + 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("report", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_reportContacts(self, seqid, iprot, oprot): + args = reportContacts_args() + args.read(iprot) + iprot.readMessageEnd() + result = reportContacts_result() + try: + result.success = self._handler.reportContacts(args.syncOpRevision, args.category, args.contactReports, args.actionType) + 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("reportContacts", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_reportGroups(self, seqid, iprot, oprot): + args = reportGroups_args() + args.read(iprot) + iprot.readMessageEnd() + result = reportGroups_result() + try: + self._handler.reportGroups(args.syncOpRevision, args.groups) + 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("reportGroups", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_reportProfile(self, seqid, iprot, oprot): + args = reportProfile_args() + args.read(iprot) + iprot.readMessageEnd() + result = reportProfile_result() + try: + self._handler.reportProfile(args.syncOpRevision, args.profile) + 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("reportProfile", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_reportRooms(self, seqid, iprot, oprot): + args = reportRooms_args() + args.read(iprot) + iprot.readMessageEnd() + result = reportRooms_result() + try: + self._handler.reportRooms(args.syncOpRevision, args.rooms) + 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("reportRooms", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_findAndAddContactByMetaTag(self, seqid, iprot, oprot): + args = findAndAddContactByMetaTag_args() + args.read(iprot) + iprot.readMessageEnd() + result = findAndAddContactByMetaTag_result() + try: + result.success = self._handler.findAndAddContactByMetaTag(args.reqSeq, args.userid, args.reference) + 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("findAndAddContactByMetaTag", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_reportSettings(self, seqid, iprot, oprot): + args = reportSettings_args() + args.read(iprot) + iprot.readMessageEnd() + result = reportSettings_result() + try: + self._handler.reportSettings(args.syncOpRevision, 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("reportSettings", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_reportSpam(self, seqid, iprot, oprot): + args = reportSpam_args() + args.read(iprot) + iprot.readMessageEnd() + result = reportSpam_result() + try: + self._handler.reportSpam(args.chatMid, args.memberMids, args.spammerReasons, args.senderMids, args.spamMessageIds, args.spamMessages) + 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("reportSpam", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_reportSpammer(self, seqid, iprot, oprot): + args = reportSpammer_args() + args.read(iprot) + iprot.readMessageEnd() + result = reportSpammer_result() + try: + self._handler.reportSpammer(args.spammerMid, args.spammerReasons, args.spamMessageIds) + 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("reportSpammer", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_requestAccountPasswordReset(self, seqid, iprot, oprot): + args = requestAccountPasswordReset_args() + args.read(iprot) + iprot.readMessageEnd() + result = requestAccountPasswordReset_result() + try: + self._handler.requestAccountPasswordReset(args.provider, args.identifier, args.locale) + 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("requestAccountPasswordReset", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_requestEmailConfirmation(self, seqid, iprot, oprot): + args = requestEmailConfirmation_args() + args.read(iprot) + iprot.readMessageEnd() + result = requestEmailConfirmation_result() + try: + result.success = self._handler.requestEmailConfirmation(args.emailConfirmation) + 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("requestEmailConfirmation", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_requestIdentityUnbind(self, seqid, iprot, oprot): + args = requestIdentityUnbind_args() + args.read(iprot) + iprot.readMessageEnd() + result = requestIdentityUnbind_result() + try: + self._handler.requestIdentityUnbind(args.provider, args.identifier) + 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("requestIdentityUnbind", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_resendEmailConfirmation(self, seqid, iprot, oprot): + args = resendEmailConfirmation_args() + args.read(iprot) + iprot.readMessageEnd() + result = resendEmailConfirmation_result() + try: + result.success = self._handler.resendEmailConfirmation(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("resendEmailConfirmation", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_resendPinCode(self, seqid, iprot, oprot): + args = resendPinCode_args() + args.read(iprot) + iprot.readMessageEnd() + result = resendPinCode_result() + try: + self._handler.resendPinCode(args.sessionId) + 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("resendPinCode", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_resendPinCodeBySMS(self, seqid, iprot, oprot): + args = resendPinCodeBySMS_args() + args.read(iprot) + iprot.readMessageEnd() + result = resendPinCodeBySMS_result() + try: + self._handler.resendPinCodeBySMS(args.sessionId) + 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("resendPinCodeBySMS", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_sendChatChecked(self, seqid, iprot, oprot): + args = sendChatChecked_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendChatChecked_result() + try: + self._handler.sendChatChecked(args.seq, args.consumer, args.lastMessageId) + 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("sendChatChecked", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_sendMessageAwaitCommit(self, seqid, iprot, oprot): + args = sendMessageAwaitCommit_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendMessageAwaitCommit_result() + try: + result.success = self._handler.sendMessageAwaitCommit(args.seq, 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("sendMessageAwaitCommit", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_sendChatRemoved(self, seqid, iprot, oprot): + args = sendChatRemoved_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendChatRemoved_result() + try: + self._handler.sendChatRemoved(args.seq, args.consumer, args.lastMessageId) + 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("sendChatRemoved", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_sendContentPreviewUpdated(self, seqid, iprot, oprot): + args = sendContentPreviewUpdated_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendContentPreviewUpdated_result() + try: + result.success = self._handler.sendContentPreviewUpdated(args.esq, args.messageId, args.receiverMids) + 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("sendContentPreviewUpdated", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_sendContentReceipt(self, seqid, iprot, oprot): + args = sendContentReceipt_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendContentReceipt_result() + try: + self._handler.sendContentReceipt(args.seq, args.consumer, 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("sendContentReceipt", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_sendDummyPush(self, seqid, iprot, oprot): + args = sendDummyPush_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendDummyPush_result() + try: + self._handler.sendDummyPush() + 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("sendDummyPush", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_removeE2EEPublicKey(self, seqid, iprot, oprot): + args = removeE2EEPublicKey_args() + args.read(iprot) + iprot.readMessageEnd() + result = removeE2EEPublicKey_result() + try: + self._handler.removeE2EEPublicKey(args.publicKey) + 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("removeE2EEPublicKey", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_negotiateE2EEPublicKey(self, seqid, iprot, oprot): + args = negotiateE2EEPublicKey_args() + args.read(iprot) + iprot.readMessageEnd() + result = negotiateE2EEPublicKey_result() + try: + result.success = self._handler.negotiateE2EEPublicKey(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("negotiateE2EEPublicKey", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getE2EEPublicKey(self, seqid, iprot, oprot): + args = getE2EEPublicKey_args() + args.read(iprot) + iprot.readMessageEnd() + result = getE2EEPublicKey_result() + try: + result.success = self._handler.getE2EEPublicKey(args.mid, args.version, args.keyId) + 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("getE2EEPublicKey", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_requestE2EEKeyExchange(self, seqid, iprot, oprot): + args = requestE2EEKeyExchange_args() + args.read(iprot) + iprot.readMessageEnd() + result = requestE2EEKeyExchange_result() + try: + self._handler.requestE2EEKeyExchange(args.reqSeq, args.temporalPublicKey, args.publicKey, 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("requestE2EEKeyExchange", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getLastE2EEPublicKeys(self, seqid, iprot, oprot): + args = getLastE2EEPublicKeys_args() + args.read(iprot) + iprot.readMessageEnd() + result = getLastE2EEPublicKeys_result() + try: + result.success = self._handler.getLastE2EEPublicKeys(args.chatMid) + 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("getLastE2EEPublicKeys", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_registerE2EEPublicKey(self, seqid, iprot, oprot): + args = registerE2EEPublicKey_args() + args.read(iprot) + iprot.readMessageEnd() + result = registerE2EEPublicKey_result() + try: + result.success = self._handler.registerE2EEPublicKey(args.reqSeq, args.publicKey) + 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("registerE2EEPublicKey", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getE2EEPublicKeys(self, seqid, iprot, oprot): + args = getE2EEPublicKeys_args() + args.read(iprot) + iprot.readMessageEnd() + result = getE2EEPublicKeys_result() + try: + result.success = self._handler.getE2EEPublicKeys() + 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("getE2EEPublicKeys", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getE2EEPublicKeysEx(self, seqid, iprot, oprot): + args = getE2EEPublicKeysEx_args() + args.read(iprot) + iprot.readMessageEnd() + result = getE2EEPublicKeysEx_result() + try: + result.success = self._handler.getE2EEPublicKeysEx(args.ignoreE2EEStatus) + 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("getE2EEPublicKeysEx", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getReadMessageOpsInBulk(self, seqid, iprot, oprot): + args = getReadMessageOpsInBulk_args() + args.read(iprot) + iprot.readMessageEnd() + result = getReadMessageOpsInBulk_result() + try: + result.success = self._handler.getReadMessageOpsInBulk(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("getReadMessageOpsInBulk", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_sendEvent(self, seqid, iprot, oprot): + args = sendEvent_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendEvent_result() + try: + result.success = self._handler.sendEvent(args.seq, 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("sendEvent", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_sendMessage(self, seqid, iprot, oprot): + args = sendMessage_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendMessage_result() + try: + result.success = self._handler.sendMessage(args.seq, 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("sendMessage", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_sendMessageIgnored(self, seqid, iprot, oprot): + args = sendMessageIgnored_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendMessageIgnored_result() + try: + self._handler.sendMessageIgnored(args.seq, args.consumer, args.messageIds) + 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("sendMessageIgnored", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_sendMessageReceipt(self, seqid, iprot, oprot): + args = sendMessageReceipt_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendMessageReceipt_result() + try: + self._handler.sendMessageReceipt(args.seq, args.consumer, args.messageIds) + 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("sendMessageReceipt", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_findContactByMetaTag(self, seqid, iprot, oprot): + args = findContactByMetaTag_args() + args.read(iprot) + iprot.readMessageEnd() + result = findContactByMetaTag_result() + try: + result.success = self._handler.findContactByMetaTag(args.userid, args.reference) + 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("findContactByMetaTag", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_sendMessageToMyHome(self, seqid, iprot, oprot): + args = sendMessageToMyHome_args() + args.read(iprot) + iprot.readMessageEnd() + result = sendMessageToMyHome_result() + try: + result.success = self._handler.sendMessageToMyHome(args.seq, 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("sendMessageToMyHome", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_setBuddyLocation(self, seqid, iprot, oprot): + args = setBuddyLocation_args() + args.read(iprot) + iprot.readMessageEnd() + result = setBuddyLocation_result() + try: + self._handler.setBuddyLocation(args.mid, args.index, args.location) + 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("setBuddyLocation", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_setIdentityCredential(self, seqid, iprot, oprot): + args = setIdentityCredential_args() + args.read(iprot) + iprot.readMessageEnd() + result = setIdentityCredential_result() + try: + self._handler.setIdentityCredential(args.identifier, args.verifier, args.provider) + 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("setIdentityCredential", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_setNotificationsEnabled(self, seqid, iprot, oprot): + args = setNotificationsEnabled_args() + args.read(iprot) + iprot.readMessageEnd() + result = setNotificationsEnabled_result() + try: + self._handler.setNotificationsEnabled(args.reqSeq, args.type, args.target, args.enablement) + 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("setNotificationsEnabled", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_startUpdateVerification(self, seqid, iprot, oprot): + args = startUpdateVerification_args() + args.read(iprot) + iprot.readMessageEnd() + result = startUpdateVerification_result() + try: + result.success = self._handler.startUpdateVerification(args.region, args.carrier, args.phone, args.udidHash, args.deviceInfo, args.networkCode, args.locale) + 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("startUpdateVerification", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_startVerification(self, seqid, iprot, oprot): + args = startVerification_args() + args.read(iprot) + iprot.readMessageEnd() + result = startVerification_result() + try: + result.success = self._handler.startVerification(args.region, args.carrier, args.phone, args.udidHash, args.deviceInfo, args.networkCode, args.mid, args.locale, args.simInfo, args.oldUdidHash) + 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("startVerification", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateGroupPreferenceAttribute(self, seqid, iprot, oprot): + args = updateGroupPreferenceAttribute_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateGroupPreferenceAttribute_result() + try: + self._handler.updateGroupPreferenceAttribute(args.reqSeq, args.groupMid, args.updatedAttrs) + 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("updateGroupPreferenceAttribute", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_createRoomV2(self, seqid, iprot, oprot): + args = createRoomV2_args() + args.read(iprot) + iprot.readMessageEnd() + result = createRoomV2_result() + try: + result.success = self._handler.createRoomV2(args.reqSeq, args.contactIds) + 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("createRoomV2", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_storeUpdateProfileAttribute(self, seqid, iprot, oprot): + args = storeUpdateProfileAttribute_args() + args.read(iprot) + iprot.readMessageEnd() + result = storeUpdateProfileAttribute_result() + try: + self._handler.storeUpdateProfileAttribute(args.seq, 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("storeUpdateProfileAttribute", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_syncContactBySnsIds(self, seqid, iprot, oprot): + args = syncContactBySnsIds_args() + args.read(iprot) + iprot.readMessageEnd() + result = syncContactBySnsIds_result() + try: + result.success = self._handler.syncContactBySnsIds(args.reqSeq, args.modifications) + 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("syncContactBySnsIds", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_syncContacts(self, seqid, iprot, oprot): + args = syncContacts_args() + args.read(iprot) + iprot.readMessageEnd() + result = syncContacts_result() + try: + result.success = self._handler.syncContacts(args.reqSeq, args.localContacts) + 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("syncContacts", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_trySendMessage(self, seqid, iprot, oprot): + args = trySendMessage_args() + args.read(iprot) + iprot.readMessageEnd() + result = trySendMessage_result() + try: + result.success = self._handler.trySendMessage(args.seq, 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("trySendMessage", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getNextMessagesV2(self, seqid, iprot, oprot): + args = getNextMessagesV2_args() + args.read(iprot) + iprot.readMessageEnd() + result = getNextMessagesV2_result() + try: + result.success = self._handler.getNextMessagesV2(args.messageBoxId, args.startMessageId, args.messagesCount) + 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("getNextMessagesV2", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getMessageBoxCompactWrapUpV2(self, seqid, iprot, oprot): + args = getMessageBoxCompactWrapUpV2_args() + args.read(iprot) + iprot.readMessageEnd() + result = getMessageBoxCompactWrapUpV2_result() + try: + result.success = self._handler.getMessageBoxCompactWrapUpV2(args.messageBoxId) + 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("getMessageBoxCompactWrapUpV2", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_getRecentMessagesV2(self, seqid, iprot, oprot): + args = getRecentMessagesV2_args() + args.read(iprot) + iprot.readMessageEnd() + result = getRecentMessagesV2_result() + try: + result.success = self._handler.getRecentMessagesV2(args.messageBoxId, args.messagesCount) + 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("getRecentMessagesV2", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_validateContactsOnBot(self, seqid, iprot, oprot): + args = validateContactsOnBot_args() + args.read(iprot) + iprot.readMessageEnd() + result = validateContactsOnBot_result() + try: + result.success = self._handler.validateContactsOnBot(args.contacts) + 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("validateContactsOnBot", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_tryFriendRequest(self, seqid, iprot, oprot): + args = tryFriendRequest_args() + args.read(iprot) + iprot.readMessageEnd() + result = tryFriendRequest_result() + try: + self._handler.tryFriendRequest(args.midOrEMid, args.method, args.friendRequestParams) + 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("tryFriendRequest", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_unblockContact(self, seqid, iprot, oprot): + args = unblockContact_args() + args.read(iprot) + iprot.readMessageEnd() + result = unblockContact_result() + try: + self._handler.unblockContact(args.reqSeq, args.id) + 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("unblockContact", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_unblockRecommendation(self, seqid, iprot, oprot): + args = unblockRecommendation_args() + args.read(iprot) + iprot.readMessageEnd() + result = unblockRecommendation_result() + try: + self._handler.unblockRecommendation(args.reqSeq, args.id) + 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("unblockRecommendation", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_unregisterUserAndDevice(self, seqid, iprot, oprot): + args = unregisterUserAndDevice_args() + args.read(iprot) + iprot.readMessageEnd() + result = unregisterUserAndDevice_result() + try: + result.success = self._handler.unregisterUserAndDevice() + 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("unregisterUserAndDevice", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateApnsDeviceToken(self, seqid, iprot, oprot): + args = updateApnsDeviceToken_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateApnsDeviceToken_result() + try: + self._handler.updateApnsDeviceToken(args.apnsDeviceToken) + 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("updateApnsDeviceToken", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateBuddySetting(self, seqid, iprot, oprot): + args = updateBuddySetting_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateBuddySetting_result() + try: + self._handler.updateBuddySetting(args.key, 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("updateBuddySetting", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateC2DMRegistrationId(self, seqid, iprot, oprot): + args = updateC2DMRegistrationId_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateC2DMRegistrationId_result() + try: + self._handler.updateC2DMRegistrationId(args.registrationId) + 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("updateC2DMRegistrationId", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateContactSetting(self, seqid, iprot, oprot): + args = updateContactSetting_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateContactSetting_result() + try: + self._handler.updateContactSetting(args.reqSeq, args.mid, args.flag, 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("updateContactSetting", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateCustomModeSettings(self, seqid, iprot, oprot): + args = updateCustomModeSettings_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateCustomModeSettings_result() + try: + self._handler.updateCustomModeSettings(args.customMode, args.paramMap) + 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("updateCustomModeSettings", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateDeviceInfo(self, seqid, iprot, oprot): + args = updateDeviceInfo_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateDeviceInfo_result() + try: + self._handler.updateDeviceInfo(args.deviceUid, args.deviceInfo) + 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("updateDeviceInfo", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateGroup(self, seqid, iprot, oprot): + args = updateGroup_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateGroup_result() + try: + self._handler.updateGroup(args.reqSeq, args.group) + 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("updateGroup", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateNotificationToken(self, seqid, iprot, oprot): + args = updateNotificationToken_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateNotificationToken_result() + try: + self._handler.updateNotificationToken(args.type, args.token) + 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("updateNotificationToken", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateNotificationTokenWithBytes(self, seqid, iprot, oprot): + args = updateNotificationTokenWithBytes_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateNotificationTokenWithBytes_result() + try: + self._handler.updateNotificationTokenWithBytes(args.type, args.token) + 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("updateNotificationTokenWithBytes", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateProfile(self, seqid, iprot, oprot): + args = updateProfile_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateProfile_result() + try: + self._handler.updateProfile(args.reqSeq, args.profile) + 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("updateProfile", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateProfileAttribute(self, seqid, iprot, oprot): + args = updateProfileAttribute_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateProfileAttribute_result() + try: + self._handler.updateProfileAttribute(args.reqSeq, args.attr, 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("updateProfileAttribute", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateRegion(self, seqid, iprot, oprot): + args = updateRegion_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateRegion_result() + try: + self._handler.updateRegion(args.region) + 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("updateRegion", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateSettings(self, seqid, iprot, oprot): + args = updateSettings_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateSettings_result() + try: + self._handler.updateSettings(args.reqSeq, 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("updateSettings", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateSettings2(self, seqid, iprot, oprot): + args = updateSettings2_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateSettings2_result() + try: + result.success = self._handler.updateSettings2(args.reqSeq, 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("updateSettings2", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateSettingsAttribute(self, seqid, iprot, oprot): + args = updateSettingsAttribute_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateSettingsAttribute_result() + try: + self._handler.updateSettingsAttribute(args.reqSeq, args.attr, 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("updateSettingsAttribute", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_updateSettingsAttributes(self, seqid, iprot, oprot): + args = updateSettingsAttributes_args() + args.read(iprot) + iprot.readMessageEnd() + result = updateSettingsAttributes_result() + try: + result.success = self._handler.updateSettingsAttributes(args.reqSeq, args.attrBitset, 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("updateSettingsAttributes", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_verifyIdentityCredential(self, seqid, iprot, oprot): + args = verifyIdentityCredential_args() + args.read(iprot) + iprot.readMessageEnd() + result = verifyIdentityCredential_result() + try: + self._handler.verifyIdentityCredential(args.identityProvider, args.identifier, args.password) + 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("verifyIdentityCredential", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_verifyIdentityCredentialWithResult(self, seqid, iprot, oprot): + args = verifyIdentityCredentialWithResult_args() + args.read(iprot) + iprot.readMessageEnd() + result = verifyIdentityCredentialWithResult_result() + try: + result.success = self._handler.verifyIdentityCredentialWithResult(args.identityCredential) + 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("verifyIdentityCredentialWithResult", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_verifyPhone(self, seqid, iprot, oprot): + args = verifyPhone_args() + args.read(iprot) + iprot.readMessageEnd() + result = verifyPhone_result() + try: + result.success = self._handler.verifyPhone(args.sessionId, args.pinCode, args.udidHash) + 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("verifyPhone", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_verifyQrcode(self, seqid, iprot, oprot): + args = verifyQrcode_args() + args.read(iprot) + iprot.readMessageEnd() + result = verifyQrcode_result() + try: + result.success = self._handler.verifyQrcode(args.verifier, args.pinCode) + 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("verifyQrcode", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + +# HELPER FUNCTIONS AND STRUCTURES + + +class getChatRoomAnnouncementsBulk_args(object): + """ + Attributes: + - chatRoomMids + """ + + + def __init__(self, chatRoomMids=None,): + self.chatRoomMids = chatRoomMids + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.chatRoomMids = [] + (_etype1351, _size1348) = iprot.readListBegin() + for _i1352 in range(_size1348): + _elem1353 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.chatRoomMids.append(_elem1353) + 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('getChatRoomAnnouncementsBulk_args') + if self.chatRoomMids is not None: + oprot.writeFieldBegin('chatRoomMids', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.chatRoomMids)) + for iter1354 in self.chatRoomMids: + oprot.writeString(iter1354.encode('utf-8') if sys.version_info[0] == 2 else iter1354) + 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(getChatRoomAnnouncementsBulk_args) +getChatRoomAnnouncementsBulk_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.LIST, 'chatRoomMids', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class getChatRoomAnnouncementsBulk_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 = {} + (_ktype1356, _vtype1357, _size1355) = iprot.readMapBegin() + for _i1359 in range(_size1355): + _key1360 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1361 = [] + (_etype1365, _size1362) = iprot.readListBegin() + for _i1366 in range(_size1362): + _elem1367 = ChatRoomAnnouncement() + _elem1367.read(iprot) + _val1361.append(_elem1367) + iprot.readListEnd() + self.success[_key1360] = _val1361 + 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('getChatRoomAnnouncementsBulk_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success)) + for kiter1368, viter1369 in self.success.items(): + oprot.writeString(kiter1368.encode('utf-8') if sys.version_info[0] == 2 else kiter1368) + oprot.writeListBegin(TType.STRUCT, len(viter1369)) + for iter1370 in viter1369: + iter1370.write(oprot) + oprot.writeListEnd() + 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(getChatRoomAnnouncementsBulk_result) +getChatRoomAnnouncementsBulk_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.LIST, (TType.STRUCT, [ChatRoomAnnouncement, None], False), False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getChatRoomAnnouncements_args(object): + """ + Attributes: + - chatRoomMid + """ + + + def __init__(self, chatRoomMid=None,): + self.chatRoomMid = chatRoomMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.chatRoomMid = 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('getChatRoomAnnouncements_args') + if self.chatRoomMid is not None: + oprot.writeFieldBegin('chatRoomMid', TType.STRING, 2) + oprot.writeString(self.chatRoomMid.encode('utf-8') if sys.version_info[0] == 2 else self.chatRoomMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getChatRoomAnnouncements_args) +getChatRoomAnnouncements_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'chatRoomMid', 'UTF8', None, ), # 2 +) + + +class getChatRoomAnnouncements_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 = [] + (_etype1374, _size1371) = iprot.readListBegin() + for _i1375 in range(_size1371): + _elem1376 = ChatRoomAnnouncement() + _elem1376.read(iprot) + self.success.append(_elem1376) + 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('getChatRoomAnnouncements_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1377 in self.success: + iter1377.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(getChatRoomAnnouncements_result) +getChatRoomAnnouncements_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [ChatRoomAnnouncement, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class createChatRoomAnnouncement_args(object): + """ + Attributes: + - reqSeq + - chatRoomMid + - type + - contents + """ + + + def __init__(self, reqSeq=None, chatRoomMid=None, type=None, contents=None,): + self.reqSeq = reqSeq + self.chatRoomMid = chatRoomMid + self.type = type + self.contents = contents + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.chatRoomMid = 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.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.contents = ChatRoomAnnouncementContents() + self.contents.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('createChatRoomAnnouncement_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.chatRoomMid is not None: + oprot.writeFieldBegin('chatRoomMid', TType.STRING, 2) + oprot.writeString(self.chatRoomMid.encode('utf-8') if sys.version_info[0] == 2 else self.chatRoomMid) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 3) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.contents is not None: + oprot.writeFieldBegin('contents', TType.STRUCT, 4) + self.contents.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(createChatRoomAnnouncement_args) +createChatRoomAnnouncement_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'chatRoomMid', 'UTF8', None, ), # 2 + (3, TType.I32, 'type', None, None, ), # 3 + (4, TType.STRUCT, 'contents', [ChatRoomAnnouncementContents, None], None, ), # 4 +) + + +class createChatRoomAnnouncement_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 = ChatRoomAnnouncement() + 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('createChatRoomAnnouncement_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(createChatRoomAnnouncement_result) +createChatRoomAnnouncement_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ChatRoomAnnouncement, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class removeChatRoomAnnouncement_args(object): + """ + Attributes: + - reqSeq + - chatRoomMid + - announcementSeq + """ + + + def __init__(self, reqSeq=None, chatRoomMid=None, announcementSeq=None,): + self.reqSeq = reqSeq + self.chatRoomMid = chatRoomMid + self.announcementSeq = announcementSeq + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.chatRoomMid = 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.announcementSeq = 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('removeChatRoomAnnouncement_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.chatRoomMid is not None: + oprot.writeFieldBegin('chatRoomMid', TType.STRING, 2) + oprot.writeString(self.chatRoomMid.encode('utf-8') if sys.version_info[0] == 2 else self.chatRoomMid) + oprot.writeFieldEnd() + if self.announcementSeq is not None: + oprot.writeFieldBegin('announcementSeq', TType.I64, 3) + oprot.writeI64(self.announcementSeq) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(removeChatRoomAnnouncement_args) +removeChatRoomAnnouncement_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'chatRoomMid', 'UTF8', None, ), # 2 + (3, TType.I64, 'announcementSeq', None, None, ), # 3 +) + + +class removeChatRoomAnnouncement_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('removeChatRoomAnnouncement_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(removeChatRoomAnnouncement_result) +removeChatRoomAnnouncement_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class unsendMessage_args(object): + """ + Attributes: + - seq + - messageId + """ + + + def __init__(self, seq=None, messageId=None,): + self.seq = seq + 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.I32: + self.seq = iprot.readI32() + 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('unsendMessage_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + 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(unsendMessage_args) +unsendMessage_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRING, 'messageId', 'UTF8', None, ), # 2 +) + + +class unsendMessage_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('unsendMessage_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(unsendMessage_result) +unsendMessage_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getGroupWithoutMembers_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 == 2: + 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('getGroupWithoutMembers_args') + if self.groupId is not None: + oprot.writeFieldBegin('groupId', TType.STRING, 2) + 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(getGroupWithoutMembers_args) +getGroupWithoutMembers_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'groupId', 'UTF8', None, ), # 2 +) + + +class getGroupWithoutMembers_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('getGroupWithoutMembers_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(getGroupWithoutMembers_result) +getGroupWithoutMembers_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Group, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class requestResendMessage_args(object): + """ + Attributes: + - reqSeq + - senderMid + - messageId + """ + + + def __init__(self, reqSeq=None, senderMid=None, messageId=None,): + self.reqSeq = reqSeq + self.senderMid = senderMid + 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.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.senderMid = 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.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('requestResendMessage_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.senderMid is not None: + oprot.writeFieldBegin('senderMid', TType.STRING, 2) + oprot.writeString(self.senderMid.encode('utf-8') if sys.version_info[0] == 2 else self.senderMid) + oprot.writeFieldEnd() + if self.messageId is not None: + oprot.writeFieldBegin('messageId', TType.STRING, 3) + 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(requestResendMessage_args) +requestResendMessage_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'senderMid', 'UTF8', None, ), # 2 + (3, TType.STRING, 'messageId', 'UTF8', None, ), # 3 +) + + +class requestResendMessage_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('requestResendMessage_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(requestResendMessage_result) +requestResendMessage_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class respondResendMessage_args(object): + """ + Attributes: + - reqSeq + - receiverMid + - originalMessageId + - resendMessage + - errorCode + """ + + + def __init__(self, reqSeq=None, receiverMid=None, originalMessageId=None, resendMessage=None, errorCode=None,): + self.reqSeq = reqSeq + self.receiverMid = receiverMid + self.originalMessageId = originalMessageId + self.resendMessage = resendMessage + self.errorCode = errorCode + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.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.originalMessageId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.resendMessage = Message() + self.resendMessage.read(iprot) + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.errorCode = 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('respondResendMessage_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + 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.originalMessageId is not None: + oprot.writeFieldBegin('originalMessageId', TType.STRING, 3) + oprot.writeString(self.originalMessageId.encode('utf-8') if sys.version_info[0] == 2 else self.originalMessageId) + oprot.writeFieldEnd() + if self.resendMessage is not None: + oprot.writeFieldBegin('resendMessage', TType.STRUCT, 4) + self.resendMessage.write(oprot) + oprot.writeFieldEnd() + if self.errorCode is not None: + oprot.writeFieldBegin('errorCode', TType.I32, 5) + oprot.writeI32(self.errorCode) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(respondResendMessage_args) +respondResendMessage_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'receiverMid', 'UTF8', None, ), # 2 + (3, TType.STRING, 'originalMessageId', 'UTF8', None, ), # 3 + (4, TType.STRUCT, 'resendMessage', [Message, None], None, ), # 4 + (5, TType.I32, 'errorCode', None, None, ), # 5 +) + + +class respondResendMessage_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('respondResendMessage_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(respondResendMessage_result) +respondResendMessage_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class acceptGroupInvitation_args(object): + """ + Attributes: + - reqSeq + - groupId + """ + + + def __init__(self, reqSeq=None, groupId=None,): + self.reqSeq = reqSeq + 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.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + 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('acceptGroupInvitation_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.groupId is not None: + oprot.writeFieldBegin('groupId', TType.STRING, 2) + 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(acceptGroupInvitation_args) +acceptGroupInvitation_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'groupId', 'UTF8', None, ), # 2 +) + + +class acceptGroupInvitation_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('acceptGroupInvitation_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(acceptGroupInvitation_result) +acceptGroupInvitation_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +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 + """ + + + def __init__(self, sessionId=None, ids=None,): + self.sessionId = sessionId + 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.STRING: + self.sessionId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.SET: + self.ids = set() + (_etype1381, _size1378) = iprot.readSetBegin() + for _i1382 in range(_size1378): + _elem1383 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.ids.add(_elem1383) + iprot.readSetEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('acceptProximityMatches_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + if self.ids is not None: + oprot.writeFieldBegin('ids', TType.SET, 3) + oprot.writeSetBegin(TType.STRING, len(self.ids)) + for iter1384 in self.ids: + oprot.writeString(iter1384.encode('utf-8') if sys.version_info[0] == 2 else iter1384) + oprot.writeSetEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(acceptProximityMatches_args) +acceptProximityMatches_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 + (3, TType.SET, 'ids', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class acceptProximityMatches_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('acceptProximityMatches_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(acceptProximityMatches_result) +acceptProximityMatches_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class acquireCallRoute_args(object): + """ + Attributes: + - to + """ + + + def __init__(self, to=None,): + self.to = to + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.to = 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('acquireCallRoute_args') + if self.to is not None: + oprot.writeFieldBegin('to', TType.STRING, 2) + oprot.writeString(self.to.encode('utf-8') if sys.version_info[0] == 2 else self.to) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(acquireCallRoute_args) +acquireCallRoute_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'to', 'UTF8', None, ), # 2 +) + + +class acquireCallRoute_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 = [] + (_etype1388, _size1385) = iprot.readListBegin() + for _i1389 in range(_size1385): + _elem1390 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1390) + 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('acquireCallRoute_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1391 in self.success: + oprot.writeString(iter1391.encode('utf-8') if sys.version_info[0] == 2 else iter1391) + 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(acquireCallRoute_result) +acquireCallRoute_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class acquireCallTicket_args(object): + """ + Attributes: + - to + """ + + + def __init__(self, to=None,): + self.to = to + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.to = 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('acquireCallTicket_args') + if self.to is not None: + oprot.writeFieldBegin('to', TType.STRING, 2) + oprot.writeString(self.to.encode('utf-8') if sys.version_info[0] == 2 else self.to) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(acquireCallTicket_args) +acquireCallTicket_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'to', 'UTF8', None, ), # 2 +) + + +class acquireCallTicket_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('acquireCallTicket_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(acquireCallTicket_result) +acquireCallTicket_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class acquireEncryptedAccessToken_args(object): + """ + Attributes: + - featureType + """ + + + def __init__(self, featureType=None,): + self.featureType = featureType + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.featureType = 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('acquireEncryptedAccessToken_args') + if self.featureType is not None: + oprot.writeFieldBegin('featureType', TType.I32, 2) + oprot.writeI32(self.featureType) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(acquireEncryptedAccessToken_args) +acquireEncryptedAccessToken_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'featureType', None, None, ), # 2 +) + + +class acquireEncryptedAccessToken_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('acquireEncryptedAccessToken_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(acquireEncryptedAccessToken_result) +acquireEncryptedAccessToken_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class addSnsId_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('addSnsId_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(addSnsId_args) +addSnsId_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'snsIdType', None, None, ), # 2 + (3, TType.STRING, 'snsAccessToken', 'UTF8', None, ), # 3 +) + + +class addSnsId_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('addSnsId_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(addSnsId_result) +addSnsId_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class blockContact_args(object): + """ + Attributes: + - reqSeq + - id + """ + + + def __init__(self, reqSeq=None, id=None,): + self.reqSeq = reqSeq + self.id = id + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.id = 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('blockContact_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.id is not None: + oprot.writeFieldBegin('id', TType.STRING, 2) + oprot.writeString(self.id.encode('utf-8') if sys.version_info[0] == 2 else self.id) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(blockContact_args) +blockContact_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'id', 'UTF8', None, ), # 2 +) + + +class blockContact_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('blockContact_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(blockContact_result) +blockContact_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class blockRecommendation_args(object): + """ + Attributes: + - reqSeq + - id + """ + + + def __init__(self, reqSeq=None, id=None,): + self.reqSeq = reqSeq + self.id = id + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.id = 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('blockRecommendation_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.id is not None: + oprot.writeFieldBegin('id', TType.STRING, 2) + oprot.writeString(self.id.encode('utf-8') if sys.version_info[0] == 2 else self.id) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(blockRecommendation_args) +blockRecommendation_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'id', 'UTF8', None, ), # 2 +) + + +class blockRecommendation_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('blockRecommendation_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(blockRecommendation_result) +blockRecommendation_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class cancelGroupInvitation_args(object): + """ + Attributes: + - reqSeq + - groupId + - contactIds + """ + + + def __init__(self, reqSeq=None, groupId=None, contactIds=None,): + self.reqSeq = reqSeq + self.groupId = groupId + self.contactIds = contactIds + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.groupId = 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.contactIds = [] + (_etype1395, _size1392) = iprot.readListBegin() + for _i1396 in range(_size1392): + _elem1397 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.contactIds.append(_elem1397) + 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('cancelGroupInvitation_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.groupId is not None: + oprot.writeFieldBegin('groupId', TType.STRING, 2) + oprot.writeString(self.groupId.encode('utf-8') if sys.version_info[0] == 2 else self.groupId) + oprot.writeFieldEnd() + if self.contactIds is not None: + oprot.writeFieldBegin('contactIds', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.contactIds)) + for iter1398 in self.contactIds: + oprot.writeString(iter1398.encode('utf-8') if sys.version_info[0] == 2 else iter1398) + 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(cancelGroupInvitation_args) +cancelGroupInvitation_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'groupId', 'UTF8', None, ), # 2 + (3, TType.LIST, 'contactIds', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class cancelGroupInvitation_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('cancelGroupInvitation_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(cancelGroupInvitation_result) +cancelGroupInvitation_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class changeVerificationMethod_args(object): + """ + Attributes: + - sessionId + - method + """ + + + def __init__(self, sessionId=None, method=None,): + self.sessionId = sessionId + self.method = method + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.sessionId = 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.method = 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('changeVerificationMethod_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + if self.method is not None: + oprot.writeFieldBegin('method', TType.I32, 3) + oprot.writeI32(self.method) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(changeVerificationMethod_args) +changeVerificationMethod_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 + (3, TType.I32, 'method', None, None, ), # 3 +) + + +class changeVerificationMethod_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 = VerificationSessionData() + 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('changeVerificationMethod_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(changeVerificationMethod_result) +changeVerificationMethod_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [VerificationSessionData, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class clearIdentityCredential_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('clearIdentityCredential_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(clearIdentityCredential_args) +clearIdentityCredential_args.thrift_spec = ( +) + + +class clearIdentityCredential_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('clearIdentityCredential_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(clearIdentityCredential_result) +clearIdentityCredential_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class clearMessageBox_args(object): + """ + Attributes: + - channelId + - messageBoxId + """ + + + def __init__(self, channelId=None, messageBoxId=None,): + self.channelId = channelId + self.messageBoxId = messageBoxId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.messageBoxId = 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('clearMessageBox_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.messageBoxId is not None: + oprot.writeFieldBegin('messageBoxId', TType.STRING, 3) + oprot.writeString(self.messageBoxId.encode('utf-8') if sys.version_info[0] == 2 else self.messageBoxId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(clearMessageBox_args) +clearMessageBox_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'channelId', 'UTF8', None, ), # 2 + (3, TType.STRING, 'messageBoxId', 'UTF8', None, ), # 3 +) + + +class clearMessageBox_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('clearMessageBox_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(clearMessageBox_result) +clearMessageBox_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class closeProximityMatch_args(object): + """ + Attributes: + - sessionId + """ + + + def __init__(self, sessionId=None,): + self.sessionId = sessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.sessionId = 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('closeProximityMatch_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(closeProximityMatch_args) +closeProximityMatch_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 +) + + +class closeProximityMatch_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('closeProximityMatch_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(closeProximityMatch_result) +closeProximityMatch_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class commitSendMessage_args(object): + """ + Attributes: + - seq + - messageId + - receiverMids + """ + + + def __init__(self, seq=None, messageId=None, receiverMids=None,): + self.seq = seq + self.messageId = messageId + self.receiverMids = receiverMids + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.seq = iprot.readI32() + 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) + elif fid == 3: + if ftype == TType.LIST: + self.receiverMids = [] + (_etype1402, _size1399) = iprot.readListBegin() + for _i1403 in range(_size1399): + _elem1404 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.receiverMids.append(_elem1404) + 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('commitSendMessage_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + 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() + if self.receiverMids is not None: + oprot.writeFieldBegin('receiverMids', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.receiverMids)) + for iter1405 in self.receiverMids: + oprot.writeString(iter1405.encode('utf-8') if sys.version_info[0] == 2 else iter1405) + 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(commitSendMessage_args) +commitSendMessage_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRING, 'messageId', 'UTF8', None, ), # 2 + (3, TType.LIST, 'receiverMids', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class commitSendMessage_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 = {} + (_ktype1407, _vtype1408, _size1406) = iprot.readMapBegin() + for _i1410 in range(_size1406): + _key1411 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1412 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success[_key1411] = _val1412 + 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('commitSendMessage_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) + for kiter1413, viter1414 in self.success.items(): + oprot.writeString(kiter1413.encode('utf-8') if sys.version_info[0] == 2 else kiter1413) + oprot.writeString(viter1414.encode('utf-8') if sys.version_info[0] == 2 else viter1414) + 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(commitSendMessage_result) +commitSendMessage_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class commitSendMessages_args(object): + """ + Attributes: + - seq + - messageIds + - receiverMids + """ + + + def __init__(self, seq=None, messageIds=None, receiverMids=None,): + self.seq = seq + self.messageIds = messageIds + self.receiverMids = receiverMids + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.messageIds = [] + (_etype1418, _size1415) = iprot.readListBegin() + for _i1419 in range(_size1415): + _elem1420 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.messageIds.append(_elem1420) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.receiverMids = [] + (_etype1424, _size1421) = iprot.readListBegin() + for _i1425 in range(_size1421): + _elem1426 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.receiverMids.append(_elem1426) + 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('commitSendMessages_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + if self.messageIds is not None: + oprot.writeFieldBegin('messageIds', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.messageIds)) + for iter1427 in self.messageIds: + oprot.writeString(iter1427.encode('utf-8') if sys.version_info[0] == 2 else iter1427) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.receiverMids is not None: + oprot.writeFieldBegin('receiverMids', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.receiverMids)) + for iter1428 in self.receiverMids: + oprot.writeString(iter1428.encode('utf-8') if sys.version_info[0] == 2 else iter1428) + 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(commitSendMessages_args) +commitSendMessages_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.LIST, 'messageIds', (TType.STRING, 'UTF8', False), None, ), # 2 + (3, TType.LIST, 'receiverMids', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class commitSendMessages_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 = {} + (_ktype1430, _vtype1431, _size1429) = iprot.readMapBegin() + for _i1433 in range(_size1429): + _key1434 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1435 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success[_key1434] = _val1435 + 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('commitSendMessages_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) + for kiter1436, viter1437 in self.success.items(): + oprot.writeString(kiter1436.encode('utf-8') if sys.version_info[0] == 2 else kiter1436) + oprot.writeString(viter1437.encode('utf-8') if sys.version_info[0] == 2 else viter1437) + 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(commitSendMessages_result) +commitSendMessages_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class commitUpdateProfile_args(object): + """ + Attributes: + - seq + - attrs + - receiverMids + """ + + + def __init__(self, seq=None, attrs=None, receiverMids=None,): + self.seq = seq + self.attrs = attrs + self.receiverMids = receiverMids + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.attrs = [] + (_etype1441, _size1438) = iprot.readListBegin() + for _i1442 in range(_size1438): + _elem1443 = iprot.readI32() + self.attrs.append(_elem1443) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.receiverMids = [] + (_etype1447, _size1444) = iprot.readListBegin() + for _i1448 in range(_size1444): + _elem1449 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.receiverMids.append(_elem1449) + 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('commitUpdateProfile_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + if self.attrs is not None: + oprot.writeFieldBegin('attrs', TType.LIST, 2) + oprot.writeListBegin(TType.I32, len(self.attrs)) + for iter1450 in self.attrs: + oprot.writeI32(iter1450) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.receiverMids is not None: + oprot.writeFieldBegin('receiverMids', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.receiverMids)) + for iter1451 in self.receiverMids: + oprot.writeString(iter1451.encode('utf-8') if sys.version_info[0] == 2 else iter1451) + 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(commitUpdateProfile_args) +commitUpdateProfile_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.LIST, 'attrs', (TType.I32, None, False), None, ), # 2 + (3, TType.LIST, 'receiverMids', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class commitUpdateProfile_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 = {} + (_ktype1453, _vtype1454, _size1452) = iprot.readMapBegin() + for _i1456 in range(_size1452): + _key1457 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1458 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success[_key1457] = _val1458 + 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('commitUpdateProfile_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) + for kiter1459, viter1460 in self.success.items(): + oprot.writeString(kiter1459.encode('utf-8') if sys.version_info[0] == 2 else kiter1459) + oprot.writeString(viter1460.encode('utf-8') if sys.version_info[0] == 2 else viter1460) + 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(commitUpdateProfile_result) +commitUpdateProfile_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class confirmEmail_args(object): + """ + Attributes: + - verifier + - pinCode + """ + + + def __init__(self, verifier=None, pinCode=None,): + self.verifier = verifier + self.pinCode = pinCode + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.verifier = 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.pinCode = 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('confirmEmail_args') + if self.verifier is not None: + oprot.writeFieldBegin('verifier', TType.STRING, 2) + oprot.writeString(self.verifier.encode('utf-8') if sys.version_info[0] == 2 else self.verifier) + oprot.writeFieldEnd() + if self.pinCode is not None: + oprot.writeFieldBegin('pinCode', TType.STRING, 3) + oprot.writeString(self.pinCode.encode('utf-8') if sys.version_info[0] == 2 else self.pinCode) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(confirmEmail_args) +confirmEmail_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'verifier', 'UTF8', None, ), # 2 + (3, TType.STRING, 'pinCode', 'UTF8', None, ), # 3 +) + + +class confirmEmail_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('confirmEmail_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(confirmEmail_result) +confirmEmail_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class createGroup_args(object): + """ + Attributes: + - seq + - name + - contactIds + """ + + + def __init__(self, seq=None, name=None, contactIds=None,): + self.seq = seq + self.name = name + self.contactIds = contactIds + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.name = 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.contactIds = [] + (_etype1464, _size1461) = iprot.readListBegin() + for _i1465 in range(_size1461): + _elem1466 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.contactIds.append(_elem1466) + 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('createGroup_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 2) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + if self.contactIds is not None: + oprot.writeFieldBegin('contactIds', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.contactIds)) + for iter1467 in self.contactIds: + oprot.writeString(iter1467.encode('utf-8') if sys.version_info[0] == 2 else iter1467) + 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(createGroup_args) +createGroup_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRING, 'name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'contactIds', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class createGroup_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('createGroup_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(createGroup_result) +createGroup_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Group, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class createQrcodeBase64Image_args(object): + """ + Attributes: + - url + - characterSet + - imageSize + - x + - y + - width + - height + """ + + + def __init__(self, url=None, characterSet=None, imageSize=None, x=None, y=None, width=None, height=None,): + self.url = url + self.characterSet = characterSet + self.imageSize = imageSize + self.x = x + self.y = y + self.width = width + self.height = height + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.url = 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.characterSet = 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.imageSize = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.x = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.y = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.width = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I32: + self.height = 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('createQrcodeBase64Image_args') + if self.url is not None: + oprot.writeFieldBegin('url', TType.STRING, 2) + oprot.writeString(self.url.encode('utf-8') if sys.version_info[0] == 2 else self.url) + oprot.writeFieldEnd() + if self.characterSet is not None: + oprot.writeFieldBegin('characterSet', TType.STRING, 3) + oprot.writeString(self.characterSet.encode('utf-8') if sys.version_info[0] == 2 else self.characterSet) + oprot.writeFieldEnd() + if self.imageSize is not None: + oprot.writeFieldBegin('imageSize', TType.I32, 4) + oprot.writeI32(self.imageSize) + oprot.writeFieldEnd() + if self.x is not None: + oprot.writeFieldBegin('x', TType.I32, 5) + oprot.writeI32(self.x) + oprot.writeFieldEnd() + if self.y is not None: + oprot.writeFieldBegin('y', TType.I32, 6) + oprot.writeI32(self.y) + oprot.writeFieldEnd() + if self.width is not None: + oprot.writeFieldBegin('width', TType.I32, 7) + oprot.writeI32(self.width) + oprot.writeFieldEnd() + if self.height is not None: + oprot.writeFieldBegin('height', TType.I32, 8) + oprot.writeI32(self.height) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(createQrcodeBase64Image_args) +createQrcodeBase64Image_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'url', 'UTF8', None, ), # 2 + (3, TType.STRING, 'characterSet', 'UTF8', None, ), # 3 + (4, TType.I32, 'imageSize', None, None, ), # 4 + (5, TType.I32, 'x', None, None, ), # 5 + (6, TType.I32, 'y', None, None, ), # 6 + (7, TType.I32, 'width', None, None, ), # 7 + (8, TType.I32, 'height', None, None, ), # 8 +) + + +class createQrcodeBase64Image_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('createQrcodeBase64Image_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(createQrcodeBase64Image_result) +createQrcodeBase64Image_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class createRoom_args(object): + """ + Attributes: + - reqSeq + - contactIds + """ + + + def __init__(self, reqSeq=None, contactIds=None,): + self.reqSeq = reqSeq + self.contactIds = contactIds + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.LIST: + self.contactIds = [] + (_etype1471, _size1468) = iprot.readListBegin() + for _i1472 in range(_size1468): + _elem1473 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.contactIds.append(_elem1473) + 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('createRoom_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.contactIds is not None: + oprot.writeFieldBegin('contactIds', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.contactIds)) + for iter1474 in self.contactIds: + oprot.writeString(iter1474.encode('utf-8') if sys.version_info[0] == 2 else iter1474) + 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(createRoom_args) +createRoom_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.LIST, 'contactIds', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class createRoom_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 = Room() + 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('createRoom_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(createRoom_result) +createRoom_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Room, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class createSession_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('createSession_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(createSession_args) +createSession_args.thrift_spec = ( +) + + +class createSession_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('createSession_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(createSession_result) +createSession_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class fetchAnnouncements_args(object): + """ + Attributes: + - lastFetchedIndex + """ + + + def __init__(self, lastFetchedIndex=None,): + self.lastFetchedIndex = lastFetchedIndex + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.lastFetchedIndex = 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('fetchAnnouncements_args') + if self.lastFetchedIndex is not None: + oprot.writeFieldBegin('lastFetchedIndex', TType.I32, 2) + oprot.writeI32(self.lastFetchedIndex) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(fetchAnnouncements_args) +fetchAnnouncements_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'lastFetchedIndex', None, None, ), # 2 +) + + +class fetchAnnouncements_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 = [] + (_etype1478, _size1475) = iprot.readListBegin() + for _i1479 in range(_size1475): + _elem1480 = Announcement() + _elem1480.read(iprot) + self.success.append(_elem1480) + 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('fetchAnnouncements_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1481 in self.success: + iter1481.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(fetchAnnouncements_result) +fetchAnnouncements_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Announcement, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class fetchMessages_args(object): + """ + Attributes: + - localTs + - count + """ + + + def __init__(self, localTs=None, count=None,): + self.localTs = localTs + 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.localTs = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + 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('fetchMessages_args') + if self.localTs is not None: + oprot.writeFieldBegin('localTs', TType.I64, 2) + oprot.writeI64(self.localTs) + oprot.writeFieldEnd() + if self.count is not None: + oprot.writeFieldBegin('count', TType.I32, 3) + 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(fetchMessages_args) +fetchMessages_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I64, 'localTs', None, None, ), # 2 + (3, TType.I32, 'count', None, None, ), # 3 +) + + +class fetchMessages_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 = [] + (_etype1485, _size1482) = iprot.readListBegin() + for _i1486 in range(_size1482): + _elem1487 = Message() + _elem1487.read(iprot) + self.success.append(_elem1487) + 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('fetchMessages_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1488 in self.success: + iter1488.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(fetchMessages_result) +fetchMessages_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Message, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class fetchOperations_args(object): + """ + Attributes: + - localRev + - count + """ + + + def __init__(self, localRev=None, count=None,): + self.localRev = localRev + 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.localRev = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + 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('fetchOperations_args') + if self.localRev is not None: + oprot.writeFieldBegin('localRev', TType.I64, 2) + oprot.writeI64(self.localRev) + oprot.writeFieldEnd() + if self.count is not None: + oprot.writeFieldBegin('count', TType.I32, 3) + 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(fetchOperations_args) +fetchOperations_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I64, 'localRev', None, None, ), # 2 + (3, TType.I32, 'count', None, None, ), # 3 +) + + +class fetchOperations_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 = [] + (_etype1492, _size1489) = iprot.readListBegin() + for _i1493 in range(_size1489): + _elem1494 = Operation() + _elem1494.read(iprot) + self.success.append(_elem1494) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = ShouldSyncException() + 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('fetchOperations_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1495 in self.success: + iter1495.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(fetchOperations_result) +fetchOperations_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Operation, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [ShouldSyncException, None], None, ), # 1 +) + + +class fetchOps_args(object): + """ + Attributes: + - localRev + - count + - globalRev + - individualRev + """ + + + def __init__(self, localRev=None, count=None, globalRev=None, individualRev=None,): + self.localRev = localRev + self.count = count + self.globalRev = globalRev + self.individualRev = individualRev + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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) + elif fid == 3: + if ftype == TType.I32: + self.count = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.globalRev = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.individualRev = 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('fetchOps_args') + if self.localRev is not None: + oprot.writeFieldBegin('localRev', TType.I64, 2) + oprot.writeI64(self.localRev) + oprot.writeFieldEnd() + if self.count is not None: + oprot.writeFieldBegin('count', TType.I32, 3) + oprot.writeI32(self.count) + oprot.writeFieldEnd() + if self.globalRev is not None: + oprot.writeFieldBegin('globalRev', TType.I64, 4) + oprot.writeI64(self.globalRev) + oprot.writeFieldEnd() + if self.individualRev is not None: + oprot.writeFieldBegin('individualRev', TType.I64, 5) + oprot.writeI64(self.individualRev) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(fetchOps_args) +fetchOps_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I64, 'localRev', None, None, ), # 2 + (3, TType.I32, 'count', None, None, ), # 3 + (4, TType.I64, 'globalRev', None, None, ), # 4 + (5, TType.I64, 'individualRev', None, None, ), # 5 +) + + +class fetchOps_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 = [] + (_etype1499, _size1496) = iprot.readListBegin() + for _i1500 in range(_size1496): + _elem1501 = Operation() + _elem1501.read(iprot) + self.success.append(_elem1501) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.e = ShouldSyncException() + 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('fetchOps_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1502 in self.success: + iter1502.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(fetchOps_result) +fetchOps_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Operation, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [ShouldSyncException, None], None, ), # 1 +) + + +class findAndAddContactsByEmail_args(object): + """ + Attributes: + - reqSeq + - emails + """ + + + def __init__(self, reqSeq=None, emails=None,): + self.reqSeq = reqSeq + self.emails = emails + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.emails = set() + (_etype1506, _size1503) = iprot.readSetBegin() + for _i1507 in range(_size1503): + _elem1508 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.emails.add(_elem1508) + iprot.readSetEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('findAndAddContactsByEmail_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.emails is not None: + oprot.writeFieldBegin('emails', TType.SET, 2) + oprot.writeSetBegin(TType.STRING, len(self.emails)) + for iter1509 in self.emails: + oprot.writeString(iter1509.encode('utf-8') if sys.version_info[0] == 2 else iter1509) + oprot.writeSetEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(findAndAddContactsByEmail_args) +findAndAddContactsByEmail_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.SET, 'emails', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class findAndAddContactsByEmail_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 = {} + (_ktype1511, _vtype1512, _size1510) = iprot.readMapBegin() + for _i1514 in range(_size1510): + _key1515 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1516 = Contact() + _val1516.read(iprot) + self.success[_key1515] = _val1516 + 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('findAndAddContactsByEmail_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) + for kiter1517, viter1518 in self.success.items(): + oprot.writeString(kiter1517.encode('utf-8') if sys.version_info[0] == 2 else kiter1517) + viter1518.write(oprot) + 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(findAndAddContactsByEmail_result) +findAndAddContactsByEmail_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRUCT, [Contact, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class findAndAddContactsByMid_args(object): + """ + Attributes: + - reqSeq + - mid + - type + - reference + """ + + + def __init__(self, reqSeq=None, mid=None, type=None, reference=None,): + self.reqSeq = reqSeq + self.mid = mid + self.type = type + self.reference = reference + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.reference = 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('findAndAddContactsByMid_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + 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() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 3) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.reference is not None: + oprot.writeFieldBegin('reference', TType.STRING, 4) + oprot.writeString(self.reference.encode('utf-8') if sys.version_info[0] == 2 else self.reference) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(findAndAddContactsByMid_args) +findAndAddContactsByMid_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 + (3, TType.I32, 'type', None, None, ), # 3 + (4, TType.STRING, 'reference', 'UTF8', None, ), # 4 +) + + +class findAndAddContactsByMid_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 = {} + (_ktype1520, _vtype1521, _size1519) = iprot.readMapBegin() + for _i1523 in range(_size1519): + _key1524 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1525 = Contact() + _val1525.read(iprot) + self.success[_key1524] = _val1525 + 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('findAndAddContactsByMid_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) + for kiter1526, viter1527 in self.success.items(): + oprot.writeString(kiter1526.encode('utf-8') if sys.version_info[0] == 2 else kiter1526) + viter1527.write(oprot) + 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(findAndAddContactsByMid_result) +findAndAddContactsByMid_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRUCT, [Contact, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class findGroupByTicketV2_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('findGroupByTicketV2_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(findGroupByTicketV2_args) +findGroupByTicketV2_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'ticketId', 'UTF8', None, ), # 1 +) + + +class findGroupByTicketV2_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('findGroupByTicketV2_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(findGroupByTicketV2_result) +findGroupByTicketV2_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Group, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class findAndAddContactsByPhone_args(object): + """ + Attributes: + - reqSeq + - phones + """ + + + def __init__(self, reqSeq=None, phones=None,): + self.reqSeq = reqSeq + self.phones = phones + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.phones = set() + (_etype1531, _size1528) = iprot.readSetBegin() + for _i1532 in range(_size1528): + _elem1533 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.phones.add(_elem1533) + iprot.readSetEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('findAndAddContactsByPhone_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.phones is not None: + oprot.writeFieldBegin('phones', TType.SET, 2) + oprot.writeSetBegin(TType.STRING, len(self.phones)) + for iter1534 in self.phones: + oprot.writeString(iter1534.encode('utf-8') if sys.version_info[0] == 2 else iter1534) + oprot.writeSetEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(findAndAddContactsByPhone_args) +findAndAddContactsByPhone_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.SET, 'phones', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class findAndAddContactsByPhone_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 = {} + (_ktype1536, _vtype1537, _size1535) = iprot.readMapBegin() + for _i1539 in range(_size1535): + _key1540 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1541 = Contact() + _val1541.read(iprot) + self.success[_key1540] = _val1541 + 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('findAndAddContactsByPhone_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) + for kiter1542, viter1543 in self.success.items(): + oprot.writeString(kiter1542.encode('utf-8') if sys.version_info[0] == 2 else kiter1542) + viter1543.write(oprot) + 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(findAndAddContactsByPhone_result) +findAndAddContactsByPhone_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRUCT, [Contact, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getFriendRequests_args(object): + """ + Attributes: + - direction + - lastSeenSeqId + """ + + + def __init__(self, direction=None, lastSeenSeqId=None,): + self.direction = direction + self.lastSeenSeqId = lastSeenSeqId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.direction = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.lastSeenSeqId = 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('getFriendRequests_args') + if self.direction is not None: + oprot.writeFieldBegin('direction', TType.I32, 1) + oprot.writeI32(self.direction) + oprot.writeFieldEnd() + if self.lastSeenSeqId is not None: + oprot.writeFieldBegin('lastSeenSeqId', TType.I64, 2) + oprot.writeI64(self.lastSeenSeqId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getFriendRequests_args) +getFriendRequests_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'direction', None, None, ), # 1 + (2, TType.I64, 'lastSeenSeqId', None, None, ), # 2 +) + + +class getFriendRequests_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 = [] + (_etype1547, _size1544) = iprot.readListBegin() + for _i1548 in range(_size1544): + _elem1549 = FriendRequest() + _elem1549.read(iprot) + self.success.append(_elem1549) + 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('getFriendRequests_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1550 in self.success: + iter1550.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(getFriendRequests_result) +getFriendRequests_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [FriendRequest, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class removeFriendRequest_args(object): + """ + Attributes: + - direction + - midOrEMid + """ + + + def __init__(self, direction=None, midOrEMid=None,): + self.direction = direction + self.midOrEMid = midOrEMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.direction = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.midOrEMid = 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('removeFriendRequest_args') + if self.direction is not None: + oprot.writeFieldBegin('direction', TType.I32, 1) + oprot.writeI32(self.direction) + oprot.writeFieldEnd() + if self.midOrEMid is not None: + oprot.writeFieldBegin('midOrEMid', TType.STRING, 2) + oprot.writeString(self.midOrEMid.encode('utf-8') if sys.version_info[0] == 2 else self.midOrEMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(removeFriendRequest_args) +removeFriendRequest_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'direction', None, None, ), # 1 + (2, TType.STRING, 'midOrEMid', 'UTF8', None, ), # 2 +) + + +class removeFriendRequest_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('removeFriendRequest_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(removeFriendRequest_result) +removeFriendRequest_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class findAndAddContactsByUserid_args(object): + """ + Attributes: + - reqSeq + - userid + """ + + + def __init__(self, reqSeq=None, userid=None,): + self.reqSeq = reqSeq + 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 == 1: + if ftype == TType.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif 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('findAndAddContactsByUserid_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + 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(findAndAddContactsByUserid_args) +findAndAddContactsByUserid_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'userid', 'UTF8', None, ), # 2 +) + + +class findAndAddContactsByUserid_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 = {} + (_ktype1552, _vtype1553, _size1551) = iprot.readMapBegin() + for _i1555 in range(_size1551): + _key1556 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1557 = Contact() + _val1557.read(iprot) + self.success[_key1556] = _val1557 + 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('findAndAddContactsByUserid_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) + for kiter1558, viter1559 in self.success.items(): + oprot.writeString(kiter1558.encode('utf-8') if sys.version_info[0] == 2 else kiter1558) + viter1559.write(oprot) + 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(findAndAddContactsByUserid_result) +findAndAddContactsByUserid_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRUCT, [Contact, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class findContactByUserid_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('findContactByUserid_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(findContactByUserid_args) +findContactByUserid_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'userid', 'UTF8', None, ), # 2 +) + + +class findContactByUserid_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('findContactByUserid_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(findContactByUserid_result) +findContactByUserid_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Contact, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class findContactByUserTicket_args(object): + """ + Attributes: + - ticketIdWithTag + """ + + + def __init__(self, ticketIdWithTag=None,): + self.ticketIdWithTag = ticketIdWithTag + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.ticketIdWithTag = 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('findContactByUserTicket_args') + if self.ticketIdWithTag is not None: + oprot.writeFieldBegin('ticketIdWithTag', TType.STRING, 2) + oprot.writeString(self.ticketIdWithTag.encode('utf-8') if sys.version_info[0] == 2 else self.ticketIdWithTag) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(findContactByUserTicket_args) +findContactByUserTicket_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'ticketIdWithTag', 'UTF8', None, ), # 2 +) + + +class findContactByUserTicket_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('findContactByUserTicket_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(findContactByUserTicket_result) +findContactByUserTicket_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Contact, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class findContactsByEmail_args(object): + """ + Attributes: + - emails + """ + + + def __init__(self, emails=None,): + self.emails = emails + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.emails = set() + (_etype1563, _size1560) = iprot.readSetBegin() + for _i1564 in range(_size1560): + _elem1565 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.emails.add(_elem1565) + iprot.readSetEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('findContactsByEmail_args') + if self.emails is not None: + oprot.writeFieldBegin('emails', TType.SET, 2) + oprot.writeSetBegin(TType.STRING, len(self.emails)) + for iter1566 in self.emails: + oprot.writeString(iter1566.encode('utf-8') if sys.version_info[0] == 2 else iter1566) + oprot.writeSetEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(findContactsByEmail_args) +findContactsByEmail_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.SET, 'emails', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class findContactsByEmail_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 = {} + (_ktype1568, _vtype1569, _size1567) = iprot.readMapBegin() + for _i1571 in range(_size1567): + _key1572 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1573 = Contact() + _val1573.read(iprot) + self.success[_key1572] = _val1573 + 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('findContactsByEmail_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) + for kiter1574, viter1575 in self.success.items(): + oprot.writeString(kiter1574.encode('utf-8') if sys.version_info[0] == 2 else kiter1574) + viter1575.write(oprot) + 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(findContactsByEmail_result) +findContactsByEmail_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRUCT, [Contact, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class findContactsByPhone_args(object): + """ + Attributes: + - phones + """ + + + def __init__(self, phones=None,): + self.phones = phones + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.phones = set() + (_etype1579, _size1576) = iprot.readSetBegin() + for _i1580 in range(_size1576): + _elem1581 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.phones.add(_elem1581) + iprot.readSetEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('findContactsByPhone_args') + if self.phones is not None: + oprot.writeFieldBegin('phones', TType.SET, 2) + oprot.writeSetBegin(TType.STRING, len(self.phones)) + for iter1582 in self.phones: + oprot.writeString(iter1582.encode('utf-8') if sys.version_info[0] == 2 else iter1582) + oprot.writeSetEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(findContactsByPhone_args) +findContactsByPhone_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.SET, 'phones', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class findContactsByPhone_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 = {} + (_ktype1584, _vtype1585, _size1583) = iprot.readMapBegin() + for _i1587 in range(_size1583): + _key1588 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1589 = Contact() + _val1589.read(iprot) + self.success[_key1588] = _val1589 + 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('findContactsByPhone_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) + for kiter1590, viter1591 in self.success.items(): + oprot.writeString(kiter1590.encode('utf-8') if sys.version_info[0] == 2 else kiter1590) + viter1591.write(oprot) + 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(findContactsByPhone_result) +findContactsByPhone_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRUCT, [Contact, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class findSnsIdUserStatus_args(object): + """ + Attributes: + - snsIdType + - snsAccessToken + - udidHash + """ + + + def __init__(self, snsIdType=None, snsAccessToken=None, udidHash=None,): + self.snsIdType = snsIdType + self.snsAccessToken = snsAccessToken + self.udidHash = udidHash + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.udidHash = 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('findSnsIdUserStatus_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.udidHash is not None: + oprot.writeFieldBegin('udidHash', TType.STRING, 4) + oprot.writeString(self.udidHash.encode('utf-8') if sys.version_info[0] == 2 else self.udidHash) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(findSnsIdUserStatus_args) +findSnsIdUserStatus_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'snsIdType', None, None, ), # 2 + (3, TType.STRING, 'snsAccessToken', 'UTF8', None, ), # 3 + (4, TType.STRING, 'udidHash', 'UTF8', None, ), # 4 +) + + +class findSnsIdUserStatus_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 = SnsIdUserStatus() + 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('findSnsIdUserStatus_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(findSnsIdUserStatus_result) +findSnsIdUserStatus_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [SnsIdUserStatus, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class finishUpdateVerification_args(object): + """ + Attributes: + - sessionId + """ + + + def __init__(self, sessionId=None,): + self.sessionId = sessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.sessionId = 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('finishUpdateVerification_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(finishUpdateVerification_args) +finishUpdateVerification_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 +) + + +class finishUpdateVerification_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('finishUpdateVerification_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(finishUpdateVerification_result) +finishUpdateVerification_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class generateUserTicket_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('generateUserTicket_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(generateUserTicket_args) +generateUserTicket_args.thrift_spec = ( + None, # 0 + None, # 1 + None, # 2 + (3, TType.I64, 'expirationTime', None, None, ), # 3 + (4, TType.I32, 'maxUseCount', None, None, ), # 4 +) + + +class generateUserTicket_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('generateUserTicket_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(generateUserTicket_result) +generateUserTicket_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Ticket, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class destroyMessage_args(object): + """ + Attributes: + - seq + - chatId + - messageId + - sessionId + """ + + + def __init__(self, seq=None, chatId=None, messageId=None, sessionId=None,): + self.seq = seq + self.chatId = chatId + self.messageId = messageId + self.sessionId = sessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif 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) + elif fid == 3: + if ftype == TType.STRING: + self.messageId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BYTE: + self.sessionId = iprot.readByte() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('destroyMessage_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + 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() + if self.messageId is not None: + oprot.writeFieldBegin('messageId', TType.STRING, 3) + oprot.writeString(self.messageId.encode('utf-8') if sys.version_info[0] == 2 else self.messageId) + oprot.writeFieldEnd() + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.BYTE, 4) + oprot.writeByte(self.sessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(destroyMessage_args) +destroyMessage_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRING, 'chatId', 'UTF8', None, ), # 2 + (3, TType.STRING, 'messageId', 'UTF8', None, ), # 3 + (4, TType.BYTE, 'sessionId', None, None, ), # 4 +) + + +class destroyMessage_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('destroyMessage_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(destroyMessage_result) +destroyMessage_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getAcceptedProximityMatches_args(object): + """ + Attributes: + - sessionId + """ + + + def __init__(self, sessionId=None,): + self.sessionId = sessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.sessionId = 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('getAcceptedProximityMatches_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getAcceptedProximityMatches_args) +getAcceptedProximityMatches_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 +) + + +class getAcceptedProximityMatches_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.SET: + self.success = set() + (_etype1595, _size1592) = iprot.readSetBegin() + for _i1596 in range(_size1592): + _elem1597 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.add(_elem1597) + iprot.readSetEnd() + 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('getAcceptedProximityMatches_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.SET, 0) + oprot.writeSetBegin(TType.STRING, len(self.success)) + for iter1598 in self.success: + oprot.writeString(iter1598.encode('utf-8') if sys.version_info[0] == 2 else iter1598) + oprot.writeSetEnd() + 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(getAcceptedProximityMatches_result) +getAcceptedProximityMatches_result.thrift_spec = ( + (0, TType.SET, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getActiveBuddySubscriberIds_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('getActiveBuddySubscriberIds_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(getActiveBuddySubscriberIds_args) +getActiveBuddySubscriberIds_args.thrift_spec = ( +) + + +class getActiveBuddySubscriberIds_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 = [] + (_etype1602, _size1599) = iprot.readListBegin() + for _i1603 in range(_size1599): + _elem1604 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1604) + 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('getActiveBuddySubscriberIds_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1605 in self.success: + oprot.writeString(iter1605.encode('utf-8') if sys.version_info[0] == 2 else iter1605) + 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(getActiveBuddySubscriberIds_result) +getActiveBuddySubscriberIds_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getAllContactIds_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('getAllContactIds_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(getAllContactIds_args) +getAllContactIds_args.thrift_spec = ( +) + + +class getAllContactIds_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 = [] + (_etype1609, _size1606) = iprot.readListBegin() + for _i1610 in range(_size1606): + _elem1611 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1611) + 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('getAllContactIds_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1612 in self.success: + oprot.writeString(iter1612.encode('utf-8') if sys.version_info[0] == 2 else iter1612) + 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(getAllContactIds_result) +getAllContactIds_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getAuthQrcode_args(object): + """ + Attributes: + - keepLoggedIn + - systemName + """ + + + def __init__(self, keepLoggedIn=None, systemName=None,): + self.keepLoggedIn = keepLoggedIn + self.systemName = systemName + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.BOOL: + self.keepLoggedIn = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.systemName = 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('getAuthQrcode_args') + if self.keepLoggedIn is not None: + oprot.writeFieldBegin('keepLoggedIn', TType.BOOL, 2) + oprot.writeBool(self.keepLoggedIn) + oprot.writeFieldEnd() + if self.systemName is not None: + oprot.writeFieldBegin('systemName', TType.STRING, 3) + oprot.writeString(self.systemName.encode('utf-8') if sys.version_info[0] == 2 else self.systemName) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getAuthQrcode_args) +getAuthQrcode_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.BOOL, 'keepLoggedIn', None, None, ), # 2 + (3, TType.STRING, 'systemName', 'UTF8', None, ), # 3 +) + + +class getAuthQrcode_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 = AuthQrcode() + 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('getAuthQrcode_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(getAuthQrcode_result) +getAuthQrcode_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [AuthQrcode, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getBlockedContactIds_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('getBlockedContactIds_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(getBlockedContactIds_args) +getBlockedContactIds_args.thrift_spec = ( +) + + +class getBlockedContactIds_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 = [] + (_etype1616, _size1613) = iprot.readListBegin() + for _i1617 in range(_size1613): + _elem1618 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1618) + 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('getBlockedContactIds_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1619 in self.success: + oprot.writeString(iter1619.encode('utf-8') if sys.version_info[0] == 2 else iter1619) + 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(getBlockedContactIds_result) +getBlockedContactIds_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class registerWithPhoneNumber_args(object): + """ + Attributes: + - sessionId + - migrationPincodeSessionId + """ + + + def __init__(self, sessionId=None, migrationPincodeSessionId=None,): + self.sessionId = sessionId + self.migrationPincodeSessionId = migrationPincodeSessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.sessionId = 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.migrationPincodeSessionId = 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('registerWithPhoneNumber_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + if self.migrationPincodeSessionId is not None: + oprot.writeFieldBegin('migrationPincodeSessionId', TType.STRING, 3) + oprot.writeString(self.migrationPincodeSessionId.encode('utf-8') if sys.version_info[0] == 2 else self.migrationPincodeSessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(registerWithPhoneNumber_args) +registerWithPhoneNumber_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 + (3, TType.STRING, 'migrationPincodeSessionId', 'UTF8', None, ), # 3 +) + + +class registerWithPhoneNumber_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 = RegisterWithPhoneNumberResult() + 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('registerWithPhoneNumber_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(registerWithPhoneNumber_result) +registerWithPhoneNumber_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [RegisterWithPhoneNumberResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class registerWithPhoneNumberAndPassword_args(object): + """ + Attributes: + - sessionId + - keynm + - encrypted + """ + + + def __init__(self, sessionId=None, keynm=None, encrypted=None,): + self.sessionId = sessionId + self.keynm = keynm + self.encrypted = encrypted + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.sessionId = 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.keynm = 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.encrypted = 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('registerWithPhoneNumberAndPassword_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + if self.keynm is not None: + oprot.writeFieldBegin('keynm', TType.STRING, 3) + oprot.writeString(self.keynm.encode('utf-8') if sys.version_info[0] == 2 else self.keynm) + oprot.writeFieldEnd() + if self.encrypted is not None: + oprot.writeFieldBegin('encrypted', TType.STRING, 4) + oprot.writeString(self.encrypted.encode('utf-8') if sys.version_info[0] == 2 else self.encrypted) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(registerWithPhoneNumberAndPassword_args) +registerWithPhoneNumberAndPassword_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 + (3, TType.STRING, 'keynm', 'UTF8', None, ), # 3 + (4, TType.STRING, 'encrypted', 'UTF8', None, ), # 4 +) + + +class registerWithPhoneNumberAndPassword_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 = RegisterWithPhoneNumberResult() + 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('registerWithPhoneNumberAndPassword_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(registerWithPhoneNumberAndPassword_result) +registerWithPhoneNumberAndPassword_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [RegisterWithPhoneNumberResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getAnalyticsInfo_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('getAnalyticsInfo_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(getAnalyticsInfo_args) +getAnalyticsInfo_args.thrift_spec = ( +) + + +class getAnalyticsInfo_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 = AnalyticsInfo() + 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('getAnalyticsInfo_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(getAnalyticsInfo_result) +getAnalyticsInfo_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [AnalyticsInfo, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class reportClientStatistics_args(object): + """ + Attributes: + - reqSeq + - category + - count + """ + + + def __init__(self, reqSeq=None, category=None, count=None,): + self.reqSeq = reqSeq + self.category = category + 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 == 1: + if ftype == TType.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.category = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + 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('reportClientStatistics_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.category is not None: + oprot.writeFieldBegin('category', TType.I32, 2) + oprot.writeI32(self.category) + oprot.writeFieldEnd() + if self.count is not None: + oprot.writeFieldBegin('count', TType.I32, 3) + 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(reportClientStatistics_args) +reportClientStatistics_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.I32, 'category', None, None, ), # 2 + (3, TType.I32, 'count', None, None, ), # 3 +) + + +class reportClientStatistics_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('reportClientStatistics_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(reportClientStatistics_result) +reportClientStatistics_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class verifyPhoneNumberForLogin_args(object): + """ + Attributes: + - verifierFromPhone + - pinCodeForPhone + - verifierFromLogin + """ + + + def __init__(self, verifierFromPhone=None, pinCodeForPhone=None, verifierFromLogin=None,): + self.verifierFromPhone = verifierFromPhone + self.pinCodeForPhone = pinCodeForPhone + self.verifierFromLogin = verifierFromLogin + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.verifierFromPhone = 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.pinCodeForPhone = 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.verifierFromLogin = 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('verifyPhoneNumberForLogin_args') + if self.verifierFromPhone is not None: + oprot.writeFieldBegin('verifierFromPhone', TType.STRING, 2) + oprot.writeString(self.verifierFromPhone.encode('utf-8') if sys.version_info[0] == 2 else self.verifierFromPhone) + oprot.writeFieldEnd() + if self.pinCodeForPhone is not None: + oprot.writeFieldBegin('pinCodeForPhone', TType.STRING, 3) + oprot.writeString(self.pinCodeForPhone.encode('utf-8') if sys.version_info[0] == 2 else self.pinCodeForPhone) + oprot.writeFieldEnd() + if self.verifierFromLogin is not None: + oprot.writeFieldBegin('verifierFromLogin', TType.STRING, 4) + oprot.writeString(self.verifierFromLogin.encode('utf-8') if sys.version_info[0] == 2 else self.verifierFromLogin) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(verifyPhoneNumberForLogin_args) +verifyPhoneNumberForLogin_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'verifierFromPhone', 'UTF8', None, ), # 2 + (3, TType.STRING, 'pinCodeForPhone', 'UTF8', None, ), # 3 + (4, TType.STRING, 'verifierFromLogin', 'UTF8', None, ), # 4 +) + + +class verifyPhoneNumberForLogin_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('verifyPhoneNumberForLogin_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(verifyPhoneNumberForLogin_result) +verifyPhoneNumberForLogin_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class verifyPhoneNumber_args(object): + """ + Attributes: + - sessionId + - pinCode + - udidHash + - migrationPincodeSessionId + - oldUdidHash + """ + + + def __init__(self, sessionId=None, pinCode=None, udidHash=None, migrationPincodeSessionId=None, oldUdidHash=None,): + self.sessionId = sessionId + self.pinCode = pinCode + self.udidHash = udidHash + self.migrationPincodeSessionId = migrationPincodeSessionId + self.oldUdidHash = oldUdidHash + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.sessionId = 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.pinCode = 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.udidHash = 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.migrationPincodeSessionId = 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.oldUdidHash = 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('verifyPhoneNumber_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + if self.pinCode is not None: + oprot.writeFieldBegin('pinCode', TType.STRING, 3) + oprot.writeString(self.pinCode.encode('utf-8') if sys.version_info[0] == 2 else self.pinCode) + oprot.writeFieldEnd() + if self.udidHash is not None: + oprot.writeFieldBegin('udidHash', TType.STRING, 4) + oprot.writeString(self.udidHash.encode('utf-8') if sys.version_info[0] == 2 else self.udidHash) + oprot.writeFieldEnd() + if self.migrationPincodeSessionId is not None: + oprot.writeFieldBegin('migrationPincodeSessionId', TType.STRING, 5) + oprot.writeString(self.migrationPincodeSessionId.encode('utf-8') if sys.version_info[0] == 2 else self.migrationPincodeSessionId) + oprot.writeFieldEnd() + if self.oldUdidHash is not None: + oprot.writeFieldBegin('oldUdidHash', TType.STRING, 6) + oprot.writeString(self.oldUdidHash.encode('utf-8') if sys.version_info[0] == 2 else self.oldUdidHash) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(verifyPhoneNumber_args) +verifyPhoneNumber_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 + (3, TType.STRING, 'pinCode', 'UTF8', None, ), # 3 + (4, TType.STRING, 'udidHash', 'UTF8', None, ), # 4 + (5, TType.STRING, 'migrationPincodeSessionId', 'UTF8', None, ), # 5 + (6, TType.STRING, 'oldUdidHash', 'UTF8', None, ), # 6 +) + + +class verifyPhoneNumber_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 = PhoneVerificationResult() + 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('verifyPhoneNumber_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(verifyPhoneNumber_result) +verifyPhoneNumber_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PhoneVerificationResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getBlockedContactIdsByRange_args(object): + """ + Attributes: + - start + - count + """ + + + def __init__(self, start=None, count=None,): + self.start = start + 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.I32: + self.start = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + 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('getBlockedContactIdsByRange_args') + if self.start is not None: + oprot.writeFieldBegin('start', TType.I32, 2) + oprot.writeI32(self.start) + oprot.writeFieldEnd() + if self.count is not None: + oprot.writeFieldBegin('count', TType.I32, 3) + 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(getBlockedContactIdsByRange_args) +getBlockedContactIdsByRange_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'start', None, None, ), # 2 + (3, TType.I32, 'count', None, None, ), # 3 +) + + +class getBlockedContactIdsByRange_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 = [] + (_etype1623, _size1620) = iprot.readListBegin() + for _i1624 in range(_size1620): + _elem1625 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1625) + 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('getBlockedContactIdsByRange_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1626 in self.success: + oprot.writeString(iter1626.encode('utf-8') if sys.version_info[0] == 2 else iter1626) + 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(getBlockedContactIdsByRange_result) +getBlockedContactIdsByRange_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getBlockedRecommendationIds_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('getBlockedRecommendationIds_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(getBlockedRecommendationIds_args) +getBlockedRecommendationIds_args.thrift_spec = ( +) + + +class getBlockedRecommendationIds_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 = [] + (_etype1630, _size1627) = iprot.readListBegin() + for _i1631 in range(_size1627): + _elem1632 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1632) + 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('getBlockedRecommendationIds_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1633 in self.success: + oprot.writeString(iter1633.encode('utf-8') if sys.version_info[0] == 2 else iter1633) + 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(getBlockedRecommendationIds_result) +getBlockedRecommendationIds_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getBuddyBlockerIds_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('getBuddyBlockerIds_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(getBuddyBlockerIds_args) +getBuddyBlockerIds_args.thrift_spec = ( +) + + +class getBuddyBlockerIds_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 = [] + (_etype1637, _size1634) = iprot.readListBegin() + for _i1638 in range(_size1634): + _elem1639 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1639) + 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('getBuddyBlockerIds_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1640 in self.success: + oprot.writeString(iter1640.encode('utf-8') if sys.version_info[0] == 2 else iter1640) + 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(getBuddyBlockerIds_result) +getBuddyBlockerIds_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getBuddyLocation_args(object): + """ + Attributes: + - mid + - index + """ + + + def __init__(self, mid=None, index=None,): + self.mid = mid + self.index = index + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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) + elif fid == 3: + if ftype == TType.I32: + self.index = 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('getBuddyLocation_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() + if self.index is not None: + oprot.writeFieldBegin('index', TType.I32, 3) + oprot.writeI32(self.index) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getBuddyLocation_args) +getBuddyLocation_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 + (3, TType.I32, 'index', None, None, ), # 3 +) + + +class getBuddyLocation_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 = Geolocation() + 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('getBuddyLocation_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(getBuddyLocation_result) +getBuddyLocation_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Geolocation, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getCompactContactsModifiedSince_args(object): + """ + Attributes: + - timestamp + """ + + + def __init__(self, timestamp=None,): + self.timestamp = timestamp + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.timestamp = 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('getCompactContactsModifiedSince_args') + if self.timestamp is not None: + oprot.writeFieldBegin('timestamp', TType.I64, 2) + oprot.writeI64(self.timestamp) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getCompactContactsModifiedSince_args) +getCompactContactsModifiedSince_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I64, 'timestamp', None, None, ), # 2 +) + + +class getCompactContactsModifiedSince_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 = [] + (_etype1644, _size1641) = iprot.readListBegin() + for _i1645 in range(_size1641): + _elem1646 = CompactContact() + _elem1646.read(iprot) + self.success.append(_elem1646) + 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('getCompactContactsModifiedSince_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1647 in self.success: + iter1647.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(getCompactContactsModifiedSince_result) +getCompactContactsModifiedSince_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [CompactContact, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getCompactGroup_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 == 2: + 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('getCompactGroup_args') + if self.groupId is not None: + oprot.writeFieldBegin('groupId', TType.STRING, 2) + 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(getCompactGroup_args) +getCompactGroup_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'groupId', 'UTF8', None, ), # 2 +) + + +class getCompactGroup_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('getCompactGroup_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(getCompactGroup_result) +getCompactGroup_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Group, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getCompactRoom_args(object): + """ + Attributes: + - roomId + """ + + + def __init__(self, roomId=None,): + self.roomId = roomId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.roomId = 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('getCompactRoom_args') + if self.roomId is not None: + oprot.writeFieldBegin('roomId', TType.STRING, 2) + oprot.writeString(self.roomId.encode('utf-8') if sys.version_info[0] == 2 else self.roomId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getCompactRoom_args) +getCompactRoom_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'roomId', 'UTF8', None, ), # 2 +) + + +class getCompactRoom_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 = Room() + 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('getCompactRoom_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(getCompactRoom_result) +getCompactRoom_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Room, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getContact_args(object): + """ + Attributes: + - id + """ + + + def __init__(self, id=None,): + self.id = id + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.id = 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('getContact_args') + if self.id is not None: + oprot.writeFieldBegin('id', TType.STRING, 2) + oprot.writeString(self.id.encode('utf-8') if sys.version_info[0] == 2 else self.id) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getContact_args) +getContact_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'id', 'UTF8', None, ), # 2 +) + + +class getContact_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('getContact_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(getContact_result) +getContact_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Contact, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getContacts_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 = [] + (_etype1651, _size1648) = iprot.readListBegin() + for _i1652 in range(_size1648): + _elem1653 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.ids.append(_elem1653) + 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('getContacts_args') + if self.ids is not None: + oprot.writeFieldBegin('ids', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.ids)) + for iter1654 in self.ids: + oprot.writeString(iter1654.encode('utf-8') if sys.version_info[0] == 2 else iter1654) + 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(getContacts_args) +getContacts_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.LIST, 'ids', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class getContacts_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 = [] + (_etype1658, _size1655) = iprot.readListBegin() + for _i1659 in range(_size1655): + _elem1660 = Contact() + _elem1660.read(iprot) + self.success.append(_elem1660) + 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('getContacts_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1661 in self.success: + iter1661.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(getContacts_result) +getContacts_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Contact, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getContactWithFriendRequestStatus_args(object): + """ + Attributes: + - id + """ + + + def __init__(self, id=None,): + self.id = id + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.id = 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('getContactWithFriendRequestStatus_args') + if self.id is not None: + oprot.writeFieldBegin('id', TType.STRING, 2) + oprot.writeString(self.id.encode('utf-8') if sys.version_info[0] == 2 else self.id) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getContactWithFriendRequestStatus_args) +getContactWithFriendRequestStatus_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'id', 'UTF8', None, ), # 2 +) + + +class getContactWithFriendRequestStatus_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('getContactWithFriendRequestStatus_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(getContactWithFriendRequestStatus_result) +getContactWithFriendRequestStatus_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Contact, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getCountryWithRequestIp_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('getCountryWithRequestIp_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(getCountryWithRequestIp_args) +getCountryWithRequestIp_args.thrift_spec = ( +) + + +class getCountryWithRequestIp_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('getCountryWithRequestIp_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(getCountryWithRequestIp_result) +getCountryWithRequestIp_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getFavoriteMids_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('getFavoriteMids_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(getFavoriteMids_args) +getFavoriteMids_args.thrift_spec = ( +) + + +class getFavoriteMids_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 = [] + (_etype1665, _size1662) = iprot.readListBegin() + for _i1666 in range(_size1662): + _elem1667 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1667) + 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('getFavoriteMids_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1668 in self.success: + oprot.writeString(iter1668.encode('utf-8') if sys.version_info[0] == 2 else iter1668) + 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(getFavoriteMids_result) +getFavoriteMids_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getGroup_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 == 2: + 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('getGroup_args') + if self.groupId is not None: + oprot.writeFieldBegin('groupId', TType.STRING, 2) + 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(getGroup_args) +getGroup_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'groupId', 'UTF8', None, ), # 2 +) + + +class getGroup_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('getGroup_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(getGroup_result) +getGroup_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Group, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getGroupIdsInvited_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('getGroupIdsInvited_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(getGroupIdsInvited_args) +getGroupIdsInvited_args.thrift_spec = ( +) + + +class getGroupIdsInvited_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 = [] + (_etype1672, _size1669) = iprot.readListBegin() + for _i1673 in range(_size1669): + _elem1674 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1674) + 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('getGroupIdsInvited_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1675 in self.success: + oprot.writeString(iter1675.encode('utf-8') if sys.version_info[0] == 2 else iter1675) + 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(getGroupIdsInvited_result) +getGroupIdsInvited_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getGroupIdsJoined_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('getGroupIdsJoined_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(getGroupIdsJoined_args) +getGroupIdsJoined_args.thrift_spec = ( +) + + +class getGroupIdsJoined_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 = [] + (_etype1679, _size1676) = iprot.readListBegin() + for _i1680 in range(_size1676): + _elem1681 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1681) + 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('getGroupIdsJoined_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1682 in self.success: + oprot.writeString(iter1682.encode('utf-8') if sys.version_info[0] == 2 else iter1682) + 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(getGroupIdsJoined_result) +getGroupIdsJoined_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getGroups_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 == 2: + if ftype == TType.LIST: + self.groupIds = [] + (_etype1686, _size1683) = iprot.readListBegin() + for _i1687 in range(_size1683): + _elem1688 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.groupIds.append(_elem1688) + 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('getGroups_args') + if self.groupIds is not None: + oprot.writeFieldBegin('groupIds', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.groupIds)) + for iter1689 in self.groupIds: + oprot.writeString(iter1689.encode('utf-8') if sys.version_info[0] == 2 else iter1689) + 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(getGroups_args) +getGroups_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.LIST, 'groupIds', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class getGroups_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 = [] + (_etype1693, _size1690) = iprot.readListBegin() + for _i1694 in range(_size1690): + _elem1695 = Group() + _elem1695.read(iprot) + self.success.append(_elem1695) + 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('getGroups_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1696 in self.success: + iter1696.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(getGroups_result) +getGroups_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Group, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getHiddenContactMids_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('getHiddenContactMids_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(getHiddenContactMids_args) +getHiddenContactMids_args.thrift_spec = ( +) + + +class getHiddenContactMids_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 = [] + (_etype1700, _size1697) = iprot.readListBegin() + for _i1701 in range(_size1697): + _elem1702 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1702) + 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('getHiddenContactMids_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1703 in self.success: + oprot.writeString(iter1703.encode('utf-8') if sys.version_info[0] == 2 else iter1703) + 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(getHiddenContactMids_result) +getHiddenContactMids_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getIdentityIdentifier_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('getIdentityIdentifier_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(getIdentityIdentifier_args) +getIdentityIdentifier_args.thrift_spec = ( +) + + +class getIdentityIdentifier_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('getIdentityIdentifier_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(getIdentityIdentifier_result) +getIdentityIdentifier_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getLastAnnouncementIndex_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('getLastAnnouncementIndex_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(getLastAnnouncementIndex_args) +getLastAnnouncementIndex_args.thrift_spec = ( +) + + +class getLastAnnouncementIndex_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('getLastAnnouncementIndex_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(getLastAnnouncementIndex_result) +getLastAnnouncementIndex_result.thrift_spec = ( + (0, TType.I32, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getLastOpRevision_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('getLastOpRevision_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(getLastOpRevision_args) +getLastOpRevision_args.thrift_spec = ( +) + + +class getLastOpRevision_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('getLastOpRevision_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(getLastOpRevision_result) +getLastOpRevision_result.thrift_spec = ( + (0, TType.I64, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getSuggestRevisions_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('getSuggestRevisions_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(getSuggestRevisions_args) +getSuggestRevisions_args.thrift_spec = ( +) + + +class getSuggestRevisions_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 = SuggestDictionaryRevisions() + 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('getSuggestRevisions_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(getSuggestRevisions_result) +getSuggestRevisions_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [SuggestDictionaryRevisions, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getPreviousMessagesV2WithReadCount_args(object): + """ + Attributes: + - messageBoxId + - endMessageId + - messagesCount + """ + + + def __init__(self, messageBoxId=None, endMessageId=None, messagesCount=None,): + self.messageBoxId = messageBoxId + self.endMessageId = endMessageId + self.messagesCount = messagesCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.messageBoxId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.endMessageId = MessageBoxV2MessageId() + self.endMessageId.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.messagesCount = 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('getPreviousMessagesV2WithReadCount_args') + if self.messageBoxId is not None: + oprot.writeFieldBegin('messageBoxId', TType.STRING, 2) + oprot.writeString(self.messageBoxId.encode('utf-8') if sys.version_info[0] == 2 else self.messageBoxId) + oprot.writeFieldEnd() + if self.endMessageId is not None: + oprot.writeFieldBegin('endMessageId', TType.STRUCT, 3) + self.endMessageId.write(oprot) + oprot.writeFieldEnd() + if self.messagesCount is not None: + oprot.writeFieldBegin('messagesCount', TType.I32, 4) + oprot.writeI32(self.messagesCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getPreviousMessagesV2WithReadCount_args) +getPreviousMessagesV2WithReadCount_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'messageBoxId', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'endMessageId', [MessageBoxV2MessageId, None], None, ), # 3 + (4, TType.I32, 'messagesCount', None, None, ), # 4 +) + + +class getPreviousMessagesV2WithReadCount_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 = [] + (_etype1707, _size1704) = iprot.readListBegin() + for _i1708 in range(_size1704): + _elem1709 = Message() + _elem1709.read(iprot) + self.success.append(_elem1709) + 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('getPreviousMessagesV2WithReadCount_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1710 in self.success: + iter1710.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(getPreviousMessagesV2WithReadCount_result) +getPreviousMessagesV2WithReadCount_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Message, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getMessageBox_args(object): + """ + Attributes: + - channelId + - messageBoxId + - lastMessagesCount + """ + + + def __init__(self, channelId=None, messageBoxId=None, lastMessagesCount=None,): + self.channelId = channelId + self.messageBoxId = messageBoxId + self.lastMessagesCount = lastMessagesCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.messageBoxId = 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.lastMessagesCount = 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('getMessageBox_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.messageBoxId is not None: + oprot.writeFieldBegin('messageBoxId', TType.STRING, 3) + oprot.writeString(self.messageBoxId.encode('utf-8') if sys.version_info[0] == 2 else self.messageBoxId) + oprot.writeFieldEnd() + if self.lastMessagesCount is not None: + oprot.writeFieldBegin('lastMessagesCount', TType.I32, 4) + oprot.writeI32(self.lastMessagesCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getMessageBox_args) +getMessageBox_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'channelId', 'UTF8', None, ), # 2 + (3, TType.STRING, 'messageBoxId', 'UTF8', None, ), # 3 + (4, TType.I32, 'lastMessagesCount', None, None, ), # 4 +) + + +class getMessageBox_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 = TMessageBox() + 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('getMessageBox_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(getMessageBox_result) +getMessageBox_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TMessageBox, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getMessageBoxCompactWrapUp_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('getMessageBoxCompactWrapUp_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(getMessageBoxCompactWrapUp_args) +getMessageBoxCompactWrapUp_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 +) + + +class getMessageBoxCompactWrapUp_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 = TMessageBoxWrapUp() + 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('getMessageBoxCompactWrapUp_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(getMessageBoxCompactWrapUp_result) +getMessageBoxCompactWrapUp_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TMessageBoxWrapUp, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getMessageBoxCompactWrapUpList_args(object): + """ + Attributes: + - start + - messageBoxCount + """ + + + def __init__(self, start=None, messageBoxCount=None,): + self.start = start + self.messageBoxCount = messageBoxCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.start = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.messageBoxCount = 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('getMessageBoxCompactWrapUpList_args') + if self.start is not None: + oprot.writeFieldBegin('start', TType.I32, 2) + oprot.writeI32(self.start) + oprot.writeFieldEnd() + if self.messageBoxCount is not None: + oprot.writeFieldBegin('messageBoxCount', TType.I32, 3) + oprot.writeI32(self.messageBoxCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getMessageBoxCompactWrapUpList_args) +getMessageBoxCompactWrapUpList_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'start', None, None, ), # 2 + (3, TType.I32, 'messageBoxCount', None, None, ), # 3 +) + + +class getMessageBoxCompactWrapUpList_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 = TMessageBoxWrapUpResponse() + 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('getMessageBoxCompactWrapUpList_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(getMessageBoxCompactWrapUpList_result) +getMessageBoxCompactWrapUpList_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TMessageBoxWrapUpResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getMessageBoxList_args(object): + """ + Attributes: + - channelId + - lastMessagesCount + """ + + + def __init__(self, channelId=None, lastMessagesCount=None,): + self.channelId = channelId + self.lastMessagesCount = lastMessagesCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I32: + self.lastMessagesCount = 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('getMessageBoxList_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.lastMessagesCount is not None: + oprot.writeFieldBegin('lastMessagesCount', TType.I32, 3) + oprot.writeI32(self.lastMessagesCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getMessageBoxList_args) +getMessageBoxList_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'channelId', 'UTF8', None, ), # 2 + (3, TType.I32, 'lastMessagesCount', None, None, ), # 3 +) + + +class getMessageBoxList_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 = [] + (_etype1714, _size1711) = iprot.readListBegin() + for _i1715 in range(_size1711): + _elem1716 = TMessageBox() + _elem1716.read(iprot) + self.success.append(_elem1716) + 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('getMessageBoxList_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1717 in self.success: + iter1717.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(getMessageBoxList_result) +getMessageBoxList_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [TMessageBox, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getMessageBoxListByStatus_args(object): + """ + Attributes: + - channelId + - lastMessagesCount + - status + """ + + + def __init__(self, channelId=None, lastMessagesCount=None, status=None,): + self.channelId = channelId + self.lastMessagesCount = lastMessagesCount + self.status = status + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I32: + self.lastMessagesCount = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.status = 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('getMessageBoxListByStatus_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.lastMessagesCount is not None: + oprot.writeFieldBegin('lastMessagesCount', TType.I32, 3) + oprot.writeI32(self.lastMessagesCount) + oprot.writeFieldEnd() + if self.status is not None: + oprot.writeFieldBegin('status', TType.I32, 4) + oprot.writeI32(self.status) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getMessageBoxListByStatus_args) +getMessageBoxListByStatus_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'channelId', 'UTF8', None, ), # 2 + (3, TType.I32, 'lastMessagesCount', None, None, ), # 3 + (4, TType.I32, 'status', None, None, ), # 4 +) + + +class getMessageBoxListByStatus_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 = [] + (_etype1721, _size1718) = iprot.readListBegin() + for _i1722 in range(_size1718): + _elem1723 = TMessageBox() + _elem1723.read(iprot) + self.success.append(_elem1723) + 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('getMessageBoxListByStatus_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1724 in self.success: + iter1724.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(getMessageBoxListByStatus_result) +getMessageBoxListByStatus_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [TMessageBox, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getMessageBoxWrapUp_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('getMessageBoxWrapUp_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(getMessageBoxWrapUp_args) +getMessageBoxWrapUp_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 +) + + +class getMessageBoxWrapUp_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 = TMessageBoxWrapUp() + 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('getMessageBoxWrapUp_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(getMessageBoxWrapUp_result) +getMessageBoxWrapUp_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TMessageBoxWrapUp, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getMessageBoxWrapUpList_args(object): + """ + Attributes: + - start + - messageBoxCount + """ + + + def __init__(self, start=None, messageBoxCount=None,): + self.start = start + self.messageBoxCount = messageBoxCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.start = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.messageBoxCount = 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('getMessageBoxWrapUpList_args') + if self.start is not None: + oprot.writeFieldBegin('start', TType.I32, 2) + oprot.writeI32(self.start) + oprot.writeFieldEnd() + if self.messageBoxCount is not None: + oprot.writeFieldBegin('messageBoxCount', TType.I32, 3) + oprot.writeI32(self.messageBoxCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getMessageBoxWrapUpList_args) +getMessageBoxWrapUpList_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'start', None, None, ), # 2 + (3, TType.I32, 'messageBoxCount', None, None, ), # 3 +) + + +class getMessageBoxWrapUpList_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 = TMessageBoxWrapUpResponse() + 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('getMessageBoxWrapUpList_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(getMessageBoxWrapUpList_result) +getMessageBoxWrapUpList_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TMessageBoxWrapUpResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getMessagesBySequenceNumber_args(object): + """ + Attributes: + - channelId + - messageBoxId + - startSeq + - endSeq + """ + + + def __init__(self, channelId=None, messageBoxId=None, startSeq=None, endSeq=None,): + self.channelId = channelId + self.messageBoxId = messageBoxId + self.startSeq = startSeq + self.endSeq = endSeq + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.messageBoxId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.startSeq = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.endSeq = 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('getMessagesBySequenceNumber_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.messageBoxId is not None: + oprot.writeFieldBegin('messageBoxId', TType.STRING, 3) + oprot.writeString(self.messageBoxId.encode('utf-8') if sys.version_info[0] == 2 else self.messageBoxId) + oprot.writeFieldEnd() + if self.startSeq is not None: + oprot.writeFieldBegin('startSeq', TType.I64, 4) + oprot.writeI64(self.startSeq) + oprot.writeFieldEnd() + if self.endSeq is not None: + oprot.writeFieldBegin('endSeq', TType.I64, 5) + oprot.writeI64(self.endSeq) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getMessagesBySequenceNumber_args) +getMessagesBySequenceNumber_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'channelId', 'UTF8', None, ), # 2 + (3, TType.STRING, 'messageBoxId', 'UTF8', None, ), # 3 + (4, TType.I64, 'startSeq', None, None, ), # 4 + (5, TType.I64, 'endSeq', None, None, ), # 5 +) + + +class getMessagesBySequenceNumber_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 = [] + (_etype1728, _size1725) = iprot.readListBegin() + for _i1729 in range(_size1725): + _elem1730 = Message() + _elem1730.read(iprot) + self.success.append(_elem1730) + 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('getMessagesBySequenceNumber_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1731 in self.success: + iter1731.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(getMessagesBySequenceNumber_result) +getMessagesBySequenceNumber_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Message, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getNextMessages_args(object): + """ + Attributes: + - messageBoxId + - startSeq + - messagesCount + """ + + + def __init__(self, messageBoxId=None, startSeq=None, messagesCount=None,): + self.messageBoxId = messageBoxId + self.startSeq = startSeq + self.messagesCount = messagesCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.messageBoxId = 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.startSeq = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.messagesCount = 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('getNextMessages_args') + if self.messageBoxId is not None: + oprot.writeFieldBegin('messageBoxId', TType.STRING, 2) + oprot.writeString(self.messageBoxId.encode('utf-8') if sys.version_info[0] == 2 else self.messageBoxId) + oprot.writeFieldEnd() + if self.startSeq is not None: + oprot.writeFieldBegin('startSeq', TType.I64, 3) + oprot.writeI64(self.startSeq) + oprot.writeFieldEnd() + if self.messagesCount is not None: + oprot.writeFieldBegin('messagesCount', TType.I32, 4) + oprot.writeI32(self.messagesCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getNextMessages_args) +getNextMessages_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'messageBoxId', 'UTF8', None, ), # 2 + (3, TType.I64, 'startSeq', None, None, ), # 3 + (4, TType.I32, 'messagesCount', None, None, ), # 4 +) + + +class getNextMessages_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 = [] + (_etype1735, _size1732) = iprot.readListBegin() + for _i1736 in range(_size1732): + _elem1737 = Message() + _elem1737.read(iprot) + self.success.append(_elem1737) + 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('getNextMessages_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1738 in self.success: + iter1738.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(getNextMessages_result) +getNextMessages_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Message, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getNotificationPolicy_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('getNotificationPolicy_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(getNotificationPolicy_args) +getNotificationPolicy_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'carrier', None, None, ), # 2 +) + + +class getNotificationPolicy_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 = [] + (_etype1742, _size1739) = iprot.readListBegin() + for _i1743 in range(_size1739): + _elem1744 = iprot.readI32() + self.success.append(_elem1744) + 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('getNotificationPolicy_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.I32, len(self.success)) + for iter1745 in self.success: + oprot.writeI32(iter1745) + 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(getNotificationPolicy_result) +getNotificationPolicy_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.I32, None, False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getPreviousMessages_args(object): + """ + Attributes: + - messageBoxId + - endSeq + - messagesCount + """ + + + def __init__(self, messageBoxId=None, endSeq=None, messagesCount=None,): + self.messageBoxId = messageBoxId + self.endSeq = endSeq + self.messagesCount = messagesCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.messageBoxId = 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.endSeq = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.messagesCount = 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('getPreviousMessages_args') + if self.messageBoxId is not None: + oprot.writeFieldBegin('messageBoxId', TType.STRING, 2) + oprot.writeString(self.messageBoxId.encode('utf-8') if sys.version_info[0] == 2 else self.messageBoxId) + oprot.writeFieldEnd() + if self.endSeq is not None: + oprot.writeFieldBegin('endSeq', TType.I64, 3) + oprot.writeI64(self.endSeq) + oprot.writeFieldEnd() + if self.messagesCount is not None: + oprot.writeFieldBegin('messagesCount', TType.I32, 4) + oprot.writeI32(self.messagesCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getPreviousMessages_args) +getPreviousMessages_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'messageBoxId', 'UTF8', None, ), # 2 + (3, TType.I64, 'endSeq', None, None, ), # 3 + (4, TType.I32, 'messagesCount', None, None, ), # 4 +) + + +class getPreviousMessages_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 = [] + (_etype1749, _size1746) = iprot.readListBegin() + for _i1750 in range(_size1746): + _elem1751 = Message() + _elem1751.read(iprot) + self.success.append(_elem1751) + 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('getPreviousMessages_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1752 in self.success: + iter1752.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(getPreviousMessages_result) +getPreviousMessages_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Message, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getProfile_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('getProfile_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(getProfile_args) +getProfile_args.thrift_spec = ( +) + + +class getProfile_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('getProfile_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(getProfile_result) +getProfile_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Profile, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getProximityMatchCandidateList_args(object): + """ + Attributes: + - sessionId + """ + + + def __init__(self, sessionId=None,): + self.sessionId = sessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.sessionId = 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('getProximityMatchCandidateList_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getProximityMatchCandidateList_args) +getProximityMatchCandidateList_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 +) + + +class getProximityMatchCandidateList_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 = ProximityMatchCandidateResult() + 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('getProximityMatchCandidateList_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(getProximityMatchCandidateList_result) +getProximityMatchCandidateList_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ProximityMatchCandidateResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getProximityMatchCandidates_args(object): + """ + Attributes: + - sessionId + """ + + + def __init__(self, sessionId=None,): + self.sessionId = sessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.sessionId = 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('getProximityMatchCandidates_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getProximityMatchCandidates_args) +getProximityMatchCandidates_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 +) + + +class getProximityMatchCandidates_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.SET: + self.success = set() + (_etype1756, _size1753) = iprot.readSetBegin() + for _i1757 in range(_size1753): + _elem1758 = Contact() + _elem1758.read(iprot) + self.success.add(_elem1758) + iprot.readSetEnd() + 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('getProximityMatchCandidates_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.SET, 0) + oprot.writeSetBegin(TType.STRUCT, len(self.success)) + for iter1759 in self.success: + iter1759.write(oprot) + oprot.writeSetEnd() + 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(getProximityMatchCandidates_result) +getProximityMatchCandidates_result.thrift_spec = ( + (0, TType.SET, 'success', (TType.STRUCT, [Contact, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getRecentMessages_args(object): + """ + Attributes: + - messageBoxId + - messagesCount + """ + + + def __init__(self, messageBoxId=None, messagesCount=None,): + self.messageBoxId = messageBoxId + self.messagesCount = messagesCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.messageBoxId = 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.messagesCount = 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('getRecentMessages_args') + if self.messageBoxId is not None: + oprot.writeFieldBegin('messageBoxId', TType.STRING, 2) + oprot.writeString(self.messageBoxId.encode('utf-8') if sys.version_info[0] == 2 else self.messageBoxId) + oprot.writeFieldEnd() + if self.messagesCount is not None: + oprot.writeFieldBegin('messagesCount', TType.I32, 3) + oprot.writeI32(self.messagesCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getRecentMessages_args) +getRecentMessages_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'messageBoxId', 'UTF8', None, ), # 2 + (3, TType.I32, 'messagesCount', None, None, ), # 3 +) + + +class getRecentMessages_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 = [] + (_etype1763, _size1760) = iprot.readListBegin() + for _i1764 in range(_size1760): + _elem1765 = Message() + _elem1765.read(iprot) + self.success.append(_elem1765) + 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('getRecentMessages_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1766 in self.success: + iter1766.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(getRecentMessages_result) +getRecentMessages_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Message, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getRecommendationIds_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('getRecommendationIds_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(getRecommendationIds_args) +getRecommendationIds_args.thrift_spec = ( +) + + +class getRecommendationIds_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 = [] + (_etype1770, _size1767) = iprot.readListBegin() + for _i1771 in range(_size1767): + _elem1772 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1772) + 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('getRecommendationIds_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1773 in self.success: + oprot.writeString(iter1773.encode('utf-8') if sys.version_info[0] == 2 else iter1773) + 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(getRecommendationIds_result) +getRecommendationIds_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getRoom_args(object): + """ + Attributes: + - roomId + """ + + + def __init__(self, roomId=None,): + self.roomId = roomId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.roomId = 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('getRoom_args') + if self.roomId is not None: + oprot.writeFieldBegin('roomId', TType.STRING, 2) + oprot.writeString(self.roomId.encode('utf-8') if sys.version_info[0] == 2 else self.roomId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getRoom_args) +getRoom_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'roomId', 'UTF8', None, ), # 2 +) + + +class getRoom_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 = Room() + 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('getRoom_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(getRoom_result) +getRoom_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Room, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getRSAKeyInfo_args(object): + """ + Attributes: + - provider + """ + + + def __init__(self, provider=None,): + self.provider = provider + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.provider = 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('getRSAKeyInfo_args') + if self.provider is not None: + oprot.writeFieldBegin('provider', TType.I32, 2) + oprot.writeI32(self.provider) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getRSAKeyInfo_args) +getRSAKeyInfo_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'provider', None, None, ), # 2 +) + + +class getRSAKeyInfo_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('getRSAKeyInfo_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(getRSAKeyInfo_result) +getRSAKeyInfo_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [RSAKey, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getServerTime_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('getServerTime_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(getServerTime_args) +getServerTime_args.thrift_spec = ( +) + + +class getServerTime_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('getServerTime_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(getServerTime_result) +getServerTime_result.thrift_spec = ( + (0, TType.I64, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getSessions_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('getSessions_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(getSessions_args) +getSessions_args.thrift_spec = ( +) + + +class getSessions_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 = [] + (_etype1777, _size1774) = iprot.readListBegin() + for _i1778 in range(_size1774): + _elem1779 = LoginSession() + _elem1779.read(iprot) + self.success.append(_elem1779) + 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('getSessions_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1780 in self.success: + iter1780.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(getSessions_result) +getSessions_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [LoginSession, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getSettings_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('getSettings_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(getSettings_args) +getSettings_args.thrift_spec = ( +) + + +class getSettings_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 = Settings() + 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('getSettings_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(getSettings_result) +getSettings_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Settings, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getGroupsV2_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 == 2: + if ftype == TType.LIST: + self.groupIds = [] + (_etype1784, _size1781) = iprot.readListBegin() + for _i1785 in range(_size1781): + _elem1786 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.groupIds.append(_elem1786) + 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('getGroupsV2_args') + if self.groupIds is not None: + oprot.writeFieldBegin('groupIds', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.groupIds)) + for iter1787 in self.groupIds: + oprot.writeString(iter1787.encode('utf-8') if sys.version_info[0] == 2 else iter1787) + 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(getGroupsV2_args) +getGroupsV2_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.LIST, 'groupIds', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class getGroupsV2_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 = [] + (_etype1791, _size1788) = iprot.readListBegin() + for _i1792 in range(_size1788): + _elem1793 = Group() + _elem1793.read(iprot) + self.success.append(_elem1793) + 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('getGroupsV2_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1794 in self.success: + iter1794.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(getGroupsV2_result) +getGroupsV2_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Group, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getSettingsAttributes_args(object): + """ + Attributes: + - attrBitset + """ + + + def __init__(self, attrBitset=None,): + self.attrBitset = attrBitset + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.attrBitset = 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('getSettingsAttributes_args') + if self.attrBitset is not None: + oprot.writeFieldBegin('attrBitset', TType.I32, 2) + oprot.writeI32(self.attrBitset) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getSettingsAttributes_args) +getSettingsAttributes_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'attrBitset', None, None, ), # 2 +) + + +class getSettingsAttributes_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 = Settings() + 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('getSettingsAttributes_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(getSettingsAttributes_result) +getSettingsAttributes_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Settings, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getSystemConfiguration_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('getSystemConfiguration_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(getSystemConfiguration_args) +getSystemConfiguration_args.thrift_spec = ( +) + + +class getSystemConfiguration_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 = SystemConfiguration() + 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('getSystemConfiguration_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(getSystemConfiguration_result) +getSystemConfiguration_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [SystemConfiguration, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getUserTicket_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('getUserTicket_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(getUserTicket_args) +getUserTicket_args.thrift_spec = ( +) + + +class getUserTicket_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('getUserTicket_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(getUserTicket_result) +getUserTicket_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Ticket, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getWapInvitation_args(object): + """ + Attributes: + - invitationHash + """ + + + def __init__(self, invitationHash=None,): + self.invitationHash = invitationHash + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.invitationHash = 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('getWapInvitation_args') + if self.invitationHash is not None: + oprot.writeFieldBegin('invitationHash', TType.STRING, 2) + oprot.writeString(self.invitationHash.encode('utf-8') if sys.version_info[0] == 2 else self.invitationHash) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getWapInvitation_args) +getWapInvitation_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'invitationHash', 'UTF8', None, ), # 2 +) + + +class getWapInvitation_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 = WapInvitation() + 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('getWapInvitation_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(getWapInvitation_result) +getWapInvitation_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [WapInvitation, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class invalidateUserTicket_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('invalidateUserTicket_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(invalidateUserTicket_args) +invalidateUserTicket_args.thrift_spec = ( +) + + +class invalidateUserTicket_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('invalidateUserTicket_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(invalidateUserTicket_result) +invalidateUserTicket_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class inviteFriendsBySms_args(object): + """ + Attributes: + - phoneNumberList + """ + + + def __init__(self, phoneNumberList=None,): + self.phoneNumberList = phoneNumberList + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.phoneNumberList = [] + (_etype1798, _size1795) = iprot.readListBegin() + for _i1799 in range(_size1795): + _elem1800 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.phoneNumberList.append(_elem1800) + 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('inviteFriendsBySms_args') + if self.phoneNumberList is not None: + oprot.writeFieldBegin('phoneNumberList', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.phoneNumberList)) + for iter1801 in self.phoneNumberList: + oprot.writeString(iter1801.encode('utf-8') if sys.version_info[0] == 2 else iter1801) + 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(inviteFriendsBySms_args) +inviteFriendsBySms_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.LIST, 'phoneNumberList', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class inviteFriendsBySms_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('inviteFriendsBySms_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(inviteFriendsBySms_result) +inviteFriendsBySms_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class inviteIntoGroup_args(object): + """ + Attributes: + - reqSeq + - groupId + - contactIds + """ + + + def __init__(self, reqSeq=None, groupId=None, contactIds=None,): + self.reqSeq = reqSeq + self.groupId = groupId + self.contactIds = contactIds + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.groupId = 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.contactIds = [] + (_etype1805, _size1802) = iprot.readListBegin() + for _i1806 in range(_size1802): + _elem1807 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.contactIds.append(_elem1807) + 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('inviteIntoGroup_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.groupId is not None: + oprot.writeFieldBegin('groupId', TType.STRING, 2) + oprot.writeString(self.groupId.encode('utf-8') if sys.version_info[0] == 2 else self.groupId) + oprot.writeFieldEnd() + if self.contactIds is not None: + oprot.writeFieldBegin('contactIds', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.contactIds)) + for iter1808 in self.contactIds: + oprot.writeString(iter1808.encode('utf-8') if sys.version_info[0] == 2 else iter1808) + 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(inviteIntoGroup_args) +inviteIntoGroup_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'groupId', 'UTF8', None, ), # 2 + (3, TType.LIST, 'contactIds', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class inviteIntoGroup_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('inviteIntoGroup_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(inviteIntoGroup_result) +inviteIntoGroup_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class inviteIntoRoom_args(object): + """ + Attributes: + - reqSeq + - roomId + - contactIds + """ + + + def __init__(self, reqSeq=None, roomId=None, contactIds=None,): + self.reqSeq = reqSeq + self.roomId = roomId + self.contactIds = contactIds + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.roomId = 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.contactIds = [] + (_etype1812, _size1809) = iprot.readListBegin() + for _i1813 in range(_size1809): + _elem1814 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.contactIds.append(_elem1814) + 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('inviteIntoRoom_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.roomId is not None: + oprot.writeFieldBegin('roomId', TType.STRING, 2) + oprot.writeString(self.roomId.encode('utf-8') if sys.version_info[0] == 2 else self.roomId) + oprot.writeFieldEnd() + if self.contactIds is not None: + oprot.writeFieldBegin('contactIds', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.contactIds)) + for iter1815 in self.contactIds: + oprot.writeString(iter1815.encode('utf-8') if sys.version_info[0] == 2 else iter1815) + 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(inviteIntoRoom_args) +inviteIntoRoom_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'roomId', 'UTF8', None, ), # 2 + (3, TType.LIST, 'contactIds', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class inviteIntoRoom_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('inviteIntoRoom_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(inviteIntoRoom_result) +inviteIntoRoom_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class inviteViaEmail_args(object): + """ + Attributes: + - reqSeq + - email + - name + """ + + + def __init__(self, reqSeq=None, email=None, name=None,): + self.reqSeq = reqSeq + self.email = email + self.name = name + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.email = 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.name = 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('inviteViaEmail_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.email is not None: + oprot.writeFieldBegin('email', TType.STRING, 2) + oprot.writeString(self.email.encode('utf-8') if sys.version_info[0] == 2 else self.email) + oprot.writeFieldEnd() + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 3) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(inviteViaEmail_args) +inviteViaEmail_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'email', 'UTF8', None, ), # 2 + (3, TType.STRING, 'name', 'UTF8', None, ), # 3 +) + + +class inviteViaEmail_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('inviteViaEmail_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(inviteViaEmail_result) +inviteViaEmail_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class isIdentityIdentifierAvailable_args(object): + """ + Attributes: + - provider + - identifier + """ + + + def __init__(self, provider=None, identifier=None,): + self.provider = provider + self.identifier = identifier + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I32: + self.provider = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.identifier = 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('isIdentityIdentifierAvailable_args') + if self.identifier is not None: + oprot.writeFieldBegin('identifier', TType.STRING, 2) + oprot.writeString(self.identifier.encode('utf-8') if sys.version_info[0] == 2 else self.identifier) + oprot.writeFieldEnd() + if self.provider is not None: + oprot.writeFieldBegin('provider', TType.I32, 3) + oprot.writeI32(self.provider) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(isIdentityIdentifierAvailable_args) +isIdentityIdentifierAvailable_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'identifier', 'UTF8', None, ), # 2 + (3, TType.I32, 'provider', None, None, ), # 3 +) + + +class isIdentityIdentifierAvailable_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('isIdentityIdentifierAvailable_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(isIdentityIdentifierAvailable_result) +isIdentityIdentifierAvailable_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class isUseridAvailable_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('isUseridAvailable_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(isUseridAvailable_args) +isUseridAvailable_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'userid', 'UTF8', None, ), # 2 +) + + +class isUseridAvailable_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('isUseridAvailable_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(isUseridAvailable_result) +isUseridAvailable_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class kickoutFromGroup_args(object): + """ + Attributes: + - reqSeq + - groupId + - contactIds + """ + + + def __init__(self, reqSeq=None, groupId=None, contactIds=None,): + self.reqSeq = reqSeq + self.groupId = groupId + self.contactIds = contactIds + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.groupId = 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.contactIds = [] + (_etype1819, _size1816) = iprot.readListBegin() + for _i1820 in range(_size1816): + _elem1821 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.contactIds.append(_elem1821) + 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('kickoutFromGroup_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.groupId is not None: + oprot.writeFieldBegin('groupId', TType.STRING, 2) + oprot.writeString(self.groupId.encode('utf-8') if sys.version_info[0] == 2 else self.groupId) + oprot.writeFieldEnd() + if self.contactIds is not None: + oprot.writeFieldBegin('contactIds', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.contactIds)) + for iter1822 in self.contactIds: + oprot.writeString(iter1822.encode('utf-8') if sys.version_info[0] == 2 else iter1822) + 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(kickoutFromGroup_args) +kickoutFromGroup_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'groupId', 'UTF8', None, ), # 2 + (3, TType.LIST, 'contactIds', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class kickoutFromGroup_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('kickoutFromGroup_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(kickoutFromGroup_result) +kickoutFromGroup_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +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 + """ + + + def __init__(self, reqSeq=None, groupId=None,): + self.reqSeq = reqSeq + 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.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + 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('leaveGroup_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.groupId is not None: + oprot.writeFieldBegin('groupId', TType.STRING, 2) + 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(leaveGroup_args) +leaveGroup_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'groupId', 'UTF8', None, ), # 2 +) + + +class leaveGroup_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('leaveGroup_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(leaveGroup_result) +leaveGroup_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class leaveRoom_args(object): + """ + Attributes: + - reqSeq + - roomId + """ + + + def __init__(self, reqSeq=None, roomId=None,): + self.reqSeq = reqSeq + self.roomId = roomId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.roomId = 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('leaveRoom_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.roomId is not None: + oprot.writeFieldBegin('roomId', TType.STRING, 2) + oprot.writeString(self.roomId.encode('utf-8') if sys.version_info[0] == 2 else self.roomId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(leaveRoom_args) +leaveRoom_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'roomId', 'UTF8', None, ), # 2 +) + + +class leaveRoom_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('leaveRoom_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(leaveRoom_result) +leaveRoom_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class loginWithIdentityCredential_args(object): + """ + Attributes: + - identityProvider + - identifier + - password + - keepLoggedIn + - accessLocation + - systemName + - certificate + """ + + + def __init__(self, identityProvider=None, identifier=None, password=None, keepLoggedIn=None, accessLocation=None, systemName=None, certificate=None,): + self.identityProvider = identityProvider + self.identifier = identifier + self.password = password + self.keepLoggedIn = keepLoggedIn + self.accessLocation = accessLocation + self.systemName = systemName + self.certificate = certificate + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 8: + if ftype == TType.I32: + self.identityProvider = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.identifier = 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.password = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.BOOL: + self.keepLoggedIn = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.accessLocation = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.systemName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.STRING: + self.certificate = 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('loginWithIdentityCredential_args') + if self.identifier is not None: + oprot.writeFieldBegin('identifier', TType.STRING, 3) + oprot.writeString(self.identifier.encode('utf-8') if sys.version_info[0] == 2 else self.identifier) + oprot.writeFieldEnd() + if self.password is not None: + oprot.writeFieldBegin('password', TType.STRING, 4) + oprot.writeString(self.password.encode('utf-8') if sys.version_info[0] == 2 else self.password) + oprot.writeFieldEnd() + if self.keepLoggedIn is not None: + oprot.writeFieldBegin('keepLoggedIn', TType.BOOL, 5) + oprot.writeBool(self.keepLoggedIn) + oprot.writeFieldEnd() + if self.accessLocation is not None: + oprot.writeFieldBegin('accessLocation', TType.STRING, 6) + oprot.writeString(self.accessLocation.encode('utf-8') if sys.version_info[0] == 2 else self.accessLocation) + oprot.writeFieldEnd() + if self.systemName is not None: + oprot.writeFieldBegin('systemName', TType.STRING, 7) + oprot.writeString(self.systemName.encode('utf-8') if sys.version_info[0] == 2 else self.systemName) + oprot.writeFieldEnd() + if self.identityProvider is not None: + oprot.writeFieldBegin('identityProvider', TType.I32, 8) + oprot.writeI32(self.identityProvider) + oprot.writeFieldEnd() + if self.certificate is not None: + oprot.writeFieldBegin('certificate', TType.STRING, 9) + oprot.writeString(self.certificate.encode('utf-8') if sys.version_info[0] == 2 else self.certificate) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(loginWithIdentityCredential_args) +loginWithIdentityCredential_args.thrift_spec = ( + None, # 0 + None, # 1 + None, # 2 + (3, TType.STRING, 'identifier', 'UTF8', None, ), # 3 + (4, TType.STRING, 'password', 'UTF8', None, ), # 4 + (5, TType.BOOL, 'keepLoggedIn', None, None, ), # 5 + (6, TType.STRING, 'accessLocation', 'UTF8', None, ), # 6 + (7, TType.STRING, 'systemName', 'UTF8', None, ), # 7 + (8, TType.I32, 'identityProvider', None, None, ), # 8 + (9, TType.STRING, 'certificate', 'UTF8', None, ), # 9 +) + + +class loginWithIdentityCredential_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('loginWithIdentityCredential_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(loginWithIdentityCredential_result) +loginWithIdentityCredential_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class loginWithIdentityCredentialForCertificate_args(object): + """ + Attributes: + - identityProvider + - identifier + - password + - keepLoggedIn + - accessLocation + - systemName + - certificate + """ + + + def __init__(self, identityProvider=None, identifier=None, password=None, keepLoggedIn=None, accessLocation=None, systemName=None, certificate=None,): + self.identityProvider = identityProvider + self.identifier = identifier + self.password = password + self.keepLoggedIn = keepLoggedIn + self.accessLocation = accessLocation + self.systemName = systemName + self.certificate = certificate + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 8: + if ftype == TType.I32: + self.identityProvider = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.identifier = 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.password = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.BOOL: + self.keepLoggedIn = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.accessLocation = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.systemName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.STRING: + self.certificate = 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('loginWithIdentityCredentialForCertificate_args') + if self.identifier is not None: + oprot.writeFieldBegin('identifier', TType.STRING, 3) + oprot.writeString(self.identifier.encode('utf-8') if sys.version_info[0] == 2 else self.identifier) + oprot.writeFieldEnd() + if self.password is not None: + oprot.writeFieldBegin('password', TType.STRING, 4) + oprot.writeString(self.password.encode('utf-8') if sys.version_info[0] == 2 else self.password) + oprot.writeFieldEnd() + if self.keepLoggedIn is not None: + oprot.writeFieldBegin('keepLoggedIn', TType.BOOL, 5) + oprot.writeBool(self.keepLoggedIn) + oprot.writeFieldEnd() + if self.accessLocation is not None: + oprot.writeFieldBegin('accessLocation', TType.STRING, 6) + oprot.writeString(self.accessLocation.encode('utf-8') if sys.version_info[0] == 2 else self.accessLocation) + oprot.writeFieldEnd() + if self.systemName is not None: + oprot.writeFieldBegin('systemName', TType.STRING, 7) + oprot.writeString(self.systemName.encode('utf-8') if sys.version_info[0] == 2 else self.systemName) + oprot.writeFieldEnd() + if self.identityProvider is not None: + oprot.writeFieldBegin('identityProvider', TType.I32, 8) + oprot.writeI32(self.identityProvider) + oprot.writeFieldEnd() + if self.certificate is not None: + oprot.writeFieldBegin('certificate', TType.STRING, 9) + oprot.writeString(self.certificate.encode('utf-8') if sys.version_info[0] == 2 else self.certificate) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(loginWithIdentityCredentialForCertificate_args) +loginWithIdentityCredentialForCertificate_args.thrift_spec = ( + None, # 0 + None, # 1 + None, # 2 + (3, TType.STRING, 'identifier', 'UTF8', None, ), # 3 + (4, TType.STRING, 'password', 'UTF8', None, ), # 4 + (5, TType.BOOL, 'keepLoggedIn', None, None, ), # 5 + (6, TType.STRING, 'accessLocation', 'UTF8', None, ), # 6 + (7, TType.STRING, 'systemName', 'UTF8', None, ), # 7 + (8, TType.I32, 'identityProvider', None, None, ), # 8 + (9, TType.STRING, 'certificate', 'UTF8', None, ), # 9 +) + + +class loginWithIdentityCredentialForCertificate_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 = LoginResult() + 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('loginWithIdentityCredentialForCertificate_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(loginWithIdentityCredentialForCertificate_result) +loginWithIdentityCredentialForCertificate_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [LoginResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class loginWithVerifier_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 == 3: + 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('loginWithVerifier_args') + if self.verifier is not None: + oprot.writeFieldBegin('verifier', TType.STRING, 3) + 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(loginWithVerifier_args) +loginWithVerifier_args.thrift_spec = ( + None, # 0 + None, # 1 + None, # 2 + (3, TType.STRING, 'verifier', 'UTF8', None, ), # 3 +) + + +class loginWithVerifier_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('loginWithVerifier_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(loginWithVerifier_result) +loginWithVerifier_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class loginWithVerifierForCerificate_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 == 3: + 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('loginWithVerifierForCerificate_args') + if self.verifier is not None: + oprot.writeFieldBegin('verifier', TType.STRING, 3) + 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(loginWithVerifierForCerificate_args) +loginWithVerifierForCerificate_args.thrift_spec = ( + None, # 0 + None, # 1 + None, # 2 + (3, TType.STRING, 'verifier', 'UTF8', None, ), # 3 +) + + +class loginWithVerifierForCerificate_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 = LoginResult() + 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('loginWithVerifierForCerificate_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(loginWithVerifierForCerificate_result) +loginWithVerifierForCerificate_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [LoginResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class loginWithVerifierForCertificate_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 == 3: + 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('loginWithVerifierForCertificate_args') + if self.verifier is not None: + oprot.writeFieldBegin('verifier', TType.STRING, 3) + 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(loginWithVerifierForCertificate_args) +loginWithVerifierForCertificate_args.thrift_spec = ( + None, # 0 + None, # 1 + None, # 2 + (3, TType.STRING, 'verifier', 'UTF8', None, ), # 3 +) + + +class loginWithVerifierForCertificate_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 = LoginResult() + 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('loginWithVerifierForCertificate_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(loginWithVerifierForCertificate_result) +loginWithVerifierForCertificate_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [LoginResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class logout_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('logout_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(logout_args) +logout_args.thrift_spec = ( +) + + +class logout_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('logout_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(logout_result) +logout_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class logoutSession_args(object): + """ + Attributes: + - tokenKey + """ + + + def __init__(self, tokenKey=None,): + self.tokenKey = tokenKey + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.tokenKey = 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('logoutSession_args') + if self.tokenKey is not None: + oprot.writeFieldBegin('tokenKey', TType.STRING, 2) + oprot.writeString(self.tokenKey.encode('utf-8') if sys.version_info[0] == 2 else self.tokenKey) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(logoutSession_args) +logoutSession_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'tokenKey', 'UTF8', None, ), # 2 +) + + +class logoutSession_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('logoutSession_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(logoutSession_result) +logoutSession_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class noop_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('noop_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(noop_args) +noop_args.thrift_spec = ( +) + + +class noop_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('noop_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(noop_result) +noop_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class notifiedRedirect_args(object): + """ + Attributes: + - paramMap + """ + + + def __init__(self, paramMap=None,): + self.paramMap = paramMap + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.paramMap = {} + (_ktype1824, _vtype1825, _size1823) = iprot.readMapBegin() + for _i1827 in range(_size1823): + _key1828 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1829 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.paramMap[_key1828] = _val1829 + 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('notifiedRedirect_args') + if self.paramMap is not None: + oprot.writeFieldBegin('paramMap', TType.MAP, 2) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.paramMap)) + for kiter1830, viter1831 in self.paramMap.items(): + oprot.writeString(kiter1830.encode('utf-8') if sys.version_info[0] == 2 else kiter1830) + oprot.writeString(viter1831.encode('utf-8') if sys.version_info[0] == 2 else viter1831) + 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(notifiedRedirect_args) +notifiedRedirect_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.MAP, 'paramMap', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class notifiedRedirect_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('notifiedRedirect_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(notifiedRedirect_result) +notifiedRedirect_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class notifyBuddyOnAir_args(object): + """ + Attributes: + - seq + - receiverMids + """ + + + def __init__(self, seq=None, receiverMids=None,): + self.seq = seq + self.receiverMids = receiverMids + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.receiverMids = [] + (_etype1835, _size1832) = iprot.readListBegin() + for _i1836 in range(_size1832): + _elem1837 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.receiverMids.append(_elem1837) + 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('notifyBuddyOnAir_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + if self.receiverMids is not None: + oprot.writeFieldBegin('receiverMids', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.receiverMids)) + for iter1838 in self.receiverMids: + oprot.writeString(iter1838.encode('utf-8') if sys.version_info[0] == 2 else iter1838) + 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(notifyBuddyOnAir_args) +notifyBuddyOnAir_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.LIST, 'receiverMids', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class notifyBuddyOnAir_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 = {} + (_ktype1840, _vtype1841, _size1839) = iprot.readMapBegin() + for _i1843 in range(_size1839): + _key1844 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1845 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success[_key1844] = _val1845 + 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('notifyBuddyOnAir_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) + for kiter1846, viter1847 in self.success.items(): + oprot.writeString(kiter1846.encode('utf-8') if sys.version_info[0] == 2 else kiter1846) + oprot.writeString(viter1847.encode('utf-8') if sys.version_info[0] == 2 else viter1847) + 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(notifyBuddyOnAir_result) +notifyBuddyOnAir_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class notifyIndividualEvent_args(object): + """ + Attributes: + - notificationStatus + - receiverMids + """ + + + def __init__(self, notificationStatus=None, receiverMids=None,): + self.notificationStatus = notificationStatus + self.receiverMids = receiverMids + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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) + elif fid == 3: + if ftype == TType.LIST: + self.receiverMids = [] + (_etype1851, _size1848) = iprot.readListBegin() + for _i1852 in range(_size1848): + _elem1853 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.receiverMids.append(_elem1853) + 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('notifyIndividualEvent_args') + if self.notificationStatus is not None: + oprot.writeFieldBegin('notificationStatus', TType.I32, 2) + oprot.writeI32(self.notificationStatus) + oprot.writeFieldEnd() + if self.receiverMids is not None: + oprot.writeFieldBegin('receiverMids', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.receiverMids)) + for iter1854 in self.receiverMids: + oprot.writeString(iter1854.encode('utf-8') if sys.version_info[0] == 2 else iter1854) + 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(notifyIndividualEvent_args) +notifyIndividualEvent_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'notificationStatus', None, None, ), # 2 + (3, TType.LIST, 'receiverMids', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class notifyIndividualEvent_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('notifyIndividualEvent_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(notifyIndividualEvent_result) +notifyIndividualEvent_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class notifyInstalled_args(object): + """ + Attributes: + - udidHash + - applicationTypeWithExtensions + """ + + + def __init__(self, udidHash=None, applicationTypeWithExtensions=None,): + self.udidHash = udidHash + self.applicationTypeWithExtensions = applicationTypeWithExtensions + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.udidHash = 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.applicationTypeWithExtensions = 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('notifyInstalled_args') + if self.udidHash is not None: + oprot.writeFieldBegin('udidHash', TType.STRING, 2) + oprot.writeString(self.udidHash.encode('utf-8') if sys.version_info[0] == 2 else self.udidHash) + oprot.writeFieldEnd() + if self.applicationTypeWithExtensions is not None: + oprot.writeFieldBegin('applicationTypeWithExtensions', TType.STRING, 3) + oprot.writeString(self.applicationTypeWithExtensions.encode('utf-8') if sys.version_info[0] == 2 else self.applicationTypeWithExtensions) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(notifyInstalled_args) +notifyInstalled_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'udidHash', 'UTF8', None, ), # 2 + (3, TType.STRING, 'applicationTypeWithExtensions', 'UTF8', None, ), # 3 +) + + +class notifyInstalled_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('notifyInstalled_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(notifyInstalled_result) +notifyInstalled_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class notifyRegistrationComplete_args(object): + """ + Attributes: + - udidHash + - applicationTypeWithExtensions + """ + + + def __init__(self, udidHash=None, applicationTypeWithExtensions=None,): + self.udidHash = udidHash + self.applicationTypeWithExtensions = applicationTypeWithExtensions + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.udidHash = 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.applicationTypeWithExtensions = 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('notifyRegistrationComplete_args') + if self.udidHash is not None: + oprot.writeFieldBegin('udidHash', TType.STRING, 2) + oprot.writeString(self.udidHash.encode('utf-8') if sys.version_info[0] == 2 else self.udidHash) + oprot.writeFieldEnd() + if self.applicationTypeWithExtensions is not None: + oprot.writeFieldBegin('applicationTypeWithExtensions', TType.STRING, 3) + oprot.writeString(self.applicationTypeWithExtensions.encode('utf-8') if sys.version_info[0] == 2 else self.applicationTypeWithExtensions) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(notifyRegistrationComplete_args) +notifyRegistrationComplete_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'udidHash', 'UTF8', None, ), # 2 + (3, TType.STRING, 'applicationTypeWithExtensions', 'UTF8', None, ), # 3 +) + + +class notifyRegistrationComplete_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('notifyRegistrationComplete_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(notifyRegistrationComplete_result) +notifyRegistrationComplete_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class notifySleep_args(object): + """ + Attributes: + - lastRev + - badge + """ + + + def __init__(self, lastRev=None, badge=None,): + self.lastRev = lastRev + self.badge = badge + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.lastRev = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.badge = 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('notifySleep_args') + if self.lastRev is not None: + oprot.writeFieldBegin('lastRev', TType.I64, 2) + oprot.writeI64(self.lastRev) + oprot.writeFieldEnd() + if self.badge is not None: + oprot.writeFieldBegin('badge', TType.I32, 3) + oprot.writeI32(self.badge) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(notifySleep_args) +notifySleep_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I64, 'lastRev', None, None, ), # 2 + (3, TType.I32, 'badge', None, None, ), # 3 +) + + +class notifySleep_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('notifySleep_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(notifySleep_result) +notifySleep_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class notifyUpdated_args(object): + """ + Attributes: + - lastRev + - deviceInfo + """ + + + def __init__(self, lastRev=None, deviceInfo=None,): + self.lastRev = lastRev + self.deviceInfo = deviceInfo + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.lastRev = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.deviceInfo = DeviceInfo() + self.deviceInfo.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('notifyUpdated_args') + if self.lastRev is not None: + oprot.writeFieldBegin('lastRev', TType.I64, 2) + oprot.writeI64(self.lastRev) + oprot.writeFieldEnd() + if self.deviceInfo is not None: + oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 3) + self.deviceInfo.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(notifyUpdated_args) +notifyUpdated_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I64, 'lastRev', None, None, ), # 2 + (3, TType.STRUCT, 'deviceInfo', [DeviceInfo, None], None, ), # 3 +) + + +class notifyUpdated_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('notifyUpdated_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(notifyUpdated_result) +notifyUpdated_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class openProximityMatch_args(object): + """ + Attributes: + - location + """ + + + def __init__(self, location=None,): + self.location = location + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.location = Location() + self.location.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('openProximityMatch_args') + if self.location is not None: + oprot.writeFieldBegin('location', TType.STRUCT, 2) + self.location.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(openProximityMatch_args) +openProximityMatch_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRUCT, 'location', [Location, None], None, ), # 2 +) + + +class openProximityMatch_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('openProximityMatch_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(openProximityMatch_result) +openProximityMatch_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class registerBuddyUser_args(object): + """ + Attributes: + - buddyId + - registrarPassword + """ + + + def __init__(self, buddyId=None, registrarPassword=None,): + self.buddyId = buddyId + self.registrarPassword = registrarPassword + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.registrarPassword = 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('registerBuddyUser_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.registrarPassword is not None: + oprot.writeFieldBegin('registrarPassword', TType.STRING, 3) + oprot.writeString(self.registrarPassword.encode('utf-8') if sys.version_info[0] == 2 else self.registrarPassword) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(registerBuddyUser_args) +registerBuddyUser_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'buddyId', 'UTF8', None, ), # 2 + (3, TType.STRING, 'registrarPassword', 'UTF8', None, ), # 3 +) + + +class registerBuddyUser_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('registerBuddyUser_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(registerBuddyUser_result) +registerBuddyUser_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class registerBuddyUserid_args(object): + """ + Attributes: + - seq + - userid + """ + + + def __init__(self, seq=None, userid=None,): + self.seq = seq + 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.I32: + self.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + 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('registerBuddyUserid_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 2) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + if self.userid is not None: + oprot.writeFieldBegin('userid', TType.STRING, 3) + 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(registerBuddyUserid_args) +registerBuddyUserid_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'seq', None, None, ), # 2 + (3, TType.STRING, 'userid', 'UTF8', None, ), # 3 +) + + +class registerBuddyUserid_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('registerBuddyUserid_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(registerBuddyUserid_result) +registerBuddyUserid_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class registerDevice_args(object): + """ + Attributes: + - sessionId + """ + + + def __init__(self, sessionId=None,): + self.sessionId = sessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.sessionId = 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('registerDevice_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(registerDevice_args) +registerDevice_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 +) + + +class registerDevice_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('registerDevice_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(registerDevice_result) +registerDevice_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class registerDeviceWithIdentityCredential_args(object): + """ + Attributes: + - sessionId + - provider + - identifier + - verifier + """ + + + def __init__(self, sessionId=None, provider=None, identifier=None, verifier=None,): + self.sessionId = sessionId + self.provider = provider + self.identifier = identifier + 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.sessionId = 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.provider = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.identifier = 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) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('registerDeviceWithIdentityCredential_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + if self.identifier is not None: + oprot.writeFieldBegin('identifier', TType.STRING, 3) + oprot.writeString(self.identifier.encode('utf-8') if sys.version_info[0] == 2 else self.identifier) + 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.provider is not None: + oprot.writeFieldBegin('provider', TType.I32, 5) + oprot.writeI32(self.provider) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(registerDeviceWithIdentityCredential_args) +registerDeviceWithIdentityCredential_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 + (3, TType.STRING, 'identifier', 'UTF8', None, ), # 3 + (4, TType.STRING, 'verifier', 'UTF8', None, ), # 4 + (5, TType.I32, 'provider', None, None, ), # 5 +) + + +class registerDeviceWithIdentityCredential_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('registerDeviceWithIdentityCredential_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(registerDeviceWithIdentityCredential_result) +registerDeviceWithIdentityCredential_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class registerDeviceWithoutPhoneNumber_args(object): + """ + Attributes: + - region + - udidHash + - deviceInfo + """ + + + def __init__(self, region=None, udidHash=None, deviceInfo=None,): + self.region = region + self.udidHash = udidHash + self.deviceInfo = deviceInfo + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.region = 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.udidHash = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.deviceInfo = DeviceInfo() + self.deviceInfo.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('registerDeviceWithoutPhoneNumber_args') + if self.region is not None: + oprot.writeFieldBegin('region', TType.STRING, 2) + oprot.writeString(self.region.encode('utf-8') if sys.version_info[0] == 2 else self.region) + oprot.writeFieldEnd() + if self.udidHash is not None: + oprot.writeFieldBegin('udidHash', TType.STRING, 3) + oprot.writeString(self.udidHash.encode('utf-8') if sys.version_info[0] == 2 else self.udidHash) + oprot.writeFieldEnd() + if self.deviceInfo is not None: + oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 4) + self.deviceInfo.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(registerDeviceWithoutPhoneNumber_args) +registerDeviceWithoutPhoneNumber_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'region', 'UTF8', None, ), # 2 + (3, TType.STRING, 'udidHash', 'UTF8', None, ), # 3 + (4, TType.STRUCT, 'deviceInfo', [DeviceInfo, None], None, ), # 4 +) + + +class registerDeviceWithoutPhoneNumber_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('registerDeviceWithoutPhoneNumber_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(registerDeviceWithoutPhoneNumber_result) +registerDeviceWithoutPhoneNumber_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class registerDeviceWithoutPhoneNumberWithIdentityCredential_args(object): + """ + Attributes: + - region + - udidHash + - deviceInfo + - provider + - identifier + - verifier + - mid + - migrationPincodeSessionId + """ + + + def __init__(self, region=None, udidHash=None, deviceInfo=None, provider=None, identifier=None, verifier=None, mid=None, migrationPincodeSessionId=None,): + self.region = region + self.udidHash = udidHash + self.deviceInfo = deviceInfo + self.provider = provider + self.identifier = identifier + self.verifier = verifier + self.mid = mid + self.migrationPincodeSessionId = migrationPincodeSessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.region = 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.udidHash = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.deviceInfo = DeviceInfo() + self.deviceInfo.read(iprot) + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.provider = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.identifier = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + 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 == 8: + if ftype == TType.STRING: + self.mid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.STRING: + self.migrationPincodeSessionId = 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('registerDeviceWithoutPhoneNumberWithIdentityCredential_args') + if self.region is not None: + oprot.writeFieldBegin('region', TType.STRING, 2) + oprot.writeString(self.region.encode('utf-8') if sys.version_info[0] == 2 else self.region) + oprot.writeFieldEnd() + if self.udidHash is not None: + oprot.writeFieldBegin('udidHash', TType.STRING, 3) + oprot.writeString(self.udidHash.encode('utf-8') if sys.version_info[0] == 2 else self.udidHash) + oprot.writeFieldEnd() + if self.deviceInfo is not None: + oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 4) + self.deviceInfo.write(oprot) + oprot.writeFieldEnd() + if self.provider is not None: + oprot.writeFieldBegin('provider', TType.I32, 5) + oprot.writeI32(self.provider) + oprot.writeFieldEnd() + if self.identifier is not None: + oprot.writeFieldBegin('identifier', TType.STRING, 6) + oprot.writeString(self.identifier.encode('utf-8') if sys.version_info[0] == 2 else self.identifier) + oprot.writeFieldEnd() + if self.verifier is not None: + oprot.writeFieldBegin('verifier', TType.STRING, 7) + oprot.writeString(self.verifier.encode('utf-8') if sys.version_info[0] == 2 else self.verifier) + oprot.writeFieldEnd() + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 8) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.migrationPincodeSessionId is not None: + oprot.writeFieldBegin('migrationPincodeSessionId', TType.STRING, 9) + oprot.writeString(self.migrationPincodeSessionId.encode('utf-8') if sys.version_info[0] == 2 else self.migrationPincodeSessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(registerDeviceWithoutPhoneNumberWithIdentityCredential_args) +registerDeviceWithoutPhoneNumberWithIdentityCredential_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'region', 'UTF8', None, ), # 2 + (3, TType.STRING, 'udidHash', 'UTF8', None, ), # 3 + (4, TType.STRUCT, 'deviceInfo', [DeviceInfo, None], None, ), # 4 + (5, TType.I32, 'provider', None, None, ), # 5 + (6, TType.STRING, 'identifier', 'UTF8', None, ), # 6 + (7, TType.STRING, 'verifier', 'UTF8', None, ), # 7 + (8, TType.STRING, 'mid', 'UTF8', None, ), # 8 + (9, TType.STRING, 'migrationPincodeSessionId', 'UTF8', None, ), # 9 +) + + +class registerDeviceWithoutPhoneNumberWithIdentityCredential_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('registerDeviceWithoutPhoneNumberWithIdentityCredential_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(registerDeviceWithoutPhoneNumberWithIdentityCredential_result) +registerDeviceWithoutPhoneNumberWithIdentityCredential_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class registerUserid_args(object): + """ + Attributes: + - reqSeq + - userid + """ + + + def __init__(self, reqSeq=None, userid=None,): + self.reqSeq = reqSeq + 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 == 1: + if ftype == TType.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif 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('registerUserid_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + 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(registerUserid_args) +registerUserid_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'userid', 'UTF8', None, ), # 2 +) + + +class registerUserid_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('registerUserid_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(registerUserid_result) +registerUserid_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class registerWapDevice_args(object): + """ + Attributes: + - invitationHash + - guidHash + - email + - deviceInfo + """ + + + def __init__(self, invitationHash=None, guidHash=None, email=None, deviceInfo=None,): + self.invitationHash = invitationHash + self.guidHash = guidHash + self.email = email + self.deviceInfo = deviceInfo + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.invitationHash = 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.guidHash = 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.email = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.deviceInfo = DeviceInfo() + self.deviceInfo.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('registerWapDevice_args') + if self.invitationHash is not None: + oprot.writeFieldBegin('invitationHash', TType.STRING, 2) + oprot.writeString(self.invitationHash.encode('utf-8') if sys.version_info[0] == 2 else self.invitationHash) + oprot.writeFieldEnd() + if self.guidHash is not None: + oprot.writeFieldBegin('guidHash', TType.STRING, 3) + oprot.writeString(self.guidHash.encode('utf-8') if sys.version_info[0] == 2 else self.guidHash) + oprot.writeFieldEnd() + if self.email is not None: + oprot.writeFieldBegin('email', TType.STRING, 4) + oprot.writeString(self.email.encode('utf-8') if sys.version_info[0] == 2 else self.email) + oprot.writeFieldEnd() + if self.deviceInfo is not None: + oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 5) + self.deviceInfo.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(registerWapDevice_args) +registerWapDevice_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'invitationHash', 'UTF8', None, ), # 2 + (3, TType.STRING, 'guidHash', 'UTF8', None, ), # 3 + (4, TType.STRING, 'email', 'UTF8', None, ), # 4 + (5, TType.STRUCT, 'deviceInfo', [DeviceInfo, None], None, ), # 5 +) + + +class registerWapDevice_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('registerWapDevice_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(registerWapDevice_result) +registerWapDevice_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class registerWithExistingSnsIdAndIdentityCredential_args(object): + """ + Attributes: + - identityCredential + - region + - udidHash + - deviceInfo + """ + + + def __init__(self, identityCredential=None, region=None, udidHash=None, deviceInfo=None,): + self.identityCredential = identityCredential + self.region = region + self.udidHash = udidHash + self.deviceInfo = deviceInfo + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.identityCredential = IdentityCredential() + self.identityCredential.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.region = 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.udidHash = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.deviceInfo = DeviceInfo() + self.deviceInfo.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('registerWithExistingSnsIdAndIdentityCredential_args') + if self.identityCredential is not None: + oprot.writeFieldBegin('identityCredential', TType.STRUCT, 2) + self.identityCredential.write(oprot) + oprot.writeFieldEnd() + if self.region is not None: + oprot.writeFieldBegin('region', TType.STRING, 3) + oprot.writeString(self.region.encode('utf-8') if sys.version_info[0] == 2 else self.region) + oprot.writeFieldEnd() + if self.udidHash is not None: + oprot.writeFieldBegin('udidHash', TType.STRING, 4) + oprot.writeString(self.udidHash.encode('utf-8') if sys.version_info[0] == 2 else self.udidHash) + oprot.writeFieldEnd() + if self.deviceInfo is not None: + oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 5) + self.deviceInfo.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(registerWithExistingSnsIdAndIdentityCredential_args) +registerWithExistingSnsIdAndIdentityCredential_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRUCT, 'identityCredential', [IdentityCredential, None], None, ), # 2 + (3, TType.STRING, 'region', 'UTF8', None, ), # 3 + (4, TType.STRING, 'udidHash', 'UTF8', None, ), # 4 + (5, TType.STRUCT, 'deviceInfo', [DeviceInfo, None], None, ), # 5 +) + + +class registerWithExistingSnsIdAndIdentityCredential_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('registerWithExistingSnsIdAndIdentityCredential_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(registerWithExistingSnsIdAndIdentityCredential_result) +registerWithExistingSnsIdAndIdentityCredential_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class registerWithSnsId_args(object): + """ + Attributes: + - snsIdType + - snsAccessToken + - region + - udidHash + - deviceInfo + - mid + """ + + + def __init__(self, snsIdType=None, snsAccessToken=None, region=None, udidHash=None, deviceInfo=None, mid=None,): + self.snsIdType = snsIdType + self.snsAccessToken = snsAccessToken + self.region = region + self.udidHash = udidHash + self.deviceInfo = deviceInfo + 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.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.region = 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.udidHash = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRUCT: + self.deviceInfo = DeviceInfo() + self.deviceInfo.read(iprot) + else: + iprot.skip(ftype) + elif fid == 7: + 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('registerWithSnsId_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.region is not None: + oprot.writeFieldBegin('region', TType.STRING, 4) + oprot.writeString(self.region.encode('utf-8') if sys.version_info[0] == 2 else self.region) + oprot.writeFieldEnd() + if self.udidHash is not None: + oprot.writeFieldBegin('udidHash', TType.STRING, 5) + oprot.writeString(self.udidHash.encode('utf-8') if sys.version_info[0] == 2 else self.udidHash) + oprot.writeFieldEnd() + if self.deviceInfo is not None: + oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 6) + self.deviceInfo.write(oprot) + oprot.writeFieldEnd() + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 7) + 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(registerWithSnsId_args) +registerWithSnsId_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'snsIdType', None, None, ), # 2 + (3, TType.STRING, 'snsAccessToken', 'UTF8', None, ), # 3 + (4, TType.STRING, 'region', 'UTF8', None, ), # 4 + (5, TType.STRING, 'udidHash', 'UTF8', None, ), # 5 + (6, TType.STRUCT, 'deviceInfo', [DeviceInfo, None], None, ), # 6 + (7, TType.STRING, 'mid', 'UTF8', None, ), # 7 +) + + +class registerWithSnsId_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 = RegisterWithSnsIdResult() + 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('registerWithSnsId_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(registerWithSnsId_result) +registerWithSnsId_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [RegisterWithSnsIdResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class registerWithSnsIdAndIdentityCredential_args(object): + """ + Attributes: + - snsIdType + - snsAccessToken + - identityCredential + - region + - udidHash + - deviceInfo + """ + + + def __init__(self, snsIdType=None, snsAccessToken=None, identityCredential=None, region=None, udidHash=None, deviceInfo=None,): + self.snsIdType = snsIdType + self.snsAccessToken = snsAccessToken + self.identityCredential = identityCredential + self.region = region + self.udidHash = udidHash + self.deviceInfo = deviceInfo + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.STRUCT: + self.identityCredential = IdentityCredential() + self.identityCredential.read(iprot) + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.region = 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.udidHash = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRUCT: + self.deviceInfo = DeviceInfo() + self.deviceInfo.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('registerWithSnsIdAndIdentityCredential_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.identityCredential is not None: + oprot.writeFieldBegin('identityCredential', TType.STRUCT, 4) + self.identityCredential.write(oprot) + oprot.writeFieldEnd() + if self.region is not None: + oprot.writeFieldBegin('region', TType.STRING, 5) + oprot.writeString(self.region.encode('utf-8') if sys.version_info[0] == 2 else self.region) + oprot.writeFieldEnd() + if self.udidHash is not None: + oprot.writeFieldBegin('udidHash', TType.STRING, 6) + oprot.writeString(self.udidHash.encode('utf-8') if sys.version_info[0] == 2 else self.udidHash) + oprot.writeFieldEnd() + if self.deviceInfo is not None: + oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 7) + self.deviceInfo.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(registerWithSnsIdAndIdentityCredential_args) +registerWithSnsIdAndIdentityCredential_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'snsIdType', None, None, ), # 2 + (3, TType.STRING, 'snsAccessToken', 'UTF8', None, ), # 3 + (4, TType.STRUCT, 'identityCredential', [IdentityCredential, None], None, ), # 4 + (5, TType.STRING, 'region', 'UTF8', None, ), # 5 + (6, TType.STRING, 'udidHash', 'UTF8', None, ), # 6 + (7, TType.STRUCT, 'deviceInfo', [DeviceInfo, None], None, ), # 7 +) + + +class registerWithSnsIdAndIdentityCredential_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('registerWithSnsIdAndIdentityCredential_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(registerWithSnsIdAndIdentityCredential_result) +registerWithSnsIdAndIdentityCredential_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class reissueDeviceCredential_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('reissueDeviceCredential_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(reissueDeviceCredential_args) +reissueDeviceCredential_args.thrift_spec = ( +) + + +class reissueDeviceCredential_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('reissueDeviceCredential_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(reissueDeviceCredential_result) +reissueDeviceCredential_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class reissueUserTicket_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('reissueUserTicket_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(reissueUserTicket_args) +reissueUserTicket_args.thrift_spec = ( + None, # 0 + None, # 1 + None, # 2 + (3, TType.I64, 'expirationTime', None, None, ), # 3 + (4, TType.I32, 'maxUseCount', None, None, ), # 4 +) + + +class reissueUserTicket_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('reissueUserTicket_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(reissueUserTicket_result) +reissueUserTicket_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getMessageReadRange_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 = [] + (_etype1858, _size1855) = iprot.readListBegin() + for _i1859 in range(_size1855): + _elem1860 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.chatIds.append(_elem1860) + 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('getMessageReadRange_args') + if self.chatIds is not None: + oprot.writeFieldBegin('chatIds', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.chatIds)) + for iter1861 in self.chatIds: + oprot.writeString(iter1861.encode('utf-8') if sys.version_info[0] == 2 else iter1861) + 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(getMessageReadRange_args) +getMessageReadRange_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.LIST, 'chatIds', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class getMessageReadRange_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 = [] + (_etype1865, _size1862) = iprot.readListBegin() + for _i1866 in range(_size1862): + _elem1867 = TMessageReadRange() + _elem1867.read(iprot) + self.success.append(_elem1867) + 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('getMessageReadRange_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1868 in self.success: + iter1868.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(getMessageReadRange_result) +getMessageReadRange_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [TMessageReadRange, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class rejectGroupInvitation_args(object): + """ + Attributes: + - reqSeq + - groupId + """ + + + def __init__(self, reqSeq=None, groupId=None,): + self.reqSeq = reqSeq + 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.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + 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('rejectGroupInvitation_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.groupId is not None: + oprot.writeFieldBegin('groupId', TType.STRING, 2) + 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(rejectGroupInvitation_args) +rejectGroupInvitation_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'groupId', 'UTF8', None, ), # 2 +) + + +class rejectGroupInvitation_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('rejectGroupInvitation_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(rejectGroupInvitation_result) +rejectGroupInvitation_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class releaseSession_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('releaseSession_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(releaseSession_args) +releaseSession_args.thrift_spec = ( +) + + +class releaseSession_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('releaseSession_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(releaseSession_result) +releaseSession_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class removeAllMessages_args(object): + """ + Attributes: + - seq + - lastMessageId + """ + + + def __init__(self, seq=None, lastMessageId=None,): + self.seq = seq + self.lastMessageId = lastMessageId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.lastMessageId = 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('removeAllMessages_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + if self.lastMessageId is not None: + oprot.writeFieldBegin('lastMessageId', TType.STRING, 2) + oprot.writeString(self.lastMessageId.encode('utf-8') if sys.version_info[0] == 2 else self.lastMessageId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(removeAllMessages_args) +removeAllMessages_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRING, 'lastMessageId', 'UTF8', None, ), # 2 +) + + +class removeAllMessages_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('removeAllMessages_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(removeAllMessages_result) +removeAllMessages_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class removeBuddyLocation_args(object): + """ + Attributes: + - mid + - index + """ + + + def __init__(self, mid=None, index=None,): + self.mid = mid + self.index = index + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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) + elif fid == 3: + if ftype == TType.I32: + self.index = 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('removeBuddyLocation_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() + if self.index is not None: + oprot.writeFieldBegin('index', TType.I32, 3) + oprot.writeI32(self.index) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(removeBuddyLocation_args) +removeBuddyLocation_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 + (3, TType.I32, 'index', None, None, ), # 3 +) + + +class removeBuddyLocation_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('removeBuddyLocation_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(removeBuddyLocation_result) +removeBuddyLocation_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class removeMessage_args(object): + """ + Attributes: + - messageId + """ + + + def __init__(self, messageId=None,): + 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 == 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('removeMessage_args') + 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(removeMessage_args) +removeMessage_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'messageId', 'UTF8', None, ), # 2 +) + + +class removeMessage_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('removeMessage_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(removeMessage_result) +removeMessage_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class makeUserAddMyselfAsContact_args(object): + """ + Attributes: + - contactOwnerMid + """ + + + def __init__(self, contactOwnerMid=None,): + self.contactOwnerMid = contactOwnerMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.contactOwnerMid = 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('makeUserAddMyselfAsContact_args') + if self.contactOwnerMid is not None: + oprot.writeFieldBegin('contactOwnerMid', TType.STRING, 1) + oprot.writeString(self.contactOwnerMid.encode('utf-8') if sys.version_info[0] == 2 else self.contactOwnerMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(makeUserAddMyselfAsContact_args) +makeUserAddMyselfAsContact_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'contactOwnerMid', 'UTF8', None, ), # 1 +) + + +class makeUserAddMyselfAsContact_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 = ContactTransition() + 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('makeUserAddMyselfAsContact_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(makeUserAddMyselfAsContact_result) +makeUserAddMyselfAsContact_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ContactTransition, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class removeMessageFromMyHome_args(object): + """ + Attributes: + - messageId + """ + + + def __init__(self, messageId=None,): + 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 == 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('removeMessageFromMyHome_args') + 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(removeMessageFromMyHome_args) +removeMessageFromMyHome_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'messageId', 'UTF8', None, ), # 2 +) + + +class removeMessageFromMyHome_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('removeMessageFromMyHome_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(removeMessageFromMyHome_result) +removeMessageFromMyHome_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class removeSnsId_args(object): + """ + Attributes: + - snsIdType + """ + + + def __init__(self, snsIdType=None,): + self.snsIdType = snsIdType + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('removeSnsId_args') + if self.snsIdType is not None: + oprot.writeFieldBegin('snsIdType', TType.I32, 2) + oprot.writeI32(self.snsIdType) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(removeSnsId_args) +removeSnsId_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'snsIdType', None, None, ), # 2 +) + + +class removeSnsId_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('removeSnsId_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(removeSnsId_result) +removeSnsId_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class report_args(object): + """ + Attributes: + - syncOpRevision + - category + - report + """ + + + def __init__(self, syncOpRevision=None, category=None, report=None,): + self.syncOpRevision = syncOpRevision + self.category = category + self.report = report + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.syncOpRevision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.category = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.report = 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('report_args') + if self.syncOpRevision is not None: + oprot.writeFieldBegin('syncOpRevision', TType.I64, 2) + oprot.writeI64(self.syncOpRevision) + oprot.writeFieldEnd() + if self.category is not None: + oprot.writeFieldBegin('category', TType.I32, 3) + oprot.writeI32(self.category) + oprot.writeFieldEnd() + if self.report is not None: + oprot.writeFieldBegin('report', TType.STRING, 4) + oprot.writeString(self.report.encode('utf-8') if sys.version_info[0] == 2 else self.report) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(report_args) +report_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I64, 'syncOpRevision', None, None, ), # 2 + (3, TType.I32, 'category', None, None, ), # 3 + (4, TType.STRING, 'report', 'UTF8', None, ), # 4 +) + + +class report_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('report_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(report_result) +report_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class reportContacts_args(object): + """ + Attributes: + - syncOpRevision + - category + - contactReports + - actionType + """ + + + def __init__(self, syncOpRevision=None, category=None, contactReports=None, actionType=None,): + self.syncOpRevision = syncOpRevision + self.category = category + self.contactReports = contactReports + self.actionType = actionType + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.syncOpRevision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.category = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.contactReports = [] + (_etype1872, _size1869) = iprot.readListBegin() + for _i1873 in range(_size1869): + _elem1874 = ContactReport() + _elem1874.read(iprot) + self.contactReports.append(_elem1874) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.actionType = 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('reportContacts_args') + if self.syncOpRevision is not None: + oprot.writeFieldBegin('syncOpRevision', TType.I64, 2) + oprot.writeI64(self.syncOpRevision) + oprot.writeFieldEnd() + if self.category is not None: + oprot.writeFieldBegin('category', TType.I32, 3) + oprot.writeI32(self.category) + oprot.writeFieldEnd() + if self.contactReports is not None: + oprot.writeFieldBegin('contactReports', TType.LIST, 4) + oprot.writeListBegin(TType.STRUCT, len(self.contactReports)) + for iter1875 in self.contactReports: + iter1875.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.actionType is not None: + oprot.writeFieldBegin('actionType', TType.I32, 5) + oprot.writeI32(self.actionType) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(reportContacts_args) +reportContacts_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I64, 'syncOpRevision', None, None, ), # 2 + (3, TType.I32, 'category', None, None, ), # 3 + (4, TType.LIST, 'contactReports', (TType.STRUCT, [ContactReport, None], False), None, ), # 4 + (5, TType.I32, 'actionType', None, None, ), # 5 +) + + +class reportContacts_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 = [] + (_etype1879, _size1876) = iprot.readListBegin() + for _i1880 in range(_size1876): + _elem1881 = ContactReportResult() + _elem1881.read(iprot) + self.success.append(_elem1881) + 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('reportContacts_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1882 in self.success: + iter1882.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(reportContacts_result) +reportContacts_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [ContactReportResult, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class reportGroups_args(object): + """ + Attributes: + - syncOpRevision + - groups + """ + + + def __init__(self, syncOpRevision=None, groups=None,): + self.syncOpRevision = syncOpRevision + self.groups = groups + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.syncOpRevision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.groups = [] + (_etype1886, _size1883) = iprot.readListBegin() + for _i1887 in range(_size1883): + _elem1888 = Group() + _elem1888.read(iprot) + self.groups.append(_elem1888) + 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('reportGroups_args') + if self.syncOpRevision is not None: + oprot.writeFieldBegin('syncOpRevision', TType.I64, 2) + oprot.writeI64(self.syncOpRevision) + oprot.writeFieldEnd() + if self.groups is not None: + oprot.writeFieldBegin('groups', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.groups)) + for iter1889 in self.groups: + iter1889.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(reportGroups_args) +reportGroups_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I64, 'syncOpRevision', None, None, ), # 2 + (3, TType.LIST, 'groups', (TType.STRUCT, [Group, None], False), None, ), # 3 +) + + +class reportGroups_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('reportGroups_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(reportGroups_result) +reportGroups_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class reportProfile_args(object): + """ + Attributes: + - syncOpRevision + - profile + """ + + + def __init__(self, syncOpRevision=None, profile=None,): + self.syncOpRevision = syncOpRevision + self.profile = profile + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.syncOpRevision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.profile = Profile() + self.profile.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('reportProfile_args') + if self.syncOpRevision is not None: + oprot.writeFieldBegin('syncOpRevision', TType.I64, 2) + oprot.writeI64(self.syncOpRevision) + oprot.writeFieldEnd() + if self.profile is not None: + oprot.writeFieldBegin('profile', TType.STRUCT, 3) + self.profile.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(reportProfile_args) +reportProfile_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I64, 'syncOpRevision', None, None, ), # 2 + (3, TType.STRUCT, 'profile', [Profile, None], None, ), # 3 +) + + +class reportProfile_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('reportProfile_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(reportProfile_result) +reportProfile_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class reportRooms_args(object): + """ + Attributes: + - syncOpRevision + - rooms + """ + + + def __init__(self, syncOpRevision=None, rooms=None,): + self.syncOpRevision = syncOpRevision + self.rooms = rooms + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.syncOpRevision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.rooms = [] + (_etype1893, _size1890) = iprot.readListBegin() + for _i1894 in range(_size1890): + _elem1895 = Room() + _elem1895.read(iprot) + self.rooms.append(_elem1895) + 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('reportRooms_args') + if self.syncOpRevision is not None: + oprot.writeFieldBegin('syncOpRevision', TType.I64, 2) + oprot.writeI64(self.syncOpRevision) + oprot.writeFieldEnd() + if self.rooms is not None: + oprot.writeFieldBegin('rooms', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.rooms)) + for iter1896 in self.rooms: + iter1896.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(reportRooms_args) +reportRooms_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I64, 'syncOpRevision', None, None, ), # 2 + (3, TType.LIST, 'rooms', (TType.STRUCT, [Room, None], False), None, ), # 3 +) + + +class reportRooms_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('reportRooms_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(reportRooms_result) +reportRooms_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class findAndAddContactByMetaTag_args(object): + """ + Attributes: + - reqSeq + - userid + - reference + """ + + + def __init__(self, reqSeq=None, userid=None, reference=None,): + self.reqSeq = reqSeq + self.userid = userid + self.reference = reference + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.userid = 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.reference = 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('findAndAddContactByMetaTag_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + 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() + if self.reference is not None: + oprot.writeFieldBegin('reference', TType.STRING, 3) + oprot.writeString(self.reference.encode('utf-8') if sys.version_info[0] == 2 else self.reference) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(findAndAddContactByMetaTag_args) +findAndAddContactByMetaTag_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'userid', 'UTF8', None, ), # 2 + (3, TType.STRING, 'reference', 'UTF8', None, ), # 3 +) + + +class findAndAddContactByMetaTag_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('findAndAddContactByMetaTag_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(findAndAddContactByMetaTag_result) +findAndAddContactByMetaTag_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Contact, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class reportSettings_args(object): + """ + Attributes: + - syncOpRevision + - settings + """ + + + def __init__(self, syncOpRevision=None, settings=None,): + self.syncOpRevision = syncOpRevision + 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.I64: + self.syncOpRevision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.settings = Settings() + self.settings.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('reportSettings_args') + if self.syncOpRevision is not None: + oprot.writeFieldBegin('syncOpRevision', TType.I64, 2) + oprot.writeI64(self.syncOpRevision) + oprot.writeFieldEnd() + if self.settings is not None: + oprot.writeFieldBegin('settings', TType.STRUCT, 3) + self.settings.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(reportSettings_args) +reportSettings_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I64, 'syncOpRevision', None, None, ), # 2 + (3, TType.STRUCT, 'settings', [Settings, None], None, ), # 3 +) + + +class reportSettings_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('reportSettings_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(reportSettings_result) +reportSettings_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class reportSpam_args(object): + """ + Attributes: + - chatMid + - memberMids + - spammerReasons + - senderMids + - spamMessageIds + - spamMessages + """ + + + def __init__(self, chatMid=None, memberMids=None, spammerReasons=None, senderMids=None, spamMessageIds=None, spamMessages=None,): + self.chatMid = chatMid + self.memberMids = memberMids + self.spammerReasons = spammerReasons + self.senderMids = senderMids + self.spamMessageIds = spamMessageIds + self.spamMessages = spamMessages + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.chatMid = 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.memberMids = [] + (_etype1900, _size1897) = iprot.readListBegin() + for _i1901 in range(_size1897): + _elem1902 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.memberMids.append(_elem1902) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.spammerReasons = [] + (_etype1906, _size1903) = iprot.readListBegin() + for _i1907 in range(_size1903): + _elem1908 = iprot.readI32() + self.spammerReasons.append(_elem1908) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.senderMids = [] + (_etype1912, _size1909) = iprot.readListBegin() + for _i1913 in range(_size1909): + _elem1914 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.senderMids.append(_elem1914) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.LIST: + self.spamMessageIds = [] + (_etype1918, _size1915) = iprot.readListBegin() + for _i1919 in range(_size1915): + _elem1920 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.spamMessageIds.append(_elem1920) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.LIST: + self.spamMessages = [] + (_etype1924, _size1921) = iprot.readListBegin() + for _i1925 in range(_size1921): + _elem1926 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.spamMessages.append(_elem1926) + 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('reportSpam_args') + if self.chatMid is not None: + oprot.writeFieldBegin('chatMid', TType.STRING, 2) + oprot.writeString(self.chatMid.encode('utf-8') if sys.version_info[0] == 2 else self.chatMid) + oprot.writeFieldEnd() + if self.memberMids is not None: + oprot.writeFieldBegin('memberMids', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.memberMids)) + for iter1927 in self.memberMids: + oprot.writeString(iter1927.encode('utf-8') if sys.version_info[0] == 2 else iter1927) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.spammerReasons is not None: + oprot.writeFieldBegin('spammerReasons', TType.LIST, 4) + oprot.writeListBegin(TType.I32, len(self.spammerReasons)) + for iter1928 in self.spammerReasons: + oprot.writeI32(iter1928) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.senderMids is not None: + oprot.writeFieldBegin('senderMids', TType.LIST, 5) + oprot.writeListBegin(TType.STRING, len(self.senderMids)) + for iter1929 in self.senderMids: + oprot.writeString(iter1929.encode('utf-8') if sys.version_info[0] == 2 else iter1929) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.spamMessageIds is not None: + oprot.writeFieldBegin('spamMessageIds', TType.LIST, 6) + oprot.writeListBegin(TType.STRING, len(self.spamMessageIds)) + for iter1930 in self.spamMessageIds: + oprot.writeString(iter1930.encode('utf-8') if sys.version_info[0] == 2 else iter1930) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.spamMessages is not None: + oprot.writeFieldBegin('spamMessages', TType.LIST, 7) + oprot.writeListBegin(TType.STRING, len(self.spamMessages)) + for iter1931 in self.spamMessages: + oprot.writeString(iter1931.encode('utf-8') if sys.version_info[0] == 2 else iter1931) + 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(reportSpam_args) +reportSpam_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'chatMid', 'UTF8', None, ), # 2 + (3, TType.LIST, 'memberMids', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.LIST, 'spammerReasons', (TType.I32, None, False), None, ), # 4 + (5, TType.LIST, 'senderMids', (TType.STRING, 'UTF8', False), None, ), # 5 + (6, TType.LIST, 'spamMessageIds', (TType.STRING, 'UTF8', False), None, ), # 6 + (7, TType.LIST, 'spamMessages', (TType.STRING, 'UTF8', False), None, ), # 7 +) + + +class reportSpam_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('reportSpam_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(reportSpam_result) +reportSpam_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class reportSpammer_args(object): + """ + Attributes: + - spammerMid + - spammerReasons + - spamMessageIds + """ + + + def __init__(self, spammerMid=None, spammerReasons=None, spamMessageIds=None,): + self.spammerMid = spammerMid + self.spammerReasons = spammerReasons + self.spamMessageIds = spamMessageIds + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.spammerMid = 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.spammerReasons = [] + (_etype1935, _size1932) = iprot.readListBegin() + for _i1936 in range(_size1932): + _elem1937 = iprot.readI32() + self.spammerReasons.append(_elem1937) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.spamMessageIds = [] + (_etype1941, _size1938) = iprot.readListBegin() + for _i1942 in range(_size1938): + _elem1943 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.spamMessageIds.append(_elem1943) + 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('reportSpammer_args') + if self.spammerMid is not None: + oprot.writeFieldBegin('spammerMid', TType.STRING, 2) + oprot.writeString(self.spammerMid.encode('utf-8') if sys.version_info[0] == 2 else self.spammerMid) + oprot.writeFieldEnd() + if self.spammerReasons is not None: + oprot.writeFieldBegin('spammerReasons', TType.LIST, 3) + oprot.writeListBegin(TType.I32, len(self.spammerReasons)) + for iter1944 in self.spammerReasons: + oprot.writeI32(iter1944) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.spamMessageIds is not None: + oprot.writeFieldBegin('spamMessageIds', TType.LIST, 4) + oprot.writeListBegin(TType.STRING, len(self.spamMessageIds)) + for iter1945 in self.spamMessageIds: + oprot.writeString(iter1945.encode('utf-8') if sys.version_info[0] == 2 else iter1945) + 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(reportSpammer_args) +reportSpammer_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'spammerMid', 'UTF8', None, ), # 2 + (3, TType.LIST, 'spammerReasons', (TType.I32, None, False), None, ), # 3 + (4, TType.LIST, 'spamMessageIds', (TType.STRING, 'UTF8', False), None, ), # 4 +) + + +class reportSpammer_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('reportSpammer_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(reportSpammer_result) +reportSpammer_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class requestAccountPasswordReset_args(object): + """ + Attributes: + - provider + - identifier + - locale + """ + + + def __init__(self, provider=None, identifier=None, locale=None,): + self.provider = provider + self.identifier = identifier + 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 == 4: + if ftype == TType.I32: + self.provider = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.identifier = 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.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('requestAccountPasswordReset_args') + if self.identifier is not None: + oprot.writeFieldBegin('identifier', TType.STRING, 2) + oprot.writeString(self.identifier.encode('utf-8') if sys.version_info[0] == 2 else self.identifier) + oprot.writeFieldEnd() + if self.provider is not None: + oprot.writeFieldBegin('provider', TType.I32, 4) + oprot.writeI32(self.provider) + oprot.writeFieldEnd() + if self.locale is not None: + oprot.writeFieldBegin('locale', TType.STRING, 5) + 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(requestAccountPasswordReset_args) +requestAccountPasswordReset_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'identifier', 'UTF8', None, ), # 2 + None, # 3 + (4, TType.I32, 'provider', None, None, ), # 4 + (5, TType.STRING, 'locale', 'UTF8', None, ), # 5 +) + + +class requestAccountPasswordReset_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('requestAccountPasswordReset_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(requestAccountPasswordReset_result) +requestAccountPasswordReset_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class requestEmailConfirmation_args(object): + """ + Attributes: + - emailConfirmation + """ + + + def __init__(self, emailConfirmation=None,): + self.emailConfirmation = emailConfirmation + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.emailConfirmation = EmailConfirmation() + self.emailConfirmation.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('requestEmailConfirmation_args') + if self.emailConfirmation is not None: + oprot.writeFieldBegin('emailConfirmation', TType.STRUCT, 2) + self.emailConfirmation.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(requestEmailConfirmation_args) +requestEmailConfirmation_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRUCT, 'emailConfirmation', [EmailConfirmation, None], None, ), # 2 +) + + +class requestEmailConfirmation_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 = EmailConfirmationSession() + 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('requestEmailConfirmation_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(requestEmailConfirmation_result) +requestEmailConfirmation_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [EmailConfirmationSession, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class requestIdentityUnbind_args(object): + """ + Attributes: + - provider + - identifier + """ + + + def __init__(self, provider=None, identifier=None,): + self.provider = provider + self.identifier = identifier + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I32: + self.provider = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.identifier = 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('requestIdentityUnbind_args') + if self.identifier is not None: + oprot.writeFieldBegin('identifier', TType.STRING, 2) + oprot.writeString(self.identifier.encode('utf-8') if sys.version_info[0] == 2 else self.identifier) + oprot.writeFieldEnd() + if self.provider is not None: + oprot.writeFieldBegin('provider', TType.I32, 4) + oprot.writeI32(self.provider) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(requestIdentityUnbind_args) +requestIdentityUnbind_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'identifier', 'UTF8', None, ), # 2 + None, # 3 + (4, TType.I32, 'provider', None, None, ), # 4 +) + + +class requestIdentityUnbind_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('requestIdentityUnbind_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(requestIdentityUnbind_result) +requestIdentityUnbind_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class resendEmailConfirmation_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 == 2: + 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('resendEmailConfirmation_args') + if self.verifier is not None: + oprot.writeFieldBegin('verifier', TType.STRING, 2) + 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(resendEmailConfirmation_args) +resendEmailConfirmation_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'verifier', 'UTF8', None, ), # 2 +) + + +class resendEmailConfirmation_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 = EmailConfirmationSession() + 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('resendEmailConfirmation_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(resendEmailConfirmation_result) +resendEmailConfirmation_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [EmailConfirmationSession, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class resendPinCode_args(object): + """ + Attributes: + - sessionId + """ + + + def __init__(self, sessionId=None,): + self.sessionId = sessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.sessionId = 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('resendPinCode_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(resendPinCode_args) +resendPinCode_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 +) + + +class resendPinCode_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('resendPinCode_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(resendPinCode_result) +resendPinCode_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class resendPinCodeBySMS_args(object): + """ + Attributes: + - sessionId + """ + + + def __init__(self, sessionId=None,): + self.sessionId = sessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.sessionId = 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('resendPinCodeBySMS_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(resendPinCodeBySMS_args) +resendPinCodeBySMS_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 +) + + +class resendPinCodeBySMS_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('resendPinCodeBySMS_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(resendPinCodeBySMS_result) +resendPinCodeBySMS_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class sendChatChecked_args(object): + """ + Attributes: + - seq + - consumer + - lastMessageId + """ + + + def __init__(self, seq=None, consumer=None, lastMessageId=None,): + self.seq = seq + self.consumer = consumer + self.lastMessageId = lastMessageId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.consumer = 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.lastMessageId = 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('sendChatChecked_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + if self.consumer is not None: + oprot.writeFieldBegin('consumer', TType.STRING, 2) + oprot.writeString(self.consumer.encode('utf-8') if sys.version_info[0] == 2 else self.consumer) + oprot.writeFieldEnd() + if self.lastMessageId is not None: + oprot.writeFieldBegin('lastMessageId', TType.STRING, 3) + oprot.writeString(self.lastMessageId.encode('utf-8') if sys.version_info[0] == 2 else self.lastMessageId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(sendChatChecked_args) +sendChatChecked_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRING, 'consumer', 'UTF8', None, ), # 2 + (3, TType.STRING, 'lastMessageId', 'UTF8', None, ), # 3 +) + + +class sendChatChecked_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('sendChatChecked_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(sendChatChecked_result) +sendChatChecked_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class sendMessageAwaitCommit_args(object): + """ + Attributes: + - seq + - message + """ + + + def __init__(self, seq=None, message=None,): + self.seq = seq + 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 == 1: + if ftype == TType.I32: + self.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif 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('sendMessageAwaitCommit_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + 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(sendMessageAwaitCommit_args) +sendMessageAwaitCommit_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRUCT, 'message', [Message, None], None, ), # 2 +) + + +class sendMessageAwaitCommit_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 = CommitMessageResult() + 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('sendMessageAwaitCommit_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(sendMessageAwaitCommit_result) +sendMessageAwaitCommit_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [CommitMessageResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class sendChatRemoved_args(object): + """ + Attributes: + - seq + - consumer + - lastMessageId + """ + + + def __init__(self, seq=None, consumer=None, lastMessageId=None,): + self.seq = seq + self.consumer = consumer + self.lastMessageId = lastMessageId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.consumer = 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.lastMessageId = 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('sendChatRemoved_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + if self.consumer is not None: + oprot.writeFieldBegin('consumer', TType.STRING, 2) + oprot.writeString(self.consumer.encode('utf-8') if sys.version_info[0] == 2 else self.consumer) + oprot.writeFieldEnd() + if self.lastMessageId is not None: + oprot.writeFieldBegin('lastMessageId', TType.STRING, 3) + oprot.writeString(self.lastMessageId.encode('utf-8') if sys.version_info[0] == 2 else self.lastMessageId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(sendChatRemoved_args) +sendChatRemoved_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRING, 'consumer', 'UTF8', None, ), # 2 + (3, TType.STRING, 'lastMessageId', 'UTF8', None, ), # 3 +) + + +class sendChatRemoved_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('sendChatRemoved_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(sendChatRemoved_result) +sendChatRemoved_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class sendContentPreviewUpdated_args(object): + """ + Attributes: + - esq + - messageId + - receiverMids + """ + + + def __init__(self, esq=None, messageId=None, receiverMids=None,): + self.esq = esq + self.messageId = messageId + self.receiverMids = receiverMids + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.esq = iprot.readI32() + 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) + elif fid == 3: + if ftype == TType.LIST: + self.receiverMids = [] + (_etype1949, _size1946) = iprot.readListBegin() + for _i1950 in range(_size1946): + _elem1951 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.receiverMids.append(_elem1951) + 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('sendContentPreviewUpdated_args') + if self.esq is not None: + oprot.writeFieldBegin('esq', TType.I32, 1) + oprot.writeI32(self.esq) + 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() + if self.receiverMids is not None: + oprot.writeFieldBegin('receiverMids', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.receiverMids)) + for iter1952 in self.receiverMids: + oprot.writeString(iter1952.encode('utf-8') if sys.version_info[0] == 2 else iter1952) + 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(sendContentPreviewUpdated_args) +sendContentPreviewUpdated_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'esq', None, None, ), # 1 + (2, TType.STRING, 'messageId', 'UTF8', None, ), # 2 + (3, TType.LIST, 'receiverMids', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class sendContentPreviewUpdated_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 = {} + (_ktype1954, _vtype1955, _size1953) = iprot.readMapBegin() + for _i1957 in range(_size1953): + _key1958 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1959 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success[_key1958] = _val1959 + 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('sendContentPreviewUpdated_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) + for kiter1960, viter1961 in self.success.items(): + oprot.writeString(kiter1960.encode('utf-8') if sys.version_info[0] == 2 else kiter1960) + oprot.writeString(viter1961.encode('utf-8') if sys.version_info[0] == 2 else viter1961) + 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(sendContentPreviewUpdated_result) +sendContentPreviewUpdated_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class sendContentReceipt_args(object): + """ + Attributes: + - seq + - consumer + - messageId + """ + + + def __init__(self, seq=None, consumer=None, messageId=None,): + self.seq = seq + self.consumer = consumer + 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.I32: + self.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.consumer = 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.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('sendContentReceipt_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + if self.consumer is not None: + oprot.writeFieldBegin('consumer', TType.STRING, 2) + oprot.writeString(self.consumer.encode('utf-8') if sys.version_info[0] == 2 else self.consumer) + oprot.writeFieldEnd() + if self.messageId is not None: + oprot.writeFieldBegin('messageId', TType.STRING, 3) + 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(sendContentReceipt_args) +sendContentReceipt_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRING, 'consumer', 'UTF8', None, ), # 2 + (3, TType.STRING, 'messageId', 'UTF8', None, ), # 3 +) + + +class sendContentReceipt_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('sendContentReceipt_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(sendContentReceipt_result) +sendContentReceipt_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class sendDummyPush_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('sendDummyPush_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(sendDummyPush_args) +sendDummyPush_args.thrift_spec = ( +) + + +class sendDummyPush_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('sendDummyPush_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(sendDummyPush_result) +sendDummyPush_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class removeE2EEPublicKey_args(object): + """ + Attributes: + - publicKey + """ + + + def __init__(self, publicKey=None,): + self.publicKey = publicKey + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.publicKey = E2EEPublicKey() + self.publicKey.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('removeE2EEPublicKey_args') + if self.publicKey is not None: + oprot.writeFieldBegin('publicKey', TType.STRUCT, 2) + self.publicKey.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(removeE2EEPublicKey_args) +removeE2EEPublicKey_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRUCT, 'publicKey', [E2EEPublicKey, None], None, ), # 2 +) + + +class removeE2EEPublicKey_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('removeE2EEPublicKey_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(removeE2EEPublicKey_result) +removeE2EEPublicKey_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class negotiateE2EEPublicKey_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('negotiateE2EEPublicKey_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(negotiateE2EEPublicKey_args) +negotiateE2EEPublicKey_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 +) + + +class negotiateE2EEPublicKey_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 = E2EENegotiationResult() + 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('negotiateE2EEPublicKey_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(negotiateE2EEPublicKey_result) +negotiateE2EEPublicKey_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [E2EENegotiationResult, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getE2EEPublicKey_args(object): + """ + Attributes: + - mid + - version + - keyId + """ + + + def __init__(self, mid=None, version=None, keyId=None,): + self.mid = mid + self.version = version + self.keyId = keyId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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) + elif fid == 3: + if ftype == TType.I32: + self.version = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.keyId = 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('getE2EEPublicKey_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() + if self.version is not None: + oprot.writeFieldBegin('version', TType.I32, 3) + oprot.writeI32(self.version) + oprot.writeFieldEnd() + if self.keyId is not None: + oprot.writeFieldBegin('keyId', TType.I32, 4) + oprot.writeI32(self.keyId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getE2EEPublicKey_args) +getE2EEPublicKey_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 + (3, TType.I32, 'version', None, None, ), # 3 + (4, TType.I32, 'keyId', None, None, ), # 4 +) + + +class getE2EEPublicKey_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 = E2EEPublicKey() + 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('getE2EEPublicKey_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(getE2EEPublicKey_result) +getE2EEPublicKey_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [E2EEPublicKey, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class requestE2EEKeyExchange_args(object): + """ + Attributes: + - reqSeq + - temporalPublicKey + - publicKey + - verifier + """ + + + def __init__(self, reqSeq=None, temporalPublicKey=None, publicKey=None, verifier=None,): + self.reqSeq = reqSeq + self.temporalPublicKey = temporalPublicKey + self.publicKey = publicKey + 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.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.temporalPublicKey = iprot.readBinary() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.publicKey = E2EEPublicKey() + self.publicKey.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.verifier = 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('requestE2EEKeyExchange_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.temporalPublicKey is not None: + oprot.writeFieldBegin('temporalPublicKey', TType.STRING, 2) + oprot.writeBinary(self.temporalPublicKey) + oprot.writeFieldEnd() + if self.publicKey is not None: + oprot.writeFieldBegin('publicKey', TType.STRUCT, 3) + self.publicKey.write(oprot) + oprot.writeFieldEnd() + if self.verifier is not None: + oprot.writeFieldBegin('verifier', TType.STRING, 4) + oprot.writeBinary(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(requestE2EEKeyExchange_args) +requestE2EEKeyExchange_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'temporalPublicKey', 'BINARY', None, ), # 2 + (3, TType.STRUCT, 'publicKey', [E2EEPublicKey, None], None, ), # 3 + (4, TType.STRING, 'verifier', 'BINARY', None, ), # 4 +) + + +class requestE2EEKeyExchange_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('requestE2EEKeyExchange_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(requestE2EEKeyExchange_result) +requestE2EEKeyExchange_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getLastE2EEPublicKeys_args(object): + """ + Attributes: + - chatMid + """ + + + def __init__(self, chatMid=None,): + self.chatMid = chatMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.chatMid = 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('getLastE2EEPublicKeys_args') + if self.chatMid is not None: + oprot.writeFieldBegin('chatMid', TType.STRING, 2) + oprot.writeString(self.chatMid.encode('utf-8') if sys.version_info[0] == 2 else self.chatMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getLastE2EEPublicKeys_args) +getLastE2EEPublicKeys_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'chatMid', 'UTF8', None, ), # 2 +) + + +class getLastE2EEPublicKeys_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 = {} + (_ktype1963, _vtype1964, _size1962) = iprot.readMapBegin() + for _i1966 in range(_size1962): + _key1967 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val1968 = E2EEPublicKey() + _val1968.read(iprot) + self.success[_key1967] = _val1968 + 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('getLastE2EEPublicKeys_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) + for kiter1969, viter1970 in self.success.items(): + oprot.writeString(kiter1969.encode('utf-8') if sys.version_info[0] == 2 else kiter1969) + viter1970.write(oprot) + 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(getLastE2EEPublicKeys_result) +getLastE2EEPublicKeys_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRUCT, [E2EEPublicKey, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class registerE2EEPublicKey_args(object): + """ + Attributes: + - reqSeq + - publicKey + """ + + + def __init__(self, reqSeq=None, publicKey=None,): + self.reqSeq = reqSeq + self.publicKey = publicKey + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.STRUCT: + self.publicKey = E2EEPublicKey() + self.publicKey.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('registerE2EEPublicKey_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.publicKey is not None: + oprot.writeFieldBegin('publicKey', TType.STRUCT, 2) + self.publicKey.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(registerE2EEPublicKey_args) +registerE2EEPublicKey_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRUCT, 'publicKey', [E2EEPublicKey, None], None, ), # 2 +) + + +class registerE2EEPublicKey_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 = E2EEPublicKey() + 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('registerE2EEPublicKey_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(registerE2EEPublicKey_result) +registerE2EEPublicKey_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [E2EEPublicKey, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getE2EEPublicKeys_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('getE2EEPublicKeys_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(getE2EEPublicKeys_args) +getE2EEPublicKeys_args.thrift_spec = ( +) + + +class getE2EEPublicKeys_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 = [] + (_etype1974, _size1971) = iprot.readListBegin() + for _i1975 in range(_size1971): + _elem1976 = E2EEPublicKey() + _elem1976.read(iprot) + self.success.append(_elem1976) + 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('getE2EEPublicKeys_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1977 in self.success: + iter1977.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(getE2EEPublicKeys_result) +getE2EEPublicKeys_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [E2EEPublicKey, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getE2EEPublicKeysEx_args(object): + """ + Attributes: + - ignoreE2EEStatus + """ + + + def __init__(self, ignoreE2EEStatus=None,): + self.ignoreE2EEStatus = ignoreE2EEStatus + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.BOOL: + self.ignoreE2EEStatus = 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('getE2EEPublicKeysEx_args') + if self.ignoreE2EEStatus is not None: + oprot.writeFieldBegin('ignoreE2EEStatus', TType.BOOL, 2) + oprot.writeBool(self.ignoreE2EEStatus) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getE2EEPublicKeysEx_args) +getE2EEPublicKeysEx_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.BOOL, 'ignoreE2EEStatus', None, None, ), # 2 +) + + +class getE2EEPublicKeysEx_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 = [] + (_etype1981, _size1978) = iprot.readListBegin() + for _i1982 in range(_size1978): + _elem1983 = E2EEPublicKey() + _elem1983.read(iprot) + self.success.append(_elem1983) + 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('getE2EEPublicKeysEx_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1984 in self.success: + iter1984.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(getE2EEPublicKeysEx_result) +getE2EEPublicKeysEx_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [E2EEPublicKey, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getReadMessageOpsInBulk_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 = [] + (_etype1988, _size1985) = iprot.readListBegin() + for _i1989 in range(_size1985): + _elem1990 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.chatIds.append(_elem1990) + 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('getReadMessageOpsInBulk_args') + if self.chatIds is not None: + oprot.writeFieldBegin('chatIds', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.chatIds)) + for iter1991 in self.chatIds: + oprot.writeString(iter1991.encode('utf-8') if sys.version_info[0] == 2 else iter1991) + 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(getReadMessageOpsInBulk_args) +getReadMessageOpsInBulk_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.LIST, 'chatIds', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class getReadMessageOpsInBulk_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 = [] + (_etype1995, _size1992) = iprot.readListBegin() + for _i1996 in range(_size1992): + _elem1997 = Operation() + _elem1997.read(iprot) + self.success.append(_elem1997) + 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('getReadMessageOpsInBulk_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1998 in self.success: + iter1998.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(getReadMessageOpsInBulk_result) +getReadMessageOpsInBulk_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Operation, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class sendEvent_args(object): + """ + Attributes: + - seq + - message + """ + + + def __init__(self, seq=None, message=None,): + self.seq = seq + 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 == 1: + if ftype == TType.I32: + self.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif 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('sendEvent_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + 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(sendEvent_args) +sendEvent_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRUCT, 'message', [Message, None], None, ), # 2 +) + + +class sendEvent_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('sendEvent_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(sendEvent_result) +sendEvent_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Message, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class sendMessage_args(object): + """ + Attributes: + - seq + - message + """ + + + def __init__(self, seq=None, message=None,): + self.seq = seq + 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 == 1: + if ftype == TType.I32: + self.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif 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('sendMessage_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + 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(sendMessage_args) +sendMessage_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRUCT, 'message', [Message, None], None, ), # 2 +) + + +class sendMessage_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('sendMessage_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(sendMessage_result) +sendMessage_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Message, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class sendMessageIgnored_args(object): + """ + Attributes: + - seq + - consumer + - messageIds + """ + + + def __init__(self, seq=None, consumer=None, messageIds=None,): + self.seq = seq + self.consumer = consumer + self.messageIds = messageIds + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.consumer = 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.messageIds = [] + (_etype2002, _size1999) = iprot.readListBegin() + for _i2003 in range(_size1999): + _elem2004 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.messageIds.append(_elem2004) + 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('sendMessageIgnored_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + if self.consumer is not None: + oprot.writeFieldBegin('consumer', TType.STRING, 2) + oprot.writeString(self.consumer.encode('utf-8') if sys.version_info[0] == 2 else self.consumer) + oprot.writeFieldEnd() + if self.messageIds is not None: + oprot.writeFieldBegin('messageIds', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.messageIds)) + for iter2005 in self.messageIds: + oprot.writeString(iter2005.encode('utf-8') if sys.version_info[0] == 2 else iter2005) + 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(sendMessageIgnored_args) +sendMessageIgnored_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRING, 'consumer', 'UTF8', None, ), # 2 + (3, TType.LIST, 'messageIds', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class sendMessageIgnored_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('sendMessageIgnored_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(sendMessageIgnored_result) +sendMessageIgnored_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class sendMessageReceipt_args(object): + """ + Attributes: + - seq + - consumer + - messageIds + """ + + + def __init__(self, seq=None, consumer=None, messageIds=None,): + self.seq = seq + self.consumer = consumer + self.messageIds = messageIds + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.consumer = 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.messageIds = [] + (_etype2009, _size2006) = iprot.readListBegin() + for _i2010 in range(_size2006): + _elem2011 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.messageIds.append(_elem2011) + 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('sendMessageReceipt_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + if self.consumer is not None: + oprot.writeFieldBegin('consumer', TType.STRING, 2) + oprot.writeString(self.consumer.encode('utf-8') if sys.version_info[0] == 2 else self.consumer) + oprot.writeFieldEnd() + if self.messageIds is not None: + oprot.writeFieldBegin('messageIds', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.messageIds)) + for iter2012 in self.messageIds: + oprot.writeString(iter2012.encode('utf-8') if sys.version_info[0] == 2 else iter2012) + 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(sendMessageReceipt_args) +sendMessageReceipt_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRING, 'consumer', 'UTF8', None, ), # 2 + (3, TType.LIST, 'messageIds', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class sendMessageReceipt_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('sendMessageReceipt_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(sendMessageReceipt_result) +sendMessageReceipt_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class findContactByMetaTag_args(object): + """ + Attributes: + - userid + - reference + """ + + + def __init__(self, userid=None, reference=None,): + self.userid = userid + self.reference = reference + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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) + elif fid == 3: + if ftype == TType.STRING: + self.reference = 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('findContactByMetaTag_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() + if self.reference is not None: + oprot.writeFieldBegin('reference', TType.STRING, 3) + oprot.writeString(self.reference.encode('utf-8') if sys.version_info[0] == 2 else self.reference) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(findContactByMetaTag_args) +findContactByMetaTag_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'userid', 'UTF8', None, ), # 2 + (3, TType.STRING, 'reference', 'UTF8', None, ), # 3 +) + + +class findContactByMetaTag_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('findContactByMetaTag_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(findContactByMetaTag_result) +findContactByMetaTag_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Contact, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class sendMessageToMyHome_args(object): + """ + Attributes: + - seq + - message + """ + + + def __init__(self, seq=None, message=None,): + self.seq = seq + 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 == 1: + if ftype == TType.I32: + self.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif 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('sendMessageToMyHome_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + 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(sendMessageToMyHome_args) +sendMessageToMyHome_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRUCT, 'message', [Message, None], None, ), # 2 +) + + +class sendMessageToMyHome_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('sendMessageToMyHome_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(sendMessageToMyHome_result) +sendMessageToMyHome_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Message, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class setBuddyLocation_args(object): + """ + Attributes: + - mid + - index + - location + """ + + + def __init__(self, mid=None, index=None, location=None,): + self.mid = mid + self.index = index + self.location = location + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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) + elif fid == 3: + if ftype == TType.I32: + self.index = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.location = Geolocation() + self.location.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('setBuddyLocation_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() + if self.index is not None: + oprot.writeFieldBegin('index', TType.I32, 3) + oprot.writeI32(self.index) + oprot.writeFieldEnd() + if self.location is not None: + oprot.writeFieldBegin('location', TType.STRUCT, 4) + self.location.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(setBuddyLocation_args) +setBuddyLocation_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 + (3, TType.I32, 'index', None, None, ), # 3 + (4, TType.STRUCT, 'location', [Geolocation, None], None, ), # 4 +) + + +class setBuddyLocation_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('setBuddyLocation_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(setBuddyLocation_result) +setBuddyLocation_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class setIdentityCredential_args(object): + """ + Attributes: + - identifier + - verifier + - provider + """ + + + def __init__(self, identifier=None, verifier=None, provider=None,): + self.identifier = identifier + self.verifier = verifier + self.provider = provider + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.identifier = 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.verifier = 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.provider = 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('setIdentityCredential_args') + if self.identifier is not None: + oprot.writeFieldBegin('identifier', TType.STRING, 2) + oprot.writeString(self.identifier.encode('utf-8') if sys.version_info[0] == 2 else self.identifier) + oprot.writeFieldEnd() + if self.verifier is not None: + oprot.writeFieldBegin('verifier', TType.STRING, 3) + oprot.writeString(self.verifier.encode('utf-8') if sys.version_info[0] == 2 else self.verifier) + oprot.writeFieldEnd() + if self.provider is not None: + oprot.writeFieldBegin('provider', TType.I32, 4) + oprot.writeI32(self.provider) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(setIdentityCredential_args) +setIdentityCredential_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'identifier', 'UTF8', None, ), # 2 + (3, TType.STRING, 'verifier', 'UTF8', None, ), # 3 + (4, TType.I32, 'provider', None, None, ), # 4 +) + + +class setIdentityCredential_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('setIdentityCredential_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(setIdentityCredential_result) +setIdentityCredential_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class setNotificationsEnabled_args(object): + """ + Attributes: + - reqSeq + - type + - target + - enablement + """ + + + def __init__(self, reqSeq=None, type=None, target=None, enablement=None,): + self.reqSeq = reqSeq + self.type = type + self.target = target + self.enablement = enablement + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.target = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BOOL: + self.enablement = 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('setNotificationsEnabled_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 2) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.target is not None: + oprot.writeFieldBegin('target', TType.STRING, 3) + oprot.writeString(self.target.encode('utf-8') if sys.version_info[0] == 2 else self.target) + oprot.writeFieldEnd() + if self.enablement is not None: + oprot.writeFieldBegin('enablement', TType.BOOL, 4) + oprot.writeBool(self.enablement) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(setNotificationsEnabled_args) +setNotificationsEnabled_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.I32, 'type', None, None, ), # 2 + (3, TType.STRING, 'target', 'UTF8', None, ), # 3 + (4, TType.BOOL, 'enablement', None, None, ), # 4 +) + + +class setNotificationsEnabled_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('setNotificationsEnabled_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(setNotificationsEnabled_result) +setNotificationsEnabled_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class startUpdateVerification_args(object): + """ + Attributes: + - region + - carrier + - phone + - udidHash + - deviceInfo + - networkCode + - locale + """ + + + def __init__(self, region=None, carrier=None, phone=None, udidHash=None, deviceInfo=None, networkCode=None, locale=None,): + self.region = region + self.carrier = carrier + self.phone = phone + self.udidHash = udidHash + self.deviceInfo = deviceInfo + self.networkCode = networkCode + 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.region = 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.carrier = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.phone = 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.udidHash = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRUCT: + self.deviceInfo = DeviceInfo() + self.deviceInfo.read(iprot) + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.networkCode = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 8: + 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('startUpdateVerification_args') + if self.region is not None: + oprot.writeFieldBegin('region', TType.STRING, 2) + oprot.writeString(self.region.encode('utf-8') if sys.version_info[0] == 2 else self.region) + oprot.writeFieldEnd() + if self.carrier is not None: + oprot.writeFieldBegin('carrier', TType.I32, 3) + oprot.writeI32(self.carrier) + oprot.writeFieldEnd() + if self.phone is not None: + oprot.writeFieldBegin('phone', TType.STRING, 4) + oprot.writeString(self.phone.encode('utf-8') if sys.version_info[0] == 2 else self.phone) + oprot.writeFieldEnd() + if self.udidHash is not None: + oprot.writeFieldBegin('udidHash', TType.STRING, 5) + oprot.writeString(self.udidHash.encode('utf-8') if sys.version_info[0] == 2 else self.udidHash) + oprot.writeFieldEnd() + if self.deviceInfo is not None: + oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 6) + self.deviceInfo.write(oprot) + oprot.writeFieldEnd() + if self.networkCode is not None: + oprot.writeFieldBegin('networkCode', TType.STRING, 7) + oprot.writeString(self.networkCode.encode('utf-8') if sys.version_info[0] == 2 else self.networkCode) + oprot.writeFieldEnd() + if self.locale is not None: + oprot.writeFieldBegin('locale', TType.STRING, 8) + 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(startUpdateVerification_args) +startUpdateVerification_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'region', 'UTF8', None, ), # 2 + (3, TType.I32, 'carrier', None, None, ), # 3 + (4, TType.STRING, 'phone', 'UTF8', None, ), # 4 + (5, TType.STRING, 'udidHash', 'UTF8', None, ), # 5 + (6, TType.STRUCT, 'deviceInfo', [DeviceInfo, None], None, ), # 6 + (7, TType.STRING, 'networkCode', 'UTF8', None, ), # 7 + (8, TType.STRING, 'locale', 'UTF8', None, ), # 8 +) + + +class startUpdateVerification_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 = VerificationSessionData() + 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('startUpdateVerification_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(startUpdateVerification_result) +startUpdateVerification_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [VerificationSessionData, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class startVerification_args(object): + """ + Attributes: + - region + - carrier + - phone + - udidHash + - deviceInfo + - networkCode + - mid + - locale + - simInfo + - oldUdidHash + """ + + + def __init__(self, region=None, carrier=None, phone=None, udidHash=None, deviceInfo=None, networkCode=None, mid=None, locale=None, simInfo=None, oldUdidHash=None,): + self.region = region + self.carrier = carrier + self.phone = phone + self.udidHash = udidHash + self.deviceInfo = deviceInfo + self.networkCode = networkCode + self.mid = mid + self.locale = locale + self.simInfo = simInfo + self.oldUdidHash = oldUdidHash + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.region = 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.carrier = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.phone = 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.udidHash = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRUCT: + self.deviceInfo = DeviceInfo() + self.deviceInfo.read(iprot) + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.networkCode = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.mid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 9: + 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 == 10: + if ftype == TType.STRUCT: + self.simInfo = SIMInfo() + self.simInfo.read(iprot) + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.oldUdidHash = 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('startVerification_args') + if self.region is not None: + oprot.writeFieldBegin('region', TType.STRING, 2) + oprot.writeString(self.region.encode('utf-8') if sys.version_info[0] == 2 else self.region) + oprot.writeFieldEnd() + if self.carrier is not None: + oprot.writeFieldBegin('carrier', TType.I32, 3) + oprot.writeI32(self.carrier) + oprot.writeFieldEnd() + if self.phone is not None: + oprot.writeFieldBegin('phone', TType.STRING, 4) + oprot.writeString(self.phone.encode('utf-8') if sys.version_info[0] == 2 else self.phone) + oprot.writeFieldEnd() + if self.udidHash is not None: + oprot.writeFieldBegin('udidHash', TType.STRING, 5) + oprot.writeString(self.udidHash.encode('utf-8') if sys.version_info[0] == 2 else self.udidHash) + oprot.writeFieldEnd() + if self.deviceInfo is not None: + oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 6) + self.deviceInfo.write(oprot) + oprot.writeFieldEnd() + if self.networkCode is not None: + oprot.writeFieldBegin('networkCode', TType.STRING, 7) + oprot.writeString(self.networkCode.encode('utf-8') if sys.version_info[0] == 2 else self.networkCode) + oprot.writeFieldEnd() + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 8) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.locale is not None: + oprot.writeFieldBegin('locale', TType.STRING, 9) + oprot.writeString(self.locale.encode('utf-8') if sys.version_info[0] == 2 else self.locale) + oprot.writeFieldEnd() + if self.simInfo is not None: + oprot.writeFieldBegin('simInfo', TType.STRUCT, 10) + self.simInfo.write(oprot) + oprot.writeFieldEnd() + if self.oldUdidHash is not None: + oprot.writeFieldBegin('oldUdidHash', TType.STRING, 11) + oprot.writeString(self.oldUdidHash.encode('utf-8') if sys.version_info[0] == 2 else self.oldUdidHash) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(startVerification_args) +startVerification_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'region', 'UTF8', None, ), # 2 + (3, TType.I32, 'carrier', None, None, ), # 3 + (4, TType.STRING, 'phone', 'UTF8', None, ), # 4 + (5, TType.STRING, 'udidHash', 'UTF8', None, ), # 5 + (6, TType.STRUCT, 'deviceInfo', [DeviceInfo, None], None, ), # 6 + (7, TType.STRING, 'networkCode', 'UTF8', None, ), # 7 + (8, TType.STRING, 'mid', 'UTF8', None, ), # 8 + (9, TType.STRING, 'locale', 'UTF8', None, ), # 9 + (10, TType.STRUCT, 'simInfo', [SIMInfo, None], None, ), # 10 + (11, TType.STRING, 'oldUdidHash', 'UTF8', None, ), # 11 +) + + +class startVerification_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 = VerificationSessionData() + 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('startVerification_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(startVerification_result) +startVerification_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [VerificationSessionData, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateGroupPreferenceAttribute_args(object): + """ + Attributes: + - reqSeq + - groupMid + - updatedAttrs + """ + + + def __init__(self, reqSeq=None, groupMid=None, updatedAttrs=None,): + self.reqSeq = reqSeq + self.groupMid = groupMid + self.updatedAttrs = updatedAttrs + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.MAP: + self.updatedAttrs = {} + (_ktype2014, _vtype2015, _size2013) = iprot.readMapBegin() + for _i2017 in range(_size2013): + _key2018 = iprot.readI32() + _val2019 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.updatedAttrs[_key2018] = _val2019 + 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('updateGroupPreferenceAttribute_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.updatedAttrs is not None: + oprot.writeFieldBegin('updatedAttrs', TType.MAP, 3) + oprot.writeMapBegin(TType.I32, TType.STRING, len(self.updatedAttrs)) + for kiter2020, viter2021 in self.updatedAttrs.items(): + oprot.writeI32(kiter2020) + oprot.writeString(viter2021.encode('utf-8') if sys.version_info[0] == 2 else viter2021) + 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(updateGroupPreferenceAttribute_args) +updateGroupPreferenceAttribute_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'groupMid', 'UTF8', None, ), # 2 + (3, TType.MAP, 'updatedAttrs', (TType.I32, None, TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class updateGroupPreferenceAttribute_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('updateGroupPreferenceAttribute_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(updateGroupPreferenceAttribute_result) +updateGroupPreferenceAttribute_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class createRoomV2_args(object): + """ + Attributes: + - reqSeq + - contactIds + """ + + + def __init__(self, reqSeq=None, contactIds=None,): + self.reqSeq = reqSeq + self.contactIds = contactIds + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.LIST: + self.contactIds = [] + (_etype2025, _size2022) = iprot.readListBegin() + for _i2026 in range(_size2022): + _elem2027 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.contactIds.append(_elem2027) + 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('createRoomV2_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.contactIds is not None: + oprot.writeFieldBegin('contactIds', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.contactIds)) + for iter2028 in self.contactIds: + oprot.writeString(iter2028.encode('utf-8') if sys.version_info[0] == 2 else iter2028) + 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(createRoomV2_args) +createRoomV2_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.LIST, 'contactIds', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class createRoomV2_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 = Room() + 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('createRoomV2_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(createRoomV2_result) +createRoomV2_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Room, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class storeUpdateProfileAttribute_args(object): + """ + Attributes: + - seq + - profileAttribute + - value + """ + + + def __init__(self, seq=None, profileAttribute=None, value=None,): + self.seq = seq + 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 == 1: + if ftype == TType.I32: + self.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif 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('storeUpdateProfileAttribute_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + 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(storeUpdateProfileAttribute_args) +storeUpdateProfileAttribute_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.I32, 'profileAttribute', None, None, ), # 2 + (3, TType.STRING, 'value', 'UTF8', None, ), # 3 +) + + +class storeUpdateProfileAttribute_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('storeUpdateProfileAttribute_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(storeUpdateProfileAttribute_result) +storeUpdateProfileAttribute_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class syncContactBySnsIds_args(object): + """ + Attributes: + - reqSeq + - modifications + """ + + + def __init__(self, reqSeq=None, modifications=None,): + self.reqSeq = reqSeq + self.modifications = modifications + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.LIST: + self.modifications = [] + (_etype2032, _size2029) = iprot.readListBegin() + for _i2033 in range(_size2029): + _elem2034 = SnsFriendModification() + _elem2034.read(iprot) + self.modifications.append(_elem2034) + 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('syncContactBySnsIds_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.modifications is not None: + oprot.writeFieldBegin('modifications', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.modifications)) + for iter2035 in self.modifications: + iter2035.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(syncContactBySnsIds_args) +syncContactBySnsIds_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.LIST, 'modifications', (TType.STRUCT, [SnsFriendModification, None], False), None, ), # 2 +) + + +class syncContactBySnsIds_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 = [] + (_etype2039, _size2036) = iprot.readListBegin() + for _i2040 in range(_size2036): + _elem2041 = SnsFriendContactRegistration() + _elem2041.read(iprot) + self.success.append(_elem2041) + 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('syncContactBySnsIds_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter2042 in self.success: + iter2042.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(syncContactBySnsIds_result) +syncContactBySnsIds_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [SnsFriendContactRegistration, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class syncContacts_args(object): + """ + Attributes: + - reqSeq + - localContacts + """ + + + def __init__(self, reqSeq=None, localContacts=None,): + self.reqSeq = reqSeq + self.localContacts = localContacts + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.LIST: + self.localContacts = [] + (_etype2046, _size2043) = iprot.readListBegin() + for _i2047 in range(_size2043): + _elem2048 = ContactModification() + _elem2048.read(iprot) + self.localContacts.append(_elem2048) + 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('syncContacts_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.localContacts is not None: + oprot.writeFieldBegin('localContacts', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.localContacts)) + for iter2049 in self.localContacts: + iter2049.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(syncContacts_args) +syncContacts_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.LIST, 'localContacts', (TType.STRUCT, [ContactModification, None], False), None, ), # 2 +) + + +class syncContacts_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 = {} + (_ktype2051, _vtype2052, _size2050) = iprot.readMapBegin() + for _i2054 in range(_size2050): + _key2055 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val2056 = ContactRegistration() + _val2056.read(iprot) + self.success[_key2055] = _val2056 + 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('syncContacts_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) + for kiter2057, viter2058 in self.success.items(): + oprot.writeString(kiter2057.encode('utf-8') if sys.version_info[0] == 2 else kiter2057) + viter2058.write(oprot) + 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(syncContacts_result) +syncContacts_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRUCT, [ContactRegistration, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class trySendMessage_args(object): + """ + Attributes: + - seq + - message + """ + + + def __init__(self, seq=None, message=None,): + self.seq = seq + 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 == 1: + if ftype == TType.I32: + self.seq = iprot.readI32() + else: + iprot.skip(ftype) + elif 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('trySendMessage_args') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I32, 1) + oprot.writeI32(self.seq) + oprot.writeFieldEnd() + 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(trySendMessage_args) +trySendMessage_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'seq', None, None, ), # 1 + (2, TType.STRUCT, 'message', [Message, None], None, ), # 2 +) + + +class trySendMessage_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('trySendMessage_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(trySendMessage_result) +trySendMessage_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Message, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getNextMessagesV2_args(object): + """ + Attributes: + - messageBoxId + - startMessageId + - messagesCount + """ + + + def __init__(self, messageBoxId=None, startMessageId=None, messagesCount=None,): + self.messageBoxId = messageBoxId + self.startMessageId = startMessageId + self.messagesCount = messagesCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.messageBoxId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.startMessageId = MessageBoxV2MessageId() + self.startMessageId.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.messagesCount = 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('getNextMessagesV2_args') + if self.messageBoxId is not None: + oprot.writeFieldBegin('messageBoxId', TType.STRING, 2) + oprot.writeString(self.messageBoxId.encode('utf-8') if sys.version_info[0] == 2 else self.messageBoxId) + oprot.writeFieldEnd() + if self.startMessageId is not None: + oprot.writeFieldBegin('startMessageId', TType.STRUCT, 3) + self.startMessageId.write(oprot) + oprot.writeFieldEnd() + if self.messagesCount is not None: + oprot.writeFieldBegin('messagesCount', TType.I32, 4) + oprot.writeI32(self.messagesCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getNextMessagesV2_args) +getNextMessagesV2_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'messageBoxId', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'startMessageId', [MessageBoxV2MessageId, None], None, ), # 3 + (4, TType.I32, 'messagesCount', None, None, ), # 4 +) + + +class getNextMessagesV2_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 = [] + (_etype2062, _size2059) = iprot.readListBegin() + for _i2063 in range(_size2059): + _elem2064 = Message() + _elem2064.read(iprot) + self.success.append(_elem2064) + 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('getNextMessagesV2_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter2065 in self.success: + iter2065.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(getNextMessagesV2_result) +getNextMessagesV2_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Message, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getMessageBoxCompactWrapUpV2_args(object): + """ + Attributes: + - messageBoxId + """ + + + def __init__(self, messageBoxId=None,): + self.messageBoxId = messageBoxId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.messageBoxId = 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('getMessageBoxCompactWrapUpV2_args') + if self.messageBoxId is not None: + oprot.writeFieldBegin('messageBoxId', TType.STRING, 2) + oprot.writeString(self.messageBoxId.encode('utf-8') if sys.version_info[0] == 2 else self.messageBoxId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getMessageBoxCompactWrapUpV2_args) +getMessageBoxCompactWrapUpV2_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'messageBoxId', 'UTF8', None, ), # 2 +) + + +class getMessageBoxCompactWrapUpV2_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 = TMessageBoxWrapUp() + 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('getMessageBoxCompactWrapUpV2_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(getMessageBoxCompactWrapUpV2_result) +getMessageBoxCompactWrapUpV2_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TMessageBoxWrapUp, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class getRecentMessagesV2_args(object): + """ + Attributes: + - messageBoxId + - messagesCount + """ + + + def __init__(self, messageBoxId=None, messagesCount=None,): + self.messageBoxId = messageBoxId + self.messagesCount = messagesCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.messageBoxId = 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.messagesCount = 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('getRecentMessagesV2_args') + if self.messageBoxId is not None: + oprot.writeFieldBegin('messageBoxId', TType.STRING, 2) + oprot.writeString(self.messageBoxId.encode('utf-8') if sys.version_info[0] == 2 else self.messageBoxId) + oprot.writeFieldEnd() + if self.messagesCount is not None: + oprot.writeFieldBegin('messagesCount', TType.I32, 3) + oprot.writeI32(self.messagesCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(getRecentMessagesV2_args) +getRecentMessagesV2_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'messageBoxId', 'UTF8', None, ), # 2 + (3, TType.I32, 'messagesCount', None, None, ), # 3 +) + + +class getRecentMessagesV2_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 = [] + (_etype2069, _size2066) = iprot.readListBegin() + for _i2070 in range(_size2066): + _elem2071 = Message() + _elem2071.read(iprot) + self.success.append(_elem2071) + 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('getRecentMessagesV2_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter2072 in self.success: + iter2072.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(getRecentMessagesV2_result) +getRecentMessagesV2_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Message, None], False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class validateContactsOnBot_args(object): + """ + Attributes: + - contacts + """ + + + def __init__(self, contacts=None,): + self.contacts = contacts + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.contacts = [] + (_etype2076, _size2073) = iprot.readListBegin() + for _i2077 in range(_size2073): + _elem2078 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.contacts.append(_elem2078) + 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('validateContactsOnBot_args') + if self.contacts is not None: + oprot.writeFieldBegin('contacts', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.contacts)) + for iter2079 in self.contacts: + oprot.writeString(iter2079.encode('utf-8') if sys.version_info[0] == 2 else iter2079) + 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(validateContactsOnBot_args) +validateContactsOnBot_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.LIST, 'contacts', (TType.STRING, 'UTF8', False), None, ), # 2 +) + + +class validateContactsOnBot_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 = {} + (_ktype2081, _vtype2082, _size2080) = iprot.readMapBegin() + for _i2084 in range(_size2080): + _key2085 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val2086 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success[_key2085] = _val2086 + 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('validateContactsOnBot_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) + for kiter2087, viter2088 in self.success.items(): + oprot.writeString(kiter2087.encode('utf-8') if sys.version_info[0] == 2 else kiter2087) + oprot.writeString(viter2088.encode('utf-8') if sys.version_info[0] == 2 else viter2088) + 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(validateContactsOnBot_result) +validateContactsOnBot_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class tryFriendRequest_args(object): + """ + Attributes: + - midOrEMid + - method + - friendRequestParams + """ + + + def __init__(self, midOrEMid=None, method=None, friendRequestParams=None,): + self.midOrEMid = midOrEMid + self.method = method + self.friendRequestParams = friendRequestParams + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.midOrEMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.method = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.friendRequestParams = 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('tryFriendRequest_args') + if self.midOrEMid is not None: + oprot.writeFieldBegin('midOrEMid', TType.STRING, 1) + oprot.writeString(self.midOrEMid.encode('utf-8') if sys.version_info[0] == 2 else self.midOrEMid) + oprot.writeFieldEnd() + if self.method is not None: + oprot.writeFieldBegin('method', TType.I32, 2) + oprot.writeI32(self.method) + oprot.writeFieldEnd() + if self.friendRequestParams is not None: + oprot.writeFieldBegin('friendRequestParams', TType.STRING, 3) + oprot.writeString(self.friendRequestParams.encode('utf-8') if sys.version_info[0] == 2 else self.friendRequestParams) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(tryFriendRequest_args) +tryFriendRequest_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'midOrEMid', 'UTF8', None, ), # 1 + (2, TType.I32, 'method', None, None, ), # 2 + (3, TType.STRING, 'friendRequestParams', 'UTF8', None, ), # 3 +) + + +class tryFriendRequest_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('tryFriendRequest_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(tryFriendRequest_result) +tryFriendRequest_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class unblockContact_args(object): + """ + Attributes: + - reqSeq + - id + """ + + + def __init__(self, reqSeq=None, id=None,): + self.reqSeq = reqSeq + self.id = id + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.id = 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('unblockContact_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.id is not None: + oprot.writeFieldBegin('id', TType.STRING, 2) + oprot.writeString(self.id.encode('utf-8') if sys.version_info[0] == 2 else self.id) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(unblockContact_args) +unblockContact_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'id', 'UTF8', None, ), # 2 +) + + +class unblockContact_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('unblockContact_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(unblockContact_result) +unblockContact_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class unblockRecommendation_args(object): + """ + Attributes: + - reqSeq + - id + """ + + + def __init__(self, reqSeq=None, id=None,): + self.reqSeq = reqSeq + self.id = id + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.id = 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('unblockRecommendation_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.id is not None: + oprot.writeFieldBegin('id', TType.STRING, 2) + oprot.writeString(self.id.encode('utf-8') if sys.version_info[0] == 2 else self.id) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(unblockRecommendation_args) +unblockRecommendation_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'id', 'UTF8', None, ), # 2 +) + + +class unblockRecommendation_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('unblockRecommendation_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(unblockRecommendation_result) +unblockRecommendation_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class unregisterUserAndDevice_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('unregisterUserAndDevice_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(unregisterUserAndDevice_args) +unregisterUserAndDevice_args.thrift_spec = ( +) + + +class unregisterUserAndDevice_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('unregisterUserAndDevice_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(unregisterUserAndDevice_result) +unregisterUserAndDevice_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateApnsDeviceToken_args(object): + """ + Attributes: + - apnsDeviceToken + """ + + + def __init__(self, apnsDeviceToken=None,): + self.apnsDeviceToken = apnsDeviceToken + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.apnsDeviceToken = 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('updateApnsDeviceToken_args') + if self.apnsDeviceToken is not None: + oprot.writeFieldBegin('apnsDeviceToken', TType.STRING, 2) + oprot.writeBinary(self.apnsDeviceToken) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(updateApnsDeviceToken_args) +updateApnsDeviceToken_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'apnsDeviceToken', 'BINARY', None, ), # 2 +) + + +class updateApnsDeviceToken_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('updateApnsDeviceToken_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(updateApnsDeviceToken_result) +updateApnsDeviceToken_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateBuddySetting_args(object): + """ + Attributes: + - key + - value + """ + + + def __init__(self, key=None, value=None,): + self.key = key + 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.STRING: + self.key = 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.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('updateBuddySetting_args') + if self.key is not None: + oprot.writeFieldBegin('key', TType.STRING, 2) + oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key) + 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(updateBuddySetting_args) +updateBuddySetting_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'key', 'UTF8', None, ), # 2 + (3, TType.STRING, 'value', 'UTF8', None, ), # 3 +) + + +class updateBuddySetting_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('updateBuddySetting_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(updateBuddySetting_result) +updateBuddySetting_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateC2DMRegistrationId_args(object): + """ + Attributes: + - registrationId + """ + + + def __init__(self, registrationId=None,): + self.registrationId = registrationId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.registrationId = 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('updateC2DMRegistrationId_args') + if self.registrationId is not None: + oprot.writeFieldBegin('registrationId', TType.STRING, 2) + oprot.writeString(self.registrationId.encode('utf-8') if sys.version_info[0] == 2 else self.registrationId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(updateC2DMRegistrationId_args) +updateC2DMRegistrationId_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'registrationId', 'UTF8', None, ), # 2 +) + + +class updateC2DMRegistrationId_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('updateC2DMRegistrationId_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(updateC2DMRegistrationId_result) +updateC2DMRegistrationId_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateContactSetting_args(object): + """ + Attributes: + - reqSeq + - mid + - flag + - value + """ + + + def __init__(self, reqSeq=None, mid=None, flag=None, value=None,): + self.reqSeq = reqSeq + self.mid = mid + self.flag = flag + 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 == 1: + if ftype == TType.I32: + self.reqSeq = iprot.readI32() + 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) + elif fid == 3: + if ftype == TType.I32: + self.flag = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + 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('updateContactSetting_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + 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() + if self.flag is not None: + oprot.writeFieldBegin('flag', TType.I32, 3) + oprot.writeI32(self.flag) + oprot.writeFieldEnd() + if self.value is not None: + oprot.writeFieldBegin('value', TType.STRING, 4) + 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(updateContactSetting_args) +updateContactSetting_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 + (3, TType.I32, 'flag', None, None, ), # 3 + (4, TType.STRING, 'value', 'UTF8', None, ), # 4 +) + + +class updateContactSetting_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('updateContactSetting_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(updateContactSetting_result) +updateContactSetting_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateCustomModeSettings_args(object): + """ + Attributes: + - customMode + - paramMap + """ + + + def __init__(self, customMode=None, paramMap=None,): + self.customMode = customMode + self.paramMap = paramMap + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.customMode = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.MAP: + self.paramMap = {} + (_ktype2090, _vtype2091, _size2089) = iprot.readMapBegin() + for _i2093 in range(_size2089): + _key2094 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val2095 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.paramMap[_key2094] = _val2095 + 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('updateCustomModeSettings_args') + if self.customMode is not None: + oprot.writeFieldBegin('customMode', TType.I32, 2) + oprot.writeI32(self.customMode) + oprot.writeFieldEnd() + if self.paramMap is not None: + oprot.writeFieldBegin('paramMap', TType.MAP, 3) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.paramMap)) + for kiter2096, viter2097 in self.paramMap.items(): + oprot.writeString(kiter2096.encode('utf-8') if sys.version_info[0] == 2 else kiter2096) + oprot.writeString(viter2097.encode('utf-8') if sys.version_info[0] == 2 else viter2097) + 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(updateCustomModeSettings_args) +updateCustomModeSettings_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'customMode', None, None, ), # 2 + (3, TType.MAP, 'paramMap', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class updateCustomModeSettings_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('updateCustomModeSettings_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(updateCustomModeSettings_result) +updateCustomModeSettings_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateDeviceInfo_args(object): + """ + Attributes: + - deviceUid + - deviceInfo + """ + + + def __init__(self, deviceUid=None, deviceInfo=None,): + self.deviceUid = deviceUid + self.deviceInfo = deviceInfo + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.deviceUid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.deviceInfo = DeviceInfo() + self.deviceInfo.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('updateDeviceInfo_args') + if self.deviceUid is not None: + oprot.writeFieldBegin('deviceUid', TType.STRING, 2) + oprot.writeString(self.deviceUid.encode('utf-8') if sys.version_info[0] == 2 else self.deviceUid) + oprot.writeFieldEnd() + if self.deviceInfo is not None: + oprot.writeFieldBegin('deviceInfo', TType.STRUCT, 3) + self.deviceInfo.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(updateDeviceInfo_args) +updateDeviceInfo_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'deviceUid', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'deviceInfo', [DeviceInfo, None], None, ), # 3 +) + + +class updateDeviceInfo_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('updateDeviceInfo_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(updateDeviceInfo_result) +updateDeviceInfo_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateGroup_args(object): + """ + Attributes: + - reqSeq + - group + """ + + + def __init__(self, reqSeq=None, group=None,): + self.reqSeq = reqSeq + self.group = group + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.STRUCT: + self.group = Group() + self.group.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('updateGroup_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.group is not None: + oprot.writeFieldBegin('group', TType.STRUCT, 2) + self.group.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(updateGroup_args) +updateGroup_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRUCT, 'group', [Group, None], None, ), # 2 +) + + +class updateGroup_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('updateGroup_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(updateGroup_result) +updateGroup_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateNotificationToken_args(object): + """ + Attributes: + - type + - token + """ + + + def __init__(self, type=None, token=None,): + self.type = type + self.token = token + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.token = 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('updateNotificationToken_args') + if self.token is not None: + oprot.writeFieldBegin('token', TType.STRING, 2) + oprot.writeString(self.token.encode('utf-8') if sys.version_info[0] == 2 else self.token) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 3) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(updateNotificationToken_args) +updateNotificationToken_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'token', 'UTF8', None, ), # 2 + (3, TType.I32, 'type', None, None, ), # 3 +) + + +class updateNotificationToken_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('updateNotificationToken_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(updateNotificationToken_result) +updateNotificationToken_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateNotificationTokenWithBytes_args(object): + """ + Attributes: + - type + - token + """ + + + def __init__(self, type=None, token=None,): + self.type = type + self.token = token + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.token = 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('updateNotificationTokenWithBytes_args') + if self.token is not None: + oprot.writeFieldBegin('token', TType.STRING, 2) + oprot.writeBinary(self.token) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 3) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(updateNotificationTokenWithBytes_args) +updateNotificationTokenWithBytes_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'token', 'BINARY', None, ), # 2 + (3, TType.I32, 'type', None, None, ), # 3 +) + + +class updateNotificationTokenWithBytes_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('updateNotificationTokenWithBytes_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(updateNotificationTokenWithBytes_result) +updateNotificationTokenWithBytes_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateProfile_args(object): + """ + Attributes: + - reqSeq + - profile + """ + + + def __init__(self, reqSeq=None, profile=None,): + self.reqSeq = reqSeq + self.profile = profile + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.STRUCT: + self.profile = Profile() + self.profile.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('updateProfile_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.profile is not None: + oprot.writeFieldBegin('profile', TType.STRUCT, 2) + self.profile.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(updateProfile_args) +updateProfile_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRUCT, 'profile', [Profile, None], None, ), # 2 +) + + +class updateProfile_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('updateProfile_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(updateProfile_result) +updateProfile_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateProfileAttribute_args(object): + """ + Attributes: + - reqSeq + - attr + - value + """ + + + def __init__(self, reqSeq=None, attr=None, value=None,): + self.reqSeq = reqSeq + self.attr = attr + 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 == 1: + if ftype == TType.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.attr = 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('updateProfileAttribute_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.attr is not None: + oprot.writeFieldBegin('attr', TType.I32, 2) + oprot.writeI32(self.attr) + 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(updateProfileAttribute_args) +updateProfileAttribute_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.I32, 'attr', None, None, ), # 2 + (3, TType.STRING, 'value', 'UTF8', None, ), # 3 +) + + +class updateProfileAttribute_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('updateProfileAttribute_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(updateProfileAttribute_result) +updateProfileAttribute_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateRegion_args(object): + """ + Attributes: + - region + """ + + + def __init__(self, region=None,): + self.region = region + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.region = 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('updateRegion_args') + if self.region is not None: + oprot.writeFieldBegin('region', TType.STRING, 2) + oprot.writeString(self.region.encode('utf-8') if sys.version_info[0] == 2 else self.region) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(updateRegion_args) +updateRegion_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'region', 'UTF8', None, ), # 2 +) + + +class updateRegion_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('updateRegion_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(updateRegion_result) +updateRegion_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateSettings_args(object): + """ + Attributes: + - reqSeq + - settings + """ + + + def __init__(self, reqSeq=None, settings=None,): + self.reqSeq = reqSeq + 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 == 1: + if ftype == TType.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.settings = Settings() + self.settings.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('updateSettings_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.settings is not None: + oprot.writeFieldBegin('settings', TType.STRUCT, 2) + self.settings.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(updateSettings_args) +updateSettings_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRUCT, 'settings', [Settings, None], None, ), # 2 +) + + +class updateSettings_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('updateSettings_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(updateSettings_result) +updateSettings_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateSettings2_args(object): + """ + Attributes: + - reqSeq + - settings + """ + + + def __init__(self, reqSeq=None, settings=None,): + self.reqSeq = reqSeq + 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 == 1: + if ftype == TType.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.settings = Settings() + self.settings.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('updateSettings2_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.settings is not None: + oprot.writeFieldBegin('settings', TType.STRUCT, 2) + self.settings.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(updateSettings2_args) +updateSettings2_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRUCT, 'settings', [Settings, None], None, ), # 2 +) + + +class updateSettings2_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('updateSettings2_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(updateSettings2_result) +updateSettings2_result.thrift_spec = ( + (0, TType.I32, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateSettingsAttribute_args(object): + """ + Attributes: + - reqSeq + - attr + - value + """ + + + def __init__(self, reqSeq=None, attr=None, value=None,): + self.reqSeq = reqSeq + self.attr = attr + 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 == 1: + if ftype == TType.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.attr = 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('updateSettingsAttribute_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.attr is not None: + oprot.writeFieldBegin('attr', TType.I32, 2) + oprot.writeI32(self.attr) + 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(updateSettingsAttribute_args) +updateSettingsAttribute_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.I32, 'attr', None, None, ), # 2 + (3, TType.STRING, 'value', 'UTF8', None, ), # 3 +) + + +class updateSettingsAttribute_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('updateSettingsAttribute_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(updateSettingsAttribute_result) +updateSettingsAttribute_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class updateSettingsAttributes_args(object): + """ + Attributes: + - reqSeq + - attrBitset + - settings + """ + + + def __init__(self, reqSeq=None, attrBitset=None, settings=None,): + self.reqSeq = reqSeq + self.attrBitset = attrBitset + 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 == 1: + if ftype == TType.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.attrBitset = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.settings = Settings() + self.settings.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('updateSettingsAttributes_args') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.attrBitset is not None: + oprot.writeFieldBegin('attrBitset', TType.I32, 2) + oprot.writeI32(self.attrBitset) + oprot.writeFieldEnd() + if self.settings is not None: + oprot.writeFieldBegin('settings', TType.STRUCT, 3) + self.settings.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(updateSettingsAttributes_args) +updateSettingsAttributes_args.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.I32, 'attrBitset', None, None, ), # 2 + (3, TType.STRUCT, 'settings', [Settings, None], None, ), # 3 +) + + +class updateSettingsAttributes_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('updateSettingsAttributes_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(updateSettingsAttributes_result) +updateSettingsAttributes_result.thrift_spec = ( + (0, TType.I32, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class verifyIdentityCredential_args(object): + """ + Attributes: + - identityProvider + - identifier + - password + """ + + + def __init__(self, identityProvider=None, identifier=None, password=None,): + self.identityProvider = identityProvider + self.identifier = identifier + self.password = password + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 8: + if ftype == TType.I32: + self.identityProvider = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.identifier = 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.password = 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('verifyIdentityCredential_args') + if self.identifier is not None: + oprot.writeFieldBegin('identifier', TType.STRING, 3) + oprot.writeString(self.identifier.encode('utf-8') if sys.version_info[0] == 2 else self.identifier) + oprot.writeFieldEnd() + if self.password is not None: + oprot.writeFieldBegin('password', TType.STRING, 4) + oprot.writeString(self.password.encode('utf-8') if sys.version_info[0] == 2 else self.password) + oprot.writeFieldEnd() + if self.identityProvider is not None: + oprot.writeFieldBegin('identityProvider', TType.I32, 8) + oprot.writeI32(self.identityProvider) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(verifyIdentityCredential_args) +verifyIdentityCredential_args.thrift_spec = ( + None, # 0 + None, # 1 + None, # 2 + (3, TType.STRING, 'identifier', 'UTF8', None, ), # 3 + (4, TType.STRING, 'password', 'UTF8', None, ), # 4 + None, # 5 + None, # 6 + None, # 7 + (8, TType.I32, 'identityProvider', None, None, ), # 8 +) + + +class verifyIdentityCredential_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('verifyIdentityCredential_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(verifyIdentityCredential_result) +verifyIdentityCredential_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class verifyIdentityCredentialWithResult_args(object): + """ + Attributes: + - identityCredential + """ + + + def __init__(self, identityCredential=None,): + self.identityCredential = identityCredential + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.identityCredential = IdentityCredential() + self.identityCredential.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('verifyIdentityCredentialWithResult_args') + if self.identityCredential is not None: + oprot.writeFieldBegin('identityCredential', TType.STRUCT, 2) + self.identityCredential.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(verifyIdentityCredentialWithResult_args) +verifyIdentityCredentialWithResult_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRUCT, 'identityCredential', [IdentityCredential, None], None, ), # 2 +) + + +class verifyIdentityCredentialWithResult_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 = UserAuthStatus() + 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('verifyIdentityCredentialWithResult_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(verifyIdentityCredentialWithResult_result) +verifyIdentityCredentialWithResult_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [UserAuthStatus, None], None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class verifyPhone_args(object): + """ + Attributes: + - sessionId + - pinCode + - udidHash + """ + + + def __init__(self, sessionId=None, pinCode=None, udidHash=None,): + self.sessionId = sessionId + self.pinCode = pinCode + self.udidHash = udidHash + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.sessionId = 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.pinCode = 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.udidHash = 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('verifyPhone_args') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + if self.pinCode is not None: + oprot.writeFieldBegin('pinCode', TType.STRING, 3) + oprot.writeString(self.pinCode.encode('utf-8') if sys.version_info[0] == 2 else self.pinCode) + oprot.writeFieldEnd() + if self.udidHash is not None: + oprot.writeFieldBegin('udidHash', TType.STRING, 4) + oprot.writeString(self.udidHash.encode('utf-8') if sys.version_info[0] == 2 else self.udidHash) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(verifyPhone_args) +verifyPhone_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 + (3, TType.STRING, 'pinCode', 'UTF8', None, ), # 3 + (4, TType.STRING, 'udidHash', 'UTF8', None, ), # 4 +) + + +class verifyPhone_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('verifyPhone_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(verifyPhone_result) +verifyPhone_result.thrift_spec = ( + (0, TType.I32, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [TalkException, None], None, ), # 1 +) + + +class verifyQrcode_args(object): + """ + Attributes: + - verifier + - pinCode + """ + + + def __init__(self, verifier=None, pinCode=None,): + self.verifier = verifier + self.pinCode = pinCode + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.verifier = 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.pinCode = 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('verifyQrcode_args') + if self.verifier is not None: + oprot.writeFieldBegin('verifier', TType.STRING, 2) + oprot.writeString(self.verifier.encode('utf-8') if sys.version_info[0] == 2 else self.verifier) + oprot.writeFieldEnd() + if self.pinCode is not None: + oprot.writeFieldBegin('pinCode', TType.STRING, 3) + oprot.writeString(self.pinCode.encode('utf-8') if sys.version_info[0] == 2 else self.pinCode) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) +all_structs.append(verifyQrcode_args) +verifyQrcode_args.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'verifier', 'UTF8', None, ), # 2 + (3, TType.STRING, 'pinCode', 'UTF8', None, ), # 3 +) + + +class verifyQrcode_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('verifyQrcode_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(verifyQrcode_result) +verifyQrcode_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/akad/UniversalNotificationService.py b/akad/UniversalNotificationService.py new file mode 100644 index 0000000..50ddb2e --- /dev/null +++ b/akad/UniversalNotificationService.py @@ -0,0 +1,244 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 + + def process(self, iprot, oprot): + (name, type, seqid) = iprot.readMessageBegin() + 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/akad/__init__.py b/akad/__init__.py new file mode 100644 index 0000000..3907e4b --- /dev/null +++ b/akad/__init__.py @@ -0,0 +1 @@ +__all__ = ['ttypes', 'constants', 'AccountSupervisorService', 'SpotService', 'BotService', 'AgeCheckService', 'BuddyManagementService', 'BuddyService', 'ChannelApplicationProvidedService', 'ChannelService', 'MessageService', 'ShopService', 'SnsAdaptorService', 'TalkService', 'UniversalNotificationService', 'CallService', 'AuthService', 'SquareService'] diff --git a/akad/__pycache__/AuthService.cpython-35.pyc b/akad/__pycache__/AuthService.cpython-35.pyc new file mode 100644 index 0000000..5ec7d82 Binary files /dev/null and b/akad/__pycache__/AuthService.cpython-35.pyc differ diff --git a/akad/__pycache__/AuthService.cpython-36.pyc b/akad/__pycache__/AuthService.cpython-36.pyc new file mode 100644 index 0000000..3d10ac9 Binary files /dev/null and b/akad/__pycache__/AuthService.cpython-36.pyc differ diff --git a/akad/__pycache__/CallService.cpython-35.pyc b/akad/__pycache__/CallService.cpython-35.pyc new file mode 100644 index 0000000..5bf245c Binary files /dev/null and b/akad/__pycache__/CallService.cpython-35.pyc differ diff --git a/akad/__pycache__/CallService.cpython-36.pyc b/akad/__pycache__/CallService.cpython-36.pyc new file mode 100644 index 0000000..7b3d8ee Binary files /dev/null and b/akad/__pycache__/CallService.cpython-36.pyc differ diff --git a/akad/__pycache__/ChannelService.cpython-35.pyc b/akad/__pycache__/ChannelService.cpython-35.pyc new file mode 100644 index 0000000..573cf8a Binary files /dev/null and b/akad/__pycache__/ChannelService.cpython-35.pyc differ diff --git a/akad/__pycache__/ChannelService.cpython-36.pyc b/akad/__pycache__/ChannelService.cpython-36.pyc new file mode 100644 index 0000000..05ca046 Binary files /dev/null and b/akad/__pycache__/ChannelService.cpython-36.pyc differ diff --git a/akad/__pycache__/SquareService.cpython-35.pyc b/akad/__pycache__/SquareService.cpython-35.pyc new file mode 100644 index 0000000..78e75ce Binary files /dev/null and b/akad/__pycache__/SquareService.cpython-35.pyc differ diff --git a/akad/__pycache__/SquareService.cpython-36.pyc b/akad/__pycache__/SquareService.cpython-36.pyc new file mode 100644 index 0000000..9c25b5e Binary files /dev/null and b/akad/__pycache__/SquareService.cpython-36.pyc differ diff --git a/akad/__pycache__/TalkService.cpython-35.pyc b/akad/__pycache__/TalkService.cpython-35.pyc new file mode 100644 index 0000000..4a637f0 Binary files /dev/null and b/akad/__pycache__/TalkService.cpython-35.pyc differ diff --git a/akad/__pycache__/TalkService.cpython-36.pyc b/akad/__pycache__/TalkService.cpython-36.pyc new file mode 100644 index 0000000..4fd0aff Binary files /dev/null and b/akad/__pycache__/TalkService.cpython-36.pyc differ diff --git a/akad/__pycache__/__init__.cpython-35.pyc b/akad/__pycache__/__init__.cpython-35.pyc new file mode 100644 index 0000000..cdef7ab Binary files /dev/null and b/akad/__pycache__/__init__.cpython-35.pyc differ diff --git a/akad/__pycache__/__init__.cpython-36.pyc b/akad/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..fe0f9f6 Binary files /dev/null and b/akad/__pycache__/__init__.cpython-36.pyc differ diff --git a/akad/__pycache__/ttypes.cpython-35.pyc b/akad/__pycache__/ttypes.cpython-35.pyc new file mode 100644 index 0000000..f8a2959 Binary files /dev/null and b/akad/__pycache__/ttypes.cpython-35.pyc differ diff --git a/akad/__pycache__/ttypes.cpython-36.pyc b/akad/__pycache__/ttypes.cpython-36.pyc new file mode 100644 index 0000000..6545975 Binary files /dev/null and b/akad/__pycache__/ttypes.cpython-36.pyc differ diff --git a/akad/constants.py b/akad/constants.py new file mode 100644 index 0000000..6aa054d --- /dev/null +++ b/akad/constants.py @@ -0,0 +1,14 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 +from .ttypes import * diff --git a/akad/ttypes.py b/akad/ttypes.py new file mode 100644 index 0000000..a30a13f --- /dev/null +++ b/akad/ttypes.py @@ -0,0 +1,36444 @@ +# +# Autogenerated by Thrift Compiler (0.11.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 + +from thrift.transport import TTransport +all_structs = [] + + +class ApplicationType(object): + IOS = 16 + IOS_RC = 17 + IOS_BETA = 18 + IOS_ALPHA = 19 + ANDROID = 32 + ANDROID_RC = 33 + ANDROID_BETA = 34 + ANDROID_ALPHA = 35 + WAP = 48 + WAP_RC = 49 + WAP_BETA = 50 + WAP_ALPHA = 51 + BOT = 64 + BOT_RC = 65 + BOT_BETA = 66 + BOT_ALPHA = 67 + WEB = 80 + WEB_RC = 81 + WEB_BETA = 82 + WEB_ALPHA = 83 + DESKTOPWIN = 96 + DESKTOPWIN_RC = 97 + DESKTOPWIN_BETA = 98 + DESKTOPWIN_ALPHA = 99 + DESKTOPMAC = 112 + DESKTOPMAC_RC = 113 + DESKTOPMAC_BETA = 114 + DESKTOPMAC_ALPHA = 115 + CHANNELGW = 128 + CHANNELGW_RC = 129 + CHANNELGW_BETA = 130 + CHANNELGW_ALPHA = 131 + CHANNELCP = 144 + CHANNELCP_RC = 145 + CHANNELCP_BETA = 146 + CHANNELCP_ALPHA = 147 + WINPHONE = 160 + WINPHONE_RC = 161 + WINPHONE_BETA = 162 + WINPHONE_ALPHA = 163 + BLACKBERRY = 176 + BLACKBERRY_RC = 177 + BLACKBERRY_BETA = 178 + BLACKBERRY_ALPHA = 179 + WINMETRO = 192 + WINMETRO_RC = 193 + WINMETRO_BETA = 194 + WINMETRO_ALPHA = 195 + S40 = 208 + S40_RC = 209 + S40_BETA = 210 + S40_ALPHA = 211 + CHRONO = 224 + CHRONO_RC = 225 + CHRONO_BETA = 226 + CHRONO_ALPHA = 227 + TIZEN = 256 + TIZEN_RC = 257 + TIZEN_BETA = 258 + TIZEN_ALPHA = 259 + VIRTUAL = 272 + FIREFOXOS = 288 + FIREFOXOS_RC = 289 + FIREFOXOS_BETA = 290 + FIREFOXOS_ALPHA = 291 + IOSIPAD = 304 + IOSIPAD_RC = 305 + IOSIPAD_BETA = 306 + IOSIPAD_ALPHA = 307 + BIZIOS = 320 + BIZIOS_RC = 321 + BIZIOS_BETA = 322 + BIZIOS_ALPHA = 323 + BIZANDROID = 336 + BIZANDROID_RC = 337 + BIZANDROID_BETA = 338 + BIZANDROID_ALPHA = 339 + BIZBOT = 352 + BIZBOT_RC = 353 + BIZBOT_BETA = 354 + BIZBOT_ALPHA = 355 + CHROMEOS = 368 + CHROMEOS_RC = 369 + CHROMEOS_BETA = 370 + CHROMEOS_ALPHA = 371 + ANDROIDLITE = 384 + ANDROIDLITE_RC = 385 + ANDROIDLITE_BETA = 386 + ANDROIDLITE_ALPHA = 387 + WIN10 = 400 + WIN10_RC = 401 + WIN10_BETA = 402 + WIN10_ALPHA = 403 + BIZWEB = 416 + BIZWEB_RC = 417 + BIZWEB_BETA = 418 + BIZWEB_ALPHA = 419 + DUMMYPRIMARY = 432 + DUMMYPRIMARY_RC = 433 + DUMMYPRIMARY_BETA = 434 + DUMMYPRIMARY_ALPHA = 435 + SQUARE = 448 + SQUARE_RC = 449 + SQUARE_BETA = 450 + SQUARE_ALPHA = 451 + INTERNAL = 464 + INTERNAL_RC = 465 + INTERNAL_BETA = 466 + INTERNAL_ALPHA = 467 + CLOVAFRIENDS = 480 + CLOVAFRIENDS_RC = 481 + CLOVAFRIENDS_BETA = 482 + CLOVAFRIENDS_ALPHA = 483 + + _VALUES_TO_NAMES = { + 16: "IOS", + 17: "IOS_RC", + 18: "IOS_BETA", + 19: "IOS_ALPHA", + 32: "ANDROID", + 33: "ANDROID_RC", + 34: "ANDROID_BETA", + 35: "ANDROID_ALPHA", + 48: "WAP", + 49: "WAP_RC", + 50: "WAP_BETA", + 51: "WAP_ALPHA", + 64: "BOT", + 65: "BOT_RC", + 66: "BOT_BETA", + 67: "BOT_ALPHA", + 80: "WEB", + 81: "WEB_RC", + 82: "WEB_BETA", + 83: "WEB_ALPHA", + 96: "DESKTOPWIN", + 97: "DESKTOPWIN_RC", + 98: "DESKTOPWIN_BETA", + 99: "DESKTOPWIN_ALPHA", + 112: "DESKTOPMAC", + 113: "DESKTOPMAC_RC", + 114: "DESKTOPMAC_BETA", + 115: "DESKTOPMAC_ALPHA", + 128: "CHANNELGW", + 129: "CHANNELGW_RC", + 130: "CHANNELGW_BETA", + 131: "CHANNELGW_ALPHA", + 144: "CHANNELCP", + 145: "CHANNELCP_RC", + 146: "CHANNELCP_BETA", + 147: "CHANNELCP_ALPHA", + 160: "WINPHONE", + 161: "WINPHONE_RC", + 162: "WINPHONE_BETA", + 163: "WINPHONE_ALPHA", + 176: "BLACKBERRY", + 177: "BLACKBERRY_RC", + 178: "BLACKBERRY_BETA", + 179: "BLACKBERRY_ALPHA", + 192: "WINMETRO", + 193: "WINMETRO_RC", + 194: "WINMETRO_BETA", + 195: "WINMETRO_ALPHA", + 208: "S40", + 209: "S40_RC", + 210: "S40_BETA", + 211: "S40_ALPHA", + 224: "CHRONO", + 225: "CHRONO_RC", + 226: "CHRONO_BETA", + 227: "CHRONO_ALPHA", + 256: "TIZEN", + 257: "TIZEN_RC", + 258: "TIZEN_BETA", + 259: "TIZEN_ALPHA", + 272: "VIRTUAL", + 288: "FIREFOXOS", + 289: "FIREFOXOS_RC", + 290: "FIREFOXOS_BETA", + 291: "FIREFOXOS_ALPHA", + 304: "IOSIPAD", + 305: "IOSIPAD_RC", + 306: "IOSIPAD_BETA", + 307: "IOSIPAD_ALPHA", + 320: "BIZIOS", + 321: "BIZIOS_RC", + 322: "BIZIOS_BETA", + 323: "BIZIOS_ALPHA", + 336: "BIZANDROID", + 337: "BIZANDROID_RC", + 338: "BIZANDROID_BETA", + 339: "BIZANDROID_ALPHA", + 352: "BIZBOT", + 353: "BIZBOT_RC", + 354: "BIZBOT_BETA", + 355: "BIZBOT_ALPHA", + 368: "CHROMEOS", + 369: "CHROMEOS_RC", + 370: "CHROMEOS_BETA", + 371: "CHROMEOS_ALPHA", + 384: "ANDROIDLITE", + 385: "ANDROIDLITE_RC", + 386: "ANDROIDLITE_BETA", + 387: "ANDROIDLITE_ALPHA", + 400: "WIN10", + 401: "WIN10_RC", + 402: "WIN10_BETA", + 403: "WIN10_ALPHA", + 416: "BIZWEB", + 417: "BIZWEB_RC", + 418: "BIZWEB_BETA", + 419: "BIZWEB_ALPHA", + 432: "DUMMYPRIMARY", + 433: "DUMMYPRIMARY_RC", + 434: "DUMMYPRIMARY_BETA", + 435: "DUMMYPRIMARY_ALPHA", + 448: "SQUARE", + 449: "SQUARE_RC", + 450: "SQUARE_BETA", + 451: "SQUARE_ALPHA", + 464: "INTERNAL", + 465: "INTERNAL_RC", + 466: "INTERNAL_BETA", + 467: "INTERNAL_ALPHA", + 480: "CLOVAFRIENDS", + 481: "CLOVAFRIENDS_RC", + 482: "CLOVAFRIENDS_BETA", + 483: "CLOVAFRIENDS_ALPHA", + } + + _NAMES_TO_VALUES = { + "IOS": 16, + "IOS_RC": 17, + "IOS_BETA": 18, + "IOS_ALPHA": 19, + "ANDROID": 32, + "ANDROID_RC": 33, + "ANDROID_BETA": 34, + "ANDROID_ALPHA": 35, + "WAP": 48, + "WAP_RC": 49, + "WAP_BETA": 50, + "WAP_ALPHA": 51, + "BOT": 64, + "BOT_RC": 65, + "BOT_BETA": 66, + "BOT_ALPHA": 67, + "WEB": 80, + "WEB_RC": 81, + "WEB_BETA": 82, + "WEB_ALPHA": 83, + "DESKTOPWIN": 96, + "DESKTOPWIN_RC": 97, + "DESKTOPWIN_BETA": 98, + "DESKTOPWIN_ALPHA": 99, + "DESKTOPMAC": 112, + "DESKTOPMAC_RC": 113, + "DESKTOPMAC_BETA": 114, + "DESKTOPMAC_ALPHA": 115, + "CHANNELGW": 128, + "CHANNELGW_RC": 129, + "CHANNELGW_BETA": 130, + "CHANNELGW_ALPHA": 131, + "CHANNELCP": 144, + "CHANNELCP_RC": 145, + "CHANNELCP_BETA": 146, + "CHANNELCP_ALPHA": 147, + "WINPHONE": 160, + "WINPHONE_RC": 161, + "WINPHONE_BETA": 162, + "WINPHONE_ALPHA": 163, + "BLACKBERRY": 176, + "BLACKBERRY_RC": 177, + "BLACKBERRY_BETA": 178, + "BLACKBERRY_ALPHA": 179, + "WINMETRO": 192, + "WINMETRO_RC": 193, + "WINMETRO_BETA": 194, + "WINMETRO_ALPHA": 195, + "S40": 208, + "S40_RC": 209, + "S40_BETA": 210, + "S40_ALPHA": 211, + "CHRONO": 224, + "CHRONO_RC": 225, + "CHRONO_BETA": 226, + "CHRONO_ALPHA": 227, + "TIZEN": 256, + "TIZEN_RC": 257, + "TIZEN_BETA": 258, + "TIZEN_ALPHA": 259, + "VIRTUAL": 272, + "FIREFOXOS": 288, + "FIREFOXOS_RC": 289, + "FIREFOXOS_BETA": 290, + "FIREFOXOS_ALPHA": 291, + "IOSIPAD": 304, + "IOSIPAD_RC": 305, + "IOSIPAD_BETA": 306, + "IOSIPAD_ALPHA": 307, + "BIZIOS": 320, + "BIZIOS_RC": 321, + "BIZIOS_BETA": 322, + "BIZIOS_ALPHA": 323, + "BIZANDROID": 336, + "BIZANDROID_RC": 337, + "BIZANDROID_BETA": 338, + "BIZANDROID_ALPHA": 339, + "BIZBOT": 352, + "BIZBOT_RC": 353, + "BIZBOT_BETA": 354, + "BIZBOT_ALPHA": 355, + "CHROMEOS": 368, + "CHROMEOS_RC": 369, + "CHROMEOS_BETA": 370, + "CHROMEOS_ALPHA": 371, + "ANDROIDLITE": 384, + "ANDROIDLITE_RC": 385, + "ANDROIDLITE_BETA": 386, + "ANDROIDLITE_ALPHA": 387, + "WIN10": 400, + "WIN10_RC": 401, + "WIN10_BETA": 402, + "WIN10_ALPHA": 403, + "BIZWEB": 416, + "BIZWEB_RC": 417, + "BIZWEB_BETA": 418, + "BIZWEB_ALPHA": 419, + "DUMMYPRIMARY": 432, + "DUMMYPRIMARY_RC": 433, + "DUMMYPRIMARY_BETA": 434, + "DUMMYPRIMARY_ALPHA": 435, + "SQUARE": 448, + "SQUARE_RC": 449, + "SQUARE_BETA": 450, + "SQUARE_ALPHA": 451, + "INTERNAL": 464, + "INTERNAL_RC": 465, + "INTERNAL_BETA": 466, + "INTERNAL_ALPHA": 467, + "CLOVAFRIENDS": 480, + "CLOVAFRIENDS_RC": 481, + "CLOVAFRIENDS_BETA": 482, + "CLOVAFRIENDS_ALPHA": 483, + } + + +class ExtendedProfileAttribute(object): + + _VALUES_TO_NAMES = { + } + + _NAMES_TO_VALUES = { + } + + +class PrivacyLevelType(object): + PUBLIC = 0 + PRIVATE = 1 + + _VALUES_TO_NAMES = { + 0: "PUBLIC", + 1: "PRIVATE", + } + + _NAMES_TO_VALUES = { + "PUBLIC": 0, + "PRIVATE": 1, + } + + +class PaidCallerIdStatus(object): + NOT_SPECIFIED = 0 + VALID = 1 + VERIFICATION_REQUIRED = 2 + NOT_PERMITTED = 3 + LIMIT_EXCEEDED = 4 + LIMIT_EXCEEDED_AND_VERIFICATION_REQUIRED = 5 + + _VALUES_TO_NAMES = { + 0: "NOT_SPECIFIED", + 1: "VALID", + 2: "VERIFICATION_REQUIRED", + 3: "NOT_PERMITTED", + 4: "LIMIT_EXCEEDED", + 5: "LIMIT_EXCEEDED_AND_VERIFICATION_REQUIRED", + } + + _NAMES_TO_VALUES = { + "NOT_SPECIFIED": 0, + "VALID": 1, + "VERIFICATION_REQUIRED": 2, + "NOT_PERMITTED": 3, + "LIMIT_EXCEEDED": 4, + "LIMIT_EXCEEDED_AND_VERIFICATION_REQUIRED": 5, + } + + +class PaidCallProductType(object): + COIN = 0 + CREDIT = 1 + MONTHLY = 2 + + _VALUES_TO_NAMES = { + 0: "COIN", + 1: "CREDIT", + 2: "MONTHLY", + } + + _NAMES_TO_VALUES = { + "COIN": 0, + "CREDIT": 1, + "MONTHLY": 2, + } + + +class PaidCallType(object): + OUT = 0 + IN = 1 + TOLLFREE = 2 + RECORD = 3 + AD = 4 + CS = 5 + + _VALUES_TO_NAMES = { + 0: "OUT", + 1: "IN", + 2: "TOLLFREE", + 3: "RECORD", + 4: "AD", + 5: "CS", + } + + _NAMES_TO_VALUES = { + "OUT": 0, + "IN": 1, + "TOLLFREE": 2, + "RECORD": 3, + "AD": 4, + "CS": 5, + } + + +class BotType(object): + RESERVED = 0 + OFFICIAL = 1 + LINE_AT_0 = 2 + LINE_AT = 3 + + _VALUES_TO_NAMES = { + 0: "RESERVED", + 1: "OFFICIAL", + 2: "LINE_AT_0", + 3: "LINE_AT", + } + + _NAMES_TO_VALUES = { + "RESERVED": 0, + "OFFICIAL": 1, + "LINE_AT_0": 2, + "LINE_AT": 3, + } + + +class BuddyOnAirLabel(object): + ON_AIR = 0 + LIVE = 1 + + _VALUES_TO_NAMES = { + 0: "ON_AIR", + 1: "LIVE", + } + + _NAMES_TO_VALUES = { + "ON_AIR": 0, + "LIVE": 1, + } + + +class BuddyBannerLinkType(object): + BUDDY_BANNER_LINK_HIDDEN = 0 + BUDDY_BANNER_LINK_MID = 1 + BUDDY_BANNER_LINK_URL = 2 + + _VALUES_TO_NAMES = { + 0: "BUDDY_BANNER_LINK_HIDDEN", + 1: "BUDDY_BANNER_LINK_MID", + 2: "BUDDY_BANNER_LINK_URL", + } + + _NAMES_TO_VALUES = { + "BUDDY_BANNER_LINK_HIDDEN": 0, + "BUDDY_BANNER_LINK_MID": 1, + "BUDDY_BANNER_LINK_URL": 2, + } + + +class BuddyOnAirType(object): + NORMAL = 0 + LIVE = 1 + VOIP = 2 + + _VALUES_TO_NAMES = { + 0: "NORMAL", + 1: "LIVE", + 2: "VOIP", + } + + _NAMES_TO_VALUES = { + "NORMAL": 0, + "LIVE": 1, + "VOIP": 2, + } + + +class Diff(object): + ADDED = 0 + UPDATED = 1 + REMOVED = 2 + + _VALUES_TO_NAMES = { + 0: "ADDED", + 1: "UPDATED", + 2: "REMOVED", + } + + _NAMES_TO_VALUES = { + "ADDED": 0, + "UPDATED": 1, + "REMOVED": 2, + } + + +class ReportType(object): + ADVERTISING = 1 + GENDER_HARASSMENT = 2 + HARASSMENT = 3 + OTHER = 4 + + _VALUES_TO_NAMES = { + 1: "ADVERTISING", + 2: "GENDER_HARASSMENT", + 3: "HARASSMENT", + 4: "OTHER", + } + + _NAMES_TO_VALUES = { + "ADVERTISING": 1, + "GENDER_HARASSMENT": 2, + "HARASSMENT": 3, + "OTHER": 4, + } + + +class SyncTriggerReason(object): + OTHER = 0 + REVISION_GAP_TOO_LARGE = 1 + OPERATION_EXPIRED = 2 + + _VALUES_TO_NAMES = { + 0: "OTHER", + 1: "REVISION_GAP_TOO_LARGE", + 2: "OPERATION_EXPIRED", + } + + _NAMES_TO_VALUES = { + "OTHER": 0, + "REVISION_GAP_TOO_LARGE": 1, + "OPERATION_EXPIRED": 2, + } + + +class ReportCategory(object): + PUSH_NORMAL_PLAIN = 0 + PUSH_NORMAL_E2EE = 1 + PUSH_VOIP_PLAIN = 2 + PUSH_VOIP_E2EE = 3 + + _VALUES_TO_NAMES = { + 0: "PUSH_NORMAL_PLAIN", + 1: "PUSH_NORMAL_E2EE", + 2: "PUSH_VOIP_PLAIN", + 3: "PUSH_VOIP_E2EE", + } + + _NAMES_TO_VALUES = { + "PUSH_NORMAL_PLAIN": 0, + "PUSH_NORMAL_E2EE": 1, + "PUSH_VOIP_PLAIN": 2, + "PUSH_VOIP_E2EE": 3, + } + + +class BuddyResultState(object): + ACCEPTED = 1 + SUCCEEDED = 2 + FAILED = 3 + CANCELLED = 4 + NOTIFY_FAILED = 5 + STORING = 11 + UPLOADING = 21 + NOTIFYING = 31 + REMOVING_SUBSCRIPTION = 41 + UNREGISTERING_ACCOUNT = 42 + NOTIFYING_LEAVE_CHAT = 43 + + _VALUES_TO_NAMES = { + 1: "ACCEPTED", + 2: "SUCCEEDED", + 3: "FAILED", + 4: "CANCELLED", + 5: "NOTIFY_FAILED", + 11: "STORING", + 21: "UPLOADING", + 31: "NOTIFYING", + 41: "REMOVING_SUBSCRIPTION", + 42: "UNREGISTERING_ACCOUNT", + 43: "NOTIFYING_LEAVE_CHAT", + } + + _NAMES_TO_VALUES = { + "ACCEPTED": 1, + "SUCCEEDED": 2, + "FAILED": 3, + "CANCELLED": 4, + "NOTIFY_FAILED": 5, + "STORING": 11, + "UPLOADING": 21, + "NOTIFYING": 31, + "REMOVING_SUBSCRIPTION": 41, + "UNREGISTERING_ACCOUNT": 42, + "NOTIFYING_LEAVE_CHAT": 43, + } + + +class BuddySearchRequestSource(object): + NA = 0 + FRIEND_VIEW = 1 + OFFICIAL_ACCOUNT_VIEW = 2 + + _VALUES_TO_NAMES = { + 0: "NA", + 1: "FRIEND_VIEW", + 2: "OFFICIAL_ACCOUNT_VIEW", + } + + _NAMES_TO_VALUES = { + "NA": 0, + "FRIEND_VIEW": 1, + "OFFICIAL_ACCOUNT_VIEW": 2, + } + + +class CarrierCode(object): + NOT_SPECIFIED = 0 + JP_DOCOMO = 1 + JP_AU = 2 + JP_SOFTBANK = 3 + JP_DOCOMO_LINE = 4 + KR_SKT = 17 + KR_KT = 18 + KR_LGT = 19 + + _VALUES_TO_NAMES = { + 0: "NOT_SPECIFIED", + 1: "JP_DOCOMO", + 2: "JP_AU", + 3: "JP_SOFTBANK", + 4: "JP_DOCOMO_LINE", + 17: "KR_SKT", + 18: "KR_KT", + 19: "KR_LGT", + } + + _NAMES_TO_VALUES = { + "NOT_SPECIFIED": 0, + "JP_DOCOMO": 1, + "JP_AU": 2, + "JP_SOFTBANK": 3, + "JP_DOCOMO_LINE": 4, + "KR_SKT": 17, + "KR_KT": 18, + "KR_LGT": 19, + } + + +class ChannelConfiguration(object): + MESSAGE = 0 + MESSAGE_NOTIFICATION = 1 + NOTIFICATION_CENTER = 2 + + _VALUES_TO_NAMES = { + 0: "MESSAGE", + 1: "MESSAGE_NOTIFICATION", + 2: "NOTIFICATION_CENTER", + } + + _NAMES_TO_VALUES = { + "MESSAGE": 0, + "MESSAGE_NOTIFICATION": 1, + "NOTIFICATION_CENTER": 2, + } + + +class ChannelPermission(object): + PROFILE = 0 + FRIENDS = 1 + GROUP = 2 + + _VALUES_TO_NAMES = { + 0: "PROFILE", + 1: "FRIENDS", + 2: "GROUP", + } + + _NAMES_TO_VALUES = { + "PROFILE": 0, + "FRIENDS": 1, + "GROUP": 2, + } + + +class ChannelFeatureLicense(object): + BLE_LCS_API_USABLE = 26 + PROHIBIT_MINIMIZE_CHANNEL_BROWSER = 27 + ALLOW_IOS_WEBKIT = 28 + + _VALUES_TO_NAMES = { + 26: "BLE_LCS_API_USABLE", + 27: "PROHIBIT_MINIMIZE_CHANNEL_BROWSER", + 28: "ALLOW_IOS_WEBKIT", + } + + _NAMES_TO_VALUES = { + "BLE_LCS_API_USABLE": 26, + "PROHIBIT_MINIMIZE_CHANNEL_BROWSER": 27, + "ALLOW_IOS_WEBKIT": 28, + } + + +class ChannelErrorCode(object): + ILLEGAL_ARGUMENT = 0 + INTERNAL_ERROR = 1 + CONNECTION_ERROR = 2 + AUTHENTICATIONI_FAILED = 3 + NEED_PERMISSION_APPROVAL = 4 + COIN_NOT_USABLE = 5 + WEBVIEW_NOT_ALLOWED = 6 + + _VALUES_TO_NAMES = { + 0: "ILLEGAL_ARGUMENT", + 1: "INTERNAL_ERROR", + 2: "CONNECTION_ERROR", + 3: "AUTHENTICATIONI_FAILED", + 4: "NEED_PERMISSION_APPROVAL", + 5: "COIN_NOT_USABLE", + 6: "WEBVIEW_NOT_ALLOWED", + } + + _NAMES_TO_VALUES = { + "ILLEGAL_ARGUMENT": 0, + "INTERNAL_ERROR": 1, + "CONNECTION_ERROR": 2, + "AUTHENTICATIONI_FAILED": 3, + "NEED_PERMISSION_APPROVAL": 4, + "COIN_NOT_USABLE": 5, + "WEBVIEW_NOT_ALLOWED": 6, + } + + +class ChannelSyncType(object): + SYNC = 0 + REMOVE = 1 + REMOVE_ALL = 2 + + _VALUES_TO_NAMES = { + 0: "SYNC", + 1: "REMOVE", + 2: "REMOVE_ALL", + } + + _NAMES_TO_VALUES = { + "SYNC": 0, + "REMOVE": 1, + "REMOVE_ALL": 2, + } + + +class LoginType(object): + ID_CREDENTIAL = 0 + QRCODE = 1 + ID_CREDENTIAL_WITH_E2EE = 2 + + _VALUES_TO_NAMES = { + 0: "ID_CREDENTIAL", + 1: "QRCODE", + 2: "ID_CREDENTIAL_WITH_E2EE", + } + + _NAMES_TO_VALUES = { + "ID_CREDENTIAL": 0, + "QRCODE": 1, + "ID_CREDENTIAL_WITH_E2EE": 2, + } + + +class ContactAttribute(object): + CONTACT_ATTRIBUTE_CAPABLE_VOICE_CALL = 1 + CONTACT_ATTRIBUTE_CAPABLE_VIDEO_CALL = 2 + CONTACT_ATTRIBUTE_CAPABLE_MY_HOME = 16 + CONTACT_ATTRIBUTE_CAPABLE_BUDDY = 32 + + _VALUES_TO_NAMES = { + 1: "CONTACT_ATTRIBUTE_CAPABLE_VOICE_CALL", + 2: "CONTACT_ATTRIBUTE_CAPABLE_VIDEO_CALL", + 16: "CONTACT_ATTRIBUTE_CAPABLE_MY_HOME", + 32: "CONTACT_ATTRIBUTE_CAPABLE_BUDDY", + } + + _NAMES_TO_VALUES = { + "CONTACT_ATTRIBUTE_CAPABLE_VOICE_CALL": 1, + "CONTACT_ATTRIBUTE_CAPABLE_VIDEO_CALL": 2, + "CONTACT_ATTRIBUTE_CAPABLE_MY_HOME": 16, + "CONTACT_ATTRIBUTE_CAPABLE_BUDDY": 32, + } + + +class ContactCategory(object): + NORMAL = 0 + RECOMMEND = 1 + + _VALUES_TO_NAMES = { + 0: "NORMAL", + 1: "RECOMMEND", + } + + _NAMES_TO_VALUES = { + "NORMAL": 0, + "RECOMMEND": 1, + } + + +class ContactRelation(object): + ONEWAY = 0 + BOTH = 1 + NOT_REGISTERED = 2 + + _VALUES_TO_NAMES = { + 0: "ONEWAY", + 1: "BOTH", + 2: "NOT_REGISTERED", + } + + _NAMES_TO_VALUES = { + "ONEWAY": 0, + "BOTH": 1, + "NOT_REGISTERED": 2, + } + + +class AsymmetricKeyAlgorithm(object): + ASYMMETRIC_KEY_ALGORITHM_RSA = 1 + ASYMMETRIC_KEY_ALGORITHM_ECDH = 2 + + _VALUES_TO_NAMES = { + 1: "ASYMMETRIC_KEY_ALGORITHM_RSA", + 2: "ASYMMETRIC_KEY_ALGORITHM_ECDH", + } + + _NAMES_TO_VALUES = { + "ASYMMETRIC_KEY_ALGORITHM_RSA": 1, + "ASYMMETRIC_KEY_ALGORITHM_ECDH": 2, + } + + +class ContactSetting(object): + CONTACT_SETTING_NOTIFICATION_DISABLE = 1 + CONTACT_SETTING_DISPLAY_NAME_OVERRIDE = 2 + CONTACT_SETTING_CONTACT_HIDE = 4 + CONTACT_SETTING_FAVORITE = 8 + CONTACT_SETTING_DELETE = 16 + + _VALUES_TO_NAMES = { + 1: "CONTACT_SETTING_NOTIFICATION_DISABLE", + 2: "CONTACT_SETTING_DISPLAY_NAME_OVERRIDE", + 4: "CONTACT_SETTING_CONTACT_HIDE", + 8: "CONTACT_SETTING_FAVORITE", + 16: "CONTACT_SETTING_DELETE", + } + + _NAMES_TO_VALUES = { + "CONTACT_SETTING_NOTIFICATION_DISABLE": 1, + "CONTACT_SETTING_DISPLAY_NAME_OVERRIDE": 2, + "CONTACT_SETTING_CONTACT_HIDE": 4, + "CONTACT_SETTING_FAVORITE": 8, + "CONTACT_SETTING_DELETE": 16, + } + + +class ContactStatus(object): + UNSPECIFIED = 0 + FRIEND = 1 + FRIEND_BLOCKED = 2 + RECOMMEND = 3 + RECOMMEND_BLOCKED = 4 + DELETED = 5 + DELETED_BLOCKED = 6 + + _VALUES_TO_NAMES = { + 0: "UNSPECIFIED", + 1: "FRIEND", + 2: "FRIEND_BLOCKED", + 3: "RECOMMEND", + 4: "RECOMMEND_BLOCKED", + 5: "DELETED", + 6: "DELETED_BLOCKED", + } + + _NAMES_TO_VALUES = { + "UNSPECIFIED": 0, + "FRIEND": 1, + "FRIEND_BLOCKED": 2, + "RECOMMEND": 3, + "RECOMMEND_BLOCKED": 4, + "DELETED": 5, + "DELETED_BLOCKED": 6, + } + + +class ContactType(object): + MID = 0 + PHONE = 1 + EMAIL = 2 + USERID = 3 + PROXIMITY = 4 + GROUP = 5 + USER = 6 + QRCODE = 7 + PROMOTION_BOT = 8 + CONTACT_MESSAGE = 9 + FRIEND_REQUEST = 10 + REPAIR = 128 + FACEBOOK = 2305 + SINA = 2306 + RENREN = 2307 + FEIXIN = 2308 + BBM = 2309 + BEACON = 11 + + _VALUES_TO_NAMES = { + 0: "MID", + 1: "PHONE", + 2: "EMAIL", + 3: "USERID", + 4: "PROXIMITY", + 5: "GROUP", + 6: "USER", + 7: "QRCODE", + 8: "PROMOTION_BOT", + 9: "CONTACT_MESSAGE", + 10: "FRIEND_REQUEST", + 128: "REPAIR", + 2305: "FACEBOOK", + 2306: "SINA", + 2307: "RENREN", + 2308: "FEIXIN", + 2309: "BBM", + 11: "BEACON", + } + + _NAMES_TO_VALUES = { + "MID": 0, + "PHONE": 1, + "EMAIL": 2, + "USERID": 3, + "PROXIMITY": 4, + "GROUP": 5, + "USER": 6, + "QRCODE": 7, + "PROMOTION_BOT": 8, + "CONTACT_MESSAGE": 9, + "FRIEND_REQUEST": 10, + "REPAIR": 128, + "FACEBOOK": 2305, + "SINA": 2306, + "RENREN": 2307, + "FEIXIN": 2308, + "BBM": 2309, + "BEACON": 11, + } + + +class GroupPreferenceAttribute(object): + INVITATION_TICKET = 1 + FAVORITE_TIMESTAMP = 2 + + _VALUES_TO_NAMES = { + 1: "INVITATION_TICKET", + 2: "FAVORITE_TIMESTAMP", + } + + _NAMES_TO_VALUES = { + "INVITATION_TICKET": 1, + "FAVORITE_TIMESTAMP": 2, + } + + +class ContentType(object): + NONE = 0 + IMAGE = 1 + VIDEO = 2 + AUDIO = 3 + HTML = 4 + PDF = 5 + CALL = 6 + STICKER = 7 + PRESENCE = 8 + GIFT = 9 + GROUPBOARD = 10 + APPLINK = 11 + LINK = 12 + CONTACT = 13 + FILE = 14 + LOCATION = 15 + POSTNOTIFICATION = 16 + RICH = 17 + CHATEVENT = 18 + MUSIC = 19 + PAYMENT = 20 + EXTIMAGE = 21 + + _VALUES_TO_NAMES = { + 0: "NONE", + 1: "IMAGE", + 2: "VIDEO", + 3: "AUDIO", + 4: "HTML", + 5: "PDF", + 6: "CALL", + 7: "STICKER", + 8: "PRESENCE", + 9: "GIFT", + 10: "GROUPBOARD", + 11: "APPLINK", + 12: "LINK", + 13: "CONTACT", + 14: "FILE", + 15: "LOCATION", + 16: "POSTNOTIFICATION", + 17: "RICH", + 18: "CHATEVENT", + 19: "MUSIC", + 20: "PAYMENT", + 21: "EXTIMAGE", + } + + _NAMES_TO_VALUES = { + "NONE": 0, + "IMAGE": 1, + "VIDEO": 2, + "AUDIO": 3, + "HTML": 4, + "PDF": 5, + "CALL": 6, + "STICKER": 7, + "PRESENCE": 8, + "GIFT": 9, + "GROUPBOARD": 10, + "APPLINK": 11, + "LINK": 12, + "CONTACT": 13, + "FILE": 14, + "LOCATION": 15, + "POSTNOTIFICATION": 16, + "RICH": 17, + "CHATEVENT": 18, + "MUSIC": 19, + "PAYMENT": 20, + "EXTIMAGE": 21, + } + + +class MessageRelationType(object): + FORWARD = 0 + AUTO_REPLY = 1 + SUBORDINATE = 2 + + _VALUES_TO_NAMES = { + 0: "FORWARD", + 1: "AUTO_REPLY", + 2: "SUBORDINATE", + } + + _NAMES_TO_VALUES = { + "FORWARD": 0, + "AUTO_REPLY": 1, + "SUBORDINATE": 2, + } + + +class CustomMode(object): + PROMOTION_FRIENDS_INVITE = 1 + CAPABILITY_SERVER_SIDE_SMS = 2 + LINE_CLIENT_ANALYTICS_CONFIGURATION = 3 + + _VALUES_TO_NAMES = { + 1: "PROMOTION_FRIENDS_INVITE", + 2: "CAPABILITY_SERVER_SIDE_SMS", + 3: "LINE_CLIENT_ANALYTICS_CONFIGURATION", + } + + _NAMES_TO_VALUES = { + "PROMOTION_FRIENDS_INVITE": 1, + "CAPABILITY_SERVER_SIDE_SMS": 2, + "LINE_CLIENT_ANALYTICS_CONFIGURATION": 3, + } + + +class RoomAttribute(object): + ALL = 255 + NOTIFICATION_SETTING = 1 + + _VALUES_TO_NAMES = { + 255: "ALL", + 1: "NOTIFICATION_SETTING", + } + + _NAMES_TO_VALUES = { + "ALL": 255, + "NOTIFICATION_SETTING": 1, + } + + +class UserStatus(object): + NORMAL = 0 + UNBOUND = 1 + UNREGISTERED = 2 + + _VALUES_TO_NAMES = { + 0: "NORMAL", + 1: "UNBOUND", + 2: "UNREGISTERED", + } + + _NAMES_TO_VALUES = { + "NORMAL": 0, + "UNBOUND": 1, + "UNREGISTERED": 2, + } + + +class EmailConfirmationStatus(object): + NOT_SPECIFIED = 0 + NOT_YET = 1 + DONE = 3 + NEED_ENFORCED_INPUT = 4 + + _VALUES_TO_NAMES = { + 0: "NOT_SPECIFIED", + 1: "NOT_YET", + 3: "DONE", + 4: "NEED_ENFORCED_INPUT", + } + + _NAMES_TO_VALUES = { + "NOT_SPECIFIED": 0, + "NOT_YET": 1, + "DONE": 3, + "NEED_ENFORCED_INPUT": 4, + } + + +class AccountMigrationPincodeType(object): + NOT_APPLICABLE = 0 + NOT_SET = 1 + SET = 2 + NEED_ENFORCED_INPUT = 3 + + _VALUES_TO_NAMES = { + 0: "NOT_APPLICABLE", + 1: "NOT_SET", + 2: "SET", + 3: "NEED_ENFORCED_INPUT", + } + + _NAMES_TO_VALUES = { + "NOT_APPLICABLE": 0, + "NOT_SET": 1, + "SET": 2, + "NEED_ENFORCED_INPUT": 3, + } + + +class AccountMigrationCheckType(object): + SKIP = 0 + PINCODE = 1 + SECURITY_CENTER = 2 + + _VALUES_TO_NAMES = { + 0: "SKIP", + 1: "PINCODE", + 2: "SECURITY_CENTER", + } + + _NAMES_TO_VALUES = { + "SKIP": 0, + "PINCODE": 1, + "SECURITY_CENTER": 2, + } + + +class SecurityCenterSettingsType(object): + NOT_APPLICABLE = 0 + NOT_SET = 1 + SET = 2 + NEED_ENFORCED_INPUT = 3 + + _VALUES_TO_NAMES = { + 0: "NOT_APPLICABLE", + 1: "NOT_SET", + 2: "SET", + 3: "NEED_ENFORCED_INPUT", + } + + _NAMES_TO_VALUES = { + "NOT_APPLICABLE": 0, + "NOT_SET": 1, + "SET": 2, + "NEED_ENFORCED_INPUT": 3, + } + + +class EmailConfirmationType(object): + SERVER_SIDE_EMAIL = 0 + CLIENT_SIDE_EMAIL = 1 + + _VALUES_TO_NAMES = { + 0: "SERVER_SIDE_EMAIL", + 1: "CLIENT_SIDE_EMAIL", + } + + _NAMES_TO_VALUES = { + "SERVER_SIDE_EMAIL": 0, + "CLIENT_SIDE_EMAIL": 1, + } + + +class SquareChatAnnouncementType(object): + TEXT_MESSAGE = 0 + + _VALUES_TO_NAMES = { + 0: "TEXT_MESSAGE", + } + + _NAMES_TO_VALUES = { + "TEXT_MESSAGE": 0, + } + + +class SquareChatAttribute(object): + NAME = 2 + SQUARE_CHAT_IMAGE = 3 + STATE = 4 + + _VALUES_TO_NAMES = { + 2: "NAME", + 3: "SQUARE_CHAT_IMAGE", + 4: "STATE", + } + + _NAMES_TO_VALUES = { + "NAME": 2, + "SQUARE_CHAT_IMAGE": 3, + "STATE": 4, + } + + +class SquareMemberAttribute(object): + DISPLAY_NAME = 1 + PROFILE_IMAGE = 2 + ABLE_TO_RECEIVE_MESSAGE = 3 + MEMBERSHIP_STATE = 5 + ROLE = 6 + PREFERENCE = 7 + + _VALUES_TO_NAMES = { + 1: "DISPLAY_NAME", + 2: "PROFILE_IMAGE", + 3: "ABLE_TO_RECEIVE_MESSAGE", + 5: "MEMBERSHIP_STATE", + 6: "ROLE", + 7: "PREFERENCE", + } + + _NAMES_TO_VALUES = { + "DISPLAY_NAME": 1, + "PROFILE_IMAGE": 2, + "ABLE_TO_RECEIVE_MESSAGE": 3, + "MEMBERSHIP_STATE": 5, + "ROLE": 6, + "PREFERENCE": 7, + } + + +class SquareMemberRelationAttribute(object): + BLOCKED = 1 + + _VALUES_TO_NAMES = { + 1: "BLOCKED", + } + + _NAMES_TO_VALUES = { + "BLOCKED": 1, + } + + +class SquarePreferenceAttribute(object): + FAVORITE = 1 + NOTI_FOR_NEW_JOIN_REQUEST = 2 + + _VALUES_TO_NAMES = { + 1: "FAVORITE", + 2: "NOTI_FOR_NEW_JOIN_REQUEST", + } + + _NAMES_TO_VALUES = { + "FAVORITE": 1, + "NOTI_FOR_NEW_JOIN_REQUEST": 2, + } + + +class SquareState(object): + ALIVE = 0 + DELETED = 1 + SUSPENDED = 2 + + _VALUES_TO_NAMES = { + 0: "ALIVE", + 1: "DELETED", + 2: "SUSPENDED", + } + + _NAMES_TO_VALUES = { + "ALIVE": 0, + "DELETED": 1, + "SUSPENDED": 2, + } + + +class CommitMessageResultCode(object): + DELIVERED = 0 + DELIVERY_SKIPPED = 1 + DELIVERY_RESTRICTED = 2 + + _VALUES_TO_NAMES = { + 0: "DELIVERED", + 1: "DELIVERY_SKIPPED", + 2: "DELIVERY_RESTRICTED", + } + + _NAMES_TO_VALUES = { + "DELIVERED": 0, + "DELIVERY_SKIPPED": 1, + "DELIVERY_RESTRICTED": 2, + } + + +class ErrorCode(object): + ILLEGAL_ARGUMENT = 0 + AUTHENTICATION_FAILED = 1 + DB_FAILED = 2 + INVALID_STATE = 3 + EXCESSIVE_ACCESS = 4 + NOT_FOUND = 5 + INVALID_MID = 9 + NOT_A_MEMBER = 10 + INVALID_LENGTH = 6 + NOT_AVAILABLE_USER = 7 + NOT_AUTHORIZED_DEVICE = 8 + NOT_AUTHORIZED_SESSION = 14 + INCOMPATIBLE_APP_VERSION = 11 + NOT_READY = 12 + NOT_AVAILABLE_SESSION = 13 + SYSTEM_ERROR = 15 + NO_AVAILABLE_VERIFICATION_METHOD = 16 + NOT_AUTHENTICATED = 17 + INVALID_IDENTITY_CREDENTIAL = 18 + NOT_AVAILABLE_IDENTITY_IDENTIFIER = 19 + INTERNAL_ERROR = 20 + NO_SUCH_IDENTITY_IDENFIER = 21 + DEACTIVATED_ACCOUNT_BOUND_TO_THIS_IDENTITY = 22 + ILLEGAL_IDENTITY_CREDENTIAL = 23 + UNKNOWN_CHANNEL = 24 + NO_SUCH_MESSAGE_BOX = 25 + NOT_AVAILABLE_MESSAGE_BOX = 26 + CHANNEL_DOES_NOT_MATCH = 27 + NOT_YOUR_MESSAGE = 28 + MESSAGE_DEFINED_ERROR = 29 + USER_CANNOT_ACCEPT_PRESENTS = 30 + USER_NOT_STICKER_OWNER = 32 + MAINTENANCE_ERROR = 33 + ACCOUNT_NOT_MATCHED = 34 + ABUSE_BLOCK = 35 + NOT_FRIEND = 36 + NOT_ALLOWED_CALL = 37 + BLOCK_FRIEND = 38 + INCOMPATIBLE_VOIP_VERSION = 39 + INVALID_SNS_ACCESS_TOKEN = 40 + EXTERNAL_SERVICE_NOT_AVAILABLE = 41 + NOT_ALLOWED_ADD_CONTACT = 42 + NOT_CERTIFICATED = 43 + NOT_ALLOWED_SECONDARY_DEVICE = 44 + INVALID_PIN_CODE = 45 + NOT_FOUND_IDENTITY_CREDENTIAL = 46 + EXCEED_FILE_MAX_SIZE = 47 + EXCEED_DAILY_QUOTA = 48 + NOT_SUPPORT_SEND_FILE = 49 + MUST_UPGRADE = 50 + NOT_AVAILABLE_PIN_CODE_SESSION = 51 + EXPIRED_REVISION = 52 + NOT_YET_PHONE_NUMBER = 54 + BAD_CALL_NUMBER = 55 + UNAVAILABLE_CALL_NUMBER = 56 + NOT_SUPPORT_CALL_SERVICE = 57 + CONGESTION_CONTROL = 58 + NO_BALANCE = 59 + NOT_PERMITTED_CALLER_ID = 60 + NO_CALLER_ID_LIMIT_EXCEEDED = 61 + CALLER_ID_VERIFICATION_REQUIRED = 62 + NO_CALLER_ID_LIMIT_EXCEEDED_AND_VERIFICATION_REQUIRED = 63 + MESSAGE_NOT_FOUND = 64 + INVALID_ACCOUNT_MIGRATION_PINCODE_FORMAT = 65 + ACCOUNT_MIGRATION_PINCODE_NOT_MATCHED = 66 + ACCOUNT_MIGRATION_PINCODE_BLOCKED = 67 + INVALID_PASSWORD_FORMAT = 69 + FEATURE_RESTRICTED = 70 + MESSAGE_NOT_DESTRUCTIBLE = 71 + PAID_CALL_REDEEM_FAILED = 72 + PREVENTED_JOIN_BY_TICKET = 73 + SEND_MESSAGE_NOT_PERMITTED_FROM_LINE_AT = 75 + SEND_MESSAGE_NOT_PERMITTED_WHILE_AUTO_REPLY = 76 + SECURITY_CENTER_NOT_VERIFIED = 77 + SECURITY_CENTER_BLOCKED_BY_SETTING = 78 + SECURITY_CENTER_BLOCKED = 79 + TALK_PROXY_EXCEPTION = 80 + E2EE_INVALID_PROTOCOL = 81 + E2EE_RETRY_ENCRYPT = 82 + E2EE_UPDATE_SENDER_KEY = 83 + E2EE_UPDATE_RECEIVER_KEY = 84 + E2EE_INVALID_ARGUMENT = 85 + E2EE_INVALID_VERSION = 86 + E2EE_SENDER_DISABLED = 87 + E2EE_RECEIVER_DISABLED = 88 + E2EE_SENDER_NOT_ALLOWED = 89 + E2EE_RECEIVER_NOT_ALLOWED = 90 + E2EE_RESEND_FAIL = 91 + E2EE_RESEND_OK = 92 + HITOKOTO_BACKUP_NO_AVAILABLE_DATA = 93 + E2EE_UPDATE_PRIMARY_DEVICE = 94 + SUCCESS = 95 + CANCEL = 96 + E2EE_PRIMARY_NOT_SUPPORT = 97 + E2EE_RETRY_PLAIN = 98 + E2EE_RECREATE_GROUP_KEY = 99 + E2EE_GROUP_TOO_MANY_MEMBERS = 100 + SERVER_BUSY = 101 + NOT_ALLOWED_ADD_FOLLOW = 102 + INCOMING_FRIEND_REQUEST_LIMIT = 103 + OUTGOING_FRIEND_REQUEST_LIMIT = 104 + OUTGOING_FRIEND_REQUEST_QUOTA = 105 + DUPLICATED = 106 + BANNED = 107 + + _VALUES_TO_NAMES = { + 0: "ILLEGAL_ARGUMENT", + 1: "AUTHENTICATION_FAILED", + 2: "DB_FAILED", + 3: "INVALID_STATE", + 4: "EXCESSIVE_ACCESS", + 5: "NOT_FOUND", + 9: "INVALID_MID", + 10: "NOT_A_MEMBER", + 6: "INVALID_LENGTH", + 7: "NOT_AVAILABLE_USER", + 8: "NOT_AUTHORIZED_DEVICE", + 14: "NOT_AUTHORIZED_SESSION", + 11: "INCOMPATIBLE_APP_VERSION", + 12: "NOT_READY", + 13: "NOT_AVAILABLE_SESSION", + 15: "SYSTEM_ERROR", + 16: "NO_AVAILABLE_VERIFICATION_METHOD", + 17: "NOT_AUTHENTICATED", + 18: "INVALID_IDENTITY_CREDENTIAL", + 19: "NOT_AVAILABLE_IDENTITY_IDENTIFIER", + 20: "INTERNAL_ERROR", + 21: "NO_SUCH_IDENTITY_IDENFIER", + 22: "DEACTIVATED_ACCOUNT_BOUND_TO_THIS_IDENTITY", + 23: "ILLEGAL_IDENTITY_CREDENTIAL", + 24: "UNKNOWN_CHANNEL", + 25: "NO_SUCH_MESSAGE_BOX", + 26: "NOT_AVAILABLE_MESSAGE_BOX", + 27: "CHANNEL_DOES_NOT_MATCH", + 28: "NOT_YOUR_MESSAGE", + 29: "MESSAGE_DEFINED_ERROR", + 30: "USER_CANNOT_ACCEPT_PRESENTS", + 32: "USER_NOT_STICKER_OWNER", + 33: "MAINTENANCE_ERROR", + 34: "ACCOUNT_NOT_MATCHED", + 35: "ABUSE_BLOCK", + 36: "NOT_FRIEND", + 37: "NOT_ALLOWED_CALL", + 38: "BLOCK_FRIEND", + 39: "INCOMPATIBLE_VOIP_VERSION", + 40: "INVALID_SNS_ACCESS_TOKEN", + 41: "EXTERNAL_SERVICE_NOT_AVAILABLE", + 42: "NOT_ALLOWED_ADD_CONTACT", + 43: "NOT_CERTIFICATED", + 44: "NOT_ALLOWED_SECONDARY_DEVICE", + 45: "INVALID_PIN_CODE", + 46: "NOT_FOUND_IDENTITY_CREDENTIAL", + 47: "EXCEED_FILE_MAX_SIZE", + 48: "EXCEED_DAILY_QUOTA", + 49: "NOT_SUPPORT_SEND_FILE", + 50: "MUST_UPGRADE", + 51: "NOT_AVAILABLE_PIN_CODE_SESSION", + 52: "EXPIRED_REVISION", + 54: "NOT_YET_PHONE_NUMBER", + 55: "BAD_CALL_NUMBER", + 56: "UNAVAILABLE_CALL_NUMBER", + 57: "NOT_SUPPORT_CALL_SERVICE", + 58: "CONGESTION_CONTROL", + 59: "NO_BALANCE", + 60: "NOT_PERMITTED_CALLER_ID", + 61: "NO_CALLER_ID_LIMIT_EXCEEDED", + 62: "CALLER_ID_VERIFICATION_REQUIRED", + 63: "NO_CALLER_ID_LIMIT_EXCEEDED_AND_VERIFICATION_REQUIRED", + 64: "MESSAGE_NOT_FOUND", + 65: "INVALID_ACCOUNT_MIGRATION_PINCODE_FORMAT", + 66: "ACCOUNT_MIGRATION_PINCODE_NOT_MATCHED", + 67: "ACCOUNT_MIGRATION_PINCODE_BLOCKED", + 69: "INVALID_PASSWORD_FORMAT", + 70: "FEATURE_RESTRICTED", + 71: "MESSAGE_NOT_DESTRUCTIBLE", + 72: "PAID_CALL_REDEEM_FAILED", + 73: "PREVENTED_JOIN_BY_TICKET", + 75: "SEND_MESSAGE_NOT_PERMITTED_FROM_LINE_AT", + 76: "SEND_MESSAGE_NOT_PERMITTED_WHILE_AUTO_REPLY", + 77: "SECURITY_CENTER_NOT_VERIFIED", + 78: "SECURITY_CENTER_BLOCKED_BY_SETTING", + 79: "SECURITY_CENTER_BLOCKED", + 80: "TALK_PROXY_EXCEPTION", + 81: "E2EE_INVALID_PROTOCOL", + 82: "E2EE_RETRY_ENCRYPT", + 83: "E2EE_UPDATE_SENDER_KEY", + 84: "E2EE_UPDATE_RECEIVER_KEY", + 85: "E2EE_INVALID_ARGUMENT", + 86: "E2EE_INVALID_VERSION", + 87: "E2EE_SENDER_DISABLED", + 88: "E2EE_RECEIVER_DISABLED", + 89: "E2EE_SENDER_NOT_ALLOWED", + 90: "E2EE_RECEIVER_NOT_ALLOWED", + 91: "E2EE_RESEND_FAIL", + 92: "E2EE_RESEND_OK", + 93: "HITOKOTO_BACKUP_NO_AVAILABLE_DATA", + 94: "E2EE_UPDATE_PRIMARY_DEVICE", + 95: "SUCCESS", + 96: "CANCEL", + 97: "E2EE_PRIMARY_NOT_SUPPORT", + 98: "E2EE_RETRY_PLAIN", + 99: "E2EE_RECREATE_GROUP_KEY", + 100: "E2EE_GROUP_TOO_MANY_MEMBERS", + 101: "SERVER_BUSY", + 102: "NOT_ALLOWED_ADD_FOLLOW", + 103: "INCOMING_FRIEND_REQUEST_LIMIT", + 104: "OUTGOING_FRIEND_REQUEST_LIMIT", + 105: "OUTGOING_FRIEND_REQUEST_QUOTA", + 106: "DUPLICATED", + 107: "BANNED", + } + + _NAMES_TO_VALUES = { + "ILLEGAL_ARGUMENT": 0, + "AUTHENTICATION_FAILED": 1, + "DB_FAILED": 2, + "INVALID_STATE": 3, + "EXCESSIVE_ACCESS": 4, + "NOT_FOUND": 5, + "INVALID_MID": 9, + "NOT_A_MEMBER": 10, + "INVALID_LENGTH": 6, + "NOT_AVAILABLE_USER": 7, + "NOT_AUTHORIZED_DEVICE": 8, + "NOT_AUTHORIZED_SESSION": 14, + "INCOMPATIBLE_APP_VERSION": 11, + "NOT_READY": 12, + "NOT_AVAILABLE_SESSION": 13, + "SYSTEM_ERROR": 15, + "NO_AVAILABLE_VERIFICATION_METHOD": 16, + "NOT_AUTHENTICATED": 17, + "INVALID_IDENTITY_CREDENTIAL": 18, + "NOT_AVAILABLE_IDENTITY_IDENTIFIER": 19, + "INTERNAL_ERROR": 20, + "NO_SUCH_IDENTITY_IDENFIER": 21, + "DEACTIVATED_ACCOUNT_BOUND_TO_THIS_IDENTITY": 22, + "ILLEGAL_IDENTITY_CREDENTIAL": 23, + "UNKNOWN_CHANNEL": 24, + "NO_SUCH_MESSAGE_BOX": 25, + "NOT_AVAILABLE_MESSAGE_BOX": 26, + "CHANNEL_DOES_NOT_MATCH": 27, + "NOT_YOUR_MESSAGE": 28, + "MESSAGE_DEFINED_ERROR": 29, + "USER_CANNOT_ACCEPT_PRESENTS": 30, + "USER_NOT_STICKER_OWNER": 32, + "MAINTENANCE_ERROR": 33, + "ACCOUNT_NOT_MATCHED": 34, + "ABUSE_BLOCK": 35, + "NOT_FRIEND": 36, + "NOT_ALLOWED_CALL": 37, + "BLOCK_FRIEND": 38, + "INCOMPATIBLE_VOIP_VERSION": 39, + "INVALID_SNS_ACCESS_TOKEN": 40, + "EXTERNAL_SERVICE_NOT_AVAILABLE": 41, + "NOT_ALLOWED_ADD_CONTACT": 42, + "NOT_CERTIFICATED": 43, + "NOT_ALLOWED_SECONDARY_DEVICE": 44, + "INVALID_PIN_CODE": 45, + "NOT_FOUND_IDENTITY_CREDENTIAL": 46, + "EXCEED_FILE_MAX_SIZE": 47, + "EXCEED_DAILY_QUOTA": 48, + "NOT_SUPPORT_SEND_FILE": 49, + "MUST_UPGRADE": 50, + "NOT_AVAILABLE_PIN_CODE_SESSION": 51, + "EXPIRED_REVISION": 52, + "NOT_YET_PHONE_NUMBER": 54, + "BAD_CALL_NUMBER": 55, + "UNAVAILABLE_CALL_NUMBER": 56, + "NOT_SUPPORT_CALL_SERVICE": 57, + "CONGESTION_CONTROL": 58, + "NO_BALANCE": 59, + "NOT_PERMITTED_CALLER_ID": 60, + "NO_CALLER_ID_LIMIT_EXCEEDED": 61, + "CALLER_ID_VERIFICATION_REQUIRED": 62, + "NO_CALLER_ID_LIMIT_EXCEEDED_AND_VERIFICATION_REQUIRED": 63, + "MESSAGE_NOT_FOUND": 64, + "INVALID_ACCOUNT_MIGRATION_PINCODE_FORMAT": 65, + "ACCOUNT_MIGRATION_PINCODE_NOT_MATCHED": 66, + "ACCOUNT_MIGRATION_PINCODE_BLOCKED": 67, + "INVALID_PASSWORD_FORMAT": 69, + "FEATURE_RESTRICTED": 70, + "MESSAGE_NOT_DESTRUCTIBLE": 71, + "PAID_CALL_REDEEM_FAILED": 72, + "PREVENTED_JOIN_BY_TICKET": 73, + "SEND_MESSAGE_NOT_PERMITTED_FROM_LINE_AT": 75, + "SEND_MESSAGE_NOT_PERMITTED_WHILE_AUTO_REPLY": 76, + "SECURITY_CENTER_NOT_VERIFIED": 77, + "SECURITY_CENTER_BLOCKED_BY_SETTING": 78, + "SECURITY_CENTER_BLOCKED": 79, + "TALK_PROXY_EXCEPTION": 80, + "E2EE_INVALID_PROTOCOL": 81, + "E2EE_RETRY_ENCRYPT": 82, + "E2EE_UPDATE_SENDER_KEY": 83, + "E2EE_UPDATE_RECEIVER_KEY": 84, + "E2EE_INVALID_ARGUMENT": 85, + "E2EE_INVALID_VERSION": 86, + "E2EE_SENDER_DISABLED": 87, + "E2EE_RECEIVER_DISABLED": 88, + "E2EE_SENDER_NOT_ALLOWED": 89, + "E2EE_RECEIVER_NOT_ALLOWED": 90, + "E2EE_RESEND_FAIL": 91, + "E2EE_RESEND_OK": 92, + "HITOKOTO_BACKUP_NO_AVAILABLE_DATA": 93, + "E2EE_UPDATE_PRIMARY_DEVICE": 94, + "SUCCESS": 95, + "CANCEL": 96, + "E2EE_PRIMARY_NOT_SUPPORT": 97, + "E2EE_RETRY_PLAIN": 98, + "E2EE_RECREATE_GROUP_KEY": 99, + "E2EE_GROUP_TOO_MANY_MEMBERS": 100, + "SERVER_BUSY": 101, + "NOT_ALLOWED_ADD_FOLLOW": 102, + "INCOMING_FRIEND_REQUEST_LIMIT": 103, + "OUTGOING_FRIEND_REQUEST_LIMIT": 104, + "OUTGOING_FRIEND_REQUEST_QUOTA": 105, + "DUPLICATED": 106, + "BANNED": 107, + } + + +class FeatureType(object): + OBS_VIDEO = 1 + OBS_GENERAL = 2 + + _VALUES_TO_NAMES = { + 1: "OBS_VIDEO", + 2: "OBS_GENERAL", + } + + _NAMES_TO_VALUES = { + "OBS_VIDEO": 1, + "OBS_GENERAL": 2, + } + + +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, + } + + +class IdentityProvider(object): + UNKNOWN = 0 + LINE = 1 + NAVER_KR = 2 + LINE_PHONE = 3 + + _VALUES_TO_NAMES = { + 0: "UNKNOWN", + 1: "LINE", + 2: "NAVER_KR", + 3: "LINE_PHONE", + } + + _NAMES_TO_VALUES = { + "UNKNOWN": 0, + "LINE": 1, + "NAVER_KR": 2, + "LINE_PHONE": 3, + } + + +class LoginResultType(object): + SUCCESS = 1 + REQUIRE_QRCODE = 2 + REQUIRE_DEVICE_CONFIRM = 3 + REQUIRE_SMS_CONFIRM = 4 + + _VALUES_TO_NAMES = { + 1: "SUCCESS", + 2: "REQUIRE_QRCODE", + 3: "REQUIRE_DEVICE_CONFIRM", + 4: "REQUIRE_SMS_CONFIRM", + } + + _NAMES_TO_VALUES = { + "SUCCESS": 1, + "REQUIRE_QRCODE": 2, + "REQUIRE_DEVICE_CONFIRM": 3, + "REQUIRE_SMS_CONFIRM": 4, + } + + +class MessageOperationType(object): + SEND_MESSAGE = 1 + RECEIVE_MESSAGE = 2 + READ_MESSAGE = 3 + NOTIFIED_READ_MESSAGE = 4 + NOTIFIED_JOIN_CHAT = 5 + FAILED_SEND_MESSAGE = 6 + SEND_CONTENT = 7 + SEND_CONTENT_RECEIPT = 8 + SEND_CHAT_REMOVED = 9 + REMOVE_ALL_MESSAGES = 10 + + _VALUES_TO_NAMES = { + 1: "SEND_MESSAGE", + 2: "RECEIVE_MESSAGE", + 3: "READ_MESSAGE", + 4: "NOTIFIED_READ_MESSAGE", + 5: "NOTIFIED_JOIN_CHAT", + 6: "FAILED_SEND_MESSAGE", + 7: "SEND_CONTENT", + 8: "SEND_CONTENT_RECEIPT", + 9: "SEND_CHAT_REMOVED", + 10: "REMOVE_ALL_MESSAGES", + } + + _NAMES_TO_VALUES = { + "SEND_MESSAGE": 1, + "RECEIVE_MESSAGE": 2, + "READ_MESSAGE": 3, + "NOTIFIED_READ_MESSAGE": 4, + "NOTIFIED_JOIN_CHAT": 5, + "FAILED_SEND_MESSAGE": 6, + "SEND_CONTENT": 7, + "SEND_CONTENT_RECEIPT": 8, + "SEND_CHAT_REMOVED": 9, + "REMOVE_ALL_MESSAGES": 10, + } + + +class MIDType(object): + USER = 0 + ROOM = 1 + GROUP = 2 + SQUARE = 3 + SQUARE_CHAT = 4 + SQUARE_MEMBER = 5 + BOT = 6 + + _VALUES_TO_NAMES = { + 0: "USER", + 1: "ROOM", + 2: "GROUP", + 3: "SQUARE", + 4: "SQUARE_CHAT", + 5: "SQUARE_MEMBER", + 6: "BOT", + } + + _NAMES_TO_VALUES = { + "USER": 0, + "ROOM": 1, + "GROUP": 2, + "SQUARE": 3, + "SQUARE_CHAT": 4, + "SQUARE_MEMBER": 5, + "BOT": 6, + } + + +class ServiceCode(object): + UNKNOWN = 0 + TALK = 1 + SQUARE = 2 + + _VALUES_TO_NAMES = { + 0: "UNKNOWN", + 1: "TALK", + 2: "SQUARE", + } + + _NAMES_TO_VALUES = { + "UNKNOWN": 0, + "TALK": 1, + "SQUARE": 2, + } + + +class FriendRequestDirection(object): + INCOMING = 1 + OUTGOING = 2 + + _VALUES_TO_NAMES = { + 1: "INCOMING", + 2: "OUTGOING", + } + + _NAMES_TO_VALUES = { + "INCOMING": 1, + "OUTGOING": 2, + } + + +class FriendRequestMethod(object): + TIMELINE = 1 + NEARBY = 2 + SQUARE = 3 + + _VALUES_TO_NAMES = { + 1: "TIMELINE", + 2: "NEARBY", + 3: "SQUARE", + } + + _NAMES_TO_VALUES = { + "TIMELINE": 1, + "NEARBY": 2, + "SQUARE": 3, + } + + +class FriendRequestStatus(object): + NONE = 0 + AVAILABLE = 1 + ALREADY_REQUESTED = 2 + UNAVAILABLE = 3 + + _VALUES_TO_NAMES = { + 0: "NONE", + 1: "AVAILABLE", + 2: "ALREADY_REQUESTED", + 3: "UNAVAILABLE", + } + + _NAMES_TO_VALUES = { + "NONE": 0, + "AVAILABLE": 1, + "ALREADY_REQUESTED": 2, + "UNAVAILABLE": 3, + } + + +class ModificationType(object): + ADD = 0 + REMOVE = 1 + MODIFY = 2 + + _VALUES_TO_NAMES = { + 0: "ADD", + 1: "REMOVE", + 2: "MODIFY", + } + + _NAMES_TO_VALUES = { + "ADD": 0, + "REMOVE": 1, + "MODIFY": 2, + } + + +class NotificationItemFetchMode(object): + ALL = 0 + APPEND = 1 + + _VALUES_TO_NAMES = { + 0: "ALL", + 1: "APPEND", + } + + _NAMES_TO_VALUES = { + "ALL": 0, + "APPEND": 1, + } + + +class NotificationQueueType(object): + GLOBAL = 1 + MESSAGE = 2 + PRIMARY = 3 + + _VALUES_TO_NAMES = { + 1: "GLOBAL", + 2: "MESSAGE", + 3: "PRIMARY", + } + + _NAMES_TO_VALUES = { + "GLOBAL": 1, + "MESSAGE": 2, + "PRIMARY": 3, + } + + +class GroupCallMediaType(object): + AUDIO = 1 + VIDEO = 2 + + _VALUES_TO_NAMES = { + 1: "AUDIO", + 2: "VIDEO", + } + + _NAMES_TO_VALUES = { + "AUDIO": 1, + "VIDEO": 2, + } + + +class PersonalInfo(object): + EMAIL = 0 + PHONE = 1 + BIRTHDAY = 2 + RAW_BIRTHDAY = 3 + + _VALUES_TO_NAMES = { + 0: "EMAIL", + 1: "PHONE", + 2: "BIRTHDAY", + 3: "RAW_BIRTHDAY", + } + + _NAMES_TO_VALUES = { + "EMAIL": 0, + "PHONE": 1, + "BIRTHDAY": 2, + "RAW_BIRTHDAY": 3, + } + + +class NotificationStatus(object): + NOTIFICATION_ITEM_EXIST = 1 + TIMELINE_ITEM_EXIST = 2 + NOTE_GROUP_NEW_ITEM_EXIST = 4 + TIMELINE_BUDDYGROUP_CHANGED = 8 + NOTE_ONE_TO_ONE_NEW_ITEM_EXIST = 16 + ALBUM_ITEM_EXIST = 32 + TIMELINE_ITEM_DELETED = 64 + OTOGROUP_ITEM_EXIST = 128 + GROUPHOME_NEW_ITEM_EXIST = 256 + GROUPHOME_HIDDEN_ITEM_CHANGED = 512 + NOTIFICATION_ITEM_CHANGED = 1024 + BEAD_ITEM_HIDE = 2048 + BEAD_ITEM_SHOW = 4096 + + _VALUES_TO_NAMES = { + 1: "NOTIFICATION_ITEM_EXIST", + 2: "TIMELINE_ITEM_EXIST", + 4: "NOTE_GROUP_NEW_ITEM_EXIST", + 8: "TIMELINE_BUDDYGROUP_CHANGED", + 16: "NOTE_ONE_TO_ONE_NEW_ITEM_EXIST", + 32: "ALBUM_ITEM_EXIST", + 64: "TIMELINE_ITEM_DELETED", + 128: "OTOGROUP_ITEM_EXIST", + 256: "GROUPHOME_NEW_ITEM_EXIST", + 512: "GROUPHOME_HIDDEN_ITEM_CHANGED", + 1024: "NOTIFICATION_ITEM_CHANGED", + 2048: "BEAD_ITEM_HIDE", + 4096: "BEAD_ITEM_SHOW", + } + + _NAMES_TO_VALUES = { + "NOTIFICATION_ITEM_EXIST": 1, + "TIMELINE_ITEM_EXIST": 2, + "NOTE_GROUP_NEW_ITEM_EXIST": 4, + "TIMELINE_BUDDYGROUP_CHANGED": 8, + "NOTE_ONE_TO_ONE_NEW_ITEM_EXIST": 16, + "ALBUM_ITEM_EXIST": 32, + "TIMELINE_ITEM_DELETED": 64, + "OTOGROUP_ITEM_EXIST": 128, + "GROUPHOME_NEW_ITEM_EXIST": 256, + "GROUPHOME_HIDDEN_ITEM_CHANGED": 512, + "NOTIFICATION_ITEM_CHANGED": 1024, + "BEAD_ITEM_HIDE": 2048, + "BEAD_ITEM_SHOW": 4096, + } + + +class NotificationType(object): + APPLE_APNS = 1 + GOOGLE_C2DM = 2 + NHN_NNI = 3 + SKT_AOM = 4 + MS_MPNS = 5 + RIM_BIS = 6 + GOOGLE_GCM = 7 + NOKIA_NNAPI = 8 + TIZEN = 9 + LINE_BOT = 17 + LINE_WAP = 18 + APPLE_APNS_VOIP = 19 + MS_WNS = 20 + GOOGLE_FCM = 21 + + _VALUES_TO_NAMES = { + 1: "APPLE_APNS", + 2: "GOOGLE_C2DM", + 3: "NHN_NNI", + 4: "SKT_AOM", + 5: "MS_MPNS", + 6: "RIM_BIS", + 7: "GOOGLE_GCM", + 8: "NOKIA_NNAPI", + 9: "TIZEN", + 17: "LINE_BOT", + 18: "LINE_WAP", + 19: "APPLE_APNS_VOIP", + 20: "MS_WNS", + 21: "GOOGLE_FCM", + } + + _NAMES_TO_VALUES = { + "APPLE_APNS": 1, + "GOOGLE_C2DM": 2, + "NHN_NNI": 3, + "SKT_AOM": 4, + "MS_MPNS": 5, + "RIM_BIS": 6, + "GOOGLE_GCM": 7, + "NOKIA_NNAPI": 8, + "TIZEN": 9, + "LINE_BOT": 17, + "LINE_WAP": 18, + "APPLE_APNS_VOIP": 19, + "MS_WNS": 20, + "GOOGLE_FCM": 21, + } + + +class OpStatus(object): + NORMAL = 0 + ALERT_DISABLED = 1 + ALWAYS = 2 + + _VALUES_TO_NAMES = { + 0: "NORMAL", + 1: "ALERT_DISABLED", + 2: "ALWAYS", + } + + _NAMES_TO_VALUES = { + "NORMAL": 0, + "ALERT_DISABLED": 1, + "ALWAYS": 2, + } + + +class OpType(object): + END_OF_OPERATION = 0 + UPDATE_PROFILE = 1 + UPDATE_SETTINGS = 36 + NOTIFIED_UPDATE_PROFILE = 2 + REGISTER_USERID = 3 + ADD_CONTACT = 4 + NOTIFIED_ADD_CONTACT = 5 + BLOCK_CONTACT = 6 + UNBLOCK_CONTACT = 7 + NOTIFIED_RECOMMEND_CONTACT = 8 + CREATE_GROUP = 9 + UPDATE_GROUP = 10 + NOTIFIED_UPDATE_GROUP = 11 + INVITE_INTO_GROUP = 12 + NOTIFIED_INVITE_INTO_GROUP = 13 + CANCEL_INVITATION_GROUP = 31 + NOTIFIED_CANCEL_INVITATION_GROUP = 32 + LEAVE_GROUP = 14 + NOTIFIED_LEAVE_GROUP = 15 + ACCEPT_GROUP_INVITATION = 16 + NOTIFIED_ACCEPT_GROUP_INVITATION = 17 + REJECT_GROUP_INVITATION = 34 + NOTIFIED_REJECT_GROUP_INVITATION = 35 + KICKOUT_FROM_GROUP = 18 + NOTIFIED_KICKOUT_FROM_GROUP = 19 + CREATE_ROOM = 20 + INVITE_INTO_ROOM = 21 + NOTIFIED_INVITE_INTO_ROOM = 22 + LEAVE_ROOM = 23 + NOTIFIED_LEAVE_ROOM = 24 + SEND_MESSAGE = 25 + RECEIVE_MESSAGE = 26 + SEND_MESSAGE_RECEIPT = 27 + RECEIVE_MESSAGE_RECEIPT = 28 + SEND_CONTENT_RECEIPT = 29 + RECEIVE_ANNOUNCEMENT = 30 + NOTIFIED_UNREGISTER_USER = 33 + INVITE_VIA_EMAIL = 38 + NOTIFIED_REGISTER_USER = 37 + NOTIFIED_REQUEST_RECOVERY = 39 + SEND_CHAT_CHECKED = 40 + SEND_CHAT_REMOVED = 41 + NOTIFIED_FORCE_SYNC = 42 + SEND_CONTENT = 43 + SEND_MESSAGE_MYHOME = 44 + NOTIFIED_UPDATE_CONTENT_PREVIEW = 45 + REMOVE_ALL_MESSAGES = 46 + NOTIFIED_UPDATE_PURCHASES = 47 + DUMMY = 48 + UPDATE_CONTACT = 49 + NOTIFIED_RECEIVED_CALL = 50 + CANCEL_CALL = 51 + NOTIFIED_REDIRECT = 52 + NOTIFIED_CHANNEL_SYNC = 53 + FAILED_SEND_MESSAGE = 54 + NOTIFIED_READ_MESSAGE = 55 + FAILED_EMAIL_CONFIRMATION = 56 + NOTIFIED_CHAT_CONTENT = 58 + NOTIFIED_PUSH_NOTICENTER_ITEM = 59 + NOTIFIED_JOIN_CHAT = 60 + NOTIFIED_LEAVE_CHAT = 61 + NOTIFIED_TYPING = 62 + FRIEND_REQUEST_ACCEPTED = 63 + DESTROY_MESSAGE = 64 + NOTIFIED_DESTROY_MESSAGE = 65 + UPDATE_PUBLICKEYCHAIN = 66 + NOTIFIED_UPDATE_PUBLICKEYCHAIN = 67 + NOTIFIED_BLOCK_CONTACT = 68 + NOTIFIED_UNBLOCK_CONTACT = 69 + UPDATE_GROUPPREFERENCE = 70 + NOTIFIED_PAYMENT_EVENT = 71 + REGISTER_E2EE_PUBLICKEY = 72 + NOTIFIED_E2EE_KEY_EXCHANGE_REQ = 73 + NOTIFIED_E2EE_KEY_EXCHANGE_RESP = 74 + NOTIFIED_E2EE_MESSAGE_RESEND_REQ = 75 + NOTIFIED_E2EE_MESSAGE_RESEND_RESP = 76 + NOTIFIED_E2EE_KEY_UPDATE = 77 + NOTIFIED_BUDDY_UPDATE_PROFILE = 78 + NOTIFIED_UPDATE_LINEAT_TABS = 79 + UPDATE_ROOM = 80 + NOTIFIED_BEACON_DETECTED = 81 + UPDATE_EXTENDED_PROFILE = 82 + ADD_FOLLOW = 83 + NOTIFIED_ADD_FOLLOW = 84 + DELETE_FOLLOW = 85 + NOTIFIED_DELETE_FOLLOW = 86 + UPDATE_TIMELINE_SETTINGS = 87 + NOTIFIED_FRIEND_REQUEST = 88 + UPDATE_RINGBACK_TONE = 89 + NOTIFIED_POSTBACK = 90 + RECEIVE_READ_WATERMARK = 91 + NOTIFIED_MESSAGE_DELIVERED = 92 + NOTIFIED_UPDATE_CHAT_BAR = 93 + NOTIFIED_CHATAPP_INSTALLED = 94 + NOTIFIED_CHATAPP_UPDATED = 95 + NOTIFIED_CHATAPP_NEW_MARK = 96 + NOTIFIED_CHATAPP_DELETED = 97 + NOTIFIED_CHATAPP_SYNC = 98 + NOTIFIED_UPDATE_MESSAGE = 99 + + _VALUES_TO_NAMES = { + 0: "END_OF_OPERATION", + 1: "UPDATE_PROFILE", + 36: "UPDATE_SETTINGS", + 2: "NOTIFIED_UPDATE_PROFILE", + 3: "REGISTER_USERID", + 4: "ADD_CONTACT", + 5: "NOTIFIED_ADD_CONTACT", + 6: "BLOCK_CONTACT", + 7: "UNBLOCK_CONTACT", + 8: "NOTIFIED_RECOMMEND_CONTACT", + 9: "CREATE_GROUP", + 10: "UPDATE_GROUP", + 11: "NOTIFIED_UPDATE_GROUP", + 12: "INVITE_INTO_GROUP", + 13: "NOTIFIED_INVITE_INTO_GROUP", + 31: "CANCEL_INVITATION_GROUP", + 32: "NOTIFIED_CANCEL_INVITATION_GROUP", + 14: "LEAVE_GROUP", + 15: "NOTIFIED_LEAVE_GROUP", + 16: "ACCEPT_GROUP_INVITATION", + 17: "NOTIFIED_ACCEPT_GROUP_INVITATION", + 34: "REJECT_GROUP_INVITATION", + 35: "NOTIFIED_REJECT_GROUP_INVITATION", + 18: "KICKOUT_FROM_GROUP", + 19: "NOTIFIED_KICKOUT_FROM_GROUP", + 20: "CREATE_ROOM", + 21: "INVITE_INTO_ROOM", + 22: "NOTIFIED_INVITE_INTO_ROOM", + 23: "LEAVE_ROOM", + 24: "NOTIFIED_LEAVE_ROOM", + 25: "SEND_MESSAGE", + 26: "RECEIVE_MESSAGE", + 27: "SEND_MESSAGE_RECEIPT", + 28: "RECEIVE_MESSAGE_RECEIPT", + 29: "SEND_CONTENT_RECEIPT", + 30: "RECEIVE_ANNOUNCEMENT", + 33: "NOTIFIED_UNREGISTER_USER", + 38: "INVITE_VIA_EMAIL", + 37: "NOTIFIED_REGISTER_USER", + 39: "NOTIFIED_REQUEST_RECOVERY", + 40: "SEND_CHAT_CHECKED", + 41: "SEND_CHAT_REMOVED", + 42: "NOTIFIED_FORCE_SYNC", + 43: "SEND_CONTENT", + 44: "SEND_MESSAGE_MYHOME", + 45: "NOTIFIED_UPDATE_CONTENT_PREVIEW", + 46: "REMOVE_ALL_MESSAGES", + 47: "NOTIFIED_UPDATE_PURCHASES", + 48: "DUMMY", + 49: "UPDATE_CONTACT", + 50: "NOTIFIED_RECEIVED_CALL", + 51: "CANCEL_CALL", + 52: "NOTIFIED_REDIRECT", + 53: "NOTIFIED_CHANNEL_SYNC", + 54: "FAILED_SEND_MESSAGE", + 55: "NOTIFIED_READ_MESSAGE", + 56: "FAILED_EMAIL_CONFIRMATION", + 58: "NOTIFIED_CHAT_CONTENT", + 59: "NOTIFIED_PUSH_NOTICENTER_ITEM", + 60: "NOTIFIED_JOIN_CHAT", + 61: "NOTIFIED_LEAVE_CHAT", + 62: "NOTIFIED_TYPING", + 63: "FRIEND_REQUEST_ACCEPTED", + 64: "DESTROY_MESSAGE", + 65: "NOTIFIED_DESTROY_MESSAGE", + 66: "UPDATE_PUBLICKEYCHAIN", + 67: "NOTIFIED_UPDATE_PUBLICKEYCHAIN", + 68: "NOTIFIED_BLOCK_CONTACT", + 69: "NOTIFIED_UNBLOCK_CONTACT", + 70: "UPDATE_GROUPPREFERENCE", + 71: "NOTIFIED_PAYMENT_EVENT", + 72: "REGISTER_E2EE_PUBLICKEY", + 73: "NOTIFIED_E2EE_KEY_EXCHANGE_REQ", + 74: "NOTIFIED_E2EE_KEY_EXCHANGE_RESP", + 75: "NOTIFIED_E2EE_MESSAGE_RESEND_REQ", + 76: "NOTIFIED_E2EE_MESSAGE_RESEND_RESP", + 77: "NOTIFIED_E2EE_KEY_UPDATE", + 78: "NOTIFIED_BUDDY_UPDATE_PROFILE", + 79: "NOTIFIED_UPDATE_LINEAT_TABS", + 80: "UPDATE_ROOM", + 81: "NOTIFIED_BEACON_DETECTED", + 82: "UPDATE_EXTENDED_PROFILE", + 83: "ADD_FOLLOW", + 84: "NOTIFIED_ADD_FOLLOW", + 85: "DELETE_FOLLOW", + 86: "NOTIFIED_DELETE_FOLLOW", + 87: "UPDATE_TIMELINE_SETTINGS", + 88: "NOTIFIED_FRIEND_REQUEST", + 89: "UPDATE_RINGBACK_TONE", + 90: "NOTIFIED_POSTBACK", + 91: "RECEIVE_READ_WATERMARK", + 92: "NOTIFIED_MESSAGE_DELIVERED", + 93: "NOTIFIED_UPDATE_CHAT_BAR", + 94: "NOTIFIED_CHATAPP_INSTALLED", + 95: "NOTIFIED_CHATAPP_UPDATED", + 96: "NOTIFIED_CHATAPP_NEW_MARK", + 97: "NOTIFIED_CHATAPP_DELETED", + 98: "NOTIFIED_CHATAPP_SYNC", + 99: "NOTIFIED_UPDATE_MESSAGE", + } + + _NAMES_TO_VALUES = { + "END_OF_OPERATION": 0, + "UPDATE_PROFILE": 1, + "UPDATE_SETTINGS": 36, + "NOTIFIED_UPDATE_PROFILE": 2, + "REGISTER_USERID": 3, + "ADD_CONTACT": 4, + "NOTIFIED_ADD_CONTACT": 5, + "BLOCK_CONTACT": 6, + "UNBLOCK_CONTACT": 7, + "NOTIFIED_RECOMMEND_CONTACT": 8, + "CREATE_GROUP": 9, + "UPDATE_GROUP": 10, + "NOTIFIED_UPDATE_GROUP": 11, + "INVITE_INTO_GROUP": 12, + "NOTIFIED_INVITE_INTO_GROUP": 13, + "CANCEL_INVITATION_GROUP": 31, + "NOTIFIED_CANCEL_INVITATION_GROUP": 32, + "LEAVE_GROUP": 14, + "NOTIFIED_LEAVE_GROUP": 15, + "ACCEPT_GROUP_INVITATION": 16, + "NOTIFIED_ACCEPT_GROUP_INVITATION": 17, + "REJECT_GROUP_INVITATION": 34, + "NOTIFIED_REJECT_GROUP_INVITATION": 35, + "KICKOUT_FROM_GROUP": 18, + "NOTIFIED_KICKOUT_FROM_GROUP": 19, + "CREATE_ROOM": 20, + "INVITE_INTO_ROOM": 21, + "NOTIFIED_INVITE_INTO_ROOM": 22, + "LEAVE_ROOM": 23, + "NOTIFIED_LEAVE_ROOM": 24, + "SEND_MESSAGE": 25, + "RECEIVE_MESSAGE": 26, + "SEND_MESSAGE_RECEIPT": 27, + "RECEIVE_MESSAGE_RECEIPT": 28, + "SEND_CONTENT_RECEIPT": 29, + "RECEIVE_ANNOUNCEMENT": 30, + "NOTIFIED_UNREGISTER_USER": 33, + "INVITE_VIA_EMAIL": 38, + "NOTIFIED_REGISTER_USER": 37, + "NOTIFIED_REQUEST_RECOVERY": 39, + "SEND_CHAT_CHECKED": 40, + "SEND_CHAT_REMOVED": 41, + "NOTIFIED_FORCE_SYNC": 42, + "SEND_CONTENT": 43, + "SEND_MESSAGE_MYHOME": 44, + "NOTIFIED_UPDATE_CONTENT_PREVIEW": 45, + "REMOVE_ALL_MESSAGES": 46, + "NOTIFIED_UPDATE_PURCHASES": 47, + "DUMMY": 48, + "UPDATE_CONTACT": 49, + "NOTIFIED_RECEIVED_CALL": 50, + "CANCEL_CALL": 51, + "NOTIFIED_REDIRECT": 52, + "NOTIFIED_CHANNEL_SYNC": 53, + "FAILED_SEND_MESSAGE": 54, + "NOTIFIED_READ_MESSAGE": 55, + "FAILED_EMAIL_CONFIRMATION": 56, + "NOTIFIED_CHAT_CONTENT": 58, + "NOTIFIED_PUSH_NOTICENTER_ITEM": 59, + "NOTIFIED_JOIN_CHAT": 60, + "NOTIFIED_LEAVE_CHAT": 61, + "NOTIFIED_TYPING": 62, + "FRIEND_REQUEST_ACCEPTED": 63, + "DESTROY_MESSAGE": 64, + "NOTIFIED_DESTROY_MESSAGE": 65, + "UPDATE_PUBLICKEYCHAIN": 66, + "NOTIFIED_UPDATE_PUBLICKEYCHAIN": 67, + "NOTIFIED_BLOCK_CONTACT": 68, + "NOTIFIED_UNBLOCK_CONTACT": 69, + "UPDATE_GROUPPREFERENCE": 70, + "NOTIFIED_PAYMENT_EVENT": 71, + "REGISTER_E2EE_PUBLICKEY": 72, + "NOTIFIED_E2EE_KEY_EXCHANGE_REQ": 73, + "NOTIFIED_E2EE_KEY_EXCHANGE_RESP": 74, + "NOTIFIED_E2EE_MESSAGE_RESEND_REQ": 75, + "NOTIFIED_E2EE_MESSAGE_RESEND_RESP": 76, + "NOTIFIED_E2EE_KEY_UPDATE": 77, + "NOTIFIED_BUDDY_UPDATE_PROFILE": 78, + "NOTIFIED_UPDATE_LINEAT_TABS": 79, + "UPDATE_ROOM": 80, + "NOTIFIED_BEACON_DETECTED": 81, + "UPDATE_EXTENDED_PROFILE": 82, + "ADD_FOLLOW": 83, + "NOTIFIED_ADD_FOLLOW": 84, + "DELETE_FOLLOW": 85, + "NOTIFIED_DELETE_FOLLOW": 86, + "UPDATE_TIMELINE_SETTINGS": 87, + "NOTIFIED_FRIEND_REQUEST": 88, + "UPDATE_RINGBACK_TONE": 89, + "NOTIFIED_POSTBACK": 90, + "RECEIVE_READ_WATERMARK": 91, + "NOTIFIED_MESSAGE_DELIVERED": 92, + "NOTIFIED_UPDATE_CHAT_BAR": 93, + "NOTIFIED_CHATAPP_INSTALLED": 94, + "NOTIFIED_CHATAPP_UPDATED": 95, + "NOTIFIED_CHATAPP_NEW_MARK": 96, + "NOTIFIED_CHATAPP_DELETED": 97, + "NOTIFIED_CHATAPP_SYNC": 98, + "NOTIFIED_UPDATE_MESSAGE": 99, + } + + +class PayloadType(object): + PAYLOAD_BUY = 101 + PAYLOAD_CS = 111 + PAYLOAD_BONUS = 121 + PAYLOAD_EVENT = 131 + + _VALUES_TO_NAMES = { + 101: "PAYLOAD_BUY", + 111: "PAYLOAD_CS", + 121: "PAYLOAD_BONUS", + 131: "PAYLOAD_EVENT", + } + + _NAMES_TO_VALUES = { + "PAYLOAD_BUY": 101, + "PAYLOAD_CS": 111, + "PAYLOAD_BONUS": 121, + "PAYLOAD_EVENT": 131, + } + + +class PaymentPgType(object): + PAYMENT_PG_NONE = 0 + PAYMENT_PG_AU = 1 + PAYMENT_PG_AL = 2 + + _VALUES_TO_NAMES = { + 0: "PAYMENT_PG_NONE", + 1: "PAYMENT_PG_AU", + 2: "PAYMENT_PG_AL", + } + + _NAMES_TO_VALUES = { + "PAYMENT_PG_NONE": 0, + "PAYMENT_PG_AU": 1, + "PAYMENT_PG_AL": 2, + } + + +class PaymentType(object): + PAYMENT_APPLE = 1 + PAYMENT_GOOGLE = 2 + + _VALUES_TO_NAMES = { + 1: "PAYMENT_APPLE", + 2: "PAYMENT_GOOGLE", + } + + _NAMES_TO_VALUES = { + "PAYMENT_APPLE": 1, + "PAYMENT_GOOGLE": 2, + } + + +class ProductBannerLinkType(object): + BANNER_LINK_NONE = 0 + BANNER_LINK_ITEM = 1 + BANNER_LINK_URL = 2 + BANNER_LINK_CATEGORY = 3 + + _VALUES_TO_NAMES = { + 0: "BANNER_LINK_NONE", + 1: "BANNER_LINK_ITEM", + 2: "BANNER_LINK_URL", + 3: "BANNER_LINK_CATEGORY", + } + + _NAMES_TO_VALUES = { + "BANNER_LINK_NONE": 0, + "BANNER_LINK_ITEM": 1, + "BANNER_LINK_URL": 2, + "BANNER_LINK_CATEGORY": 3, + } + + +class ProductEventType(object): + NO_EVENT = 0 + CARRIER_ANY = 65537 + BUDDY_ANY = 131073 + INSTALL_IOS = 196609 + INSTALL_ANDROID = 196610 + MISSION_ANY = 262145 + MUSTBUY_ANY = 327681 + + _VALUES_TO_NAMES = { + 0: "NO_EVENT", + 65537: "CARRIER_ANY", + 131073: "BUDDY_ANY", + 196609: "INSTALL_IOS", + 196610: "INSTALL_ANDROID", + 262145: "MISSION_ANY", + 327681: "MUSTBUY_ANY", + } + + _NAMES_TO_VALUES = { + "NO_EVENT": 0, + "CARRIER_ANY": 65537, + "BUDDY_ANY": 131073, + "INSTALL_IOS": 196609, + "INSTALL_ANDROID": 196610, + "MISSION_ANY": 262145, + "MUSTBUY_ANY": 327681, + } + + +class StickerResourceType(object): + STATIC = 1 + ANIMATION = 2 + SOUND = 3 + ANIMATION_SOUND = 4 + POPUP = 5 + POPUP_SOUND = 6 + + _VALUES_TO_NAMES = { + 1: "STATIC", + 2: "ANIMATION", + 3: "SOUND", + 4: "ANIMATION_SOUND", + 5: "POPUP", + 6: "POPUP_SOUND", + } + + _NAMES_TO_VALUES = { + "STATIC": 1, + "ANIMATION": 2, + "SOUND": 3, + "ANIMATION_SOUND": 4, + "POPUP": 5, + "POPUP_SOUND": 6, + } + + +class PlaceSearchProvider(object): + GOOGLE = 0 + BAIDU = 1 + + _VALUES_TO_NAMES = { + 0: "GOOGLE", + 1: "BAIDU", + } + + _NAMES_TO_VALUES = { + "GOOGLE": 0, + "BAIDU": 1, + } + + +class PointErrorCode(object): + REQUEST_DUPLICATION = 3001 + INVALID_PARAMETER = 3002 + NOT_ENOUGH_BALANCE = 3003 + AUTHENTICATION_FAIL = 3004 + API_ACCESS_FORBIDDEN = 3005 + MEMBER_ACCOUNT_NOT_FOUND = 3006 + SERVICE_ACCOUNT_NOT_FOUND = 3007 + TRANSACTION_NOT_FOUND = 3008 + ALREADY_REVERSED_TRANSACTION = 3009 + MESSAGE_NOT_READABLE = 3010 + HTTP_REQUEST_METHOD_NOT_SUPPORTED = 3011 + HTTP_MEDIA_TYPE_NOT_SUPPORTED = 3012 + NOT_ALLOWED_TO_DEPOSIT = 3013 + NOT_ALLOWED_TO_PAY = 3014 + TRANSACTION_ACCESS_FORBIDDEN = 3015 + INVALID_SERVICE_CONFIGURATION = 4001 + DCS_COMMUNICATION_FAIL = 5004 + UPDATE_BALANCE_FAIL = 5007 + SYSTEM_ERROR = 5999 + SYSTEM_MAINTENANCE = 5888 + + _VALUES_TO_NAMES = { + 3001: "REQUEST_DUPLICATION", + 3002: "INVALID_PARAMETER", + 3003: "NOT_ENOUGH_BALANCE", + 3004: "AUTHENTICATION_FAIL", + 3005: "API_ACCESS_FORBIDDEN", + 3006: "MEMBER_ACCOUNT_NOT_FOUND", + 3007: "SERVICE_ACCOUNT_NOT_FOUND", + 3008: "TRANSACTION_NOT_FOUND", + 3009: "ALREADY_REVERSED_TRANSACTION", + 3010: "MESSAGE_NOT_READABLE", + 3011: "HTTP_REQUEST_METHOD_NOT_SUPPORTED", + 3012: "HTTP_MEDIA_TYPE_NOT_SUPPORTED", + 3013: "NOT_ALLOWED_TO_DEPOSIT", + 3014: "NOT_ALLOWED_TO_PAY", + 3015: "TRANSACTION_ACCESS_FORBIDDEN", + 4001: "INVALID_SERVICE_CONFIGURATION", + 5004: "DCS_COMMUNICATION_FAIL", + 5007: "UPDATE_BALANCE_FAIL", + 5999: "SYSTEM_ERROR", + 5888: "SYSTEM_MAINTENANCE", + } + + _NAMES_TO_VALUES = { + "REQUEST_DUPLICATION": 3001, + "INVALID_PARAMETER": 3002, + "NOT_ENOUGH_BALANCE": 3003, + "AUTHENTICATION_FAIL": 3004, + "API_ACCESS_FORBIDDEN": 3005, + "MEMBER_ACCOUNT_NOT_FOUND": 3006, + "SERVICE_ACCOUNT_NOT_FOUND": 3007, + "TRANSACTION_NOT_FOUND": 3008, + "ALREADY_REVERSED_TRANSACTION": 3009, + "MESSAGE_NOT_READABLE": 3010, + "HTTP_REQUEST_METHOD_NOT_SUPPORTED": 3011, + "HTTP_MEDIA_TYPE_NOT_SUPPORTED": 3012, + "NOT_ALLOWED_TO_DEPOSIT": 3013, + "NOT_ALLOWED_TO_PAY": 3014, + "TRANSACTION_ACCESS_FORBIDDEN": 3015, + "INVALID_SERVICE_CONFIGURATION": 4001, + "DCS_COMMUNICATION_FAIL": 5004, + "UPDATE_BALANCE_FAIL": 5007, + "SYSTEM_ERROR": 5999, + "SYSTEM_MAINTENANCE": 5888, + } + + +class ProfileAttribute(object): + ALL = 511 + EMAIL = 1 + DISPLAY_NAME = 2 + PHONETIC_NAME = 4 + PICTURE = 8 + STATUS_MESSAGE = 16 + ALLOW_SEARCH_BY_USERID = 32 + ALLOW_SEARCH_BY_EMAIL = 64 + BUDDY_STATUS = 128 + MUSIC_PROFILE = 256 + + _VALUES_TO_NAMES = { + 511: "ALL", + 1: "EMAIL", + 2: "DISPLAY_NAME", + 4: "PHONETIC_NAME", + 8: "PICTURE", + 16: "STATUS_MESSAGE", + 32: "ALLOW_SEARCH_BY_USERID", + 64: "ALLOW_SEARCH_BY_EMAIL", + 128: "BUDDY_STATUS", + 256: "MUSIC_PROFILE", + } + + _NAMES_TO_VALUES = { + "ALL": 511, + "EMAIL": 1, + "DISPLAY_NAME": 2, + "PHONETIC_NAME": 4, + "PICTURE": 8, + "STATUS_MESSAGE": 16, + "ALLOW_SEARCH_BY_USERID": 32, + "ALLOW_SEARCH_BY_EMAIL": 64, + "BUDDY_STATUS": 128, + "MUSIC_PROFILE": 256, + } + + +class PublicType(object): + HIDDEN = 0 + PUBLIC = 1000 + + _VALUES_TO_NAMES = { + 0: "HIDDEN", + 1000: "PUBLIC", + } + + _NAMES_TO_VALUES = { + "HIDDEN": 0, + "PUBLIC": 1000, + } + + +class RedirectType(object): + NONE = 0 + EXPIRE_SECOND = 1 + + _VALUES_TO_NAMES = { + 0: "NONE", + 1: "EXPIRE_SECOND", + } + + _NAMES_TO_VALUES = { + "NONE": 0, + "EXPIRE_SECOND": 1, + } + + +class RegistrationType(object): + PHONE = 0 + EMAIL_WAP = 1 + FACEBOOK = 2305 + SINA = 2306 + RENREN = 2307 + FEIXIN = 2308 + + _VALUES_TO_NAMES = { + 0: "PHONE", + 1: "EMAIL_WAP", + 2305: "FACEBOOK", + 2306: "SINA", + 2307: "RENREN", + 2308: "FEIXIN", + } + + _NAMES_TO_VALUES = { + "PHONE": 0, + "EMAIL_WAP": 1, + "FACEBOOK": 2305, + "SINA": 2306, + "RENREN": 2307, + "FEIXIN": 2308, + } + + +class ChatRoomAnnouncementType(object): + MESSAGE = 0 + NOTE = 1 + + _VALUES_TO_NAMES = { + 0: "MESSAGE", + 1: "NOTE", + } + + _NAMES_TO_VALUES = { + "MESSAGE": 0, + "NOTE": 1, + } + + +class SettingsAttribute(object): + ALL = 2147483647 + NOTIFICATION_ENABLE = 1 + NOTIFICATION_MUTE_EXPIRATION = 2 + NOTIFICATION_NEW_MESSAGE = 4 + NOTIFICATION_GROUP_INVITATION = 8 + NOTIFICATION_SHOW_MESSAGE = 16 + NOTIFICATION_INCOMING_CALL = 32 + NOTIFICATION_SOUND_MESSAGE = 256 + NOTIFICATION_SOUND_GROUP = 512 + NOTIFICATION_DISABLED_WITH_SUB = 65536 + NOTIFICATION_PAYMENT = 131072 + PRIVACY_SYNC_CONTACTS = 64 + PRIVACY_SEARCH_BY_PHONE_NUMBER = 128 + PRIVACY_SEARCH_BY_USERID = 8192 + PRIVACY_SEARCH_BY_EMAIL = 16384 + PRIVACY_ALLOW_SECONDARY_DEVICE_LOGIN = 2097152 + PRIVACY_PROFILE_IMAGE_POST_TO_MYHOME = 8388608 + PRIVACY_ALLOW_FRIEND_REQUEST = 1073741824 + PRIVACY_RECV_MESSAGES_FROM_NOT_FRIEND = 33554432 + PRIVACY_AGREE_USE_LINECOIN_TO_PAIDCALL = 67108864 + PRIVACY_AGREE_USE_PAIDCALL = 134217728 + CONTACT_MY_TICKET = 1024 + IDENTITY_PROVIDER = 2048 + IDENTITY_IDENTIFIER = 4096 + SNS_ACCOUNT = 524288 + PHONE_REGISTRATION = 1048576 + PREFERENCE_LOCALE = 32768 + CUSTOM_MODE = 4194304 + EMAIL_CONFIRMATION_STATUS = 16777216 + ACCOUNT_MIGRATION_PINCODE = 268435456 + ENFORCED_INPUT_ACCOUNT_MIGRATION_PINCODE = 536870912 + SECURITY_CENTER_SETTINGS = 262144 + + _VALUES_TO_NAMES = { + 2147483647: "ALL", + 1: "NOTIFICATION_ENABLE", + 2: "NOTIFICATION_MUTE_EXPIRATION", + 4: "NOTIFICATION_NEW_MESSAGE", + 8: "NOTIFICATION_GROUP_INVITATION", + 16: "NOTIFICATION_SHOW_MESSAGE", + 32: "NOTIFICATION_INCOMING_CALL", + 256: "NOTIFICATION_SOUND_MESSAGE", + 512: "NOTIFICATION_SOUND_GROUP", + 65536: "NOTIFICATION_DISABLED_WITH_SUB", + 131072: "NOTIFICATION_PAYMENT", + 64: "PRIVACY_SYNC_CONTACTS", + 128: "PRIVACY_SEARCH_BY_PHONE_NUMBER", + 8192: "PRIVACY_SEARCH_BY_USERID", + 16384: "PRIVACY_SEARCH_BY_EMAIL", + 2097152: "PRIVACY_ALLOW_SECONDARY_DEVICE_LOGIN", + 8388608: "PRIVACY_PROFILE_IMAGE_POST_TO_MYHOME", + 1073741824: "PRIVACY_ALLOW_FRIEND_REQUEST", + 33554432: "PRIVACY_RECV_MESSAGES_FROM_NOT_FRIEND", + 67108864: "PRIVACY_AGREE_USE_LINECOIN_TO_PAIDCALL", + 134217728: "PRIVACY_AGREE_USE_PAIDCALL", + 1024: "CONTACT_MY_TICKET", + 2048: "IDENTITY_PROVIDER", + 4096: "IDENTITY_IDENTIFIER", + 524288: "SNS_ACCOUNT", + 1048576: "PHONE_REGISTRATION", + 32768: "PREFERENCE_LOCALE", + 4194304: "CUSTOM_MODE", + 16777216: "EMAIL_CONFIRMATION_STATUS", + 268435456: "ACCOUNT_MIGRATION_PINCODE", + 536870912: "ENFORCED_INPUT_ACCOUNT_MIGRATION_PINCODE", + 262144: "SECURITY_CENTER_SETTINGS", + } + + _NAMES_TO_VALUES = { + "ALL": 2147483647, + "NOTIFICATION_ENABLE": 1, + "NOTIFICATION_MUTE_EXPIRATION": 2, + "NOTIFICATION_NEW_MESSAGE": 4, + "NOTIFICATION_GROUP_INVITATION": 8, + "NOTIFICATION_SHOW_MESSAGE": 16, + "NOTIFICATION_INCOMING_CALL": 32, + "NOTIFICATION_SOUND_MESSAGE": 256, + "NOTIFICATION_SOUND_GROUP": 512, + "NOTIFICATION_DISABLED_WITH_SUB": 65536, + "NOTIFICATION_PAYMENT": 131072, + "PRIVACY_SYNC_CONTACTS": 64, + "PRIVACY_SEARCH_BY_PHONE_NUMBER": 128, + "PRIVACY_SEARCH_BY_USERID": 8192, + "PRIVACY_SEARCH_BY_EMAIL": 16384, + "PRIVACY_ALLOW_SECONDARY_DEVICE_LOGIN": 2097152, + "PRIVACY_PROFILE_IMAGE_POST_TO_MYHOME": 8388608, + "PRIVACY_ALLOW_FRIEND_REQUEST": 1073741824, + "PRIVACY_RECV_MESSAGES_FROM_NOT_FRIEND": 33554432, + "PRIVACY_AGREE_USE_LINECOIN_TO_PAIDCALL": 67108864, + "PRIVACY_AGREE_USE_PAIDCALL": 134217728, + "CONTACT_MY_TICKET": 1024, + "IDENTITY_PROVIDER": 2048, + "IDENTITY_IDENTIFIER": 4096, + "SNS_ACCOUNT": 524288, + "PHONE_REGISTRATION": 1048576, + "PREFERENCE_LOCALE": 32768, + "CUSTOM_MODE": 4194304, + "EMAIL_CONFIRMATION_STATUS": 16777216, + "ACCOUNT_MIGRATION_PINCODE": 268435456, + "ENFORCED_INPUT_ACCOUNT_MIGRATION_PINCODE": 536870912, + "SECURITY_CENTER_SETTINGS": 262144, + } + + +class SettingsAttributeEx(object): + NOTIFICATION_ENABLE = 0 + NOTIFICATION_MUTE_EXPIRATION = 1 + NOTIFICATION_NEW_MESSAGE = 2 + NOTIFICATION_GROUP_INVITATION = 3 + NOTIFICATION_SHOW_MESSAGE = 4 + NOTIFICATION_INCOMING_CALL = 5 + NOTIFICATION_SOUND_MESSAGE = 8 + NOTIFICATION_SOUND_GROUP = 9 + NOTIFICATION_DISABLED_WITH_SUB = 16 + NOTIFICATION_PAYMENT = 17 + NOTIFICATION_MENTION = 40 + NOTIFICATION_THUMBNAIL = 45 + PRIVACY_SYNC_CONTACTS = 6 + PRIVACY_SEARCH_BY_PHONE_NUMBER = 7 + PRIVACY_SEARCH_BY_USERID = 13 + PRIVACY_SEARCH_BY_EMAIL = 14 + PRIVACY_ALLOW_SECONDARY_DEVICE_LOGIN = 21 + PRIVACY_PROFILE_IMAGE_POST_TO_MYHOME = 23 + PRIVACY_PROFILE_MUSIC_POST_TO_MYHOME = 35 + PRIVACY_ALLOW_FRIEND_REQUEST = 30 + PRIVACY_RECV_MESSAGES_FROM_NOT_FRIEND = 25 + PRIVACY_AGREE_USE_LINECOIN_TO_PAIDCALL = 26 + PRIVACY_AGREE_USE_PAIDCALL = 27 + CONTACT_MY_TICKET = 10 + IDENTITY_PROVIDER = 11 + IDENTITY_IDENTIFIER = 12 + SNS_ACCOUNT = 19 + PHONE_REGISTRATION = 20 + PREFERENCE_LOCALE = 15 + CUSTOM_MODE = 22 + EMAIL_CONFIRMATION_STATUS = 24 + ACCOUNT_MIGRATION_PINCODE = 28 + ENFORCED_INPUT_ACCOUNT_MIGRATION_PINCODE = 29 + SECURITY_CENTER_SETTINGS = 18 + E2EE_ENABLE = 33 + ENABLE_SOUND_TO_TEXT = 47 + HITOKOTO_BACKUP_REQUESTED = 34 + CONTACT_ALLOW_FOLLOWING = 36 + PRIVACY_ALLOW_NEARBY = 37 + AGREEMENT_NEARBY = 38 + AGREEMENT_SQUARE = 39 + ALLOW_UNREGISTRATION_SECONDARY_DEVICE = 41 + AGREEMENT_BOT_USE = 42 + AGREEMENT_SHAKE_FUNCTION = 43 + AGREEMENT_MOBILE_CONTACT_NAME = 44 + AGREEMENT_SOUND_TO_TEXT = 46 + + _VALUES_TO_NAMES = { + 0: "NOTIFICATION_ENABLE", + 1: "NOTIFICATION_MUTE_EXPIRATION", + 2: "NOTIFICATION_NEW_MESSAGE", + 3: "NOTIFICATION_GROUP_INVITATION", + 4: "NOTIFICATION_SHOW_MESSAGE", + 5: "NOTIFICATION_INCOMING_CALL", + 8: "NOTIFICATION_SOUND_MESSAGE", + 9: "NOTIFICATION_SOUND_GROUP", + 16: "NOTIFICATION_DISABLED_WITH_SUB", + 17: "NOTIFICATION_PAYMENT", + 40: "NOTIFICATION_MENTION", + 45: "NOTIFICATION_THUMBNAIL", + 6: "PRIVACY_SYNC_CONTACTS", + 7: "PRIVACY_SEARCH_BY_PHONE_NUMBER", + 13: "PRIVACY_SEARCH_BY_USERID", + 14: "PRIVACY_SEARCH_BY_EMAIL", + 21: "PRIVACY_ALLOW_SECONDARY_DEVICE_LOGIN", + 23: "PRIVACY_PROFILE_IMAGE_POST_TO_MYHOME", + 35: "PRIVACY_PROFILE_MUSIC_POST_TO_MYHOME", + 30: "PRIVACY_ALLOW_FRIEND_REQUEST", + 25: "PRIVACY_RECV_MESSAGES_FROM_NOT_FRIEND", + 26: "PRIVACY_AGREE_USE_LINECOIN_TO_PAIDCALL", + 27: "PRIVACY_AGREE_USE_PAIDCALL", + 10: "CONTACT_MY_TICKET", + 11: "IDENTITY_PROVIDER", + 12: "IDENTITY_IDENTIFIER", + 19: "SNS_ACCOUNT", + 20: "PHONE_REGISTRATION", + 15: "PREFERENCE_LOCALE", + 22: "CUSTOM_MODE", + 24: "EMAIL_CONFIRMATION_STATUS", + 28: "ACCOUNT_MIGRATION_PINCODE", + 29: "ENFORCED_INPUT_ACCOUNT_MIGRATION_PINCODE", + 18: "SECURITY_CENTER_SETTINGS", + 33: "E2EE_ENABLE", + 47: "ENABLE_SOUND_TO_TEXT", + 34: "HITOKOTO_BACKUP_REQUESTED", + 36: "CONTACT_ALLOW_FOLLOWING", + 37: "PRIVACY_ALLOW_NEARBY", + 38: "AGREEMENT_NEARBY", + 39: "AGREEMENT_SQUARE", + 41: "ALLOW_UNREGISTRATION_SECONDARY_DEVICE", + 42: "AGREEMENT_BOT_USE", + 43: "AGREEMENT_SHAKE_FUNCTION", + 44: "AGREEMENT_MOBILE_CONTACT_NAME", + 46: "AGREEMENT_SOUND_TO_TEXT", + } + + _NAMES_TO_VALUES = { + "NOTIFICATION_ENABLE": 0, + "NOTIFICATION_MUTE_EXPIRATION": 1, + "NOTIFICATION_NEW_MESSAGE": 2, + "NOTIFICATION_GROUP_INVITATION": 3, + "NOTIFICATION_SHOW_MESSAGE": 4, + "NOTIFICATION_INCOMING_CALL": 5, + "NOTIFICATION_SOUND_MESSAGE": 8, + "NOTIFICATION_SOUND_GROUP": 9, + "NOTIFICATION_DISABLED_WITH_SUB": 16, + "NOTIFICATION_PAYMENT": 17, + "NOTIFICATION_MENTION": 40, + "NOTIFICATION_THUMBNAIL": 45, + "PRIVACY_SYNC_CONTACTS": 6, + "PRIVACY_SEARCH_BY_PHONE_NUMBER": 7, + "PRIVACY_SEARCH_BY_USERID": 13, + "PRIVACY_SEARCH_BY_EMAIL": 14, + "PRIVACY_ALLOW_SECONDARY_DEVICE_LOGIN": 21, + "PRIVACY_PROFILE_IMAGE_POST_TO_MYHOME": 23, + "PRIVACY_PROFILE_MUSIC_POST_TO_MYHOME": 35, + "PRIVACY_ALLOW_FRIEND_REQUEST": 30, + "PRIVACY_RECV_MESSAGES_FROM_NOT_FRIEND": 25, + "PRIVACY_AGREE_USE_LINECOIN_TO_PAIDCALL": 26, + "PRIVACY_AGREE_USE_PAIDCALL": 27, + "CONTACT_MY_TICKET": 10, + "IDENTITY_PROVIDER": 11, + "IDENTITY_IDENTIFIER": 12, + "SNS_ACCOUNT": 19, + "PHONE_REGISTRATION": 20, + "PREFERENCE_LOCALE": 15, + "CUSTOM_MODE": 22, + "EMAIL_CONFIRMATION_STATUS": 24, + "ACCOUNT_MIGRATION_PINCODE": 28, + "ENFORCED_INPUT_ACCOUNT_MIGRATION_PINCODE": 29, + "SECURITY_CENTER_SETTINGS": 18, + "E2EE_ENABLE": 33, + "ENABLE_SOUND_TO_TEXT": 47, + "HITOKOTO_BACKUP_REQUESTED": 34, + "CONTACT_ALLOW_FOLLOWING": 36, + "PRIVACY_ALLOW_NEARBY": 37, + "AGREEMENT_NEARBY": 38, + "AGREEMENT_SQUARE": 39, + "ALLOW_UNREGISTRATION_SECONDARY_DEVICE": 41, + "AGREEMENT_BOT_USE": 42, + "AGREEMENT_SHAKE_FUNCTION": 43, + "AGREEMENT_MOBILE_CONTACT_NAME": 44, + "AGREEMENT_SOUND_TO_TEXT": 46, + } + + +class SnsIdType(object): + FACEBOOK = 1 + SINA = 2 + RENREN = 3 + FEIXIN = 4 + BBM = 5 + + _VALUES_TO_NAMES = { + 1: "FACEBOOK", + 2: "SINA", + 3: "RENREN", + 4: "FEIXIN", + 5: "BBM", + } + + _NAMES_TO_VALUES = { + "FACEBOOK": 1, + "SINA": 2, + "RENREN": 3, + "FEIXIN": 4, + "BBM": 5, + } + + +class SpammerReason(object): + OTHER = 0 + ADVERTISING = 1 + GENDER_HARASSMENT = 2 + HARASSMENT = 3 + + _VALUES_TO_NAMES = { + 0: "OTHER", + 1: "ADVERTISING", + 2: "GENDER_HARASSMENT", + 3: "HARASSMENT", + } + + _NAMES_TO_VALUES = { + "OTHER": 0, + "ADVERTISING": 1, + "GENDER_HARASSMENT": 2, + "HARASSMENT": 3, + } + + +class SyncActionType(object): + SYNC = 0 + REPORT = 1 + + _VALUES_TO_NAMES = { + 0: "SYNC", + 1: "REPORT", + } + + _NAMES_TO_VALUES = { + "SYNC": 0, + "REPORT": 1, + } + + +class SpotCategory(object): + UNKNOWN = 0 + GOURMET = 1 + BEAUTY = 2 + TRAVEL = 3 + SHOPPING = 4 + ENTERTAINMENT = 5 + SPORTS = 6 + TRANSPORT = 7 + LIFE = 8 + HOSPITAL = 9 + FINANCE = 10 + EDUCATION = 11 + OTHER = 12 + ALL = 10000 + + _VALUES_TO_NAMES = { + 0: "UNKNOWN", + 1: "GOURMET", + 2: "BEAUTY", + 3: "TRAVEL", + 4: "SHOPPING", + 5: "ENTERTAINMENT", + 6: "SPORTS", + 7: "TRANSPORT", + 8: "LIFE", + 9: "HOSPITAL", + 10: "FINANCE", + 11: "EDUCATION", + 12: "OTHER", + 10000: "ALL", + } + + _NAMES_TO_VALUES = { + "UNKNOWN": 0, + "GOURMET": 1, + "BEAUTY": 2, + "TRAVEL": 3, + "SHOPPING": 4, + "ENTERTAINMENT": 5, + "SPORTS": 6, + "TRANSPORT": 7, + "LIFE": 8, + "HOSPITAL": 9, + "FINANCE": 10, + "EDUCATION": 11, + "OTHER": 12, + "ALL": 10000, + } + + +class SyncCategory(object): + PROFILE = 0 + SETTINGS = 1 + OPS = 2 + CONTACT = 3 + RECOMMEND = 4 + BLOCK = 5 + GROUP = 6 + ROOM = 7 + NOTIFICATION = 8 + ADDRESS_BOOK = 9 + + _VALUES_TO_NAMES = { + 0: "PROFILE", + 1: "SETTINGS", + 2: "OPS", + 3: "CONTACT", + 4: "RECOMMEND", + 5: "BLOCK", + 6: "GROUP", + 7: "ROOM", + 8: "NOTIFICATION", + 9: "ADDRESS_BOOK", + } + + _NAMES_TO_VALUES = { + "PROFILE": 0, + "SETTINGS": 1, + "OPS": 2, + "CONTACT": 3, + "RECOMMEND": 4, + "BLOCK": 5, + "GROUP": 6, + "ROOM": 7, + "NOTIFICATION": 8, + "ADDRESS_BOOK": 9, + } + + +class TMessageBoxStatus(object): + ACTIVATED = 1 + UNREAD = 2 + + _VALUES_TO_NAMES = { + 1: "ACTIVATED", + 2: "UNREAD", + } + + _NAMES_TO_VALUES = { + "ACTIVATED": 1, + "UNREAD": 2, + } + + +class UniversalNotificationServiceErrorCode(object): + INTERNAL_ERROR = 0 + INVALID_KEY = 1 + ILLEGAL_ARGUMENT = 2 + TOO_MANY_REQUEST = 3 + AUTHENTICATION_FAILED = 4 + NO_WRITE_PERMISSION = 5 + + _VALUES_TO_NAMES = { + 0: "INTERNAL_ERROR", + 1: "INVALID_KEY", + 2: "ILLEGAL_ARGUMENT", + 3: "TOO_MANY_REQUEST", + 4: "AUTHENTICATION_FAILED", + 5: "NO_WRITE_PERMISSION", + } + + _NAMES_TO_VALUES = { + "INTERNAL_ERROR": 0, + "INVALID_KEY": 1, + "ILLEGAL_ARGUMENT": 2, + "TOO_MANY_REQUEST": 3, + "AUTHENTICATION_FAILED": 4, + "NO_WRITE_PERMISSION": 5, + } + + +class UnregistrationReason(object): + UNREGISTRATION_REASON_UNREGISTER_USER = 1 + UNREGISTRATION_REASON_UNBIND_DEVICE = 2 + + _VALUES_TO_NAMES = { + 1: "UNREGISTRATION_REASON_UNREGISTER_USER", + 2: "UNREGISTRATION_REASON_UNBIND_DEVICE", + } + + _NAMES_TO_VALUES = { + "UNREGISTRATION_REASON_UNREGISTER_USER": 1, + "UNREGISTRATION_REASON_UNBIND_DEVICE": 2, + } + + +class UserAgeType(object): + OVER = 1 + UNDER = 2 + UNDEFINED = 3 + + _VALUES_TO_NAMES = { + 1: "OVER", + 2: "UNDER", + 3: "UNDEFINED", + } + + _NAMES_TO_VALUES = { + "OVER": 1, + "UNDER": 2, + "UNDEFINED": 3, + } + + +class VerificationMethod(object): + NO_AVAILABLE = 0 + PIN_VIA_SMS = 1 + CALLERID_INDIGO = 2 + PIN_VIA_TTS = 4 + SKIP = 10 + + _VALUES_TO_NAMES = { + 0: "NO_AVAILABLE", + 1: "PIN_VIA_SMS", + 2: "CALLERID_INDIGO", + 4: "PIN_VIA_TTS", + 10: "SKIP", + } + + _NAMES_TO_VALUES = { + "NO_AVAILABLE": 0, + "PIN_VIA_SMS": 1, + "CALLERID_INDIGO": 2, + "PIN_VIA_TTS": 4, + "SKIP": 10, + } + + +class VerificationResult(object): + FAILED = 0 + OK_NOT_REGISTERED_YET = 1 + OK_REGISTERED_WITH_SAME_DEVICE = 2 + OK_REGISTERED_WITH_ANOTHER_DEVICE = 3 + + _VALUES_TO_NAMES = { + 0: "FAILED", + 1: "OK_NOT_REGISTERED_YET", + 2: "OK_REGISTERED_WITH_SAME_DEVICE", + 3: "OK_REGISTERED_WITH_ANOTHER_DEVICE", + } + + _NAMES_TO_VALUES = { + "FAILED": 0, + "OK_NOT_REGISTERED_YET": 1, + "OK_REGISTERED_WITH_SAME_DEVICE": 2, + "OK_REGISTERED_WITH_ANOTHER_DEVICE": 3, + } + + +class WapInvitationType(object): + REGISTRATION = 1 + CHAT = 2 + + _VALUES_TO_NAMES = { + 1: "REGISTRATION", + 2: "CHAT", + } + + _NAMES_TO_VALUES = { + "REGISTRATION": 1, + "CHAT": 2, + } + + +class MediaType(object): + AUDIO = 1 + VIDEO = 2 + + _VALUES_TO_NAMES = { + 1: "AUDIO", + 2: "VIDEO", + } + + _NAMES_TO_VALUES = { + "AUDIO": 1, + "VIDEO": 2, + } + + +class SQErrorCode(object): + UNKNOWN = 0 + ILLEGAL_ARGUMENT = 400 + AUTHENTICATION_FAILURE = 401 + FORBIDDEN = 403 + NOT_FOUND = 404 + REVISION_MISMATCH = 409 + PRECONDITION_FAILED = 410 + INTERNAL_ERROR = 500 + NOT_IMPLEMENTED = 501 + TRY_AGAIN_LATER = 505 + + _VALUES_TO_NAMES = { + 0: "UNKNOWN", + 400: "ILLEGAL_ARGUMENT", + 401: "AUTHENTICATION_FAILURE", + 403: "FORBIDDEN", + 404: "NOT_FOUND", + 409: "REVISION_MISMATCH", + 410: "PRECONDITION_FAILED", + 500: "INTERNAL_ERROR", + 501: "NOT_IMPLEMENTED", + 505: "TRY_AGAIN_LATER", + } + + _NAMES_TO_VALUES = { + "UNKNOWN": 0, + "ILLEGAL_ARGUMENT": 400, + "AUTHENTICATION_FAILURE": 401, + "FORBIDDEN": 403, + "NOT_FOUND": 404, + "REVISION_MISMATCH": 409, + "PRECONDITION_FAILED": 410, + "INTERNAL_ERROR": 500, + "NOT_IMPLEMENTED": 501, + "TRY_AGAIN_LATER": 505, + } + + +class SquareEventType(object): + RECEIVE_MESSAGE = 0 + SEND_MESSAGE = 1 + NOTIFIED_JOIN_SQUARE_CHAT = 2 + NOTIFIED_INVITE_INTO_SQUARE_CHAT = 3 + NOTIFIED_LEAVE_SQUARE_CHAT = 4 + NOTIFIED_DESTROY_MESSAGE = 5 + NOTIFIED_MARK_AS_READ = 6 + NOTIFIED_UPDATE_SQUARE_MEMBER_PROFILE = 7 + NOTIFIED_KICKOUT_FROM_SQUARE = 19 + NOTIFIED_SHUTDOWN_SQUARE = 18 + NOTIFIED_DELETE_SQUARE_CHAT = 20 + NOTIFIED_UPDATE_SQUARE_CHAT_PROFILE_NAME = 30 + NOTIFIED_UPDATE_SQUARE_CHAT_PROFILE_IMAGE = 31 + NOTIFIED_UPDATE_SQUARE_CHAT_ANNOUNCEMENT = 37 + NOTIFIED_ADD_BOT = 33 + NOTIFIED_REMOVE_BOT = 34 + NOTIFIED_UPDATE_SQUARE = 8 + NOTIFIED_UPDATE_SQUARE_STATUS = 9 + NOTIFIED_UPDATE_SQUARE_AUTHORITY = 10 + NOTIFIED_UPDATE_SQUARE_MEMBER = 11 + NOTIFIED_UPDATE_SQUARE_CHAT = 12 + NOTIFIED_UPDATE_SQUARE_CHAT_STATUS = 13 + NOTIFIED_UPDATE_SQUARE_CHAT_MEMBER = 14 + NOTIFIED_CREATE_SQUARE_MEMBER = 15 + NOTIFIED_CREATE_SQUARE_CHAT_MEMBER = 16 + NOTIFIED_UPDATE_SQUARE_MEMBER_RELATION = 17 + NOTIFIED_UPDATE_SQUARE_FEATURE_SET = 32 + NOTIFIED_UPDATE_SQUARE_NOTE_STATUS = 36 + NOTIFICATION_JOIN_REQUEST = 21 + NOTIFICATION_JOINED = 22 + NOTIFICATION_PROMOTED_COADMIN = 23 + NOTIFICATION_PROMOTED_ADMIN = 24 + NOTIFICATION_DEMOTED_MEMBER = 25 + NOTIFICATION_KICKED_OUT = 26 + NOTIFICATION_SQUARE_DELETE = 27 + NOTIFICATION_SQUARE_CHAT_DELETE = 28 + NOTIFICATION_MESSAGE = 29 + + _VALUES_TO_NAMES = { + 0: "RECEIVE_MESSAGE", + 1: "SEND_MESSAGE", + 2: "NOTIFIED_JOIN_SQUARE_CHAT", + 3: "NOTIFIED_INVITE_INTO_SQUARE_CHAT", + 4: "NOTIFIED_LEAVE_SQUARE_CHAT", + 5: "NOTIFIED_DESTROY_MESSAGE", + 6: "NOTIFIED_MARK_AS_READ", + 7: "NOTIFIED_UPDATE_SQUARE_MEMBER_PROFILE", + 19: "NOTIFIED_KICKOUT_FROM_SQUARE", + 18: "NOTIFIED_SHUTDOWN_SQUARE", + 20: "NOTIFIED_DELETE_SQUARE_CHAT", + 30: "NOTIFIED_UPDATE_SQUARE_CHAT_PROFILE_NAME", + 31: "NOTIFIED_UPDATE_SQUARE_CHAT_PROFILE_IMAGE", + 37: "NOTIFIED_UPDATE_SQUARE_CHAT_ANNOUNCEMENT", + 33: "NOTIFIED_ADD_BOT", + 34: "NOTIFIED_REMOVE_BOT", + 8: "NOTIFIED_UPDATE_SQUARE", + 9: "NOTIFIED_UPDATE_SQUARE_STATUS", + 10: "NOTIFIED_UPDATE_SQUARE_AUTHORITY", + 11: "NOTIFIED_UPDATE_SQUARE_MEMBER", + 12: "NOTIFIED_UPDATE_SQUARE_CHAT", + 13: "NOTIFIED_UPDATE_SQUARE_CHAT_STATUS", + 14: "NOTIFIED_UPDATE_SQUARE_CHAT_MEMBER", + 15: "NOTIFIED_CREATE_SQUARE_MEMBER", + 16: "NOTIFIED_CREATE_SQUARE_CHAT_MEMBER", + 17: "NOTIFIED_UPDATE_SQUARE_MEMBER_RELATION", + 32: "NOTIFIED_UPDATE_SQUARE_FEATURE_SET", + 36: "NOTIFIED_UPDATE_SQUARE_NOTE_STATUS", + 21: "NOTIFICATION_JOIN_REQUEST", + 22: "NOTIFICATION_JOINED", + 23: "NOTIFICATION_PROMOTED_COADMIN", + 24: "NOTIFICATION_PROMOTED_ADMIN", + 25: "NOTIFICATION_DEMOTED_MEMBER", + 26: "NOTIFICATION_KICKED_OUT", + 27: "NOTIFICATION_SQUARE_DELETE", + 28: "NOTIFICATION_SQUARE_CHAT_DELETE", + 29: "NOTIFICATION_MESSAGE", + } + + _NAMES_TO_VALUES = { + "RECEIVE_MESSAGE": 0, + "SEND_MESSAGE": 1, + "NOTIFIED_JOIN_SQUARE_CHAT": 2, + "NOTIFIED_INVITE_INTO_SQUARE_CHAT": 3, + "NOTIFIED_LEAVE_SQUARE_CHAT": 4, + "NOTIFIED_DESTROY_MESSAGE": 5, + "NOTIFIED_MARK_AS_READ": 6, + "NOTIFIED_UPDATE_SQUARE_MEMBER_PROFILE": 7, + "NOTIFIED_KICKOUT_FROM_SQUARE": 19, + "NOTIFIED_SHUTDOWN_SQUARE": 18, + "NOTIFIED_DELETE_SQUARE_CHAT": 20, + "NOTIFIED_UPDATE_SQUARE_CHAT_PROFILE_NAME": 30, + "NOTIFIED_UPDATE_SQUARE_CHAT_PROFILE_IMAGE": 31, + "NOTIFIED_UPDATE_SQUARE_CHAT_ANNOUNCEMENT": 37, + "NOTIFIED_ADD_BOT": 33, + "NOTIFIED_REMOVE_BOT": 34, + "NOTIFIED_UPDATE_SQUARE": 8, + "NOTIFIED_UPDATE_SQUARE_STATUS": 9, + "NOTIFIED_UPDATE_SQUARE_AUTHORITY": 10, + "NOTIFIED_UPDATE_SQUARE_MEMBER": 11, + "NOTIFIED_UPDATE_SQUARE_CHAT": 12, + "NOTIFIED_UPDATE_SQUARE_CHAT_STATUS": 13, + "NOTIFIED_UPDATE_SQUARE_CHAT_MEMBER": 14, + "NOTIFIED_CREATE_SQUARE_MEMBER": 15, + "NOTIFIED_CREATE_SQUARE_CHAT_MEMBER": 16, + "NOTIFIED_UPDATE_SQUARE_MEMBER_RELATION": 17, + "NOTIFIED_UPDATE_SQUARE_FEATURE_SET": 32, + "NOTIFIED_UPDATE_SQUARE_NOTE_STATUS": 36, + "NOTIFICATION_JOIN_REQUEST": 21, + "NOTIFICATION_JOINED": 22, + "NOTIFICATION_PROMOTED_COADMIN": 23, + "NOTIFICATION_PROMOTED_ADMIN": 24, + "NOTIFICATION_DEMOTED_MEMBER": 25, + "NOTIFICATION_KICKED_OUT": 26, + "NOTIFICATION_SQUARE_DELETE": 27, + "NOTIFICATION_SQUARE_CHAT_DELETE": 28, + "NOTIFICATION_MESSAGE": 29, + } + + +class SquareMemberRelationState(object): + NONE = 1 + BLOCKED = 2 + + _VALUES_TO_NAMES = { + 1: "NONE", + 2: "BLOCKED", + } + + _NAMES_TO_VALUES = { + "NONE": 1, + "BLOCKED": 2, + } + + +class SquareFeatureControlState(object): + DISABLED = 1 + ENABLED = 2 + + _VALUES_TO_NAMES = { + 1: "DISABLED", + 2: "ENABLED", + } + + _NAMES_TO_VALUES = { + "DISABLED": 1, + "ENABLED": 2, + } + + +class BooleanState(object): + NONE = 0 + OFF = 1 + ON = 2 + + _VALUES_TO_NAMES = { + 0: "NONE", + 1: "OFF", + 2: "ON", + } + + _NAMES_TO_VALUES = { + "NONE": 0, + "OFF": 1, + "ON": 2, + } + + +class SquareType(object): + CLOSED = 0 + OPEN = 1 + + _VALUES_TO_NAMES = { + 0: "CLOSED", + 1: "OPEN", + } + + _NAMES_TO_VALUES = { + "CLOSED": 0, + "OPEN": 1, + } + + +class SquareChatType(object): + OPEN = 1 + SECRET = 2 + ONE_ON_ONE = 3 + SQUARE_DEFAULT = 4 + + _VALUES_TO_NAMES = { + 1: "OPEN", + 2: "SECRET", + 3: "ONE_ON_ONE", + 4: "SQUARE_DEFAULT", + } + + _NAMES_TO_VALUES = { + "OPEN": 1, + "SECRET": 2, + "ONE_ON_ONE": 3, + "SQUARE_DEFAULT": 4, + } + + +class SquareErrorCode(object): + UNKNOWN = 0 + INTERNAL_ERROR = 500 + NOT_IMPLEMENTED = 501 + TRY_AGAIN_LATER = 503 + MAINTENANCE = 505 + ILLEGAL_ARGUMENT = 400 + AUTHENTICATION_FAILURE = 401 + FORBIDDEN = 403 + NOT_FOUND = 404 + REVISION_MISMATCH = 409 + PRECONDITION_FAILED = 410 + + _VALUES_TO_NAMES = { + 0: "UNKNOWN", + 500: "INTERNAL_ERROR", + 501: "NOT_IMPLEMENTED", + 503: "TRY_AGAIN_LATER", + 505: "MAINTENANCE", + 400: "ILLEGAL_ARGUMENT", + 401: "AUTHENTICATION_FAILURE", + 403: "FORBIDDEN", + 404: "NOT_FOUND", + 409: "REVISION_MISMATCH", + 410: "PRECONDITION_FAILED", + } + + _NAMES_TO_VALUES = { + "UNKNOWN": 0, + "INTERNAL_ERROR": 500, + "NOT_IMPLEMENTED": 501, + "TRY_AGAIN_LATER": 503, + "MAINTENANCE": 505, + "ILLEGAL_ARGUMENT": 400, + "AUTHENTICATION_FAILURE": 401, + "FORBIDDEN": 403, + "NOT_FOUND": 404, + "REVISION_MISMATCH": 409, + "PRECONDITION_FAILED": 410, + } + + +class SquareChatState(object): + ALIVE = 0 + DELETED = 1 + SUSPENDED = 2 + + _VALUES_TO_NAMES = { + 0: "ALIVE", + 1: "DELETED", + 2: "SUSPENDED", + } + + _NAMES_TO_VALUES = { + "ALIVE": 0, + "DELETED": 1, + "SUSPENDED": 2, + } + + +class SquareFeatureSetAttribute(object): + CREATING_SECRET_SQUARE_CHAT = 1 + INVITING_INTO_OPEN_SQUARE_CHAT = 2 + + _VALUES_TO_NAMES = { + 1: "CREATING_SECRET_SQUARE_CHAT", + 2: "INVITING_INTO_OPEN_SQUARE_CHAT", + } + + _NAMES_TO_VALUES = { + "CREATING_SECRET_SQUARE_CHAT": 1, + "INVITING_INTO_OPEN_SQUARE_CHAT": 2, + } + + +class SquareMembershipState(object): + JOIN_REQUESTED = 1 + JOINED = 2 + REJECTED = 3 + LEFT = 4 + KICK_OUT = 5 + BANNED = 6 + DELETED = 7 + + _VALUES_TO_NAMES = { + 1: "JOIN_REQUESTED", + 2: "JOINED", + 3: "REJECTED", + 4: "LEFT", + 5: "KICK_OUT", + 6: "BANNED", + 7: "DELETED", + } + + _NAMES_TO_VALUES = { + "JOIN_REQUESTED": 1, + "JOINED": 2, + "REJECTED": 3, + "LEFT": 4, + "KICK_OUT": 5, + "BANNED": 6, + "DELETED": 7, + } + + +class SquareChatMemberAttribute(object): + MEMBERSHIP_STATE = 4 + NOTIFICATION_MESSAGE = 6 + + _VALUES_TO_NAMES = { + 4: "MEMBERSHIP_STATE", + 6: "NOTIFICATION_MESSAGE", + } + + _NAMES_TO_VALUES = { + "MEMBERSHIP_STATE": 4, + "NOTIFICATION_MESSAGE": 6, + } + + +class SquareMemberRole(object): + ADMIN = 1 + CO_ADMIN = 2 + MEMBER = 10 + + _VALUES_TO_NAMES = { + 1: "ADMIN", + 2: "CO_ADMIN", + 10: "MEMBER", + } + + _NAMES_TO_VALUES = { + "ADMIN": 1, + "CO_ADMIN": 2, + "MEMBER": 10, + } + + +class PreconditionFailedExtraInfo(object): + DUPLICATED_DISPLAY_NAME = 0 + + _VALUES_TO_NAMES = { + 0: "DUPLICATED_DISPLAY_NAME", + } + + _NAMES_TO_VALUES = { + "DUPLICATED_DISPLAY_NAME": 0, + } + + +class SquareChatMembershipState(object): + JOINED = 1 + LEFT = 2 + + _VALUES_TO_NAMES = { + 1: "JOINED", + 2: "LEFT", + } + + _NAMES_TO_VALUES = { + "JOINED": 1, + "LEFT": 2, + } + + +class FetchDirection(object): + FORWARD = 1 + BACKWARD = 2 + + _VALUES_TO_NAMES = { + 1: "FORWARD", + 2: "BACKWARD", + } + + _NAMES_TO_VALUES = { + "FORWARD": 1, + "BACKWARD": 2, + } + + +class SquareAttribute(object): + NAME = 1 + WELCOME_MESSAGE = 2 + PROFILE_IMAGE = 3 + DESCRIPTION = 4 + SEARCHABLE = 6 + CATEGORY = 7 + INVITATION_URL = 8 + ABLE_TO_USE_INVITATION_URL = 9 + STATE = 10 + + _VALUES_TO_NAMES = { + 1: "NAME", + 2: "WELCOME_MESSAGE", + 3: "PROFILE_IMAGE", + 4: "DESCRIPTION", + 6: "SEARCHABLE", + 7: "CATEGORY", + 8: "INVITATION_URL", + 9: "ABLE_TO_USE_INVITATION_URL", + 10: "STATE", + } + + _NAMES_TO_VALUES = { + "NAME": 1, + "WELCOME_MESSAGE": 2, + "PROFILE_IMAGE": 3, + "DESCRIPTION": 4, + "SEARCHABLE": 6, + "CATEGORY": 7, + "INVITATION_URL": 8, + "ABLE_TO_USE_INVITATION_URL": 9, + "STATE": 10, + } + + +class SquareAuthorityAttribute(object): + UPDATE_SQUARE_PROFILE = 1 + INVITE_NEW_MEMBER = 2 + APPROVE_JOIN_REQUEST = 3 + CREATE_POST = 4 + CREATE_OPEN_SQUARE_CHAT = 5 + DELETE_SQUARE_CHAT_OR_POST = 6 + REMOVE_SQUARE_MEMBER = 7 + GRANT_ROLE = 8 + ENABLE_INVITATION_TICKET = 9 + CREATE_CHAT_ANNOUNCEMENT = 10 + + _VALUES_TO_NAMES = { + 1: "UPDATE_SQUARE_PROFILE", + 2: "INVITE_NEW_MEMBER", + 3: "APPROVE_JOIN_REQUEST", + 4: "CREATE_POST", + 5: "CREATE_OPEN_SQUARE_CHAT", + 6: "DELETE_SQUARE_CHAT_OR_POST", + 7: "REMOVE_SQUARE_MEMBER", + 8: "GRANT_ROLE", + 9: "ENABLE_INVITATION_TICKET", + 10: "CREATE_CHAT_ANNOUNCEMENT", + } + + _NAMES_TO_VALUES = { + "UPDATE_SQUARE_PROFILE": 1, + "INVITE_NEW_MEMBER": 2, + "APPROVE_JOIN_REQUEST": 3, + "CREATE_POST": 4, + "CREATE_OPEN_SQUARE_CHAT": 5, + "DELETE_SQUARE_CHAT_OR_POST": 6, + "REMOVE_SQUARE_MEMBER": 7, + "GRANT_ROLE": 8, + "ENABLE_INVITATION_TICKET": 9, + "CREATE_CHAT_ANNOUNCEMENT": 10, + } + + +class SquareEventStatus(object): + NORMAL = 1 + ALERT_DISABLED = 2 + + _VALUES_TO_NAMES = { + 1: "NORMAL", + 2: "ALERT_DISABLED", + } + + _NAMES_TO_VALUES = { + "NORMAL": 1, + "ALERT_DISABLED": 2, + } + + +class SuggestDictionaryIncrementStatus(object): + SUCCESS = 0 + INVALID_REVISION = 1 + TOO_LARGE_DATA = 2 + SCHEME_CHANGED = 3 + RETRY = 4 + FAIL = 5 + TOO_OLD_DATA = 6 + + _VALUES_TO_NAMES = { + 0: "SUCCESS", + 1: "INVALID_REVISION", + 2: "TOO_LARGE_DATA", + 3: "SCHEME_CHANGED", + 4: "RETRY", + 5: "FAIL", + 6: "TOO_OLD_DATA", + } + + _NAMES_TO_VALUES = { + "SUCCESS": 0, + "INVALID_REVISION": 1, + "TOO_LARGE_DATA": 2, + "SCHEME_CHANGED": 3, + "RETRY": 4, + "FAIL": 5, + "TOO_OLD_DATA": 6, + } + + +class Location(object): + """ + Attributes: + - title + - address + - latitude + - longitude + - phone + """ + + + def __init__(self, title=None, address=None, latitude=None, longitude=None, phone=None,): + self.title = title + self.address = address + self.latitude = latitude + self.longitude = longitude + self.phone = phone + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.title = 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.address = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.DOUBLE: + self.latitude = iprot.readDouble() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.DOUBLE: + self.longitude = iprot.readDouble() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.phone = 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('Location') + if self.title is not None: + oprot.writeFieldBegin('title', TType.STRING, 1) + oprot.writeString(self.title.encode('utf-8') if sys.version_info[0] == 2 else self.title) + oprot.writeFieldEnd() + if self.address is not None: + oprot.writeFieldBegin('address', TType.STRING, 2) + oprot.writeString(self.address.encode('utf-8') if sys.version_info[0] == 2 else self.address) + oprot.writeFieldEnd() + if self.latitude is not None: + oprot.writeFieldBegin('latitude', TType.DOUBLE, 3) + oprot.writeDouble(self.latitude) + oprot.writeFieldEnd() + if self.longitude is not None: + oprot.writeFieldBegin('longitude', TType.DOUBLE, 4) + oprot.writeDouble(self.longitude) + oprot.writeFieldEnd() + if self.phone is not None: + oprot.writeFieldBegin('phone', TType.STRING, 5) + oprot.writeString(self.phone.encode('utf-8') if sys.version_info[0] == 2 else self.phone) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 MessageBoxV2MessageId(object): + """ + Attributes: + - deliveredTime + - messageId + """ + + + def __init__(self, deliveredTime=None, messageId=None,): + self.deliveredTime = deliveredTime + 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.I64: + self.deliveredTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.messageId = 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('MessageBoxV2MessageId') + if self.deliveredTime is not None: + oprot.writeFieldBegin('deliveredTime', TType.I64, 1) + oprot.writeI64(self.deliveredTime) + oprot.writeFieldEnd() + if self.messageId is not None: + oprot.writeFieldBegin('messageId', TType.I64, 2) + oprot.writeI64(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) + + +class MessageCommitResult(object): + """ + Attributes: + - requestId + - state + - messageStoreRequestId + - messageIds + - receiverCount + - successCount + - failCount + - blockCount + - unregisteredCount + - unrelatedCount + - errorDescription + """ + + + def __init__(self, requestId=None, state=None, messageStoreRequestId=None, messageIds=None, receiverCount=None, successCount=None, failCount=None, blockCount=None, unregisteredCount=None, unrelatedCount=None, errorDescription=None,): + self.requestId = requestId + self.state = state + self.messageStoreRequestId = messageStoreRequestId + self.messageIds = messageIds + self.receiverCount = receiverCount + self.successCount = successCount + self.failCount = failCount + self.blockCount = blockCount + self.unregisteredCount = unregisteredCount + self.unrelatedCount = unrelatedCount + self.errorDescription = errorDescription + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I32: + self.state = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.messageStoreRequestId = 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.messageIds = [] + (_etype3, _size0) = iprot.readListBegin() + for _i4 in range(_size0): + _elem5 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.messageIds.append(_elem5) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I64: + self.receiverCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.I64: + self.successCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.I64: + self.failCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 14: + if ftype == TType.I64: + self.blockCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 15: + if ftype == TType.I64: + self.unregisteredCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 16: + if ftype == TType.I64: + self.unrelatedCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 21: + if ftype == TType.STRING: + self.errorDescription = 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('MessageCommitResult') + 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.state is not None: + oprot.writeFieldBegin('state', TType.I32, 2) + oprot.writeI32(self.state) + oprot.writeFieldEnd() + if self.messageStoreRequestId is not None: + oprot.writeFieldBegin('messageStoreRequestId', TType.STRING, 3) + oprot.writeString(self.messageStoreRequestId.encode('utf-8') if sys.version_info[0] == 2 else self.messageStoreRequestId) + oprot.writeFieldEnd() + if self.messageIds is not None: + oprot.writeFieldBegin('messageIds', TType.LIST, 4) + oprot.writeListBegin(TType.STRING, len(self.messageIds)) + for iter6 in self.messageIds: + oprot.writeString(iter6.encode('utf-8') if sys.version_info[0] == 2 else iter6) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.receiverCount is not None: + oprot.writeFieldBegin('receiverCount', TType.I64, 11) + oprot.writeI64(self.receiverCount) + oprot.writeFieldEnd() + if self.successCount is not None: + oprot.writeFieldBegin('successCount', TType.I64, 12) + oprot.writeI64(self.successCount) + oprot.writeFieldEnd() + if self.failCount is not None: + oprot.writeFieldBegin('failCount', TType.I64, 13) + oprot.writeI64(self.failCount) + oprot.writeFieldEnd() + if self.blockCount is not None: + oprot.writeFieldBegin('blockCount', TType.I64, 14) + oprot.writeI64(self.blockCount) + oprot.writeFieldEnd() + if self.unregisteredCount is not None: + oprot.writeFieldBegin('unregisteredCount', TType.I64, 15) + oprot.writeI64(self.unregisteredCount) + oprot.writeFieldEnd() + if self.unrelatedCount is not None: + oprot.writeFieldBegin('unrelatedCount', TType.I64, 16) + oprot.writeI64(self.unrelatedCount) + oprot.writeFieldEnd() + if self.errorDescription is not None: + oprot.writeFieldBegin('errorDescription', TType.STRING, 21) + oprot.writeString(self.errorDescription.encode('utf-8') if sys.version_info[0] == 2 else self.errorDescription) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 CallHost(object): + """ + Attributes: + - host + - port + - zone + """ + + + def __init__(self, host=None, port=None, zone=None,): + self.host = host + self.port = port + self.zone = zone + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.host = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.port = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.zone = 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('CallHost') + if self.host is not None: + oprot.writeFieldBegin('host', TType.STRING, 1) + oprot.writeString(self.host.encode('utf-8') if sys.version_info[0] == 2 else self.host) + oprot.writeFieldEnd() + if self.port is not None: + oprot.writeFieldBegin('port', TType.I32, 2) + oprot.writeI32(self.port) + oprot.writeFieldEnd() + if self.zone is not None: + oprot.writeFieldBegin('zone', TType.STRING, 3) + oprot.writeString(self.zone.encode('utf-8') if sys.version_info[0] == 2 else self.zone) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 AgeCheckDocomoResult(object): + """ + Attributes: + - authUrl + - userAgeType + """ + + + def __init__(self, authUrl=None, userAgeType=None,): + self.authUrl = authUrl + self.userAgeType = userAgeType + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.authUrl = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.userAgeType = 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('AgeCheckDocomoResult') + if self.authUrl is not None: + oprot.writeFieldBegin('authUrl', TType.STRING, 1) + oprot.writeString(self.authUrl.encode('utf-8') if sys.version_info[0] == 2 else self.authUrl) + oprot.writeFieldEnd() + if self.userAgeType is not None: + oprot.writeFieldBegin('userAgeType', TType.I32, 2) + oprot.writeI32(self.userAgeType) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 AgeCheckRequestResult(object): + """ + Attributes: + - authUrl + - sessionId + """ + + + def __init__(self, authUrl=None, sessionId=None,): + self.authUrl = authUrl + self.sessionId = sessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.authUrl = 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.sessionId = 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('AgeCheckRequestResult') + if self.authUrl is not None: + oprot.writeFieldBegin('authUrl', TType.STRING, 1) + oprot.writeString(self.authUrl.encode('utf-8') if sys.version_info[0] == 2 else self.authUrl) + oprot.writeFieldEnd() + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 2) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 TextMessageAnnouncementContents(object): + """ + Attributes: + - messageId + - text + - senderSquareMemberMid + - createdAt + """ + + + def __init__(self, messageId=None, text=None, senderSquareMemberMid=None, createdAt=None,): + self.messageId = messageId + self.text = text + self.senderSquareMemberMid = senderSquareMemberMid + self.createdAt = createdAt + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.messageId = 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.text = 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.senderSquareMemberMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.createdAt = 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('TextMessageAnnouncementContents') + if self.messageId is not None: + oprot.writeFieldBegin('messageId', TType.STRING, 1) + oprot.writeString(self.messageId.encode('utf-8') if sys.version_info[0] == 2 else self.messageId) + oprot.writeFieldEnd() + if self.text is not None: + oprot.writeFieldBegin('text', TType.STRING, 2) + oprot.writeString(self.text.encode('utf-8') if sys.version_info[0] == 2 else self.text) + oprot.writeFieldEnd() + if self.senderSquareMemberMid is not None: + oprot.writeFieldBegin('senderSquareMemberMid', TType.STRING, 3) + oprot.writeString(self.senderSquareMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.senderSquareMemberMid) + oprot.writeFieldEnd() + if self.createdAt is not None: + oprot.writeFieldBegin('createdAt', TType.I64, 4) + oprot.writeI64(self.createdAt) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareChatAnnouncementContents(object): + """ + Attributes: + - textMessageAnnouncementContents + """ + + + def __init__(self, textMessageAnnouncementContents=None,): + self.textMessageAnnouncementContents = textMessageAnnouncementContents + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.textMessageAnnouncementContents = TextMessageAnnouncementContents() + self.textMessageAnnouncementContents.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('SquareChatAnnouncementContents') + if self.textMessageAnnouncementContents is not None: + oprot.writeFieldBegin('textMessageAnnouncementContents', TType.STRUCT, 1) + self.textMessageAnnouncementContents.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) + + +class SquareChatAnnouncement(object): + """ + Attributes: + - announcementSeq + - type + - contents + """ + + + def __init__(self, announcementSeq=None, type=None, contents=None,): + self.announcementSeq = announcementSeq + self.type = type + self.contents = contents + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.announcementSeq = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.contents = SquareChatAnnouncementContents() + self.contents.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('SquareChatAnnouncement') + if self.announcementSeq is not None: + oprot.writeFieldBegin('announcementSeq', TType.I64, 1) + oprot.writeI64(self.announcementSeq) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 2) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.contents is not None: + oprot.writeFieldBegin('contents', TType.STRUCT, 3) + self.contents.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) + + +class Announcement(object): + """ + Attributes: + - index + - forceUpdate + - title + - text + - createdTime + - pictureUrl + - thumbnailUrl + """ + + + def __init__(self, index=None, forceUpdate=None, title=None, text=None, createdTime=None, pictureUrl=None, thumbnailUrl=None,): + self.index = index + self.forceUpdate = forceUpdate + self.title = title + self.text = text + self.createdTime = createdTime + self.pictureUrl = pictureUrl + self.thumbnailUrl = thumbnailUrl + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.index = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.BOOL: + self.forceUpdate = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.title = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRING: + self.text = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.I64: + self.createdTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 14: + if ftype == TType.STRING: + self.pictureUrl = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 15: + if ftype == TType.STRING: + self.thumbnailUrl = 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('Announcement') + if self.index is not None: + oprot.writeFieldBegin('index', TType.I32, 1) + oprot.writeI32(self.index) + oprot.writeFieldEnd() + if self.forceUpdate is not None: + oprot.writeFieldBegin('forceUpdate', TType.BOOL, 10) + oprot.writeBool(self.forceUpdate) + oprot.writeFieldEnd() + if self.title is not None: + oprot.writeFieldBegin('title', TType.STRING, 11) + oprot.writeString(self.title.encode('utf-8') if sys.version_info[0] == 2 else self.title) + oprot.writeFieldEnd() + if self.text is not None: + oprot.writeFieldBegin('text', TType.STRING, 12) + oprot.writeString(self.text.encode('utf-8') if sys.version_info[0] == 2 else self.text) + oprot.writeFieldEnd() + if self.createdTime is not None: + oprot.writeFieldBegin('createdTime', TType.I64, 13) + oprot.writeI64(self.createdTime) + oprot.writeFieldEnd() + if self.pictureUrl is not None: + oprot.writeFieldBegin('pictureUrl', TType.STRING, 14) + oprot.writeString(self.pictureUrl.encode('utf-8') if sys.version_info[0] == 2 else self.pictureUrl) + oprot.writeFieldEnd() + if self.thumbnailUrl is not None: + oprot.writeFieldBegin('thumbnailUrl', TType.STRING, 15) + oprot.writeString(self.thumbnailUrl.encode('utf-8') if sys.version_info[0] == 2 else self.thumbnailUrl) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ChannelProvider(object): + """ + Attributes: + - name + """ + + + def __init__(self, name=None,): + self.name = name + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.name = 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('ChannelProvider') + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 E2EEPublicKey(object): + """ + Attributes: + - version + - keyId + - keyData + - createdTime + """ + + + def __init__(self, version=None, keyId=None, keyData=None, createdTime=None,): + self.version = version + self.keyId = keyId + self.keyData = keyData + self.createdTime = createdTime + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.version = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.keyId = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.keyData = iprot.readBinary() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.createdTime = 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('E2EEPublicKey') + if self.version is not None: + oprot.writeFieldBegin('version', TType.I32, 1) + oprot.writeI32(self.version) + oprot.writeFieldEnd() + if self.keyId is not None: + oprot.writeFieldBegin('keyId', TType.I32, 2) + oprot.writeI32(self.keyId) + oprot.writeFieldEnd() + if self.keyData is not None: + oprot.writeFieldBegin('keyData', TType.STRING, 4) + oprot.writeBinary(self.keyData) + oprot.writeFieldEnd() + if self.createdTime is not None: + oprot.writeFieldBegin('createdTime', TType.I64, 5) + oprot.writeI64(self.createdTime) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ChannelDomain(object): + """ + Attributes: + - host + - removed + """ + + + def __init__(self, host=None, removed=None,): + self.host = host + self.removed = removed + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.host = 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.removed = 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('ChannelDomain') + if self.host is not None: + oprot.writeFieldBegin('host', TType.STRING, 1) + oprot.writeString(self.host.encode('utf-8') if sys.version_info[0] == 2 else self.host) + oprot.writeFieldEnd() + if self.removed is not None: + oprot.writeFieldBegin('removed', TType.BOOL, 2) + oprot.writeBool(self.removed) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 E2EENegotiationResult(object): + """ + Attributes: + - allowedTypes + - publicKey + """ + + + def __init__(self, allowedTypes=None, publicKey=None,): + self.allowedTypes = allowedTypes + self.publicKey = publicKey + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.allowedTypes = set() + (_etype10, _size7) = iprot.readSetBegin() + for _i11 in range(_size7): + _elem12 = iprot.readI32() + self.allowedTypes.add(_elem12) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.publicKey = E2EEPublicKey() + self.publicKey.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('E2EENegotiationResult') + if self.allowedTypes is not None: + oprot.writeFieldBegin('allowedTypes', TType.SET, 1) + oprot.writeSetBegin(TType.I32, len(self.allowedTypes)) + for iter13 in self.allowedTypes: + oprot.writeI32(iter13) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.publicKey is not None: + oprot.writeFieldBegin('publicKey', TType.STRUCT, 2) + self.publicKey.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) + + +class OTPResult(object): + """ + Attributes: + - otpId + - otp + """ + + + def __init__(self, otpId=None, otp=None,): + self.otpId = otpId + self.otp = otp + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.otpId = 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.otp = 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('OTPResult') + if self.otpId is not None: + oprot.writeFieldBegin('otpId', TType.STRING, 1) + oprot.writeString(self.otpId.encode('utf-8') if sys.version_info[0] == 2 else self.otpId) + oprot.writeFieldEnd() + if self.otp is not None: + oprot.writeFieldBegin('otp', TType.STRING, 2) + oprot.writeString(self.otp.encode('utf-8') if sys.version_info[0] == 2 else self.otp) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 Square(object): + """ + Attributes: + - mid + - name + - welcomeMessage + - profileImageObsHash + - desc + - searchable + - type + - categoryID + - invitationURL + - revision + - ableToUseInvitationTicket + - state + """ + + + def __init__(self, mid=None, name=None, welcomeMessage=None, profileImageObsHash=None, desc=None, searchable=None, type=None, categoryID=None, invitationURL=None, revision=None, ableToUseInvitationTicket=None, state=None,): + self.mid = mid + self.name = name + self.welcomeMessage = welcomeMessage + self.profileImageObsHash = profileImageObsHash + self.desc = desc + self.searchable = searchable + self.type = type + self.categoryID = categoryID + self.invitationURL = invitationURL + self.revision = revision + self.ableToUseInvitationTicket = ableToUseInvitationTicket + self.state = state + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.name = 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.welcomeMessage = 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.profileImageObsHash = 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.desc = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.BOOL: + self.searchable = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I32: + self.categoryID = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.STRING: + self.invitationURL = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.I64: + self.revision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.BOOL: + self.ableToUseInvitationTicket = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.I32: + self.state = 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('Square') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 2) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + if self.welcomeMessage is not None: + oprot.writeFieldBegin('welcomeMessage', TType.STRING, 3) + oprot.writeString(self.welcomeMessage.encode('utf-8') if sys.version_info[0] == 2 else self.welcomeMessage) + oprot.writeFieldEnd() + if self.profileImageObsHash is not None: + oprot.writeFieldBegin('profileImageObsHash', TType.STRING, 4) + oprot.writeString(self.profileImageObsHash.encode('utf-8') if sys.version_info[0] == 2 else self.profileImageObsHash) + oprot.writeFieldEnd() + if self.desc is not None: + oprot.writeFieldBegin('desc', TType.STRING, 5) + oprot.writeString(self.desc.encode('utf-8') if sys.version_info[0] == 2 else self.desc) + oprot.writeFieldEnd() + if self.searchable is not None: + oprot.writeFieldBegin('searchable', TType.BOOL, 6) + oprot.writeBool(self.searchable) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 7) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.categoryID is not None: + oprot.writeFieldBegin('categoryID', TType.I32, 8) + oprot.writeI32(self.categoryID) + oprot.writeFieldEnd() + if self.invitationURL is not None: + oprot.writeFieldBegin('invitationURL', TType.STRING, 9) + oprot.writeString(self.invitationURL.encode('utf-8') if sys.version_info[0] == 2 else self.invitationURL) + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 10) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + if self.ableToUseInvitationTicket is not None: + oprot.writeFieldBegin('ableToUseInvitationTicket', TType.BOOL, 11) + oprot.writeBool(self.ableToUseInvitationTicket) + oprot.writeFieldEnd() + if self.state is not None: + oprot.writeFieldBegin('state', TType.I32, 12) + oprot.writeI32(self.state) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareAuthority(object): + """ + Attributes: + - squareMid + - updateSquareProfile + - inviteNewMember + - approveJoinRequest + - createPost + - createOpenSquareChat + - deleteSquareChatOrPost + - removeSquareMember + - grantRole + - enableInvitationTicket + - revision + """ + + + def __init__(self, squareMid=None, updateSquareProfile=None, inviteNewMember=None, approveJoinRequest=None, createPost=None, createOpenSquareChat=None, deleteSquareChatOrPost=None, removeSquareMember=None, grantRole=None, enableInvitationTicket=None, revision=None,): + self.squareMid = squareMid + self.updateSquareProfile = updateSquareProfile + self.inviteNewMember = inviteNewMember + self.approveJoinRequest = approveJoinRequest + self.createPost = createPost + self.createOpenSquareChat = createOpenSquareChat + self.deleteSquareChatOrPost = deleteSquareChatOrPost + self.removeSquareMember = removeSquareMember + self.grantRole = grantRole + self.enableInvitationTicket = enableInvitationTicket + self.revision = revision + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.updateSquareProfile = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.inviteNewMember = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.approveJoinRequest = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.createPost = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.createOpenSquareChat = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.deleteSquareChatOrPost = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I32: + self.removeSquareMember = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.I32: + self.grantRole = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.I32: + self.enableInvitationTicket = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I64: + self.revision = 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('SquareAuthority') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.updateSquareProfile is not None: + oprot.writeFieldBegin('updateSquareProfile', TType.I32, 2) + oprot.writeI32(self.updateSquareProfile) + oprot.writeFieldEnd() + if self.inviteNewMember is not None: + oprot.writeFieldBegin('inviteNewMember', TType.I32, 3) + oprot.writeI32(self.inviteNewMember) + oprot.writeFieldEnd() + if self.approveJoinRequest is not None: + oprot.writeFieldBegin('approveJoinRequest', TType.I32, 4) + oprot.writeI32(self.approveJoinRequest) + oprot.writeFieldEnd() + if self.createPost is not None: + oprot.writeFieldBegin('createPost', TType.I32, 5) + oprot.writeI32(self.createPost) + oprot.writeFieldEnd() + if self.createOpenSquareChat is not None: + oprot.writeFieldBegin('createOpenSquareChat', TType.I32, 6) + oprot.writeI32(self.createOpenSquareChat) + oprot.writeFieldEnd() + if self.deleteSquareChatOrPost is not None: + oprot.writeFieldBegin('deleteSquareChatOrPost', TType.I32, 7) + oprot.writeI32(self.deleteSquareChatOrPost) + oprot.writeFieldEnd() + if self.removeSquareMember is not None: + oprot.writeFieldBegin('removeSquareMember', TType.I32, 8) + oprot.writeI32(self.removeSquareMember) + oprot.writeFieldEnd() + if self.grantRole is not None: + oprot.writeFieldBegin('grantRole', TType.I32, 9) + oprot.writeI32(self.grantRole) + oprot.writeFieldEnd() + if self.enableInvitationTicket is not None: + oprot.writeFieldBegin('enableInvitationTicket', TType.I32, 10) + oprot.writeI32(self.enableInvitationTicket) + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 11) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquarePreference(object): + """ + Attributes: + - favoriteTimestamp + - notiForNewJoinRequest + """ + + + def __init__(self, favoriteTimestamp=None, notiForNewJoinRequest=None,): + self.favoriteTimestamp = favoriteTimestamp + self.notiForNewJoinRequest = notiForNewJoinRequest + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.favoriteTimestamp = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.BOOL: + self.notiForNewJoinRequest = 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('SquarePreference') + if self.favoriteTimestamp is not None: + oprot.writeFieldBegin('favoriteTimestamp', TType.I64, 1) + oprot.writeI64(self.favoriteTimestamp) + oprot.writeFieldEnd() + if self.notiForNewJoinRequest is not None: + oprot.writeFieldBegin('notiForNewJoinRequest', TType.BOOL, 2) + oprot.writeBool(self.notiForNewJoinRequest) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareMember(object): + """ + Attributes: + - squareMemberMid + - squareMid + - displayName + - profileImageObsHash + - ableToReceiveMessage + - membershipState + - role + - revision + - preference + - joinMessage + """ + + + def __init__(self, squareMemberMid=None, squareMid=None, displayName=None, profileImageObsHash=None, ableToReceiveMessage=None, membershipState=None, role=None, revision=None, preference=None, joinMessage=None,): + self.squareMemberMid = squareMemberMid + self.squareMid = squareMid + self.displayName = displayName + self.profileImageObsHash = profileImageObsHash + self.ableToReceiveMessage = ableToReceiveMessage + self.membershipState = membershipState + self.role = role + self.revision = revision + self.preference = preference + self.joinMessage = joinMessage + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMemberMid = 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.squareMid = 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.displayName = 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.profileImageObsHash = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.BOOL: + self.ableToReceiveMessage = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.membershipState = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I32: + self.role = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.I64: + self.revision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRUCT: + self.preference = SquarePreference() + self.preference.read(iprot) + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.joinMessage = 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('SquareMember') + if self.squareMemberMid is not None: + oprot.writeFieldBegin('squareMemberMid', TType.STRING, 1) + oprot.writeString(self.squareMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMemberMid) + oprot.writeFieldEnd() + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.displayName is not None: + oprot.writeFieldBegin('displayName', TType.STRING, 3) + oprot.writeString(self.displayName.encode('utf-8') if sys.version_info[0] == 2 else self.displayName) + oprot.writeFieldEnd() + if self.profileImageObsHash is not None: + oprot.writeFieldBegin('profileImageObsHash', TType.STRING, 4) + oprot.writeString(self.profileImageObsHash.encode('utf-8') if sys.version_info[0] == 2 else self.profileImageObsHash) + oprot.writeFieldEnd() + if self.ableToReceiveMessage is not None: + oprot.writeFieldBegin('ableToReceiveMessage', TType.BOOL, 5) + oprot.writeBool(self.ableToReceiveMessage) + oprot.writeFieldEnd() + if self.membershipState is not None: + oprot.writeFieldBegin('membershipState', TType.I32, 7) + oprot.writeI32(self.membershipState) + oprot.writeFieldEnd() + if self.role is not None: + oprot.writeFieldBegin('role', TType.I32, 8) + oprot.writeI32(self.role) + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 9) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + if self.preference is not None: + oprot.writeFieldBegin('preference', TType.STRUCT, 10) + self.preference.write(oprot) + oprot.writeFieldEnd() + if self.joinMessage is not None: + oprot.writeFieldBegin('joinMessage', TType.STRING, 11) + oprot.writeString(self.joinMessage.encode('utf-8') if sys.version_info[0] == 2 else self.joinMessage) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareMemberRelation(object): + """ + Attributes: + - state + - revision + """ + + + def __init__(self, state=None, revision=None,): + self.state = state + self.revision = revision + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.state = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.revision = 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('SquareMemberRelation') + if self.state is not None: + oprot.writeFieldBegin('state', TType.I32, 1) + oprot.writeI32(self.state) + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 2) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareFeature(object): + """ + Attributes: + - controlState + - booleanValue + """ + + + def __init__(self, controlState=None, booleanValue=None,): + self.controlState = controlState + self.booleanValue = booleanValue + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.controlState = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.booleanValue = 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('SquareFeature') + if self.controlState is not None: + oprot.writeFieldBegin('controlState', TType.I32, 1) + oprot.writeI32(self.controlState) + oprot.writeFieldEnd() + if self.booleanValue is not None: + oprot.writeFieldBegin('booleanValue', TType.I32, 2) + oprot.writeI32(self.booleanValue) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareFeatureSet(object): + """ + Attributes: + - squareMid + - revision + - creatingSecretSquareChat + - invitingIntoOpenSquareChat + """ + + + def __init__(self, squareMid=None, revision=None, creatingSecretSquareChat=None, invitingIntoOpenSquareChat=None,): + self.squareMid = squareMid + self.revision = revision + self.creatingSecretSquareChat = creatingSecretSquareChat + self.invitingIntoOpenSquareChat = invitingIntoOpenSquareChat + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.revision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRUCT: + self.creatingSecretSquareChat = SquareFeature() + self.creatingSecretSquareChat.read(iprot) + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRUCT: + self.invitingIntoOpenSquareChat = SquareFeature() + self.invitingIntoOpenSquareChat.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('SquareFeatureSet') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 2) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + if self.creatingSecretSquareChat is not None: + oprot.writeFieldBegin('creatingSecretSquareChat', TType.STRUCT, 11) + self.creatingSecretSquareChat.write(oprot) + oprot.writeFieldEnd() + if self.invitingIntoOpenSquareChat is not None: + oprot.writeFieldBegin('invitingIntoOpenSquareChat', TType.STRUCT, 12) + self.invitingIntoOpenSquareChat.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) + + +class SquareStatus(object): + """ + Attributes: + - memberCount + - joinRequestCount + - lastJoinRequestAt + - openChatCount + """ + + + def __init__(self, memberCount=None, joinRequestCount=None, lastJoinRequestAt=None, openChatCount=None,): + self.memberCount = memberCount + self.joinRequestCount = joinRequestCount + self.lastJoinRequestAt = lastJoinRequestAt + self.openChatCount = openChatCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.memberCount = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.joinRequestCount = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.lastJoinRequestAt = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.openChatCount = 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('SquareStatus') + if self.memberCount is not None: + oprot.writeFieldBegin('memberCount', TType.I32, 1) + oprot.writeI32(self.memberCount) + oprot.writeFieldEnd() + if self.joinRequestCount is not None: + oprot.writeFieldBegin('joinRequestCount', TType.I32, 2) + oprot.writeI32(self.joinRequestCount) + oprot.writeFieldEnd() + if self.lastJoinRequestAt is not None: + oprot.writeFieldBegin('lastJoinRequestAt', TType.I64, 3) + oprot.writeI64(self.lastJoinRequestAt) + oprot.writeFieldEnd() + if self.openChatCount is not None: + oprot.writeFieldBegin('openChatCount', TType.I32, 4) + oprot.writeI32(self.openChatCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareChat(object): + """ + Attributes: + - squareChatMid + - squareMid + - type + - name + - chatImageObsHash + - squareChatRevision + - maxMemberCount + - state + """ + + + def __init__(self, squareChatMid=None, squareMid=None, type=None, name=None, chatImageObsHash=None, squareChatRevision=None, maxMemberCount=None, state=None,): + self.squareChatMid = squareChatMid + self.squareMid = squareMid + self.type = type + self.name = name + self.chatImageObsHash = chatImageObsHash + self.squareChatRevision = squareChatRevision + self.maxMemberCount = maxMemberCount + self.state = state + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.squareMid = 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.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.name = 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.chatImageObsHash = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I64: + self.squareChatRevision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.maxMemberCount = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I32: + self.state = 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('SquareChat') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 3) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 4) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + if self.chatImageObsHash is not None: + oprot.writeFieldBegin('chatImageObsHash', TType.STRING, 5) + oprot.writeString(self.chatImageObsHash.encode('utf-8') if sys.version_info[0] == 2 else self.chatImageObsHash) + oprot.writeFieldEnd() + if self.squareChatRevision is not None: + oprot.writeFieldBegin('squareChatRevision', TType.I64, 6) + oprot.writeI64(self.squareChatRevision) + oprot.writeFieldEnd() + if self.maxMemberCount is not None: + oprot.writeFieldBegin('maxMemberCount', TType.I32, 7) + oprot.writeI32(self.maxMemberCount) + oprot.writeFieldEnd() + if self.state is not None: + oprot.writeFieldBegin('state', TType.I32, 8) + oprot.writeI32(self.state) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 NoteStatus(object): + """ + Attributes: + - noteCount + - latestCreatedAt + """ + + + def __init__(self, noteCount=None, latestCreatedAt=None,): + self.noteCount = noteCount + self.latestCreatedAt = latestCreatedAt + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.noteCount = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.latestCreatedAt = 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('NoteStatus') + if self.noteCount is not None: + oprot.writeFieldBegin('noteCount', TType.I32, 1) + oprot.writeI32(self.noteCount) + oprot.writeFieldEnd() + if self.latestCreatedAt is not None: + oprot.writeFieldBegin('latestCreatedAt', TType.I64, 2) + oprot.writeI64(self.latestCreatedAt) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareInfo(object): + """ + Attributes: + - square + - squareStatus + - squareNoteStatus + """ + + + def __init__(self, square=None, squareStatus=None, squareNoteStatus=None,): + self.square = square + self.squareStatus = squareStatus + self.squareNoteStatus = squareNoteStatus + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.square = Square() + self.square.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.squareStatus = SquareStatus() + self.squareStatus.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareNoteStatus = NoteStatus() + self.squareNoteStatus.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('SquareInfo') + if self.square is not None: + oprot.writeFieldBegin('square', TType.STRUCT, 1) + self.square.write(oprot) + oprot.writeFieldEnd() + if self.squareStatus is not None: + oprot.writeFieldBegin('squareStatus', TType.STRUCT, 2) + self.squareStatus.write(oprot) + oprot.writeFieldEnd() + if self.squareNoteStatus is not None: + oprot.writeFieldBegin('squareNoteStatus', TType.STRUCT, 3) + self.squareNoteStatus.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) + + +class BotUseInfo(object): + """ + Attributes: + - botUseAgreementAccepted + - botInFriends + - primaryApplication + - locale + """ + + + def __init__(self, botUseAgreementAccepted=None, botInFriends=None, primaryApplication=None, locale=None,): + self.botUseAgreementAccepted = botUseAgreementAccepted + self.botInFriends = botInFriends + self.primaryApplication = primaryApplication + 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.BOOL: + self.botUseAgreementAccepted = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.BOOL: + self.botInFriends = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.primaryApplication = 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.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('BotUseInfo') + if self.botUseAgreementAccepted is not None: + oprot.writeFieldBegin('botUseAgreementAccepted', TType.BOOL, 1) + oprot.writeBool(self.botUseAgreementAccepted) + oprot.writeFieldEnd() + if self.botInFriends is not None: + oprot.writeFieldBegin('botInFriends', TType.BOOL, 2) + oprot.writeBool(self.botInFriends) + oprot.writeFieldEnd() + if self.primaryApplication is not None: + oprot.writeFieldBegin('primaryApplication', TType.STRING, 3) + oprot.writeString(self.primaryApplication.encode('utf-8') if sys.version_info[0] == 2 else self.primaryApplication) + oprot.writeFieldEnd() + if self.locale is not None: + oprot.writeFieldBegin('locale', TType.STRING, 4) + 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) + + +class PaidCallAdCountry(object): + """ + Attributes: + - countryCode + - rateDivision + """ + + + def __init__(self, countryCode=None, rateDivision=None,): + self.countryCode = countryCode + self.rateDivision = rateDivision + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.countryCode = 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.rateDivision = 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('PaidCallAdCountry') + if self.countryCode is not None: + oprot.writeFieldBegin('countryCode', TType.STRING, 1) + oprot.writeString(self.countryCode.encode('utf-8') if sys.version_info[0] == 2 else self.countryCode) + oprot.writeFieldEnd() + if self.rateDivision is not None: + oprot.writeFieldBegin('rateDivision', TType.STRING, 2) + oprot.writeString(self.rateDivision.encode('utf-8') if sys.version_info[0] == 2 else self.rateDivision) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 PaidCallAdResult(object): + """ + Attributes: + - adRemains + """ + + + def __init__(self, adRemains=None,): + self.adRemains = adRemains + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.adRemains = 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('PaidCallAdResult') + if self.adRemains is not None: + oprot.writeFieldBegin('adRemains', TType.I32, 1) + oprot.writeI32(self.adRemains) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 PaidCallBalance(object): + """ + Attributes: + - productType + - productName + - unit + - limitedPaidBalance + - limitedFreeBalance + - unlimitedPaidBalance + - unlimitedFreeBalance + - startTime + - endTime + - autopayEnabled + """ + + + def __init__(self, productType=None, productName=None, unit=None, limitedPaidBalance=None, limitedFreeBalance=None, unlimitedPaidBalance=None, unlimitedFreeBalance=None, startTime=None, endTime=None, autopayEnabled=None,): + self.productType = productType + self.productName = productName + self.unit = unit + self.limitedPaidBalance = limitedPaidBalance + self.limitedFreeBalance = limitedFreeBalance + self.unlimitedPaidBalance = unlimitedPaidBalance + self.unlimitedFreeBalance = unlimitedFreeBalance + self.startTime = startTime + self.endTime = endTime + self.autopayEnabled = autopayEnabled + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.productType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.productName = 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.unit = 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.limitedPaidBalance = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.limitedFreeBalance = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.unlimitedPaidBalance = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.unlimitedFreeBalance = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I64: + self.startTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.I64: + self.endTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.BOOL: + self.autopayEnabled = 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('PaidCallBalance') + if self.productType is not None: + oprot.writeFieldBegin('productType', TType.I32, 1) + oprot.writeI32(self.productType) + oprot.writeFieldEnd() + if self.productName is not None: + oprot.writeFieldBegin('productName', TType.STRING, 2) + oprot.writeString(self.productName.encode('utf-8') if sys.version_info[0] == 2 else self.productName) + oprot.writeFieldEnd() + if self.unit is not None: + oprot.writeFieldBegin('unit', TType.STRING, 3) + oprot.writeString(self.unit.encode('utf-8') if sys.version_info[0] == 2 else self.unit) + oprot.writeFieldEnd() + if self.limitedPaidBalance is not None: + oprot.writeFieldBegin('limitedPaidBalance', TType.I32, 4) + oprot.writeI32(self.limitedPaidBalance) + oprot.writeFieldEnd() + if self.limitedFreeBalance is not None: + oprot.writeFieldBegin('limitedFreeBalance', TType.I32, 5) + oprot.writeI32(self.limitedFreeBalance) + oprot.writeFieldEnd() + if self.unlimitedPaidBalance is not None: + oprot.writeFieldBegin('unlimitedPaidBalance', TType.I32, 6) + oprot.writeI32(self.unlimitedPaidBalance) + oprot.writeFieldEnd() + if self.unlimitedFreeBalance is not None: + oprot.writeFieldBegin('unlimitedFreeBalance', TType.I32, 7) + oprot.writeI32(self.unlimitedFreeBalance) + oprot.writeFieldEnd() + if self.startTime is not None: + oprot.writeFieldBegin('startTime', TType.I64, 8) + oprot.writeI64(self.startTime) + oprot.writeFieldEnd() + if self.endTime is not None: + oprot.writeFieldBegin('endTime', TType.I64, 9) + oprot.writeI64(self.endTime) + oprot.writeFieldEnd() + if self.autopayEnabled is not None: + oprot.writeFieldBegin('autopayEnabled', TType.BOOL, 10) + oprot.writeBool(self.autopayEnabled) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 PaidCallCurrencyExchangeRate(object): + """ + Attributes: + - currencyCode + - currencyName + - currencySign + - preferred + - coinRate + - creditRate + """ + + + def __init__(self, currencyCode=None, currencyName=None, currencySign=None, preferred=None, coinRate=None, creditRate=None,): + self.currencyCode = currencyCode + self.currencyName = currencyName + self.currencySign = currencySign + self.preferred = preferred + self.coinRate = coinRate + self.creditRate = creditRate + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.currencyCode = 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.currencyName = 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.currencySign = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BOOL: + self.preferred = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.coinRate = 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.creditRate = 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('PaidCallCurrencyExchangeRate') + if self.currencyCode is not None: + oprot.writeFieldBegin('currencyCode', TType.STRING, 1) + oprot.writeString(self.currencyCode.encode('utf-8') if sys.version_info[0] == 2 else self.currencyCode) + oprot.writeFieldEnd() + if self.currencyName is not None: + oprot.writeFieldBegin('currencyName', TType.STRING, 2) + oprot.writeString(self.currencyName.encode('utf-8') if sys.version_info[0] == 2 else self.currencyName) + oprot.writeFieldEnd() + if self.currencySign is not None: + oprot.writeFieldBegin('currencySign', TType.STRING, 3) + oprot.writeString(self.currencySign.encode('utf-8') if sys.version_info[0] == 2 else self.currencySign) + oprot.writeFieldEnd() + if self.preferred is not None: + oprot.writeFieldBegin('preferred', TType.BOOL, 4) + oprot.writeBool(self.preferred) + oprot.writeFieldEnd() + if self.coinRate is not None: + oprot.writeFieldBegin('coinRate', TType.STRING, 5) + oprot.writeString(self.coinRate.encode('utf-8') if sys.version_info[0] == 2 else self.coinRate) + oprot.writeFieldEnd() + if self.creditRate is not None: + oprot.writeFieldBegin('creditRate', TType.STRING, 6) + oprot.writeString(self.creditRate.encode('utf-8') if sys.version_info[0] == 2 else self.creditRate) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ExtendedProfileBirthday(object): + """ + Attributes: + - year + - yearPrivacyLevelType + - yearEnabled + - day + - dayPrivacyLevelType + - dayEnabled + """ + + + def __init__(self, year=None, yearPrivacyLevelType=None, yearEnabled=None, day=None, dayPrivacyLevelType=None, dayEnabled=None,): + self.year = year + self.yearPrivacyLevelType = yearPrivacyLevelType + self.yearEnabled = yearEnabled + self.day = day + self.dayPrivacyLevelType = dayPrivacyLevelType + self.dayEnabled = dayEnabled + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.year = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.yearPrivacyLevelType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.BOOL: + self.yearEnabled = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.day = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.dayPrivacyLevelType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.BOOL: + self.dayEnabled = 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('ExtendedProfileBirthday') + if self.year is not None: + oprot.writeFieldBegin('year', TType.STRING, 1) + oprot.writeString(self.year.encode('utf-8') if sys.version_info[0] == 2 else self.year) + oprot.writeFieldEnd() + if self.yearPrivacyLevelType is not None: + oprot.writeFieldBegin('yearPrivacyLevelType', TType.I32, 2) + oprot.writeI32(self.yearPrivacyLevelType) + oprot.writeFieldEnd() + if self.yearEnabled is not None: + oprot.writeFieldBegin('yearEnabled', TType.BOOL, 3) + oprot.writeBool(self.yearEnabled) + oprot.writeFieldEnd() + if self.day is not None: + oprot.writeFieldBegin('day', TType.STRING, 5) + oprot.writeString(self.day.encode('utf-8') if sys.version_info[0] == 2 else self.day) + oprot.writeFieldEnd() + if self.dayPrivacyLevelType is not None: + oprot.writeFieldBegin('dayPrivacyLevelType', TType.I32, 6) + oprot.writeI32(self.dayPrivacyLevelType) + oprot.writeFieldEnd() + if self.dayEnabled is not None: + oprot.writeFieldBegin('dayEnabled', TType.BOOL, 7) + oprot.writeBool(self.dayEnabled) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ExtendedProfile(object): + """ + Attributes: + - birthday + """ + + + def __init__(self, birthday=None,): + self.birthday = birthday + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.birthday = ExtendedProfileBirthday() + self.birthday.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('ExtendedProfile') + if self.birthday is not None: + oprot.writeFieldBegin('birthday', TType.STRUCT, 1) + self.birthday.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) + + +class PaidCallDialing(object): + """ + Attributes: + - type + - dialedNumber + - serviceDomain + - productType + - productName + - multipleProduct + - callerIdStatus + - balance + - unit + - rate + - displayCode + - calledNumber + - calleeNationalNumber + - calleeCallingCode + - rateDivision + - adMaxMin + - adRemains + - adSessionId + """ + + + def __init__(self, type=None, dialedNumber=None, serviceDomain=None, productType=None, productName=None, multipleProduct=None, callerIdStatus=None, balance=None, unit=None, rate=None, displayCode=None, calledNumber=None, calleeNationalNumber=None, calleeCallingCode=None, rateDivision=None, adMaxMin=None, adRemains=None, adSessionId=None,): + self.type = type + self.dialedNumber = dialedNumber + self.serviceDomain = serviceDomain + self.productType = productType + self.productName = productName + self.multipleProduct = multipleProduct + self.callerIdStatus = callerIdStatus + self.balance = balance + self.unit = unit + self.rate = rate + self.displayCode = displayCode + self.calledNumber = calledNumber + self.calleeNationalNumber = calleeNationalNumber + self.calleeCallingCode = calleeCallingCode + self.rateDivision = rateDivision + self.adMaxMin = adMaxMin + self.adRemains = adRemains + self.adSessionId = adSessionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.dialedNumber = 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.serviceDomain = 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.productType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.productName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.BOOL: + self.multipleProduct = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.callerIdStatus = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.I32: + self.balance = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.unit = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.I32: + self.rate = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.STRING: + self.displayCode = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 14: + if ftype == TType.STRING: + self.calledNumber = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 15: + if ftype == TType.STRING: + self.calleeNationalNumber = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 16: + if ftype == TType.STRING: + self.calleeCallingCode = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 17: + if ftype == TType.STRING: + self.rateDivision = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 20: + if ftype == TType.I32: + self.adMaxMin = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 21: + if ftype == TType.I32: + self.adRemains = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 22: + if ftype == TType.STRING: + self.adSessionId = 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('PaidCallDialing') + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 1) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.dialedNumber is not None: + oprot.writeFieldBegin('dialedNumber', TType.STRING, 2) + oprot.writeString(self.dialedNumber.encode('utf-8') if sys.version_info[0] == 2 else self.dialedNumber) + oprot.writeFieldEnd() + if self.serviceDomain is not None: + oprot.writeFieldBegin('serviceDomain', TType.STRING, 3) + oprot.writeString(self.serviceDomain.encode('utf-8') if sys.version_info[0] == 2 else self.serviceDomain) + oprot.writeFieldEnd() + if self.productType is not None: + oprot.writeFieldBegin('productType', TType.I32, 4) + oprot.writeI32(self.productType) + oprot.writeFieldEnd() + if self.productName is not None: + oprot.writeFieldBegin('productName', TType.STRING, 5) + oprot.writeString(self.productName.encode('utf-8') if sys.version_info[0] == 2 else self.productName) + oprot.writeFieldEnd() + if self.multipleProduct is not None: + oprot.writeFieldBegin('multipleProduct', TType.BOOL, 6) + oprot.writeBool(self.multipleProduct) + oprot.writeFieldEnd() + if self.callerIdStatus is not None: + oprot.writeFieldBegin('callerIdStatus', TType.I32, 7) + oprot.writeI32(self.callerIdStatus) + oprot.writeFieldEnd() + if self.balance is not None: + oprot.writeFieldBegin('balance', TType.I32, 10) + oprot.writeI32(self.balance) + oprot.writeFieldEnd() + if self.unit is not None: + oprot.writeFieldBegin('unit', TType.STRING, 11) + oprot.writeString(self.unit.encode('utf-8') if sys.version_info[0] == 2 else self.unit) + oprot.writeFieldEnd() + if self.rate is not None: + oprot.writeFieldBegin('rate', TType.I32, 12) + oprot.writeI32(self.rate) + oprot.writeFieldEnd() + if self.displayCode is not None: + oprot.writeFieldBegin('displayCode', TType.STRING, 13) + oprot.writeString(self.displayCode.encode('utf-8') if sys.version_info[0] == 2 else self.displayCode) + oprot.writeFieldEnd() + if self.calledNumber is not None: + oprot.writeFieldBegin('calledNumber', TType.STRING, 14) + oprot.writeString(self.calledNumber.encode('utf-8') if sys.version_info[0] == 2 else self.calledNumber) + oprot.writeFieldEnd() + if self.calleeNationalNumber is not None: + oprot.writeFieldBegin('calleeNationalNumber', TType.STRING, 15) + oprot.writeString(self.calleeNationalNumber.encode('utf-8') if sys.version_info[0] == 2 else self.calleeNationalNumber) + oprot.writeFieldEnd() + if self.calleeCallingCode is not None: + oprot.writeFieldBegin('calleeCallingCode', TType.STRING, 16) + oprot.writeString(self.calleeCallingCode.encode('utf-8') if sys.version_info[0] == 2 else self.calleeCallingCode) + oprot.writeFieldEnd() + if self.rateDivision is not None: + oprot.writeFieldBegin('rateDivision', TType.STRING, 17) + oprot.writeString(self.rateDivision.encode('utf-8') if sys.version_info[0] == 2 else self.rateDivision) + oprot.writeFieldEnd() + if self.adMaxMin is not None: + oprot.writeFieldBegin('adMaxMin', TType.I32, 20) + oprot.writeI32(self.adMaxMin) + oprot.writeFieldEnd() + if self.adRemains is not None: + oprot.writeFieldBegin('adRemains', TType.I32, 21) + oprot.writeI32(self.adRemains) + oprot.writeFieldEnd() + if self.adSessionId is not None: + oprot.writeFieldBegin('adSessionId', TType.STRING, 22) + oprot.writeString(self.adSessionId.encode('utf-8') if sys.version_info[0] == 2 else self.adSessionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SpotItem(object): + """ + Attributes: + - name + - phone + - category + - mid + - countryAreaCode + - freePhoneCallable + """ + + + def __init__(self, name=None, phone=None, category=None, mid=None, countryAreaCode=None, freePhoneCallable=None,): + self.name = name + self.phone = phone + self.category = category + self.mid = mid + self.countryAreaCode = countryAreaCode + self.freePhoneCallable = freePhoneCallable + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.name = 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.phone = 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.category = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.mid = 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.countryAreaCode = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.BOOL: + self.freePhoneCallable = 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('SpotItem') + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 2) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + if self.phone is not None: + oprot.writeFieldBegin('phone', TType.STRING, 3) + oprot.writeString(self.phone.encode('utf-8') if sys.version_info[0] == 2 else self.phone) + oprot.writeFieldEnd() + if self.category is not None: + oprot.writeFieldBegin('category', TType.I32, 4) + oprot.writeI32(self.category) + oprot.writeFieldEnd() + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 5) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.countryAreaCode is not None: + oprot.writeFieldBegin('countryAreaCode', TType.STRING, 6) + oprot.writeString(self.countryAreaCode.encode('utf-8') if sys.version_info[0] == 2 else self.countryAreaCode) + oprot.writeFieldEnd() + if self.freePhoneCallable is not None: + oprot.writeFieldBegin('freePhoneCallable', TType.BOOL, 10) + oprot.writeBool(self.freePhoneCallable) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SpotNearbyItem(object): + """ + Attributes: + - spotItem + - location + """ + + + def __init__(self, spotItem=None, location=None,): + self.spotItem = spotItem + self.location = location + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.spotItem = SpotItem() + self.spotItem.read(iprot) + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRUCT: + self.location = Location() + self.location.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('SpotNearbyItem') + if self.spotItem is not None: + oprot.writeFieldBegin('spotItem', TType.STRUCT, 2) + self.spotItem.write(oprot) + oprot.writeFieldEnd() + if self.location is not None: + oprot.writeFieldBegin('location', TType.STRUCT, 11) + self.location.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) + + +class SpotNearbyResponse(object): + """ + Attributes: + - spotNearbyItems + """ + + + def __init__(self, spotNearbyItems=None,): + self.spotNearbyItems = spotNearbyItems + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.spotNearbyItems = [] + (_etype17, _size14) = iprot.readListBegin() + for _i18 in range(_size14): + _elem19 = SpotNearbyItem() + _elem19.read(iprot) + self.spotNearbyItems.append(_elem19) + 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('SpotNearbyResponse') + if self.spotNearbyItems is not None: + oprot.writeFieldBegin('spotNearbyItems', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.spotNearbyItems)) + for iter20 in self.spotNearbyItems: + iter20.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) + + +class SpotPhoneNumberResponse(object): + """ + Attributes: + - spotItems + """ + + + def __init__(self, spotItems=None,): + self.spotItems = spotItems + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.spotItems = [] + (_etype24, _size21) = iprot.readListBegin() + for _i25 in range(_size21): + _elem26 = SpotItem() + _elem26.read(iprot) + self.spotItems.append(_elem26) + 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('SpotPhoneNumberResponse') + if self.spotItems is not None: + oprot.writeFieldBegin('spotItems', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.spotItems)) + for iter27 in self.spotItems: + iter27.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) + + +class PaidCallHistory(object): + """ + Attributes: + - seq + - type + - dialedNumber + - calledNumber + - toMid + - toName + - setupTime + - startTime + - endTime + - duration + - terminate + - productType + - charge + - unit + - result + """ + + + def __init__(self, seq=None, type=None, dialedNumber=None, calledNumber=None, toMid=None, toName=None, setupTime=None, startTime=None, endTime=None, duration=None, terminate=None, productType=None, charge=None, unit=None, result=None,): + self.seq = seq + self.type = type + self.dialedNumber = dialedNumber + self.calledNumber = calledNumber + self.toMid = toMid + self.toName = toName + self.setupTime = setupTime + self.startTime = startTime + self.endTime = endTime + self.duration = duration + self.terminate = terminate + self.productType = productType + self.charge = charge + self.unit = unit + self.result = result + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.seq = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.dialedNumber = 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.calledNumber = 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.toMid = 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.toName = 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.setupTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I64: + self.startTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.I64: + self.endTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.I64: + self.duration = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I32: + self.terminate = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.I32: + self.productType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.I32: + self.charge = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 14: + if ftype == TType.STRING: + self.unit = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 15: + if ftype == TType.STRING: + self.result = 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('PaidCallHistory') + if self.seq is not None: + oprot.writeFieldBegin('seq', TType.I64, 1) + oprot.writeI64(self.seq) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 2) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.dialedNumber is not None: + oprot.writeFieldBegin('dialedNumber', TType.STRING, 3) + oprot.writeString(self.dialedNumber.encode('utf-8') if sys.version_info[0] == 2 else self.dialedNumber) + oprot.writeFieldEnd() + if self.calledNumber is not None: + oprot.writeFieldBegin('calledNumber', TType.STRING, 4) + oprot.writeString(self.calledNumber.encode('utf-8') if sys.version_info[0] == 2 else self.calledNumber) + oprot.writeFieldEnd() + if self.toMid is not None: + oprot.writeFieldBegin('toMid', TType.STRING, 5) + oprot.writeString(self.toMid.encode('utf-8') if sys.version_info[0] == 2 else self.toMid) + oprot.writeFieldEnd() + if self.toName is not None: + oprot.writeFieldBegin('toName', TType.STRING, 6) + oprot.writeString(self.toName.encode('utf-8') if sys.version_info[0] == 2 else self.toName) + oprot.writeFieldEnd() + if self.setupTime is not None: + oprot.writeFieldBegin('setupTime', TType.I64, 7) + oprot.writeI64(self.setupTime) + oprot.writeFieldEnd() + if self.startTime is not None: + oprot.writeFieldBegin('startTime', TType.I64, 8) + oprot.writeI64(self.startTime) + oprot.writeFieldEnd() + if self.endTime is not None: + oprot.writeFieldBegin('endTime', TType.I64, 9) + oprot.writeI64(self.endTime) + oprot.writeFieldEnd() + if self.duration is not None: + oprot.writeFieldBegin('duration', TType.I64, 10) + oprot.writeI64(self.duration) + oprot.writeFieldEnd() + if self.terminate is not None: + oprot.writeFieldBegin('terminate', TType.I32, 11) + oprot.writeI32(self.terminate) + oprot.writeFieldEnd() + if self.productType is not None: + oprot.writeFieldBegin('productType', TType.I32, 12) + oprot.writeI32(self.productType) + oprot.writeFieldEnd() + if self.charge is not None: + oprot.writeFieldBegin('charge', TType.I32, 13) + oprot.writeI32(self.charge) + oprot.writeFieldEnd() + if self.unit is not None: + oprot.writeFieldBegin('unit', TType.STRING, 14) + oprot.writeString(self.unit.encode('utf-8') if sys.version_info[0] == 2 else self.unit) + oprot.writeFieldEnd() + if self.result is not None: + oprot.writeFieldBegin('result', TType.STRING, 15) + oprot.writeString(self.result.encode('utf-8') if sys.version_info[0] == 2 else self.result) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 PaidCallHistoryResult(object): + """ + Attributes: + - historys + - hasNext + """ + + + def __init__(self, historys=None, hasNext=None,): + self.historys = historys + self.hasNext = hasNext + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.historys = [] + (_etype31, _size28) = iprot.readListBegin() + for _i32 in range(_size28): + _elem33 = PaidCallHistory() + _elem33.read(iprot) + self.historys.append(_elem33) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.BOOL: + self.hasNext = 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('PaidCallHistoryResult') + if self.historys is not None: + oprot.writeFieldBegin('historys', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.historys)) + for iter34 in self.historys: + iter34.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.hasNext is not None: + oprot.writeFieldBegin('hasNext', TType.BOOL, 2) + oprot.writeBool(self.hasNext) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 PaidCallMetadataResult(object): + """ + Attributes: + - currencyExchangeRates + - recommendedCountryCodes + - adCountries + """ + + + def __init__(self, currencyExchangeRates=None, recommendedCountryCodes=None, adCountries=None,): + self.currencyExchangeRates = currencyExchangeRates + self.recommendedCountryCodes = recommendedCountryCodes + self.adCountries = adCountries + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.currencyExchangeRates = [] + (_etype38, _size35) = iprot.readListBegin() + for _i39 in range(_size35): + _elem40 = PaidCallCurrencyExchangeRate() + _elem40.read(iprot) + self.currencyExchangeRates.append(_elem40) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.recommendedCountryCodes = [] + (_etype44, _size41) = iprot.readListBegin() + for _i45 in range(_size41): + _elem46 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.recommendedCountryCodes.append(_elem46) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.adCountries = [] + (_etype50, _size47) = iprot.readListBegin() + for _i51 in range(_size47): + _elem52 = PaidCallAdCountry() + _elem52.read(iprot) + self.adCountries.append(_elem52) + 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('PaidCallMetadataResult') + if self.currencyExchangeRates is not None: + oprot.writeFieldBegin('currencyExchangeRates', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.currencyExchangeRates)) + for iter53 in self.currencyExchangeRates: + iter53.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.recommendedCountryCodes is not None: + oprot.writeFieldBegin('recommendedCountryCodes', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.recommendedCountryCodes)) + for iter54 in self.recommendedCountryCodes: + oprot.writeString(iter54.encode('utf-8') if sys.version_info[0] == 2 else iter54) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.adCountries is not None: + oprot.writeFieldBegin('adCountries', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.adCountries)) + for iter55 in self.adCountries: + iter55.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) + + +class PaidCallRedeemResult(object): + """ + Attributes: + - eventName + - eventAmount + """ + + + def __init__(self, eventName=None, eventAmount=None,): + self.eventName = eventName + self.eventAmount = eventAmount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.eventName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.eventAmount = 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('PaidCallRedeemResult') + if self.eventName is not None: + oprot.writeFieldBegin('eventName', TType.STRING, 1) + oprot.writeString(self.eventName.encode('utf-8') if sys.version_info[0] == 2 else self.eventName) + oprot.writeFieldEnd() + if self.eventAmount is not None: + oprot.writeFieldBegin('eventAmount', TType.I32, 2) + oprot.writeI32(self.eventAmount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 PaidCallResponse(object): + """ + Attributes: + - host + - dialing + - token + - spotItems + """ + + + def __init__(self, host=None, dialing=None, token=None, spotItems=None,): + self.host = host + self.dialing = dialing + self.token = token + self.spotItems = spotItems + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.host = CallHost() + self.host.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.dialing = PaidCallDialing() + self.dialing.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.token = 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.spotItems = [] + (_etype59, _size56) = iprot.readListBegin() + for _i60 in range(_size56): + _elem61 = SpotItem() + _elem61.read(iprot) + self.spotItems.append(_elem61) + 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('PaidCallResponse') + if self.host is not None: + oprot.writeFieldBegin('host', TType.STRUCT, 1) + self.host.write(oprot) + oprot.writeFieldEnd() + if self.dialing is not None: + oprot.writeFieldBegin('dialing', TType.STRUCT, 2) + self.dialing.write(oprot) + oprot.writeFieldEnd() + if self.token is not None: + oprot.writeFieldBegin('token', TType.STRING, 3) + oprot.writeString(self.token.encode('utf-8') if sys.version_info[0] == 2 else self.token) + oprot.writeFieldEnd() + if self.spotItems is not None: + oprot.writeFieldBegin('spotItems', TType.LIST, 4) + oprot.writeListBegin(TType.STRUCT, len(self.spotItems)) + for iter62 in self.spotItems: + iter62.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) + + +class PaidCallUserRate(object): + """ + Attributes: + - countryCode + - rate + - rateDivision + - rateName + """ + + + def __init__(self, countryCode=None, rate=None, rateDivision=None, rateName=None,): + self.countryCode = countryCode + self.rate = rate + self.rateDivision = rateDivision + self.rateName = rateName + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.countryCode = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.rate = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.rateDivision = 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.rateName = 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('PaidCallUserRate') + if self.countryCode is not None: + oprot.writeFieldBegin('countryCode', TType.STRING, 1) + oprot.writeString(self.countryCode.encode('utf-8') if sys.version_info[0] == 2 else self.countryCode) + oprot.writeFieldEnd() + if self.rate is not None: + oprot.writeFieldBegin('rate', TType.I32, 2) + oprot.writeI32(self.rate) + oprot.writeFieldEnd() + if self.rateDivision is not None: + oprot.writeFieldBegin('rateDivision', TType.STRING, 3) + oprot.writeString(self.rateDivision.encode('utf-8') if sys.version_info[0] == 2 else self.rateDivision) + oprot.writeFieldEnd() + if self.rateName is not None: + oprot.writeFieldBegin('rateName', TType.STRING, 4) + oprot.writeString(self.rateName.encode('utf-8') if sys.version_info[0] == 2 else self.rateName) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ChannelInfo(object): + """ + Attributes: + - channelId + - name + - entryPageUrl + - descriptionText + - provider + - publicType + - iconImage + - permissions + - iconThumbnailImage + - channelConfigurations + - lcsAllApiUsable + - allowedPermissions + - channelDomains + - updatedTimestamp + """ + + + def __init__(self, channelId=None, name=None, entryPageUrl=None, descriptionText=None, provider=None, publicType=None, iconImage=None, permissions=None, iconThumbnailImage=None, channelConfigurations=None, lcsAllApiUsable=None, allowedPermissions=None, channelDomains=None, updatedTimestamp=None,): + self.channelId = channelId + self.name = name + self.entryPageUrl = entryPageUrl + self.descriptionText = descriptionText + self.provider = provider + self.publicType = publicType + self.iconImage = iconImage + self.permissions = permissions + self.iconThumbnailImage = iconThumbnailImage + self.channelConfigurations = channelConfigurations + self.lcsAllApiUsable = lcsAllApiUsable + self.allowedPermissions = allowedPermissions + self.channelDomains = channelDomains + self.updatedTimestamp = updatedTimestamp + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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 == 3: + if ftype == TType.STRING: + self.name = 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.entryPageUrl = 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.descriptionText = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRUCT: + self.provider = ChannelProvider() + self.provider.read(iprot) + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.publicType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.iconImage = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.LIST: + self.permissions = [] + (_etype66, _size63) = iprot.readListBegin() + for _i67 in range(_size63): + _elem68 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.permissions.append(_elem68) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.iconThumbnailImage = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.LIST: + self.channelConfigurations = [] + (_etype72, _size69) = iprot.readListBegin() + for _i73 in range(_size69): + _elem74 = iprot.readI32() + self.channelConfigurations.append(_elem74) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.BOOL: + self.lcsAllApiUsable = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 14: + if ftype == TType.SET: + self.allowedPermissions = set() + (_etype78, _size75) = iprot.readSetBegin() + for _i79 in range(_size75): + _elem80 = iprot.readI32() + self.allowedPermissions.add(_elem80) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 15: + if ftype == TType.LIST: + self.channelDomains = [] + (_etype84, _size81) = iprot.readListBegin() + for _i85 in range(_size81): + _elem86 = ChannelDomain() + _elem86.read(iprot) + self.channelDomains.append(_elem86) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 16: + if ftype == TType.I64: + self.updatedTimestamp = 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('ChannelInfo') + 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.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 3) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + if self.entryPageUrl is not None: + oprot.writeFieldBegin('entryPageUrl', TType.STRING, 4) + oprot.writeString(self.entryPageUrl.encode('utf-8') if sys.version_info[0] == 2 else self.entryPageUrl) + oprot.writeFieldEnd() + if self.descriptionText is not None: + oprot.writeFieldBegin('descriptionText', TType.STRING, 5) + oprot.writeString(self.descriptionText.encode('utf-8') if sys.version_info[0] == 2 else self.descriptionText) + oprot.writeFieldEnd() + if self.provider is not None: + oprot.writeFieldBegin('provider', TType.STRUCT, 6) + self.provider.write(oprot) + oprot.writeFieldEnd() + if self.publicType is not None: + oprot.writeFieldBegin('publicType', TType.I32, 7) + oprot.writeI32(self.publicType) + oprot.writeFieldEnd() + if self.iconImage is not None: + oprot.writeFieldBegin('iconImage', TType.STRING, 8) + oprot.writeString(self.iconImage.encode('utf-8') if sys.version_info[0] == 2 else self.iconImage) + oprot.writeFieldEnd() + if self.permissions is not None: + oprot.writeFieldBegin('permissions', TType.LIST, 9) + oprot.writeListBegin(TType.STRING, len(self.permissions)) + for iter87 in self.permissions: + oprot.writeString(iter87.encode('utf-8') if sys.version_info[0] == 2 else iter87) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.iconThumbnailImage is not None: + oprot.writeFieldBegin('iconThumbnailImage', TType.STRING, 11) + oprot.writeString(self.iconThumbnailImage.encode('utf-8') if sys.version_info[0] == 2 else self.iconThumbnailImage) + oprot.writeFieldEnd() + if self.channelConfigurations is not None: + oprot.writeFieldBegin('channelConfigurations', TType.LIST, 12) + oprot.writeListBegin(TType.I32, len(self.channelConfigurations)) + for iter88 in self.channelConfigurations: + oprot.writeI32(iter88) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.lcsAllApiUsable is not None: + oprot.writeFieldBegin('lcsAllApiUsable', TType.BOOL, 13) + oprot.writeBool(self.lcsAllApiUsable) + oprot.writeFieldEnd() + if self.allowedPermissions is not None: + oprot.writeFieldBegin('allowedPermissions', TType.SET, 14) + oprot.writeSetBegin(TType.I32, len(self.allowedPermissions)) + for iter89 in self.allowedPermissions: + oprot.writeI32(iter89) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.channelDomains is not None: + oprot.writeFieldBegin('channelDomains', TType.LIST, 15) + oprot.writeListBegin(TType.STRUCT, len(self.channelDomains)) + for iter90 in self.channelDomains: + iter90.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.updatedTimestamp is not None: + oprot.writeFieldBegin('updatedTimestamp', TType.I64, 16) + oprot.writeI64(self.updatedTimestamp) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ApprovedChannelInfo(object): + """ + Attributes: + - channelInfo + - approvedAt + """ + + + def __init__(self, channelInfo=None, approvedAt=None,): + self.channelInfo = channelInfo + self.approvedAt = approvedAt + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.channelInfo = ChannelInfo() + self.channelInfo.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.approvedAt = 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('ApprovedChannelInfo') + if self.channelInfo is not None: + oprot.writeFieldBegin('channelInfo', TType.STRUCT, 1) + self.channelInfo.write(oprot) + oprot.writeFieldEnd() + if self.approvedAt is not None: + oprot.writeFieldBegin('approvedAt', TType.I64, 2) + oprot.writeI64(self.approvedAt) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ApprovedChannelInfos(object): + """ + Attributes: + - approvedChannelInfos + - revision + """ + + + def __init__(self, approvedChannelInfos=None, revision=None,): + self.approvedChannelInfos = approvedChannelInfos + self.revision = revision + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.approvedChannelInfos = [] + (_etype94, _size91) = iprot.readListBegin() + for _i95 in range(_size91): + _elem96 = ApprovedChannelInfo() + _elem96.read(iprot) + self.approvedChannelInfos.append(_elem96) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.revision = 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('ApprovedChannelInfos') + if self.approvedChannelInfos is not None: + oprot.writeFieldBegin('approvedChannelInfos', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.approvedChannelInfos)) + for iter97 in self.approvedChannelInfos: + iter97.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 2) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 AuthQrcode(object): + """ + Attributes: + - qrcode + - verifier + - callbackUrl + """ + + + def __init__(self, qrcode=None, verifier=None, callbackUrl=None,): + self.qrcode = qrcode + self.verifier = verifier + self.callbackUrl = callbackUrl + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.qrcode = 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.verifier = 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.callbackUrl = 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('AuthQrcode') + if self.qrcode is not None: + oprot.writeFieldBegin('qrcode', TType.STRING, 1) + oprot.writeString(self.qrcode.encode('utf-8') if sys.version_info[0] == 2 else self.qrcode) + oprot.writeFieldEnd() + if self.verifier is not None: + oprot.writeFieldBegin('verifier', TType.STRING, 2) + oprot.writeString(self.verifier.encode('utf-8') if sys.version_info[0] == 2 else self.verifier) + oprot.writeFieldEnd() + if self.callbackUrl is not None: + oprot.writeFieldBegin('callbackUrl', TType.STRING, 3) + oprot.writeString(self.callbackUrl.encode('utf-8') if sys.version_info[0] == 2 else self.callbackUrl) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 AnalyticsInfo(object): + """ + Attributes: + - gaSamplingRate + - tmid + """ + + + def __init__(self, gaSamplingRate=None, tmid=None,): + self.gaSamplingRate = gaSamplingRate + self.tmid = tmid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.DOUBLE: + self.gaSamplingRate = iprot.readDouble() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tmid = 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('AnalyticsInfo') + if self.gaSamplingRate is not None: + oprot.writeFieldBegin('gaSamplingRate', TType.DOUBLE, 1) + oprot.writeDouble(self.gaSamplingRate) + oprot.writeFieldEnd() + if self.tmid is not None: + oprot.writeFieldBegin('tmid', TType.STRING, 2) + oprot.writeString(self.tmid.encode('utf-8') if sys.version_info[0] == 2 else self.tmid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ContactTransition(object): + """ + Attributes: + - ownerMid + - targetMid + - previousStatus + - resultStatus + """ + + + def __init__(self, ownerMid=None, targetMid=None, previousStatus=None, resultStatus=None,): + self.ownerMid = ownerMid + self.targetMid = targetMid + self.previousStatus = previousStatus + self.resultStatus = resultStatus + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.ownerMid = 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.targetMid = 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.previousStatus = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.resultStatus = 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('ContactTransition') + if self.ownerMid is not None: + oprot.writeFieldBegin('ownerMid', TType.STRING, 1) + oprot.writeString(self.ownerMid.encode('utf-8') if sys.version_info[0] == 2 else self.ownerMid) + oprot.writeFieldEnd() + if self.targetMid is not None: + oprot.writeFieldBegin('targetMid', TType.STRING, 2) + oprot.writeString(self.targetMid.encode('utf-8') if sys.version_info[0] == 2 else self.targetMid) + oprot.writeFieldEnd() + if self.previousStatus is not None: + oprot.writeFieldBegin('previousStatus', TType.I32, 3) + oprot.writeI32(self.previousStatus) + oprot.writeFieldEnd() + if self.resultStatus is not None: + oprot.writeFieldBegin('resultStatus', TType.I32, 4) + oprot.writeI32(self.resultStatus) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 UserTicketResponse(object): + """ + Attributes: + - mid + - userTicket + """ + + + def __init__(self, mid=None, userTicket=None,): + self.mid = mid + self.userTicket = userTicket + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.userTicket = 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('UserTicketResponse') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.userTicket is not None: + oprot.writeFieldBegin('userTicket', TType.STRING, 2) + oprot.writeString(self.userTicket.encode('utf-8') if sys.version_info[0] == 2 else self.userTicket) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 BuddyBanner(object): + """ + Attributes: + - buddyBannerLinkType + - buddyBannerLink + - buddyBannerImageUrl + """ + + + def __init__(self, buddyBannerLinkType=None, buddyBannerLink=None, buddyBannerImageUrl=None,): + self.buddyBannerLinkType = buddyBannerLinkType + self.buddyBannerLink = buddyBannerLink + self.buddyBannerImageUrl = buddyBannerImageUrl + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.buddyBannerLinkType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.buddyBannerLink = 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.buddyBannerImageUrl = 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('BuddyBanner') + if self.buddyBannerLinkType is not None: + oprot.writeFieldBegin('buddyBannerLinkType', TType.I32, 1) + oprot.writeI32(self.buddyBannerLinkType) + oprot.writeFieldEnd() + if self.buddyBannerLink is not None: + oprot.writeFieldBegin('buddyBannerLink', TType.STRING, 2) + oprot.writeString(self.buddyBannerLink.encode('utf-8') if sys.version_info[0] == 2 else self.buddyBannerLink) + oprot.writeFieldEnd() + if self.buddyBannerImageUrl is not None: + oprot.writeFieldBegin('buddyBannerImageUrl', TType.STRING, 3) + oprot.writeString(self.buddyBannerImageUrl.encode('utf-8') if sys.version_info[0] == 2 else self.buddyBannerImageUrl) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 BuddyDetail(object): + """ + Attributes: + - mid + - memberCount + - onAir + - businessAccount + - addable + - acceptableContentTypes + - capableMyhome + """ + + + def __init__(self, mid=None, memberCount=None, onAir=None, businessAccount=None, addable=None, acceptableContentTypes=None, capableMyhome=None,): + self.mid = mid + self.memberCount = memberCount + self.onAir = onAir + self.businessAccount = businessAccount + self.addable = addable + self.acceptableContentTypes = acceptableContentTypes + self.capableMyhome = capableMyhome + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.memberCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.BOOL: + self.onAir = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BOOL: + self.businessAccount = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.BOOL: + self.addable = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.SET: + self.acceptableContentTypes = set() + (_etype101, _size98) = iprot.readSetBegin() + for _i102 in range(_size98): + _elem103 = iprot.readI32() + self.acceptableContentTypes.add(_elem103) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.BOOL: + self.capableMyhome = 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('BuddyDetail') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.memberCount is not None: + oprot.writeFieldBegin('memberCount', TType.I64, 2) + oprot.writeI64(self.memberCount) + oprot.writeFieldEnd() + if self.onAir is not None: + oprot.writeFieldBegin('onAir', TType.BOOL, 3) + oprot.writeBool(self.onAir) + oprot.writeFieldEnd() + if self.businessAccount is not None: + oprot.writeFieldBegin('businessAccount', TType.BOOL, 4) + oprot.writeBool(self.businessAccount) + oprot.writeFieldEnd() + if self.addable is not None: + oprot.writeFieldBegin('addable', TType.BOOL, 5) + oprot.writeBool(self.addable) + oprot.writeFieldEnd() + if self.acceptableContentTypes is not None: + oprot.writeFieldBegin('acceptableContentTypes', TType.SET, 6) + oprot.writeSetBegin(TType.I32, len(self.acceptableContentTypes)) + for iter104 in self.acceptableContentTypes: + oprot.writeI32(iter104) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.capableMyhome is not None: + oprot.writeFieldBegin('capableMyhome', TType.BOOL, 7) + oprot.writeBool(self.capableMyhome) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 Contact(object): + """ + Attributes: + - mid + - createdTime + - type + - status + - relation + - displayName + - phoneticName + - pictureStatus + - thumbnailUrl + - statusMessage + - displayNameOverridden + - favoriteTime + - capableVoiceCall + - capableVideoCall + - capableMyhome + - capableBuddy + - attributes + - settings + - picturePath + - recommendParams + - friendRequestStatus + - musicProfile + - videoProfile + """ + + + def __init__(self, mid=None, createdTime=None, type=None, status=None, relation=None, displayName=None, phoneticName=None, pictureStatus=None, thumbnailUrl=None, statusMessage=None, displayNameOverridden=None, favoriteTime=None, capableVoiceCall=None, capableVideoCall=None, capableMyhome=None, capableBuddy=None, attributes=None, settings=None, picturePath=None, recommendParams=None, friendRequestStatus=None, musicProfile=None, videoProfile=None,): + self.mid = mid + self.createdTime = createdTime + self.type = type + self.status = status + self.relation = relation + self.displayName = displayName + self.phoneticName = phoneticName + self.pictureStatus = pictureStatus + self.thumbnailUrl = thumbnailUrl + self.statusMessage = statusMessage + self.displayNameOverridden = displayNameOverridden + self.favoriteTime = favoriteTime + self.capableVoiceCall = capableVoiceCall + self.capableVideoCall = capableVideoCall + self.capableMyhome = capableMyhome + self.capableBuddy = capableBuddy + self.attributes = attributes + self.settings = settings + self.picturePath = picturePath + self.recommendParams = recommendParams + self.friendRequestStatus = friendRequestStatus + self.musicProfile = musicProfile + self.videoProfile = videoProfile + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.createdTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I32: + self.status = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 21: + if ftype == TType.I32: + self.relation = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 22: + 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 == 23: + if ftype == TType.STRING: + self.phoneticName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 24: + if ftype == TType.STRING: + self.pictureStatus = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 25: + if ftype == TType.STRING: + self.thumbnailUrl = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 26: + 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 == 27: + if ftype == TType.STRING: + self.displayNameOverridden = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 28: + if ftype == TType.I64: + self.favoriteTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 31: + if ftype == TType.BOOL: + self.capableVoiceCall = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 32: + if ftype == TType.BOOL: + self.capableVideoCall = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 33: + if ftype == TType.BOOL: + self.capableMyhome = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 34: + if ftype == TType.BOOL: + self.capableBuddy = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 35: + if ftype == TType.I32: + self.attributes = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 36: + if ftype == TType.I64: + self.settings = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 37: + if ftype == TType.STRING: + self.picturePath = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 38: + if ftype == TType.STRING: + self.recommendParams = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 39: + if ftype == TType.I32: + self.friendRequestStatus = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 40: + if ftype == TType.STRING: + self.musicProfile = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 42: + if ftype == TType.STRING: + self.videoProfile = 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('Contact') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.createdTime is not None: + oprot.writeFieldBegin('createdTime', TType.I64, 2) + oprot.writeI64(self.createdTime) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 10) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.status is not None: + oprot.writeFieldBegin('status', TType.I32, 11) + oprot.writeI32(self.status) + oprot.writeFieldEnd() + if self.relation is not None: + oprot.writeFieldBegin('relation', TType.I32, 21) + oprot.writeI32(self.relation) + oprot.writeFieldEnd() + if self.displayName is not None: + oprot.writeFieldBegin('displayName', TType.STRING, 22) + oprot.writeString(self.displayName.encode('utf-8') if sys.version_info[0] == 2 else self.displayName) + oprot.writeFieldEnd() + if self.phoneticName is not None: + oprot.writeFieldBegin('phoneticName', TType.STRING, 23) + oprot.writeString(self.phoneticName.encode('utf-8') if sys.version_info[0] == 2 else self.phoneticName) + oprot.writeFieldEnd() + if self.pictureStatus is not None: + oprot.writeFieldBegin('pictureStatus', TType.STRING, 24) + oprot.writeString(self.pictureStatus.encode('utf-8') if sys.version_info[0] == 2 else self.pictureStatus) + oprot.writeFieldEnd() + if self.thumbnailUrl is not None: + oprot.writeFieldBegin('thumbnailUrl', TType.STRING, 25) + oprot.writeString(self.thumbnailUrl.encode('utf-8') if sys.version_info[0] == 2 else self.thumbnailUrl) + oprot.writeFieldEnd() + if self.statusMessage is not None: + oprot.writeFieldBegin('statusMessage', TType.STRING, 26) + oprot.writeString(self.statusMessage.encode('utf-8') if sys.version_info[0] == 2 else self.statusMessage) + oprot.writeFieldEnd() + if self.displayNameOverridden is not None: + oprot.writeFieldBegin('displayNameOverridden', TType.STRING, 27) + oprot.writeString(self.displayNameOverridden.encode('utf-8') if sys.version_info[0] == 2 else self.displayNameOverridden) + oprot.writeFieldEnd() + if self.favoriteTime is not None: + oprot.writeFieldBegin('favoriteTime', TType.I64, 28) + oprot.writeI64(self.favoriteTime) + oprot.writeFieldEnd() + if self.capableVoiceCall is not None: + oprot.writeFieldBegin('capableVoiceCall', TType.BOOL, 31) + oprot.writeBool(self.capableVoiceCall) + oprot.writeFieldEnd() + if self.capableVideoCall is not None: + oprot.writeFieldBegin('capableVideoCall', TType.BOOL, 32) + oprot.writeBool(self.capableVideoCall) + oprot.writeFieldEnd() + if self.capableMyhome is not None: + oprot.writeFieldBegin('capableMyhome', TType.BOOL, 33) + oprot.writeBool(self.capableMyhome) + oprot.writeFieldEnd() + if self.capableBuddy is not None: + oprot.writeFieldBegin('capableBuddy', TType.BOOL, 34) + oprot.writeBool(self.capableBuddy) + oprot.writeFieldEnd() + if self.attributes is not None: + oprot.writeFieldBegin('attributes', TType.I32, 35) + oprot.writeI32(self.attributes) + oprot.writeFieldEnd() + if self.settings is not None: + oprot.writeFieldBegin('settings', TType.I64, 36) + oprot.writeI64(self.settings) + oprot.writeFieldEnd() + if self.picturePath is not None: + oprot.writeFieldBegin('picturePath', TType.STRING, 37) + oprot.writeString(self.picturePath.encode('utf-8') if sys.version_info[0] == 2 else self.picturePath) + oprot.writeFieldEnd() + if self.recommendParams is not None: + oprot.writeFieldBegin('recommendParams', TType.STRING, 38) + oprot.writeString(self.recommendParams.encode('utf-8') if sys.version_info[0] == 2 else self.recommendParams) + oprot.writeFieldEnd() + if self.friendRequestStatus is not None: + oprot.writeFieldBegin('friendRequestStatus', TType.I32, 39) + oprot.writeI32(self.friendRequestStatus) + oprot.writeFieldEnd() + if self.musicProfile is not None: + oprot.writeFieldBegin('musicProfile', TType.STRING, 40) + oprot.writeString(self.musicProfile.encode('utf-8') if sys.version_info[0] == 2 else self.musicProfile) + oprot.writeFieldEnd() + if self.videoProfile is not None: + oprot.writeFieldBegin('videoProfile', TType.STRING, 42) + oprot.writeString(self.videoProfile.encode('utf-8') if sys.version_info[0] == 2 else self.videoProfile) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 BuddyList(object): + """ + Attributes: + - classification + - displayName + - totalBuddyCount + - popularContacts + """ + + + def __init__(self, classification=None, displayName=None, totalBuddyCount=None, popularContacts=None,): + self.classification = classification + self.displayName = displayName + self.totalBuddyCount = totalBuddyCount + self.popularContacts = popularContacts + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.classification = 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.displayName = 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.totalBuddyCount = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.popularContacts = [] + (_etype108, _size105) = iprot.readListBegin() + for _i109 in range(_size105): + _elem110 = Contact() + _elem110.read(iprot) + self.popularContacts.append(_elem110) + 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('BuddyList') + if self.classification is not None: + oprot.writeFieldBegin('classification', TType.STRING, 1) + oprot.writeString(self.classification.encode('utf-8') if sys.version_info[0] == 2 else self.classification) + oprot.writeFieldEnd() + if self.displayName is not None: + oprot.writeFieldBegin('displayName', TType.STRING, 2) + oprot.writeString(self.displayName.encode('utf-8') if sys.version_info[0] == 2 else self.displayName) + oprot.writeFieldEnd() + if self.totalBuddyCount is not None: + oprot.writeFieldBegin('totalBuddyCount', TType.I32, 3) + oprot.writeI32(self.totalBuddyCount) + oprot.writeFieldEnd() + if self.popularContacts is not None: + oprot.writeFieldBegin('popularContacts', TType.LIST, 4) + oprot.writeListBegin(TType.STRUCT, len(self.popularContacts)) + for iter111 in self.popularContacts: + iter111.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) + + +class RegisterWithPhoneNumberResult(object): + """ + Attributes: + - authToken + - recommendEmailRegistration + - certificate + """ + + + def __init__(self, authToken=None, recommendEmailRegistration=None, certificate=None,): + self.authToken = authToken + self.recommendEmailRegistration = recommendEmailRegistration + self.certificate = certificate + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.authToken = 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.recommendEmailRegistration = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.certificate = 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('RegisterWithPhoneNumberResult') + if self.authToken is not None: + oprot.writeFieldBegin('authToken', TType.STRING, 1) + oprot.writeString(self.authToken.encode('utf-8') if sys.version_info[0] == 2 else self.authToken) + oprot.writeFieldEnd() + if self.recommendEmailRegistration is not None: + oprot.writeFieldBegin('recommendEmailRegistration', TType.BOOL, 2) + oprot.writeBool(self.recommendEmailRegistration) + oprot.writeFieldEnd() + if self.certificate is not None: + oprot.writeFieldBegin('certificate', TType.STRING, 3) + oprot.writeString(self.certificate.encode('utf-8') if sys.version_info[0] == 2 else self.certificate) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 BuddyMessageRequest(object): + """ + Attributes: + - contentType + - text + - location + - content + - contentMetadata + """ + + + def __init__(self, contentType=None, text=None, location=None, content=None, contentMetadata=None,): + self.contentType = contentType + self.text = text + self.location = location + self.content = content + self.contentMetadata = contentMetadata + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.contentType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.text = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.location = Location() + self.location.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.content = iprot.readBinary() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.MAP: + self.contentMetadata = {} + (_ktype113, _vtype114, _size112) = iprot.readMapBegin() + for _i116 in range(_size112): + _key117 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val118 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.contentMetadata[_key117] = _val118 + 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('BuddyMessageRequest') + if self.contentType is not None: + oprot.writeFieldBegin('contentType', TType.I32, 1) + oprot.writeI32(self.contentType) + oprot.writeFieldEnd() + if self.text is not None: + oprot.writeFieldBegin('text', TType.STRING, 2) + oprot.writeString(self.text.encode('utf-8') if sys.version_info[0] == 2 else self.text) + oprot.writeFieldEnd() + if self.location is not None: + oprot.writeFieldBegin('location', TType.STRUCT, 3) + self.location.write(oprot) + oprot.writeFieldEnd() + if self.content is not None: + oprot.writeFieldBegin('content', TType.STRING, 4) + oprot.writeBinary(self.content) + oprot.writeFieldEnd() + if self.contentMetadata is not None: + oprot.writeFieldBegin('contentMetadata', TType.MAP, 5) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.contentMetadata)) + for kiter119, viter120 in self.contentMetadata.items(): + oprot.writeString(kiter119.encode('utf-8') if sys.version_info[0] == 2 else kiter119) + oprot.writeString(viter120.encode('utf-8') if sys.version_info[0] == 2 else viter120) + 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) + + +class BuddyOnAirUrls(object): + """ + Attributes: + - hls + - smoothStreaming + """ + + + def __init__(self, hls=None, smoothStreaming=None,): + self.hls = hls + self.smoothStreaming = smoothStreaming + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.MAP: + self.hls = {} + (_ktype122, _vtype123, _size121) = iprot.readMapBegin() + for _i125 in range(_size121): + _key126 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val127 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.hls[_key126] = _val127 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.MAP: + self.smoothStreaming = {} + (_ktype129, _vtype130, _size128) = iprot.readMapBegin() + for _i132 in range(_size128): + _key133 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val134 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.smoothStreaming[_key133] = _val134 + 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('BuddyOnAirUrls') + if self.hls is not None: + oprot.writeFieldBegin('hls', TType.MAP, 1) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.hls)) + for kiter135, viter136 in self.hls.items(): + oprot.writeString(kiter135.encode('utf-8') if sys.version_info[0] == 2 else kiter135) + oprot.writeString(viter136.encode('utf-8') if sys.version_info[0] == 2 else viter136) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.smoothStreaming is not None: + oprot.writeFieldBegin('smoothStreaming', TType.MAP, 2) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.smoothStreaming)) + for kiter137, viter138 in self.smoothStreaming.items(): + oprot.writeString(kiter137.encode('utf-8') if sys.version_info[0] == 2 else kiter137) + oprot.writeString(viter138.encode('utf-8') if sys.version_info[0] == 2 else viter138) + 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) + + +class BuddyOnAir(object): + """ + Attributes: + - mid + - freshnessLifetime + - onAirId + - onAir + - text + - viewerCount + - targetCount + - onAirType + - onAirUrls + """ + + + def __init__(self, mid=None, freshnessLifetime=None, onAirId=None, onAir=None, text=None, viewerCount=None, targetCount=None, onAirType=None, onAirUrls=None,): + self.mid = mid + self.freshnessLifetime = freshnessLifetime + self.onAirId = onAirId + self.onAir = onAir + self.text = text + self.viewerCount = viewerCount + self.targetCount = targetCount + self.onAirType = onAirType + self.onAirUrls = onAirUrls + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.freshnessLifetime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.onAirId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.BOOL: + self.onAir = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.text = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.I64: + self.viewerCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.I64: + self.targetCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 31: + if ftype == TType.I32: + self.onAirType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 32: + if ftype == TType.STRUCT: + self.onAirUrls = BuddyOnAirUrls() + self.onAirUrls.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('BuddyOnAir') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.freshnessLifetime is not None: + oprot.writeFieldBegin('freshnessLifetime', TType.I64, 3) + oprot.writeI64(self.freshnessLifetime) + oprot.writeFieldEnd() + if self.onAirId is not None: + oprot.writeFieldBegin('onAirId', TType.STRING, 4) + oprot.writeString(self.onAirId.encode('utf-8') if sys.version_info[0] == 2 else self.onAirId) + oprot.writeFieldEnd() + if self.onAir is not None: + oprot.writeFieldBegin('onAir', TType.BOOL, 5) + oprot.writeBool(self.onAir) + oprot.writeFieldEnd() + if self.text is not None: + oprot.writeFieldBegin('text', TType.STRING, 11) + oprot.writeString(self.text.encode('utf-8') if sys.version_info[0] == 2 else self.text) + oprot.writeFieldEnd() + if self.viewerCount is not None: + oprot.writeFieldBegin('viewerCount', TType.I64, 12) + oprot.writeI64(self.viewerCount) + oprot.writeFieldEnd() + if self.targetCount is not None: + oprot.writeFieldBegin('targetCount', TType.I64, 13) + oprot.writeI64(self.targetCount) + oprot.writeFieldEnd() + if self.onAirType is not None: + oprot.writeFieldBegin('onAirType', TType.I32, 31) + oprot.writeI32(self.onAirType) + oprot.writeFieldEnd() + if self.onAirUrls is not None: + oprot.writeFieldBegin('onAirUrls', TType.STRUCT, 32) + self.onAirUrls.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) + + +class BuddyProfile(object): + """ + Attributes: + - buddyId + - mid + - searchId + - displayName + - statusMessage + - contactCount + """ + + + def __init__(self, buddyId=None, mid=None, searchId=None, displayName=None, statusMessage=None, contactCount=None,): + self.buddyId = buddyId + self.mid = mid + self.searchId = searchId + self.displayName = displayName + self.statusMessage = statusMessage + self.contactCount = contactCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.buddyId = 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) + 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 == 11: + if ftype == TType.I64: + self.contactCount = 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('BuddyProfile') + if self.buddyId is not None: + oprot.writeFieldBegin('buddyId', TType.STRING, 1) + oprot.writeString(self.buddyId.encode('utf-8') if sys.version_info[0] == 2 else self.buddyId) + 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() + 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.contactCount is not None: + oprot.writeFieldBegin('contactCount', TType.I64, 11) + oprot.writeI64(self.contactCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 CommitMessageResult(object): + """ + Attributes: + - message + - code + - reason + - successCount + - failCount + - unregisterCount + - blockCount + """ + + + def __init__(self, message=None, code=None, reason=None, successCount=None, failCount=None, unregisterCount=None, blockCount=None,): + self.message = message + self.code = code + self.reason = reason + self.successCount = successCount + self.failCount = failCount + self.unregisterCount = unregisterCount + self.blockCount = blockCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.message = Message() + self.message.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.code = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.successCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.failCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I64: + self.unregisterCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I64: + self.blockCount = 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('CommitMessageResult') + if self.message is not None: + oprot.writeFieldBegin('message', TType.STRUCT, 1) + self.message.write(oprot) + oprot.writeFieldEnd() + if self.code is not None: + oprot.writeFieldBegin('code', TType.I32, 2) + oprot.writeI32(self.code) + oprot.writeFieldEnd() + if self.reason is not None: + oprot.writeFieldBegin('reason', TType.STRING, 3) + oprot.writeString(self.reason.encode('utf-8') if sys.version_info[0] == 2 else self.reason) + oprot.writeFieldEnd() + if self.successCount is not None: + oprot.writeFieldBegin('successCount', TType.I64, 4) + oprot.writeI64(self.successCount) + oprot.writeFieldEnd() + if self.failCount is not None: + oprot.writeFieldBegin('failCount', TType.I64, 5) + oprot.writeI64(self.failCount) + oprot.writeFieldEnd() + if self.unregisterCount is not None: + oprot.writeFieldBegin('unregisterCount', TType.I64, 6) + oprot.writeI64(self.unregisterCount) + oprot.writeFieldEnd() + if self.blockCount is not None: + oprot.writeFieldBegin('blockCount', TType.I64, 7) + oprot.writeI64(self.blockCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 BuddySearchResult(object): + """ + Attributes: + - mid + - displayName + - pictureStatus + - picturePath + - statusMessage + - businessAccount + """ + + + def __init__(self, mid=None, displayName=None, pictureStatus=None, picturePath=None, statusMessage=None, businessAccount=None,): + self.mid = mid + self.displayName = displayName + self.pictureStatus = pictureStatus + self.picturePath = picturePath + self.statusMessage = statusMessage + self.businessAccount = businessAccount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.displayName = 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.pictureStatus = 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.picturePath = 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.BOOL: + self.businessAccount = 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('BuddySearchResult') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.displayName is not None: + oprot.writeFieldBegin('displayName', TType.STRING, 2) + oprot.writeString(self.displayName.encode('utf-8') if sys.version_info[0] == 2 else self.displayName) + oprot.writeFieldEnd() + if self.pictureStatus is not None: + oprot.writeFieldBegin('pictureStatus', TType.STRING, 3) + oprot.writeString(self.pictureStatus.encode('utf-8') if sys.version_info[0] == 2 else self.pictureStatus) + oprot.writeFieldEnd() + if self.picturePath is not None: + oprot.writeFieldBegin('picturePath', TType.STRING, 4) + oprot.writeString(self.picturePath.encode('utf-8') if sys.version_info[0] == 2 else self.picturePath) + 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.businessAccount is not None: + oprot.writeFieldBegin('businessAccount', TType.BOOL, 6) + oprot.writeBool(self.businessAccount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SyncParamMid(object): + """ + Attributes: + - mid + - diff + - revision + """ + + + def __init__(self, mid=None, diff=None, revision=None,): + self.mid = mid + self.diff = diff + self.revision = revision + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.diff = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.revision = 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('SyncParamMid') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.diff is not None: + oprot.writeFieldBegin('diff', TType.I32, 2) + oprot.writeI32(self.diff) + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 3) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SIMInfo(object): + """ + Attributes: + - phoneNumber + - countryCode + """ + + + def __init__(self, phoneNumber=None, countryCode=None,): + self.phoneNumber = phoneNumber + self.countryCode = countryCode + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.phoneNumber = 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.countryCode = 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('SIMInfo') + if self.phoneNumber is not None: + oprot.writeFieldBegin('phoneNumber', TType.STRING, 1) + oprot.writeString(self.phoneNumber.encode('utf-8') if sys.version_info[0] == 2 else self.phoneNumber) + oprot.writeFieldEnd() + if self.countryCode is not None: + oprot.writeFieldBegin('countryCode', TType.STRING, 2) + oprot.writeString(self.countryCode.encode('utf-8') if sys.version_info[0] == 2 else self.countryCode) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SyncParamContact(object): + """ + Attributes: + - syncParamMid + - contactStatus + """ + + + def __init__(self, syncParamMid=None, contactStatus=None,): + self.syncParamMid = syncParamMid + self.contactStatus = contactStatus + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.syncParamMid = SyncParamMid() + self.syncParamMid.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.contactStatus = 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('SyncParamContact') + if self.syncParamMid is not None: + oprot.writeFieldBegin('syncParamMid', TType.STRUCT, 1) + self.syncParamMid.write(oprot) + oprot.writeFieldEnd() + if self.contactStatus is not None: + oprot.writeFieldBegin('contactStatus', TType.I32, 2) + oprot.writeI32(self.contactStatus) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ChannelDomains(object): + """ + Attributes: + - channelDomains + - revision + """ + + + def __init__(self, channelDomains=None, revision=None,): + self.channelDomains = channelDomains + self.revision = revision + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.channelDomains = [] + (_etype142, _size139) = iprot.readListBegin() + for _i143 in range(_size139): + _elem144 = ChannelDomain() + _elem144.read(iprot) + self.channelDomains.append(_elem144) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.revision = 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('ChannelDomains') + if self.channelDomains is not None: + oprot.writeFieldBegin('channelDomains', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.channelDomains)) + for iter145 in self.channelDomains: + iter145.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 2) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ProductCategory(object): + """ + Attributes: + - productCategoryId + - title + - productCount + - newFlag + """ + + + def __init__(self, productCategoryId=None, title=None, productCount=None, newFlag=None,): + self.productCategoryId = productCategoryId + self.title = title + self.productCount = productCount + self.newFlag = newFlag + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.productCategoryId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.title = 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.productCount = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BOOL: + self.newFlag = 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('ProductCategory') + if self.productCategoryId is not None: + oprot.writeFieldBegin('productCategoryId', TType.I64, 1) + oprot.writeI64(self.productCategoryId) + oprot.writeFieldEnd() + if self.title is not None: + oprot.writeFieldBegin('title', TType.STRING, 2) + oprot.writeString(self.title.encode('utf-8') if sys.version_info[0] == 2 else self.title) + oprot.writeFieldEnd() + if self.productCount is not None: + oprot.writeFieldBegin('productCount', TType.I32, 3) + oprot.writeI32(self.productCount) + oprot.writeFieldEnd() + if self.newFlag is not None: + oprot.writeFieldBegin('newFlag', TType.BOOL, 4) + oprot.writeBool(self.newFlag) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ChannelInfos(object): + """ + Attributes: + - channelInfos + - revision + """ + + + def __init__(self, channelInfos=None, revision=None,): + self.channelInfos = channelInfos + self.revision = revision + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.channelInfos = [] + (_etype149, _size146) = iprot.readListBegin() + for _i150 in range(_size146): + _elem151 = ChannelInfo() + _elem151.read(iprot) + self.channelInfos.append(_elem151) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.revision = 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('ChannelInfos') + if self.channelInfos is not None: + oprot.writeFieldBegin('channelInfos', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.channelInfos)) + for iter152 in self.channelInfos: + iter152.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 2) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ChannelNotificationSetting(object): + """ + Attributes: + - channelId + - name + - notificationReceivable + - messageReceivable + - showDefault + """ + + + def __init__(self, channelId=None, name=None, notificationReceivable=None, messageReceivable=None, showDefault=None,): + self.channelId = channelId + self.name = name + self.notificationReceivable = notificationReceivable + self.messageReceivable = messageReceivable + self.showDefault = showDefault + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.BOOL: + self.notificationReceivable = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BOOL: + self.messageReceivable = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.BOOL: + self.showDefault = 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('ChannelNotificationSetting') + 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.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 2) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + if self.notificationReceivable is not None: + oprot.writeFieldBegin('notificationReceivable', TType.BOOL, 3) + oprot.writeBool(self.notificationReceivable) + oprot.writeFieldEnd() + if self.messageReceivable is not None: + oprot.writeFieldBegin('messageReceivable', TType.BOOL, 4) + oprot.writeBool(self.messageReceivable) + oprot.writeFieldEnd() + if self.showDefault is not None: + oprot.writeFieldBegin('showDefault', TType.BOOL, 5) + oprot.writeBool(self.showDefault) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ChannelSyncDatas(object): + """ + Attributes: + - channelInfos + - channelDomains + - revision + - expires + """ + + + def __init__(self, channelInfos=None, channelDomains=None, revision=None, expires=None,): + self.channelInfos = channelInfos + self.channelDomains = channelDomains + self.revision = revision + self.expires = expires + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.channelInfos = [] + (_etype156, _size153) = iprot.readListBegin() + for _i157 in range(_size153): + _elem158 = ChannelInfo() + _elem158.read(iprot) + self.channelInfos.append(_elem158) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.channelDomains = [] + (_etype162, _size159) = iprot.readListBegin() + for _i163 in range(_size159): + _elem164 = ChannelDomain() + _elem164.read(iprot) + self.channelDomains.append(_elem164) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.revision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.expires = 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('ChannelSyncDatas') + if self.channelInfos is not None: + oprot.writeFieldBegin('channelInfos', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.channelInfos)) + for iter165 in self.channelInfos: + iter165.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.channelDomains is not None: + oprot.writeFieldBegin('channelDomains', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.channelDomains)) + for iter166 in self.channelDomains: + iter166.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 3) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + if self.expires is not None: + oprot.writeFieldBegin('expires', TType.I64, 4) + oprot.writeI64(self.expires) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 NotiCenterEventData(object): + """ + Attributes: + - id + - to + - from_ + - toChannel + - fromChannel + - eventType + - createdTime + - operationRevision + - content + - push + """ + + + def __init__(self, id=None, to=None, from_=None, toChannel=None, fromChannel=None, eventType=None, createdTime=None, operationRevision=None, content=None, push=None,): + self.id = id + self.to = to + self.from_ = from_ + self.toChannel = toChannel + self.fromChannel = fromChannel + self.eventType = eventType + self.createdTime = createdTime + self.operationRevision = operationRevision + self.content = content + self.push = push + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.id = 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.to = 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.from_ = 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.toChannel = 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.fromChannel = 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.eventType = 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.createdTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I64: + self.operationRevision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.MAP: + self.content = {} + (_ktype168, _vtype169, _size167) = iprot.readMapBegin() + for _i171 in range(_size167): + _key172 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val173 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.content[_key172] = _val173 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.MAP: + self.push = {} + (_ktype175, _vtype176, _size174) = iprot.readMapBegin() + for _i178 in range(_size174): + _key179 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val180 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.push[_key179] = _val180 + 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('NotiCenterEventData') + if self.id is not None: + oprot.writeFieldBegin('id', TType.STRING, 1) + oprot.writeString(self.id.encode('utf-8') if sys.version_info[0] == 2 else self.id) + oprot.writeFieldEnd() + if self.to is not None: + oprot.writeFieldBegin('to', TType.STRING, 2) + oprot.writeString(self.to.encode('utf-8') if sys.version_info[0] == 2 else self.to) + oprot.writeFieldEnd() + if self.from_ is not None: + oprot.writeFieldBegin('from_', TType.STRING, 3) + oprot.writeString(self.from_.encode('utf-8') if sys.version_info[0] == 2 else self.from_) + oprot.writeFieldEnd() + if self.toChannel is not None: + oprot.writeFieldBegin('toChannel', TType.STRING, 4) + oprot.writeString(self.toChannel.encode('utf-8') if sys.version_info[0] == 2 else self.toChannel) + oprot.writeFieldEnd() + if self.fromChannel is not None: + oprot.writeFieldBegin('fromChannel', TType.STRING, 5) + oprot.writeString(self.fromChannel.encode('utf-8') if sys.version_info[0] == 2 else self.fromChannel) + oprot.writeFieldEnd() + if self.eventType is not None: + oprot.writeFieldBegin('eventType', TType.STRING, 6) + oprot.writeString(self.eventType.encode('utf-8') if sys.version_info[0] == 2 else self.eventType) + oprot.writeFieldEnd() + if self.createdTime is not None: + oprot.writeFieldBegin('createdTime', TType.I64, 7) + oprot.writeI64(self.createdTime) + oprot.writeFieldEnd() + if self.operationRevision is not None: + oprot.writeFieldBegin('operationRevision', TType.I64, 8) + oprot.writeI64(self.operationRevision) + oprot.writeFieldEnd() + if self.content is not None: + oprot.writeFieldBegin('content', TType.MAP, 9) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.content)) + for kiter181, viter182 in self.content.items(): + oprot.writeString(kiter181.encode('utf-8') if sys.version_info[0] == 2 else kiter181) + oprot.writeString(viter182.encode('utf-8') if sys.version_info[0] == 2 else viter182) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.push is not None: + oprot.writeFieldBegin('push', TType.MAP, 10) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.push)) + for kiter183, viter184 in self.push.items(): + oprot.writeString(kiter183.encode('utf-8') if sys.version_info[0] == 2 else kiter183) + oprot.writeString(viter184.encode('utf-8') if sys.version_info[0] == 2 else viter184) + 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) + + +class ChannelToken(object): + """ + Attributes: + - token + - obsToken + - expiration + - refreshToken + - channelAccessToken + """ + + + def __init__(self, token=None, obsToken=None, expiration=None, refreshToken=None, channelAccessToken=None,): + self.token = token + self.obsToken = obsToken + self.expiration = expiration + self.refreshToken = refreshToken + self.channelAccessToken = channelAccessToken + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.token = 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.obsToken = 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.expiration = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.refreshToken = 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.channelAccessToken = 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('ChannelToken') + if self.token is not None: + oprot.writeFieldBegin('token', TType.STRING, 1) + oprot.writeString(self.token.encode('utf-8') if sys.version_info[0] == 2 else self.token) + oprot.writeFieldEnd() + if self.obsToken is not None: + oprot.writeFieldBegin('obsToken', TType.STRING, 2) + oprot.writeString(self.obsToken.encode('utf-8') if sys.version_info[0] == 2 else self.obsToken) + oprot.writeFieldEnd() + if self.expiration is not None: + oprot.writeFieldBegin('expiration', TType.I64, 3) + oprot.writeI64(self.expiration) + oprot.writeFieldEnd() + if self.refreshToken is not None: + oprot.writeFieldBegin('refreshToken', TType.STRING, 4) + oprot.writeString(self.refreshToken.encode('utf-8') if sys.version_info[0] == 2 else self.refreshToken) + oprot.writeFieldEnd() + if self.channelAccessToken is not None: + oprot.writeFieldBegin('channelAccessToken', TType.STRING, 5) + oprot.writeString(self.channelAccessToken.encode('utf-8') if sys.version_info[0] == 2 else self.channelAccessToken) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ChannelSettings(object): + """ + Attributes: + - unapprovedMessageReceivable + """ + + + def __init__(self, unapprovedMessageReceivable=None,): + self.unapprovedMessageReceivable = unapprovedMessageReceivable + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.BOOL: + self.unapprovedMessageReceivable = 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('ChannelSettings') + if self.unapprovedMessageReceivable is not None: + oprot.writeFieldBegin('unapprovedMessageReceivable', TType.BOOL, 1) + oprot.writeBool(self.unapprovedMessageReceivable) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ChannelIdWithLastUpdated(object): + """ + Attributes: + - channelId + - lastUpdated + """ + + + def __init__(self, channelId=None, lastUpdated=None,): + self.channelId = channelId + self.lastUpdated = lastUpdated + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.lastUpdated = 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('ChannelIdWithLastUpdated') + 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.lastUpdated is not None: + oprot.writeFieldBegin('lastUpdated', TType.I64, 2) + oprot.writeI64(self.lastUpdated) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 Coin(object): + """ + Attributes: + - freeCoinBalance + - payedCoinBalance + - totalCoinBalance + - rewardCoinBalance + """ + + + def __init__(self, freeCoinBalance=None, payedCoinBalance=None, totalCoinBalance=None, rewardCoinBalance=None,): + self.freeCoinBalance = freeCoinBalance + self.payedCoinBalance = payedCoinBalance + self.totalCoinBalance = totalCoinBalance + self.rewardCoinBalance = rewardCoinBalance + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.freeCoinBalance = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.payedCoinBalance = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.totalCoinBalance = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.rewardCoinBalance = 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('Coin') + if self.freeCoinBalance is not None: + oprot.writeFieldBegin('freeCoinBalance', TType.I32, 1) + oprot.writeI32(self.freeCoinBalance) + oprot.writeFieldEnd() + if self.payedCoinBalance is not None: + oprot.writeFieldBegin('payedCoinBalance', TType.I32, 2) + oprot.writeI32(self.payedCoinBalance) + oprot.writeFieldEnd() + if self.totalCoinBalance is not None: + oprot.writeFieldBegin('totalCoinBalance', TType.I32, 3) + oprot.writeI32(self.totalCoinBalance) + oprot.writeFieldEnd() + if self.rewardCoinBalance is not None: + oprot.writeFieldBegin('rewardCoinBalance', TType.I32, 4) + oprot.writeI32(self.rewardCoinBalance) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 CoinPayLoad(object): + """ + Attributes: + - payCoin + - freeCoin + - type + - rewardCoin + """ + + + def __init__(self, payCoin=None, freeCoin=None, type=None, rewardCoin=None,): + self.payCoin = payCoin + self.freeCoin = freeCoin + self.type = type + self.rewardCoin = rewardCoin + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.payCoin = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.freeCoin = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.rewardCoin = 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('CoinPayLoad') + if self.payCoin is not None: + oprot.writeFieldBegin('payCoin', TType.I32, 1) + oprot.writeI32(self.payCoin) + oprot.writeFieldEnd() + if self.freeCoin is not None: + oprot.writeFieldBegin('freeCoin', TType.I32, 2) + oprot.writeI32(self.freeCoin) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 3) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.rewardCoin is not None: + oprot.writeFieldBegin('rewardCoin', TType.I32, 4) + oprot.writeI32(self.rewardCoin) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 CoinHistory(object): + """ + Attributes: + - payDate + - coinBalance + - coin + - price + - title + - refund + - paySeq + - currency + - currencySign + - displayPrice + - payload + - channelId + """ + + + def __init__(self, payDate=None, coinBalance=None, coin=None, price=None, title=None, refund=None, paySeq=None, currency=None, currencySign=None, displayPrice=None, payload=None, channelId=None,): + self.payDate = payDate + self.coinBalance = coinBalance + self.coin = coin + self.price = price + self.title = title + self.refund = refund + self.paySeq = paySeq + self.currency = currency + self.currencySign = currencySign + self.displayPrice = displayPrice + self.payload = payload + 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.I64: + self.payDate = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.coinBalance = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.coin = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.price = 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.title = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.BOOL: + self.refund = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.paySeq = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.currency = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.STRING: + self.currencySign = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRING: + self.displayPrice = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRUCT: + self.payload = CoinPayLoad() + self.payload.read(iprot) + else: + iprot.skip(ftype) + elif fid == 12: + 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('CoinHistory') + if self.payDate is not None: + oprot.writeFieldBegin('payDate', TType.I64, 1) + oprot.writeI64(self.payDate) + oprot.writeFieldEnd() + if self.coinBalance is not None: + oprot.writeFieldBegin('coinBalance', TType.I32, 2) + oprot.writeI32(self.coinBalance) + oprot.writeFieldEnd() + if self.coin is not None: + oprot.writeFieldBegin('coin', TType.I32, 3) + oprot.writeI32(self.coin) + oprot.writeFieldEnd() + if self.price is not None: + oprot.writeFieldBegin('price', TType.STRING, 4) + oprot.writeString(self.price.encode('utf-8') if sys.version_info[0] == 2 else self.price) + oprot.writeFieldEnd() + if self.title is not None: + oprot.writeFieldBegin('title', TType.STRING, 5) + oprot.writeString(self.title.encode('utf-8') if sys.version_info[0] == 2 else self.title) + oprot.writeFieldEnd() + if self.refund is not None: + oprot.writeFieldBegin('refund', TType.BOOL, 6) + oprot.writeBool(self.refund) + oprot.writeFieldEnd() + if self.paySeq is not None: + oprot.writeFieldBegin('paySeq', TType.STRING, 7) + oprot.writeString(self.paySeq.encode('utf-8') if sys.version_info[0] == 2 else self.paySeq) + oprot.writeFieldEnd() + if self.currency is not None: + oprot.writeFieldBegin('currency', TType.STRING, 8) + oprot.writeString(self.currency.encode('utf-8') if sys.version_info[0] == 2 else self.currency) + oprot.writeFieldEnd() + if self.currencySign is not None: + oprot.writeFieldBegin('currencySign', TType.STRING, 9) + oprot.writeString(self.currencySign.encode('utf-8') if sys.version_info[0] == 2 else self.currencySign) + oprot.writeFieldEnd() + if self.displayPrice is not None: + oprot.writeFieldBegin('displayPrice', TType.STRING, 10) + oprot.writeString(self.displayPrice.encode('utf-8') if sys.version_info[0] == 2 else self.displayPrice) + oprot.writeFieldEnd() + if self.payload is not None: + oprot.writeFieldBegin('payload', TType.STRUCT, 11) + self.payload.write(oprot) + oprot.writeFieldEnd() + if self.channelId is not None: + oprot.writeFieldBegin('channelId', TType.STRING, 12) + 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) + + +class CoinHistoryCondition(object): + """ + Attributes: + - start + - size + - language + - eddt + - appStoreCode + """ + + + def __init__(self, start=None, size=None, language=None, eddt=None, appStoreCode=None,): + self.start = start + self.size = size + self.language = language + self.eddt = eddt + 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 == 1: + if ftype == TType.I64: + self.start = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.size = iprot.readI32() + 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.eddt = 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.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('CoinHistoryCondition') + if self.start is not None: + oprot.writeFieldBegin('start', TType.I64, 1) + oprot.writeI64(self.start) + oprot.writeFieldEnd() + if self.size is not None: + oprot.writeFieldBegin('size', TType.I32, 2) + oprot.writeI32(self.size) + 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.eddt is not None: + oprot.writeFieldBegin('eddt', TType.STRING, 4) + oprot.writeString(self.eddt.encode('utf-8') if sys.version_info[0] == 2 else self.eddt) + oprot.writeFieldEnd() + if self.appStoreCode is not None: + oprot.writeFieldBegin('appStoreCode', TType.I32, 5) + 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) + + +class CoinHistoryResult(object): + """ + Attributes: + - historys + - balance + - hasNext + """ + + + def __init__(self, historys=None, balance=None, hasNext=None,): + self.historys = historys + self.balance = balance + self.hasNext = hasNext + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.historys = [] + (_etype188, _size185) = iprot.readListBegin() + for _i189 in range(_size185): + _elem190 = CoinHistory() + _elem190.read(iprot) + self.historys.append(_elem190) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.balance = Coin() + self.balance.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.BOOL: + self.hasNext = 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('CoinHistoryResult') + if self.historys is not None: + oprot.writeFieldBegin('historys', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.historys)) + for iter191 in self.historys: + iter191.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.balance is not None: + oprot.writeFieldBegin('balance', TType.STRUCT, 2) + self.balance.write(oprot) + oprot.writeFieldEnd() + if self.hasNext is not None: + oprot.writeFieldBegin('hasNext', TType.BOOL, 3) + oprot.writeBool(self.hasNext) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 CoinProductItem(object): + """ + Attributes: + - itemId + - coin + - freeCoin + - currency + - price + - displayPrice + - name + - desc + """ + + + def __init__(self, itemId=None, coin=None, freeCoin=None, currency=None, price=None, displayPrice=None, name=None, desc=None,): + self.itemId = itemId + self.coin = coin + self.freeCoin = freeCoin + self.currency = currency + self.price = price + self.displayPrice = displayPrice + self.name = name + self.desc = desc + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.itemId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.coin = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.freeCoin = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.currency = 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.price = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.displayPrice = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.STRING: + self.desc = 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('CoinProductItem') + if self.itemId is not None: + oprot.writeFieldBegin('itemId', TType.STRING, 1) + oprot.writeString(self.itemId.encode('utf-8') if sys.version_info[0] == 2 else self.itemId) + oprot.writeFieldEnd() + if self.coin is not None: + oprot.writeFieldBegin('coin', TType.I32, 2) + oprot.writeI32(self.coin) + oprot.writeFieldEnd() + if self.freeCoin is not None: + oprot.writeFieldBegin('freeCoin', TType.I32, 3) + oprot.writeI32(self.freeCoin) + oprot.writeFieldEnd() + if self.currency is not None: + oprot.writeFieldBegin('currency', TType.STRING, 5) + oprot.writeString(self.currency.encode('utf-8') if sys.version_info[0] == 2 else self.currency) + oprot.writeFieldEnd() + if self.price is not None: + oprot.writeFieldBegin('price', TType.STRING, 6) + oprot.writeString(self.price.encode('utf-8') if sys.version_info[0] == 2 else self.price) + oprot.writeFieldEnd() + if self.displayPrice is not None: + oprot.writeFieldBegin('displayPrice', TType.STRING, 7) + oprot.writeString(self.displayPrice.encode('utf-8') if sys.version_info[0] == 2 else self.displayPrice) + oprot.writeFieldEnd() + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 8) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + if self.desc is not None: + oprot.writeFieldBegin('desc', TType.STRING, 9) + oprot.writeString(self.desc.encode('utf-8') if sys.version_info[0] == 2 else self.desc) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 CoinPurchaseConfirm(object): + """ + Attributes: + - orderId + - appStoreCode + - receipt + - signature + - seller + - requestType + - ignoreReceipt + """ + + + def __init__(self, orderId=None, appStoreCode=None, receipt=None, signature=None, seller=None, requestType=None, ignoreReceipt=None,): + self.orderId = orderId + self.appStoreCode = appStoreCode + self.receipt = receipt + self.signature = signature + self.seller = seller + self.requestType = requestType + self.ignoreReceipt = ignoreReceipt + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.orderId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.appStoreCode = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.receipt = 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.signature = 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.seller = 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.requestType = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.BOOL: + self.ignoreReceipt = 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('CoinPurchaseConfirm') + if self.orderId is not None: + oprot.writeFieldBegin('orderId', TType.STRING, 1) + oprot.writeString(self.orderId.encode('utf-8') if sys.version_info[0] == 2 else self.orderId) + oprot.writeFieldEnd() + if self.appStoreCode is not None: + oprot.writeFieldBegin('appStoreCode', TType.I32, 2) + oprot.writeI32(self.appStoreCode) + oprot.writeFieldEnd() + if self.receipt is not None: + oprot.writeFieldBegin('receipt', TType.STRING, 3) + oprot.writeString(self.receipt.encode('utf-8') if sys.version_info[0] == 2 else self.receipt) + oprot.writeFieldEnd() + if self.signature is not None: + oprot.writeFieldBegin('signature', TType.STRING, 4) + oprot.writeString(self.signature.encode('utf-8') if sys.version_info[0] == 2 else self.signature) + oprot.writeFieldEnd() + if self.seller is not None: + oprot.writeFieldBegin('seller', TType.STRING, 5) + oprot.writeString(self.seller.encode('utf-8') if sys.version_info[0] == 2 else self.seller) + oprot.writeFieldEnd() + if self.requestType is not None: + oprot.writeFieldBegin('requestType', TType.STRING, 6) + oprot.writeString(self.requestType.encode('utf-8') if sys.version_info[0] == 2 else self.requestType) + oprot.writeFieldEnd() + if self.ignoreReceipt is not None: + oprot.writeFieldBegin('ignoreReceipt', TType.BOOL, 7) + oprot.writeBool(self.ignoreReceipt) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 CoinPurchaseReservation(object): + """ + Attributes: + - productId + - country + - currency + - price + - appStoreCode + - language + - pgCode + - redirectUrl + """ + + + def __init__(self, productId=None, country=None, currency=None, price=None, appStoreCode=None, language=None, pgCode=None, redirectUrl=None,): + self.productId = productId + self.country = country + self.currency = currency + self.price = price + self.appStoreCode = appStoreCode + self.language = language + self.pgCode = pgCode + self.redirectUrl = redirectUrl + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.productId = 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.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.currency = 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.price = 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.appStoreCode = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + 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 == 7: + if ftype == TType.I32: + self.pgCode = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.redirectUrl = 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('CoinPurchaseReservation') + if self.productId is not None: + oprot.writeFieldBegin('productId', TType.STRING, 1) + oprot.writeString(self.productId.encode('utf-8') if sys.version_info[0] == 2 else self.productId) + oprot.writeFieldEnd() + 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.currency is not None: + oprot.writeFieldBegin('currency', TType.STRING, 3) + oprot.writeString(self.currency.encode('utf-8') if sys.version_info[0] == 2 else self.currency) + oprot.writeFieldEnd() + if self.price is not None: + oprot.writeFieldBegin('price', TType.STRING, 4) + oprot.writeString(self.price.encode('utf-8') if sys.version_info[0] == 2 else self.price) + oprot.writeFieldEnd() + if self.appStoreCode is not None: + oprot.writeFieldBegin('appStoreCode', TType.I32, 5) + oprot.writeI32(self.appStoreCode) + oprot.writeFieldEnd() + if self.language is not None: + oprot.writeFieldBegin('language', TType.STRING, 6) + oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language) + oprot.writeFieldEnd() + if self.pgCode is not None: + oprot.writeFieldBegin('pgCode', TType.I32, 7) + oprot.writeI32(self.pgCode) + oprot.writeFieldEnd() + if self.redirectUrl is not None: + oprot.writeFieldBegin('redirectUrl', TType.STRING, 8) + oprot.writeString(self.redirectUrl.encode('utf-8') if sys.version_info[0] == 2 else self.redirectUrl) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 CoinUseReservationItem(object): + """ + Attributes: + - itemId + - itemName + - amount + """ + + + def __init__(self, itemId=None, itemName=None, amount=None,): + self.itemId = itemId + self.itemName = itemName + self.amount = amount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.itemId = 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.itemName = 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.amount = 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('CoinUseReservationItem') + if self.itemId is not None: + oprot.writeFieldBegin('itemId', TType.STRING, 1) + oprot.writeString(self.itemId.encode('utf-8') if sys.version_info[0] == 2 else self.itemId) + oprot.writeFieldEnd() + if self.itemName is not None: + oprot.writeFieldBegin('itemName', TType.STRING, 2) + oprot.writeString(self.itemName.encode('utf-8') if sys.version_info[0] == 2 else self.itemName) + oprot.writeFieldEnd() + if self.amount is not None: + oprot.writeFieldBegin('amount', TType.I32, 3) + oprot.writeI32(self.amount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 CoinUseReservation(object): + """ + Attributes: + - channelId + - shopOrderId + - appStoreCode + - items + - country + """ + + + def __init__(self, channelId=None, shopOrderId=None, appStoreCode=None, items=None, country=None,): + self.channelId = channelId + self.shopOrderId = shopOrderId + self.appStoreCode = appStoreCode + self.items = items + 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 == 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.shopOrderId = 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.appStoreCode = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.items = [] + (_etype195, _size192) = iprot.readListBegin() + for _i196 in range(_size192): + _elem197 = CoinUseReservationItem() + _elem197.read(iprot) + self.items.append(_elem197) + iprot.readListEnd() + 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('CoinUseReservation') + 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.shopOrderId is not None: + oprot.writeFieldBegin('shopOrderId', TType.STRING, 2) + oprot.writeString(self.shopOrderId.encode('utf-8') if sys.version_info[0] == 2 else self.shopOrderId) + oprot.writeFieldEnd() + if self.appStoreCode is not None: + oprot.writeFieldBegin('appStoreCode', TType.I32, 3) + oprot.writeI32(self.appStoreCode) + oprot.writeFieldEnd() + if self.items is not None: + oprot.writeFieldBegin('items', TType.LIST, 4) + oprot.writeListBegin(TType.STRUCT, len(self.items)) + for iter198 in self.items: + iter198.write(oprot) + oprot.writeListEnd() + 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) + + +class CompactContact(object): + """ + Attributes: + - mid + - createdTime + - modifiedTime + - status + - settings + - displayNameOverridden + """ + + + def __init__(self, mid=None, createdTime=None, modifiedTime=None, status=None, settings=None, displayNameOverridden=None,): + self.mid = mid + self.createdTime = createdTime + self.modifiedTime = modifiedTime + self.status = status + self.settings = settings + self.displayNameOverridden = displayNameOverridden + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.createdTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.modifiedTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.status = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.settings = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.displayNameOverridden = 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('CompactContact') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.createdTime is not None: + oprot.writeFieldBegin('createdTime', TType.I64, 2) + oprot.writeI64(self.createdTime) + oprot.writeFieldEnd() + if self.modifiedTime is not None: + oprot.writeFieldBegin('modifiedTime', TType.I64, 3) + oprot.writeI64(self.modifiedTime) + oprot.writeFieldEnd() + if self.status is not None: + oprot.writeFieldBegin('status', TType.I32, 4) + oprot.writeI32(self.status) + oprot.writeFieldEnd() + if self.settings is not None: + oprot.writeFieldBegin('settings', TType.I64, 5) + oprot.writeI64(self.settings) + oprot.writeFieldEnd() + if self.displayNameOverridden is not None: + oprot.writeFieldBegin('displayNameOverridden', TType.STRING, 6) + oprot.writeString(self.displayNameOverridden.encode('utf-8') if sys.version_info[0] == 2 else self.displayNameOverridden) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ContactModification(object): + """ + Attributes: + - type + - luid + - phones + - emails + - userids + """ + + + def __init__(self, type=None, luid=None, phones=None, emails=None, userids=None,): + self.type = type + self.luid = luid + self.phones = phones + self.emails = emails + self.userids = userids + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.luid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.LIST: + self.phones = [] + (_etype202, _size199) = iprot.readListBegin() + for _i203 in range(_size199): + _elem204 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.phones.append(_elem204) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.LIST: + self.emails = [] + (_etype208, _size205) = iprot.readListBegin() + for _i209 in range(_size205): + _elem210 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.emails.append(_elem210) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.LIST: + self.userids = [] + (_etype214, _size211) = iprot.readListBegin() + for _i215 in range(_size211): + _elem216 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.userids.append(_elem216) + 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('ContactModification') + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 1) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.luid is not None: + oprot.writeFieldBegin('luid', TType.STRING, 2) + oprot.writeString(self.luid.encode('utf-8') if sys.version_info[0] == 2 else self.luid) + oprot.writeFieldEnd() + if self.phones is not None: + oprot.writeFieldBegin('phones', TType.LIST, 11) + oprot.writeListBegin(TType.STRING, len(self.phones)) + for iter217 in self.phones: + oprot.writeString(iter217.encode('utf-8') if sys.version_info[0] == 2 else iter217) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.emails is not None: + oprot.writeFieldBegin('emails', TType.LIST, 12) + oprot.writeListBegin(TType.STRING, len(self.emails)) + for iter218 in self.emails: + oprot.writeString(iter218.encode('utf-8') if sys.version_info[0] == 2 else iter218) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.userids is not None: + oprot.writeFieldBegin('userids', TType.LIST, 13) + oprot.writeListBegin(TType.STRING, len(self.userids)) + for iter219 in self.userids: + oprot.writeString(iter219.encode('utf-8') if sys.version_info[0] == 2 else iter219) + 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) + + +class ContactRegistration(object): + """ + Attributes: + - contact + - luid + - contactType + - contactKey + """ + + + def __init__(self, contact=None, luid=None, contactType=None, contactKey=None,): + self.contact = contact + self.luid = luid + self.contactType = contactType + self.contactKey = contactKey + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.contact = Contact() + self.contact.read(iprot) + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRING: + self.luid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I32: + self.contactType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRING: + self.contactKey = 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('ContactRegistration') + if self.contact is not None: + oprot.writeFieldBegin('contact', TType.STRUCT, 1) + self.contact.write(oprot) + oprot.writeFieldEnd() + if self.luid is not None: + oprot.writeFieldBegin('luid', TType.STRING, 10) + oprot.writeString(self.luid.encode('utf-8') if sys.version_info[0] == 2 else self.luid) + oprot.writeFieldEnd() + if self.contactType is not None: + oprot.writeFieldBegin('contactType', TType.I32, 11) + oprot.writeI32(self.contactType) + oprot.writeFieldEnd() + if self.contactKey is not None: + oprot.writeFieldBegin('contactKey', TType.STRING, 12) + oprot.writeString(self.contactKey.encode('utf-8') if sys.version_info[0] == 2 else self.contactKey) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ContactReport(object): + """ + Attributes: + - mid + - exists + - contact + """ + + + def __init__(self, mid=None, exists=None, contact=None,): + self.mid = mid + self.exists = exists + self.contact = contact + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.exists = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.contact = Contact() + self.contact.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('ContactReport') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.exists is not None: + oprot.writeFieldBegin('exists', TType.BOOL, 2) + oprot.writeBool(self.exists) + oprot.writeFieldEnd() + if self.contact is not None: + oprot.writeFieldBegin('contact', TType.STRUCT, 3) + self.contact.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) + + +class ContactReportResult(object): + """ + Attributes: + - mid + - exists + """ + + + def __init__(self, mid=None, exists=None,): + self.mid = mid + self.exists = exists + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.exists = 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('ContactReportResult') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.exists is not None: + oprot.writeFieldBegin('exists', TType.BOOL, 2) + oprot.writeBool(self.exists) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 DeviceInfo(object): + """ + Attributes: + - deviceName + - systemName + - systemVersion + - model + - carrierCode + - carrierName + - applicationType + """ + + + def __init__(self, deviceName=None, systemName=None, systemVersion=None, model=None, carrierCode=None, carrierName=None, applicationType=None,): + self.deviceName = deviceName + self.systemName = systemName + self.systemVersion = systemVersion + self.model = model + self.carrierCode = carrierCode + self.carrierName = carrierName + self.applicationType = applicationType + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.deviceName = 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.systemName = 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.systemVersion = 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.model = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.I32: + self.carrierCode = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.carrierName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 20: + if ftype == TType.I32: + self.applicationType = 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('DeviceInfo') + if self.deviceName is not None: + oprot.writeFieldBegin('deviceName', TType.STRING, 1) + oprot.writeString(self.deviceName.encode('utf-8') if sys.version_info[0] == 2 else self.deviceName) + oprot.writeFieldEnd() + if self.systemName is not None: + oprot.writeFieldBegin('systemName', TType.STRING, 2) + oprot.writeString(self.systemName.encode('utf-8') if sys.version_info[0] == 2 else self.systemName) + oprot.writeFieldEnd() + if self.systemVersion is not None: + oprot.writeFieldBegin('systemVersion', TType.STRING, 3) + oprot.writeString(self.systemVersion.encode('utf-8') if sys.version_info[0] == 2 else self.systemVersion) + oprot.writeFieldEnd() + if self.model is not None: + oprot.writeFieldBegin('model', TType.STRING, 4) + oprot.writeString(self.model.encode('utf-8') if sys.version_info[0] == 2 else self.model) + oprot.writeFieldEnd() + if self.carrierCode is not None: + oprot.writeFieldBegin('carrierCode', TType.I32, 10) + oprot.writeI32(self.carrierCode) + oprot.writeFieldEnd() + if self.carrierName is not None: + oprot.writeFieldBegin('carrierName', TType.STRING, 11) + oprot.writeString(self.carrierName.encode('utf-8') if sys.version_info[0] == 2 else self.carrierName) + oprot.writeFieldEnd() + if self.applicationType is not None: + oprot.writeFieldBegin('applicationType', TType.I32, 20) + oprot.writeI32(self.applicationType) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 EmailConfirmation(object): + """ + Attributes: + - usePasswordSet + - email + - password + - ignoreDuplication + """ + + + def __init__(self, usePasswordSet=None, email=None, password=None, ignoreDuplication=None,): + self.usePasswordSet = usePasswordSet + self.email = email + self.password = password + self.ignoreDuplication = ignoreDuplication + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.BOOL: + self.usePasswordSet = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.email = 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.password = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BOOL: + self.ignoreDuplication = 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('EmailConfirmation') + if self.usePasswordSet is not None: + oprot.writeFieldBegin('usePasswordSet', TType.BOOL, 1) + oprot.writeBool(self.usePasswordSet) + oprot.writeFieldEnd() + if self.email is not None: + oprot.writeFieldBegin('email', TType.STRING, 2) + oprot.writeString(self.email.encode('utf-8') if sys.version_info[0] == 2 else self.email) + oprot.writeFieldEnd() + if self.password is not None: + oprot.writeFieldBegin('password', TType.STRING, 3) + oprot.writeString(self.password.encode('utf-8') if sys.version_info[0] == 2 else self.password) + oprot.writeFieldEnd() + if self.ignoreDuplication is not None: + oprot.writeFieldBegin('ignoreDuplication', TType.BOOL, 4) + oprot.writeBool(self.ignoreDuplication) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 EmailConfirmationSession(object): + """ + Attributes: + - emailConfirmationType + - verifier + - targetEmail + """ + + + def __init__(self, emailConfirmationType=None, verifier=None, targetEmail=None,): + self.emailConfirmationType = emailConfirmationType + self.verifier = verifier + self.targetEmail = targetEmail + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.emailConfirmationType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + 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 == 3: + if ftype == TType.STRING: + self.targetEmail = 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('EmailConfirmationSession') + if self.emailConfirmationType is not None: + oprot.writeFieldBegin('emailConfirmationType', TType.I32, 1) + oprot.writeI32(self.emailConfirmationType) + oprot.writeFieldEnd() + if self.verifier is not None: + oprot.writeFieldBegin('verifier', TType.STRING, 2) + oprot.writeString(self.verifier.encode('utf-8') if sys.version_info[0] == 2 else self.verifier) + oprot.writeFieldEnd() + if self.targetEmail is not None: + oprot.writeFieldBegin('targetEmail', TType.STRING, 3) + oprot.writeString(self.targetEmail.encode('utf-8') if sys.version_info[0] == 2 else self.targetEmail) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 FriendChannelMatrix(object): + """ + Attributes: + - channelId + - representMid + - count + - point + """ + + + def __init__(self, channelId=None, representMid=None, count=None, point=None,): + self.channelId = channelId + self.representMid = representMid + self.count = count + self.point = point + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.representMid = 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.count = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.point = 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('FriendChannelMatrix') + 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.representMid is not None: + oprot.writeFieldBegin('representMid', TType.STRING, 2) + oprot.writeString(self.representMid.encode('utf-8') if sys.version_info[0] == 2 else self.representMid) + oprot.writeFieldEnd() + if self.count is not None: + oprot.writeFieldBegin('count', TType.I32, 3) + oprot.writeI32(self.count) + oprot.writeFieldEnd() + if self.point is not None: + oprot.writeFieldBegin('point', TType.I32, 4) + oprot.writeI32(self.point) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 FriendChannelMatricesResponse(object): + """ + Attributes: + - expires + - matrices + """ + + + def __init__(self, expires=None, matrices=None,): + self.expires = expires + self.matrices = matrices + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.expires = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.matrices = [] + (_etype223, _size220) = iprot.readListBegin() + for _i224 in range(_size220): + _elem225 = FriendChannelMatrix() + _elem225.read(iprot) + self.matrices.append(_elem225) + 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('FriendChannelMatricesResponse') + if self.expires is not None: + oprot.writeFieldBegin('expires', TType.I64, 1) + oprot.writeI64(self.expires) + oprot.writeFieldEnd() + if self.matrices is not None: + oprot.writeFieldBegin('matrices', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.matrices)) + for iter226 in self.matrices: + iter226.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) + + +class FriendRequest(object): + """ + Attributes: + - eMid + - mid + - direction + - method + - param + - timestamp + - seqId + - displayName + - picturePath + - pictureStatus + """ + + + def __init__(self, eMid=None, mid=None, direction=None, method=None, param=None, timestamp=None, seqId=None, displayName=None, picturePath=None, pictureStatus=None,): + self.eMid = eMid + self.mid = mid + self.direction = direction + self.method = method + self.param = param + self.timestamp = timestamp + self.seqId = seqId + self.displayName = displayName + self.picturePath = picturePath + self.pictureStatus = pictureStatus + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.eMid = 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) + elif fid == 3: + if ftype == TType.I32: + self.direction = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.method = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.param = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I64: + self.timestamp = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I64: + self.seqId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 10: + 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 == 11: + if ftype == TType.STRING: + self.picturePath = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRING: + self.pictureStatus = 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('FriendRequest') + if self.eMid is not None: + oprot.writeFieldBegin('eMid', TType.STRING, 1) + oprot.writeString(self.eMid.encode('utf-8') if sys.version_info[0] == 2 else self.eMid) + 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() + if self.direction is not None: + oprot.writeFieldBegin('direction', TType.I32, 3) + oprot.writeI32(self.direction) + oprot.writeFieldEnd() + if self.method is not None: + oprot.writeFieldBegin('method', TType.I32, 4) + oprot.writeI32(self.method) + oprot.writeFieldEnd() + if self.param is not None: + oprot.writeFieldBegin('param', TType.STRING, 5) + oprot.writeString(self.param.encode('utf-8') if sys.version_info[0] == 2 else self.param) + oprot.writeFieldEnd() + if self.timestamp is not None: + oprot.writeFieldBegin('timestamp', TType.I64, 6) + oprot.writeI64(self.timestamp) + oprot.writeFieldEnd() + if self.seqId is not None: + oprot.writeFieldBegin('seqId', TType.I64, 7) + oprot.writeI64(self.seqId) + oprot.writeFieldEnd() + if self.displayName is not None: + oprot.writeFieldBegin('displayName', TType.STRING, 10) + oprot.writeString(self.displayName.encode('utf-8') if sys.version_info[0] == 2 else self.displayName) + oprot.writeFieldEnd() + if self.picturePath is not None: + oprot.writeFieldBegin('picturePath', TType.STRING, 11) + oprot.writeString(self.picturePath.encode('utf-8') if sys.version_info[0] == 2 else self.picturePath) + oprot.writeFieldEnd() + if self.pictureStatus is not None: + oprot.writeFieldBegin('pictureStatus', TType.STRING, 12) + oprot.writeString(self.pictureStatus.encode('utf-8') if sys.version_info[0] == 2 else self.pictureStatus) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 FriendRequestsInfo(object): + """ + Attributes: + - totalIncomingCount + - totalOutgoingCount + - recentIncomings + - recentOutgoings + - totalIncomingLimit + - totalOutgoingLimit + """ + + + def __init__(self, totalIncomingCount=None, totalOutgoingCount=None, recentIncomings=None, recentOutgoings=None, totalIncomingLimit=None, totalOutgoingLimit=None,): + self.totalIncomingCount = totalIncomingCount + self.totalOutgoingCount = totalOutgoingCount + self.recentIncomings = recentIncomings + self.recentOutgoings = recentOutgoings + self.totalIncomingLimit = totalIncomingLimit + self.totalOutgoingLimit = totalOutgoingLimit + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.totalIncomingCount = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.totalOutgoingCount = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.recentIncomings = [] + (_etype230, _size227) = iprot.readListBegin() + for _i231 in range(_size227): + _elem232 = FriendRequest() + _elem232.read(iprot) + self.recentIncomings.append(_elem232) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.recentOutgoings = [] + (_etype236, _size233) = iprot.readListBegin() + for _i237 in range(_size233): + _elem238 = FriendRequest() + _elem238.read(iprot) + self.recentOutgoings.append(_elem238) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.totalIncomingLimit = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.totalOutgoingLimit = 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('FriendRequestsInfo') + if self.totalIncomingCount is not None: + oprot.writeFieldBegin('totalIncomingCount', TType.I32, 1) + oprot.writeI32(self.totalIncomingCount) + oprot.writeFieldEnd() + if self.totalOutgoingCount is not None: + oprot.writeFieldBegin('totalOutgoingCount', TType.I32, 2) + oprot.writeI32(self.totalOutgoingCount) + oprot.writeFieldEnd() + if self.recentIncomings is not None: + oprot.writeFieldBegin('recentIncomings', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.recentIncomings)) + for iter239 in self.recentIncomings: + iter239.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.recentOutgoings is not None: + oprot.writeFieldBegin('recentOutgoings', TType.LIST, 4) + oprot.writeListBegin(TType.STRUCT, len(self.recentOutgoings)) + for iter240 in self.recentOutgoings: + iter240.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.totalIncomingLimit is not None: + oprot.writeFieldBegin('totalIncomingLimit', TType.I32, 5) + oprot.writeI32(self.totalIncomingLimit) + oprot.writeFieldEnd() + if self.totalOutgoingLimit is not None: + oprot.writeFieldBegin('totalOutgoingLimit', TType.I32, 6) + oprot.writeI32(self.totalOutgoingLimit) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 Geolocation(object): + """ + Attributes: + - longitude + - latitude + """ + + + def __init__(self, longitude=None, latitude=None,): + self.longitude = longitude + self.latitude = latitude + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.DOUBLE: + self.longitude = iprot.readDouble() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.DOUBLE: + self.latitude = iprot.readDouble() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('Geolocation') + if self.longitude is not None: + oprot.writeFieldBegin('longitude', TType.DOUBLE, 1) + oprot.writeDouble(self.longitude) + oprot.writeFieldEnd() + if self.latitude is not None: + oprot.writeFieldBegin('latitude', TType.DOUBLE, 2) + oprot.writeDouble(self.latitude) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 NotificationTarget(object): + """ + Attributes: + - applicationType + - applicationVersion + - region + """ + + + def __init__(self, applicationType=None, applicationVersion=None, region=None,): + self.applicationType = applicationType + self.applicationVersion = applicationVersion + self.region = region + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.applicationType = 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.applicationVersion = 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.region = 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('NotificationTarget') + if self.applicationType is not None: + oprot.writeFieldBegin('applicationType', TType.STRING, 1) + oprot.writeString(self.applicationType.encode('utf-8') if sys.version_info[0] == 2 else self.applicationType) + oprot.writeFieldEnd() + if self.applicationVersion is not None: + oprot.writeFieldBegin('applicationVersion', TType.STRING, 2) + oprot.writeString(self.applicationVersion.encode('utf-8') if sys.version_info[0] == 2 else self.applicationVersion) + oprot.writeFieldEnd() + if self.region is not None: + oprot.writeFieldBegin('region', TType.STRING, 3) + oprot.writeString(self.region.encode('utf-8') if sys.version_info[0] == 2 else self.region) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GlobalEvent(object): + """ + Attributes: + - key + - targets + - createdTime + - data + - maxDelay + """ + + + def __init__(self, key=None, targets=None, createdTime=None, data=None, maxDelay=None,): + self.key = key + self.targets = targets + self.createdTime = createdTime + self.data = data + self.maxDelay = maxDelay + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.key = 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.targets = [] + (_etype244, _size241) = iprot.readListBegin() + for _i245 in range(_size241): + _elem246 = NotificationTarget() + _elem246.read(iprot) + self.targets.append(_elem246) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.createdTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.data = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.maxDelay = 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('GlobalEvent') + if self.key is not None: + oprot.writeFieldBegin('key', TType.STRING, 1) + oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key) + oprot.writeFieldEnd() + if self.targets is not None: + oprot.writeFieldBegin('targets', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.targets)) + for iter247 in self.targets: + iter247.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.createdTime is not None: + oprot.writeFieldBegin('createdTime', TType.I64, 3) + oprot.writeI64(self.createdTime) + oprot.writeFieldEnd() + if self.data is not None: + oprot.writeFieldBegin('data', TType.I64, 4) + oprot.writeI64(self.data) + oprot.writeFieldEnd() + if self.maxDelay is not None: + oprot.writeFieldBegin('maxDelay', TType.I32, 5) + oprot.writeI32(self.maxDelay) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 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: + - id + - createdTime + - name + - pictureStatus + - preventedJoinByTicket + - groupPreference + - members + - creator + - invitee + - notificationDisabled + """ + + + 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 + self.notificationDisabled = notificationDisabled + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.id = 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.createdTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRING: + self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + 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 = [] + (_etype251, _size248) = iprot.readListBegin() + for _i252 in range(_size248): + _elem253 = Contact() + _elem253.read(iprot) + self.members.append(_elem253) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 21: + if ftype == TType.STRUCT: + self.creator = Contact() + self.creator.read(iprot) + else: + iprot.skip(ftype) + elif fid == 22: + if ftype == TType.LIST: + self.invitee = [] + (_etype257, _size254) = iprot.readListBegin() + for _i258 in range(_size254): + _elem259 = Contact() + _elem259.read(iprot) + self.invitee.append(_elem259) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 31: + if ftype == TType.BOOL: + self.notificationDisabled = 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('Group') + if self.id is not None: + oprot.writeFieldBegin('id', TType.STRING, 1) + oprot.writeString(self.id.encode('utf-8') if sys.version_info[0] == 2 else self.id) + oprot.writeFieldEnd() + if self.createdTime is not None: + oprot.writeFieldBegin('createdTime', TType.I64, 2) + oprot.writeI64(self.createdTime) + oprot.writeFieldEnd() + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 10) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + if self.pictureStatus is not None: + 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)) + for iter260 in self.members: + iter260.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.creator is not None: + oprot.writeFieldBegin('creator', TType.STRUCT, 21) + self.creator.write(oprot) + oprot.writeFieldEnd() + if self.invitee is not None: + oprot.writeFieldBegin('invitee', TType.LIST, 22) + oprot.writeListBegin(TType.STRUCT, len(self.invitee)) + for iter261 in self.invitee: + iter261.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.notificationDisabled is not None: + oprot.writeFieldBegin('notificationDisabled', TType.BOOL, 31) + oprot.writeBool(self.notificationDisabled) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 IdentityCredential(object): + """ + Attributes: + - provider + - identifier + - password + """ + + + def __init__(self, provider=None, identifier=None, password=None,): + self.provider = provider + self.identifier = identifier + self.password = password + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.provider = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.identifier = 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.password = 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('IdentityCredential') + if self.provider is not None: + oprot.writeFieldBegin('provider', TType.I32, 1) + oprot.writeI32(self.provider) + oprot.writeFieldEnd() + if self.identifier is not None: + oprot.writeFieldBegin('identifier', TType.STRING, 2) + oprot.writeString(self.identifier.encode('utf-8') if sys.version_info[0] == 2 else self.identifier) + oprot.writeFieldEnd() + if self.password is not None: + oprot.writeFieldBegin('password', TType.STRING, 3) + oprot.writeString(self.password.encode('utf-8') if sys.version_info[0] == 2 else self.password) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 LastReadMessageId(object): + """ + Attributes: + - mid + - lastReadMessageId + """ + + + def __init__(self, mid=None, lastReadMessageId=None,): + self.mid = mid + self.lastReadMessageId = lastReadMessageId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.lastReadMessageId = 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('LastReadMessageId') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.lastReadMessageId is not None: + oprot.writeFieldBegin('lastReadMessageId', TType.STRING, 2) + oprot.writeString(self.lastReadMessageId.encode('utf-8') if sys.version_info[0] == 2 else self.lastReadMessageId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 LastReadMessageIds(object): + """ + Attributes: + - chatId + - lastReadMessageIds + """ + + + def __init__(self, chatId=None, lastReadMessageIds=None,): + self.chatId = chatId + self.lastReadMessageIds = lastReadMessageIds + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.chatId = 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.lastReadMessageIds = [] + (_etype265, _size262) = iprot.readListBegin() + for _i266 in range(_size262): + _elem267 = LastReadMessageId() + _elem267.read(iprot) + self.lastReadMessageIds.append(_elem267) + 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('LastReadMessageIds') + if self.chatId is not None: + oprot.writeFieldBegin('chatId', TType.STRING, 1) + oprot.writeString(self.chatId.encode('utf-8') if sys.version_info[0] == 2 else self.chatId) + oprot.writeFieldEnd() + if self.lastReadMessageIds is not None: + oprot.writeFieldBegin('lastReadMessageIds', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.lastReadMessageIds)) + for iter268 in self.lastReadMessageIds: + iter268.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) + + +class VerificationSessionData(object): + """ + Attributes: + - sessionId + - method + - callback + - normalizedPhone + - countryCode + - nationalSignificantNumber + - availableVerificationMethods + """ + + + def __init__(self, sessionId=None, method=None, callback=None, normalizedPhone=None, countryCode=None, nationalSignificantNumber=None, availableVerificationMethods=None,): + self.sessionId = sessionId + self.method = method + self.callback = callback + self.normalizedPhone = normalizedPhone + self.countryCode = countryCode + self.nationalSignificantNumber = nationalSignificantNumber + self.availableVerificationMethods = availableVerificationMethods + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.sessionId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.method = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.callback = 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.normalizedPhone = 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.countryCode = 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.nationalSignificantNumber = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.LIST: + self.availableVerificationMethods = [] + (_etype272, _size269) = iprot.readListBegin() + for _i273 in range(_size269): + _elem274 = iprot.readI32() + self.availableVerificationMethods.append(_elem274) + 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('VerificationSessionData') + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.STRING, 1) + oprot.writeString(self.sessionId.encode('utf-8') if sys.version_info[0] == 2 else self.sessionId) + oprot.writeFieldEnd() + if self.method is not None: + oprot.writeFieldBegin('method', TType.I32, 2) + oprot.writeI32(self.method) + oprot.writeFieldEnd() + if self.callback is not None: + oprot.writeFieldBegin('callback', TType.STRING, 3) + oprot.writeString(self.callback.encode('utf-8') if sys.version_info[0] == 2 else self.callback) + oprot.writeFieldEnd() + if self.normalizedPhone is not None: + oprot.writeFieldBegin('normalizedPhone', TType.STRING, 4) + oprot.writeString(self.normalizedPhone.encode('utf-8') if sys.version_info[0] == 2 else self.normalizedPhone) + oprot.writeFieldEnd() + if self.countryCode is not None: + oprot.writeFieldBegin('countryCode', TType.STRING, 5) + oprot.writeString(self.countryCode.encode('utf-8') if sys.version_info[0] == 2 else self.countryCode) + oprot.writeFieldEnd() + if self.nationalSignificantNumber is not None: + oprot.writeFieldBegin('nationalSignificantNumber', TType.STRING, 6) + oprot.writeString(self.nationalSignificantNumber.encode('utf-8') if sys.version_info[0] == 2 else self.nationalSignificantNumber) + oprot.writeFieldEnd() + if self.availableVerificationMethods is not None: + oprot.writeFieldBegin('availableVerificationMethods', TType.LIST, 7) + oprot.writeListBegin(TType.I32, len(self.availableVerificationMethods)) + for iter275 in self.availableVerificationMethods: + oprot.writeI32(iter275) + 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) + + +class LoginResult(object): + """ + Attributes: + - authToken + - certificate + - verifier + - pinCode + - type + - lastPrimaryBindTime + - displayMessage + - sessionForSMSConfirm + """ + + + def __init__(self, authToken=None, certificate=None, verifier=None, pinCode=None, type=None, lastPrimaryBindTime=None, displayMessage=None, sessionForSMSConfirm=None,): + self.authToken = authToken + self.certificate = certificate + self.verifier = verifier + self.pinCode = pinCode + self.type = type + self.lastPrimaryBindTime = lastPrimaryBindTime + self.displayMessage = displayMessage + self.sessionForSMSConfirm = sessionForSMSConfirm + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.authToken = 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.certificate = 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.verifier = 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.pinCode = 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.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I64: + self.lastPrimaryBindTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.displayMessage = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRUCT: + self.sessionForSMSConfirm = VerificationSessionData() + self.sessionForSMSConfirm.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('LoginResult') + if self.authToken is not None: + oprot.writeFieldBegin('authToken', TType.STRING, 1) + oprot.writeString(self.authToken.encode('utf-8') if sys.version_info[0] == 2 else self.authToken) + oprot.writeFieldEnd() + if self.certificate is not None: + oprot.writeFieldBegin('certificate', TType.STRING, 2) + oprot.writeString(self.certificate.encode('utf-8') if sys.version_info[0] == 2 else self.certificate) + oprot.writeFieldEnd() + if self.verifier is not None: + oprot.writeFieldBegin('verifier', TType.STRING, 3) + oprot.writeString(self.verifier.encode('utf-8') if sys.version_info[0] == 2 else self.verifier) + oprot.writeFieldEnd() + if self.pinCode is not None: + oprot.writeFieldBegin('pinCode', TType.STRING, 4) + oprot.writeString(self.pinCode.encode('utf-8') if sys.version_info[0] == 2 else self.pinCode) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 5) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.lastPrimaryBindTime is not None: + oprot.writeFieldBegin('lastPrimaryBindTime', TType.I64, 6) + oprot.writeI64(self.lastPrimaryBindTime) + oprot.writeFieldEnd() + if self.displayMessage is not None: + oprot.writeFieldBegin('displayMessage', TType.STRING, 7) + oprot.writeString(self.displayMessage.encode('utf-8') if sys.version_info[0] == 2 else self.displayMessage) + oprot.writeFieldEnd() + if self.sessionForSMSConfirm is not None: + oprot.writeFieldBegin('sessionForSMSConfirm', TType.STRUCT, 8) + self.sessionForSMSConfirm.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) + + +class LoginRequest(object): + """ + Attributes: + - type + - identityProvider + - identifier + - password + - keepLoggedIn + - accessLocation + - systemName + - certificate + - verifier + - secret + - e2eeVersion + """ + + + def __init__(self, type=None, identityProvider=None, identifier=None, password=None, keepLoggedIn=None, accessLocation=None, systemName=None, certificate=None, verifier=None, secret=None, e2eeVersion=None,): + self.type = type + self.identityProvider = identityProvider + self.identifier = identifier + self.password = password + self.keepLoggedIn = keepLoggedIn + self.accessLocation = accessLocation + self.systemName = systemName + self.certificate = certificate + self.verifier = verifier + self.secret = secret + self.e2eeVersion = e2eeVersion + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.identityProvider = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.identifier = 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.password = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.BOOL: + self.keepLoggedIn = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.accessLocation = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.systemName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.certificate = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 9: + 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 == 10: + if ftype == TType.STRING: + self.secret = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I32: + self.e2eeVersion = 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('LoginRequest') + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 1) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.identityProvider is not None: + oprot.writeFieldBegin('identityProvider', TType.I32, 2) + oprot.writeI32(self.identityProvider) + oprot.writeFieldEnd() + if self.identifier is not None: + oprot.writeFieldBegin('identifier', TType.STRING, 3) + oprot.writeString(self.identifier.encode('utf-8') if sys.version_info[0] == 2 else self.identifier) + oprot.writeFieldEnd() + if self.password is not None: + oprot.writeFieldBegin('password', TType.STRING, 4) + oprot.writeString(self.password.encode('utf-8') if sys.version_info[0] == 2 else self.password) + oprot.writeFieldEnd() + if self.keepLoggedIn is not None: + oprot.writeFieldBegin('keepLoggedIn', TType.BOOL, 5) + oprot.writeBool(self.keepLoggedIn) + oprot.writeFieldEnd() + if self.accessLocation is not None: + oprot.writeFieldBegin('accessLocation', TType.STRING, 6) + oprot.writeString(self.accessLocation.encode('utf-8') if sys.version_info[0] == 2 else self.accessLocation) + oprot.writeFieldEnd() + if self.systemName is not None: + oprot.writeFieldBegin('systemName', TType.STRING, 7) + oprot.writeString(self.systemName.encode('utf-8') if sys.version_info[0] == 2 else self.systemName) + oprot.writeFieldEnd() + if self.certificate is not None: + oprot.writeFieldBegin('certificate', TType.STRING, 8) + oprot.writeString(self.certificate.encode('utf-8') if sys.version_info[0] == 2 else self.certificate) + oprot.writeFieldEnd() + if self.verifier is not None: + oprot.writeFieldBegin('verifier', TType.STRING, 9) + oprot.writeString(self.verifier.encode('utf-8') if sys.version_info[0] == 2 else self.verifier) + oprot.writeFieldEnd() + if self.secret is not None: + oprot.writeFieldBegin('secret', TType.STRING, 10) + oprot.writeString(self.secret.encode('utf-8') if sys.version_info[0] == 2 else self.secret) + oprot.writeFieldEnd() + if self.e2eeVersion is not None: + oprot.writeFieldBegin('e2eeVersion', TType.I32, 11) + oprot.writeI32(self.e2eeVersion) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 LoginSession(object): + """ + Attributes: + - tokenKey + - expirationTime + - applicationType + - systemName + - accessLocation + """ + + + def __init__(self, tokenKey=None, expirationTime=None, applicationType=None, systemName=None, accessLocation=None,): + self.tokenKey = tokenKey + self.expirationTime = expirationTime + self.applicationType = applicationType + self.systemName = systemName + self.accessLocation = accessLocation + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.tokenKey = 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.expirationTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I32: + self.applicationType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRING: + self.systemName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 22: + if ftype == TType.STRING: + self.accessLocation = 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('LoginSession') + if self.tokenKey is not None: + oprot.writeFieldBegin('tokenKey', TType.STRING, 1) + oprot.writeString(self.tokenKey.encode('utf-8') if sys.version_info[0] == 2 else self.tokenKey) + oprot.writeFieldEnd() + if self.expirationTime is not None: + oprot.writeFieldBegin('expirationTime', TType.I64, 3) + oprot.writeI64(self.expirationTime) + oprot.writeFieldEnd() + if self.applicationType is not None: + oprot.writeFieldBegin('applicationType', TType.I32, 11) + oprot.writeI32(self.applicationType) + oprot.writeFieldEnd() + if self.systemName is not None: + oprot.writeFieldBegin('systemName', TType.STRING, 12) + oprot.writeString(self.systemName.encode('utf-8') if sys.version_info[0] == 2 else self.systemName) + oprot.writeFieldEnd() + if self.accessLocation is not None: + oprot.writeFieldBegin('accessLocation', TType.STRING, 22) + oprot.writeString(self.accessLocation.encode('utf-8') if sys.version_info[0] == 2 else self.accessLocation) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 Message(object): + """ + Attributes: + - _from + - to + - toType + - id + - createdTime + - deliveredTime + - text + - location + - hasContent + - contentType + - contentPreview + - contentMetadata + - sessionId + - chunks + - relatedMessageId + - messageRelationType + - readCount + - relatedMessageServiceCode + """ + + + def __init__(self, _from=None, to=None, toType=None, id=None, createdTime=None, deliveredTime=None, text=None, location=None, hasContent=None, contentType=None, contentPreview=None, contentMetadata=None, sessionId=None, chunks=None, relatedMessageId=None, messageRelationType=None, readCount=None, relatedMessageServiceCode=None,): + self._from = _from + self.to = to + self.toType = toType + self.id = id + self.createdTime = createdTime + self.deliveredTime = deliveredTime + self.text = text + self.location = location + self.hasContent = hasContent + self.contentType = contentType + self.contentPreview = contentPreview + self.contentMetadata = contentMetadata + self.sessionId = sessionId + self.chunks = chunks + self.relatedMessageId = relatedMessageId + self.messageRelationType = messageRelationType + self.readCount = readCount + self.relatedMessageServiceCode = relatedMessageServiceCode + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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._from = 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.to = 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.toType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.createdTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I64: + self.deliveredTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRING: + self.text = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRUCT: + self.location = Location() + self.location.read(iprot) + else: + iprot.skip(ftype) + elif fid == 14: + if ftype == TType.BOOL: + self.hasContent = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 15: + if ftype == TType.I32: + self.contentType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 17: + if ftype == TType.STRING: + self.contentPreview = iprot.readBinary() + else: + iprot.skip(ftype) + elif fid == 18: + if ftype == TType.MAP: + self.contentMetadata = {} + (_ktype277, _vtype278, _size276) = iprot.readMapBegin() + for _i280 in range(_size276): + _key281 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val282 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.contentMetadata[_key281] = _val282 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 19: + if ftype == TType.BYTE: + self.sessionId = iprot.readByte() + else: + iprot.skip(ftype) + elif fid == 20: + if ftype == TType.LIST: + self.chunks = [] + (_etype286, _size283) = iprot.readListBegin() + for _i287 in range(_size283): + _elem288 = iprot.readBinary() + self.chunks.append(_elem288) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 21: + if ftype == TType.STRING: + self.relatedMessageId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 22: + if ftype == TType.I32: + self.messageRelationType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 23: + if ftype == TType.I64: + self.readCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 24: + if ftype == TType.I32: + self.relatedMessageServiceCode = 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('Message') + if self._from is not None: + oprot.writeFieldBegin('_from', TType.STRING, 1) + oprot.writeString(self._from.encode('utf-8') if sys.version_info[0] == 2 else self._from) + oprot.writeFieldEnd() + if self.to is not None: + oprot.writeFieldBegin('to', TType.STRING, 2) + oprot.writeString(self.to.encode('utf-8') if sys.version_info[0] == 2 else self.to) + oprot.writeFieldEnd() + if self.toType is not None: + oprot.writeFieldBegin('toType', TType.I32, 3) + oprot.writeI32(self.toType) + oprot.writeFieldEnd() + if self.id is not None: + oprot.writeFieldBegin('id', TType.STRING, 4) + oprot.writeString(self.id.encode('utf-8') if sys.version_info[0] == 2 else self.id) + oprot.writeFieldEnd() + if self.createdTime is not None: + oprot.writeFieldBegin('createdTime', TType.I64, 5) + oprot.writeI64(self.createdTime) + oprot.writeFieldEnd() + if self.deliveredTime is not None: + oprot.writeFieldBegin('deliveredTime', TType.I64, 6) + oprot.writeI64(self.deliveredTime) + oprot.writeFieldEnd() + if self.text is not None: + oprot.writeFieldBegin('text', TType.STRING, 10) + oprot.writeString(self.text.encode('utf-8') if sys.version_info[0] == 2 else self.text) + oprot.writeFieldEnd() + if self.location is not None: + oprot.writeFieldBegin('location', TType.STRUCT, 11) + self.location.write(oprot) + oprot.writeFieldEnd() + if self.hasContent is not None: + oprot.writeFieldBegin('hasContent', TType.BOOL, 14) + oprot.writeBool(self.hasContent) + oprot.writeFieldEnd() + if self.contentType is not None: + oprot.writeFieldBegin('contentType', TType.I32, 15) + oprot.writeI32(self.contentType) + oprot.writeFieldEnd() + if self.contentPreview is not None: + oprot.writeFieldBegin('contentPreview', TType.STRING, 17) + oprot.writeBinary(self.contentPreview) + oprot.writeFieldEnd() + if self.contentMetadata is not None: + oprot.writeFieldBegin('contentMetadata', TType.MAP, 18) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.contentMetadata)) + for kiter289, viter290 in self.contentMetadata.items(): + oprot.writeString(kiter289.encode('utf-8') if sys.version_info[0] == 2 else kiter289) + oprot.writeString(viter290.encode('utf-8') if sys.version_info[0] == 2 else viter290) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.sessionId is not None: + oprot.writeFieldBegin('sessionId', TType.BYTE, 19) + oprot.writeByte(self.sessionId) + oprot.writeFieldEnd() + if self.chunks is not None: + oprot.writeFieldBegin('chunks', TType.LIST, 20) + oprot.writeListBegin(TType.STRING, len(self.chunks)) + for iter291 in self.chunks: + oprot.writeBinary(iter291) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.relatedMessageId is not None: + oprot.writeFieldBegin('relatedMessageId', TType.STRING, 21) + oprot.writeString(self.relatedMessageId.encode('utf-8') if sys.version_info[0] == 2 else self.relatedMessageId) + oprot.writeFieldEnd() + if self.messageRelationType is not None: + oprot.writeFieldBegin('messageRelationType', TType.I32, 22) + oprot.writeI32(self.messageRelationType) + oprot.writeFieldEnd() + if self.readCount is not None: + oprot.writeFieldBegin('readCount', TType.I64, 23) + oprot.writeI64(self.readCount) + oprot.writeFieldEnd() + if self.relatedMessageServiceCode is not None: + oprot.writeFieldBegin('relatedMessageServiceCode', TType.I32, 24) + oprot.writeI32(self.relatedMessageServiceCode) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareMessage(object): + """ + Attributes: + - message + - fromType + - squareMessageRevision + """ + + + def __init__(self, message=None, fromType=None, squareMessageRevision=None,): + self.message = message + self.fromType = fromType + self.squareMessageRevision = squareMessageRevision + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.message = Message() + self.message.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.fromType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.squareMessageRevision = 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('SquareMessage') + if self.message is not None: + oprot.writeFieldBegin('message', TType.STRUCT, 1) + self.message.write(oprot) + oprot.writeFieldEnd() + if self.fromType is not None: + oprot.writeFieldBegin('fromType', TType.I32, 3) + oprot.writeI32(self.fromType) + oprot.writeFieldEnd() + if self.squareMessageRevision is not None: + oprot.writeFieldBegin('squareMessageRevision', TType.I64, 4) + oprot.writeI64(self.squareMessageRevision) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareChatStatusWithoutMessage(object): + """ + Attributes: + - memberCount + - unreadMessageCount + """ + + + def __init__(self, memberCount=None, unreadMessageCount=None,): + self.memberCount = memberCount + self.unreadMessageCount = unreadMessageCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.memberCount = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.unreadMessageCount = 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('SquareChatStatusWithoutMessage') + if self.memberCount is not None: + oprot.writeFieldBegin('memberCount', TType.I32, 1) + oprot.writeI32(self.memberCount) + oprot.writeFieldEnd() + if self.unreadMessageCount is not None: + oprot.writeFieldBegin('unreadMessageCount', TType.I32, 2) + oprot.writeI32(self.unreadMessageCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareChatStatus(object): + """ + Attributes: + - lastMessage + - senderDisplayName + - otherStatus + """ + + + def __init__(self, lastMessage=None, senderDisplayName=None, otherStatus=None,): + self.lastMessage = lastMessage + self.senderDisplayName = senderDisplayName + self.otherStatus = otherStatus + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.STRUCT: + self.lastMessage = SquareMessage() + self.lastMessage.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.senderDisplayName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.otherStatus = SquareChatStatusWithoutMessage() + self.otherStatus.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('SquareChatStatus') + if self.lastMessage is not None: + oprot.writeFieldBegin('lastMessage', TType.STRUCT, 3) + self.lastMessage.write(oprot) + oprot.writeFieldEnd() + if self.senderDisplayName is not None: + oprot.writeFieldBegin('senderDisplayName', TType.STRING, 4) + oprot.writeString(self.senderDisplayName.encode('utf-8') if sys.version_info[0] == 2 else self.senderDisplayName) + oprot.writeFieldEnd() + if self.otherStatus is not None: + oprot.writeFieldBegin('otherStatus', TType.STRUCT, 5) + self.otherStatus.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) + + +class SquareChatMember(object): + """ + Attributes: + - squareMemberMid + - squareChatMid + - revision + - membershipState + - notificationForMessage + """ + + + def __init__(self, squareMemberMid=None, squareChatMid=None, revision=None, membershipState=None, notificationForMessage=None,): + self.squareMemberMid = squareMemberMid + self.squareChatMid = squareChatMid + self.revision = revision + self.membershipState = membershipState + self.notificationForMessage = notificationForMessage + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMemberMid = 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.squareChatMid = 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.revision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.membershipState = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.BOOL: + self.notificationForMessage = 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('SquareChatMember') + if self.squareMemberMid is not None: + oprot.writeFieldBegin('squareMemberMid', TType.STRING, 1) + oprot.writeString(self.squareMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMemberMid) + oprot.writeFieldEnd() + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 2) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 3) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + if self.membershipState is not None: + oprot.writeFieldBegin('membershipState', TType.I32, 4) + oprot.writeI32(self.membershipState) + oprot.writeFieldEnd() + if self.notificationForMessage is not None: + oprot.writeFieldBegin('notificationForMessage', TType.BOOL, 5) + oprot.writeBool(self.notificationForMessage) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 MessageOperation(object): + """ + Attributes: + - revision + - createdTime + - type + - reqSeq + - status + - param1 + - param2 + - param3 + - message + """ + + + def __init__(self, revision=None, createdTime=None, type=None, reqSeq=None, status=None, param1=None, param2=None, param3=None, message=None,): + self.revision = revision + self.createdTime = createdTime + self.type = type + self.reqSeq = reqSeq + self.status = status + self.param1 = param1 + self.param2 = param2 + self.param3 = param3 + 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 == 1: + if ftype == TType.I64: + self.revision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.createdTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.status = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 10: + 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 == 11: + 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 == 12: + if ftype == TType.STRING: + self.param3 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 20: + 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('MessageOperation') + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 1) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + if self.createdTime is not None: + oprot.writeFieldBegin('createdTime', TType.I64, 2) + oprot.writeI64(self.createdTime) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 3) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 4) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.status is not None: + oprot.writeFieldBegin('status', TType.I32, 5) + oprot.writeI32(self.status) + oprot.writeFieldEnd() + if self.param1 is not None: + oprot.writeFieldBegin('param1', TType.STRING, 10) + 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, 11) + 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, 12) + oprot.writeString(self.param3.encode('utf-8') if sys.version_info[0] == 2 else self.param3) + oprot.writeFieldEnd() + if self.message is not None: + oprot.writeFieldBegin('message', TType.STRUCT, 20) + 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) + + +class MessageOperations(object): + """ + Attributes: + - operations + - endFlag + """ + + + def __init__(self, operations=None, endFlag=None,): + self.operations = operations + self.endFlag = endFlag + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.operations = [] + (_etype295, _size292) = iprot.readListBegin() + for _i296 in range(_size292): + _elem297 = MessageOperation() + _elem297.read(iprot) + self.operations.append(_elem297) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.BOOL: + self.endFlag = 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('MessageOperations') + if self.operations is not None: + oprot.writeFieldBegin('operations', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.operations)) + for iter298 in self.operations: + iter298.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.endFlag is not None: + oprot.writeFieldBegin('endFlag', TType.BOOL, 2) + oprot.writeBool(self.endFlag) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 MessageStoreResult(object): + """ + Attributes: + - requestId + - messageIds + """ + + + def __init__(self, requestId=None, messageIds=None,): + self.requestId = requestId + self.messageIds = messageIds + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.messageIds = [] + (_etype302, _size299) = iprot.readListBegin() + for _i303 in range(_size299): + _elem304 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.messageIds.append(_elem304) + 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('MessageStoreResult') + 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.messageIds is not None: + oprot.writeFieldBegin('messageIds', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.messageIds)) + for iter305 in self.messageIds: + oprot.writeString(iter305.encode('utf-8') if sys.version_info[0] == 2 else iter305) + 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) + + +class MetaProfile(object): + """ + Attributes: + - createTime + - regionCode + - identities + """ + + + def __init__(self, createTime=None, regionCode=None, identities=None,): + self.createTime = createTime + self.regionCode = regionCode + self.identities = identities + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.createTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.regionCode = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.MAP: + self.identities = {} + (_ktype307, _vtype308, _size306) = iprot.readMapBegin() + for _i310 in range(_size306): + _key311 = iprot.readI32() + _val312 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.identities[_key311] = _val312 + 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('MetaProfile') + if self.createTime is not None: + oprot.writeFieldBegin('createTime', TType.I64, 1) + oprot.writeI64(self.createTime) + oprot.writeFieldEnd() + if self.regionCode is not None: + oprot.writeFieldBegin('regionCode', TType.STRING, 2) + oprot.writeString(self.regionCode.encode('utf-8') if sys.version_info[0] == 2 else self.regionCode) + oprot.writeFieldEnd() + if self.identities is not None: + oprot.writeFieldBegin('identities', TType.MAP, 3) + oprot.writeMapBegin(TType.I32, TType.STRING, len(self.identities)) + for kiter313, viter314 in self.identities.items(): + oprot.writeI32(kiter313) + oprot.writeString(viter314.encode('utf-8') if sys.version_info[0] == 2 else viter314) + 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) + + +class NotificationItem(object): + """ + Attributes: + - id + - _from + - to + - fromChannel + - toChannel + - revision + - createdTime + - content + """ + + + def __init__(self, id=None, _from=None, to=None, fromChannel=None, toChannel=None, revision=None, createdTime=None, content=None,): + self.id = id + self._from = _from + self.to = to + self.fromChannel = fromChannel + self.toChannel = toChannel + self.revision = revision + self.createdTime = createdTime + 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.id = 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._from = 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.to = 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.fromChannel = 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.toChannel = 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.revision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I64: + self.createdTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.MAP: + self.content = {} + (_ktype316, _vtype317, _size315) = iprot.readMapBegin() + for _i319 in range(_size315): + _key320 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val321 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.content[_key320] = _val321 + 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('NotificationItem') + if self.id is not None: + oprot.writeFieldBegin('id', TType.STRING, 1) + oprot.writeString(self.id.encode('utf-8') if sys.version_info[0] == 2 else self.id) + oprot.writeFieldEnd() + if self._from is not None: + oprot.writeFieldBegin('_from', TType.STRING, 2) + oprot.writeString(self._from.encode('utf-8') if sys.version_info[0] == 2 else self._from) + oprot.writeFieldEnd() + if self.to is not None: + oprot.writeFieldBegin('to', TType.STRING, 3) + oprot.writeString(self.to.encode('utf-8') if sys.version_info[0] == 2 else self.to) + oprot.writeFieldEnd() + if self.fromChannel is not None: + oprot.writeFieldBegin('fromChannel', TType.STRING, 4) + oprot.writeString(self.fromChannel.encode('utf-8') if sys.version_info[0] == 2 else self.fromChannel) + oprot.writeFieldEnd() + if self.toChannel is not None: + oprot.writeFieldBegin('toChannel', TType.STRING, 5) + oprot.writeString(self.toChannel.encode('utf-8') if sys.version_info[0] == 2 else self.toChannel) + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 7) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + if self.createdTime is not None: + oprot.writeFieldBegin('createdTime', TType.I64, 8) + oprot.writeI64(self.createdTime) + oprot.writeFieldEnd() + if self.content is not None: + oprot.writeFieldBegin('content', TType.MAP, 9) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.content)) + for kiter322, viter323 in self.content.items(): + oprot.writeString(kiter322.encode('utf-8') if sys.version_info[0] == 2 else kiter322) + oprot.writeString(viter323.encode('utf-8') if sys.version_info[0] == 2 else viter323) + 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) + + +class NotificationFetchResult(object): + """ + Attributes: + - fetchMode + - itemList + """ + + + def __init__(self, fetchMode=None, itemList=None,): + self.fetchMode = fetchMode + self.itemList = itemList + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.fetchMode = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.itemList = [] + (_etype327, _size324) = iprot.readListBegin() + for _i328 in range(_size324): + _elem329 = NotificationItem() + _elem329.read(iprot) + self.itemList.append(_elem329) + 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('NotificationFetchResult') + if self.fetchMode is not None: + oprot.writeFieldBegin('fetchMode', TType.I32, 1) + oprot.writeI32(self.fetchMode) + oprot.writeFieldEnd() + if self.itemList is not None: + oprot.writeFieldBegin('itemList', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.itemList)) + for iter330 in self.itemList: + iter330.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) + + +class Operation(object): + """ + Attributes: + - revision + - createdTime + - type + - reqSeq + - checksum + - status + - param1 + - param2 + - param3 + - message + """ + + + def __init__(self, revision=None, createdTime=None, type=None, reqSeq=None, checksum=None, status=None, param1=None, param2=None, param3=None, message=None,): + self.revision = revision + self.createdTime = createdTime + self.type = type + self.reqSeq = reqSeq + self.checksum = checksum + self.status = status + self.param1 = param1 + self.param2 = param2 + self.param3 = param3 + 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 == 1: + if ftype == TType.I64: + self.revision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.createdTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.reqSeq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.checksum = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.status = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 10: + 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 == 11: + 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 == 12: + if ftype == TType.STRING: + self.param3 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 20: + 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('Operation') + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 1) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + if self.createdTime is not None: + oprot.writeFieldBegin('createdTime', TType.I64, 2) + oprot.writeI64(self.createdTime) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 3) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 4) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.checksum is not None: + oprot.writeFieldBegin('checksum', TType.STRING, 5) + oprot.writeString(self.checksum.encode('utf-8') if sys.version_info[0] == 2 else self.checksum) + oprot.writeFieldEnd() + if self.status is not None: + oprot.writeFieldBegin('status', TType.I32, 7) + oprot.writeI32(self.status) + oprot.writeFieldEnd() + if self.param1 is not None: + oprot.writeFieldBegin('param1', TType.STRING, 10) + 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, 11) + 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, 12) + oprot.writeString(self.param3.encode('utf-8') if sys.version_info[0] == 2 else self.param3) + oprot.writeFieldEnd() + if self.message is not None: + oprot.writeFieldBegin('message', TType.STRUCT, 20) + 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) + + +class PaymentReservation(object): + """ + Attributes: + - receiverMid + - productId + - language + - location + - currency + - price + - appStoreCode + - messageText + - messageTemplate + - packageId + """ + + + def __init__(self, receiverMid=None, productId=None, language=None, location=None, currency=None, price=None, appStoreCode=None, messageText=None, messageTemplate=None, packageId=None,): + self.receiverMid = receiverMid + self.productId = productId + self.language = language + self.location = location + self.currency = currency + self.price = price + self.appStoreCode = appStoreCode + self.messageText = messageText + self.messageTemplate = messageTemplate + 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 == 1: + 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 == 2: + 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 == 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.location = 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.currency = 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.price = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.appStoreCode = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.messageText = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.I32: + self.messageTemplate = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 10: + 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('PaymentReservation') + if self.receiverMid is not None: + oprot.writeFieldBegin('receiverMid', TType.STRING, 1) + 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, 2) + oprot.writeString(self.productId.encode('utf-8') if sys.version_info[0] == 2 else self.productId) + 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.location is not None: + oprot.writeFieldBegin('location', TType.STRING, 4) + oprot.writeString(self.location.encode('utf-8') if sys.version_info[0] == 2 else self.location) + oprot.writeFieldEnd() + if self.currency is not None: + oprot.writeFieldBegin('currency', TType.STRING, 5) + oprot.writeString(self.currency.encode('utf-8') if sys.version_info[0] == 2 else self.currency) + oprot.writeFieldEnd() + if self.price is not None: + oprot.writeFieldBegin('price', TType.STRING, 6) + oprot.writeString(self.price.encode('utf-8') if sys.version_info[0] == 2 else self.price) + oprot.writeFieldEnd() + if self.appStoreCode is not None: + oprot.writeFieldBegin('appStoreCode', TType.I32, 7) + oprot.writeI32(self.appStoreCode) + oprot.writeFieldEnd() + if self.messageText is not None: + oprot.writeFieldBegin('messageText', TType.STRING, 8) + oprot.writeString(self.messageText.encode('utf-8') if sys.version_info[0] == 2 else self.messageText) + oprot.writeFieldEnd() + if self.messageTemplate is not None: + oprot.writeFieldBegin('messageTemplate', TType.I32, 9) + oprot.writeI32(self.messageTemplate) + oprot.writeFieldEnd() + if self.packageId is not None: + oprot.writeFieldBegin('packageId', TType.I64, 10) + 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) + + +class PaymentReservationResult(object): + """ + Attributes: + - orderId + - confirmUrl + - extras + """ + + + def __init__(self, orderId=None, confirmUrl=None, extras=None,): + self.orderId = orderId + self.confirmUrl = confirmUrl + self.extras = extras + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.orderId = 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.confirmUrl = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.MAP: + self.extras = {} + (_ktype332, _vtype333, _size331) = iprot.readMapBegin() + for _i335 in range(_size331): + _key336 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val337 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.extras[_key336] = _val337 + 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('PaymentReservationResult') + if self.orderId is not None: + oprot.writeFieldBegin('orderId', TType.STRING, 1) + oprot.writeString(self.orderId.encode('utf-8') if sys.version_info[0] == 2 else self.orderId) + oprot.writeFieldEnd() + if self.confirmUrl is not None: + oprot.writeFieldBegin('confirmUrl', TType.STRING, 2) + oprot.writeString(self.confirmUrl.encode('utf-8') if sys.version_info[0] == 2 else self.confirmUrl) + oprot.writeFieldEnd() + if self.extras is not None: + oprot.writeFieldBegin('extras', TType.MAP, 3) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.extras)) + for kiter338, viter339 in self.extras.items(): + oprot.writeString(kiter338.encode('utf-8') if sys.version_info[0] == 2 else kiter338) + oprot.writeString(viter339.encode('utf-8') if sys.version_info[0] == 2 else viter339) + 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) + + +class Product(object): + """ + Attributes: + - productId + - packageId + - version + - authorName + - onSale + - validDays + - saleType + - copyright + - title + - descriptionText + - shopOrderId + - fromMid + - toMid + - validUntil + - priceTier + - price + - currency + - currencySymbol + - paymentType + - createDate + - ownFlag + - eventType + - urlSchema + - downloadUrl + - buddyMid + - publishSince + - newFlag + - missionFlag + - categories + - missionButtonText + - missionShortDescription + - authorId + - grantedByDefault + - displayOrder + - availableForPresent + - availableForMyself + - hasAnimation + - hasSound + - recommendationsEnabled + - stickerResourceType + """ + + + def __init__(self, productId=None, packageId=None, version=None, authorName=None, onSale=None, validDays=None, saleType=None, copyright=None, title=None, descriptionText=None, shopOrderId=None, fromMid=None, toMid=None, validUntil=None, priceTier=None, price=None, currency=None, currencySymbol=None, paymentType=None, createDate=None, ownFlag=None, eventType=None, urlSchema=None, downloadUrl=None, buddyMid=None, publishSince=None, newFlag=None, missionFlag=None, categories=None, missionButtonText=None, missionShortDescription=None, authorId=None, grantedByDefault=None, displayOrder=None, availableForPresent=None, availableForMyself=None, hasAnimation=None, hasSound=None, recommendationsEnabled=None, stickerResourceType=None,): + self.productId = productId + self.packageId = packageId + self.version = version + self.authorName = authorName + self.onSale = onSale + self.validDays = validDays + self.saleType = saleType + self.copyright = copyright + self.title = title + self.descriptionText = descriptionText + self.shopOrderId = shopOrderId + self.fromMid = fromMid + self.toMid = toMid + self.validUntil = validUntil + self.priceTier = priceTier + self.price = price + self.currency = currency + self.currencySymbol = currencySymbol + self.paymentType = paymentType + self.createDate = createDate + self.ownFlag = ownFlag + self.eventType = eventType + self.urlSchema = urlSchema + self.downloadUrl = downloadUrl + self.buddyMid = buddyMid + self.publishSince = publishSince + self.newFlag = newFlag + self.missionFlag = missionFlag + self.categories = categories + self.missionButtonText = missionButtonText + self.missionShortDescription = missionShortDescription + self.authorId = authorId + self.grantedByDefault = grantedByDefault + self.displayOrder = displayOrder + self.availableForPresent = availableForPresent + self.availableForMyself = availableForMyself + self.hasAnimation = hasAnimation + self.hasSound = hasSound + self.recommendationsEnabled = recommendationsEnabled + self.stickerResourceType = stickerResourceType + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.productId = 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.packageId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.version = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.authorName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.BOOL: + self.onSale = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.validDays = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.saleType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.copyright = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.STRING: + self.title = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRING: + self.descriptionText = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I64: + self.shopOrderId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRING: + self.fromMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.STRING: + self.toMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 14: + if ftype == TType.I64: + self.validUntil = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 15: + if ftype == TType.I32: + self.priceTier = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 16: + if ftype == TType.STRING: + self.price = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 17: + if ftype == TType.STRING: + self.currency = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 18: + if ftype == TType.STRING: + self.currencySymbol = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 19: + if ftype == TType.I32: + self.paymentType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 20: + if ftype == TType.I64: + self.createDate = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 21: + if ftype == TType.BOOL: + self.ownFlag = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 22: + if ftype == TType.I32: + self.eventType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 23: + if ftype == TType.STRING: + self.urlSchema = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 24: + if ftype == TType.STRING: + self.downloadUrl = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 25: + 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 == 26: + if ftype == TType.I64: + self.publishSince = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 27: + if ftype == TType.BOOL: + self.newFlag = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 28: + if ftype == TType.BOOL: + self.missionFlag = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 29: + if ftype == TType.LIST: + self.categories = [] + (_etype343, _size340) = iprot.readListBegin() + for _i344 in range(_size340): + _elem345 = ProductCategory() + _elem345.read(iprot) + self.categories.append(_elem345) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 30: + if ftype == TType.STRING: + self.missionButtonText = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 31: + if ftype == TType.STRING: + self.missionShortDescription = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 32: + if ftype == TType.STRING: + self.authorId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 41: + if ftype == TType.BOOL: + self.grantedByDefault = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 42: + if ftype == TType.I32: + self.displayOrder = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 43: + if ftype == TType.BOOL: + self.availableForPresent = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 44: + if ftype == TType.BOOL: + self.availableForMyself = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 51: + if ftype == TType.BOOL: + self.hasAnimation = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 52: + if ftype == TType.BOOL: + self.hasSound = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 53: + if ftype == TType.BOOL: + self.recommendationsEnabled = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 54: + if ftype == TType.I32: + self.stickerResourceType = 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('Product') + if self.productId is not None: + oprot.writeFieldBegin('productId', TType.STRING, 1) + oprot.writeString(self.productId.encode('utf-8') if sys.version_info[0] == 2 else self.productId) + oprot.writeFieldEnd() + if self.packageId is not None: + oprot.writeFieldBegin('packageId', TType.I64, 2) + oprot.writeI64(self.packageId) + oprot.writeFieldEnd() + if self.version is not None: + oprot.writeFieldBegin('version', TType.I32, 3) + oprot.writeI32(self.version) + oprot.writeFieldEnd() + if self.authorName is not None: + oprot.writeFieldBegin('authorName', TType.STRING, 4) + oprot.writeString(self.authorName.encode('utf-8') if sys.version_info[0] == 2 else self.authorName) + oprot.writeFieldEnd() + if self.onSale is not None: + oprot.writeFieldBegin('onSale', TType.BOOL, 5) + oprot.writeBool(self.onSale) + oprot.writeFieldEnd() + if self.validDays is not None: + oprot.writeFieldBegin('validDays', TType.I32, 6) + oprot.writeI32(self.validDays) + oprot.writeFieldEnd() + if self.saleType is not None: + oprot.writeFieldBegin('saleType', TType.I32, 7) + oprot.writeI32(self.saleType) + oprot.writeFieldEnd() + if self.copyright is not None: + oprot.writeFieldBegin('copyright', TType.STRING, 8) + oprot.writeString(self.copyright.encode('utf-8') if sys.version_info[0] == 2 else self.copyright) + oprot.writeFieldEnd() + if self.title is not None: + oprot.writeFieldBegin('title', TType.STRING, 9) + oprot.writeString(self.title.encode('utf-8') if sys.version_info[0] == 2 else self.title) + oprot.writeFieldEnd() + if self.descriptionText is not None: + oprot.writeFieldBegin('descriptionText', TType.STRING, 10) + oprot.writeString(self.descriptionText.encode('utf-8') if sys.version_info[0] == 2 else self.descriptionText) + oprot.writeFieldEnd() + if self.shopOrderId is not None: + oprot.writeFieldBegin('shopOrderId', TType.I64, 11) + oprot.writeI64(self.shopOrderId) + oprot.writeFieldEnd() + if self.fromMid is not None: + oprot.writeFieldBegin('fromMid', TType.STRING, 12) + oprot.writeString(self.fromMid.encode('utf-8') if sys.version_info[0] == 2 else self.fromMid) + oprot.writeFieldEnd() + if self.toMid is not None: + oprot.writeFieldBegin('toMid', TType.STRING, 13) + oprot.writeString(self.toMid.encode('utf-8') if sys.version_info[0] == 2 else self.toMid) + oprot.writeFieldEnd() + if self.validUntil is not None: + oprot.writeFieldBegin('validUntil', TType.I64, 14) + oprot.writeI64(self.validUntil) + oprot.writeFieldEnd() + if self.priceTier is not None: + oprot.writeFieldBegin('priceTier', TType.I32, 15) + oprot.writeI32(self.priceTier) + oprot.writeFieldEnd() + if self.price is not None: + oprot.writeFieldBegin('price', TType.STRING, 16) + oprot.writeString(self.price.encode('utf-8') if sys.version_info[0] == 2 else self.price) + oprot.writeFieldEnd() + if self.currency is not None: + oprot.writeFieldBegin('currency', TType.STRING, 17) + oprot.writeString(self.currency.encode('utf-8') if sys.version_info[0] == 2 else self.currency) + oprot.writeFieldEnd() + if self.currencySymbol is not None: + oprot.writeFieldBegin('currencySymbol', TType.STRING, 18) + oprot.writeString(self.currencySymbol.encode('utf-8') if sys.version_info[0] == 2 else self.currencySymbol) + oprot.writeFieldEnd() + if self.paymentType is not None: + oprot.writeFieldBegin('paymentType', TType.I32, 19) + oprot.writeI32(self.paymentType) + oprot.writeFieldEnd() + if self.createDate is not None: + oprot.writeFieldBegin('createDate', TType.I64, 20) + oprot.writeI64(self.createDate) + oprot.writeFieldEnd() + if self.ownFlag is not None: + oprot.writeFieldBegin('ownFlag', TType.BOOL, 21) + oprot.writeBool(self.ownFlag) + oprot.writeFieldEnd() + if self.eventType is not None: + oprot.writeFieldBegin('eventType', TType.I32, 22) + oprot.writeI32(self.eventType) + oprot.writeFieldEnd() + if self.urlSchema is not None: + oprot.writeFieldBegin('urlSchema', TType.STRING, 23) + oprot.writeString(self.urlSchema.encode('utf-8') if sys.version_info[0] == 2 else self.urlSchema) + oprot.writeFieldEnd() + if self.downloadUrl is not None: + oprot.writeFieldBegin('downloadUrl', TType.STRING, 24) + oprot.writeString(self.downloadUrl.encode('utf-8') if sys.version_info[0] == 2 else self.downloadUrl) + oprot.writeFieldEnd() + if self.buddyMid is not None: + oprot.writeFieldBegin('buddyMid', TType.STRING, 25) + oprot.writeString(self.buddyMid.encode('utf-8') if sys.version_info[0] == 2 else self.buddyMid) + oprot.writeFieldEnd() + if self.publishSince is not None: + oprot.writeFieldBegin('publishSince', TType.I64, 26) + oprot.writeI64(self.publishSince) + oprot.writeFieldEnd() + if self.newFlag is not None: + oprot.writeFieldBegin('newFlag', TType.BOOL, 27) + oprot.writeBool(self.newFlag) + oprot.writeFieldEnd() + if self.missionFlag is not None: + oprot.writeFieldBegin('missionFlag', TType.BOOL, 28) + oprot.writeBool(self.missionFlag) + oprot.writeFieldEnd() + if self.categories is not None: + oprot.writeFieldBegin('categories', TType.LIST, 29) + oprot.writeListBegin(TType.STRUCT, len(self.categories)) + for iter346 in self.categories: + iter346.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.missionButtonText is not None: + oprot.writeFieldBegin('missionButtonText', TType.STRING, 30) + oprot.writeString(self.missionButtonText.encode('utf-8') if sys.version_info[0] == 2 else self.missionButtonText) + oprot.writeFieldEnd() + if self.missionShortDescription is not None: + oprot.writeFieldBegin('missionShortDescription', TType.STRING, 31) + oprot.writeString(self.missionShortDescription.encode('utf-8') if sys.version_info[0] == 2 else self.missionShortDescription) + oprot.writeFieldEnd() + if self.authorId is not None: + oprot.writeFieldBegin('authorId', TType.STRING, 32) + oprot.writeString(self.authorId.encode('utf-8') if sys.version_info[0] == 2 else self.authorId) + oprot.writeFieldEnd() + if self.grantedByDefault is not None: + oprot.writeFieldBegin('grantedByDefault', TType.BOOL, 41) + oprot.writeBool(self.grantedByDefault) + oprot.writeFieldEnd() + if self.displayOrder is not None: + oprot.writeFieldBegin('displayOrder', TType.I32, 42) + oprot.writeI32(self.displayOrder) + oprot.writeFieldEnd() + if self.availableForPresent is not None: + oprot.writeFieldBegin('availableForPresent', TType.BOOL, 43) + oprot.writeBool(self.availableForPresent) + oprot.writeFieldEnd() + if self.availableForMyself is not None: + oprot.writeFieldBegin('availableForMyself', TType.BOOL, 44) + oprot.writeBool(self.availableForMyself) + oprot.writeFieldEnd() + if self.hasAnimation is not None: + oprot.writeFieldBegin('hasAnimation', TType.BOOL, 51) + oprot.writeBool(self.hasAnimation) + oprot.writeFieldEnd() + if self.hasSound is not None: + oprot.writeFieldBegin('hasSound', TType.BOOL, 52) + oprot.writeBool(self.hasSound) + oprot.writeFieldEnd() + if self.recommendationsEnabled is not None: + oprot.writeFieldBegin('recommendationsEnabled', TType.BOOL, 53) + oprot.writeBool(self.recommendationsEnabled) + oprot.writeFieldEnd() + if self.stickerResourceType is not None: + oprot.writeFieldBegin('stickerResourceType', TType.I32, 54) + oprot.writeI32(self.stickerResourceType) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ProductList(object): + """ + Attributes: + - hasNext + - bannerSequence + - bannerTargetType + - bannerTargetPath + - productList + - bannerLang + """ + + + def __init__(self, hasNext=None, bannerSequence=None, bannerTargetType=None, bannerTargetPath=None, productList=None, bannerLang=None,): + self.hasNext = hasNext + self.bannerSequence = bannerSequence + self.bannerTargetType = bannerTargetType + self.bannerTargetPath = bannerTargetPath + self.productList = productList + self.bannerLang = bannerLang + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.BOOL: + self.hasNext = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.bannerSequence = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.bannerTargetType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.bannerTargetPath = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.LIST: + self.productList = [] + (_etype350, _size347) = iprot.readListBegin() + for _i351 in range(_size347): + _elem352 = Product() + _elem352.read(iprot) + self.productList.append(_elem352) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.bannerLang = 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('ProductList') + if self.hasNext is not None: + oprot.writeFieldBegin('hasNext', TType.BOOL, 1) + oprot.writeBool(self.hasNext) + oprot.writeFieldEnd() + if self.bannerSequence is not None: + oprot.writeFieldBegin('bannerSequence', TType.I64, 4) + oprot.writeI64(self.bannerSequence) + oprot.writeFieldEnd() + if self.bannerTargetType is not None: + oprot.writeFieldBegin('bannerTargetType', TType.I32, 5) + oprot.writeI32(self.bannerTargetType) + oprot.writeFieldEnd() + if self.bannerTargetPath is not None: + oprot.writeFieldBegin('bannerTargetPath', TType.STRING, 6) + oprot.writeString(self.bannerTargetPath.encode('utf-8') if sys.version_info[0] == 2 else self.bannerTargetPath) + oprot.writeFieldEnd() + if self.productList is not None: + oprot.writeFieldBegin('productList', TType.LIST, 7) + oprot.writeListBegin(TType.STRUCT, len(self.productList)) + for iter353 in self.productList: + iter353.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.bannerLang is not None: + oprot.writeFieldBegin('bannerLang', TType.STRING, 8) + oprot.writeString(self.bannerLang.encode('utf-8') if sys.version_info[0] == 2 else self.bannerLang) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 StickerIdRange(object): + """ + Attributes: + - start + - size + """ + + + def __init__(self, start=None, size=None,): + self.start = start + self.size = size + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.start = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.size = 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('StickerIdRange') + if self.start is not None: + oprot.writeFieldBegin('start', TType.I64, 1) + oprot.writeI64(self.start) + oprot.writeFieldEnd() + if self.size is not None: + oprot.writeFieldBegin('size', TType.I32, 2) + oprot.writeI32(self.size) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ProductSimple(object): + """ + Attributes: + - productId + - packageId + - version + - onSale + - validUntil + - stickerIdRanges + - grantedByDefault + - displayOrder + """ + + + def __init__(self, productId=None, packageId=None, version=None, onSale=None, validUntil=None, stickerIdRanges=None, grantedByDefault=None, displayOrder=None,): + self.productId = productId + self.packageId = packageId + self.version = version + self.onSale = onSale + self.validUntil = validUntil + self.stickerIdRanges = stickerIdRanges + self.grantedByDefault = grantedByDefault + self.displayOrder = displayOrder + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.productId = 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.packageId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.version = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BOOL: + self.onSale = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.validUntil = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.LIST: + self.stickerIdRanges = [] + (_etype357, _size354) = iprot.readListBegin() + for _i358 in range(_size354): + _elem359 = StickerIdRange() + _elem359.read(iprot) + self.stickerIdRanges.append(_elem359) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 41: + if ftype == TType.BOOL: + self.grantedByDefault = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 42: + if ftype == TType.I32: + self.displayOrder = 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('ProductSimple') + if self.productId is not None: + oprot.writeFieldBegin('productId', TType.STRING, 1) + oprot.writeString(self.productId.encode('utf-8') if sys.version_info[0] == 2 else self.productId) + oprot.writeFieldEnd() + if self.packageId is not None: + oprot.writeFieldBegin('packageId', TType.I64, 2) + oprot.writeI64(self.packageId) + oprot.writeFieldEnd() + if self.version is not None: + oprot.writeFieldBegin('version', TType.I32, 3) + oprot.writeI32(self.version) + oprot.writeFieldEnd() + if self.onSale is not None: + oprot.writeFieldBegin('onSale', TType.BOOL, 4) + oprot.writeBool(self.onSale) + oprot.writeFieldEnd() + if self.validUntil is not None: + oprot.writeFieldBegin('validUntil', TType.I64, 5) + oprot.writeI64(self.validUntil) + oprot.writeFieldEnd() + if self.stickerIdRanges is not None: + oprot.writeFieldBegin('stickerIdRanges', TType.LIST, 10) + oprot.writeListBegin(TType.STRUCT, len(self.stickerIdRanges)) + for iter360 in self.stickerIdRanges: + iter360.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.grantedByDefault is not None: + oprot.writeFieldBegin('grantedByDefault', TType.BOOL, 41) + oprot.writeBool(self.grantedByDefault) + oprot.writeFieldEnd() + if self.displayOrder is not None: + oprot.writeFieldBegin('displayOrder', TType.I32, 42) + oprot.writeI32(self.displayOrder) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ProductSimpleList(object): + """ + Attributes: + - hasNext + - reinvokeHour + - lastVersionSeq + - productList + - recentNewReleaseDate + - recentEventReleaseDate + """ + + + def __init__(self, hasNext=None, reinvokeHour=None, lastVersionSeq=None, productList=None, recentNewReleaseDate=None, recentEventReleaseDate=None,): + self.hasNext = hasNext + self.reinvokeHour = reinvokeHour + self.lastVersionSeq = lastVersionSeq + self.productList = productList + self.recentNewReleaseDate = recentNewReleaseDate + self.recentEventReleaseDate = recentEventReleaseDate + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.BOOL: + self.hasNext = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.reinvokeHour = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.lastVersionSeq = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.productList = [] + (_etype364, _size361) = iprot.readListBegin() + for _i365 in range(_size361): + _elem366 = ProductSimple() + _elem366.read(iprot) + self.productList.append(_elem366) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.recentNewReleaseDate = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I64: + self.recentEventReleaseDate = 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('ProductSimpleList') + if self.hasNext is not None: + oprot.writeFieldBegin('hasNext', TType.BOOL, 1) + oprot.writeBool(self.hasNext) + oprot.writeFieldEnd() + if self.reinvokeHour is not None: + oprot.writeFieldBegin('reinvokeHour', TType.I32, 2) + oprot.writeI32(self.reinvokeHour) + oprot.writeFieldEnd() + if self.lastVersionSeq is not None: + oprot.writeFieldBegin('lastVersionSeq', TType.I64, 3) + oprot.writeI64(self.lastVersionSeq) + oprot.writeFieldEnd() + if self.productList is not None: + oprot.writeFieldBegin('productList', TType.LIST, 4) + oprot.writeListBegin(TType.STRUCT, len(self.productList)) + for iter367 in self.productList: + iter367.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.recentNewReleaseDate is not None: + oprot.writeFieldBegin('recentNewReleaseDate', TType.I64, 5) + oprot.writeI64(self.recentNewReleaseDate) + oprot.writeFieldEnd() + if self.recentEventReleaseDate is not None: + oprot.writeFieldBegin('recentEventReleaseDate', TType.I64, 6) + oprot.writeI64(self.recentEventReleaseDate) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 Profile(object): + """ + Attributes: + - mid + - userid + - phone + - email + - regionCode + - displayName + - phoneticName + - pictureStatus + - thumbnailUrl + - statusMessage + - allowSearchByUserid + - allowSearchByEmail + - picturePath + - musicProfile + - videoProfile + """ + + + def __init__(self, mid=None, userid=None, phone=None, email=None, regionCode=None, displayName=None, phoneticName=None, pictureStatus=None, thumbnailUrl=None, statusMessage=None, allowSearchByUserid=None, allowSearchByEmail=None, picturePath=None, musicProfile=None, videoProfile=None,): + self.mid = mid + self.userid = userid + self.phone = phone + self.email = email + self.regionCode = regionCode + self.displayName = displayName + self.phoneticName = phoneticName + self.pictureStatus = pictureStatus + self.thumbnailUrl = thumbnailUrl + self.statusMessage = statusMessage + self.allowSearchByUserid = allowSearchByUserid + self.allowSearchByEmail = allowSearchByEmail + self.picturePath = picturePath + self.musicProfile = musicProfile + self.videoProfile = videoProfile + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.userid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRING: + self.phone = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.email = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRING: + self.regionCode = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 20: + 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 == 21: + if ftype == TType.STRING: + self.phoneticName = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 22: + if ftype == TType.STRING: + self.pictureStatus = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 23: + if ftype == TType.STRING: + self.thumbnailUrl = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 24: + 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 == 31: + if ftype == TType.BOOL: + self.allowSearchByUserid = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 32: + if ftype == TType.BOOL: + self.allowSearchByEmail = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 33: + if ftype == TType.STRING: + self.picturePath = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 34: + if ftype == TType.STRING: + self.musicProfile = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 35: + if ftype == TType.STRING: + self.videoProfile = 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('Profile') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.userid is not None: + oprot.writeFieldBegin('userid', TType.STRING, 3) + oprot.writeString(self.userid.encode('utf-8') if sys.version_info[0] == 2 else self.userid) + oprot.writeFieldEnd() + if self.phone is not None: + oprot.writeFieldBegin('phone', TType.STRING, 10) + oprot.writeString(self.phone.encode('utf-8') if sys.version_info[0] == 2 else self.phone) + oprot.writeFieldEnd() + if self.email is not None: + oprot.writeFieldBegin('email', TType.STRING, 11) + oprot.writeString(self.email.encode('utf-8') if sys.version_info[0] == 2 else self.email) + oprot.writeFieldEnd() + if self.regionCode is not None: + oprot.writeFieldBegin('regionCode', TType.STRING, 12) + oprot.writeString(self.regionCode.encode('utf-8') if sys.version_info[0] == 2 else self.regionCode) + oprot.writeFieldEnd() + if self.displayName is not None: + oprot.writeFieldBegin('displayName', TType.STRING, 20) + oprot.writeString(self.displayName.encode('utf-8') if sys.version_info[0] == 2 else self.displayName) + oprot.writeFieldEnd() + if self.phoneticName is not None: + oprot.writeFieldBegin('phoneticName', TType.STRING, 21) + oprot.writeString(self.phoneticName.encode('utf-8') if sys.version_info[0] == 2 else self.phoneticName) + oprot.writeFieldEnd() + if self.pictureStatus is not None: + oprot.writeFieldBegin('pictureStatus', TType.STRING, 22) + oprot.writeString(self.pictureStatus.encode('utf-8') if sys.version_info[0] == 2 else self.pictureStatus) + oprot.writeFieldEnd() + if self.thumbnailUrl is not None: + oprot.writeFieldBegin('thumbnailUrl', TType.STRING, 23) + oprot.writeString(self.thumbnailUrl.encode('utf-8') if sys.version_info[0] == 2 else self.thumbnailUrl) + oprot.writeFieldEnd() + if self.statusMessage is not None: + oprot.writeFieldBegin('statusMessage', TType.STRING, 24) + oprot.writeString(self.statusMessage.encode('utf-8') if sys.version_info[0] == 2 else self.statusMessage) + oprot.writeFieldEnd() + if self.allowSearchByUserid is not None: + oprot.writeFieldBegin('allowSearchByUserid', TType.BOOL, 31) + oprot.writeBool(self.allowSearchByUserid) + oprot.writeFieldEnd() + if self.allowSearchByEmail is not None: + oprot.writeFieldBegin('allowSearchByEmail', TType.BOOL, 32) + oprot.writeBool(self.allowSearchByEmail) + oprot.writeFieldEnd() + if self.picturePath is not None: + oprot.writeFieldBegin('picturePath', TType.STRING, 33) + oprot.writeString(self.picturePath.encode('utf-8') if sys.version_info[0] == 2 else self.picturePath) + oprot.writeFieldEnd() + if self.musicProfile is not None: + oprot.writeFieldBegin('musicProfile', TType.STRING, 34) + oprot.writeString(self.musicProfile.encode('utf-8') if sys.version_info[0] == 2 else self.musicProfile) + oprot.writeFieldEnd() + if self.videoProfile is not None: + oprot.writeFieldBegin('videoProfile', TType.STRING, 35) + oprot.writeString(self.videoProfile.encode('utf-8') if sys.version_info[0] == 2 else self.videoProfile) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ProximityMatchCandidateResult(object): + """ + Attributes: + - users + - buddies + """ + + + def __init__(self, users=None, buddies=None,): + self.users = users + self.buddies = buddies + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.users = [] + (_etype371, _size368) = iprot.readListBegin() + for _i372 in range(_size368): + _elem373 = Contact() + _elem373.read(iprot) + self.users.append(_elem373) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.buddies = [] + (_etype377, _size374) = iprot.readListBegin() + for _i378 in range(_size374): + _elem379 = Contact() + _elem379.read(iprot) + self.buddies.append(_elem379) + 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('ProximityMatchCandidateResult') + if self.users is not None: + oprot.writeFieldBegin('users', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.users)) + for iter380 in self.users: + iter380.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.buddies is not None: + oprot.writeFieldBegin('buddies', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.buddies)) + for iter381 in self.buddies: + iter381.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) + + +class RegisterWithSnsIdResult(object): + """ + Attributes: + - authToken + - userCreated + """ + + + def __init__(self, authToken=None, userCreated=None,): + self.authToken = authToken + self.userCreated = userCreated + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.authToken = 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.userCreated = 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('RegisterWithSnsIdResult') + if self.authToken is not None: + oprot.writeFieldBegin('authToken', TType.STRING, 1) + oprot.writeString(self.authToken.encode('utf-8') if sys.version_info[0] == 2 else self.authToken) + oprot.writeFieldEnd() + if self.userCreated is not None: + oprot.writeFieldBegin('userCreated', TType.BOOL, 2) + oprot.writeBool(self.userCreated) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 RequestTokenResponse(object): + """ + Attributes: + - requestToken + - returnUrl + """ + + + def __init__(self, requestToken=None, returnUrl=None,): + self.requestToken = requestToken + 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.requestToken = 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.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('RequestTokenResponse') + if self.requestToken is not None: + oprot.writeFieldBegin('requestToken', TType.STRING, 1) + oprot.writeString(self.requestToken.encode('utf-8') if sys.version_info[0] == 2 else self.requestToken) + oprot.writeFieldEnd() + if self.returnUrl is not None: + oprot.writeFieldBegin('returnUrl', TType.STRING, 2) + 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) + + +class Room(object): + """ + Attributes: + - mid + - createdTime + - contacts + - notificationDisabled + - memberMids + """ + + + def __init__(self, mid=None, createdTime=None, contacts=None, notificationDisabled=None, memberMids=None,): + self.mid = mid + self.createdTime = createdTime + self.contacts = contacts + self.notificationDisabled = notificationDisabled + self.memberMids = memberMids + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.createdTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.LIST: + self.contacts = [] + (_etype385, _size382) = iprot.readListBegin() + for _i386 in range(_size382): + _elem387 = Contact() + _elem387.read(iprot) + self.contacts.append(_elem387) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 31: + if ftype == TType.BOOL: + self.notificationDisabled = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 40: + if ftype == TType.LIST: + self.memberMids = [] + (_etype391, _size388) = iprot.readListBegin() + for _i392 in range(_size388): + _elem393 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.memberMids.append(_elem393) + 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('Room') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.createdTime is not None: + oprot.writeFieldBegin('createdTime', TType.I64, 2) + oprot.writeI64(self.createdTime) + oprot.writeFieldEnd() + if self.contacts is not None: + oprot.writeFieldBegin('contacts', TType.LIST, 10) + oprot.writeListBegin(TType.STRUCT, len(self.contacts)) + for iter394 in self.contacts: + iter394.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.notificationDisabled is not None: + oprot.writeFieldBegin('notificationDisabled', TType.BOOL, 31) + oprot.writeBool(self.notificationDisabled) + oprot.writeFieldEnd() + if self.memberMids is not None: + oprot.writeFieldBegin('memberMids', TType.LIST, 40) + oprot.writeListBegin(TType.STRING, len(self.memberMids)) + for iter395 in self.memberMids: + oprot.writeString(iter395.encode('utf-8') if sys.version_info[0] == 2 else iter395) + 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) + + +class SuggestDictionary(object): + """ + Attributes: + - language + - name + """ + + + def __init__(self, language=None, name=None,): + self.language = language + self.name = name + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.language = 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.name = 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('SuggestDictionary') + if self.language is not None: + oprot.writeFieldBegin('language', TType.STRING, 1) + oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language) + oprot.writeFieldEnd() + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 2) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SuggestItemDictionaryIncrement(object): + """ + Attributes: + - status + - revision + - scheme + - data + """ + + + def __init__(self, status=None, revision=None, scheme=None, data=None,): + self.status = status + self.revision = revision + self.scheme = scheme + self.data = data + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.status = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.revision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.scheme = 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.data = 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('SuggestItemDictionaryIncrement') + if self.status is not None: + oprot.writeFieldBegin('status', TType.I32, 1) + oprot.writeI32(self.status) + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 2) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + if self.scheme is not None: + oprot.writeFieldBegin('scheme', TType.STRING, 3) + oprot.writeString(self.scheme.encode('utf-8') if sys.version_info[0] == 2 else self.scheme) + oprot.writeFieldEnd() + if self.data is not None: + oprot.writeFieldBegin('data', TType.STRING, 4) + oprot.writeBinary(self.data) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SuggestTagDictionaryIncrement(object): + """ + Attributes: + - status + - language + - revision + - scheme + - data + """ + + + def __init__(self, status=None, language=None, revision=None, scheme=None, data=None,): + self.status = status + self.language = language + self.revision = revision + self.scheme = scheme + self.data = data + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.status = iprot.readI32() + else: + iprot.skip(ftype) + elif 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.I64: + self.revision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.scheme = 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.data = 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('SuggestTagDictionaryIncrement') + if self.status is not None: + oprot.writeFieldBegin('status', TType.I32, 1) + oprot.writeI32(self.status) + oprot.writeFieldEnd() + 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.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 3) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + if self.scheme is not None: + oprot.writeFieldBegin('scheme', TType.STRING, 4) + oprot.writeString(self.scheme.encode('utf-8') if sys.version_info[0] == 2 else self.scheme) + oprot.writeFieldEnd() + if self.data is not None: + oprot.writeFieldBegin('data', TType.STRING, 5) + oprot.writeBinary(self.data) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SuggestDictionaryIncrements(object): + """ + Attributes: + - itemIncrement + - tagIncrements + """ + + + def __init__(self, itemIncrement=None, tagIncrements=None,): + self.itemIncrement = itemIncrement + self.tagIncrements = tagIncrements + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.itemIncrement = SuggestItemDictionaryIncrement() + self.itemIncrement.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.tagIncrements = [] + (_etype399, _size396) = iprot.readListBegin() + for _i400 in range(_size396): + _elem401 = SuggestTagDictionaryIncrement() + _elem401.read(iprot) + self.tagIncrements.append(_elem401) + 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('SuggestDictionaryIncrements') + if self.itemIncrement is not None: + oprot.writeFieldBegin('itemIncrement', TType.STRUCT, 1) + self.itemIncrement.write(oprot) + oprot.writeFieldEnd() + if self.tagIncrements is not None: + oprot.writeFieldBegin('tagIncrements', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.tagIncrements)) + for iter402 in self.tagIncrements: + iter402.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) + + +class SuggestItemDictionaryRevision(object): + """ + Attributes: + - revision + - scheme + """ + + + def __init__(self, revision=None, scheme=None,): + self.revision = revision + self.scheme = scheme + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.revision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.scheme = 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('SuggestItemDictionaryRevision') + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 1) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + if self.scheme is not None: + oprot.writeFieldBegin('scheme', TType.STRING, 2) + oprot.writeString(self.scheme.encode('utf-8') if sys.version_info[0] == 2 else self.scheme) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SuggestTagDictionaryRevision(object): + """ + Attributes: + - language + - revision + - scheme + """ + + + def __init__(self, language=None, revision=None, scheme=None,): + self.language = language + self.revision = revision + self.scheme = scheme + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.language = 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.revision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.scheme = 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('SuggestTagDictionaryRevision') + if self.language is not None: + oprot.writeFieldBegin('language', TType.STRING, 1) + oprot.writeString(self.language.encode('utf-8') if sys.version_info[0] == 2 else self.language) + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 2) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + if self.scheme is not None: + oprot.writeFieldBegin('scheme', TType.STRING, 3) + oprot.writeString(self.scheme.encode('utf-8') if sys.version_info[0] == 2 else self.scheme) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SuggestDictionaryRevisions(object): + """ + Attributes: + - itemRevision + - tagRevisions + """ + + + def __init__(self, itemRevision=None, tagRevisions=None,): + self.itemRevision = itemRevision + self.tagRevisions = tagRevisions + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.itemRevision = SuggestItemDictionaryRevision() + self.itemRevision.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.tagRevisions = [] + (_etype406, _size403) = iprot.readListBegin() + for _i407 in range(_size403): + _elem408 = SuggestTagDictionaryRevision() + _elem408.read(iprot) + self.tagRevisions.append(_elem408) + 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('SuggestDictionaryRevisions') + if self.itemRevision is not None: + oprot.writeFieldBegin('itemRevision', TType.STRUCT, 1) + self.itemRevision.write(oprot) + oprot.writeFieldEnd() + if self.tagRevisions is not None: + oprot.writeFieldBegin('tagRevisions', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.tagRevisions)) + for iter409 in self.tagRevisions: + iter409.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) + + +class SuggestDictionarySettings(object): + """ + Attributes: + - revision + - newRevision + - dictionaries + - preloadedDictionaries + """ + + + def __init__(self, revision=None, newRevision=None, dictionaries=None, preloadedDictionaries=None,): + self.revision = revision + self.newRevision = newRevision + self.dictionaries = dictionaries + self.preloadedDictionaries = preloadedDictionaries + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.revision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.newRevision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.dictionaries = [] + (_etype413, _size410) = iprot.readListBegin() + for _i414 in range(_size410): + _elem415 = SuggestDictionary() + _elem415.read(iprot) + self.dictionaries.append(_elem415) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.preloadedDictionaries = [] + (_etype419, _size416) = iprot.readListBegin() + for _i420 in range(_size416): + _elem421 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.preloadedDictionaries.append(_elem421) + 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('SuggestDictionarySettings') + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 1) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + if self.newRevision is not None: + oprot.writeFieldBegin('newRevision', TType.I64, 2) + oprot.writeI64(self.newRevision) + oprot.writeFieldEnd() + if self.dictionaries is not None: + oprot.writeFieldBegin('dictionaries', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.dictionaries)) + for iter422 in self.dictionaries: + iter422.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.preloadedDictionaries is not None: + oprot.writeFieldBegin('preloadedDictionaries', TType.LIST, 4) + oprot.writeListBegin(TType.STRING, len(self.preloadedDictionaries)) + for iter423 in self.preloadedDictionaries: + oprot.writeString(iter423.encode('utf-8') if sys.version_info[0] == 2 else iter423) + 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) + + +class PhoneInfoForChannel(object): + """ + Attributes: + - mid + - normalizedPhoneNumber + - allowedToSearchByPhoneNumber + - allowedToReceiveMessageFromNonFriend + - region + """ + + + def __init__(self, mid=None, normalizedPhoneNumber=None, allowedToSearchByPhoneNumber=None, allowedToReceiveMessageFromNonFriend=None, region=None,): + self.mid = mid + self.normalizedPhoneNumber = normalizedPhoneNumber + self.allowedToSearchByPhoneNumber = allowedToSearchByPhoneNumber + self.allowedToReceiveMessageFromNonFriend = allowedToReceiveMessageFromNonFriend + self.region = region + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.normalizedPhoneNumber = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.BOOL: + self.allowedToSearchByPhoneNumber = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BOOL: + self.allowedToReceiveMessageFromNonFriend = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.region = 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('PhoneInfoForChannel') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.normalizedPhoneNumber is not None: + oprot.writeFieldBegin('normalizedPhoneNumber', TType.STRING, 2) + oprot.writeString(self.normalizedPhoneNumber.encode('utf-8') if sys.version_info[0] == 2 else self.normalizedPhoneNumber) + oprot.writeFieldEnd() + if self.allowedToSearchByPhoneNumber is not None: + oprot.writeFieldBegin('allowedToSearchByPhoneNumber', TType.BOOL, 3) + oprot.writeBool(self.allowedToSearchByPhoneNumber) + oprot.writeFieldEnd() + if self.allowedToReceiveMessageFromNonFriend is not None: + oprot.writeFieldBegin('allowedToReceiveMessageFromNonFriend', TType.BOOL, 4) + oprot.writeBool(self.allowedToReceiveMessageFromNonFriend) + oprot.writeFieldEnd() + if self.region is not None: + oprot.writeFieldBegin('region', TType.STRING, 5) + oprot.writeString(self.region.encode('utf-8') if sys.version_info[0] == 2 else self.region) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 PhoneVerificationResult(object): + """ + Attributes: + - verificationResult + - accountMigrationCheckType + - recommendAddFriends + """ + + + def __init__(self, verificationResult=None, accountMigrationCheckType=None, recommendAddFriends=None,): + self.verificationResult = verificationResult + self.accountMigrationCheckType = accountMigrationCheckType + self.recommendAddFriends = recommendAddFriends + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.verificationResult = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.accountMigrationCheckType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.BOOL: + self.recommendAddFriends = 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('PhoneVerificationResult') + if self.verificationResult is not None: + oprot.writeFieldBegin('verificationResult', TType.I32, 1) + oprot.writeI32(self.verificationResult) + oprot.writeFieldEnd() + if self.accountMigrationCheckType is not None: + oprot.writeFieldBegin('accountMigrationCheckType', TType.I32, 2) + oprot.writeI32(self.accountMigrationCheckType) + oprot.writeFieldEnd() + if self.recommendAddFriends is not None: + oprot.writeFieldBegin('recommendAddFriends', TType.BOOL, 3) + oprot.writeBool(self.recommendAddFriends) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 PlaceSearchInfo(object): + """ + Attributes: + - name + - address + - latitude + - longitude + """ + + + def __init__(self, name=None, address=None, latitude=None, longitude=None,): + self.name = name + self.address = address + self.latitude = latitude + self.longitude = longitude + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.name = 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.address = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.DOUBLE: + self.latitude = iprot.readDouble() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.DOUBLE: + self.longitude = iprot.readDouble() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('PlaceSearchInfo') + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + if self.address is not None: + oprot.writeFieldBegin('address', TType.STRING, 2) + oprot.writeString(self.address.encode('utf-8') if sys.version_info[0] == 2 else self.address) + oprot.writeFieldEnd() + if self.latitude is not None: + oprot.writeFieldBegin('latitude', TType.DOUBLE, 3) + oprot.writeDouble(self.latitude) + oprot.writeFieldEnd() + if self.longitude is not None: + oprot.writeFieldBegin('longitude', TType.DOUBLE, 4) + oprot.writeDouble(self.longitude) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 RSAKey(object): + """ + Attributes: + - keynm + - nvalue + - evalue + - sessionKey + """ + + + def __init__(self, keynm=None, nvalue=None, evalue=None, sessionKey=None,): + self.keynm = keynm + self.nvalue = nvalue + self.evalue = evalue + self.sessionKey = sessionKey + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.keynm = 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.nvalue = 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.evalue = 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.sessionKey = 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('RSAKey') + if self.keynm is not None: + oprot.writeFieldBegin('keynm', TType.STRING, 1) + oprot.writeString(self.keynm.encode('utf-8') if sys.version_info[0] == 2 else self.keynm) + oprot.writeFieldEnd() + if self.nvalue is not None: + oprot.writeFieldBegin('nvalue', TType.STRING, 2) + oprot.writeString(self.nvalue.encode('utf-8') if sys.version_info[0] == 2 else self.nvalue) + oprot.writeFieldEnd() + if self.evalue is not None: + oprot.writeFieldBegin('evalue', TType.STRING, 3) + oprot.writeString(self.evalue.encode('utf-8') if sys.version_info[0] == 2 else self.evalue) + oprot.writeFieldEnd() + if self.sessionKey is not None: + oprot.writeFieldBegin('sessionKey', TType.STRING, 4) + oprot.writeString(self.sessionKey.encode('utf-8') if sys.version_info[0] == 2 else self.sessionKey) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SecurityCenterResult(object): + """ + Attributes: + - uri + - token + - cookiePath + - skip + """ + + + def __init__(self, uri=None, token=None, cookiePath=None, skip=None,): + self.uri = uri + self.token = token + self.cookiePath = cookiePath + self.skip = skip + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.uri = 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.token = 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.cookiePath = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BOOL: + self.skip = 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('SecurityCenterResult') + if self.uri is not None: + oprot.writeFieldBegin('uri', TType.STRING, 1) + oprot.writeString(self.uri.encode('utf-8') if sys.version_info[0] == 2 else self.uri) + oprot.writeFieldEnd() + if self.token is not None: + oprot.writeFieldBegin('token', TType.STRING, 2) + oprot.writeString(self.token.encode('utf-8') if sys.version_info[0] == 2 else self.token) + oprot.writeFieldEnd() + if self.cookiePath is not None: + oprot.writeFieldBegin('cookiePath', TType.STRING, 3) + oprot.writeString(self.cookiePath.encode('utf-8') if sys.version_info[0] == 2 else self.cookiePath) + oprot.writeFieldEnd() + if self.skip is not None: + oprot.writeFieldBegin('skip', TType.BOOL, 4) + oprot.writeBool(self.skip) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SendBuddyMessageResult(object): + """ + Attributes: + - requestId + - state + - messageId + - eventNo + - receiverCount + - successCount + - failCount + - cancelCount + - blockCount + - unregisterCount + - timestamp + - message + """ + + + def __init__(self, requestId=None, state=None, messageId=None, eventNo=None, receiverCount=None, successCount=None, failCount=None, cancelCount=None, blockCount=None, unregisterCount=None, timestamp=None, message=None,): + self.requestId = requestId + self.state = state + self.messageId = messageId + self.eventNo = eventNo + self.receiverCount = receiverCount + self.successCount = successCount + self.failCount = failCount + self.cancelCount = cancelCount + self.blockCount = blockCount + self.unregisterCount = unregisterCount + self.timestamp = timestamp + 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 == 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.I32: + self.state = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.messageId = 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.eventNo = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I64: + self.receiverCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.I64: + self.successCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.I64: + self.failCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 14: + if ftype == TType.I64: + self.cancelCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 15: + if ftype == TType.I64: + self.blockCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 16: + if ftype == TType.I64: + self.unregisterCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 21: + if ftype == TType.I64: + self.timestamp = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 22: + if ftype == TType.STRING: + self.message = 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('SendBuddyMessageResult') + 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.state is not None: + oprot.writeFieldBegin('state', TType.I32, 2) + oprot.writeI32(self.state) + oprot.writeFieldEnd() + if self.messageId is not None: + oprot.writeFieldBegin('messageId', TType.STRING, 3) + oprot.writeString(self.messageId.encode('utf-8') if sys.version_info[0] == 2 else self.messageId) + oprot.writeFieldEnd() + if self.eventNo is not None: + oprot.writeFieldBegin('eventNo', TType.I32, 4) + oprot.writeI32(self.eventNo) + oprot.writeFieldEnd() + if self.receiverCount is not None: + oprot.writeFieldBegin('receiverCount', TType.I64, 11) + oprot.writeI64(self.receiverCount) + oprot.writeFieldEnd() + if self.successCount is not None: + oprot.writeFieldBegin('successCount', TType.I64, 12) + oprot.writeI64(self.successCount) + oprot.writeFieldEnd() + if self.failCount is not None: + oprot.writeFieldBegin('failCount', TType.I64, 13) + oprot.writeI64(self.failCount) + oprot.writeFieldEnd() + if self.cancelCount is not None: + oprot.writeFieldBegin('cancelCount', TType.I64, 14) + oprot.writeI64(self.cancelCount) + oprot.writeFieldEnd() + if self.blockCount is not None: + oprot.writeFieldBegin('blockCount', TType.I64, 15) + oprot.writeI64(self.blockCount) + oprot.writeFieldEnd() + if self.unregisterCount is not None: + oprot.writeFieldBegin('unregisterCount', TType.I64, 16) + oprot.writeI64(self.unregisterCount) + oprot.writeFieldEnd() + if self.timestamp is not None: + oprot.writeFieldBegin('timestamp', TType.I64, 21) + oprot.writeI64(self.timestamp) + oprot.writeFieldEnd() + if self.message is not None: + oprot.writeFieldBegin('message', TType.STRING, 22) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SetBuddyOnAirResult(object): + """ + Attributes: + - requestId + - state + - eventNo + - receiverCount + - successCount + - failCount + - cancelCount + - unregisterCount + - timestamp + - message + """ + + + def __init__(self, requestId=None, state=None, eventNo=None, receiverCount=None, successCount=None, failCount=None, cancelCount=None, unregisterCount=None, timestamp=None, message=None,): + self.requestId = requestId + self.state = state + self.eventNo = eventNo + self.receiverCount = receiverCount + self.successCount = successCount + self.failCount = failCount + self.cancelCount = cancelCount + self.unregisterCount = unregisterCount + self.timestamp = timestamp + 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 == 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.I32: + self.state = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.eventNo = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I64: + self.receiverCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.I64: + self.successCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.I64: + self.failCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 14: + if ftype == TType.I64: + self.cancelCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 15: + if ftype == TType.I64: + self.unregisterCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 21: + if ftype == TType.I64: + self.timestamp = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 22: + if ftype == TType.STRING: + self.message = 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('SetBuddyOnAirResult') + 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.state is not None: + oprot.writeFieldBegin('state', TType.I32, 2) + oprot.writeI32(self.state) + oprot.writeFieldEnd() + if self.eventNo is not None: + oprot.writeFieldBegin('eventNo', TType.I32, 3) + oprot.writeI32(self.eventNo) + oprot.writeFieldEnd() + if self.receiverCount is not None: + oprot.writeFieldBegin('receiverCount', TType.I64, 11) + oprot.writeI64(self.receiverCount) + oprot.writeFieldEnd() + if self.successCount is not None: + oprot.writeFieldBegin('successCount', TType.I64, 12) + oprot.writeI64(self.successCount) + oprot.writeFieldEnd() + if self.failCount is not None: + oprot.writeFieldBegin('failCount', TType.I64, 13) + oprot.writeI64(self.failCount) + oprot.writeFieldEnd() + if self.cancelCount is not None: + oprot.writeFieldBegin('cancelCount', TType.I64, 14) + oprot.writeI64(self.cancelCount) + oprot.writeFieldEnd() + if self.unregisterCount is not None: + oprot.writeFieldBegin('unregisterCount', TType.I64, 15) + oprot.writeI64(self.unregisterCount) + oprot.writeFieldEnd() + if self.timestamp is not None: + oprot.writeFieldBegin('timestamp', TType.I64, 21) + oprot.writeI64(self.timestamp) + oprot.writeFieldEnd() + if self.message is not None: + oprot.writeFieldBegin('message', TType.STRING, 22) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 Settings(object): + """ + Attributes: + - notificationEnable + - notificationMuteExpiration + - notificationNewMessage + - notificationGroupInvitation + - notificationShowMessage + - notificationIncomingCall + - notificationSoundMessage + - notificationSoundGroup + - notificationDisabledWithSub + - privacySyncContacts + - privacySearchByPhoneNumber + - privacySearchByUserid + - privacySearchByEmail + - privacyAllowSecondaryDeviceLogin + - privacyProfileImagePostToMyhome + - privacyReceiveMessagesFromNotFriend + - contactMyTicket + - identityProvider + - identityIdentifier + - snsAccounts + - phoneRegistration + - emailConfirmationStatus + - preferenceLocale + - customModes + - e2eeEnable + - hitokotoBackupRequested + - privacyProfileMusicPostToMyhome + - privacyAllowNearby + - agreementNearbyTime + - agreementSquareTime + - notificationMention + - botUseAgreementAcceptedAt + """ + + + def __init__(self, notificationEnable=None, notificationMuteExpiration=None, notificationNewMessage=None, notificationGroupInvitation=None, notificationShowMessage=None, notificationIncomingCall=None, notificationSoundMessage=None, notificationSoundGroup=None, notificationDisabledWithSub=None, privacySyncContacts=None, privacySearchByPhoneNumber=None, privacySearchByUserid=None, privacySearchByEmail=None, privacyAllowSecondaryDeviceLogin=None, privacyProfileImagePostToMyhome=None, privacyReceiveMessagesFromNotFriend=None, contactMyTicket=None, identityProvider=None, identityIdentifier=None, snsAccounts=None, phoneRegistration=None, emailConfirmationStatus=None, preferenceLocale=None, customModes=None, e2eeEnable=None, hitokotoBackupRequested=None, privacyProfileMusicPostToMyhome=None, privacyAllowNearby=None, agreementNearbyTime=None, agreementSquareTime=None, notificationMention=None, botUseAgreementAcceptedAt=None,): + self.notificationEnable = notificationEnable + self.notificationMuteExpiration = notificationMuteExpiration + self.notificationNewMessage = notificationNewMessage + self.notificationGroupInvitation = notificationGroupInvitation + self.notificationShowMessage = notificationShowMessage + self.notificationIncomingCall = notificationIncomingCall + self.notificationSoundMessage = notificationSoundMessage + self.notificationSoundGroup = notificationSoundGroup + self.notificationDisabledWithSub = notificationDisabledWithSub + self.privacySyncContacts = privacySyncContacts + self.privacySearchByPhoneNumber = privacySearchByPhoneNumber + self.privacySearchByUserid = privacySearchByUserid + self.privacySearchByEmail = privacySearchByEmail + self.privacyAllowSecondaryDeviceLogin = privacyAllowSecondaryDeviceLogin + self.privacyProfileImagePostToMyhome = privacyProfileImagePostToMyhome + self.privacyReceiveMessagesFromNotFriend = privacyReceiveMessagesFromNotFriend + self.contactMyTicket = contactMyTicket + self.identityProvider = identityProvider + self.identityIdentifier = identityIdentifier + self.snsAccounts = snsAccounts + self.phoneRegistration = phoneRegistration + self.emailConfirmationStatus = emailConfirmationStatus + self.preferenceLocale = preferenceLocale + self.customModes = customModes + self.e2eeEnable = e2eeEnable + self.hitokotoBackupRequested = hitokotoBackupRequested + self.privacyProfileMusicPostToMyhome = privacyProfileMusicPostToMyhome + self.privacyAllowNearby = privacyAllowNearby + self.agreementNearbyTime = agreementNearbyTime + self.agreementSquareTime = agreementSquareTime + self.notificationMention = notificationMention + self.botUseAgreementAcceptedAt = botUseAgreementAcceptedAt + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 10: + if ftype == TType.BOOL: + self.notificationEnable = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I64: + self.notificationMuteExpiration = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.BOOL: + self.notificationNewMessage = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.BOOL: + self.notificationGroupInvitation = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 14: + if ftype == TType.BOOL: + self.notificationShowMessage = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 15: + if ftype == TType.BOOL: + self.notificationIncomingCall = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 16: + if ftype == TType.STRING: + self.notificationSoundMessage = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 17: + if ftype == TType.STRING: + self.notificationSoundGroup = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 18: + if ftype == TType.BOOL: + self.notificationDisabledWithSub = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 20: + if ftype == TType.BOOL: + self.privacySyncContacts = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 21: + if ftype == TType.BOOL: + self.privacySearchByPhoneNumber = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 22: + if ftype == TType.BOOL: + self.privacySearchByUserid = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 23: + if ftype == TType.BOOL: + self.privacySearchByEmail = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 24: + if ftype == TType.BOOL: + self.privacyAllowSecondaryDeviceLogin = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 25: + if ftype == TType.BOOL: + self.privacyProfileImagePostToMyhome = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 26: + if ftype == TType.BOOL: + self.privacyReceiveMessagesFromNotFriend = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 30: + if ftype == TType.STRING: + self.contactMyTicket = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 40: + if ftype == TType.I32: + self.identityProvider = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 41: + if ftype == TType.STRING: + self.identityIdentifier = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 42: + if ftype == TType.MAP: + self.snsAccounts = {} + (_ktype425, _vtype426, _size424) = iprot.readMapBegin() + for _i428 in range(_size424): + _key429 = iprot.readI32() + _val430 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.snsAccounts[_key429] = _val430 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 43: + if ftype == TType.BOOL: + self.phoneRegistration = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 44: + if ftype == TType.I32: + self.emailConfirmationStatus = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 50: + if ftype == TType.STRING: + self.preferenceLocale = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 60: + if ftype == TType.MAP: + self.customModes = {} + (_ktype432, _vtype433, _size431) = iprot.readMapBegin() + for _i435 in range(_size431): + _key436 = iprot.readI32() + _val437 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.customModes[_key436] = _val437 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 61: + if ftype == TType.BOOL: + self.e2eeEnable = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 62: + if ftype == TType.BOOL: + self.hitokotoBackupRequested = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 63: + if ftype == TType.BOOL: + self.privacyProfileMusicPostToMyhome = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 65: + if ftype == TType.BOOL: + self.privacyAllowNearby = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 66: + if ftype == TType.I64: + self.agreementNearbyTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 67: + if ftype == TType.I64: + self.agreementSquareTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 68: + if ftype == TType.BOOL: + self.notificationMention = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 69: + if ftype == TType.I64: + self.botUseAgreementAcceptedAt = 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('Settings') + if self.notificationEnable is not None: + oprot.writeFieldBegin('notificationEnable', TType.BOOL, 10) + oprot.writeBool(self.notificationEnable) + oprot.writeFieldEnd() + if self.notificationMuteExpiration is not None: + oprot.writeFieldBegin('notificationMuteExpiration', TType.I64, 11) + oprot.writeI64(self.notificationMuteExpiration) + oprot.writeFieldEnd() + if self.notificationNewMessage is not None: + oprot.writeFieldBegin('notificationNewMessage', TType.BOOL, 12) + oprot.writeBool(self.notificationNewMessage) + oprot.writeFieldEnd() + if self.notificationGroupInvitation is not None: + oprot.writeFieldBegin('notificationGroupInvitation', TType.BOOL, 13) + oprot.writeBool(self.notificationGroupInvitation) + oprot.writeFieldEnd() + if self.notificationShowMessage is not None: + oprot.writeFieldBegin('notificationShowMessage', TType.BOOL, 14) + oprot.writeBool(self.notificationShowMessage) + oprot.writeFieldEnd() + if self.notificationIncomingCall is not None: + oprot.writeFieldBegin('notificationIncomingCall', TType.BOOL, 15) + oprot.writeBool(self.notificationIncomingCall) + oprot.writeFieldEnd() + if self.notificationSoundMessage is not None: + oprot.writeFieldBegin('notificationSoundMessage', TType.STRING, 16) + oprot.writeString(self.notificationSoundMessage.encode('utf-8') if sys.version_info[0] == 2 else self.notificationSoundMessage) + oprot.writeFieldEnd() + if self.notificationSoundGroup is not None: + oprot.writeFieldBegin('notificationSoundGroup', TType.STRING, 17) + oprot.writeString(self.notificationSoundGroup.encode('utf-8') if sys.version_info[0] == 2 else self.notificationSoundGroup) + oprot.writeFieldEnd() + if self.notificationDisabledWithSub is not None: + oprot.writeFieldBegin('notificationDisabledWithSub', TType.BOOL, 18) + oprot.writeBool(self.notificationDisabledWithSub) + oprot.writeFieldEnd() + if self.privacySyncContacts is not None: + oprot.writeFieldBegin('privacySyncContacts', TType.BOOL, 20) + oprot.writeBool(self.privacySyncContacts) + oprot.writeFieldEnd() + if self.privacySearchByPhoneNumber is not None: + oprot.writeFieldBegin('privacySearchByPhoneNumber', TType.BOOL, 21) + oprot.writeBool(self.privacySearchByPhoneNumber) + oprot.writeFieldEnd() + if self.privacySearchByUserid is not None: + oprot.writeFieldBegin('privacySearchByUserid', TType.BOOL, 22) + oprot.writeBool(self.privacySearchByUserid) + oprot.writeFieldEnd() + if self.privacySearchByEmail is not None: + oprot.writeFieldBegin('privacySearchByEmail', TType.BOOL, 23) + oprot.writeBool(self.privacySearchByEmail) + oprot.writeFieldEnd() + if self.privacyAllowSecondaryDeviceLogin is not None: + oprot.writeFieldBegin('privacyAllowSecondaryDeviceLogin', TType.BOOL, 24) + oprot.writeBool(self.privacyAllowSecondaryDeviceLogin) + oprot.writeFieldEnd() + if self.privacyProfileImagePostToMyhome is not None: + oprot.writeFieldBegin('privacyProfileImagePostToMyhome', TType.BOOL, 25) + oprot.writeBool(self.privacyProfileImagePostToMyhome) + oprot.writeFieldEnd() + if self.privacyReceiveMessagesFromNotFriend is not None: + oprot.writeFieldBegin('privacyReceiveMessagesFromNotFriend', TType.BOOL, 26) + oprot.writeBool(self.privacyReceiveMessagesFromNotFriend) + oprot.writeFieldEnd() + if self.contactMyTicket is not None: + oprot.writeFieldBegin('contactMyTicket', TType.STRING, 30) + oprot.writeString(self.contactMyTicket.encode('utf-8') if sys.version_info[0] == 2 else self.contactMyTicket) + oprot.writeFieldEnd() + if self.identityProvider is not None: + oprot.writeFieldBegin('identityProvider', TType.I32, 40) + oprot.writeI32(self.identityProvider) + oprot.writeFieldEnd() + if self.identityIdentifier is not None: + oprot.writeFieldBegin('identityIdentifier', TType.STRING, 41) + oprot.writeString(self.identityIdentifier.encode('utf-8') if sys.version_info[0] == 2 else self.identityIdentifier) + oprot.writeFieldEnd() + if self.snsAccounts is not None: + oprot.writeFieldBegin('snsAccounts', TType.MAP, 42) + oprot.writeMapBegin(TType.I32, TType.STRING, len(self.snsAccounts)) + for kiter438, viter439 in self.snsAccounts.items(): + oprot.writeI32(kiter438) + oprot.writeString(viter439.encode('utf-8') if sys.version_info[0] == 2 else viter439) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.phoneRegistration is not None: + oprot.writeFieldBegin('phoneRegistration', TType.BOOL, 43) + oprot.writeBool(self.phoneRegistration) + oprot.writeFieldEnd() + if self.emailConfirmationStatus is not None: + oprot.writeFieldBegin('emailConfirmationStatus', TType.I32, 44) + oprot.writeI32(self.emailConfirmationStatus) + oprot.writeFieldEnd() + if self.preferenceLocale is not None: + oprot.writeFieldBegin('preferenceLocale', TType.STRING, 50) + oprot.writeString(self.preferenceLocale.encode('utf-8') if sys.version_info[0] == 2 else self.preferenceLocale) + oprot.writeFieldEnd() + if self.customModes is not None: + oprot.writeFieldBegin('customModes', TType.MAP, 60) + oprot.writeMapBegin(TType.I32, TType.STRING, len(self.customModes)) + for kiter440, viter441 in self.customModes.items(): + oprot.writeI32(kiter440) + oprot.writeString(viter441.encode('utf-8') if sys.version_info[0] == 2 else viter441) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.e2eeEnable is not None: + oprot.writeFieldBegin('e2eeEnable', TType.BOOL, 61) + oprot.writeBool(self.e2eeEnable) + oprot.writeFieldEnd() + if self.hitokotoBackupRequested is not None: + oprot.writeFieldBegin('hitokotoBackupRequested', TType.BOOL, 62) + oprot.writeBool(self.hitokotoBackupRequested) + oprot.writeFieldEnd() + if self.privacyProfileMusicPostToMyhome is not None: + oprot.writeFieldBegin('privacyProfileMusicPostToMyhome', TType.BOOL, 63) + oprot.writeBool(self.privacyProfileMusicPostToMyhome) + oprot.writeFieldEnd() + if self.privacyAllowNearby is not None: + oprot.writeFieldBegin('privacyAllowNearby', TType.BOOL, 65) + oprot.writeBool(self.privacyAllowNearby) + oprot.writeFieldEnd() + if self.agreementNearbyTime is not None: + oprot.writeFieldBegin('agreementNearbyTime', TType.I64, 66) + oprot.writeI64(self.agreementNearbyTime) + oprot.writeFieldEnd() + if self.agreementSquareTime is not None: + oprot.writeFieldBegin('agreementSquareTime', TType.I64, 67) + oprot.writeI64(self.agreementSquareTime) + oprot.writeFieldEnd() + if self.notificationMention is not None: + oprot.writeFieldBegin('notificationMention', TType.BOOL, 68) + oprot.writeBool(self.notificationMention) + oprot.writeFieldEnd() + if self.botUseAgreementAcceptedAt is not None: + oprot.writeFieldBegin('botUseAgreementAcceptedAt', TType.I64, 69) + oprot.writeI64(self.botUseAgreementAcceptedAt) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SimpleChannelClient(object): + """ + Attributes: + - applicationType + - applicationVersion + - locale + """ + + + def __init__(self, applicationType=None, applicationVersion=None, locale=None,): + self.applicationType = applicationType + self.applicationVersion = applicationVersion + 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.applicationType = 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.applicationVersion = 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('SimpleChannelClient') + if self.applicationType is not None: + oprot.writeFieldBegin('applicationType', TType.STRING, 1) + oprot.writeString(self.applicationType.encode('utf-8') if sys.version_info[0] == 2 else self.applicationType) + oprot.writeFieldEnd() + if self.applicationVersion is not None: + oprot.writeFieldBegin('applicationVersion', TType.STRING, 2) + oprot.writeString(self.applicationVersion.encode('utf-8') if sys.version_info[0] == 2 else self.applicationVersion) + 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) + + +class SimpleChannelContact(object): + """ + Attributes: + - mid + - displayName + - pictureStatus + - picturePath + - statusMessage + """ + + + def __init__(self, mid=None, displayName=None, pictureStatus=None, picturePath=None, statusMessage=None,): + self.mid = mid + self.displayName = displayName + self.pictureStatus = pictureStatus + self.picturePath = picturePath + self.statusMessage = statusMessage + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.mid = 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.displayName = 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.pictureStatus = 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.picturePath = 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) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('SimpleChannelContact') + if self.mid is not None: + oprot.writeFieldBegin('mid', TType.STRING, 1) + oprot.writeString(self.mid.encode('utf-8') if sys.version_info[0] == 2 else self.mid) + oprot.writeFieldEnd() + if self.displayName is not None: + oprot.writeFieldBegin('displayName', TType.STRING, 2) + oprot.writeString(self.displayName.encode('utf-8') if sys.version_info[0] == 2 else self.displayName) + oprot.writeFieldEnd() + if self.pictureStatus is not None: + oprot.writeFieldBegin('pictureStatus', TType.STRING, 3) + oprot.writeString(self.pictureStatus.encode('utf-8') if sys.version_info[0] == 2 else self.pictureStatus) + oprot.writeFieldEnd() + if self.picturePath is not None: + oprot.writeFieldBegin('picturePath', TType.STRING, 4) + oprot.writeString(self.picturePath.encode('utf-8') if sys.version_info[0] == 2 else self.picturePath) + 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() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SnsFriend(object): + """ + Attributes: + - snsUserId + - snsUserName + - snsIdType + """ + + + def __init__(self, snsUserId=None, snsUserName=None, snsIdType=None,): + self.snsUserId = snsUserId + self.snsUserName = snsUserName + self.snsIdType = snsIdType + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.snsUserId = 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.snsUserName = 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.snsIdType = 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('SnsFriend') + if self.snsUserId is not None: + oprot.writeFieldBegin('snsUserId', TType.STRING, 1) + oprot.writeString(self.snsUserId.encode('utf-8') if sys.version_info[0] == 2 else self.snsUserId) + oprot.writeFieldEnd() + if self.snsUserName is not None: + oprot.writeFieldBegin('snsUserName', TType.STRING, 2) + oprot.writeString(self.snsUserName.encode('utf-8') if sys.version_info[0] == 2 else self.snsUserName) + oprot.writeFieldEnd() + if self.snsIdType is not None: + oprot.writeFieldBegin('snsIdType', TType.I32, 3) + oprot.writeI32(self.snsIdType) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SnsFriendContactRegistration(object): + """ + Attributes: + - contact + - snsIdType + - snsUserId + """ + + + def __init__(self, contact=None, snsIdType=None, snsUserId=None,): + self.contact = contact + self.snsIdType = snsIdType + self.snsUserId = snsUserId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.contact = Contact() + self.contact.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.snsIdType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.snsUserId = 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('SnsFriendContactRegistration') + if self.contact is not None: + oprot.writeFieldBegin('contact', TType.STRUCT, 1) + self.contact.write(oprot) + oprot.writeFieldEnd() + if self.snsIdType is not None: + oprot.writeFieldBegin('snsIdType', TType.I32, 2) + oprot.writeI32(self.snsIdType) + oprot.writeFieldEnd() + if self.snsUserId is not None: + oprot.writeFieldBegin('snsUserId', TType.STRING, 3) + oprot.writeString(self.snsUserId.encode('utf-8') if sys.version_info[0] == 2 else self.snsUserId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SnsFriendModification(object): + """ + Attributes: + - type + - snsFriend + """ + + + def __init__(self, type=None, snsFriend=None,): + self.type = type + self.snsFriend = snsFriend + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.snsFriend = SnsFriend() + self.snsFriend.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('SnsFriendModification') + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 1) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.snsFriend is not None: + oprot.writeFieldBegin('snsFriend', TType.STRUCT, 2) + self.snsFriend.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) + + +class SnsFriends(object): + """ + Attributes: + - snsFriends + - hasMore + """ + + + def __init__(self, snsFriends=None, hasMore=None,): + self.snsFriends = snsFriends + self.hasMore = hasMore + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.snsFriends = [] + (_etype445, _size442) = iprot.readListBegin() + for _i446 in range(_size442): + _elem447 = SnsFriend() + _elem447.read(iprot) + self.snsFriends.append(_elem447) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.BOOL: + self.hasMore = 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('SnsFriends') + if self.snsFriends is not None: + oprot.writeFieldBegin('snsFriends', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.snsFriends)) + for iter448 in self.snsFriends: + iter448.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.hasMore is not None: + oprot.writeFieldBegin('hasMore', TType.BOOL, 2) + oprot.writeBool(self.hasMore) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SnsIdUserStatus(object): + """ + Attributes: + - userExisting + - phoneNumberRegistered + - sameDevice + """ + + + def __init__(self, userExisting=None, phoneNumberRegistered=None, sameDevice=None,): + self.userExisting = userExisting + self.phoneNumberRegistered = phoneNumberRegistered + self.sameDevice = sameDevice + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.BOOL: + self.userExisting = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.BOOL: + self.phoneNumberRegistered = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.BOOL: + self.sameDevice = 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('SnsIdUserStatus') + if self.userExisting is not None: + oprot.writeFieldBegin('userExisting', TType.BOOL, 1) + oprot.writeBool(self.userExisting) + oprot.writeFieldEnd() + if self.phoneNumberRegistered is not None: + oprot.writeFieldBegin('phoneNumberRegistered', TType.BOOL, 2) + oprot.writeBool(self.phoneNumberRegistered) + oprot.writeFieldEnd() + if self.sameDevice is not None: + oprot.writeFieldBegin('sameDevice', TType.BOOL, 3) + oprot.writeBool(self.sameDevice) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SnsProfile(object): + """ + Attributes: + - snsUserId + - snsUserName + - email + - thumbnailUrl + """ + + + def __init__(self, snsUserId=None, snsUserName=None, email=None, thumbnailUrl=None,): + self.snsUserId = snsUserId + self.snsUserName = snsUserName + self.email = email + self.thumbnailUrl = thumbnailUrl + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.snsUserId = 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.snsUserName = 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.email = 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.thumbnailUrl = 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('SnsProfile') + if self.snsUserId is not None: + oprot.writeFieldBegin('snsUserId', TType.STRING, 1) + oprot.writeString(self.snsUserId.encode('utf-8') if sys.version_info[0] == 2 else self.snsUserId) + oprot.writeFieldEnd() + if self.snsUserName is not None: + oprot.writeFieldBegin('snsUserName', TType.STRING, 2) + oprot.writeString(self.snsUserName.encode('utf-8') if sys.version_info[0] == 2 else self.snsUserName) + oprot.writeFieldEnd() + if self.email is not None: + oprot.writeFieldBegin('email', TType.STRING, 3) + oprot.writeString(self.email.encode('utf-8') if sys.version_info[0] == 2 else self.email) + oprot.writeFieldEnd() + if self.thumbnailUrl is not None: + oprot.writeFieldBegin('thumbnailUrl', TType.STRING, 4) + oprot.writeString(self.thumbnailUrl.encode('utf-8') if sys.version_info[0] == 2 else self.thumbnailUrl) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SystemConfiguration(object): + """ + Attributes: + - endpoint + - endpointSsl + - updateUrl + - c2dmAccount + - nniServer + """ + + + def __init__(self, endpoint=None, endpointSsl=None, updateUrl=None, c2dmAccount=None, nniServer=None,): + self.endpoint = endpoint + self.endpointSsl = endpointSsl + self.updateUrl = updateUrl + self.c2dmAccount = c2dmAccount + self.nniServer = nniServer + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.endpoint = 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.endpointSsl = 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.updateUrl = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.c2dmAccount = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRING: + self.nniServer = 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('SystemConfiguration') + if self.endpoint is not None: + oprot.writeFieldBegin('endpoint', TType.STRING, 1) + oprot.writeString(self.endpoint.encode('utf-8') if sys.version_info[0] == 2 else self.endpoint) + oprot.writeFieldEnd() + if self.endpointSsl is not None: + oprot.writeFieldBegin('endpointSsl', TType.STRING, 2) + oprot.writeString(self.endpointSsl.encode('utf-8') if sys.version_info[0] == 2 else self.endpointSsl) + oprot.writeFieldEnd() + if self.updateUrl is not None: + oprot.writeFieldBegin('updateUrl', TType.STRING, 3) + oprot.writeString(self.updateUrl.encode('utf-8') if sys.version_info[0] == 2 else self.updateUrl) + oprot.writeFieldEnd() + if self.c2dmAccount is not None: + oprot.writeFieldBegin('c2dmAccount', TType.STRING, 11) + oprot.writeString(self.c2dmAccount.encode('utf-8') if sys.version_info[0] == 2 else self.c2dmAccount) + oprot.writeFieldEnd() + if self.nniServer is not None: + oprot.writeFieldBegin('nniServer', TType.STRING, 12) + oprot.writeString(self.nniServer.encode('utf-8') if sys.version_info[0] == 2 else self.nniServer) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 Ticket(object): + """ + Attributes: + - id + - expirationTime + - maxUseCount + """ + + + def __init__(self, id=None, expirationTime=None, maxUseCount=None,): + self.id = id + 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 == 1: + if ftype == TType.STRING: + self.id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.I64: + self.expirationTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 21: + 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('Ticket') + if self.id is not None: + oprot.writeFieldBegin('id', TType.STRING, 1) + oprot.writeString(self.id.encode('utf-8') if sys.version_info[0] == 2 else self.id) + oprot.writeFieldEnd() + if self.expirationTime is not None: + oprot.writeFieldBegin('expirationTime', TType.I64, 10) + oprot.writeI64(self.expirationTime) + oprot.writeFieldEnd() + if self.maxUseCount is not None: + oprot.writeFieldBegin('maxUseCount', TType.I32, 21) + 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) + + +class TMessageBox(object): + """ + Attributes: + - id + - channelId + - lastSeq + - unreadCount + - lastModifiedTime + - status + - midType + - lastMessages + """ + + + def __init__(self, id=None, channelId=None, lastSeq=None, unreadCount=None, lastModifiedTime=None, status=None, midType=None, lastMessages=None,): + self.id = id + self.channelId = channelId + self.lastSeq = lastSeq + self.unreadCount = unreadCount + self.lastModifiedTime = lastModifiedTime + self.status = status + self.midType = midType + self.lastMessages = lastMessages + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.id = 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.channelId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.lastSeq = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I64: + self.unreadCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I64: + self.lastModifiedTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I32: + self.status = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.I32: + self.midType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.LIST: + self.lastMessages = [] + (_etype452, _size449) = iprot.readListBegin() + for _i453 in range(_size449): + _elem454 = Message() + _elem454.read(iprot) + self.lastMessages.append(_elem454) + 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('TMessageBox') + if self.id is not None: + oprot.writeFieldBegin('id', TType.STRING, 1) + oprot.writeString(self.id.encode('utf-8') if sys.version_info[0] == 2 else self.id) + oprot.writeFieldEnd() + 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.lastSeq is not None: + oprot.writeFieldBegin('lastSeq', TType.I64, 5) + oprot.writeI64(self.lastSeq) + oprot.writeFieldEnd() + if self.unreadCount is not None: + oprot.writeFieldBegin('unreadCount', TType.I64, 6) + oprot.writeI64(self.unreadCount) + oprot.writeFieldEnd() + if self.lastModifiedTime is not None: + oprot.writeFieldBegin('lastModifiedTime', TType.I64, 7) + oprot.writeI64(self.lastModifiedTime) + oprot.writeFieldEnd() + if self.status is not None: + oprot.writeFieldBegin('status', TType.I32, 8) + oprot.writeI32(self.status) + oprot.writeFieldEnd() + if self.midType is not None: + oprot.writeFieldBegin('midType', TType.I32, 9) + oprot.writeI32(self.midType) + oprot.writeFieldEnd() + if self.lastMessages is not None: + oprot.writeFieldBegin('lastMessages', TType.LIST, 10) + oprot.writeListBegin(TType.STRUCT, len(self.lastMessages)) + for iter455 in self.lastMessages: + iter455.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) + + +class TMessageBoxWrapUp(object): + """ + Attributes: + - messageBox + - name + - contacts + - pictureRevision + """ + + + def __init__(self, messageBox=None, name=None, contacts=None, pictureRevision=None,): + self.messageBox = messageBox + self.name = name + self.contacts = contacts + self.pictureRevision = pictureRevision + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.messageBox = TMessageBox() + self.messageBox.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.name = 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.contacts = [] + (_etype459, _size456) = iprot.readListBegin() + for _i460 in range(_size456): + _elem461 = Contact() + _elem461.read(iprot) + self.contacts.append(_elem461) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.pictureRevision = 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('TMessageBoxWrapUp') + if self.messageBox is not None: + oprot.writeFieldBegin('messageBox', TType.STRUCT, 1) + self.messageBox.write(oprot) + oprot.writeFieldEnd() + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 2) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + if self.contacts is not None: + oprot.writeFieldBegin('contacts', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.contacts)) + for iter462 in self.contacts: + iter462.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.pictureRevision is not None: + oprot.writeFieldBegin('pictureRevision', TType.STRING, 4) + oprot.writeString(self.pictureRevision.encode('utf-8') if sys.version_info[0] == 2 else self.pictureRevision) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 TMessageBoxWrapUpResponse(object): + """ + Attributes: + - messageBoxWrapUpList + - totalSize + """ + + + def __init__(self, messageBoxWrapUpList=None, totalSize=None,): + self.messageBoxWrapUpList = messageBoxWrapUpList + self.totalSize = totalSize + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.messageBoxWrapUpList = [] + (_etype466, _size463) = iprot.readListBegin() + for _i467 in range(_size463): + _elem468 = TMessageBoxWrapUp() + _elem468.read(iprot) + self.messageBoxWrapUpList.append(_elem468) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.totalSize = 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('TMessageBoxWrapUpResponse') + if self.messageBoxWrapUpList is not None: + oprot.writeFieldBegin('messageBoxWrapUpList', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.messageBoxWrapUpList)) + for iter469 in self.messageBoxWrapUpList: + iter469.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.totalSize is not None: + oprot.writeFieldBegin('totalSize', TType.I32, 2) + oprot.writeI32(self.totalSize) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 TMessageReadRangeEntry(object): + """ + Attributes: + - startMessageId + - endMessageId + - startTime + - endTime + """ + + + def __init__(self, startMessageId=None, endMessageId=None, startTime=None, endTime=None,): + self.startMessageId = startMessageId + self.endMessageId = endMessageId + self.startTime = startTime + self.endTime = endTime + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.startMessageId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.endMessageId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.startTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.endTime = 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('TMessageReadRangeEntry') + if self.startMessageId is not None: + oprot.writeFieldBegin('startMessageId', TType.I64, 1) + oprot.writeI64(self.startMessageId) + oprot.writeFieldEnd() + if self.endMessageId is not None: + oprot.writeFieldBegin('endMessageId', TType.I64, 2) + oprot.writeI64(self.endMessageId) + oprot.writeFieldEnd() + if self.startTime is not None: + oprot.writeFieldBegin('startTime', TType.I64, 3) + oprot.writeI64(self.startTime) + oprot.writeFieldEnd() + if self.endTime is not None: + oprot.writeFieldBegin('endTime', TType.I64, 4) + oprot.writeI64(self.endTime) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 TMessageReadRange(object): + """ + Attributes: + - chatId + - ranges + """ + + + def __init__(self, chatId=None, ranges=None,): + self.chatId = chatId + self.ranges = ranges + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.chatId = 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.ranges = {} + (_ktype471, _vtype472, _size470) = iprot.readMapBegin() + for _i474 in range(_size470): + _key475 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val476 = [] + (_etype480, _size477) = iprot.readListBegin() + for _i481 in range(_size477): + _elem482 = TMessageReadRangeEntry() + _elem482.read(iprot) + _val476.append(_elem482) + iprot.readListEnd() + self.ranges[_key475] = _val476 + 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('TMessageReadRange') + if self.chatId is not None: + oprot.writeFieldBegin('chatId', TType.STRING, 1) + oprot.writeString(self.chatId.encode('utf-8') if sys.version_info[0] == 2 else self.chatId) + oprot.writeFieldEnd() + if self.ranges is not None: + oprot.writeFieldBegin('ranges', TType.MAP, 2) + oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.ranges)) + for kiter483, viter484 in self.ranges.items(): + oprot.writeString(kiter483.encode('utf-8') if sys.version_info[0] == 2 else kiter483) + oprot.writeListBegin(TType.STRUCT, len(viter484)) + for iter485 in viter484: + iter485.write(oprot) + oprot.writeListEnd() + 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) + + +class ChatRoomAnnouncementContents(object): + """ + Attributes: + - displayFields + - text + - link + - thumbnail + """ + + + def __init__(self, displayFields=None, text=None, link=None, thumbnail=None,): + self.displayFields = displayFields + self.text = text + self.link = link + self.thumbnail = thumbnail + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.displayFields = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.text = 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.link = 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.thumbnail = 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('ChatRoomAnnouncementContents') + if self.displayFields is not None: + oprot.writeFieldBegin('displayFields', TType.I32, 1) + oprot.writeI32(self.displayFields) + oprot.writeFieldEnd() + if self.text is not None: + oprot.writeFieldBegin('text', TType.STRING, 2) + oprot.writeString(self.text.encode('utf-8') if sys.version_info[0] == 2 else self.text) + oprot.writeFieldEnd() + if self.link is not None: + oprot.writeFieldBegin('link', TType.STRING, 3) + oprot.writeString(self.link.encode('utf-8') if sys.version_info[0] == 2 else self.link) + oprot.writeFieldEnd() + if self.thumbnail is not None: + oprot.writeFieldBegin('thumbnail', TType.STRING, 4) + oprot.writeString(self.thumbnail.encode('utf-8') if sys.version_info[0] == 2 else self.thumbnail) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ChatRoomAnnouncement(object): + """ + Attributes: + - announcementSeq + - type + - contents + - creatorMid + - createdTime + """ + + + def __init__(self, announcementSeq=None, type=None, contents=None, creatorMid=None, createdTime=None,): + self.announcementSeq = announcementSeq + self.type = type + self.contents = contents + self.creatorMid = creatorMid + self.createdTime = createdTime + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.announcementSeq = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.contents = ChatRoomAnnouncementContents() + self.contents.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.creatorMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.createdTime = 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('ChatRoomAnnouncement') + if self.announcementSeq is not None: + oprot.writeFieldBegin('announcementSeq', TType.I64, 1) + oprot.writeI64(self.announcementSeq) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 2) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.contents is not None: + oprot.writeFieldBegin('contents', TType.STRUCT, 3) + self.contents.write(oprot) + oprot.writeFieldEnd() + if self.creatorMid is not None: + oprot.writeFieldBegin('creatorMid', TType.STRING, 4) + oprot.writeString(self.creatorMid.encode('utf-8') if sys.version_info[0] == 2 else self.creatorMid) + oprot.writeFieldEnd() + if self.createdTime is not None: + oprot.writeFieldBegin('createdTime', TType.I64, 5) + oprot.writeI64(self.createdTime) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ErrorExtraInfo(object): + """ + Attributes: + - preconditionFailedExtraInfo + """ + + + def __init__(self, preconditionFailedExtraInfo=None,): + self.preconditionFailedExtraInfo = preconditionFailedExtraInfo + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.preconditionFailedExtraInfo = 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('ErrorExtraInfo') + if self.preconditionFailedExtraInfo is not None: + oprot.writeFieldBegin('preconditionFailedExtraInfo', TType.I32, 1) + oprot.writeI32(self.preconditionFailedExtraInfo) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SyncRelations(object): + """ + Attributes: + - syncAll + - syncParamContact + - syncParamMid + """ + + + def __init__(self, syncAll=None, syncParamContact=None, syncParamMid=None,): + self.syncAll = syncAll + self.syncParamContact = syncParamContact + self.syncParamMid = syncParamMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.BOOL: + self.syncAll = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.syncParamContact = [] + (_etype489, _size486) = iprot.readListBegin() + for _i490 in range(_size486): + _elem491 = SyncParamContact() + _elem491.read(iprot) + self.syncParamContact.append(_elem491) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.syncParamMid = [] + (_etype495, _size492) = iprot.readListBegin() + for _i496 in range(_size492): + _elem497 = SyncParamMid() + _elem497.read(iprot) + self.syncParamMid.append(_elem497) + 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('SyncRelations') + if self.syncAll is not None: + oprot.writeFieldBegin('syncAll', TType.BOOL, 1) + oprot.writeBool(self.syncAll) + oprot.writeFieldEnd() + if self.syncParamContact is not None: + oprot.writeFieldBegin('syncParamContact', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.syncParamContact)) + for iter498 in self.syncParamContact: + iter498.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.syncParamMid is not None: + oprot.writeFieldBegin('syncParamMid', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.syncParamMid)) + for iter499 in self.syncParamMid: + iter499.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) + + +class SyncScope(object): + """ + Attributes: + - syncProfile + - syncSettings + - syncSticker + - syncThemeShop + - contact + - group + - room + - chat + """ + + + def __init__(self, syncProfile=None, syncSettings=None, syncSticker=None, syncThemeShop=None, contact=None, group=None, room=None, chat=None,): + self.syncProfile = syncProfile + self.syncSettings = syncSettings + self.syncSticker = syncSticker + self.syncThemeShop = syncThemeShop + self.contact = contact + self.group = group + self.room = room + self.chat = chat + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.BOOL: + self.syncProfile = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.BOOL: + self.syncSettings = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.BOOL: + self.syncSticker = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BOOL: + self.syncThemeShop = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRUCT: + self.contact = SyncRelations() + self.contact.read(iprot) + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRUCT: + self.group = SyncRelations() + self.group.read(iprot) + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRUCT: + self.room = SyncRelations() + self.room.read(iprot) + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.STRUCT: + self.chat = SyncRelations() + self.chat.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('SyncScope') + if self.syncProfile is not None: + oprot.writeFieldBegin('syncProfile', TType.BOOL, 1) + oprot.writeBool(self.syncProfile) + oprot.writeFieldEnd() + if self.syncSettings is not None: + oprot.writeFieldBegin('syncSettings', TType.BOOL, 2) + oprot.writeBool(self.syncSettings) + oprot.writeFieldEnd() + if self.syncSticker is not None: + oprot.writeFieldBegin('syncSticker', TType.BOOL, 3) + oprot.writeBool(self.syncSticker) + oprot.writeFieldEnd() + if self.syncThemeShop is not None: + oprot.writeFieldBegin('syncThemeShop', TType.BOOL, 4) + oprot.writeBool(self.syncThemeShop) + oprot.writeFieldEnd() + if self.contact is not None: + oprot.writeFieldBegin('contact', TType.STRUCT, 10) + self.contact.write(oprot) + oprot.writeFieldEnd() + if self.group is not None: + oprot.writeFieldBegin('group', TType.STRUCT, 11) + self.group.write(oprot) + oprot.writeFieldEnd() + if self.room is not None: + oprot.writeFieldBegin('room', TType.STRUCT, 12) + self.room.write(oprot) + oprot.writeFieldEnd() + if self.chat is not None: + oprot.writeFieldBegin('chat', TType.STRUCT, 13) + self.chat.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) + + +class JoinSquareResponse(object): + """ + Attributes: + - square + - squareAuthority + - squareStatus + - squareMember + - squareFeatureSet + - noteStatus + """ + + + def __init__(self, square=None, squareAuthority=None, squareStatus=None, squareMember=None, squareFeatureSet=None, noteStatus=None,): + self.square = square + self.squareAuthority = squareAuthority + self.squareStatus = squareStatus + self.squareMember = squareMember + self.squareFeatureSet = squareFeatureSet + self.noteStatus = noteStatus + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.square = Square() + self.square.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.squareAuthority = SquareAuthority() + self.squareAuthority.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareStatus = SquareStatus() + self.squareStatus.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.squareMember = SquareMember() + self.squareMember.read(iprot) + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.squareFeatureSet = SquareFeatureSet() + self.squareFeatureSet.read(iprot) + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRUCT: + self.noteStatus = NoteStatus() + self.noteStatus.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('JoinSquareResponse') + if self.square is not None: + oprot.writeFieldBegin('square', TType.STRUCT, 1) + self.square.write(oprot) + oprot.writeFieldEnd() + if self.squareAuthority is not None: + oprot.writeFieldBegin('squareAuthority', TType.STRUCT, 2) + self.squareAuthority.write(oprot) + oprot.writeFieldEnd() + if self.squareStatus is not None: + oprot.writeFieldBegin('squareStatus', TType.STRUCT, 3) + self.squareStatus.write(oprot) + oprot.writeFieldEnd() + if self.squareMember is not None: + oprot.writeFieldBegin('squareMember', TType.STRUCT, 4) + self.squareMember.write(oprot) + oprot.writeFieldEnd() + if self.squareFeatureSet is not None: + oprot.writeFieldBegin('squareFeatureSet', TType.STRUCT, 5) + self.squareFeatureSet.write(oprot) + oprot.writeFieldEnd() + if self.noteStatus is not None: + oprot.writeFieldBegin('noteStatus', TType.STRUCT, 6) + self.noteStatus.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) + + +class JoinSquareRequest(object): + """ + Attributes: + - squareMid + - member + """ + + + def __init__(self, squareMid=None, member=None,): + self.squareMid = squareMid + self.member = member + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.member = SquareMember() + self.member.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('JoinSquareRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.member is not None: + oprot.writeFieldBegin('member', TType.STRUCT, 3) + self.member.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) + + +class JoinSquareChatResponse(object): + """ + Attributes: + - squareChat + - squareChatStatus + - squareChatMember + """ + + + def __init__(self, squareChat=None, squareChatStatus=None, squareChatMember=None,): + self.squareChat = squareChat + self.squareChatStatus = squareChatStatus + self.squareChatMember = squareChatMember + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChat = SquareChat() + self.squareChat.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.squareChatStatus = SquareChatStatus() + self.squareChatStatus.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareChatMember = SquareChatMember() + self.squareChatMember.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('JoinSquareChatResponse') + if self.squareChat is not None: + oprot.writeFieldBegin('squareChat', TType.STRUCT, 1) + self.squareChat.write(oprot) + oprot.writeFieldEnd() + if self.squareChatStatus is not None: + oprot.writeFieldBegin('squareChatStatus', TType.STRUCT, 2) + self.squareChatStatus.write(oprot) + oprot.writeFieldEnd() + if self.squareChatMember is not None: + oprot.writeFieldBegin('squareChatMember', TType.STRUCT, 3) + self.squareChatMember.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) + + +class JoinSquareChatRequest(object): + """ + Attributes: + - squareChatMid + """ + + + def __init__(self, squareChatMid=None,): + self.squareChatMid = squareChatMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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('JoinSquareChatRequest') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SendMessageResponse(object): + """ + Attributes: + - createdSquareMessage + """ + + + def __init__(self, createdSquareMessage=None,): + self.createdSquareMessage = createdSquareMessage + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.createdSquareMessage = SquareMessage() + self.createdSquareMessage.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('SendMessageResponse') + if self.createdSquareMessage is not None: + oprot.writeFieldBegin('createdSquareMessage', TType.STRUCT, 1) + self.createdSquareMessage.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) + + +class SendMessageRequest(object): + """ + Attributes: + - reqSeq + - squareChatMid + - squareMessage + """ + + + def __init__(self, reqSeq=None, squareChatMid=None, squareMessage=None,): + self.reqSeq = reqSeq + self.squareChatMid = squareChatMid + self.squareMessage = squareMessage + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareMessage = SquareMessage() + self.squareMessage.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('SendMessageRequest') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 2) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.squareMessage is not None: + oprot.writeFieldBegin('squareMessage', TType.STRUCT, 3) + self.squareMessage.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) + + +class MarkAsReadRequest(object): + """ + Attributes: + - squareChatMid + - messageId + """ + + + def __init__(self, squareChatMid=None, messageId=None,): + self.squareChatMid = squareChatMid + 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 == 2: + if ftype == TType.STRING: + self.squareChatMid = 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.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('MarkAsReadRequest') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 2) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.messageId is not None: + oprot.writeFieldBegin('messageId', TType.STRING, 4) + 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) + + +class MarkAsReadResponse(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('MarkAsReadResponse') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SubscriptionState(object): + """ + Attributes: + - subscriptionId + - ttlMillis + """ + + + def __init__(self, subscriptionId=None, ttlMillis=None,): + self.subscriptionId = subscriptionId + self.ttlMillis = ttlMillis + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.subscriptionId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.ttlMillis = 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('SubscriptionState') + if self.subscriptionId is not None: + oprot.writeFieldBegin('subscriptionId', TType.I64, 1) + oprot.writeI64(self.subscriptionId) + oprot.writeFieldEnd() + if self.ttlMillis is not None: + oprot.writeFieldBegin('ttlMillis', TType.I64, 2) + oprot.writeI64(self.ttlMillis) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ApproveSquareMembersResponse(object): + """ + Attributes: + - approvedMembers + - status + """ + + + def __init__(self, approvedMembers=None, status=None,): + self.approvedMembers = approvedMembers + self.status = status + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.approvedMembers = [] + (_etype503, _size500) = iprot.readListBegin() + for _i504 in range(_size500): + _elem505 = SquareMember() + _elem505.read(iprot) + self.approvedMembers.append(_elem505) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.status = SquareStatus() + self.status.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('ApproveSquareMembersResponse') + if self.approvedMembers is not None: + oprot.writeFieldBegin('approvedMembers', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.approvedMembers)) + for iter506 in self.approvedMembers: + iter506.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.status is not None: + oprot.writeFieldBegin('status', TType.STRUCT, 2) + self.status.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) + + +class ApproveSquareMembersRequest(object): + """ + Attributes: + - squareMid + - requestedMemberMids + """ + + + def __init__(self, squareMid=None, requestedMemberMids=None,): + self.squareMid = squareMid + self.requestedMemberMids = requestedMemberMids + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.requestedMemberMids = [] + (_etype510, _size507) = iprot.readListBegin() + for _i511 in range(_size507): + _elem512 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.requestedMemberMids.append(_elem512) + 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('ApproveSquareMembersRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.requestedMemberMids is not None: + oprot.writeFieldBegin('requestedMemberMids', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.requestedMemberMids)) + for iter513 in self.requestedMemberMids: + oprot.writeString(iter513.encode('utf-8') if sys.version_info[0] == 2 else iter513) + 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) + + +class CreateSquareChatResponse(object): + """ + Attributes: + - squareChat + - squareChatStatus + - squareChatMember + """ + + + def __init__(self, squareChat=None, squareChatStatus=None, squareChatMember=None,): + self.squareChat = squareChat + self.squareChatStatus = squareChatStatus + self.squareChatMember = squareChatMember + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChat = SquareChat() + self.squareChat.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.squareChatStatus = SquareChatStatus() + self.squareChatStatus.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareChatMember = SquareChatMember() + self.squareChatMember.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('CreateSquareChatResponse') + if self.squareChat is not None: + oprot.writeFieldBegin('squareChat', TType.STRUCT, 1) + self.squareChat.write(oprot) + oprot.writeFieldEnd() + if self.squareChatStatus is not None: + oprot.writeFieldBegin('squareChatStatus', TType.STRUCT, 2) + self.squareChatStatus.write(oprot) + oprot.writeFieldEnd() + if self.squareChatMember is not None: + oprot.writeFieldBegin('squareChatMember', TType.STRUCT, 3) + self.squareChatMember.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) + + +class CreateSquareChatRequest(object): + """ + Attributes: + - reqSeq + - squareChat + - squareMemberMids + """ + + + def __init__(self, reqSeq=None, squareChat=None, squareMemberMids=None,): + self.reqSeq = reqSeq + self.squareChat = squareChat + self.squareMemberMids = squareMemberMids + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.STRUCT: + self.squareChat = SquareChat() + self.squareChat.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.squareMemberMids = [] + (_etype517, _size514) = iprot.readListBegin() + for _i518 in range(_size514): + _elem519 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.squareMemberMids.append(_elem519) + 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('CreateSquareChatRequest') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.squareChat is not None: + oprot.writeFieldBegin('squareChat', TType.STRUCT, 2) + self.squareChat.write(oprot) + oprot.writeFieldEnd() + if self.squareMemberMids is not None: + oprot.writeFieldBegin('squareMemberMids', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.squareMemberMids)) + for iter520 in self.squareMemberMids: + oprot.writeString(iter520.encode('utf-8') if sys.version_info[0] == 2 else iter520) + 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) + + +class CreateSquareResponse(object): + """ + Attributes: + - square + - creator + - authority + - status + """ + + + def __init__(self, square=None, creator=None, authority=None, status=None,): + self.square = square + self.creator = creator + self.authority = authority + self.status = status + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.square = Square() + self.square.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.creator = SquareMember() + self.creator.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.authority = SquareAuthority() + self.authority.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.status = SquareStatus() + self.status.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('CreateSquareResponse') + if self.square is not None: + oprot.writeFieldBegin('square', TType.STRUCT, 1) + self.square.write(oprot) + oprot.writeFieldEnd() + if self.creator is not None: + oprot.writeFieldBegin('creator', TType.STRUCT, 2) + self.creator.write(oprot) + oprot.writeFieldEnd() + if self.authority is not None: + oprot.writeFieldBegin('authority', TType.STRUCT, 3) + self.authority.write(oprot) + oprot.writeFieldEnd() + if self.status is not None: + oprot.writeFieldBegin('status', TType.STRUCT, 4) + self.status.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) + + +class CreateSquareRequest(object): + """ + Attributes: + - reqSeq + - square + - creator + """ + + + def __init__(self, reqSeq=None, square=None, creator=None,): + self.reqSeq = reqSeq + self.square = square + self.creator = creator + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.STRUCT: + self.square = Square() + self.square.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.creator = SquareMember() + self.creator.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('CreateSquareRequest') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.square is not None: + oprot.writeFieldBegin('square', TType.STRUCT, 2) + self.square.write(oprot) + oprot.writeFieldEnd() + if self.creator is not None: + oprot.writeFieldBegin('creator', TType.STRUCT, 3) + self.creator.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) + + +class DeleteSquareResponse(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('DeleteSquareResponse') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 DeleteSquareRequest(object): + """ + Attributes: + - mid + - revision + """ + + + def __init__(self, mid=None, revision=None,): + self.mid = mid + self.revision = revision + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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) + elif fid == 3: + if ftype == TType.I64: + self.revision = 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('DeleteSquareRequest') + 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() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 3) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 DestroyMessageResponse(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('DestroyMessageResponse') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 DestroyMessageRequest(object): + """ + Attributes: + - squareChatMid + - messageId + """ + + + def __init__(self, squareChatMid=None, messageId=None,): + self.squareChatMid = squareChatMid + 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 == 2: + if ftype == TType.STRING: + self.squareChatMid = 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.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('DestroyMessageRequest') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 2) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.messageId is not None: + oprot.writeFieldBegin('messageId', TType.STRING, 4) + 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) + + +class GetSquareChatMembersRequest(object): + """ + Attributes: + - squareChatMid + - continuationToken + - limit + """ + + + def __init__(self, squareChatMid=None, continuationToken=None, limit=None,): + self.squareChatMid = squareChatMid + self.continuationToken = continuationToken + 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 == 1: + if ftype == TType.STRING: + self.squareChatMid = 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.continuationToken = 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.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('GetSquareChatMembersRequest') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 2) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 3) + 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) + + +class GetSquareChatMembersResponse(object): + """ + Attributes: + - squareChatMembers + - continuationToken + """ + + + def __init__(self, squareChatMembers=None, continuationToken=None,): + self.squareChatMembers = squareChatMembers + self.continuationToken = continuationToken + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMembers = SquareMember() + self.squareChatMembers.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.continuationToken = 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('GetSquareChatMembersResponse') + if self.squareChatMembers is not None: + oprot.writeFieldBegin('squareChatMembers', TType.STRUCT, 1) + self.squareChatMembers.write(oprot) + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 2) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareChatStatusRequest(object): + """ + Attributes: + - squareChatMid + """ + + + def __init__(self, squareChatMid=None,): + self.squareChatMid = squareChatMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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('GetSquareChatStatusRequest') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 2) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareChatStatusResponse(object): + """ + Attributes: + - chatStatus + """ + + + def __init__(self, chatStatus=None,): + self.chatStatus = chatStatus + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.chatStatus = SquareChatStatus() + self.chatStatus.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('GetSquareChatStatusResponse') + if self.chatStatus is not None: + oprot.writeFieldBegin('chatStatus', TType.STRUCT, 1) + self.chatStatus.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) + + +class GetSquareChatRequest(object): + """ + Attributes: + - squareChatMid + """ + + + def __init__(self, squareChatMid=None,): + self.squareChatMid = squareChatMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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('GetSquareChatRequest') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareChatResponse(object): + """ + Attributes: + - squareChat + - squareChatMember + - squareChatStatus + """ + + + def __init__(self, squareChat=None, squareChatMember=None, squareChatStatus=None,): + self.squareChat = squareChat + self.squareChatMember = squareChatMember + self.squareChatStatus = squareChatStatus + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChat = SquareChat() + self.squareChat.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.squareChatMember = SquareChatMember() + self.squareChatMember.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareChatStatus = SquareChatStatus() + self.squareChatStatus.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('GetSquareChatResponse') + if self.squareChat is not None: + oprot.writeFieldBegin('squareChat', TType.STRUCT, 1) + self.squareChat.write(oprot) + oprot.writeFieldEnd() + if self.squareChatMember is not None: + oprot.writeFieldBegin('squareChatMember', TType.STRUCT, 2) + self.squareChatMember.write(oprot) + oprot.writeFieldEnd() + if self.squareChatStatus is not None: + oprot.writeFieldBegin('squareChatStatus', TType.STRUCT, 3) + self.squareChatStatus.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) + + +class GetSquareAuthorityRequest(object): + """ + Attributes: + - squareMid + """ + + + def __init__(self, squareMid=None,): + self.squareMid = squareMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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('GetSquareAuthorityRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareAuthorityResponse(object): + """ + Attributes: + - authority + """ + + + def __init__(self, authority=None,): + self.authority = authority + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.authority = SquareAuthority() + self.authority.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('GetSquareAuthorityResponse') + if self.authority is not None: + oprot.writeFieldBegin('authority', TType.STRUCT, 1) + self.authority.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) + + +class GetJoinedSquaresRequest(object): + """ + Attributes: + - continuationToken + - limit + """ + + + def __init__(self, continuationToken=None, limit=None,): + self.continuationToken = continuationToken + 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.STRING: + self.continuationToken = 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.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('GetJoinedSquaresRequest') + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 2) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 3) + 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) + + +class GetJoinedSquaresResponse(object): + """ + Attributes: + - squares + - members + - authorities + - statuses + - continuationToken + - noteStatuses + """ + + + def __init__(self, squares=None, members=None, authorities=None, statuses=None, continuationToken=None, noteStatuses=None,): + self.squares = squares + self.members = members + self.authorities = authorities + self.statuses = statuses + self.continuationToken = continuationToken + self.noteStatuses = noteStatuses + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squares = [] + (_etype524, _size521) = iprot.readListBegin() + for _i525 in range(_size521): + _elem526 = Square() + _elem526.read(iprot) + self.squares.append(_elem526) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.MAP: + self.members = {} + (_ktype528, _vtype529, _size527) = iprot.readMapBegin() + for _i531 in range(_size527): + _key532 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val533 = SquareMember() + _val533.read(iprot) + self.members[_key532] = _val533 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.MAP: + self.authorities = {} + (_ktype535, _vtype536, _size534) = iprot.readMapBegin() + for _i538 in range(_size534): + _key539 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val540 = SquareAuthority() + _val540.read(iprot) + self.authorities[_key539] = _val540 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.MAP: + self.statuses = {} + (_ktype542, _vtype543, _size541) = iprot.readMapBegin() + for _i545 in range(_size541): + _key546 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val547 = SquareStatus() + _val547.read(iprot) + self.statuses[_key546] = _val547 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.continuationToken = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.MAP: + self.noteStatuses = {} + (_ktype549, _vtype550, _size548) = iprot.readMapBegin() + for _i552 in range(_size548): + _key553 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val554 = NoteStatus() + _val554.read(iprot) + self.noteStatuses[_key553] = _val554 + 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('GetJoinedSquaresResponse') + if self.squares is not None: + oprot.writeFieldBegin('squares', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.squares)) + for iter555 in self.squares: + iter555.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.members is not None: + oprot.writeFieldBegin('members', TType.MAP, 2) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.members)) + for kiter556, viter557 in self.members.items(): + oprot.writeString(kiter556.encode('utf-8') if sys.version_info[0] == 2 else kiter556) + viter557.write(oprot) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.authorities is not None: + oprot.writeFieldBegin('authorities', TType.MAP, 3) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.authorities)) + for kiter558, viter559 in self.authorities.items(): + oprot.writeString(kiter558.encode('utf-8') if sys.version_info[0] == 2 else kiter558) + viter559.write(oprot) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.statuses is not None: + oprot.writeFieldBegin('statuses', TType.MAP, 4) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.statuses)) + for kiter560, viter561 in self.statuses.items(): + oprot.writeString(kiter560.encode('utf-8') if sys.version_info[0] == 2 else kiter560) + viter561.write(oprot) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 5) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + if self.noteStatuses is not None: + oprot.writeFieldBegin('noteStatuses', TType.MAP, 6) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.noteStatuses)) + for kiter562, viter563 in self.noteStatuses.items(): + oprot.writeString(kiter562.encode('utf-8') if sys.version_info[0] == 2 else kiter562) + viter563.write(oprot) + 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) + + +class GetJoinableSquareChatsRequest(object): + """ + Attributes: + - squareMid + - continuationToken + - limit + """ + + + def __init__(self, squareMid=None, continuationToken=None, limit=None,): + self.squareMid = squareMid + self.continuationToken = continuationToken + 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 == 1: + if ftype == TType.STRING: + self.squareMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRING: + self.continuationToken = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 11: + 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('GetJoinableSquareChatsRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 10) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 11) + 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) + + +class GetJoinableSquareChatsResponse(object): + """ + Attributes: + - squareChats + - continuationToken + - totalSquareChatCount + - squareChatStatuses + """ + + + def __init__(self, squareChats=None, continuationToken=None, totalSquareChatCount=None, squareChatStatuses=None,): + self.squareChats = squareChats + self.continuationToken = continuationToken + self.totalSquareChatCount = totalSquareChatCount + self.squareChatStatuses = squareChatStatuses + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChats = [] + (_etype567, _size564) = iprot.readListBegin() + for _i568 in range(_size564): + _elem569 = SquareChat() + _elem569.read(iprot) + self.squareChats.append(_elem569) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.continuationToken = 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.totalSquareChatCount = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.MAP: + self.squareChatStatuses = {} + (_ktype571, _vtype572, _size570) = iprot.readMapBegin() + for _i574 in range(_size570): + _key575 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val576 = SquareChatStatus() + _val576.read(iprot) + self.squareChatStatuses[_key575] = _val576 + 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('GetJoinableSquareChatsResponse') + if self.squareChats is not None: + oprot.writeFieldBegin('squareChats', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.squareChats)) + for iter577 in self.squareChats: + iter577.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 2) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + if self.totalSquareChatCount is not None: + oprot.writeFieldBegin('totalSquareChatCount', TType.I32, 3) + oprot.writeI32(self.totalSquareChatCount) + oprot.writeFieldEnd() + if self.squareChatStatuses is not None: + oprot.writeFieldBegin('squareChatStatuses', TType.MAP, 4) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.squareChatStatuses)) + for kiter578, viter579 in self.squareChatStatuses.items(): + oprot.writeString(kiter578.encode('utf-8') if sys.version_info[0] == 2 else kiter578) + viter579.write(oprot) + 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) + + +class GetInvitationTicketUrlRequest(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('GetInvitationTicketUrlRequest') + 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) + + +class GetInvitationTicketUrlResponse(object): + """ + Attributes: + - invitationURL + """ + + + def __init__(self, invitationURL=None,): + self.invitationURL = invitationURL + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.invitationURL = 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('GetInvitationTicketUrlResponse') + if self.invitationURL is not None: + oprot.writeFieldBegin('invitationURL', TType.STRING, 1) + oprot.writeString(self.invitationURL.encode('utf-8') if sys.version_info[0] == 2 else self.invitationURL) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 LeaveSquareRequest(object): + """ + Attributes: + - squareMid + """ + + + def __init__(self, squareMid=None,): + self.squareMid = squareMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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('LeaveSquareRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 LeaveSquareResponse(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('LeaveSquareResponse') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 LeaveSquareChatRequest(object): + """ + Attributes: + - squareChatMid + - sayGoodbye + - squareChatMemberRevision + """ + + + def __init__(self, squareChatMid=None, sayGoodbye=None, squareChatMemberRevision=None,): + self.squareChatMid = squareChatMid + self.sayGoodbye = sayGoodbye + self.squareChatMemberRevision = squareChatMemberRevision + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.BOOL: + self.sayGoodbye = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.squareChatMemberRevision = 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('LeaveSquareChatRequest') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 2) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.sayGoodbye is not None: + oprot.writeFieldBegin('sayGoodbye', TType.BOOL, 3) + oprot.writeBool(self.sayGoodbye) + oprot.writeFieldEnd() + if self.squareChatMemberRevision is not None: + oprot.writeFieldBegin('squareChatMemberRevision', TType.I64, 4) + oprot.writeI64(self.squareChatMemberRevision) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 LeaveSquareChatResponse(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('LeaveSquareChatResponse') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareMemberSearchOption(object): + """ + Attributes: + - membershipState + - memberRoles + - displayName + - ableToReceiveMessage + - ableToReceiveFriendRequest + - chatMidToExcludeMembers + - includingMe + """ + + + def __init__(self, membershipState=None, memberRoles=None, displayName=None, ableToReceiveMessage=None, ableToReceiveFriendRequest=None, chatMidToExcludeMembers=None, includingMe=None,): + self.membershipState = membershipState + self.memberRoles = memberRoles + self.displayName = displayName + self.ableToReceiveMessage = ableToReceiveMessage + self.ableToReceiveFriendRequest = ableToReceiveFriendRequest + self.chatMidToExcludeMembers = chatMidToExcludeMembers + self.includingMe = includingMe + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.membershipState = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.SET: + self.memberRoles = set() + (_etype583, _size580) = iprot.readSetBegin() + for _i584 in range(_size580): + _elem585 = iprot.readI32() + self.memberRoles.add(_elem585) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 3: + 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 == 4: + if ftype == TType.I32: + self.ableToReceiveMessage = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.ableToReceiveFriendRequest = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.chatMidToExcludeMembers = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.BOOL: + self.includingMe = 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('SquareMemberSearchOption') + if self.membershipState is not None: + oprot.writeFieldBegin('membershipState', TType.I32, 1) + oprot.writeI32(self.membershipState) + oprot.writeFieldEnd() + if self.memberRoles is not None: + oprot.writeFieldBegin('memberRoles', TType.SET, 2) + oprot.writeSetBegin(TType.I32, len(self.memberRoles)) + for iter586 in self.memberRoles: + oprot.writeI32(iter586) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.displayName is not None: + oprot.writeFieldBegin('displayName', TType.STRING, 3) + oprot.writeString(self.displayName.encode('utf-8') if sys.version_info[0] == 2 else self.displayName) + oprot.writeFieldEnd() + if self.ableToReceiveMessage is not None: + oprot.writeFieldBegin('ableToReceiveMessage', TType.I32, 4) + oprot.writeI32(self.ableToReceiveMessage) + oprot.writeFieldEnd() + if self.ableToReceiveFriendRequest is not None: + oprot.writeFieldBegin('ableToReceiveFriendRequest', TType.I32, 5) + oprot.writeI32(self.ableToReceiveFriendRequest) + oprot.writeFieldEnd() + if self.chatMidToExcludeMembers is not None: + oprot.writeFieldBegin('chatMidToExcludeMembers', TType.STRING, 6) + oprot.writeString(self.chatMidToExcludeMembers.encode('utf-8') if sys.version_info[0] == 2 else self.chatMidToExcludeMembers) + oprot.writeFieldEnd() + if self.includingMe is not None: + oprot.writeFieldBegin('includingMe', TType.BOOL, 7) + oprot.writeBool(self.includingMe) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SearchSquareMembersRequest(object): + """ + Attributes: + - squareMid + - searchOption + - continuationToken + - limit + """ + + + def __init__(self, squareMid=None, searchOption=None, continuationToken=None, limit=None,): + self.squareMid = squareMid + self.searchOption = searchOption + self.continuationToken = continuationToken + 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.STRING: + self.squareMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.searchOption = SquareMemberSearchOption() + self.searchOption.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.continuationToken = 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.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('SearchSquareMembersRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.searchOption is not None: + oprot.writeFieldBegin('searchOption', TType.STRUCT, 3) + self.searchOption.write(oprot) + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 4) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + 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) + + +class SearchSquareMembersResponse(object): + """ + Attributes: + - members + - revision + - continuationToken + - totalCount + """ + + + def __init__(self, members=None, revision=None, continuationToken=None, totalCount=None,): + self.members = members + self.revision = revision + self.continuationToken = continuationToken + self.totalCount = totalCount + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.members = [] + (_etype590, _size587) = iprot.readListBegin() + for _i591 in range(_size587): + _elem592 = SquareMember() + _elem592.read(iprot) + self.members.append(_elem592) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.revision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.continuationToken = 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.totalCount = 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('SearchSquareMembersResponse') + if self.members is not None: + oprot.writeFieldBegin('members', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.members)) + for iter593 in self.members: + iter593.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 2) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 3) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + if self.totalCount is not None: + oprot.writeFieldBegin('totalCount', TType.I32, 4) + oprot.writeI32(self.totalCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 FindSquareByInvitationTicketRequest(object): + """ + Attributes: + - invitationTicket + """ + + + def __init__(self, invitationTicket=None,): + self.invitationTicket = invitationTicket + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.invitationTicket = 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('FindSquareByInvitationTicketRequest') + if self.invitationTicket is not None: + oprot.writeFieldBegin('invitationTicket', TType.STRING, 2) + oprot.writeString(self.invitationTicket.encode('utf-8') if sys.version_info[0] == 2 else self.invitationTicket) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 FindSquareByInvitationTicketResponse(object): + """ + Attributes: + - square + - myMembership + - squareAuthority + - squareStatus + """ + + + def __init__(self, square=None, myMembership=None, squareAuthority=None, squareStatus=None,): + self.square = square + self.myMembership = myMembership + self.squareAuthority = squareAuthority + self.squareStatus = squareStatus + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.square = Square() + self.square.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.myMembership = SquareMember() + self.myMembership.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareAuthority = SquareAuthority() + self.squareAuthority.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.squareStatus = SquareStatus() + self.squareStatus.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('FindSquareByInvitationTicketResponse') + if self.square is not None: + oprot.writeFieldBegin('square', TType.STRUCT, 1) + self.square.write(oprot) + oprot.writeFieldEnd() + if self.myMembership is not None: + oprot.writeFieldBegin('myMembership', TType.STRUCT, 2) + self.myMembership.write(oprot) + oprot.writeFieldEnd() + if self.squareAuthority is not None: + oprot.writeFieldBegin('squareAuthority', TType.STRUCT, 3) + self.squareAuthority.write(oprot) + oprot.writeFieldEnd() + if self.squareStatus is not None: + oprot.writeFieldBegin('squareStatus', TType.STRUCT, 4) + self.squareStatus.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) + + +class SquareEventReceiveMessage(object): + """ + Attributes: + - squareChatMid + - squareMessage + """ + + + def __init__(self, squareChatMid=None, squareMessage=None,): + self.squareChatMid = squareChatMid + self.squareMessage = squareMessage + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.squareMessage = SquareMessage() + self.squareMessage.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('SquareEventReceiveMessage') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.squareMessage is not None: + oprot.writeFieldBegin('squareMessage', TType.STRUCT, 2) + self.squareMessage.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) + + +class SquareEventSendMessage(object): + """ + Attributes: + - squareChatMid + - squareMessage + - reqSeq + """ + + + def __init__(self, squareChatMid=None, squareMessage=None, reqSeq=None,): + self.squareChatMid = squareChatMid + self.squareMessage = squareMessage + self.reqSeq = reqSeq + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.squareMessage = SquareMessage() + self.squareMessage.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.reqSeq = 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('SquareEventSendMessage') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.squareMessage is not None: + oprot.writeFieldBegin('squareMessage', TType.STRUCT, 2) + self.squareMessage.write(oprot) + oprot.writeFieldEnd() + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 3) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareEventNotifiedJoinSquareChat(object): + """ + Attributes: + - squareChatMid + - joinedMember + """ + + + def __init__(self, squareChatMid=None, joinedMember=None,): + self.squareChatMid = squareChatMid + self.joinedMember = joinedMember + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.joinedMember = SquareMember() + self.joinedMember.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('SquareEventNotifiedJoinSquareChat') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.joinedMember is not None: + oprot.writeFieldBegin('joinedMember', TType.STRUCT, 2) + self.joinedMember.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) + + +class SquareEventNotifiedInviteIntoSquareChat(object): + """ + Attributes: + - squareChatMid + - invitees + - invitor + - invitorRelation + """ + + + def __init__(self, squareChatMid=None, invitees=None, invitor=None, invitorRelation=None,): + self.squareChatMid = squareChatMid + self.invitees = invitees + self.invitor = invitor + self.invitorRelation = invitorRelation + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.invitees = [] + (_etype597, _size594) = iprot.readListBegin() + for _i598 in range(_size594): + _elem599 = SquareMember() + _elem599.read(iprot) + self.invitees.append(_elem599) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.invitor = SquareMember() + self.invitor.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.invitorRelation = SquareMemberRelation() + self.invitorRelation.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('SquareEventNotifiedInviteIntoSquareChat') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.invitees is not None: + oprot.writeFieldBegin('invitees', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.invitees)) + for iter600 in self.invitees: + iter600.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.invitor is not None: + oprot.writeFieldBegin('invitor', TType.STRUCT, 3) + self.invitor.write(oprot) + oprot.writeFieldEnd() + if self.invitorRelation is not None: + oprot.writeFieldBegin('invitorRelation', TType.STRUCT, 4) + self.invitorRelation.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) + + +class SquareEventNotifiedLeaveSquareChat(object): + """ + Attributes: + - squareChatMid + - squareMemberMid + - sayGoodbye + - squareMember + """ + + + def __init__(self, squareChatMid=None, squareMemberMid=None, sayGoodbye=None, squareMember=None,): + self.squareChatMid = squareChatMid + self.squareMemberMid = squareMemberMid + self.sayGoodbye = sayGoodbye + self.squareMember = squareMember + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.squareMemberMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.BOOL: + self.sayGoodbye = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.squareMember = SquareMember() + self.squareMember.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('SquareEventNotifiedLeaveSquareChat') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.squareMemberMid is not None: + oprot.writeFieldBegin('squareMemberMid', TType.STRING, 2) + oprot.writeString(self.squareMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMemberMid) + oprot.writeFieldEnd() + if self.sayGoodbye is not None: + oprot.writeFieldBegin('sayGoodbye', TType.BOOL, 3) + oprot.writeBool(self.sayGoodbye) + oprot.writeFieldEnd() + if self.squareMember is not None: + oprot.writeFieldBegin('squareMember', TType.STRUCT, 4) + self.squareMember.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) + + +class SquareEventNotifiedDestroyMessage(object): + """ + Attributes: + - squareChatMid + - messageId + """ + + + def __init__(self, squareChatMid=None, messageId=None,): + self.squareChatMid = squareChatMid + 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.squareChatMid = 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.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('SquareEventNotifiedDestroyMessage') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.messageId is not None: + oprot.writeFieldBegin('messageId', TType.STRING, 3) + 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) + + +class SquareEventNotifiedMarkAsRead(object): + """ + Attributes: + - squareChatMid + - sMemberMid + - messageId + """ + + + def __init__(self, squareChatMid=None, sMemberMid=None, messageId=None,): + self.squareChatMid = squareChatMid + self.sMemberMid = sMemberMid + 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.squareChatMid = 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.sMemberMid = 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.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('SquareEventNotifiedMarkAsRead') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.sMemberMid is not None: + oprot.writeFieldBegin('sMemberMid', TType.STRING, 2) + oprot.writeString(self.sMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.sMemberMid) + oprot.writeFieldEnd() + if self.messageId is not None: + oprot.writeFieldBegin('messageId', TType.STRING, 4) + 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) + + +class SquareEventNotifiedUpdateSquareMemberProfile(object): + """ + Attributes: + - squareChatMid + - squareMember + """ + + + def __init__(self, squareChatMid=None, squareMember=None,): + self.squareChatMid = squareChatMid + self.squareMember = squareMember + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.squareMember = SquareMember() + self.squareMember.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('SquareEventNotifiedUpdateSquareMemberProfile') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.squareMember is not None: + oprot.writeFieldBegin('squareMember', TType.STRUCT, 2) + self.squareMember.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) + + +class SquareEventNotifiedKickoutFromSquare(object): + """ + Attributes: + - squareChatMid + - kickees + """ + + + def __init__(self, squareChatMid=None, kickees=None,): + self.squareChatMid = squareChatMid + self.kickees = kickees + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.kickees = [] + (_etype604, _size601) = iprot.readListBegin() + for _i605 in range(_size601): + _elem606 = SquareMember() + _elem606.read(iprot) + self.kickees.append(_elem606) + 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('SquareEventNotifiedKickoutFromSquare') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.kickees is not None: + oprot.writeFieldBegin('kickees', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.kickees)) + for iter607 in self.kickees: + iter607.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) + + +class SquareEventNotifiedShutdownSquare(object): + """ + Attributes: + - squareChatMid + - square + """ + + + def __init__(self, squareChatMid=None, square=None,): + self.squareChatMid = squareChatMid + self.square = square + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.square = Square() + self.square.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('SquareEventNotifiedShutdownSquare') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.square is not None: + oprot.writeFieldBegin('square', TType.STRUCT, 2) + self.square.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) + + +class SquareEventNotifiedDeleteSquareChat(object): + """ + Attributes: + - squareChat + """ + + + def __init__(self, squareChat=None,): + self.squareChat = squareChat + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChat = SquareChat() + self.squareChat.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('SquareEventNotifiedDeleteSquareChat') + if self.squareChat is not None: + oprot.writeFieldBegin('squareChat', TType.STRUCT, 1) + self.squareChat.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) + + +class SquareEventNotifiedUpdateSquareChatProfileName(object): + """ + Attributes: + - squareChatMid + - editor + - updatedChatName + """ + + + def __init__(self, squareChatMid=None, editor=None, updatedChatName=None,): + self.squareChatMid = squareChatMid + self.editor = editor + self.updatedChatName = updatedChatName + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.editor = SquareMember() + self.editor.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.updatedChatName = 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('SquareEventNotifiedUpdateSquareChatProfileName') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.editor is not None: + oprot.writeFieldBegin('editor', TType.STRUCT, 2) + self.editor.write(oprot) + oprot.writeFieldEnd() + if self.updatedChatName is not None: + oprot.writeFieldBegin('updatedChatName', TType.STRING, 3) + oprot.writeString(self.updatedChatName.encode('utf-8') if sys.version_info[0] == 2 else self.updatedChatName) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareEventNotifiedUpdateSquareChatProfileImage(object): + """ + Attributes: + - squareChatMid + - editor + """ + + + def __init__(self, squareChatMid=None, editor=None,): + self.squareChatMid = squareChatMid + self.editor = editor + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.editor = SquareMember() + self.editor.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('SquareEventNotifiedUpdateSquareChatProfileImage') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.editor is not None: + oprot.writeFieldBegin('editor', TType.STRUCT, 2) + self.editor.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) + + +class SquareEventNotifiedUpdateSquareChatStatus(object): + """ + Attributes: + - squareChatMid + - statusWithoutMessage + """ + + + def __init__(self, squareChatMid=None, statusWithoutMessage=None,): + self.squareChatMid = squareChatMid + self.statusWithoutMessage = statusWithoutMessage + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.statusWithoutMessage = SquareChatStatusWithoutMessage() + self.statusWithoutMessage.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('SquareEventNotifiedUpdateSquareChatStatus') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.statusWithoutMessage is not None: + oprot.writeFieldBegin('statusWithoutMessage', TType.STRUCT, 2) + self.statusWithoutMessage.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) + + +class SquareEventNotifiedUpdateSquareStatus(object): + """ + Attributes: + - squareMid + - squareStatus + """ + + + def __init__(self, squareMid=None, squareStatus=None,): + self.squareMid = squareMid + self.squareStatus = squareStatus + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.squareStatus = SquareStatus() + self.squareStatus.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('SquareEventNotifiedUpdateSquareStatus') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.squareStatus is not None: + oprot.writeFieldBegin('squareStatus', TType.STRUCT, 2) + self.squareStatus.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) + + +class SquareEventNotifiedCreateSquareMember(object): + """ + Attributes: + - square + - squareAuthority + - squareStatus + - squareMember + - squareFeatureSet + """ + + + def __init__(self, square=None, squareAuthority=None, squareStatus=None, squareMember=None, squareFeatureSet=None,): + self.square = square + self.squareAuthority = squareAuthority + self.squareStatus = squareStatus + self.squareMember = squareMember + self.squareFeatureSet = squareFeatureSet + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.square = Square() + self.square.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.squareAuthority = SquareAuthority() + self.squareAuthority.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareStatus = SquareStatus() + self.squareStatus.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.squareMember = SquareMember() + self.squareMember.read(iprot) + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.squareFeatureSet = SquareFeatureSet() + self.squareFeatureSet.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('SquareEventNotifiedCreateSquareMember') + if self.square is not None: + oprot.writeFieldBegin('square', TType.STRUCT, 1) + self.square.write(oprot) + oprot.writeFieldEnd() + if self.squareAuthority is not None: + oprot.writeFieldBegin('squareAuthority', TType.STRUCT, 2) + self.squareAuthority.write(oprot) + oprot.writeFieldEnd() + if self.squareStatus is not None: + oprot.writeFieldBegin('squareStatus', TType.STRUCT, 3) + self.squareStatus.write(oprot) + oprot.writeFieldEnd() + if self.squareMember is not None: + oprot.writeFieldBegin('squareMember', TType.STRUCT, 4) + self.squareMember.write(oprot) + oprot.writeFieldEnd() + if self.squareFeatureSet is not None: + oprot.writeFieldBegin('squareFeatureSet', TType.STRUCT, 5) + self.squareFeatureSet.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) + + +class SquareEventNotifiedCreateSquareChatMember(object): + """ + Attributes: + - squareChatMid + - squareMemberMid + - squareChatMember + """ + + + def __init__(self, squareChatMid=None, squareMemberMid=None, squareChatMember=None,): + self.squareChatMid = squareChatMid + self.squareMemberMid = squareMemberMid + self.squareChatMember = squareChatMember + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.squareMemberMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareChatMember = SquareChatMember() + self.squareChatMember.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('SquareEventNotifiedCreateSquareChatMember') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.squareMemberMid is not None: + oprot.writeFieldBegin('squareMemberMid', TType.STRING, 2) + oprot.writeString(self.squareMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMemberMid) + oprot.writeFieldEnd() + if self.squareChatMember is not None: + oprot.writeFieldBegin('squareChatMember', TType.STRUCT, 3) + self.squareChatMember.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) + + +class SquareEventNotifiedUpdateSquareMemberRelation(object): + """ + Attributes: + - squareMid + - myMemberMid + - targetSquareMemberMid + - squareMemberRelation + """ + + + def __init__(self, squareMid=None, myMemberMid=None, targetSquareMemberMid=None, squareMemberRelation=None,): + self.squareMid = squareMid + self.myMemberMid = myMemberMid + self.targetSquareMemberMid = targetSquareMemberMid + self.squareMemberRelation = squareMemberRelation + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.myMemberMid = 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.targetSquareMemberMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.squareMemberRelation = SquareMemberRelation() + self.squareMemberRelation.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('SquareEventNotifiedUpdateSquareMemberRelation') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.myMemberMid is not None: + oprot.writeFieldBegin('myMemberMid', TType.STRING, 2) + oprot.writeString(self.myMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.myMemberMid) + oprot.writeFieldEnd() + if self.targetSquareMemberMid is not None: + oprot.writeFieldBegin('targetSquareMemberMid', TType.STRING, 3) + oprot.writeString(self.targetSquareMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.targetSquareMemberMid) + oprot.writeFieldEnd() + if self.squareMemberRelation is not None: + oprot.writeFieldBegin('squareMemberRelation', TType.STRUCT, 4) + self.squareMemberRelation.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) + + +class SquareEventNotifiedUpdateSquare(object): + """ + Attributes: + - squareMid + - square + """ + + + def __init__(self, squareMid=None, square=None,): + self.squareMid = squareMid + self.square = square + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.square = Square() + self.square.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('SquareEventNotifiedUpdateSquare') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.square is not None: + oprot.writeFieldBegin('square', TType.STRUCT, 2) + self.square.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) + + +class SquareEventNotifiedUpdateSquareMember(object): + """ + Attributes: + - squareMid + - squareMemberMid + - squareMember + """ + + + def __init__(self, squareMid=None, squareMemberMid=None, squareMember=None,): + self.squareMid = squareMid + self.squareMemberMid = squareMemberMid + self.squareMember = squareMember + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.squareMemberMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareMember = SquareMember() + self.squareMember.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('SquareEventNotifiedUpdateSquareMember') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.squareMemberMid is not None: + oprot.writeFieldBegin('squareMemberMid', TType.STRING, 2) + oprot.writeString(self.squareMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMemberMid) + oprot.writeFieldEnd() + if self.squareMember is not None: + oprot.writeFieldBegin('squareMember', TType.STRUCT, 3) + self.squareMember.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) + + +class SquareEventNotifiedUpdateSquareChat(object): + """ + Attributes: + - squareMid + - squareChatMid + - squareChat + """ + + + def __init__(self, squareMid=None, squareChatMid=None, squareChat=None,): + self.squareMid = squareMid + self.squareChatMid = squareChatMid + self.squareChat = squareChat + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.squareChatMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareChat = SquareChat() + self.squareChat.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('SquareEventNotifiedUpdateSquareChat') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 2) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.squareChat is not None: + oprot.writeFieldBegin('squareChat', TType.STRUCT, 3) + self.squareChat.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) + + +class SquareEventNotificationJoinRequest(object): + """ + Attributes: + - squareMid + - squareName + - requestMemberName + - profileImageObsHash + """ + + + def __init__(self, squareMid=None, squareName=None, requestMemberName=None, profileImageObsHash=None,): + self.squareMid = squareMid + self.squareName = squareName + self.requestMemberName = requestMemberName + self.profileImageObsHash = profileImageObsHash + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.squareName = 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.requestMemberName = 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.profileImageObsHash = 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('SquareEventNotificationJoinRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.squareName is not None: + oprot.writeFieldBegin('squareName', TType.STRING, 2) + oprot.writeString(self.squareName.encode('utf-8') if sys.version_info[0] == 2 else self.squareName) + oprot.writeFieldEnd() + if self.requestMemberName is not None: + oprot.writeFieldBegin('requestMemberName', TType.STRING, 3) + oprot.writeString(self.requestMemberName.encode('utf-8') if sys.version_info[0] == 2 else self.requestMemberName) + oprot.writeFieldEnd() + if self.profileImageObsHash is not None: + oprot.writeFieldBegin('profileImageObsHash', TType.STRING, 4) + oprot.writeString(self.profileImageObsHash.encode('utf-8') if sys.version_info[0] == 2 else self.profileImageObsHash) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareEventNotificationMemberUpdate(object): + """ + Attributes: + - squareMid + - squareName + - profileImageObsHash + """ + + + def __init__(self, squareMid=None, squareName=None, profileImageObsHash=None,): + self.squareMid = squareMid + self.squareName = squareName + self.profileImageObsHash = profileImageObsHash + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.squareName = 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.profileImageObsHash = 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('SquareEventNotificationMemberUpdate') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.squareName is not None: + oprot.writeFieldBegin('squareName', TType.STRING, 2) + oprot.writeString(self.squareName.encode('utf-8') if sys.version_info[0] == 2 else self.squareName) + oprot.writeFieldEnd() + if self.profileImageObsHash is not None: + oprot.writeFieldBegin('profileImageObsHash', TType.STRING, 3) + oprot.writeString(self.profileImageObsHash.encode('utf-8') if sys.version_info[0] == 2 else self.profileImageObsHash) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareEventNotificationSquareDelete(object): + """ + Attributes: + - squareMid + - squareName + - profileImageObsHash + """ + + + def __init__(self, squareMid=None, squareName=None, profileImageObsHash=None,): + self.squareMid = squareMid + self.squareName = squareName + self.profileImageObsHash = profileImageObsHash + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.squareName = 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.profileImageObsHash = 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('SquareEventNotificationSquareDelete') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.squareName is not None: + oprot.writeFieldBegin('squareName', TType.STRING, 2) + oprot.writeString(self.squareName.encode('utf-8') if sys.version_info[0] == 2 else self.squareName) + oprot.writeFieldEnd() + if self.profileImageObsHash is not None: + oprot.writeFieldBegin('profileImageObsHash', TType.STRING, 3) + oprot.writeString(self.profileImageObsHash.encode('utf-8') if sys.version_info[0] == 2 else self.profileImageObsHash) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareEventNotificationSquareChatDelete(object): + """ + Attributes: + - squareChatMid + - squareChatName + - profileImageObsHash + """ + + + def __init__(self, squareChatMid=None, squareChatName=None, profileImageObsHash=None,): + self.squareChatMid = squareChatMid + self.squareChatName = squareChatName + self.profileImageObsHash = profileImageObsHash + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.squareChatName = 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.profileImageObsHash = 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('SquareEventNotificationSquareChatDelete') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.squareChatName is not None: + oprot.writeFieldBegin('squareChatName', TType.STRING, 2) + oprot.writeString(self.squareChatName.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatName) + oprot.writeFieldEnd() + if self.profileImageObsHash is not None: + oprot.writeFieldBegin('profileImageObsHash', TType.STRING, 3) + oprot.writeString(self.profileImageObsHash.encode('utf-8') if sys.version_info[0] == 2 else self.profileImageObsHash) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareEventNotificationMessage(object): + """ + Attributes: + - squareChatMid + - squareMessage + - senderDisplayName + - unreadCount + - requiredToFetchChatEvents + """ + + + def __init__(self, squareChatMid=None, squareMessage=None, senderDisplayName=None, unreadCount=None, requiredToFetchChatEvents=None,): + self.squareChatMid = squareChatMid + self.squareMessage = squareMessage + self.senderDisplayName = senderDisplayName + self.unreadCount = unreadCount + self.requiredToFetchChatEvents = requiredToFetchChatEvents + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.squareMessage = SquareMessage() + self.squareMessage.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.senderDisplayName = 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.unreadCount = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.BOOL: + self.requiredToFetchChatEvents = 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('SquareEventNotificationMessage') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.squareMessage is not None: + oprot.writeFieldBegin('squareMessage', TType.STRUCT, 2) + self.squareMessage.write(oprot) + oprot.writeFieldEnd() + if self.senderDisplayName is not None: + oprot.writeFieldBegin('senderDisplayName', TType.STRING, 3) + oprot.writeString(self.senderDisplayName.encode('utf-8') if sys.version_info[0] == 2 else self.senderDisplayName) + oprot.writeFieldEnd() + if self.unreadCount is not None: + oprot.writeFieldBegin('unreadCount', TType.I32, 4) + oprot.writeI32(self.unreadCount) + oprot.writeFieldEnd() + if self.requiredToFetchChatEvents is not None: + oprot.writeFieldBegin('requiredToFetchChatEvents', TType.BOOL, 5) + oprot.writeBool(self.requiredToFetchChatEvents) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareEventNotifiedUpdateSquareChatMember(object): + """ + Attributes: + - squareChatMid + - squareMemberMid + - squareChatMember + """ + + + def __init__(self, squareChatMid=None, squareMemberMid=None, squareChatMember=None,): + self.squareChatMid = squareChatMid + self.squareMemberMid = squareMemberMid + self.squareChatMember = squareChatMember + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.squareMemberMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareChatMember = SquareChatMember() + self.squareChatMember.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('SquareEventNotifiedUpdateSquareChatMember') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 1) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.squareMemberMid is not None: + oprot.writeFieldBegin('squareMemberMid', TType.STRING, 2) + oprot.writeString(self.squareMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMemberMid) + oprot.writeFieldEnd() + if self.squareChatMember is not None: + oprot.writeFieldBegin('squareChatMember', TType.STRUCT, 3) + self.squareChatMember.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) + + +class SquareEventNotifiedUpdateSquareAuthority(object): + """ + Attributes: + - squareMid + - squareAuthority + """ + + + def __init__(self, squareMid=None, squareAuthority=None,): + self.squareMid = squareMid + self.squareAuthority = squareAuthority + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.squareAuthority = SquareAuthority() + self.squareAuthority.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('SquareEventNotifiedUpdateSquareAuthority') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.squareAuthority is not None: + oprot.writeFieldBegin('squareAuthority', TType.STRUCT, 2) + self.squareAuthority.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) + + +class SquareEventNotifiedUpdateSquareFeatureSet(object): + """ + Attributes: + - squareFeatureSet + """ + + + def __init__(self, squareFeatureSet=None,): + self.squareFeatureSet = squareFeatureSet + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareFeatureSet = SquareFeatureSet() + self.squareFeatureSet.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('SquareEventNotifiedUpdateSquareFeatureSet') + if self.squareFeatureSet is not None: + oprot.writeFieldBegin('squareFeatureSet', TType.STRUCT, 1) + self.squareFeatureSet.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) + + +class SquareEventPayload(object): + """ + Attributes: + - receiveMessage + - sendMessage + - notifiedJoinSquareChat + - notifiedInviteIntoSquareChat + - notifiedLeaveSquareChat + - notifiedDestroyMessage + - notifiedMarkAsRead + - notifiedUpdateSquareMemberProfile + - notifiedKickoutFromSquare + - notifiedShutdownSquare + - notifiedDeleteSquareChat + - notifiedUpdateSquareChatProfileName + - notifiedUpdateSquareChatProfileImage + - notifiedUpdateSquareStatus + - notifiedUpdateSquareChatStatus + - notifiedCreateSquareMember + - notifiedCreateSquareChatMember + - notifiedUpdateSquareMemberRelation + - notifiedUpdateSquare + - notifiedUpdateSquareMember + - notifiedUpdateSquareChat + - notificationJoinRequest + - notificationJoined + - notificationPromoteCoadmin + - notificationPromoteAdmin + - notificationDemoteMember + - notificationKickedOut + - notificationSquareDelete + - notificationSquareChatDelete + - notificationMessage + - notifiedUpdateSquareChatMember + - notifiedUpdateSquareAuthority + - notifiedUpdateSquareFeatureSet + """ + + + def __init__(self, receiveMessage=None, sendMessage=None, notifiedJoinSquareChat=None, notifiedInviteIntoSquareChat=None, notifiedLeaveSquareChat=None, notifiedDestroyMessage=None, notifiedMarkAsRead=None, notifiedUpdateSquareMemberProfile=None, notifiedKickoutFromSquare=None, notifiedShutdownSquare=None, notifiedDeleteSquareChat=None, notifiedUpdateSquareChatProfileName=None, notifiedUpdateSquareChatProfileImage=None, notifiedUpdateSquareStatus=None, notifiedUpdateSquareChatStatus=None, notifiedCreateSquareMember=None, notifiedCreateSquareChatMember=None, notifiedUpdateSquareMemberRelation=None, notifiedUpdateSquare=None, notifiedUpdateSquareMember=None, notifiedUpdateSquareChat=None, notificationJoinRequest=None, notificationJoined=None, notificationPromoteCoadmin=None, notificationPromoteAdmin=None, notificationDemoteMember=None, notificationKickedOut=None, notificationSquareDelete=None, notificationSquareChatDelete=None, notificationMessage=None, notifiedUpdateSquareChatMember=None, notifiedUpdateSquareAuthority=None, notifiedUpdateSquareFeatureSet=None,): + self.receiveMessage = receiveMessage + self.sendMessage = sendMessage + self.notifiedJoinSquareChat = notifiedJoinSquareChat + self.notifiedInviteIntoSquareChat = notifiedInviteIntoSquareChat + self.notifiedLeaveSquareChat = notifiedLeaveSquareChat + self.notifiedDestroyMessage = notifiedDestroyMessage + self.notifiedMarkAsRead = notifiedMarkAsRead + self.notifiedUpdateSquareMemberProfile = notifiedUpdateSquareMemberProfile + self.notifiedKickoutFromSquare = notifiedKickoutFromSquare + self.notifiedShutdownSquare = notifiedShutdownSquare + self.notifiedDeleteSquareChat = notifiedDeleteSquareChat + self.notifiedUpdateSquareChatProfileName = notifiedUpdateSquareChatProfileName + self.notifiedUpdateSquareChatProfileImage = notifiedUpdateSquareChatProfileImage + self.notifiedUpdateSquareStatus = notifiedUpdateSquareStatus + self.notifiedUpdateSquareChatStatus = notifiedUpdateSquareChatStatus + self.notifiedCreateSquareMember = notifiedCreateSquareMember + self.notifiedCreateSquareChatMember = notifiedCreateSquareChatMember + self.notifiedUpdateSquareMemberRelation = notifiedUpdateSquareMemberRelation + self.notifiedUpdateSquare = notifiedUpdateSquare + self.notifiedUpdateSquareMember = notifiedUpdateSquareMember + self.notifiedUpdateSquareChat = notifiedUpdateSquareChat + self.notificationJoinRequest = notificationJoinRequest + self.notificationJoined = notificationJoined + self.notificationPromoteCoadmin = notificationPromoteCoadmin + self.notificationPromoteAdmin = notificationPromoteAdmin + self.notificationDemoteMember = notificationDemoteMember + self.notificationKickedOut = notificationKickedOut + self.notificationSquareDelete = notificationSquareDelete + self.notificationSquareChatDelete = notificationSquareChatDelete + self.notificationMessage = notificationMessage + self.notifiedUpdateSquareChatMember = notifiedUpdateSquareChatMember + self.notifiedUpdateSquareAuthority = notifiedUpdateSquareAuthority + self.notifiedUpdateSquareFeatureSet = notifiedUpdateSquareFeatureSet + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.receiveMessage = SquareEventReceiveMessage() + self.receiveMessage.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.sendMessage = SquareEventSendMessage() + self.sendMessage.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.notifiedJoinSquareChat = SquareEventNotifiedJoinSquareChat() + self.notifiedJoinSquareChat.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.notifiedInviteIntoSquareChat = SquareEventNotifiedInviteIntoSquareChat() + self.notifiedInviteIntoSquareChat.read(iprot) + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.notifiedLeaveSquareChat = SquareEventNotifiedLeaveSquareChat() + self.notifiedLeaveSquareChat.read(iprot) + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRUCT: + self.notifiedDestroyMessage = SquareEventNotifiedDestroyMessage() + self.notifiedDestroyMessage.read(iprot) + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRUCT: + self.notifiedMarkAsRead = SquareEventNotifiedMarkAsRead() + self.notifiedMarkAsRead.read(iprot) + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRUCT: + self.notifiedUpdateSquareMemberProfile = SquareEventNotifiedUpdateSquareMemberProfile() + self.notifiedUpdateSquareMemberProfile.read(iprot) + else: + iprot.skip(ftype) + elif fid == 20: + if ftype == TType.STRUCT: + self.notifiedKickoutFromSquare = SquareEventNotifiedKickoutFromSquare() + self.notifiedKickoutFromSquare.read(iprot) + else: + iprot.skip(ftype) + elif fid == 19: + if ftype == TType.STRUCT: + self.notifiedShutdownSquare = SquareEventNotifiedShutdownSquare() + self.notifiedShutdownSquare.read(iprot) + else: + iprot.skip(ftype) + elif fid == 21: + if ftype == TType.STRUCT: + self.notifiedDeleteSquareChat = SquareEventNotifiedDeleteSquareChat() + self.notifiedDeleteSquareChat.read(iprot) + else: + iprot.skip(ftype) + elif fid == 31: + if ftype == TType.STRUCT: + self.notifiedUpdateSquareChatProfileName = SquareEventNotifiedUpdateSquareChatProfileName() + self.notifiedUpdateSquareChatProfileName.read(iprot) + else: + iprot.skip(ftype) + elif fid == 32: + if ftype == TType.STRUCT: + self.notifiedUpdateSquareChatProfileImage = SquareEventNotifiedUpdateSquareChatProfileImage() + self.notifiedUpdateSquareChatProfileImage.read(iprot) + else: + iprot.skip(ftype) + elif fid == 14: + if ftype == TType.STRUCT: + self.notifiedUpdateSquareStatus = SquareEventNotifiedUpdateSquareStatus() + self.notifiedUpdateSquareStatus.read(iprot) + else: + iprot.skip(ftype) + elif fid == 15: + if ftype == TType.STRUCT: + self.notifiedUpdateSquareChatStatus = SquareEventNotifiedUpdateSquareChatStatus() + self.notifiedUpdateSquareChatStatus.read(iprot) + else: + iprot.skip(ftype) + elif fid == 16: + if ftype == TType.STRUCT: + self.notifiedCreateSquareMember = SquareEventNotifiedCreateSquareMember() + self.notifiedCreateSquareMember.read(iprot) + else: + iprot.skip(ftype) + elif fid == 17: + if ftype == TType.STRUCT: + self.notifiedCreateSquareChatMember = SquareEventNotifiedCreateSquareChatMember() + self.notifiedCreateSquareChatMember.read(iprot) + else: + iprot.skip(ftype) + elif fid == 18: + if ftype == TType.STRUCT: + self.notifiedUpdateSquareMemberRelation = SquareEventNotifiedUpdateSquareMemberRelation() + self.notifiedUpdateSquareMemberRelation.read(iprot) + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.STRUCT: + self.notifiedUpdateSquare = SquareEventNotifiedUpdateSquare() + self.notifiedUpdateSquare.read(iprot) + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRUCT: + self.notifiedUpdateSquareMember = SquareEventNotifiedUpdateSquareMember() + self.notifiedUpdateSquareMember.read(iprot) + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRUCT: + self.notifiedUpdateSquareChat = SquareEventNotifiedUpdateSquareChat() + self.notifiedUpdateSquareChat.read(iprot) + else: + iprot.skip(ftype) + elif fid == 22: + if ftype == TType.STRUCT: + self.notificationJoinRequest = SquareEventNotificationJoinRequest() + self.notificationJoinRequest.read(iprot) + else: + iprot.skip(ftype) + elif fid == 23: + if ftype == TType.STRUCT: + self.notificationJoined = SquareEventNotificationMemberUpdate() + self.notificationJoined.read(iprot) + else: + iprot.skip(ftype) + elif fid == 24: + if ftype == TType.STRUCT: + self.notificationPromoteCoadmin = SquareEventNotificationMemberUpdate() + self.notificationPromoteCoadmin.read(iprot) + else: + iprot.skip(ftype) + elif fid == 25: + if ftype == TType.STRUCT: + self.notificationPromoteAdmin = SquareEventNotificationMemberUpdate() + self.notificationPromoteAdmin.read(iprot) + else: + iprot.skip(ftype) + elif fid == 26: + if ftype == TType.STRUCT: + self.notificationDemoteMember = SquareEventNotificationMemberUpdate() + self.notificationDemoteMember.read(iprot) + else: + iprot.skip(ftype) + elif fid == 27: + if ftype == TType.STRUCT: + self.notificationKickedOut = SquareEventNotificationMemberUpdate() + self.notificationKickedOut.read(iprot) + else: + iprot.skip(ftype) + elif fid == 28: + if ftype == TType.STRUCT: + self.notificationSquareDelete = SquareEventNotificationSquareDelete() + self.notificationSquareDelete.read(iprot) + else: + iprot.skip(ftype) + elif fid == 29: + if ftype == TType.STRUCT: + self.notificationSquareChatDelete = SquareEventNotificationSquareChatDelete() + self.notificationSquareChatDelete.read(iprot) + else: + iprot.skip(ftype) + elif fid == 30: + if ftype == TType.STRUCT: + self.notificationMessage = SquareEventNotificationMessage() + self.notificationMessage.read(iprot) + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRUCT: + self.notifiedUpdateSquareChatMember = SquareEventNotifiedUpdateSquareChatMember() + self.notifiedUpdateSquareChatMember.read(iprot) + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.STRUCT: + self.notifiedUpdateSquareAuthority = SquareEventNotifiedUpdateSquareAuthority() + self.notifiedUpdateSquareAuthority.read(iprot) + else: + iprot.skip(ftype) + elif fid == 33: + if ftype == TType.STRUCT: + self.notifiedUpdateSquareFeatureSet = SquareEventNotifiedUpdateSquareFeatureSet() + self.notifiedUpdateSquareFeatureSet.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('SquareEventPayload') + if self.receiveMessage is not None: + oprot.writeFieldBegin('receiveMessage', TType.STRUCT, 1) + self.receiveMessage.write(oprot) + oprot.writeFieldEnd() + if self.sendMessage is not None: + oprot.writeFieldBegin('sendMessage', TType.STRUCT, 2) + self.sendMessage.write(oprot) + oprot.writeFieldEnd() + if self.notifiedJoinSquareChat is not None: + oprot.writeFieldBegin('notifiedJoinSquareChat', TType.STRUCT, 3) + self.notifiedJoinSquareChat.write(oprot) + oprot.writeFieldEnd() + if self.notifiedInviteIntoSquareChat is not None: + oprot.writeFieldBegin('notifiedInviteIntoSquareChat', TType.STRUCT, 4) + self.notifiedInviteIntoSquareChat.write(oprot) + oprot.writeFieldEnd() + if self.notifiedLeaveSquareChat is not None: + oprot.writeFieldBegin('notifiedLeaveSquareChat', TType.STRUCT, 5) + self.notifiedLeaveSquareChat.write(oprot) + oprot.writeFieldEnd() + if self.notifiedDestroyMessage is not None: + oprot.writeFieldBegin('notifiedDestroyMessage', TType.STRUCT, 6) + self.notifiedDestroyMessage.write(oprot) + oprot.writeFieldEnd() + if self.notifiedMarkAsRead is not None: + oprot.writeFieldBegin('notifiedMarkAsRead', TType.STRUCT, 7) + self.notifiedMarkAsRead.write(oprot) + oprot.writeFieldEnd() + if self.notifiedUpdateSquareMemberProfile is not None: + oprot.writeFieldBegin('notifiedUpdateSquareMemberProfile', TType.STRUCT, 8) + self.notifiedUpdateSquareMemberProfile.write(oprot) + oprot.writeFieldEnd() + if self.notifiedUpdateSquare is not None: + oprot.writeFieldBegin('notifiedUpdateSquare', TType.STRUCT, 9) + self.notifiedUpdateSquare.write(oprot) + oprot.writeFieldEnd() + if self.notifiedUpdateSquareMember is not None: + oprot.writeFieldBegin('notifiedUpdateSquareMember', TType.STRUCT, 10) + self.notifiedUpdateSquareMember.write(oprot) + oprot.writeFieldEnd() + if self.notifiedUpdateSquareChat is not None: + oprot.writeFieldBegin('notifiedUpdateSquareChat', TType.STRUCT, 11) + self.notifiedUpdateSquareChat.write(oprot) + oprot.writeFieldEnd() + if self.notifiedUpdateSquareChatMember is not None: + oprot.writeFieldBegin('notifiedUpdateSquareChatMember', TType.STRUCT, 12) + self.notifiedUpdateSquareChatMember.write(oprot) + oprot.writeFieldEnd() + if self.notifiedUpdateSquareAuthority is not None: + oprot.writeFieldBegin('notifiedUpdateSquareAuthority', TType.STRUCT, 13) + self.notifiedUpdateSquareAuthority.write(oprot) + oprot.writeFieldEnd() + if self.notifiedUpdateSquareStatus is not None: + oprot.writeFieldBegin('notifiedUpdateSquareStatus', TType.STRUCT, 14) + self.notifiedUpdateSquareStatus.write(oprot) + oprot.writeFieldEnd() + if self.notifiedUpdateSquareChatStatus is not None: + oprot.writeFieldBegin('notifiedUpdateSquareChatStatus', TType.STRUCT, 15) + self.notifiedUpdateSquareChatStatus.write(oprot) + oprot.writeFieldEnd() + if self.notifiedCreateSquareMember is not None: + oprot.writeFieldBegin('notifiedCreateSquareMember', TType.STRUCT, 16) + self.notifiedCreateSquareMember.write(oprot) + oprot.writeFieldEnd() + if self.notifiedCreateSquareChatMember is not None: + oprot.writeFieldBegin('notifiedCreateSquareChatMember', TType.STRUCT, 17) + self.notifiedCreateSquareChatMember.write(oprot) + oprot.writeFieldEnd() + if self.notifiedUpdateSquareMemberRelation is not None: + oprot.writeFieldBegin('notifiedUpdateSquareMemberRelation', TType.STRUCT, 18) + self.notifiedUpdateSquareMemberRelation.write(oprot) + oprot.writeFieldEnd() + if self.notifiedShutdownSquare is not None: + oprot.writeFieldBegin('notifiedShutdownSquare', TType.STRUCT, 19) + self.notifiedShutdownSquare.write(oprot) + oprot.writeFieldEnd() + if self.notifiedKickoutFromSquare is not None: + oprot.writeFieldBegin('notifiedKickoutFromSquare', TType.STRUCT, 20) + self.notifiedKickoutFromSquare.write(oprot) + oprot.writeFieldEnd() + if self.notifiedDeleteSquareChat is not None: + oprot.writeFieldBegin('notifiedDeleteSquareChat', TType.STRUCT, 21) + self.notifiedDeleteSquareChat.write(oprot) + oprot.writeFieldEnd() + if self.notificationJoinRequest is not None: + oprot.writeFieldBegin('notificationJoinRequest', TType.STRUCT, 22) + self.notificationJoinRequest.write(oprot) + oprot.writeFieldEnd() + if self.notificationJoined is not None: + oprot.writeFieldBegin('notificationJoined', TType.STRUCT, 23) + self.notificationJoined.write(oprot) + oprot.writeFieldEnd() + if self.notificationPromoteCoadmin is not None: + oprot.writeFieldBegin('notificationPromoteCoadmin', TType.STRUCT, 24) + self.notificationPromoteCoadmin.write(oprot) + oprot.writeFieldEnd() + if self.notificationPromoteAdmin is not None: + oprot.writeFieldBegin('notificationPromoteAdmin', TType.STRUCT, 25) + self.notificationPromoteAdmin.write(oprot) + oprot.writeFieldEnd() + if self.notificationDemoteMember is not None: + oprot.writeFieldBegin('notificationDemoteMember', TType.STRUCT, 26) + self.notificationDemoteMember.write(oprot) + oprot.writeFieldEnd() + if self.notificationKickedOut is not None: + oprot.writeFieldBegin('notificationKickedOut', TType.STRUCT, 27) + self.notificationKickedOut.write(oprot) + oprot.writeFieldEnd() + if self.notificationSquareDelete is not None: + oprot.writeFieldBegin('notificationSquareDelete', TType.STRUCT, 28) + self.notificationSquareDelete.write(oprot) + oprot.writeFieldEnd() + if self.notificationSquareChatDelete is not None: + oprot.writeFieldBegin('notificationSquareChatDelete', TType.STRUCT, 29) + self.notificationSquareChatDelete.write(oprot) + oprot.writeFieldEnd() + if self.notificationMessage is not None: + oprot.writeFieldBegin('notificationMessage', TType.STRUCT, 30) + self.notificationMessage.write(oprot) + oprot.writeFieldEnd() + if self.notifiedUpdateSquareChatProfileName is not None: + oprot.writeFieldBegin('notifiedUpdateSquareChatProfileName', TType.STRUCT, 31) + self.notifiedUpdateSquareChatProfileName.write(oprot) + oprot.writeFieldEnd() + if self.notifiedUpdateSquareChatProfileImage is not None: + oprot.writeFieldBegin('notifiedUpdateSquareChatProfileImage', TType.STRUCT, 32) + self.notifiedUpdateSquareChatProfileImage.write(oprot) + oprot.writeFieldEnd() + if self.notifiedUpdateSquareFeatureSet is not None: + oprot.writeFieldBegin('notifiedUpdateSquareFeatureSet', TType.STRUCT, 33) + self.notifiedUpdateSquareFeatureSet.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) + + +class SquareEvent(object): + """ + Attributes: + - createdTime + - type + - payload + - syncToken + - eventStatus + """ + + + def __init__(self, createdTime=None, type=None, payload=None, syncToken=None, eventStatus=None,): + self.createdTime = createdTime + self.type = type + self.payload = payload + self.syncToken = syncToken + self.eventStatus = eventStatus + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.createdTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.payload = SquareEventPayload() + self.payload.read(iprot) + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.syncToken = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.eventStatus = 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('SquareEvent') + if self.createdTime is not None: + oprot.writeFieldBegin('createdTime', TType.I64, 2) + oprot.writeI64(self.createdTime) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 3) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.payload is not None: + oprot.writeFieldBegin('payload', TType.STRUCT, 4) + self.payload.write(oprot) + oprot.writeFieldEnd() + if self.syncToken is not None: + oprot.writeFieldBegin('syncToken', TType.STRING, 5) + oprot.writeString(self.syncToken.encode('utf-8') if sys.version_info[0] == 2 else self.syncToken) + oprot.writeFieldEnd() + if self.eventStatus is not None: + oprot.writeFieldBegin('eventStatus', TType.I32, 6) + oprot.writeI32(self.eventStatus) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 FetchMyEventsRequest(object): + """ + Attributes: + - subscriptionId + - syncToken + - limit + - continuationToken + """ + + + def __init__(self, subscriptionId=None, syncToken=None, limit=None, continuationToken=None,): + self.subscriptionId = subscriptionId + self.syncToken = syncToken + self.limit = limit + self.continuationToken = continuationToken + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.subscriptionId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.syncToken = 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.limit = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.continuationToken = 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('FetchMyEventsRequest') + if self.subscriptionId is not None: + oprot.writeFieldBegin('subscriptionId', TType.I64, 1) + oprot.writeI64(self.subscriptionId) + oprot.writeFieldEnd() + if self.syncToken is not None: + oprot.writeFieldBegin('syncToken', TType.STRING, 2) + oprot.writeString(self.syncToken.encode('utf-8') if sys.version_info[0] == 2 else self.syncToken) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 3) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 4) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 FetchMyEventsResponse(object): + """ + Attributes: + - subscription + - events + - syncToken + - continuationToken + """ + + + def __init__(self, subscription=None, events=None, syncToken=None, continuationToken=None,): + self.subscription = subscription + self.events = events + self.syncToken = syncToken + self.continuationToken = continuationToken + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.subscription = SubscriptionState() + self.subscription.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.events = [] + (_etype611, _size608) = iprot.readListBegin() + for _i612 in range(_size608): + _elem613 = SquareEvent() + _elem613.read(iprot) + self.events.append(_elem613) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.syncToken = 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.continuationToken = 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('FetchMyEventsResponse') + if self.subscription is not None: + oprot.writeFieldBegin('subscription', TType.STRUCT, 1) + self.subscription.write(oprot) + oprot.writeFieldEnd() + if self.events is not None: + oprot.writeFieldBegin('events', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.events)) + for iter614 in self.events: + iter614.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.syncToken is not None: + oprot.writeFieldBegin('syncToken', TType.STRING, 3) + oprot.writeString(self.syncToken.encode('utf-8') if sys.version_info[0] == 2 else self.syncToken) + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 4) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 FetchSquareChatEventsRequest(object): + """ + Attributes: + - subscriptionId + - squareChatMid + - syncToken + - limit + - direction + """ + + + def __init__(self, subscriptionId=None, squareChatMid=None, syncToken=None, limit=None, direction=None,): + self.subscriptionId = subscriptionId + self.squareChatMid = squareChatMid + self.syncToken = syncToken + self.limit = limit + self.direction = direction + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.subscriptionId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.squareChatMid = 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.syncToken = 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.limit = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.direction = 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('FetchSquareChatEventsRequest') + if self.subscriptionId is not None: + oprot.writeFieldBegin('subscriptionId', TType.I64, 1) + oprot.writeI64(self.subscriptionId) + oprot.writeFieldEnd() + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 2) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.syncToken is not None: + oprot.writeFieldBegin('syncToken', TType.STRING, 3) + oprot.writeString(self.syncToken.encode('utf-8') if sys.version_info[0] == 2 else self.syncToken) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 4) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.direction is not None: + oprot.writeFieldBegin('direction', TType.I32, 5) + oprot.writeI32(self.direction) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 FetchSquareChatEventsResponse(object): + """ + Attributes: + - subscription + - events + - syncToken + - continuationToken + """ + + + def __init__(self, subscription=None, events=None, syncToken=None, continuationToken=None,): + self.subscription = subscription + self.events = events + self.syncToken = syncToken + self.continuationToken = continuationToken + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.subscription = SubscriptionState() + self.subscription.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.events = [] + (_etype618, _size615) = iprot.readListBegin() + for _i619 in range(_size615): + _elem620 = SquareEvent() + _elem620.read(iprot) + self.events.append(_elem620) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.syncToken = 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.continuationToken = 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('FetchSquareChatEventsResponse') + if self.subscription is not None: + oprot.writeFieldBegin('subscription', TType.STRUCT, 1) + self.subscription.write(oprot) + oprot.writeFieldEnd() + if self.events is not None: + oprot.writeFieldBegin('events', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.events)) + for iter621 in self.events: + iter621.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.syncToken is not None: + oprot.writeFieldBegin('syncToken', TType.STRING, 3) + oprot.writeString(self.syncToken.encode('utf-8') if sys.version_info[0] == 2 else self.syncToken) + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 4) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 InviteToSquareRequest(object): + """ + Attributes: + - squareMid + - invitees + - squareChatMid + """ + + + def __init__(self, squareMid=None, invitees=None, squareChatMid=None,): + self.squareMid = squareMid + self.invitees = invitees + self.squareChatMid = squareChatMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.invitees = [] + (_etype625, _size622) = iprot.readListBegin() + for _i626 in range(_size622): + _elem627 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.invitees.append(_elem627) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.squareChatMid = 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('InviteToSquareRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.invitees is not None: + oprot.writeFieldBegin('invitees', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.invitees)) + for iter628 in self.invitees: + oprot.writeString(iter628.encode('utf-8') if sys.version_info[0] == 2 else iter628) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 4) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 InviteToSquareResponse(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('InviteToSquareResponse') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 InviteToSquareChatRequest(object): + """ + Attributes: + - inviteeMids + - squareChatMid + """ + + + def __init__(self, inviteeMids=None, squareChatMid=None,): + self.inviteeMids = inviteeMids + self.squareChatMid = squareChatMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.inviteeMids = [] + (_etype632, _size629) = iprot.readListBegin() + for _i633 in range(_size629): + _elem634 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.inviteeMids.append(_elem634) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.squareChatMid = 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('InviteToSquareChatRequest') + if self.inviteeMids is not None: + oprot.writeFieldBegin('inviteeMids', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.inviteeMids)) + for iter635 in self.inviteeMids: + oprot.writeString(iter635.encode('utf-8') if sys.version_info[0] == 2 else iter635) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 2) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 InviteToSquareChatResponse(object): + """ + Attributes: + - inviteeMids + """ + + + def __init__(self, inviteeMids=None,): + self.inviteeMids = inviteeMids + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.inviteeMids = [] + (_etype639, _size636) = iprot.readListBegin() + for _i640 in range(_size636): + _elem641 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.inviteeMids.append(_elem641) + 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('InviteToSquareChatResponse') + if self.inviteeMids is not None: + oprot.writeFieldBegin('inviteeMids', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.inviteeMids)) + for iter642 in self.inviteeMids: + oprot.writeString(iter642.encode('utf-8') if sys.version_info[0] == 2 else iter642) + 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) + + +class GetSquareMemberRequest(object): + """ + Attributes: + - squareMemberMid + """ + + + def __init__(self, squareMemberMid=None,): + self.squareMemberMid = squareMemberMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMemberMid = 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('GetSquareMemberRequest') + if self.squareMemberMid is not None: + oprot.writeFieldBegin('squareMemberMid', TType.STRING, 1) + oprot.writeString(self.squareMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMemberMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareMemberResponse(object): + """ + Attributes: + - squareMember + - relation + - oneOnOneChatMid + """ + + + def __init__(self, squareMember=None, relation=None, oneOnOneChatMid=None,): + self.squareMember = squareMember + self.relation = relation + self.oneOnOneChatMid = oneOnOneChatMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMember = SquareMember() + self.squareMember.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.relation = SquareMemberRelation() + self.relation.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.oneOnOneChatMid = 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('GetSquareMemberResponse') + if self.squareMember is not None: + oprot.writeFieldBegin('squareMember', TType.STRUCT, 1) + self.squareMember.write(oprot) + oprot.writeFieldEnd() + if self.relation is not None: + oprot.writeFieldBegin('relation', TType.STRUCT, 2) + self.relation.write(oprot) + oprot.writeFieldEnd() + if self.oneOnOneChatMid is not None: + oprot.writeFieldBegin('oneOnOneChatMid', TType.STRING, 3) + oprot.writeString(self.oneOnOneChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.oneOnOneChatMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareMembersRequest(object): + """ + Attributes: + - mids + """ + + + def __init__(self, mids=None,): + 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 == 2: + if ftype == TType.SET: + self.mids = set() + (_etype646, _size643) = iprot.readSetBegin() + for _i647 in range(_size643): + _elem648 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.mids.add(_elem648) + iprot.readSetEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('GetSquareMembersRequest') + if self.mids is not None: + oprot.writeFieldBegin('mids', TType.SET, 2) + oprot.writeSetBegin(TType.STRING, len(self.mids)) + for iter649 in self.mids: + oprot.writeString(iter649.encode('utf-8') if sys.version_info[0] == 2 else iter649) + oprot.writeSetEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareMembersResponse(object): + """ + Attributes: + - members + """ + + + def __init__(self, members=None,): + self.members = members + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.members = SquareMember() + self.members.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('GetSquareMembersResponse') + if self.members is not None: + oprot.writeFieldBegin('members', TType.STRUCT, 1) + self.members.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) + + +class GetSquareMemberRelationsRequest(object): + """ + Attributes: + - state + - continuationToken + - limit + """ + + + def __init__(self, state=None, continuationToken=None, limit=None,): + self.state = state + self.continuationToken = continuationToken + 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.state = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.continuationToken = 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.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('GetSquareMemberRelationsRequest') + if self.state is not None: + oprot.writeFieldBegin('state', TType.I32, 2) + oprot.writeI32(self.state) + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 3) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 4) + 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) + + +class GetSquareMemberRelationsResponse(object): + """ + Attributes: + - squareMembers + - relations + - continuationToken + """ + + + def __init__(self, squareMembers=None, relations=None, continuationToken=None,): + self.squareMembers = squareMembers + self.relations = relations + self.continuationToken = continuationToken + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMembers = [] + (_etype653, _size650) = iprot.readListBegin() + for _i654 in range(_size650): + _elem655 = SquareMember() + _elem655.read(iprot) + self.squareMembers.append(_elem655) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.MAP: + self.relations = {} + (_ktype657, _vtype658, _size656) = iprot.readMapBegin() + for _i660 in range(_size656): + _key661 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val662 = SquareMemberRelation() + _val662.read(iprot) + self.relations[_key661] = _val662 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.continuationToken = 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('GetSquareMemberRelationsResponse') + if self.squareMembers is not None: + oprot.writeFieldBegin('squareMembers', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.squareMembers)) + for iter663 in self.squareMembers: + iter663.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.relations is not None: + oprot.writeFieldBegin('relations', TType.MAP, 2) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.relations)) + for kiter664, viter665 in self.relations.items(): + oprot.writeString(kiter664.encode('utf-8') if sys.version_info[0] == 2 else kiter664) + viter665.write(oprot) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 3) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareMemberRelationRequest(object): + """ + Attributes: + - squareMid + - targetSquareMemberMid + """ + + + def __init__(self, squareMid=None, targetSquareMemberMid=None,): + self.squareMid = squareMid + self.targetSquareMemberMid = targetSquareMemberMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.targetSquareMemberMid = 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('GetSquareMemberRelationRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.targetSquareMemberMid is not None: + oprot.writeFieldBegin('targetSquareMemberMid', TType.STRING, 3) + oprot.writeString(self.targetSquareMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.targetSquareMemberMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareMemberRelationResponse(object): + """ + Attributes: + - squareMid + - targetSquareMemberMid + - relation + """ + + + def __init__(self, squareMid=None, targetSquareMemberMid=None, relation=None,): + self.squareMid = squareMid + self.targetSquareMemberMid = targetSquareMemberMid + self.relation = relation + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.targetSquareMemberMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.relation = SquareMemberRelation() + self.relation.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('GetSquareMemberRelationResponse') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.targetSquareMemberMid is not None: + oprot.writeFieldBegin('targetSquareMemberMid', TType.STRING, 2) + oprot.writeString(self.targetSquareMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.targetSquareMemberMid) + oprot.writeFieldEnd() + if self.relation is not None: + oprot.writeFieldBegin('relation', TType.STRUCT, 3) + self.relation.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) + + +class Category(object): + """ + Attributes: + - id + - name + """ + + + def __init__(self, id=None, name=None,): + self.id = id + self.name = name + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.id = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.name = 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('Category') + if self.id is not None: + oprot.writeFieldBegin('id', TType.I32, 1) + oprot.writeI32(self.id) + oprot.writeFieldEnd() + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 2) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareCategoriesRequest(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('GetSquareCategoriesRequest') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareCategoriesResponse(object): + """ + Attributes: + - categoryList + """ + + + def __init__(self, categoryList=None,): + self.categoryList = categoryList + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.categoryList = [] + (_etype669, _size666) = iprot.readListBegin() + for _i670 in range(_size666): + _elem671 = Category() + _elem671.read(iprot) + self.categoryList.append(_elem671) + 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('GetSquareCategoriesResponse') + if self.categoryList is not None: + oprot.writeFieldBegin('categoryList', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.categoryList)) + for iter672 in self.categoryList: + iter672.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) + + +class UpdateSquareRequest(object): + """ + Attributes: + - updatedAttrs + - square + """ + + + def __init__(self, updatedAttrs=None, square=None,): + self.updatedAttrs = updatedAttrs + self.square = square + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.updatedAttrs = set() + (_etype676, _size673) = iprot.readSetBegin() + for _i677 in range(_size673): + _elem678 = iprot.readI32() + self.updatedAttrs.add(_elem678) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.square = Square() + self.square.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('UpdateSquareRequest') + if self.updatedAttrs is not None: + oprot.writeFieldBegin('updatedAttrs', TType.SET, 2) + oprot.writeSetBegin(TType.I32, len(self.updatedAttrs)) + for iter679 in self.updatedAttrs: + oprot.writeI32(iter679) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.square is not None: + oprot.writeFieldBegin('square', TType.STRUCT, 3) + self.square.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) + + +class UpdateSquareResponse(object): + """ + Attributes: + - updatedAttrs + - square + """ + + + def __init__(self, updatedAttrs=None, square=None,): + self.updatedAttrs = updatedAttrs + self.square = square + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.updatedAttrs = set() + (_etype683, _size680) = iprot.readSetBegin() + for _i684 in range(_size680): + _elem685 = iprot.readI32() + self.updatedAttrs.add(_elem685) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.square = Square() + self.square.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('UpdateSquareResponse') + if self.updatedAttrs is not None: + oprot.writeFieldBegin('updatedAttrs', TType.SET, 1) + oprot.writeSetBegin(TType.I32, len(self.updatedAttrs)) + for iter686 in self.updatedAttrs: + oprot.writeI32(iter686) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.square is not None: + oprot.writeFieldBegin('square', TType.STRUCT, 2) + self.square.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) + + +class SearchSquaresRequest(object): + """ + Attributes: + - query + - continuationToken + - limit + """ + + + def __init__(self, query=None, continuationToken=None, limit=None,): + self.query = query + self.continuationToken = continuationToken + 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.STRING: + self.query = 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.continuationToken = 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.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('SearchSquaresRequest') + if self.query is not None: + oprot.writeFieldBegin('query', TType.STRING, 2) + oprot.writeString(self.query.encode('utf-8') if sys.version_info[0] == 2 else self.query) + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 3) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 4) + 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) + + +class SearchSquaresResponse(object): + """ + Attributes: + - squares + - squareStatuses + - myMemberships + - continuationToken + - noteStatuses + """ + + + def __init__(self, squares=None, squareStatuses=None, myMemberships=None, continuationToken=None, noteStatuses=None,): + self.squares = squares + self.squareStatuses = squareStatuses + self.myMemberships = myMemberships + self.continuationToken = continuationToken + self.noteStatuses = noteStatuses + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squares = [] + (_etype690, _size687) = iprot.readListBegin() + for _i691 in range(_size687): + _elem692 = Square() + _elem692.read(iprot) + self.squares.append(_elem692) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.MAP: + self.squareStatuses = {} + (_ktype694, _vtype695, _size693) = iprot.readMapBegin() + for _i697 in range(_size693): + _key698 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val699 = SquareStatus() + _val699.read(iprot) + self.squareStatuses[_key698] = _val699 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.MAP: + self.myMemberships = {} + (_ktype701, _vtype702, _size700) = iprot.readMapBegin() + for _i704 in range(_size700): + _key705 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val706 = SquareMember() + _val706.read(iprot) + self.myMemberships[_key705] = _val706 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.continuationToken = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.MAP: + self.noteStatuses = {} + (_ktype708, _vtype709, _size707) = iprot.readMapBegin() + for _i711 in range(_size707): + _key712 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val713 = NoteStatus() + _val713.read(iprot) + self.noteStatuses[_key712] = _val713 + 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('SearchSquaresResponse') + if self.squares is not None: + oprot.writeFieldBegin('squares', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.squares)) + for iter714 in self.squares: + iter714.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.squareStatuses is not None: + oprot.writeFieldBegin('squareStatuses', TType.MAP, 2) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.squareStatuses)) + for kiter715, viter716 in self.squareStatuses.items(): + oprot.writeString(kiter715.encode('utf-8') if sys.version_info[0] == 2 else kiter715) + viter716.write(oprot) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.myMemberships is not None: + oprot.writeFieldBegin('myMemberships', TType.MAP, 3) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.myMemberships)) + for kiter717, viter718 in self.myMemberships.items(): + oprot.writeString(kiter717.encode('utf-8') if sys.version_info[0] == 2 else kiter717) + viter718.write(oprot) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 4) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + if self.noteStatuses is not None: + oprot.writeFieldBegin('noteStatuses', TType.MAP, 5) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.noteStatuses)) + for kiter719, viter720 in self.noteStatuses.items(): + oprot.writeString(kiter719.encode('utf-8') if sys.version_info[0] == 2 else kiter719) + viter720.write(oprot) + 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) + + +class GetSquareFeatureSetRequest(object): + """ + Attributes: + - squareMid + """ + + + def __init__(self, squareMid=None,): + self.squareMid = squareMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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('GetSquareFeatureSetRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareFeatureSetResponse(object): + """ + Attributes: + - squareFeatureSet + """ + + + def __init__(self, squareFeatureSet=None,): + self.squareFeatureSet = squareFeatureSet + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareFeatureSet = SquareFeatureSet() + self.squareFeatureSet.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('GetSquareFeatureSetResponse') + if self.squareFeatureSet is not None: + oprot.writeFieldBegin('squareFeatureSet', TType.STRUCT, 1) + self.squareFeatureSet.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) + + +class UpdateSquareFeatureSetRequest(object): + """ + Attributes: + - updateAttributes + - squareFeatureSet + """ + + + def __init__(self, updateAttributes=None, squareFeatureSet=None,): + self.updateAttributes = updateAttributes + self.squareFeatureSet = squareFeatureSet + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.updateAttributes = set() + (_etype724, _size721) = iprot.readSetBegin() + for _i725 in range(_size721): + _elem726 = iprot.readI32() + self.updateAttributes.add(_elem726) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareFeatureSet = SquareFeatureSet() + self.squareFeatureSet.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('UpdateSquareFeatureSetRequest') + if self.updateAttributes is not None: + oprot.writeFieldBegin('updateAttributes', TType.SET, 2) + oprot.writeSetBegin(TType.I32, len(self.updateAttributes)) + for iter727 in self.updateAttributes: + oprot.writeI32(iter727) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.squareFeatureSet is not None: + oprot.writeFieldBegin('squareFeatureSet', TType.STRUCT, 3) + self.squareFeatureSet.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) + + +class UpdateSquareFeatureSetResponse(object): + """ + Attributes: + - updateAttributes + - squareFeatureSet + """ + + + def __init__(self, updateAttributes=None, squareFeatureSet=None,): + self.updateAttributes = updateAttributes + self.squareFeatureSet = squareFeatureSet + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.updateAttributes = set() + (_etype731, _size728) = iprot.readSetBegin() + for _i732 in range(_size728): + _elem733 = iprot.readI32() + self.updateAttributes.add(_elem733) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.squareFeatureSet = SquareFeatureSet() + self.squareFeatureSet.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('UpdateSquareFeatureSetResponse') + if self.updateAttributes is not None: + oprot.writeFieldBegin('updateAttributes', TType.SET, 1) + oprot.writeSetBegin(TType.I32, len(self.updateAttributes)) + for iter734 in self.updateAttributes: + oprot.writeI32(iter734) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.squareFeatureSet is not None: + oprot.writeFieldBegin('squareFeatureSet', TType.STRUCT, 2) + self.squareFeatureSet.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) + + +class UpdateSquareMemberRequest(object): + """ + Attributes: + - updatedAttrs + - updatedPreferenceAttrs + - squareMember + """ + + + def __init__(self, updatedAttrs=None, updatedPreferenceAttrs=None, squareMember=None,): + self.updatedAttrs = updatedAttrs + self.updatedPreferenceAttrs = updatedPreferenceAttrs + self.squareMember = squareMember + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.updatedAttrs = set() + (_etype738, _size735) = iprot.readSetBegin() + for _i739 in range(_size735): + _elem740 = iprot.readI32() + self.updatedAttrs.add(_elem740) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.SET: + self.updatedPreferenceAttrs = set() + (_etype744, _size741) = iprot.readSetBegin() + for _i745 in range(_size741): + _elem746 = iprot.readI32() + self.updatedPreferenceAttrs.add(_elem746) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.squareMember = SquareMember() + self.squareMember.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('UpdateSquareMemberRequest') + if self.updatedAttrs is not None: + oprot.writeFieldBegin('updatedAttrs', TType.SET, 2) + oprot.writeSetBegin(TType.I32, len(self.updatedAttrs)) + for iter747 in self.updatedAttrs: + oprot.writeI32(iter747) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.updatedPreferenceAttrs is not None: + oprot.writeFieldBegin('updatedPreferenceAttrs', TType.SET, 3) + oprot.writeSetBegin(TType.I32, len(self.updatedPreferenceAttrs)) + for iter748 in self.updatedPreferenceAttrs: + oprot.writeI32(iter748) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.squareMember is not None: + oprot.writeFieldBegin('squareMember', TType.STRUCT, 4) + self.squareMember.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) + + +class UpdateSquareMemberResponse(object): + """ + Attributes: + - updatedAttrs + - squareMember + - updatedPreferenceAttrs + """ + + + def __init__(self, updatedAttrs=None, squareMember=None, updatedPreferenceAttrs=None,): + self.updatedAttrs = updatedAttrs + self.squareMember = squareMember + self.updatedPreferenceAttrs = updatedPreferenceAttrs + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.updatedAttrs = set() + (_etype752, _size749) = iprot.readSetBegin() + for _i753 in range(_size749): + _elem754 = iprot.readI32() + self.updatedAttrs.add(_elem754) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.squareMember = SquareMember() + self.squareMember.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.SET: + self.updatedPreferenceAttrs = set() + (_etype758, _size755) = iprot.readSetBegin() + for _i759 in range(_size755): + _elem760 = iprot.readI32() + self.updatedPreferenceAttrs.add(_elem760) + iprot.readSetEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('UpdateSquareMemberResponse') + if self.updatedAttrs is not None: + oprot.writeFieldBegin('updatedAttrs', TType.SET, 1) + oprot.writeSetBegin(TType.I32, len(self.updatedAttrs)) + for iter761 in self.updatedAttrs: + oprot.writeI32(iter761) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.squareMember is not None: + oprot.writeFieldBegin('squareMember', TType.STRUCT, 2) + self.squareMember.write(oprot) + oprot.writeFieldEnd() + if self.updatedPreferenceAttrs is not None: + oprot.writeFieldBegin('updatedPreferenceAttrs', TType.SET, 3) + oprot.writeSetBegin(TType.I32, len(self.updatedPreferenceAttrs)) + for iter762 in self.updatedPreferenceAttrs: + oprot.writeI32(iter762) + oprot.writeSetEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 UpdateSquareMembersRequest(object): + """ + Attributes: + - updatedAttrs + - members + """ + + + def __init__(self, updatedAttrs=None, members=None,): + self.updatedAttrs = updatedAttrs + self.members = members + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.updatedAttrs = set() + (_etype766, _size763) = iprot.readSetBegin() + for _i767 in range(_size763): + _elem768 = iprot.readI32() + self.updatedAttrs.add(_elem768) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.members = [] + (_etype772, _size769) = iprot.readListBegin() + for _i773 in range(_size769): + _elem774 = SquareMember() + _elem774.read(iprot) + self.members.append(_elem774) + 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('UpdateSquareMembersRequest') + if self.updatedAttrs is not None: + oprot.writeFieldBegin('updatedAttrs', TType.SET, 2) + oprot.writeSetBegin(TType.I32, len(self.updatedAttrs)) + for iter775 in self.updatedAttrs: + oprot.writeI32(iter775) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.members is not None: + oprot.writeFieldBegin('members', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.members)) + for iter776 in self.members: + iter776.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) + + +class UpdateSquareMembersResponse(object): + """ + Attributes: + - updatedAttrs + - editor + - members + """ + + + def __init__(self, updatedAttrs=None, editor=None, members=None,): + self.updatedAttrs = updatedAttrs + self.editor = editor + self.members = members + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.updatedAttrs = set() + (_etype780, _size777) = iprot.readSetBegin() + for _i781 in range(_size777): + _elem782 = iprot.readI32() + self.updatedAttrs.add(_elem782) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.editor = SquareMember() + self.editor.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.MAP: + self.members = {} + (_ktype784, _vtype785, _size783) = iprot.readMapBegin() + for _i787 in range(_size783): + _key788 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val789 = SquareMember() + _val789.read(iprot) + self.members[_key788] = _val789 + 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('UpdateSquareMembersResponse') + if self.updatedAttrs is not None: + oprot.writeFieldBegin('updatedAttrs', TType.SET, 1) + oprot.writeSetBegin(TType.I32, len(self.updatedAttrs)) + for iter790 in self.updatedAttrs: + oprot.writeI32(iter790) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.editor is not None: + oprot.writeFieldBegin('editor', TType.STRUCT, 2) + self.editor.write(oprot) + oprot.writeFieldEnd() + if self.members is not None: + oprot.writeFieldBegin('members', TType.MAP, 3) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.members)) + for kiter791, viter792 in self.members.items(): + oprot.writeString(kiter791.encode('utf-8') if sys.version_info[0] == 2 else kiter791) + viter792.write(oprot) + 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) + + +class RejectSquareMembersRequest(object): + """ + Attributes: + - squareMid + - requestedMemberMids + """ + + + def __init__(self, squareMid=None, requestedMemberMids=None,): + self.squareMid = squareMid + self.requestedMemberMids = requestedMemberMids + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.requestedMemberMids = [] + (_etype796, _size793) = iprot.readListBegin() + for _i797 in range(_size793): + _elem798 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.requestedMemberMids.append(_elem798) + 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('RejectSquareMembersRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.requestedMemberMids is not None: + oprot.writeFieldBegin('requestedMemberMids', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.requestedMemberMids)) + for iter799 in self.requestedMemberMids: + oprot.writeString(iter799.encode('utf-8') if sys.version_info[0] == 2 else iter799) + 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) + + +class RejectSquareMembersResponse(object): + """ + Attributes: + - rejectedMembers + - status + """ + + + def __init__(self, rejectedMembers=None, status=None,): + self.rejectedMembers = rejectedMembers + self.status = status + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.rejectedMembers = [] + (_etype803, _size800) = iprot.readListBegin() + for _i804 in range(_size800): + _elem805 = SquareMember() + _elem805.read(iprot) + self.rejectedMembers.append(_elem805) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.status = SquareStatus() + self.status.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('RejectSquareMembersResponse') + if self.rejectedMembers is not None: + oprot.writeFieldBegin('rejectedMembers', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.rejectedMembers)) + for iter806 in self.rejectedMembers: + iter806.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.status is not None: + oprot.writeFieldBegin('status', TType.STRUCT, 2) + self.status.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) + + +class RemoveSubscriptionsRequest(object): + """ + Attributes: + - unsubscriptions + """ + + + def __init__(self, unsubscriptions=None,): + self.unsubscriptions = unsubscriptions + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.unsubscriptions = [] + (_etype810, _size807) = iprot.readListBegin() + for _i811 in range(_size807): + _elem812 = iprot.readI64() + self.unsubscriptions.append(_elem812) + 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('RemoveSubscriptionsRequest') + if self.unsubscriptions is not None: + oprot.writeFieldBegin('unsubscriptions', TType.LIST, 2) + oprot.writeListBegin(TType.I64, len(self.unsubscriptions)) + for iter813 in self.unsubscriptions: + oprot.writeI64(iter813) + 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) + + +class RemoveSubscriptionsResponse(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('RemoveSubscriptionsResponse') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 RefreshSubscriptionsRequest(object): + """ + Attributes: + - subscriptions + """ + + + def __init__(self, subscriptions=None,): + self.subscriptions = subscriptions + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.subscriptions = [] + (_etype817, _size814) = iprot.readListBegin() + for _i818 in range(_size814): + _elem819 = iprot.readI64() + self.subscriptions.append(_elem819) + 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('RefreshSubscriptionsRequest') + if self.subscriptions is not None: + oprot.writeFieldBegin('subscriptions', TType.LIST, 2) + oprot.writeListBegin(TType.I64, len(self.subscriptions)) + for iter820 in self.subscriptions: + oprot.writeI64(iter820) + 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) + + +class RefreshSubscriptionsResponse(object): + """ + Attributes: + - ttlMillis + - subscriptionStates + """ + + + def __init__(self, ttlMillis=None, subscriptionStates=None,): + self.ttlMillis = ttlMillis + self.subscriptionStates = subscriptionStates + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.I64: + self.ttlMillis = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.MAP: + self.subscriptionStates = {} + (_ktype822, _vtype823, _size821) = iprot.readMapBegin() + for _i825 in range(_size821): + _key826 = iprot.readI64() + _val827 = SubscriptionState() + _val827.read(iprot) + self.subscriptionStates[_key826] = _val827 + 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('RefreshSubscriptionsResponse') + if self.ttlMillis is not None: + oprot.writeFieldBegin('ttlMillis', TType.I64, 1) + oprot.writeI64(self.ttlMillis) + oprot.writeFieldEnd() + if self.subscriptionStates is not None: + oprot.writeFieldBegin('subscriptionStates', TType.MAP, 2) + oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.subscriptionStates)) + for kiter828, viter829 in self.subscriptionStates.items(): + oprot.writeI64(kiter828) + viter829.write(oprot) + 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) + + +class UpdateSquareChatRequest(object): + """ + Attributes: + - updatedAttrs + - squareChat + """ + + + def __init__(self, updatedAttrs=None, squareChat=None,): + self.updatedAttrs = updatedAttrs + self.squareChat = squareChat + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.updatedAttrs = set() + (_etype833, _size830) = iprot.readSetBegin() + for _i834 in range(_size830): + _elem835 = iprot.readI32() + self.updatedAttrs.add(_elem835) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareChat = SquareChat() + self.squareChat.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('UpdateSquareChatRequest') + if self.updatedAttrs is not None: + oprot.writeFieldBegin('updatedAttrs', TType.SET, 2) + oprot.writeSetBegin(TType.I32, len(self.updatedAttrs)) + for iter836 in self.updatedAttrs: + oprot.writeI32(iter836) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.squareChat is not None: + oprot.writeFieldBegin('squareChat', TType.STRUCT, 3) + self.squareChat.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) + + +class UpdateSquareChatResponse(object): + """ + Attributes: + - updatedAttrs + - squareChat + """ + + + def __init__(self, updatedAttrs=None, squareChat=None,): + self.updatedAttrs = updatedAttrs + self.squareChat = squareChat + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.updatedAttrs = set() + (_etype840, _size837) = iprot.readSetBegin() + for _i841 in range(_size837): + _elem842 = iprot.readI32() + self.updatedAttrs.add(_elem842) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.squareChat = SquareChat() + self.squareChat.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('UpdateSquareChatResponse') + if self.updatedAttrs is not None: + oprot.writeFieldBegin('updatedAttrs', TType.SET, 1) + oprot.writeSetBegin(TType.I32, len(self.updatedAttrs)) + for iter843 in self.updatedAttrs: + oprot.writeI32(iter843) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.squareChat is not None: + oprot.writeFieldBegin('squareChat', TType.STRUCT, 2) + self.squareChat.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) + + +class DeleteSquareChatRequest(object): + """ + Attributes: + - squareChatMid + - revision + """ + + + def __init__(self, squareChatMid=None, revision=None,): + self.squareChatMid = squareChatMid + self.revision = revision + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.revision = 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('DeleteSquareChatRequest') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 2) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.revision is not None: + oprot.writeFieldBegin('revision', TType.I64, 3) + oprot.writeI64(self.revision) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 DeleteSquareChatResponse(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('DeleteSquareChatResponse') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 UpdateSquareChatMemberRequest(object): + """ + Attributes: + - updatedAttrs + - chatMember + """ + + + def __init__(self, updatedAttrs=None, chatMember=None,): + self.updatedAttrs = updatedAttrs + self.chatMember = chatMember + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.updatedAttrs = set() + (_etype847, _size844) = iprot.readSetBegin() + for _i848 in range(_size844): + _elem849 = iprot.readI32() + self.updatedAttrs.add(_elem849) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.chatMember = SquareChatMember() + self.chatMember.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('UpdateSquareChatMemberRequest') + if self.updatedAttrs is not None: + oprot.writeFieldBegin('updatedAttrs', TType.SET, 2) + oprot.writeSetBegin(TType.I32, len(self.updatedAttrs)) + for iter850 in self.updatedAttrs: + oprot.writeI32(iter850) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.chatMember is not None: + oprot.writeFieldBegin('chatMember', TType.STRUCT, 3) + self.chatMember.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) + + +class UpdateSquareChatMemberResponse(object): + """ + Attributes: + - updatedChatMember + """ + + + def __init__(self, updatedChatMember=None,): + self.updatedChatMember = updatedChatMember + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.updatedChatMember = SquareChatMember() + self.updatedChatMember.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('UpdateSquareChatMemberResponse') + if self.updatedChatMember is not None: + oprot.writeFieldBegin('updatedChatMember', TType.STRUCT, 1) + self.updatedChatMember.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) + + +class UpdateSquareAuthorityRequest(object): + """ + Attributes: + - updateAttributes + - authority + """ + + + def __init__(self, updateAttributes=None, authority=None,): + self.updateAttributes = updateAttributes + self.authority = authority + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.updateAttributes = set() + (_etype854, _size851) = iprot.readSetBegin() + for _i855 in range(_size851): + _elem856 = iprot.readI32() + self.updateAttributes.add(_elem856) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.authority = SquareAuthority() + self.authority.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('UpdateSquareAuthorityRequest') + if self.updateAttributes is not None: + oprot.writeFieldBegin('updateAttributes', TType.SET, 2) + oprot.writeSetBegin(TType.I32, len(self.updateAttributes)) + for iter857 in self.updateAttributes: + oprot.writeI32(iter857) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.authority is not None: + oprot.writeFieldBegin('authority', TType.STRUCT, 3) + self.authority.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) + + +class UpdateSquareAuthorityResponse(object): + """ + Attributes: + - updatdAttributes + - authority + """ + + + def __init__(self, updatdAttributes=None, authority=None,): + self.updatdAttributes = updatdAttributes + self.authority = authority + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.SET: + self.updatdAttributes = set() + (_etype861, _size858) = iprot.readSetBegin() + for _i862 in range(_size858): + _elem863 = iprot.readI32() + self.updatdAttributes.add(_elem863) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.authority = SquareAuthority() + self.authority.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('UpdateSquareAuthorityResponse') + if self.updatdAttributes is not None: + oprot.writeFieldBegin('updatdAttributes', TType.SET, 1) + oprot.writeSetBegin(TType.I32, len(self.updatdAttributes)) + for iter864 in self.updatdAttributes: + oprot.writeI32(iter864) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.authority is not None: + oprot.writeFieldBegin('authority', TType.STRUCT, 2) + self.authority.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) + + +class UpdateSquareMemberRelationRequest(object): + """ + Attributes: + - squareMid + - targetSquareMemberMid + - updatedAttrs + - relation + """ + + + def __init__(self, squareMid=None, targetSquareMemberMid=None, updatedAttrs=None, relation=None,): + self.squareMid = squareMid + self.targetSquareMemberMid = targetSquareMemberMid + self.updatedAttrs = updatedAttrs + self.relation = relation + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.targetSquareMemberMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.SET: + self.updatedAttrs = set() + (_etype868, _size865) = iprot.readSetBegin() + for _i869 in range(_size865): + _elem870 = iprot.readI32() + self.updatedAttrs.add(_elem870) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.relation = SquareMemberRelation() + self.relation.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('UpdateSquareMemberRelationRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.targetSquareMemberMid is not None: + oprot.writeFieldBegin('targetSquareMemberMid', TType.STRING, 3) + oprot.writeString(self.targetSquareMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.targetSquareMemberMid) + oprot.writeFieldEnd() + if self.updatedAttrs is not None: + oprot.writeFieldBegin('updatedAttrs', TType.SET, 4) + oprot.writeSetBegin(TType.I32, len(self.updatedAttrs)) + for iter871 in self.updatedAttrs: + oprot.writeI32(iter871) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.relation is not None: + oprot.writeFieldBegin('relation', TType.STRUCT, 5) + self.relation.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) + + +class UpdateSquareMemberRelationResponse(object): + """ + Attributes: + - squareMid + - targetSquareMemberMid + - updatedAttrs + - relation + """ + + + def __init__(self, squareMid=None, targetSquareMemberMid=None, updatedAttrs=None, relation=None,): + self.squareMid = squareMid + self.targetSquareMemberMid = targetSquareMemberMid + self.updatedAttrs = updatedAttrs + self.relation = relation + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.targetSquareMemberMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.SET: + self.updatedAttrs = set() + (_etype875, _size872) = iprot.readSetBegin() + for _i876 in range(_size872): + _elem877 = iprot.readI32() + self.updatedAttrs.add(_elem877) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.relation = SquareMemberRelation() + self.relation.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('UpdateSquareMemberRelationResponse') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.targetSquareMemberMid is not None: + oprot.writeFieldBegin('targetSquareMemberMid', TType.STRING, 2) + oprot.writeString(self.targetSquareMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.targetSquareMemberMid) + oprot.writeFieldEnd() + if self.updatedAttrs is not None: + oprot.writeFieldBegin('updatedAttrs', TType.SET, 3) + oprot.writeSetBegin(TType.I32, len(self.updatedAttrs)) + for iter878 in self.updatedAttrs: + oprot.writeI32(iter878) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.relation is not None: + oprot.writeFieldBegin('relation', TType.STRUCT, 4) + self.relation.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) + + +class ReportSquareRequest(object): + """ + Attributes: + - squareMid + - reportType + - otherReason + """ + + + def __init__(self, squareMid=None, reportType=None, otherReason=None,): + self.squareMid = squareMid + self.reportType = reportType + self.otherReason = otherReason + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.reportType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.otherReason = 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('ReportSquareRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.reportType is not None: + oprot.writeFieldBegin('reportType', TType.I32, 3) + oprot.writeI32(self.reportType) + oprot.writeFieldEnd() + if self.otherReason is not None: + oprot.writeFieldBegin('otherReason', TType.STRING, 4) + oprot.writeString(self.otherReason.encode('utf-8') if sys.version_info[0] == 2 else self.otherReason) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ReportSquareResponse(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('ReportSquareResponse') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ReportSquareChatRequest(object): + """ + Attributes: + - squareMid + - squareChatMid + - reportType + - otherReason + """ + + + def __init__(self, squareMid=None, squareChatMid=None, reportType=None, otherReason=None,): + self.squareMid = squareMid + self.squareChatMid = squareChatMid + self.reportType = reportType + self.otherReason = otherReason + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.squareChatMid = 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.reportType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.otherReason = 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('ReportSquareChatRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 3) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.reportType is not None: + oprot.writeFieldBegin('reportType', TType.I32, 5) + oprot.writeI32(self.reportType) + oprot.writeFieldEnd() + if self.otherReason is not None: + oprot.writeFieldBegin('otherReason', TType.STRING, 6) + oprot.writeString(self.otherReason.encode('utf-8') if sys.version_info[0] == 2 else self.otherReason) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ReportSquareChatResponse(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('ReportSquareChatResponse') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ReportSquareMessageRequest(object): + """ + Attributes: + - squareMid + - squareChatMid + - squareMessageId + - reportType + - otherReason + """ + + + def __init__(self, squareMid=None, squareChatMid=None, squareMessageId=None, reportType=None, otherReason=None,): + self.squareMid = squareMid + self.squareChatMid = squareChatMid + self.squareMessageId = squareMessageId + self.reportType = reportType + self.otherReason = otherReason + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.squareChatMid = 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.squareMessageId = 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.reportType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.otherReason = 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('ReportSquareMessageRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 3) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.squareMessageId is not None: + oprot.writeFieldBegin('squareMessageId', TType.STRING, 4) + oprot.writeString(self.squareMessageId.encode('utf-8') if sys.version_info[0] == 2 else self.squareMessageId) + oprot.writeFieldEnd() + if self.reportType is not None: + oprot.writeFieldBegin('reportType', TType.I32, 5) + oprot.writeI32(self.reportType) + oprot.writeFieldEnd() + if self.otherReason is not None: + oprot.writeFieldBegin('otherReason', TType.STRING, 6) + oprot.writeString(self.otherReason.encode('utf-8') if sys.version_info[0] == 2 else self.otherReason) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ReportSquareMessageResponse(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('ReportSquareMessageResponse') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ReportSquareMemberRequest(object): + """ + Attributes: + - squareMemberMid + - reportType + - otherReason + - squareChatMid + """ + + + def __init__(self, squareMemberMid=None, reportType=None, otherReason=None, squareChatMid=None,): + self.squareMemberMid = squareMemberMid + self.reportType = reportType + self.otherReason = otherReason + self.squareChatMid = squareChatMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMemberMid = 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.reportType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.otherReason = 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.squareChatMid = 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('ReportSquareMemberRequest') + if self.squareMemberMid is not None: + oprot.writeFieldBegin('squareMemberMid', TType.STRING, 2) + oprot.writeString(self.squareMemberMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMemberMid) + oprot.writeFieldEnd() + if self.reportType is not None: + oprot.writeFieldBegin('reportType', TType.I32, 3) + oprot.writeI32(self.reportType) + oprot.writeFieldEnd() + if self.otherReason is not None: + oprot.writeFieldBegin('otherReason', TType.STRING, 4) + oprot.writeString(self.otherReason.encode('utf-8') if sys.version_info[0] == 2 else self.otherReason) + oprot.writeFieldEnd() + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 5) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ReportSquareMemberResponse(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('ReportSquareMemberResponse') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareRequest(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('GetSquareRequest') + 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) + + +class GetSquareResponse(object): + """ + Attributes: + - square + - myMembership + - squareAuthority + - squareStatus + - squareFeatureSet + - noteStatus + """ + + + def __init__(self, square=None, myMembership=None, squareAuthority=None, squareStatus=None, squareFeatureSet=None, noteStatus=None,): + self.square = square + self.myMembership = myMembership + self.squareAuthority = squareAuthority + self.squareStatus = squareStatus + self.squareFeatureSet = squareFeatureSet + self.noteStatus = noteStatus + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.square = Square() + self.square.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.myMembership = SquareMember() + self.myMembership.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareAuthority = SquareAuthority() + self.squareAuthority.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.squareStatus = SquareStatus() + self.squareStatus.read(iprot) + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.squareFeatureSet = SquareFeatureSet() + self.squareFeatureSet.read(iprot) + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRUCT: + self.noteStatus = NoteStatus() + self.noteStatus.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('GetSquareResponse') + if self.square is not None: + oprot.writeFieldBegin('square', TType.STRUCT, 1) + self.square.write(oprot) + oprot.writeFieldEnd() + if self.myMembership is not None: + oprot.writeFieldBegin('myMembership', TType.STRUCT, 2) + self.myMembership.write(oprot) + oprot.writeFieldEnd() + if self.squareAuthority is not None: + oprot.writeFieldBegin('squareAuthority', TType.STRUCT, 3) + self.squareAuthority.write(oprot) + oprot.writeFieldEnd() + if self.squareStatus is not None: + oprot.writeFieldBegin('squareStatus', TType.STRUCT, 4) + self.squareStatus.write(oprot) + oprot.writeFieldEnd() + if self.squareFeatureSet is not None: + oprot.writeFieldBegin('squareFeatureSet', TType.STRUCT, 5) + self.squareFeatureSet.write(oprot) + oprot.writeFieldEnd() + if self.noteStatus is not None: + oprot.writeFieldBegin('noteStatus', TType.STRUCT, 6) + self.noteStatus.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) + + +class GetSquareStatusRequest(object): + """ + Attributes: + - squareMid + """ + + + def __init__(self, squareMid=None,): + self.squareMid = squareMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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('GetSquareStatusRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareStatusResponse(object): + """ + Attributes: + - squareStatus + """ + + + def __init__(self, squareStatus=None,): + self.squareStatus = squareStatus + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareStatus = SquareStatus() + self.squareStatus.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('GetSquareStatusResponse') + if self.squareStatus is not None: + oprot.writeFieldBegin('squareStatus', TType.STRUCT, 1) + self.squareStatus.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) + + +class GetNoteStatusRequest(object): + """ + Attributes: + - squareMid + """ + + + def __init__(self, squareMid=None,): + self.squareMid = squareMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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('GetNoteStatusRequest') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 2) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetNoteStatusResponse(object): + """ + Attributes: + - squareMid + - status + """ + + + def __init__(self, squareMid=None, status=None,): + self.squareMid = squareMid + self.status = status + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareMid = 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.status = NoteStatus() + self.status.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('GetNoteStatusResponse') + if self.squareMid is not None: + oprot.writeFieldBegin('squareMid', TType.STRING, 1) + oprot.writeString(self.squareMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareMid) + oprot.writeFieldEnd() + if self.status is not None: + oprot.writeFieldBegin('status', TType.STRUCT, 2) + self.status.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) + + +class CreateSquareChatAnnouncementRequest(object): + """ + Attributes: + - reqSeq + - squareChatMid + - squareChatAnnouncement + """ + + + def __init__(self, reqSeq=None, squareChatMid=None, squareChatAnnouncement=None,): + self.reqSeq = reqSeq + self.squareChatMid = squareChatMid + self.squareChatAnnouncement = squareChatAnnouncement + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.squareChatAnnouncement = SquareChatAnnouncement() + self.squareChatAnnouncement.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('CreateSquareChatAnnouncementRequest') + if self.reqSeq is not None: + oprot.writeFieldBegin('reqSeq', TType.I32, 1) + oprot.writeI32(self.reqSeq) + oprot.writeFieldEnd() + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 2) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.squareChatAnnouncement is not None: + oprot.writeFieldBegin('squareChatAnnouncement', TType.STRUCT, 3) + self.squareChatAnnouncement.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) + + +class CreateSquareChatAnnouncementResponse(object): + """ + Attributes: + - announcement + """ + + + def __init__(self, announcement=None,): + self.announcement = announcement + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.announcement = SquareChatAnnouncement() + self.announcement.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('CreateSquareChatAnnouncementResponse') + if self.announcement is not None: + oprot.writeFieldBegin('announcement', TType.STRUCT, 1) + self.announcement.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) + + +class DeleteSquareChatAnnouncementRequest(object): + """ + Attributes: + - squareChatMid + - announcementSeq + """ + + + def __init__(self, squareChatMid=None, announcementSeq=None,): + self.squareChatMid = squareChatMid + self.announcementSeq = announcementSeq + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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.announcementSeq = 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('DeleteSquareChatAnnouncementRequest') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 2) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + if self.announcementSeq is not None: + oprot.writeFieldBegin('announcementSeq', TType.I64, 3) + oprot.writeI64(self.announcementSeq) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 DeleteSquareChatAnnouncementResponse(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('DeleteSquareChatAnnouncementResponse') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareChatAnnouncementsRequest(object): + """ + Attributes: + - squareChatMid + """ + + + def __init__(self, squareChatMid=None,): + self.squareChatMid = squareChatMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.squareChatMid = 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('GetSquareChatAnnouncementsRequest') + if self.squareChatMid is not None: + oprot.writeFieldBegin('squareChatMid', TType.STRING, 2) + oprot.writeString(self.squareChatMid.encode('utf-8') if sys.version_info[0] == 2 else self.squareChatMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GetSquareChatAnnouncementsResponse(object): + """ + Attributes: + - announcements + """ + + + def __init__(self, announcements=None,): + self.announcements = announcements + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.announcements = [] + (_etype882, _size879) = iprot.readListBegin() + for _i883 in range(_size879): + _elem884 = SquareChatAnnouncement() + _elem884.read(iprot) + self.announcements.append(_elem884) + 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('GetSquareChatAnnouncementsResponse') + if self.announcements is not None: + oprot.writeFieldBegin('announcements', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.announcements)) + for iter885 in self.announcements: + iter885.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) + + +class GetJoinedSquareChatsRequest(object): + """ + Attributes: + - continuationToken + - limit + """ + + + def __init__(self, continuationToken=None, limit=None,): + self.continuationToken = continuationToken + 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.STRING: + self.continuationToken = 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.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('GetJoinedSquareChatsRequest') + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 2) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 3) + 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) + + +class GetJoinedSquareChatsResponse(object): + """ + Attributes: + - chats + - chatMembers + - statuses + - continuationToken + """ + + + def __init__(self, chats=None, chatMembers=None, statuses=None, continuationToken=None,): + self.chats = chats + self.chatMembers = chatMembers + self.statuses = statuses + self.continuationToken = continuationToken + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.chats = [] + (_etype889, _size886) = iprot.readListBegin() + for _i890 in range(_size886): + _elem891 = SquareChat() + _elem891.read(iprot) + self.chats.append(_elem891) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.MAP: + self.chatMembers = {} + (_ktype893, _vtype894, _size892) = iprot.readMapBegin() + for _i896 in range(_size892): + _key897 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val898 = SquareChatMember() + _val898.read(iprot) + self.chatMembers[_key897] = _val898 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.MAP: + self.statuses = {} + (_ktype900, _vtype901, _size899) = iprot.readMapBegin() + for _i903 in range(_size899): + _key904 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val905 = SquareChatStatus() + _val905.read(iprot) + self.statuses[_key904] = _val905 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.continuationToken = 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('GetJoinedSquareChatsResponse') + if self.chats is not None: + oprot.writeFieldBegin('chats', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.chats)) + for iter906 in self.chats: + iter906.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.chatMembers is not None: + oprot.writeFieldBegin('chatMembers', TType.MAP, 2) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.chatMembers)) + for kiter907, viter908 in self.chatMembers.items(): + oprot.writeString(kiter907.encode('utf-8') if sys.version_info[0] == 2 else kiter907) + viter908.write(oprot) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.statuses is not None: + oprot.writeFieldBegin('statuses', TType.MAP, 3) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.statuses)) + for kiter909, viter910 in self.statuses.items(): + oprot.writeString(kiter909.encode('utf-8') if sys.version_info[0] == 2 else kiter909) + viter910.write(oprot) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.continuationToken is not None: + oprot.writeFieldBegin('continuationToken', TType.STRING, 4) + oprot.writeString(self.continuationToken.encode('utf-8') if sys.version_info[0] == 2 else self.continuationToken) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 TalkException(TException): + """ + Attributes: + - code + - reason + - parameterMap + """ + + + def __init__(self, code=None, reason=None, parameterMap=None,): + self.code = code + self.reason = reason + 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 == 1: + if ftype == TType.I32: + self.code = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.MAP: + self.parameterMap = {} + (_ktype912, _vtype913, _size911) = iprot.readMapBegin() + for _i915 in range(_size911): + _key916 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val917 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.parameterMap[_key916] = _val917 + 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('TalkException') + if self.code is not None: + oprot.writeFieldBegin('code', TType.I32, 1) + oprot.writeI32(self.code) + oprot.writeFieldEnd() + if self.reason is not None: + oprot.writeFieldBegin('reason', TType.STRING, 2) + oprot.writeString(self.reason.encode('utf-8') if sys.version_info[0] == 2 else self.reason) + oprot.writeFieldEnd() + if self.parameterMap is not None: + oprot.writeFieldBegin('parameterMap', TType.MAP, 3) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameterMap)) + for kiter918, viter919 in self.parameterMap.items(): + oprot.writeString(kiter918.encode('utf-8') if sys.version_info[0] == 2 else kiter918) + oprot.writeString(viter919.encode('utf-8') if sys.version_info[0] == 2 else viter919) + oprot.writeMapEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __str__(self): + return repr(self) + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ShouldSyncException(TException): + """ + Attributes: + - syncOpRevision + - syncScope + - syncReason + - message + """ + + + def __init__(self, syncOpRevision=None, syncScope=None, syncReason=None, message=None,): + self.syncOpRevision = syncOpRevision + self.syncScope = syncScope + self.syncReason = syncReason + 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 == 1: + if ftype == TType.I64: + self.syncOpRevision = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.syncScope = SyncScope() + self.syncScope.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.syncReason = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.message = 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('ShouldSyncException') + if self.syncOpRevision is not None: + oprot.writeFieldBegin('syncOpRevision', TType.I64, 1) + oprot.writeI64(self.syncOpRevision) + oprot.writeFieldEnd() + if self.syncScope is not None: + oprot.writeFieldBegin('syncScope', TType.STRUCT, 2) + self.syncScope.write(oprot) + oprot.writeFieldEnd() + if self.syncReason is not None: + oprot.writeFieldBegin('syncReason', TType.I32, 3) + oprot.writeI32(self.syncReason) + oprot.writeFieldEnd() + if self.message is not None: + oprot.writeFieldBegin('message', TType.STRING, 4) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __str__(self): + return repr(self) + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 PointException(TException): + """ + Attributes: + - code + - reason + - extra + """ + + + def __init__(self, code=None, reason=None, extra=None,): + self.code = code + self.reason = reason + self.extra = extra + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.code = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.MAP: + self.extra = {} + (_ktype921, _vtype922, _size920) = iprot.readMapBegin() + for _i924 in range(_size920): + _key925 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val926 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.extra[_key925] = _val926 + 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('PointException') + if self.code is not None: + oprot.writeFieldBegin('code', TType.I32, 1) + oprot.writeI32(self.code) + oprot.writeFieldEnd() + if self.reason is not None: + oprot.writeFieldBegin('reason', TType.STRING, 2) + oprot.writeString(self.reason.encode('utf-8') if sys.version_info[0] == 2 else self.reason) + oprot.writeFieldEnd() + if self.extra is not None: + oprot.writeFieldBegin('extra', TType.MAP, 3) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.extra)) + for kiter927, viter928 in self.extra.items(): + oprot.writeString(kiter927.encode('utf-8') if sys.version_info[0] == 2 else kiter927) + oprot.writeString(viter928.encode('utf-8') if sys.version_info[0] == 2 else viter928) + oprot.writeMapEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __str__(self): + return repr(self) + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 ChannelException(TException): + """ + Attributes: + - code + - reason + - parameterMap + """ + + + def __init__(self, code=None, reason=None, parameterMap=None,): + self.code = code + self.reason = reason + 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 == 1: + if ftype == TType.I32: + self.code = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.MAP: + self.parameterMap = {} + (_ktype930, _vtype931, _size929) = iprot.readMapBegin() + for _i933 in range(_size929): + _key934 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val935 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.parameterMap[_key934] = _val935 + 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('ChannelException') + if self.code is not None: + oprot.writeFieldBegin('code', TType.I32, 1) + oprot.writeI32(self.code) + oprot.writeFieldEnd() + if self.reason is not None: + oprot.writeFieldBegin('reason', TType.STRING, 2) + oprot.writeString(self.reason.encode('utf-8') if sys.version_info[0] == 2 else self.reason) + oprot.writeFieldEnd() + if self.parameterMap is not None: + oprot.writeFieldBegin('parameterMap', TType.MAP, 3) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameterMap)) + for kiter936, viter937 in self.parameterMap.items(): + oprot.writeString(kiter936.encode('utf-8') if sys.version_info[0] == 2 else kiter936) + oprot.writeString(viter937.encode('utf-8') if sys.version_info[0] == 2 else viter937) + oprot.writeMapEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __str__(self): + return repr(self) + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 SquareException(TException): + """ + Attributes: + - errorCode + - errorExtraInfo + - reason + """ + + + def __init__(self, errorCode=None, errorExtraInfo=None, reason=None,): + self.errorCode = errorCode + self.errorExtraInfo = errorExtraInfo + self.reason = reason + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.errorCode = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.errorExtraInfo = ErrorExtraInfo() + self.errorExtraInfo.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.reason = 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('SquareException') + if self.errorCode is not None: + oprot.writeFieldBegin('errorCode', TType.I32, 1) + oprot.writeI32(self.errorCode) + oprot.writeFieldEnd() + if self.errorExtraInfo is not None: + oprot.writeFieldBegin('errorExtraInfo', TType.STRUCT, 2) + self.errorExtraInfo.write(oprot) + oprot.writeFieldEnd() + if self.reason is not None: + oprot.writeFieldBegin('reason', TType.STRING, 3) + oprot.writeString(self.reason.encode('utf-8') if sys.version_info[0] == 2 else self.reason) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __str__(self): + return repr(self) + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 UniversalNotificationServiceException(TException): + """ + Attributes: + - code + - reason + - parameterMap + """ + + + def __init__(self, code=None, reason=None, parameterMap=None,): + self.code = code + self.reason = reason + 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 == 1: + if ftype == TType.I32: + self.code = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.MAP: + self.parameterMap = {} + (_ktype939, _vtype940, _size938) = iprot.readMapBegin() + for _i942 in range(_size938): + _key943 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val944 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.parameterMap[_key943] = _val944 + 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('UniversalNotificationServiceException') + if self.code is not None: + oprot.writeFieldBegin('code', TType.I32, 1) + oprot.writeI32(self.code) + oprot.writeFieldEnd() + if self.reason is not None: + oprot.writeFieldBegin('reason', TType.STRING, 2) + oprot.writeString(self.reason.encode('utf-8') if sys.version_info[0] == 2 else self.reason) + oprot.writeFieldEnd() + if self.parameterMap is not None: + oprot.writeFieldBegin('parameterMap', TType.MAP, 3) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameterMap)) + for kiter945, viter946 in self.parameterMap.items(): + oprot.writeString(kiter945.encode('utf-8') if sys.version_info[0] == 2 else kiter945) + oprot.writeString(viter946.encode('utf-8') if sys.version_info[0] == 2 else viter946) + oprot.writeMapEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __str__(self): + return repr(self) + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 UpdateBuddyProfileResult(object): + """ + Attributes: + - requestId + - state + - eventNo + - receiverCount + - successCount + - failCount + - cancelCount + - unregisterCount + - timestamp + - message + """ + + + def __init__(self, requestId=None, state=None, eventNo=None, receiverCount=None, successCount=None, failCount=None, cancelCount=None, unregisterCount=None, timestamp=None, message=None,): + self.requestId = requestId + self.state = state + self.eventNo = eventNo + self.receiverCount = receiverCount + self.successCount = successCount + self.failCount = failCount + self.cancelCount = cancelCount + self.unregisterCount = unregisterCount + self.timestamp = timestamp + 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 == 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.I32: + self.state = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.eventNo = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.I64: + self.receiverCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.I64: + self.successCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.I64: + self.failCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 14: + if ftype == TType.I64: + self.cancelCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 15: + if ftype == TType.I64: + self.unregisterCount = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 21: + if ftype == TType.I64: + self.timestamp = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 22: + if ftype == TType.STRING: + self.message = 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('UpdateBuddyProfileResult') + 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.state is not None: + oprot.writeFieldBegin('state', TType.I32, 2) + oprot.writeI32(self.state) + oprot.writeFieldEnd() + if self.eventNo is not None: + oprot.writeFieldBegin('eventNo', TType.I32, 3) + oprot.writeI32(self.eventNo) + oprot.writeFieldEnd() + if self.receiverCount is not None: + oprot.writeFieldBegin('receiverCount', TType.I64, 11) + oprot.writeI64(self.receiverCount) + oprot.writeFieldEnd() + if self.successCount is not None: + oprot.writeFieldBegin('successCount', TType.I64, 12) + oprot.writeI64(self.successCount) + oprot.writeFieldEnd() + if self.failCount is not None: + oprot.writeFieldBegin('failCount', TType.I64, 13) + oprot.writeI64(self.failCount) + oprot.writeFieldEnd() + if self.cancelCount is not None: + oprot.writeFieldBegin('cancelCount', TType.I64, 14) + oprot.writeI64(self.cancelCount) + oprot.writeFieldEnd() + if self.unregisterCount is not None: + oprot.writeFieldBegin('unregisterCount', TType.I64, 15) + oprot.writeI64(self.unregisterCount) + oprot.writeFieldEnd() + if self.timestamp is not None: + oprot.writeFieldBegin('timestamp', TType.I64, 21) + oprot.writeI64(self.timestamp) + oprot.writeFieldEnd() + if self.message is not None: + oprot.writeFieldBegin('message', TType.STRING, 22) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 UserAuthStatus(object): + """ + Attributes: + - phoneNumberRegistered + - registeredSnsIdTypes + """ + + + def __init__(self, phoneNumberRegistered=None, registeredSnsIdTypes=None,): + self.phoneNumberRegistered = phoneNumberRegistered + self.registeredSnsIdTypes = registeredSnsIdTypes + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.BOOL: + self.phoneNumberRegistered = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.registeredSnsIdTypes = [] + (_etype950, _size947) = iprot.readListBegin() + for _i951 in range(_size947): + _elem952 = iprot.readI32() + self.registeredSnsIdTypes.append(_elem952) + 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('UserAuthStatus') + if self.phoneNumberRegistered is not None: + oprot.writeFieldBegin('phoneNumberRegistered', TType.BOOL, 1) + oprot.writeBool(self.phoneNumberRegistered) + oprot.writeFieldEnd() + if self.registeredSnsIdTypes is not None: + oprot.writeFieldBegin('registeredSnsIdTypes', TType.LIST, 2) + oprot.writeListBegin(TType.I32, len(self.registeredSnsIdTypes)) + for iter953 in self.registeredSnsIdTypes: + oprot.writeI32(iter953) + 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) + + +class WapInvitation(object): + """ + Attributes: + - type + - inviteeEmail + - inviterMid + - roomMid + """ + + + def __init__(self, type=None, inviteeEmail=None, inviterMid=None, roomMid=None,): + self.type = type + self.inviteeEmail = inviteeEmail + self.inviterMid = inviterMid + self.roomMid = roomMid + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRING: + self.inviteeEmail = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.inviterMid = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRING: + self.roomMid = 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('WapInvitation') + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 1) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.inviteeEmail is not None: + oprot.writeFieldBegin('inviteeEmail', TType.STRING, 10) + oprot.writeString(self.inviteeEmail.encode('utf-8') if sys.version_info[0] == 2 else self.inviteeEmail) + oprot.writeFieldEnd() + if self.inviterMid is not None: + oprot.writeFieldBegin('inviterMid', TType.STRING, 11) + oprot.writeString(self.inviterMid.encode('utf-8') if sys.version_info[0] == 2 else self.inviterMid) + oprot.writeFieldEnd() + if self.roomMid is not None: + oprot.writeFieldBegin('roomMid', TType.STRING, 12) + oprot.writeString(self.roomMid.encode('utf-8') if sys.version_info[0] == 2 else self.roomMid) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GroupCall(object): + """ + Attributes: + - online + - chatMid + - hostMids + - memberMids + - started + - mediaType + """ + + + def __init__(self, online=None, chatMid=None, hostMids=None, memberMids=None, started=None, mediaType=None,): + self.online = online + self.chatMid = chatMid + self.hostMids = hostMids + self.memberMids = memberMids + self.started = started + self.mediaType = mediaType + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.BOOL: + self.online = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.chatMid = 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.hostMids = 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.memberMids = [] + (_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.memberMids.append(_elem959) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.started = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.mediaType = 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('GroupCall') + if self.online is not None: + oprot.writeFieldBegin('online', TType.BOOL, 1) + oprot.writeBool(self.online) + oprot.writeFieldEnd() + if self.chatMid is not None: + oprot.writeFieldBegin('chatMid', TType.STRING, 2) + oprot.writeString(self.chatMid.encode('utf-8') if sys.version_info[0] == 2 else self.chatMid) + oprot.writeFieldEnd() + if self.hostMids is not None: + oprot.writeFieldBegin('hostMids', TType.STRING, 3) + oprot.writeString(self.hostMids.encode('utf-8') if sys.version_info[0] == 2 else self.hostMids) + oprot.writeFieldEnd() + if self.memberMids is not None: + oprot.writeFieldBegin('memberMids', TType.LIST, 4) + oprot.writeListBegin(TType.STRING, len(self.memberMids)) + for iter960 in self.memberMids: + oprot.writeString(iter960.encode('utf-8') if sys.version_info[0] == 2 else iter960) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.started is not None: + oprot.writeFieldBegin('started', TType.I64, 5) + oprot.writeI64(self.started) + oprot.writeFieldEnd() + if self.mediaType is not None: + oprot.writeFieldBegin('mediaType', TType.I32, 6) + oprot.writeI32(self.mediaType) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.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 GroupCallRoute(object): + """ + Attributes: + - token + - cscf + - mix + """ + + + def __init__(self, token=None, cscf=None, mix=None,): + self.token = token + self.cscf = cscf + self.mix = mix + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(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.token = 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.cscf = CallHost() + self.cscf.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.mix = CallHost() + self.mix.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('GroupCallRoute') + if self.token is not None: + oprot.writeFieldBegin('token', TType.STRING, 1) + oprot.writeString(self.token.encode('utf-8') if sys.version_info[0] == 2 else self.token) + oprot.writeFieldEnd() + if self.cscf is not None: + oprot.writeFieldBegin('cscf', TType.STRUCT, 2) + self.cscf.write(oprot) + oprot.writeFieldEnd() + if self.mix is not None: + oprot.writeFieldBegin('mix', TType.STRUCT, 3) + self.mix.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(Location) +Location.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'title', 'UTF8', None, ), # 1 + (2, TType.STRING, 'address', 'UTF8', None, ), # 2 + (3, TType.DOUBLE, 'latitude', None, None, ), # 3 + (4, TType.DOUBLE, 'longitude', None, None, ), # 4 + (5, TType.STRING, 'phone', 'UTF8', None, ), # 5 +) +all_structs.append(MessageBoxV2MessageId) +MessageBoxV2MessageId.thrift_spec = ( + None, # 0 + (1, TType.I64, 'deliveredTime', None, None, ), # 1 + (2, TType.I64, 'messageId', None, None, ), # 2 +) +all_structs.append(MessageCommitResult) +MessageCommitResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1 + (2, TType.I32, 'state', None, None, ), # 2 + (3, TType.STRING, 'messageStoreRequestId', 'UTF8', None, ), # 3 + (4, TType.LIST, 'messageIds', (TType.STRING, 'UTF8', False), None, ), # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + None, # 10 + (11, TType.I64, 'receiverCount', None, None, ), # 11 + (12, TType.I64, 'successCount', None, None, ), # 12 + (13, TType.I64, 'failCount', None, None, ), # 13 + (14, TType.I64, 'blockCount', None, None, ), # 14 + (15, TType.I64, 'unregisteredCount', None, None, ), # 15 + (16, TType.I64, 'unrelatedCount', None, None, ), # 16 + None, # 17 + None, # 18 + None, # 19 + None, # 20 + (21, TType.STRING, 'errorDescription', 'UTF8', None, ), # 21 +) +all_structs.append(CallHost) +CallHost.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'host', 'UTF8', None, ), # 1 + (2, TType.I32, 'port', None, None, ), # 2 + (3, TType.STRING, 'zone', 'UTF8', None, ), # 3 +) +all_structs.append(AgeCheckDocomoResult) +AgeCheckDocomoResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'authUrl', 'UTF8', None, ), # 1 + (2, TType.I32, 'userAgeType', None, None, ), # 2 +) +all_structs.append(AgeCheckRequestResult) +AgeCheckRequestResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'authUrl', 'UTF8', None, ), # 1 + (2, TType.STRING, 'sessionId', 'UTF8', None, ), # 2 +) +all_structs.append(TextMessageAnnouncementContents) +TextMessageAnnouncementContents.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'messageId', 'UTF8', None, ), # 1 + (2, TType.STRING, 'text', 'UTF8', None, ), # 2 + (3, TType.STRING, 'senderSquareMemberMid', 'UTF8', None, ), # 3 + (4, TType.I64, 'createdAt', None, None, ), # 4 +) +all_structs.append(SquareChatAnnouncementContents) +SquareChatAnnouncementContents.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'textMessageAnnouncementContents', [TextMessageAnnouncementContents, None], None, ), # 1 +) +all_structs.append(SquareChatAnnouncement) +SquareChatAnnouncement.thrift_spec = ( + None, # 0 + (1, TType.I64, 'announcementSeq', None, None, ), # 1 + (2, TType.I32, 'type', None, None, ), # 2 + (3, TType.STRUCT, 'contents', [SquareChatAnnouncementContents, None], None, ), # 3 +) +all_structs.append(Announcement) +Announcement.thrift_spec = ( + None, # 0 + (1, TType.I32, 'index', None, None, ), # 1 + None, # 2 + None, # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.BOOL, 'forceUpdate', None, None, ), # 10 + (11, TType.STRING, 'title', 'UTF8', None, ), # 11 + (12, TType.STRING, 'text', 'UTF8', None, ), # 12 + (13, TType.I64, 'createdTime', None, None, ), # 13 + (14, TType.STRING, 'pictureUrl', 'UTF8', None, ), # 14 + (15, TType.STRING, 'thumbnailUrl', 'UTF8', None, ), # 15 +) +all_structs.append(ChannelProvider) +ChannelProvider.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 +) +all_structs.append(E2EEPublicKey) +E2EEPublicKey.thrift_spec = ( + None, # 0 + (1, TType.I32, 'version', None, None, ), # 1 + (2, TType.I32, 'keyId', None, None, ), # 2 + None, # 3 + (4, TType.STRING, 'keyData', 'BINARY', None, ), # 4 + (5, TType.I64, 'createdTime', None, None, ), # 5 +) +all_structs.append(ChannelDomain) +ChannelDomain.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'host', 'UTF8', None, ), # 1 + (2, TType.BOOL, 'removed', None, None, ), # 2 +) +all_structs.append(E2EENegotiationResult) +E2EENegotiationResult.thrift_spec = ( + None, # 0 + (1, TType.SET, 'allowedTypes', (TType.I32, None, False), None, ), # 1 + (2, TType.STRUCT, 'publicKey', [E2EEPublicKey, None], None, ), # 2 +) +all_structs.append(OTPResult) +OTPResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'otpId', 'UTF8', None, ), # 1 + (2, TType.STRING, 'otp', 'UTF8', None, ), # 2 +) +all_structs.append(Square) +Square.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'welcomeMessage', 'UTF8', None, ), # 3 + (4, TType.STRING, 'profileImageObsHash', 'UTF8', None, ), # 4 + (5, TType.STRING, 'desc', 'UTF8', None, ), # 5 + (6, TType.BOOL, 'searchable', None, None, ), # 6 + (7, TType.I32, 'type', None, None, ), # 7 + (8, TType.I32, 'categoryID', None, None, ), # 8 + (9, TType.STRING, 'invitationURL', 'UTF8', None, ), # 9 + (10, TType.I64, 'revision', None, None, ), # 10 + (11, TType.BOOL, 'ableToUseInvitationTicket', None, None, ), # 11 + (12, TType.I32, 'state', None, None, ), # 12 +) +all_structs.append(SquareAuthority) +SquareAuthority.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + (2, TType.I32, 'updateSquareProfile', None, None, ), # 2 + (3, TType.I32, 'inviteNewMember', None, None, ), # 3 + (4, TType.I32, 'approveJoinRequest', None, None, ), # 4 + (5, TType.I32, 'createPost', None, None, ), # 5 + (6, TType.I32, 'createOpenSquareChat', None, None, ), # 6 + (7, TType.I32, 'deleteSquareChatOrPost', None, None, ), # 7 + (8, TType.I32, 'removeSquareMember', None, None, ), # 8 + (9, TType.I32, 'grantRole', None, None, ), # 9 + (10, TType.I32, 'enableInvitationTicket', None, None, ), # 10 + (11, TType.I64, 'revision', None, None, ), # 11 +) +all_structs.append(SquarePreference) +SquarePreference.thrift_spec = ( + None, # 0 + (1, TType.I64, 'favoriteTimestamp', None, None, ), # 1 + (2, TType.BOOL, 'notiForNewJoinRequest', None, None, ), # 2 +) +all_structs.append(SquareMember) +SquareMember.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMemberMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 + (3, TType.STRING, 'displayName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'profileImageObsHash', 'UTF8', None, ), # 4 + (5, TType.BOOL, 'ableToReceiveMessage', None, None, ), # 5 + None, # 6 + (7, TType.I32, 'membershipState', None, None, ), # 7 + (8, TType.I32, 'role', None, None, ), # 8 + (9, TType.I64, 'revision', None, None, ), # 9 + (10, TType.STRUCT, 'preference', [SquarePreference, None], None, ), # 10 + (11, TType.STRING, 'joinMessage', 'UTF8', None, ), # 11 +) +all_structs.append(SquareMemberRelation) +SquareMemberRelation.thrift_spec = ( + None, # 0 + (1, TType.I32, 'state', None, None, ), # 1 + (2, TType.I64, 'revision', None, None, ), # 2 +) +all_structs.append(SquareFeature) +SquareFeature.thrift_spec = ( + None, # 0 + (1, TType.I32, 'controlState', None, None, ), # 1 + (2, TType.I32, 'booleanValue', None, None, ), # 2 +) +all_structs.append(SquareFeatureSet) +SquareFeatureSet.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + (2, TType.I64, 'revision', None, None, ), # 2 + None, # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + None, # 10 + (11, TType.STRUCT, 'creatingSecretSquareChat', [SquareFeature, None], None, ), # 11 + (12, TType.STRUCT, 'invitingIntoOpenSquareChat', [SquareFeature, None], None, ), # 12 +) +all_structs.append(SquareStatus) +SquareStatus.thrift_spec = ( + None, # 0 + (1, TType.I32, 'memberCount', None, None, ), # 1 + (2, TType.I32, 'joinRequestCount', None, None, ), # 2 + (3, TType.I64, 'lastJoinRequestAt', None, None, ), # 3 + (4, TType.I32, 'openChatCount', None, None, ), # 4 +) +all_structs.append(SquareChat) +SquareChat.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 + (3, TType.I32, 'type', None, None, ), # 3 + (4, TType.STRING, 'name', 'UTF8', None, ), # 4 + (5, TType.STRING, 'chatImageObsHash', 'UTF8', None, ), # 5 + (6, TType.I64, 'squareChatRevision', None, None, ), # 6 + (7, TType.I32, 'maxMemberCount', None, None, ), # 7 + (8, TType.I32, 'state', None, None, ), # 8 +) +all_structs.append(NoteStatus) +NoteStatus.thrift_spec = ( + None, # 0 + (1, TType.I32, 'noteCount', None, None, ), # 1 + (2, TType.I64, 'latestCreatedAt', None, None, ), # 2 +) +all_structs.append(SquareInfo) +SquareInfo.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'square', [Square, None], None, ), # 1 + (2, TType.STRUCT, 'squareStatus', [SquareStatus, None], None, ), # 2 + (3, TType.STRUCT, 'squareNoteStatus', [NoteStatus, None], None, ), # 3 +) +all_structs.append(BotUseInfo) +BotUseInfo.thrift_spec = ( + None, # 0 + (1, TType.BOOL, 'botUseAgreementAccepted', None, None, ), # 1 + (2, TType.BOOL, 'botInFriends', None, None, ), # 2 + (3, TType.STRING, 'primaryApplication', 'UTF8', None, ), # 3 + (4, TType.STRING, 'locale', 'UTF8', None, ), # 4 +) +all_structs.append(PaidCallAdCountry) +PaidCallAdCountry.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'countryCode', 'UTF8', None, ), # 1 + (2, TType.STRING, 'rateDivision', 'UTF8', None, ), # 2 +) +all_structs.append(PaidCallAdResult) +PaidCallAdResult.thrift_spec = ( + None, # 0 + (1, TType.I32, 'adRemains', None, None, ), # 1 +) +all_structs.append(PaidCallBalance) +PaidCallBalance.thrift_spec = ( + None, # 0 + (1, TType.I32, 'productType', None, None, ), # 1 + (2, TType.STRING, 'productName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'unit', 'UTF8', None, ), # 3 + (4, TType.I32, 'limitedPaidBalance', None, None, ), # 4 + (5, TType.I32, 'limitedFreeBalance', None, None, ), # 5 + (6, TType.I32, 'unlimitedPaidBalance', None, None, ), # 6 + (7, TType.I32, 'unlimitedFreeBalance', None, None, ), # 7 + (8, TType.I64, 'startTime', None, None, ), # 8 + (9, TType.I64, 'endTime', None, None, ), # 9 + (10, TType.BOOL, 'autopayEnabled', None, None, ), # 10 +) +all_structs.append(PaidCallCurrencyExchangeRate) +PaidCallCurrencyExchangeRate.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'currencyCode', 'UTF8', None, ), # 1 + (2, TType.STRING, 'currencyName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'currencySign', 'UTF8', None, ), # 3 + (4, TType.BOOL, 'preferred', None, None, ), # 4 + (5, TType.STRING, 'coinRate', 'UTF8', None, ), # 5 + (6, TType.STRING, 'creditRate', 'UTF8', None, ), # 6 +) +all_structs.append(ExtendedProfileBirthday) +ExtendedProfileBirthday.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'year', 'UTF8', None, ), # 1 + (2, TType.I32, 'yearPrivacyLevelType', None, None, ), # 2 + (3, TType.BOOL, 'yearEnabled', None, None, ), # 3 + None, # 4 + (5, TType.STRING, 'day', 'UTF8', None, ), # 5 + (6, TType.I32, 'dayPrivacyLevelType', None, None, ), # 6 + (7, TType.BOOL, 'dayEnabled', None, None, ), # 7 +) +all_structs.append(ExtendedProfile) +ExtendedProfile.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'birthday', [ExtendedProfileBirthday, None], None, ), # 1 +) +all_structs.append(PaidCallDialing) +PaidCallDialing.thrift_spec = ( + None, # 0 + (1, TType.I32, 'type', None, None, ), # 1 + (2, TType.STRING, 'dialedNumber', 'UTF8', None, ), # 2 + (3, TType.STRING, 'serviceDomain', 'UTF8', None, ), # 3 + (4, TType.I32, 'productType', None, None, ), # 4 + (5, TType.STRING, 'productName', 'UTF8', None, ), # 5 + (6, TType.BOOL, 'multipleProduct', None, None, ), # 6 + (7, TType.I32, 'callerIdStatus', None, None, ), # 7 + None, # 8 + None, # 9 + (10, TType.I32, 'balance', None, None, ), # 10 + (11, TType.STRING, 'unit', 'UTF8', None, ), # 11 + (12, TType.I32, 'rate', None, None, ), # 12 + (13, TType.STRING, 'displayCode', 'UTF8', None, ), # 13 + (14, TType.STRING, 'calledNumber', 'UTF8', None, ), # 14 + (15, TType.STRING, 'calleeNationalNumber', 'UTF8', None, ), # 15 + (16, TType.STRING, 'calleeCallingCode', 'UTF8', None, ), # 16 + (17, TType.STRING, 'rateDivision', 'UTF8', None, ), # 17 + None, # 18 + None, # 19 + (20, TType.I32, 'adMaxMin', None, None, ), # 20 + (21, TType.I32, 'adRemains', None, None, ), # 21 + (22, TType.STRING, 'adSessionId', 'UTF8', None, ), # 22 +) +all_structs.append(SpotItem) +SpotItem.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'phone', 'UTF8', None, ), # 3 + (4, TType.I32, 'category', None, None, ), # 4 + (5, TType.STRING, 'mid', 'UTF8', None, ), # 5 + (6, TType.STRING, 'countryAreaCode', 'UTF8', None, ), # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.BOOL, 'freePhoneCallable', None, None, ), # 10 +) +all_structs.append(SpotNearbyItem) +SpotNearbyItem.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRUCT, 'spotItem', [SpotItem, None], None, ), # 2 + None, # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + None, # 10 + (11, TType.STRUCT, 'location', [Location, None], None, ), # 11 +) +all_structs.append(SpotNearbyResponse) +SpotNearbyResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'spotNearbyItems', (TType.STRUCT, [SpotNearbyItem, None], False), None, ), # 1 +) +all_structs.append(SpotPhoneNumberResponse) +SpotPhoneNumberResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'spotItems', (TType.STRUCT, [SpotItem, None], False), None, ), # 1 +) +all_structs.append(PaidCallHistory) +PaidCallHistory.thrift_spec = ( + None, # 0 + (1, TType.I64, 'seq', None, None, ), # 1 + (2, TType.I32, 'type', None, None, ), # 2 + (3, TType.STRING, 'dialedNumber', 'UTF8', None, ), # 3 + (4, TType.STRING, 'calledNumber', 'UTF8', None, ), # 4 + (5, TType.STRING, 'toMid', 'UTF8', None, ), # 5 + (6, TType.STRING, 'toName', 'UTF8', None, ), # 6 + (7, TType.I64, 'setupTime', None, None, ), # 7 + (8, TType.I64, 'startTime', None, None, ), # 8 + (9, TType.I64, 'endTime', None, None, ), # 9 + (10, TType.I64, 'duration', None, None, ), # 10 + (11, TType.I32, 'terminate', None, None, ), # 11 + (12, TType.I32, 'productType', None, None, ), # 12 + (13, TType.I32, 'charge', None, None, ), # 13 + (14, TType.STRING, 'unit', 'UTF8', None, ), # 14 + (15, TType.STRING, 'result', 'UTF8', None, ), # 15 +) +all_structs.append(PaidCallHistoryResult) +PaidCallHistoryResult.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'historys', (TType.STRUCT, [PaidCallHistory, None], False), None, ), # 1 + (2, TType.BOOL, 'hasNext', None, None, ), # 2 +) +all_structs.append(PaidCallMetadataResult) +PaidCallMetadataResult.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'currencyExchangeRates', (TType.STRUCT, [PaidCallCurrencyExchangeRate, None], False), None, ), # 1 + (2, TType.LIST, 'recommendedCountryCodes', (TType.STRING, 'UTF8', False), None, ), # 2 + (3, TType.LIST, 'adCountries', (TType.STRUCT, [PaidCallAdCountry, None], False), None, ), # 3 +) +all_structs.append(PaidCallRedeemResult) +PaidCallRedeemResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'eventName', 'UTF8', None, ), # 1 + (2, TType.I32, 'eventAmount', None, None, ), # 2 +) +all_structs.append(PaidCallResponse) +PaidCallResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'host', [CallHost, None], None, ), # 1 + (2, TType.STRUCT, 'dialing', [PaidCallDialing, None], None, ), # 2 + (3, TType.STRING, 'token', 'UTF8', None, ), # 3 + (4, TType.LIST, 'spotItems', (TType.STRUCT, [SpotItem, None], False), None, ), # 4 +) +all_structs.append(PaidCallUserRate) +PaidCallUserRate.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'countryCode', 'UTF8', None, ), # 1 + (2, TType.I32, 'rate', None, None, ), # 2 + (3, TType.STRING, 'rateDivision', 'UTF8', None, ), # 3 + (4, TType.STRING, 'rateName', 'UTF8', None, ), # 4 +) +all_structs.append(ChannelInfo) +ChannelInfo.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'channelId', 'UTF8', None, ), # 1 + None, # 2 + (3, TType.STRING, 'name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'entryPageUrl', 'UTF8', None, ), # 4 + (5, TType.STRING, 'descriptionText', 'UTF8', None, ), # 5 + (6, TType.STRUCT, 'provider', [ChannelProvider, None], None, ), # 6 + (7, TType.I32, 'publicType', None, None, ), # 7 + (8, TType.STRING, 'iconImage', 'UTF8', None, ), # 8 + (9, TType.LIST, 'permissions', (TType.STRING, 'UTF8', False), None, ), # 9 + None, # 10 + (11, TType.STRING, 'iconThumbnailImage', 'UTF8', None, ), # 11 + (12, TType.LIST, 'channelConfigurations', (TType.I32, None, False), None, ), # 12 + (13, TType.BOOL, 'lcsAllApiUsable', None, None, ), # 13 + (14, TType.SET, 'allowedPermissions', (TType.I32, None, False), None, ), # 14 + (15, TType.LIST, 'channelDomains', (TType.STRUCT, [ChannelDomain, None], False), None, ), # 15 + (16, TType.I64, 'updatedTimestamp', None, None, ), # 16 +) +all_structs.append(ApprovedChannelInfo) +ApprovedChannelInfo.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'channelInfo', [ChannelInfo, None], None, ), # 1 + (2, TType.I64, 'approvedAt', None, None, ), # 2 +) +all_structs.append(ApprovedChannelInfos) +ApprovedChannelInfos.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'approvedChannelInfos', (TType.STRUCT, [ApprovedChannelInfo, None], False), None, ), # 1 + (2, TType.I64, 'revision', None, None, ), # 2 +) +all_structs.append(AuthQrcode) +AuthQrcode.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'qrcode', 'UTF8', None, ), # 1 + (2, TType.STRING, 'verifier', 'UTF8', None, ), # 2 + (3, TType.STRING, 'callbackUrl', 'UTF8', None, ), # 3 +) +all_structs.append(AnalyticsInfo) +AnalyticsInfo.thrift_spec = ( + None, # 0 + (1, TType.DOUBLE, 'gaSamplingRate', None, None, ), # 1 + (2, TType.STRING, 'tmid', 'UTF8', None, ), # 2 +) +all_structs.append(ContactTransition) +ContactTransition.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'ownerMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'targetMid', 'UTF8', None, ), # 2 + (3, TType.I32, 'previousStatus', None, None, ), # 3 + (4, TType.I32, 'resultStatus', None, None, ), # 4 +) +all_structs.append(UserTicketResponse) +UserTicketResponse.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'userTicket', 'UTF8', None, ), # 2 +) +all_structs.append(BuddyBanner) +BuddyBanner.thrift_spec = ( + None, # 0 + (1, TType.I32, 'buddyBannerLinkType', None, None, ), # 1 + (2, TType.STRING, 'buddyBannerLink', 'UTF8', None, ), # 2 + (3, TType.STRING, 'buddyBannerImageUrl', 'UTF8', None, ), # 3 +) +all_structs.append(BuddyDetail) +BuddyDetail.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + (2, TType.I64, 'memberCount', None, None, ), # 2 + (3, TType.BOOL, 'onAir', None, None, ), # 3 + (4, TType.BOOL, 'businessAccount', None, None, ), # 4 + (5, TType.BOOL, 'addable', None, None, ), # 5 + (6, TType.SET, 'acceptableContentTypes', (TType.I32, None, False), None, ), # 6 + (7, TType.BOOL, 'capableMyhome', None, None, ), # 7 +) +all_structs.append(Contact) +Contact.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + (2, TType.I64, 'createdTime', None, None, ), # 2 + None, # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.I32, 'type', None, None, ), # 10 + (11, TType.I32, 'status', None, None, ), # 11 + None, # 12 + None, # 13 + None, # 14 + None, # 15 + None, # 16 + None, # 17 + None, # 18 + None, # 19 + None, # 20 + (21, TType.I32, 'relation', None, None, ), # 21 + (22, TType.STRING, 'displayName', 'UTF8', None, ), # 22 + (23, TType.STRING, 'phoneticName', 'UTF8', None, ), # 23 + (24, TType.STRING, 'pictureStatus', 'UTF8', None, ), # 24 + (25, TType.STRING, 'thumbnailUrl', 'UTF8', None, ), # 25 + (26, TType.STRING, 'statusMessage', 'UTF8', None, ), # 26 + (27, TType.STRING, 'displayNameOverridden', 'UTF8', None, ), # 27 + (28, TType.I64, 'favoriteTime', None, None, ), # 28 + None, # 29 + None, # 30 + (31, TType.BOOL, 'capableVoiceCall', None, None, ), # 31 + (32, TType.BOOL, 'capableVideoCall', None, None, ), # 32 + (33, TType.BOOL, 'capableMyhome', None, None, ), # 33 + (34, TType.BOOL, 'capableBuddy', None, None, ), # 34 + (35, TType.I32, 'attributes', None, None, ), # 35 + (36, TType.I64, 'settings', None, None, ), # 36 + (37, TType.STRING, 'picturePath', 'UTF8', None, ), # 37 + (38, TType.STRING, 'recommendParams', 'UTF8', None, ), # 38 + (39, TType.I32, 'friendRequestStatus', None, None, ), # 39 + (40, TType.STRING, 'musicProfile', 'UTF8', None, ), # 40 + None, # 41 + (42, TType.STRING, 'videoProfile', 'UTF8', None, ), # 42 +) +all_structs.append(BuddyList) +BuddyList.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'classification', 'UTF8', None, ), # 1 + (2, TType.STRING, 'displayName', 'UTF8', None, ), # 2 + (3, TType.I32, 'totalBuddyCount', None, None, ), # 3 + (4, TType.LIST, 'popularContacts', (TType.STRUCT, [Contact, None], False), None, ), # 4 +) +all_structs.append(RegisterWithPhoneNumberResult) +RegisterWithPhoneNumberResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'authToken', 'UTF8', None, ), # 1 + (2, TType.BOOL, 'recommendEmailRegistration', None, None, ), # 2 + (3, TType.STRING, 'certificate', 'UTF8', None, ), # 3 +) +all_structs.append(BuddyMessageRequest) +BuddyMessageRequest.thrift_spec = ( + None, # 0 + (1, TType.I32, 'contentType', None, None, ), # 1 + (2, TType.STRING, 'text', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'location', [Location, None], None, ), # 3 + (4, TType.STRING, 'content', 'BINARY', None, ), # 4 + (5, TType.MAP, 'contentMetadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 5 +) +all_structs.append(BuddyOnAirUrls) +BuddyOnAirUrls.thrift_spec = ( + None, # 0 + (1, TType.MAP, 'hls', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.MAP, 'smoothStreaming', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2 +) +all_structs.append(BuddyOnAir) +BuddyOnAir.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + None, # 2 + (3, TType.I64, 'freshnessLifetime', None, None, ), # 3 + (4, TType.STRING, 'onAirId', 'UTF8', None, ), # 4 + (5, TType.BOOL, 'onAir', None, None, ), # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + None, # 10 + (11, TType.STRING, 'text', 'UTF8', None, ), # 11 + (12, TType.I64, 'viewerCount', None, None, ), # 12 + (13, TType.I64, 'targetCount', None, None, ), # 13 + None, # 14 + None, # 15 + None, # 16 + None, # 17 + None, # 18 + None, # 19 + None, # 20 + None, # 21 + None, # 22 + None, # 23 + None, # 24 + None, # 25 + None, # 26 + None, # 27 + None, # 28 + None, # 29 + None, # 30 + (31, TType.I32, 'onAirType', None, None, ), # 31 + (32, TType.STRUCT, 'onAirUrls', [BuddyOnAirUrls, None], None, ), # 32 +) +all_structs.append(BuddyProfile) +BuddyProfile.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'buddyId', 'UTF8', None, ), # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 + (3, TType.STRING, 'searchId', 'UTF8', None, ), # 3 + (4, TType.STRING, 'displayName', 'UTF8', None, ), # 4 + (5, TType.STRING, 'statusMessage', 'UTF8', None, ), # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + None, # 10 + (11, TType.I64, 'contactCount', None, None, ), # 11 +) +all_structs.append(CommitMessageResult) +CommitMessageResult.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'message', [Message, None], None, ), # 1 + (2, TType.I32, 'code', None, None, ), # 2 + (3, TType.STRING, 'reason', 'UTF8', None, ), # 3 + (4, TType.I64, 'successCount', None, None, ), # 4 + (5, TType.I64, 'failCount', None, None, ), # 5 + (6, TType.I64, 'unregisterCount', None, None, ), # 6 + (7, TType.I64, 'blockCount', None, None, ), # 7 +) +all_structs.append(BuddySearchResult) +BuddySearchResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'displayName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'pictureStatus', 'UTF8', None, ), # 3 + (4, TType.STRING, 'picturePath', 'UTF8', None, ), # 4 + (5, TType.STRING, 'statusMessage', 'UTF8', None, ), # 5 + (6, TType.BOOL, 'businessAccount', None, None, ), # 6 +) +all_structs.append(SyncParamMid) +SyncParamMid.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + (2, TType.I32, 'diff', None, None, ), # 2 + (3, TType.I64, 'revision', None, None, ), # 3 +) +all_structs.append(SIMInfo) +SIMInfo.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'phoneNumber', 'UTF8', None, ), # 1 + (2, TType.STRING, 'countryCode', 'UTF8', None, ), # 2 +) +all_structs.append(SyncParamContact) +SyncParamContact.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'syncParamMid', [SyncParamMid, None], None, ), # 1 + (2, TType.I32, 'contactStatus', None, None, ), # 2 +) +all_structs.append(ChannelDomains) +ChannelDomains.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'channelDomains', (TType.STRUCT, [ChannelDomain, None], False), None, ), # 1 + (2, TType.I64, 'revision', None, None, ), # 2 +) +all_structs.append(ProductCategory) +ProductCategory.thrift_spec = ( + None, # 0 + (1, TType.I64, 'productCategoryId', None, None, ), # 1 + (2, TType.STRING, 'title', 'UTF8', None, ), # 2 + (3, TType.I32, 'productCount', None, None, ), # 3 + (4, TType.BOOL, 'newFlag', None, None, ), # 4 +) +all_structs.append(ChannelInfos) +ChannelInfos.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'channelInfos', (TType.STRUCT, [ChannelInfo, None], False), None, ), # 1 + (2, TType.I64, 'revision', None, None, ), # 2 +) +all_structs.append(ChannelNotificationSetting) +ChannelNotificationSetting.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'channelId', 'UTF8', None, ), # 1 + (2, TType.STRING, 'name', 'UTF8', None, ), # 2 + (3, TType.BOOL, 'notificationReceivable', None, None, ), # 3 + (4, TType.BOOL, 'messageReceivable', None, None, ), # 4 + (5, TType.BOOL, 'showDefault', None, None, ), # 5 +) +all_structs.append(ChannelSyncDatas) +ChannelSyncDatas.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'channelInfos', (TType.STRUCT, [ChannelInfo, None], False), None, ), # 1 + (2, TType.LIST, 'channelDomains', (TType.STRUCT, [ChannelDomain, None], False), None, ), # 2 + (3, TType.I64, 'revision', None, None, ), # 3 + (4, TType.I64, 'expires', None, None, ), # 4 +) +all_structs.append(NotiCenterEventData) +NotiCenterEventData.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'id', 'UTF8', None, ), # 1 + (2, TType.STRING, 'to', 'UTF8', None, ), # 2 + (3, TType.STRING, 'from_', 'UTF8', None, ), # 3 + (4, TType.STRING, 'toChannel', 'UTF8', None, ), # 4 + (5, TType.STRING, 'fromChannel', 'UTF8', None, ), # 5 + (6, TType.STRING, 'eventType', 'UTF8', None, ), # 6 + (7, TType.I64, 'createdTime', None, None, ), # 7 + (8, TType.I64, 'operationRevision', None, None, ), # 8 + (9, TType.MAP, 'content', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 9 + (10, TType.MAP, 'push', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 10 +) +all_structs.append(ChannelToken) +ChannelToken.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'token', 'UTF8', None, ), # 1 + (2, TType.STRING, 'obsToken', 'UTF8', None, ), # 2 + (3, TType.I64, 'expiration', None, None, ), # 3 + (4, TType.STRING, 'refreshToken', 'UTF8', None, ), # 4 + (5, TType.STRING, 'channelAccessToken', 'UTF8', None, ), # 5 +) +all_structs.append(ChannelSettings) +ChannelSettings.thrift_spec = ( + None, # 0 + (1, TType.BOOL, 'unapprovedMessageReceivable', None, None, ), # 1 +) +all_structs.append(ChannelIdWithLastUpdated) +ChannelIdWithLastUpdated.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'channelId', 'UTF8', None, ), # 1 + (2, TType.I64, 'lastUpdated', None, None, ), # 2 +) +all_structs.append(Coin) +Coin.thrift_spec = ( + None, # 0 + (1, TType.I32, 'freeCoinBalance', None, None, ), # 1 + (2, TType.I32, 'payedCoinBalance', None, None, ), # 2 + (3, TType.I32, 'totalCoinBalance', None, None, ), # 3 + (4, TType.I32, 'rewardCoinBalance', None, None, ), # 4 +) +all_structs.append(CoinPayLoad) +CoinPayLoad.thrift_spec = ( + None, # 0 + (1, TType.I32, 'payCoin', None, None, ), # 1 + (2, TType.I32, 'freeCoin', None, None, ), # 2 + (3, TType.I32, 'type', None, None, ), # 3 + (4, TType.I32, 'rewardCoin', None, None, ), # 4 +) +all_structs.append(CoinHistory) +CoinHistory.thrift_spec = ( + None, # 0 + (1, TType.I64, 'payDate', None, None, ), # 1 + (2, TType.I32, 'coinBalance', None, None, ), # 2 + (3, TType.I32, 'coin', None, None, ), # 3 + (4, TType.STRING, 'price', 'UTF8', None, ), # 4 + (5, TType.STRING, 'title', 'UTF8', None, ), # 5 + (6, TType.BOOL, 'refund', None, None, ), # 6 + (7, TType.STRING, 'paySeq', 'UTF8', None, ), # 7 + (8, TType.STRING, 'currency', 'UTF8', None, ), # 8 + (9, TType.STRING, 'currencySign', 'UTF8', None, ), # 9 + (10, TType.STRING, 'displayPrice', 'UTF8', None, ), # 10 + (11, TType.STRUCT, 'payload', [CoinPayLoad, None], None, ), # 11 + (12, TType.STRING, 'channelId', 'UTF8', None, ), # 12 +) +all_structs.append(CoinHistoryCondition) +CoinHistoryCondition.thrift_spec = ( + None, # 0 + (1, TType.I64, 'start', None, None, ), # 1 + (2, TType.I32, 'size', None, None, ), # 2 + (3, TType.STRING, 'language', 'UTF8', None, ), # 3 + (4, TType.STRING, 'eddt', 'UTF8', None, ), # 4 + (5, TType.I32, 'appStoreCode', None, None, ), # 5 +) +all_structs.append(CoinHistoryResult) +CoinHistoryResult.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'historys', (TType.STRUCT, [CoinHistory, None], False), None, ), # 1 + (2, TType.STRUCT, 'balance', [Coin, None], None, ), # 2 + (3, TType.BOOL, 'hasNext', None, None, ), # 3 +) +all_structs.append(CoinProductItem) +CoinProductItem.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'itemId', 'UTF8', None, ), # 1 + (2, TType.I32, 'coin', None, None, ), # 2 + (3, TType.I32, 'freeCoin', None, None, ), # 3 + None, # 4 + (5, TType.STRING, 'currency', 'UTF8', None, ), # 5 + (6, TType.STRING, 'price', 'UTF8', None, ), # 6 + (7, TType.STRING, 'displayPrice', 'UTF8', None, ), # 7 + (8, TType.STRING, 'name', 'UTF8', None, ), # 8 + (9, TType.STRING, 'desc', 'UTF8', None, ), # 9 +) +all_structs.append(CoinPurchaseConfirm) +CoinPurchaseConfirm.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'orderId', 'UTF8', None, ), # 1 + (2, TType.I32, 'appStoreCode', None, None, ), # 2 + (3, TType.STRING, 'receipt', 'UTF8', None, ), # 3 + (4, TType.STRING, 'signature', 'UTF8', None, ), # 4 + (5, TType.STRING, 'seller', 'UTF8', None, ), # 5 + (6, TType.STRING, 'requestType', 'UTF8', None, ), # 6 + (7, TType.BOOL, 'ignoreReceipt', None, None, ), # 7 +) +all_structs.append(CoinPurchaseReservation) +CoinPurchaseReservation.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'productId', 'UTF8', None, ), # 1 + (2, TType.STRING, 'country', 'UTF8', None, ), # 2 + (3, TType.STRING, 'currency', 'UTF8', None, ), # 3 + (4, TType.STRING, 'price', 'UTF8', None, ), # 4 + (5, TType.I32, 'appStoreCode', None, None, ), # 5 + (6, TType.STRING, 'language', 'UTF8', None, ), # 6 + (7, TType.I32, 'pgCode', None, None, ), # 7 + (8, TType.STRING, 'redirectUrl', 'UTF8', None, ), # 8 +) +all_structs.append(CoinUseReservationItem) +CoinUseReservationItem.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'itemId', 'UTF8', None, ), # 1 + (2, TType.STRING, 'itemName', 'UTF8', None, ), # 2 + (3, TType.I32, 'amount', None, None, ), # 3 +) +all_structs.append(CoinUseReservation) +CoinUseReservation.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'channelId', 'UTF8', None, ), # 1 + (2, TType.STRING, 'shopOrderId', 'UTF8', None, ), # 2 + (3, TType.I32, 'appStoreCode', None, None, ), # 3 + (4, TType.LIST, 'items', (TType.STRUCT, [CoinUseReservationItem, None], False), None, ), # 4 + (5, TType.STRING, 'country', 'UTF8', None, ), # 5 +) +all_structs.append(CompactContact) +CompactContact.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + (2, TType.I64, 'createdTime', None, None, ), # 2 + (3, TType.I64, 'modifiedTime', None, None, ), # 3 + (4, TType.I32, 'status', None, None, ), # 4 + (5, TType.I64, 'settings', None, None, ), # 5 + (6, TType.STRING, 'displayNameOverridden', 'UTF8', None, ), # 6 +) +all_structs.append(ContactModification) +ContactModification.thrift_spec = ( + None, # 0 + (1, TType.I32, 'type', None, None, ), # 1 + (2, TType.STRING, 'luid', 'UTF8', None, ), # 2 + None, # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + None, # 10 + (11, TType.LIST, 'phones', (TType.STRING, 'UTF8', False), None, ), # 11 + (12, TType.LIST, 'emails', (TType.STRING, 'UTF8', False), None, ), # 12 + (13, TType.LIST, 'userids', (TType.STRING, 'UTF8', False), None, ), # 13 +) +all_structs.append(ContactRegistration) +ContactRegistration.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'contact', [Contact, None], None, ), # 1 + None, # 2 + None, # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.STRING, 'luid', 'UTF8', None, ), # 10 + (11, TType.I32, 'contactType', None, None, ), # 11 + (12, TType.STRING, 'contactKey', 'UTF8', None, ), # 12 +) +all_structs.append(ContactReport) +ContactReport.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + (2, TType.BOOL, 'exists', None, None, ), # 2 + (3, TType.STRUCT, 'contact', [Contact, None], None, ), # 3 +) +all_structs.append(ContactReportResult) +ContactReportResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + (2, TType.BOOL, 'exists', None, None, ), # 2 +) +all_structs.append(DeviceInfo) +DeviceInfo.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'deviceName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'systemName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'systemVersion', 'UTF8', None, ), # 3 + (4, TType.STRING, 'model', 'UTF8', None, ), # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.I32, 'carrierCode', None, None, ), # 10 + (11, TType.STRING, 'carrierName', 'UTF8', None, ), # 11 + None, # 12 + None, # 13 + None, # 14 + None, # 15 + None, # 16 + None, # 17 + None, # 18 + None, # 19 + (20, TType.I32, 'applicationType', None, None, ), # 20 +) +all_structs.append(EmailConfirmation) +EmailConfirmation.thrift_spec = ( + None, # 0 + (1, TType.BOOL, 'usePasswordSet', None, None, ), # 1 + (2, TType.STRING, 'email', 'UTF8', None, ), # 2 + (3, TType.STRING, 'password', 'UTF8', None, ), # 3 + (4, TType.BOOL, 'ignoreDuplication', None, None, ), # 4 +) +all_structs.append(EmailConfirmationSession) +EmailConfirmationSession.thrift_spec = ( + None, # 0 + (1, TType.I32, 'emailConfirmationType', None, None, ), # 1 + (2, TType.STRING, 'verifier', 'UTF8', None, ), # 2 + (3, TType.STRING, 'targetEmail', 'UTF8', None, ), # 3 +) +all_structs.append(FriendChannelMatrix) +FriendChannelMatrix.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'channelId', 'UTF8', None, ), # 1 + (2, TType.STRING, 'representMid', 'UTF8', None, ), # 2 + (3, TType.I32, 'count', None, None, ), # 3 + (4, TType.I32, 'point', None, None, ), # 4 +) +all_structs.append(FriendChannelMatricesResponse) +FriendChannelMatricesResponse.thrift_spec = ( + None, # 0 + (1, TType.I64, 'expires', None, None, ), # 1 + (2, TType.LIST, 'matrices', (TType.STRUCT, [FriendChannelMatrix, None], False), None, ), # 2 +) +all_structs.append(FriendRequest) +FriendRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'eMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 + (3, TType.I32, 'direction', None, None, ), # 3 + (4, TType.I32, 'method', None, None, ), # 4 + (5, TType.STRING, 'param', 'UTF8', None, ), # 5 + (6, TType.I64, 'timestamp', None, None, ), # 6 + (7, TType.I64, 'seqId', None, None, ), # 7 + None, # 8 + None, # 9 + (10, TType.STRING, 'displayName', 'UTF8', None, ), # 10 + (11, TType.STRING, 'picturePath', 'UTF8', None, ), # 11 + (12, TType.STRING, 'pictureStatus', 'UTF8', None, ), # 12 +) +all_structs.append(FriendRequestsInfo) +FriendRequestsInfo.thrift_spec = ( + None, # 0 + (1, TType.I32, 'totalIncomingCount', None, None, ), # 1 + (2, TType.I32, 'totalOutgoingCount', None, None, ), # 2 + (3, TType.LIST, 'recentIncomings', (TType.STRUCT, [FriendRequest, None], False), None, ), # 3 + (4, TType.LIST, 'recentOutgoings', (TType.STRUCT, [FriendRequest, None], False), None, ), # 4 + (5, TType.I32, 'totalIncomingLimit', None, None, ), # 5 + (6, TType.I32, 'totalOutgoingLimit', None, None, ), # 6 +) +all_structs.append(Geolocation) +Geolocation.thrift_spec = ( + None, # 0 + (1, TType.DOUBLE, 'longitude', None, None, ), # 1 + (2, TType.DOUBLE, 'latitude', None, None, ), # 2 +) +all_structs.append(NotificationTarget) +NotificationTarget.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'applicationType', 'UTF8', None, ), # 1 + (2, TType.STRING, 'applicationVersion', 'UTF8', None, ), # 2 + (3, TType.STRING, 'region', 'UTF8', None, ), # 3 +) +all_structs.append(GlobalEvent) +GlobalEvent.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'key', 'UTF8', None, ), # 1 + (2, TType.LIST, 'targets', (TType.STRUCT, [NotificationTarget, None], False), None, ), # 2 + (3, TType.I64, 'createdTime', None, None, ), # 3 + (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 + (1, TType.STRING, 'id', 'UTF8', None, ), # 1 + (2, TType.I64, 'createdTime', None, None, ), # 2 + None, # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.STRING, 'name', 'UTF8', None, ), # 10 + (11, TType.STRING, 'pictureStatus', 'UTF8', None, ), # 11 + (12, TType.BOOL, 'preventedJoinByTicket', None, None, ), # 12 + (13, TType.STRUCT, 'groupPreference', [GroupPreference, None], None, ), # 13 + None, # 14 + None, # 15 + None, # 16 + None, # 17 + None, # 18 + None, # 19 + (20, TType.LIST, 'members', (TType.STRUCT, [Contact, None], False), None, ), # 20 + (21, TType.STRUCT, 'creator', [Contact, None], None, ), # 21 + (22, TType.LIST, 'invitee', (TType.STRUCT, [Contact, None], False), None, ), # 22 + None, # 23 + None, # 24 + None, # 25 + None, # 26 + None, # 27 + None, # 28 + None, # 29 + None, # 30 + (31, TType.BOOL, 'notificationDisabled', None, None, ), # 31 +) +all_structs.append(IdentityCredential) +IdentityCredential.thrift_spec = ( + None, # 0 + (1, TType.I32, 'provider', None, None, ), # 1 + (2, TType.STRING, 'identifier', 'UTF8', None, ), # 2 + (3, TType.STRING, 'password', 'UTF8', None, ), # 3 +) +all_structs.append(LastReadMessageId) +LastReadMessageId.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'lastReadMessageId', 'UTF8', None, ), # 2 +) +all_structs.append(LastReadMessageIds) +LastReadMessageIds.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'chatId', 'UTF8', None, ), # 1 + (2, TType.LIST, 'lastReadMessageIds', (TType.STRUCT, [LastReadMessageId, None], False), None, ), # 2 +) +all_structs.append(VerificationSessionData) +VerificationSessionData.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'sessionId', 'UTF8', None, ), # 1 + (2, TType.I32, 'method', None, None, ), # 2 + (3, TType.STRING, 'callback', 'UTF8', None, ), # 3 + (4, TType.STRING, 'normalizedPhone', 'UTF8', None, ), # 4 + (5, TType.STRING, 'countryCode', 'UTF8', None, ), # 5 + (6, TType.STRING, 'nationalSignificantNumber', 'UTF8', None, ), # 6 + (7, TType.LIST, 'availableVerificationMethods', (TType.I32, None, False), None, ), # 7 +) +all_structs.append(LoginResult) +LoginResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'authToken', 'UTF8', None, ), # 1 + (2, TType.STRING, 'certificate', 'UTF8', None, ), # 2 + (3, TType.STRING, 'verifier', 'UTF8', None, ), # 3 + (4, TType.STRING, 'pinCode', 'UTF8', None, ), # 4 + (5, TType.I32, 'type', None, None, ), # 5 + (6, TType.I64, 'lastPrimaryBindTime', None, None, ), # 6 + (7, TType.STRING, 'displayMessage', 'UTF8', None, ), # 7 + (8, TType.STRUCT, 'sessionForSMSConfirm', [VerificationSessionData, None], None, ), # 8 +) +all_structs.append(LoginRequest) +LoginRequest.thrift_spec = ( + None, # 0 + (1, TType.I32, 'type', None, None, ), # 1 + (2, TType.I32, 'identityProvider', None, None, ), # 2 + (3, TType.STRING, 'identifier', 'UTF8', None, ), # 3 + (4, TType.STRING, 'password', 'UTF8', None, ), # 4 + (5, TType.BOOL, 'keepLoggedIn', None, None, ), # 5 + (6, TType.STRING, 'accessLocation', 'UTF8', None, ), # 6 + (7, TType.STRING, 'systemName', 'UTF8', None, ), # 7 + (8, TType.STRING, 'certificate', 'UTF8', None, ), # 8 + (9, TType.STRING, 'verifier', 'UTF8', None, ), # 9 + (10, TType.STRING, 'secret', 'UTF8', None, ), # 10 + (11, TType.I32, 'e2eeVersion', None, None, ), # 11 +) +all_structs.append(LoginSession) +LoginSession.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'tokenKey', 'UTF8', None, ), # 1 + None, # 2 + (3, TType.I64, 'expirationTime', None, None, ), # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + None, # 10 + (11, TType.I32, 'applicationType', None, None, ), # 11 + (12, TType.STRING, 'systemName', 'UTF8', None, ), # 12 + None, # 13 + None, # 14 + None, # 15 + None, # 16 + None, # 17 + None, # 18 + None, # 19 + None, # 20 + None, # 21 + (22, TType.STRING, 'accessLocation', 'UTF8', None, ), # 22 +) +all_structs.append(Message) +Message.thrift_spec = ( + None, # 0 + (1, TType.STRING, '_from', 'UTF8', None, ), # 1 + (2, TType.STRING, 'to', 'UTF8', None, ), # 2 + (3, TType.I32, 'toType', None, None, ), # 3 + (4, TType.STRING, 'id', 'UTF8', None, ), # 4 + (5, TType.I64, 'createdTime', None, None, ), # 5 + (6, TType.I64, 'deliveredTime', None, None, ), # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.STRING, 'text', 'UTF8', None, ), # 10 + (11, TType.STRUCT, 'location', [Location, None], None, ), # 11 + None, # 12 + None, # 13 + (14, TType.BOOL, 'hasContent', None, None, ), # 14 + (15, TType.I32, 'contentType', None, None, ), # 15 + None, # 16 + (17, TType.STRING, 'contentPreview', 'BINARY', None, ), # 17 + (18, TType.MAP, 'contentMetadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 18 + (19, TType.BYTE, 'sessionId', None, None, ), # 19 + (20, TType.LIST, 'chunks', (TType.STRING, 'BINARY', False), None, ), # 20 + (21, TType.STRING, 'relatedMessageId', 'UTF8', None, ), # 21 + (22, TType.I32, 'messageRelationType', None, None, ), # 22 + (23, TType.I64, 'readCount', None, None, ), # 23 + (24, TType.I32, 'relatedMessageServiceCode', None, None, ), # 24 +) +all_structs.append(SquareMessage) +SquareMessage.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'message', [Message, None], None, ), # 1 + None, # 2 + (3, TType.I32, 'fromType', None, None, ), # 3 + (4, TType.I64, 'squareMessageRevision', None, None, ), # 4 +) +all_structs.append(SquareChatStatusWithoutMessage) +SquareChatStatusWithoutMessage.thrift_spec = ( + None, # 0 + (1, TType.I32, 'memberCount', None, None, ), # 1 + (2, TType.I32, 'unreadMessageCount', None, None, ), # 2 +) +all_structs.append(SquareChatStatus) +SquareChatStatus.thrift_spec = ( + None, # 0 + None, # 1 + None, # 2 + (3, TType.STRUCT, 'lastMessage', [SquareMessage, None], None, ), # 3 + (4, TType.STRING, 'senderDisplayName', 'UTF8', None, ), # 4 + (5, TType.STRUCT, 'otherStatus', [SquareChatStatusWithoutMessage, None], None, ), # 5 +) +all_structs.append(SquareChatMember) +SquareChatMember.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMemberMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 2 + (3, TType.I64, 'revision', None, None, ), # 3 + (4, TType.I32, 'membershipState', None, None, ), # 4 + (5, TType.BOOL, 'notificationForMessage', None, None, ), # 5 +) +all_structs.append(MessageOperation) +MessageOperation.thrift_spec = ( + None, # 0 + (1, TType.I64, 'revision', None, None, ), # 1 + (2, TType.I64, 'createdTime', None, None, ), # 2 + (3, TType.I32, 'type', None, None, ), # 3 + (4, TType.I32, 'reqSeq', None, None, ), # 4 + (5, TType.I32, 'status', None, None, ), # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.STRING, 'param1', 'UTF8', None, ), # 10 + (11, TType.STRING, 'param2', 'UTF8', None, ), # 11 + (12, TType.STRING, 'param3', 'UTF8', None, ), # 12 + None, # 13 + None, # 14 + None, # 15 + None, # 16 + None, # 17 + None, # 18 + None, # 19 + (20, TType.STRUCT, 'message', [Message, None], None, ), # 20 +) +all_structs.append(MessageOperations) +MessageOperations.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'operations', (TType.STRUCT, [MessageOperation, None], False), None, ), # 1 + (2, TType.BOOL, 'endFlag', None, None, ), # 2 +) +all_structs.append(MessageStoreResult) +MessageStoreResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1 + (2, TType.LIST, 'messageIds', (TType.STRING, 'UTF8', False), None, ), # 2 +) +all_structs.append(MetaProfile) +MetaProfile.thrift_spec = ( + None, # 0 + (1, TType.I64, 'createTime', None, None, ), # 1 + (2, TType.STRING, 'regionCode', 'UTF8', None, ), # 2 + (3, TType.MAP, 'identities', (TType.I32, None, TType.STRING, 'UTF8', False), None, ), # 3 +) +all_structs.append(NotificationItem) +NotificationItem.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'id', 'UTF8', None, ), # 1 + (2, TType.STRING, '_from', 'UTF8', None, ), # 2 + (3, TType.STRING, 'to', 'UTF8', None, ), # 3 + (4, TType.STRING, 'fromChannel', 'UTF8', None, ), # 4 + (5, TType.STRING, 'toChannel', 'UTF8', None, ), # 5 + None, # 6 + (7, TType.I64, 'revision', None, None, ), # 7 + (8, TType.I64, 'createdTime', None, None, ), # 8 + (9, TType.MAP, 'content', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 9 +) +all_structs.append(NotificationFetchResult) +NotificationFetchResult.thrift_spec = ( + None, # 0 + (1, TType.I32, 'fetchMode', None, None, ), # 1 + (2, TType.LIST, 'itemList', (TType.STRUCT, [NotificationItem, None], False), None, ), # 2 +) +all_structs.append(Operation) +Operation.thrift_spec = ( + None, # 0 + (1, TType.I64, 'revision', None, None, ), # 1 + (2, TType.I64, 'createdTime', None, None, ), # 2 + (3, TType.I32, 'type', None, None, ), # 3 + (4, TType.I32, 'reqSeq', None, None, ), # 4 + (5, TType.STRING, 'checksum', 'UTF8', None, ), # 5 + None, # 6 + (7, TType.I32, 'status', None, None, ), # 7 + None, # 8 + None, # 9 + (10, TType.STRING, 'param1', 'UTF8', None, ), # 10 + (11, TType.STRING, 'param2', 'UTF8', None, ), # 11 + (12, TType.STRING, 'param3', 'UTF8', None, ), # 12 + None, # 13 + None, # 14 + None, # 15 + None, # 16 + None, # 17 + None, # 18 + None, # 19 + (20, TType.STRUCT, 'message', [Message, None], None, ), # 20 +) +all_structs.append(PaymentReservation) +PaymentReservation.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'receiverMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'productId', 'UTF8', None, ), # 2 + (3, TType.STRING, 'language', 'UTF8', None, ), # 3 + (4, TType.STRING, 'location', 'UTF8', None, ), # 4 + (5, TType.STRING, 'currency', 'UTF8', None, ), # 5 + (6, TType.STRING, 'price', 'UTF8', None, ), # 6 + (7, TType.I32, 'appStoreCode', None, None, ), # 7 + (8, TType.STRING, 'messageText', 'UTF8', None, ), # 8 + (9, TType.I32, 'messageTemplate', None, None, ), # 9 + (10, TType.I64, 'packageId', None, None, ), # 10 +) +all_structs.append(PaymentReservationResult) +PaymentReservationResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'orderId', 'UTF8', None, ), # 1 + (2, TType.STRING, 'confirmUrl', 'UTF8', None, ), # 2 + (3, TType.MAP, 'extras', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3 +) +all_structs.append(Product) +Product.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'productId', 'UTF8', None, ), # 1 + (2, TType.I64, 'packageId', None, None, ), # 2 + (3, TType.I32, 'version', None, None, ), # 3 + (4, TType.STRING, 'authorName', 'UTF8', None, ), # 4 + (5, TType.BOOL, 'onSale', None, None, ), # 5 + (6, TType.I32, 'validDays', None, None, ), # 6 + (7, TType.I32, 'saleType', None, None, ), # 7 + (8, TType.STRING, 'copyright', 'UTF8', None, ), # 8 + (9, TType.STRING, 'title', 'UTF8', None, ), # 9 + (10, TType.STRING, 'descriptionText', 'UTF8', None, ), # 10 + (11, TType.I64, 'shopOrderId', None, None, ), # 11 + (12, TType.STRING, 'fromMid', 'UTF8', None, ), # 12 + (13, TType.STRING, 'toMid', 'UTF8', None, ), # 13 + (14, TType.I64, 'validUntil', None, None, ), # 14 + (15, TType.I32, 'priceTier', None, None, ), # 15 + (16, TType.STRING, 'price', 'UTF8', None, ), # 16 + (17, TType.STRING, 'currency', 'UTF8', None, ), # 17 + (18, TType.STRING, 'currencySymbol', 'UTF8', None, ), # 18 + (19, TType.I32, 'paymentType', None, None, ), # 19 + (20, TType.I64, 'createDate', None, None, ), # 20 + (21, TType.BOOL, 'ownFlag', None, None, ), # 21 + (22, TType.I32, 'eventType', None, None, ), # 22 + (23, TType.STRING, 'urlSchema', 'UTF8', None, ), # 23 + (24, TType.STRING, 'downloadUrl', 'UTF8', None, ), # 24 + (25, TType.STRING, 'buddyMid', 'UTF8', None, ), # 25 + (26, TType.I64, 'publishSince', None, None, ), # 26 + (27, TType.BOOL, 'newFlag', None, None, ), # 27 + (28, TType.BOOL, 'missionFlag', None, None, ), # 28 + (29, TType.LIST, 'categories', (TType.STRUCT, [ProductCategory, None], False), None, ), # 29 + (30, TType.STRING, 'missionButtonText', 'UTF8', None, ), # 30 + (31, TType.STRING, 'missionShortDescription', 'UTF8', None, ), # 31 + (32, TType.STRING, 'authorId', 'UTF8', None, ), # 32 + None, # 33 + None, # 34 + None, # 35 + None, # 36 + None, # 37 + None, # 38 + None, # 39 + None, # 40 + (41, TType.BOOL, 'grantedByDefault', None, None, ), # 41 + (42, TType.I32, 'displayOrder', None, None, ), # 42 + (43, TType.BOOL, 'availableForPresent', None, None, ), # 43 + (44, TType.BOOL, 'availableForMyself', None, None, ), # 44 + None, # 45 + None, # 46 + None, # 47 + None, # 48 + None, # 49 + None, # 50 + (51, TType.BOOL, 'hasAnimation', None, None, ), # 51 + (52, TType.BOOL, 'hasSound', None, None, ), # 52 + (53, TType.BOOL, 'recommendationsEnabled', None, None, ), # 53 + (54, TType.I32, 'stickerResourceType', None, None, ), # 54 +) +all_structs.append(ProductList) +ProductList.thrift_spec = ( + None, # 0 + (1, TType.BOOL, 'hasNext', None, None, ), # 1 + None, # 2 + None, # 3 + (4, TType.I64, 'bannerSequence', None, None, ), # 4 + (5, TType.I32, 'bannerTargetType', None, None, ), # 5 + (6, TType.STRING, 'bannerTargetPath', 'UTF8', None, ), # 6 + (7, TType.LIST, 'productList', (TType.STRUCT, [Product, None], False), None, ), # 7 + (8, TType.STRING, 'bannerLang', 'UTF8', None, ), # 8 +) +all_structs.append(StickerIdRange) +StickerIdRange.thrift_spec = ( + None, # 0 + (1, TType.I64, 'start', None, None, ), # 1 + (2, TType.I32, 'size', None, None, ), # 2 +) +all_structs.append(ProductSimple) +ProductSimple.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'productId', 'UTF8', None, ), # 1 + (2, TType.I64, 'packageId', None, None, ), # 2 + (3, TType.I32, 'version', None, None, ), # 3 + (4, TType.BOOL, 'onSale', None, None, ), # 4 + (5, TType.I64, 'validUntil', None, None, ), # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.LIST, 'stickerIdRanges', (TType.STRUCT, [StickerIdRange, None], False), None, ), # 10 + None, # 11 + None, # 12 + None, # 13 + None, # 14 + None, # 15 + None, # 16 + None, # 17 + None, # 18 + None, # 19 + None, # 20 + None, # 21 + None, # 22 + None, # 23 + None, # 24 + None, # 25 + None, # 26 + None, # 27 + None, # 28 + None, # 29 + None, # 30 + None, # 31 + None, # 32 + None, # 33 + None, # 34 + None, # 35 + None, # 36 + None, # 37 + None, # 38 + None, # 39 + None, # 40 + (41, TType.BOOL, 'grantedByDefault', None, None, ), # 41 + (42, TType.I32, 'displayOrder', None, None, ), # 42 +) +all_structs.append(ProductSimpleList) +ProductSimpleList.thrift_spec = ( + None, # 0 + (1, TType.BOOL, 'hasNext', None, None, ), # 1 + (2, TType.I32, 'reinvokeHour', None, None, ), # 2 + (3, TType.I64, 'lastVersionSeq', None, None, ), # 3 + (4, TType.LIST, 'productList', (TType.STRUCT, [ProductSimple, None], False), None, ), # 4 + (5, TType.I64, 'recentNewReleaseDate', None, None, ), # 5 + (6, TType.I64, 'recentEventReleaseDate', None, None, ), # 6 +) +all_structs.append(Profile) +Profile.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + None, # 2 + (3, TType.STRING, 'userid', 'UTF8', None, ), # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.STRING, 'phone', 'UTF8', None, ), # 10 + (11, TType.STRING, 'email', 'UTF8', None, ), # 11 + (12, TType.STRING, 'regionCode', 'UTF8', None, ), # 12 + None, # 13 + None, # 14 + None, # 15 + None, # 16 + None, # 17 + None, # 18 + None, # 19 + (20, TType.STRING, 'displayName', 'UTF8', None, ), # 20 + (21, TType.STRING, 'phoneticName', 'UTF8', None, ), # 21 + (22, TType.STRING, 'pictureStatus', 'UTF8', None, ), # 22 + (23, TType.STRING, 'thumbnailUrl', 'UTF8', None, ), # 23 + (24, TType.STRING, 'statusMessage', 'UTF8', None, ), # 24 + None, # 25 + None, # 26 + None, # 27 + None, # 28 + None, # 29 + None, # 30 + (31, TType.BOOL, 'allowSearchByUserid', None, None, ), # 31 + (32, TType.BOOL, 'allowSearchByEmail', None, None, ), # 32 + (33, TType.STRING, 'picturePath', 'UTF8', None, ), # 33 + (34, TType.STRING, 'musicProfile', 'UTF8', None, ), # 34 + (35, TType.STRING, 'videoProfile', 'UTF8', None, ), # 35 +) +all_structs.append(ProximityMatchCandidateResult) +ProximityMatchCandidateResult.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'users', (TType.STRUCT, [Contact, None], False), None, ), # 1 + (2, TType.LIST, 'buddies', (TType.STRUCT, [Contact, None], False), None, ), # 2 +) +all_structs.append(RegisterWithSnsIdResult) +RegisterWithSnsIdResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'authToken', 'UTF8', None, ), # 1 + (2, TType.BOOL, 'userCreated', None, None, ), # 2 +) +all_structs.append(RequestTokenResponse) +RequestTokenResponse.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'requestToken', 'UTF8', None, ), # 1 + (2, TType.STRING, 'returnUrl', 'UTF8', None, ), # 2 +) +all_structs.append(Room) +Room.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + (2, TType.I64, 'createdTime', None, None, ), # 2 + None, # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.LIST, 'contacts', (TType.STRUCT, [Contact, None], False), None, ), # 10 + None, # 11 + None, # 12 + None, # 13 + None, # 14 + None, # 15 + None, # 16 + None, # 17 + None, # 18 + None, # 19 + None, # 20 + None, # 21 + None, # 22 + None, # 23 + None, # 24 + None, # 25 + None, # 26 + None, # 27 + None, # 28 + None, # 29 + None, # 30 + (31, TType.BOOL, 'notificationDisabled', None, None, ), # 31 + None, # 32 + None, # 33 + None, # 34 + None, # 35 + None, # 36 + None, # 37 + None, # 38 + None, # 39 + (40, TType.LIST, 'memberMids', (TType.STRING, 'UTF8', False), None, ), # 40 +) +all_structs.append(SuggestDictionary) +SuggestDictionary.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'language', 'UTF8', None, ), # 1 + (2, TType.STRING, 'name', 'UTF8', None, ), # 2 +) +all_structs.append(SuggestItemDictionaryIncrement) +SuggestItemDictionaryIncrement.thrift_spec = ( + None, # 0 + (1, TType.I32, 'status', None, None, ), # 1 + (2, TType.I64, 'revision', None, None, ), # 2 + (3, TType.STRING, 'scheme', 'UTF8', None, ), # 3 + (4, TType.STRING, 'data', 'BINARY', None, ), # 4 +) +all_structs.append(SuggestTagDictionaryIncrement) +SuggestTagDictionaryIncrement.thrift_spec = ( + None, # 0 + (1, TType.I32, 'status', None, None, ), # 1 + (2, TType.STRING, 'language', 'UTF8', None, ), # 2 + (3, TType.I64, 'revision', None, None, ), # 3 + (4, TType.STRING, 'scheme', 'UTF8', None, ), # 4 + (5, TType.STRING, 'data', 'BINARY', None, ), # 5 +) +all_structs.append(SuggestDictionaryIncrements) +SuggestDictionaryIncrements.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'itemIncrement', [SuggestItemDictionaryIncrement, None], None, ), # 1 + (2, TType.LIST, 'tagIncrements', (TType.STRUCT, [SuggestTagDictionaryIncrement, None], False), None, ), # 2 +) +all_structs.append(SuggestItemDictionaryRevision) +SuggestItemDictionaryRevision.thrift_spec = ( + None, # 0 + (1, TType.I64, 'revision', None, None, ), # 1 + (2, TType.STRING, 'scheme', 'UTF8', None, ), # 2 +) +all_structs.append(SuggestTagDictionaryRevision) +SuggestTagDictionaryRevision.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'language', 'UTF8', None, ), # 1 + (2, TType.I64, 'revision', None, None, ), # 2 + (3, TType.STRING, 'scheme', 'UTF8', None, ), # 3 +) +all_structs.append(SuggestDictionaryRevisions) +SuggestDictionaryRevisions.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'itemRevision', [SuggestItemDictionaryRevision, None], None, ), # 1 + (2, TType.LIST, 'tagRevisions', (TType.STRUCT, [SuggestTagDictionaryRevision, None], False), None, ), # 2 +) +all_structs.append(SuggestDictionarySettings) +SuggestDictionarySettings.thrift_spec = ( + None, # 0 + (1, TType.I64, 'revision', None, None, ), # 1 + (2, TType.I64, 'newRevision', None, None, ), # 2 + (3, TType.LIST, 'dictionaries', (TType.STRUCT, [SuggestDictionary, None], False), None, ), # 3 + (4, TType.LIST, 'preloadedDictionaries', (TType.STRING, 'UTF8', False), None, ), # 4 +) +all_structs.append(PhoneInfoForChannel) +PhoneInfoForChannel.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'normalizedPhoneNumber', 'UTF8', None, ), # 2 + (3, TType.BOOL, 'allowedToSearchByPhoneNumber', None, None, ), # 3 + (4, TType.BOOL, 'allowedToReceiveMessageFromNonFriend', None, None, ), # 4 + (5, TType.STRING, 'region', 'UTF8', None, ), # 5 +) +all_structs.append(PhoneVerificationResult) +PhoneVerificationResult.thrift_spec = ( + None, # 0 + (1, TType.I32, 'verificationResult', None, None, ), # 1 + (2, TType.I32, 'accountMigrationCheckType', None, None, ), # 2 + (3, TType.BOOL, 'recommendAddFriends', None, None, ), # 3 +) +all_structs.append(PlaceSearchInfo) +PlaceSearchInfo.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'address', 'UTF8', None, ), # 2 + (3, TType.DOUBLE, 'latitude', None, None, ), # 3 + (4, TType.DOUBLE, 'longitude', None, None, ), # 4 +) +all_structs.append(RSAKey) +RSAKey.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'keynm', 'UTF8', None, ), # 1 + (2, TType.STRING, 'nvalue', 'UTF8', None, ), # 2 + (3, TType.STRING, 'evalue', 'UTF8', None, ), # 3 + (4, TType.STRING, 'sessionKey', 'UTF8', None, ), # 4 +) +all_structs.append(SecurityCenterResult) +SecurityCenterResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'uri', 'UTF8', None, ), # 1 + (2, TType.STRING, 'token', 'UTF8', None, ), # 2 + (3, TType.STRING, 'cookiePath', 'UTF8', None, ), # 3 + (4, TType.BOOL, 'skip', None, None, ), # 4 +) +all_structs.append(SendBuddyMessageResult) +SendBuddyMessageResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1 + (2, TType.I32, 'state', None, None, ), # 2 + (3, TType.STRING, 'messageId', 'UTF8', None, ), # 3 + (4, TType.I32, 'eventNo', None, None, ), # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + None, # 10 + (11, TType.I64, 'receiverCount', None, None, ), # 11 + (12, TType.I64, 'successCount', None, None, ), # 12 + (13, TType.I64, 'failCount', None, None, ), # 13 + (14, TType.I64, 'cancelCount', None, None, ), # 14 + (15, TType.I64, 'blockCount', None, None, ), # 15 + (16, TType.I64, 'unregisterCount', None, None, ), # 16 + None, # 17 + None, # 18 + None, # 19 + None, # 20 + (21, TType.I64, 'timestamp', None, None, ), # 21 + (22, TType.STRING, 'message', 'UTF8', None, ), # 22 +) +all_structs.append(SetBuddyOnAirResult) +SetBuddyOnAirResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1 + (2, TType.I32, 'state', None, None, ), # 2 + (3, TType.I32, 'eventNo', None, None, ), # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + None, # 10 + (11, TType.I64, 'receiverCount', None, None, ), # 11 + (12, TType.I64, 'successCount', None, None, ), # 12 + (13, TType.I64, 'failCount', None, None, ), # 13 + (14, TType.I64, 'cancelCount', None, None, ), # 14 + (15, TType.I64, 'unregisterCount', None, None, ), # 15 + None, # 16 + None, # 17 + None, # 18 + None, # 19 + None, # 20 + (21, TType.I64, 'timestamp', None, None, ), # 21 + (22, TType.STRING, 'message', 'UTF8', None, ), # 22 +) +all_structs.append(Settings) +Settings.thrift_spec = ( + None, # 0 + None, # 1 + None, # 2 + None, # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.BOOL, 'notificationEnable', None, None, ), # 10 + (11, TType.I64, 'notificationMuteExpiration', None, None, ), # 11 + (12, TType.BOOL, 'notificationNewMessage', None, None, ), # 12 + (13, TType.BOOL, 'notificationGroupInvitation', None, None, ), # 13 + (14, TType.BOOL, 'notificationShowMessage', None, None, ), # 14 + (15, TType.BOOL, 'notificationIncomingCall', None, None, ), # 15 + (16, TType.STRING, 'notificationSoundMessage', 'UTF8', None, ), # 16 + (17, TType.STRING, 'notificationSoundGroup', 'UTF8', None, ), # 17 + (18, TType.BOOL, 'notificationDisabledWithSub', None, None, ), # 18 + None, # 19 + (20, TType.BOOL, 'privacySyncContacts', None, None, ), # 20 + (21, TType.BOOL, 'privacySearchByPhoneNumber', None, None, ), # 21 + (22, TType.BOOL, 'privacySearchByUserid', None, None, ), # 22 + (23, TType.BOOL, 'privacySearchByEmail', None, None, ), # 23 + (24, TType.BOOL, 'privacyAllowSecondaryDeviceLogin', None, None, ), # 24 + (25, TType.BOOL, 'privacyProfileImagePostToMyhome', None, None, ), # 25 + (26, TType.BOOL, 'privacyReceiveMessagesFromNotFriend', None, None, ), # 26 + None, # 27 + None, # 28 + None, # 29 + (30, TType.STRING, 'contactMyTicket', 'UTF8', None, ), # 30 + None, # 31 + None, # 32 + None, # 33 + None, # 34 + None, # 35 + None, # 36 + None, # 37 + None, # 38 + None, # 39 + (40, TType.I32, 'identityProvider', None, None, ), # 40 + (41, TType.STRING, 'identityIdentifier', 'UTF8', None, ), # 41 + (42, TType.MAP, 'snsAccounts', (TType.I32, None, TType.STRING, 'UTF8', False), None, ), # 42 + (43, TType.BOOL, 'phoneRegistration', None, None, ), # 43 + (44, TType.I32, 'emailConfirmationStatus', None, None, ), # 44 + None, # 45 + None, # 46 + None, # 47 + None, # 48 + None, # 49 + (50, TType.STRING, 'preferenceLocale', 'UTF8', None, ), # 50 + None, # 51 + None, # 52 + None, # 53 + None, # 54 + None, # 55 + None, # 56 + None, # 57 + None, # 58 + None, # 59 + (60, TType.MAP, 'customModes', (TType.I32, None, TType.STRING, 'UTF8', False), None, ), # 60 + (61, TType.BOOL, 'e2eeEnable', None, None, ), # 61 + (62, TType.BOOL, 'hitokotoBackupRequested', None, None, ), # 62 + (63, TType.BOOL, 'privacyProfileMusicPostToMyhome', None, None, ), # 63 + None, # 64 + (65, TType.BOOL, 'privacyAllowNearby', None, None, ), # 65 + (66, TType.I64, 'agreementNearbyTime', None, None, ), # 66 + (67, TType.I64, 'agreementSquareTime', None, None, ), # 67 + (68, TType.BOOL, 'notificationMention', None, None, ), # 68 + (69, TType.I64, 'botUseAgreementAcceptedAt', None, None, ), # 69 +) +all_structs.append(SimpleChannelClient) +SimpleChannelClient.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'applicationType', 'UTF8', None, ), # 1 + (2, TType.STRING, 'applicationVersion', 'UTF8', None, ), # 2 + (3, TType.STRING, 'locale', 'UTF8', None, ), # 3 +) +all_structs.append(SimpleChannelContact) +SimpleChannelContact.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'mid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'displayName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'pictureStatus', 'UTF8', None, ), # 3 + (4, TType.STRING, 'picturePath', 'UTF8', None, ), # 4 + (5, TType.STRING, 'statusMessage', 'UTF8', None, ), # 5 +) +all_structs.append(SnsFriend) +SnsFriend.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'snsUserId', 'UTF8', None, ), # 1 + (2, TType.STRING, 'snsUserName', 'UTF8', None, ), # 2 + (3, TType.I32, 'snsIdType', None, None, ), # 3 +) +all_structs.append(SnsFriendContactRegistration) +SnsFriendContactRegistration.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'contact', [Contact, None], None, ), # 1 + (2, TType.I32, 'snsIdType', None, None, ), # 2 + (3, TType.STRING, 'snsUserId', 'UTF8', None, ), # 3 +) +all_structs.append(SnsFriendModification) +SnsFriendModification.thrift_spec = ( + None, # 0 + (1, TType.I32, 'type', None, None, ), # 1 + (2, TType.STRUCT, 'snsFriend', [SnsFriend, None], None, ), # 2 +) +all_structs.append(SnsFriends) +SnsFriends.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'snsFriends', (TType.STRUCT, [SnsFriend, None], False), None, ), # 1 + (2, TType.BOOL, 'hasMore', None, None, ), # 2 +) +all_structs.append(SnsIdUserStatus) +SnsIdUserStatus.thrift_spec = ( + None, # 0 + (1, TType.BOOL, 'userExisting', None, None, ), # 1 + (2, TType.BOOL, 'phoneNumberRegistered', None, None, ), # 2 + (3, TType.BOOL, 'sameDevice', None, None, ), # 3 +) +all_structs.append(SnsProfile) +SnsProfile.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'snsUserId', 'UTF8', None, ), # 1 + (2, TType.STRING, 'snsUserName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'email', 'UTF8', None, ), # 3 + (4, TType.STRING, 'thumbnailUrl', 'UTF8', None, ), # 4 +) +all_structs.append(SystemConfiguration) +SystemConfiguration.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'endpoint', 'UTF8', None, ), # 1 + (2, TType.STRING, 'endpointSsl', 'UTF8', None, ), # 2 + (3, TType.STRING, 'updateUrl', 'UTF8', None, ), # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + None, # 10 + (11, TType.STRING, 'c2dmAccount', 'UTF8', None, ), # 11 + (12, TType.STRING, 'nniServer', 'UTF8', None, ), # 12 +) +all_structs.append(Ticket) +Ticket.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'id', 'UTF8', None, ), # 1 + None, # 2 + None, # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.I64, 'expirationTime', None, None, ), # 10 + None, # 11 + None, # 12 + None, # 13 + None, # 14 + None, # 15 + None, # 16 + None, # 17 + None, # 18 + None, # 19 + None, # 20 + (21, TType.I32, 'maxUseCount', None, None, ), # 21 +) +all_structs.append(TMessageBox) +TMessageBox.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'id', 'UTF8', None, ), # 1 + (2, TType.STRING, 'channelId', 'UTF8', None, ), # 2 + None, # 3 + None, # 4 + (5, TType.I64, 'lastSeq', None, None, ), # 5 + (6, TType.I64, 'unreadCount', None, None, ), # 6 + (7, TType.I64, 'lastModifiedTime', None, None, ), # 7 + (8, TType.I32, 'status', None, None, ), # 8 + (9, TType.I32, 'midType', None, None, ), # 9 + (10, TType.LIST, 'lastMessages', (TType.STRUCT, [Message, None], False), None, ), # 10 +) +all_structs.append(TMessageBoxWrapUp) +TMessageBoxWrapUp.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'messageBox', [TMessageBox, None], None, ), # 1 + (2, TType.STRING, 'name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'contacts', (TType.STRUCT, [Contact, None], False), None, ), # 3 + (4, TType.STRING, 'pictureRevision', 'UTF8', None, ), # 4 +) +all_structs.append(TMessageBoxWrapUpResponse) +TMessageBoxWrapUpResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'messageBoxWrapUpList', (TType.STRUCT, [TMessageBoxWrapUp, None], False), None, ), # 1 + (2, TType.I32, 'totalSize', None, None, ), # 2 +) +all_structs.append(TMessageReadRangeEntry) +TMessageReadRangeEntry.thrift_spec = ( + None, # 0 + (1, TType.I64, 'startMessageId', None, None, ), # 1 + (2, TType.I64, 'endMessageId', None, None, ), # 2 + (3, TType.I64, 'startTime', None, None, ), # 3 + (4, TType.I64, 'endTime', None, None, ), # 4 +) +all_structs.append(TMessageReadRange) +TMessageReadRange.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'chatId', 'UTF8', None, ), # 1 + (2, TType.MAP, 'ranges', (TType.STRING, 'UTF8', TType.LIST, (TType.STRUCT, [TMessageReadRangeEntry, None], False), False), None, ), # 2 +) +all_structs.append(ChatRoomAnnouncementContents) +ChatRoomAnnouncementContents.thrift_spec = ( + None, # 0 + (1, TType.I32, 'displayFields', None, None, ), # 1 + (2, TType.STRING, 'text', 'UTF8', None, ), # 2 + (3, TType.STRING, 'link', 'UTF8', None, ), # 3 + (4, TType.STRING, 'thumbnail', 'UTF8', None, ), # 4 +) +all_structs.append(ChatRoomAnnouncement) +ChatRoomAnnouncement.thrift_spec = ( + None, # 0 + (1, TType.I64, 'announcementSeq', None, None, ), # 1 + (2, TType.I32, 'type', None, None, ), # 2 + (3, TType.STRUCT, 'contents', [ChatRoomAnnouncementContents, None], None, ), # 3 + (4, TType.STRING, 'creatorMid', 'UTF8', None, ), # 4 + (5, TType.I64, 'createdTime', None, None, ), # 5 +) +all_structs.append(ErrorExtraInfo) +ErrorExtraInfo.thrift_spec = ( + None, # 0 + (1, TType.I32, 'preconditionFailedExtraInfo', None, None, ), # 1 +) +all_structs.append(SyncRelations) +SyncRelations.thrift_spec = ( + None, # 0 + (1, TType.BOOL, 'syncAll', None, None, ), # 1 + (2, TType.LIST, 'syncParamContact', (TType.STRUCT, [SyncParamContact, None], False), None, ), # 2 + (3, TType.LIST, 'syncParamMid', (TType.STRUCT, [SyncParamMid, None], False), None, ), # 3 +) +all_structs.append(SyncScope) +SyncScope.thrift_spec = ( + None, # 0 + (1, TType.BOOL, 'syncProfile', None, None, ), # 1 + (2, TType.BOOL, 'syncSettings', None, None, ), # 2 + (3, TType.BOOL, 'syncSticker', None, None, ), # 3 + (4, TType.BOOL, 'syncThemeShop', None, None, ), # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.STRUCT, 'contact', [SyncRelations, None], None, ), # 10 + (11, TType.STRUCT, 'group', [SyncRelations, None], None, ), # 11 + (12, TType.STRUCT, 'room', [SyncRelations, None], None, ), # 12 + (13, TType.STRUCT, 'chat', [SyncRelations, None], None, ), # 13 +) +all_structs.append(JoinSquareResponse) +JoinSquareResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'square', [Square, None], None, ), # 1 + (2, TType.STRUCT, 'squareAuthority', [SquareAuthority, None], None, ), # 2 + (3, TType.STRUCT, 'squareStatus', [SquareStatus, None], None, ), # 3 + (4, TType.STRUCT, 'squareMember', [SquareMember, None], None, ), # 4 + (5, TType.STRUCT, 'squareFeatureSet', [SquareFeatureSet, None], None, ), # 5 + (6, TType.STRUCT, 'noteStatus', [NoteStatus, None], None, ), # 6 +) +all_structs.append(JoinSquareRequest) +JoinSquareRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'member', [SquareMember, None], None, ), # 3 +) +all_structs.append(JoinSquareChatResponse) +JoinSquareChatResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'squareChat', [SquareChat, None], None, ), # 1 + (2, TType.STRUCT, 'squareChatStatus', [SquareChatStatus, None], None, ), # 2 + (3, TType.STRUCT, 'squareChatMember', [SquareChatMember, None], None, ), # 3 +) +all_structs.append(JoinSquareChatRequest) +JoinSquareChatRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 +) +all_structs.append(SendMessageResponse) +SendMessageResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'createdSquareMessage', [SquareMessage, None], None, ), # 1 +) +all_structs.append(SendMessageRequest) +SendMessageRequest.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'squareMessage', [SquareMessage, None], None, ), # 3 +) +all_structs.append(MarkAsReadRequest) +MarkAsReadRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 2 + None, # 3 + (4, TType.STRING, 'messageId', 'UTF8', None, ), # 4 +) +all_structs.append(MarkAsReadResponse) +MarkAsReadResponse.thrift_spec = ( +) +all_structs.append(SubscriptionState) +SubscriptionState.thrift_spec = ( + None, # 0 + (1, TType.I64, 'subscriptionId', None, None, ), # 1 + (2, TType.I64, 'ttlMillis', None, None, ), # 2 +) +all_structs.append(ApproveSquareMembersResponse) +ApproveSquareMembersResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'approvedMembers', (TType.STRUCT, [SquareMember, None], False), None, ), # 1 + (2, TType.STRUCT, 'status', [SquareStatus, None], None, ), # 2 +) +all_structs.append(ApproveSquareMembersRequest) +ApproveSquareMembersRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 + (3, TType.LIST, 'requestedMemberMids', (TType.STRING, 'UTF8', False), None, ), # 3 +) +all_structs.append(CreateSquareChatResponse) +CreateSquareChatResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'squareChat', [SquareChat, None], None, ), # 1 + (2, TType.STRUCT, 'squareChatStatus', [SquareChatStatus, None], None, ), # 2 + (3, TType.STRUCT, 'squareChatMember', [SquareChatMember, None], None, ), # 3 +) +all_structs.append(CreateSquareChatRequest) +CreateSquareChatRequest.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRUCT, 'squareChat', [SquareChat, None], None, ), # 2 + (3, TType.LIST, 'squareMemberMids', (TType.STRING, 'UTF8', False), None, ), # 3 +) +all_structs.append(CreateSquareResponse) +CreateSquareResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'square', [Square, None], None, ), # 1 + (2, TType.STRUCT, 'creator', [SquareMember, None], None, ), # 2 + (3, TType.STRUCT, 'authority', [SquareAuthority, None], None, ), # 3 + (4, TType.STRUCT, 'status', [SquareStatus, None], None, ), # 4 +) +all_structs.append(CreateSquareRequest) +CreateSquareRequest.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRUCT, 'square', [Square, None], None, ), # 2 + (3, TType.STRUCT, 'creator', [SquareMember, None], None, ), # 3 +) +all_structs.append(DeleteSquareResponse) +DeleteSquareResponse.thrift_spec = ( +) +all_structs.append(DeleteSquareRequest) +DeleteSquareRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 + (3, TType.I64, 'revision', None, None, ), # 3 +) +all_structs.append(DestroyMessageResponse) +DestroyMessageResponse.thrift_spec = ( +) +all_structs.append(DestroyMessageRequest) +DestroyMessageRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 2 + None, # 3 + (4, TType.STRING, 'messageId', 'UTF8', None, ), # 4 +) +all_structs.append(GetSquareChatMembersRequest) +GetSquareChatMembersRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'continuationToken', 'UTF8', None, ), # 2 + (3, TType.I32, 'limit', None, None, ), # 3 +) +all_structs.append(GetSquareChatMembersResponse) +GetSquareChatMembersResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'squareChatMembers', [SquareMember, None], None, ), # 1 + (2, TType.STRING, 'continuationToken', 'UTF8', None, ), # 2 +) +all_structs.append(GetSquareChatStatusRequest) +GetSquareChatStatusRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 2 +) +all_structs.append(GetSquareChatStatusResponse) +GetSquareChatStatusResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'chatStatus', [SquareChatStatus, None], None, ), # 1 +) +all_structs.append(GetSquareChatRequest) +GetSquareChatRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 +) +all_structs.append(GetSquareChatResponse) +GetSquareChatResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'squareChat', [SquareChat, None], None, ), # 1 + (2, TType.STRUCT, 'squareChatMember', [SquareChatMember, None], None, ), # 2 + (3, TType.STRUCT, 'squareChatStatus', [SquareChatStatus, None], None, ), # 3 +) +all_structs.append(GetSquareAuthorityRequest) +GetSquareAuthorityRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 +) +all_structs.append(GetSquareAuthorityResponse) +GetSquareAuthorityResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'authority', [SquareAuthority, None], None, ), # 1 +) +all_structs.append(GetJoinedSquaresRequest) +GetJoinedSquaresRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'continuationToken', 'UTF8', None, ), # 2 + (3, TType.I32, 'limit', None, None, ), # 3 +) +all_structs.append(GetJoinedSquaresResponse) +GetJoinedSquaresResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'squares', (TType.STRUCT, [Square, None], False), None, ), # 1 + (2, TType.MAP, 'members', (TType.STRING, 'UTF8', TType.STRUCT, [SquareMember, None], False), None, ), # 2 + (3, TType.MAP, 'authorities', (TType.STRING, 'UTF8', TType.STRUCT, [SquareAuthority, None], False), None, ), # 3 + (4, TType.MAP, 'statuses', (TType.STRING, 'UTF8', TType.STRUCT, [SquareStatus, None], False), None, ), # 4 + (5, TType.STRING, 'continuationToken', 'UTF8', None, ), # 5 + (6, TType.MAP, 'noteStatuses', (TType.STRING, 'UTF8', TType.STRUCT, [NoteStatus, None], False), None, ), # 6 +) +all_structs.append(GetJoinableSquareChatsRequest) +GetJoinableSquareChatsRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + None, # 2 + None, # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.STRING, 'continuationToken', 'UTF8', None, ), # 10 + (11, TType.I32, 'limit', None, None, ), # 11 +) +all_structs.append(GetJoinableSquareChatsResponse) +GetJoinableSquareChatsResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'squareChats', (TType.STRUCT, [SquareChat, None], False), None, ), # 1 + (2, TType.STRING, 'continuationToken', 'UTF8', None, ), # 2 + (3, TType.I32, 'totalSquareChatCount', None, None, ), # 3 + (4, TType.MAP, 'squareChatStatuses', (TType.STRING, 'UTF8', TType.STRUCT, [SquareChatStatus, None], False), None, ), # 4 +) +all_structs.append(GetInvitationTicketUrlRequest) +GetInvitationTicketUrlRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 +) +all_structs.append(GetInvitationTicketUrlResponse) +GetInvitationTicketUrlResponse.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'invitationURL', 'UTF8', None, ), # 1 +) +all_structs.append(LeaveSquareRequest) +LeaveSquareRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 +) +all_structs.append(LeaveSquareResponse) +LeaveSquareResponse.thrift_spec = ( +) +all_structs.append(LeaveSquareChatRequest) +LeaveSquareChatRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 2 + (3, TType.BOOL, 'sayGoodbye', None, None, ), # 3 + (4, TType.I64, 'squareChatMemberRevision', None, None, ), # 4 +) +all_structs.append(LeaveSquareChatResponse) +LeaveSquareChatResponse.thrift_spec = ( +) +all_structs.append(SquareMemberSearchOption) +SquareMemberSearchOption.thrift_spec = ( + None, # 0 + (1, TType.I32, 'membershipState', None, None, ), # 1 + (2, TType.SET, 'memberRoles', (TType.I32, None, False), None, ), # 2 + (3, TType.STRING, 'displayName', 'UTF8', None, ), # 3 + (4, TType.I32, 'ableToReceiveMessage', None, None, ), # 4 + (5, TType.I32, 'ableToReceiveFriendRequest', None, None, ), # 5 + (6, TType.STRING, 'chatMidToExcludeMembers', 'UTF8', None, ), # 6 + (7, TType.BOOL, 'includingMe', None, None, ), # 7 +) +all_structs.append(SearchSquareMembersRequest) +SearchSquareMembersRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'searchOption', [SquareMemberSearchOption, None], None, ), # 3 + (4, TType.STRING, 'continuationToken', 'UTF8', None, ), # 4 + (5, TType.I32, 'limit', None, None, ), # 5 +) +all_structs.append(SearchSquareMembersResponse) +SearchSquareMembersResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'members', (TType.STRUCT, [SquareMember, None], False), None, ), # 1 + (2, TType.I64, 'revision', None, None, ), # 2 + (3, TType.STRING, 'continuationToken', 'UTF8', None, ), # 3 + (4, TType.I32, 'totalCount', None, None, ), # 4 +) +all_structs.append(FindSquareByInvitationTicketRequest) +FindSquareByInvitationTicketRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'invitationTicket', 'UTF8', None, ), # 2 +) +all_structs.append(FindSquareByInvitationTicketResponse) +FindSquareByInvitationTicketResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'square', [Square, None], None, ), # 1 + (2, TType.STRUCT, 'myMembership', [SquareMember, None], None, ), # 2 + (3, TType.STRUCT, 'squareAuthority', [SquareAuthority, None], None, ), # 3 + (4, TType.STRUCT, 'squareStatus', [SquareStatus, None], None, ), # 4 +) +all_structs.append(SquareEventReceiveMessage) +SquareEventReceiveMessage.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'squareMessage', [SquareMessage, None], None, ), # 2 +) +all_structs.append(SquareEventSendMessage) +SquareEventSendMessage.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'squareMessage', [SquareMessage, None], None, ), # 2 + (3, TType.I32, 'reqSeq', None, None, ), # 3 +) +all_structs.append(SquareEventNotifiedJoinSquareChat) +SquareEventNotifiedJoinSquareChat.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'joinedMember', [SquareMember, None], None, ), # 2 +) +all_structs.append(SquareEventNotifiedInviteIntoSquareChat) +SquareEventNotifiedInviteIntoSquareChat.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.LIST, 'invitees', (TType.STRUCT, [SquareMember, None], False), None, ), # 2 + (3, TType.STRUCT, 'invitor', [SquareMember, None], None, ), # 3 + (4, TType.STRUCT, 'invitorRelation', [SquareMemberRelation, None], None, ), # 4 +) +all_structs.append(SquareEventNotifiedLeaveSquareChat) +SquareEventNotifiedLeaveSquareChat.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'squareMemberMid', 'UTF8', None, ), # 2 + (3, TType.BOOL, 'sayGoodbye', None, None, ), # 3 + (4, TType.STRUCT, 'squareMember', [SquareMember, None], None, ), # 4 +) +all_structs.append(SquareEventNotifiedDestroyMessage) +SquareEventNotifiedDestroyMessage.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + None, # 2 + (3, TType.STRING, 'messageId', 'UTF8', None, ), # 3 +) +all_structs.append(SquareEventNotifiedMarkAsRead) +SquareEventNotifiedMarkAsRead.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'sMemberMid', 'UTF8', None, ), # 2 + None, # 3 + (4, TType.STRING, 'messageId', 'UTF8', None, ), # 4 +) +all_structs.append(SquareEventNotifiedUpdateSquareMemberProfile) +SquareEventNotifiedUpdateSquareMemberProfile.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'squareMember', [SquareMember, None], None, ), # 2 +) +all_structs.append(SquareEventNotifiedKickoutFromSquare) +SquareEventNotifiedKickoutFromSquare.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.LIST, 'kickees', (TType.STRUCT, [SquareMember, None], False), None, ), # 2 +) +all_structs.append(SquareEventNotifiedShutdownSquare) +SquareEventNotifiedShutdownSquare.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'square', [Square, None], None, ), # 2 +) +all_structs.append(SquareEventNotifiedDeleteSquareChat) +SquareEventNotifiedDeleteSquareChat.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'squareChat', [SquareChat, None], None, ), # 1 +) +all_structs.append(SquareEventNotifiedUpdateSquareChatProfileName) +SquareEventNotifiedUpdateSquareChatProfileName.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'editor', [SquareMember, None], None, ), # 2 + (3, TType.STRING, 'updatedChatName', 'UTF8', None, ), # 3 +) +all_structs.append(SquareEventNotifiedUpdateSquareChatProfileImage) +SquareEventNotifiedUpdateSquareChatProfileImage.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'editor', [SquareMember, None], None, ), # 2 +) +all_structs.append(SquareEventNotifiedUpdateSquareChatStatus) +SquareEventNotifiedUpdateSquareChatStatus.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'statusWithoutMessage', [SquareChatStatusWithoutMessage, None], None, ), # 2 +) +all_structs.append(SquareEventNotifiedUpdateSquareStatus) +SquareEventNotifiedUpdateSquareStatus.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'squareStatus', [SquareStatus, None], None, ), # 2 +) +all_structs.append(SquareEventNotifiedCreateSquareMember) +SquareEventNotifiedCreateSquareMember.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'square', [Square, None], None, ), # 1 + (2, TType.STRUCT, 'squareAuthority', [SquareAuthority, None], None, ), # 2 + (3, TType.STRUCT, 'squareStatus', [SquareStatus, None], None, ), # 3 + (4, TType.STRUCT, 'squareMember', [SquareMember, None], None, ), # 4 + (5, TType.STRUCT, 'squareFeatureSet', [SquareFeatureSet, None], None, ), # 5 +) +all_structs.append(SquareEventNotifiedCreateSquareChatMember) +SquareEventNotifiedCreateSquareChatMember.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'squareMemberMid', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'squareChatMember', [SquareChatMember, None], None, ), # 3 +) +all_structs.append(SquareEventNotifiedUpdateSquareMemberRelation) +SquareEventNotifiedUpdateSquareMemberRelation.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'myMemberMid', 'UTF8', None, ), # 2 + (3, TType.STRING, 'targetSquareMemberMid', 'UTF8', None, ), # 3 + (4, TType.STRUCT, 'squareMemberRelation', [SquareMemberRelation, None], None, ), # 4 +) +all_structs.append(SquareEventNotifiedUpdateSquare) +SquareEventNotifiedUpdateSquare.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'square', [Square, None], None, ), # 2 +) +all_structs.append(SquareEventNotifiedUpdateSquareMember) +SquareEventNotifiedUpdateSquareMember.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'squareMemberMid', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'squareMember', [SquareMember, None], None, ), # 3 +) +all_structs.append(SquareEventNotifiedUpdateSquareChat) +SquareEventNotifiedUpdateSquareChat.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'squareChat', [SquareChat, None], None, ), # 3 +) +all_structs.append(SquareEventNotificationJoinRequest) +SquareEventNotificationJoinRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'squareName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'requestMemberName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'profileImageObsHash', 'UTF8', None, ), # 4 +) +all_structs.append(SquareEventNotificationMemberUpdate) +SquareEventNotificationMemberUpdate.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'squareName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'profileImageObsHash', 'UTF8', None, ), # 3 +) +all_structs.append(SquareEventNotificationSquareDelete) +SquareEventNotificationSquareDelete.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'squareName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'profileImageObsHash', 'UTF8', None, ), # 3 +) +all_structs.append(SquareEventNotificationSquareChatDelete) +SquareEventNotificationSquareChatDelete.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'squareChatName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'profileImageObsHash', 'UTF8', None, ), # 3 +) +all_structs.append(SquareEventNotificationMessage) +SquareEventNotificationMessage.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'squareMessage', [SquareMessage, None], None, ), # 2 + (3, TType.STRING, 'senderDisplayName', 'UTF8', None, ), # 3 + (4, TType.I32, 'unreadCount', None, None, ), # 4 + (5, TType.BOOL, 'requiredToFetchChatEvents', None, None, ), # 5 +) +all_structs.append(SquareEventNotifiedUpdateSquareChatMember) +SquareEventNotifiedUpdateSquareChatMember.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'squareMemberMid', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'squareChatMember', [SquareChatMember, None], None, ), # 3 +) +all_structs.append(SquareEventNotifiedUpdateSquareAuthority) +SquareEventNotifiedUpdateSquareAuthority.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'squareAuthority', [SquareAuthority, None], None, ), # 2 +) +all_structs.append(SquareEventNotifiedUpdateSquareFeatureSet) +SquareEventNotifiedUpdateSquareFeatureSet.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'squareFeatureSet', [SquareFeatureSet, None], None, ), # 1 +) +all_structs.append(SquareEventPayload) +SquareEventPayload.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'receiveMessage', [SquareEventReceiveMessage, None], None, ), # 1 + (2, TType.STRUCT, 'sendMessage', [SquareEventSendMessage, None], None, ), # 2 + (3, TType.STRUCT, 'notifiedJoinSquareChat', [SquareEventNotifiedJoinSquareChat, None], None, ), # 3 + (4, TType.STRUCT, 'notifiedInviteIntoSquareChat', [SquareEventNotifiedInviteIntoSquareChat, None], None, ), # 4 + (5, TType.STRUCT, 'notifiedLeaveSquareChat', [SquareEventNotifiedLeaveSquareChat, None], None, ), # 5 + (6, TType.STRUCT, 'notifiedDestroyMessage', [SquareEventNotifiedDestroyMessage, None], None, ), # 6 + (7, TType.STRUCT, 'notifiedMarkAsRead', [SquareEventNotifiedMarkAsRead, None], None, ), # 7 + (8, TType.STRUCT, 'notifiedUpdateSquareMemberProfile', [SquareEventNotifiedUpdateSquareMemberProfile, None], None, ), # 8 + (9, TType.STRUCT, 'notifiedUpdateSquare', [SquareEventNotifiedUpdateSquare, None], None, ), # 9 + (10, TType.STRUCT, 'notifiedUpdateSquareMember', [SquareEventNotifiedUpdateSquareMember, None], None, ), # 10 + (11, TType.STRUCT, 'notifiedUpdateSquareChat', [SquareEventNotifiedUpdateSquareChat, None], None, ), # 11 + (12, TType.STRUCT, 'notifiedUpdateSquareChatMember', [SquareEventNotifiedUpdateSquareChatMember, None], None, ), # 12 + (13, TType.STRUCT, 'notifiedUpdateSquareAuthority', [SquareEventNotifiedUpdateSquareAuthority, None], None, ), # 13 + (14, TType.STRUCT, 'notifiedUpdateSquareStatus', [SquareEventNotifiedUpdateSquareStatus, None], None, ), # 14 + (15, TType.STRUCT, 'notifiedUpdateSquareChatStatus', [SquareEventNotifiedUpdateSquareChatStatus, None], None, ), # 15 + (16, TType.STRUCT, 'notifiedCreateSquareMember', [SquareEventNotifiedCreateSquareMember, None], None, ), # 16 + (17, TType.STRUCT, 'notifiedCreateSquareChatMember', [SquareEventNotifiedCreateSquareChatMember, None], None, ), # 17 + (18, TType.STRUCT, 'notifiedUpdateSquareMemberRelation', [SquareEventNotifiedUpdateSquareMemberRelation, None], None, ), # 18 + (19, TType.STRUCT, 'notifiedShutdownSquare', [SquareEventNotifiedShutdownSquare, None], None, ), # 19 + (20, TType.STRUCT, 'notifiedKickoutFromSquare', [SquareEventNotifiedKickoutFromSquare, None], None, ), # 20 + (21, TType.STRUCT, 'notifiedDeleteSquareChat', [SquareEventNotifiedDeleteSquareChat, None], None, ), # 21 + (22, TType.STRUCT, 'notificationJoinRequest', [SquareEventNotificationJoinRequest, None], None, ), # 22 + (23, TType.STRUCT, 'notificationJoined', [SquareEventNotificationMemberUpdate, None], None, ), # 23 + (24, TType.STRUCT, 'notificationPromoteCoadmin', [SquareEventNotificationMemberUpdate, None], None, ), # 24 + (25, TType.STRUCT, 'notificationPromoteAdmin', [SquareEventNotificationMemberUpdate, None], None, ), # 25 + (26, TType.STRUCT, 'notificationDemoteMember', [SquareEventNotificationMemberUpdate, None], None, ), # 26 + (27, TType.STRUCT, 'notificationKickedOut', [SquareEventNotificationMemberUpdate, None], None, ), # 27 + (28, TType.STRUCT, 'notificationSquareDelete', [SquareEventNotificationSquareDelete, None], None, ), # 28 + (29, TType.STRUCT, 'notificationSquareChatDelete', [SquareEventNotificationSquareChatDelete, None], None, ), # 29 + (30, TType.STRUCT, 'notificationMessage', [SquareEventNotificationMessage, None], None, ), # 30 + (31, TType.STRUCT, 'notifiedUpdateSquareChatProfileName', [SquareEventNotifiedUpdateSquareChatProfileName, None], None, ), # 31 + (32, TType.STRUCT, 'notifiedUpdateSquareChatProfileImage', [SquareEventNotifiedUpdateSquareChatProfileImage, None], None, ), # 32 + (33, TType.STRUCT, 'notifiedUpdateSquareFeatureSet', [SquareEventNotifiedUpdateSquareFeatureSet, None], None, ), # 33 +) +all_structs.append(SquareEvent) +SquareEvent.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I64, 'createdTime', None, None, ), # 2 + (3, TType.I32, 'type', None, None, ), # 3 + (4, TType.STRUCT, 'payload', [SquareEventPayload, None], None, ), # 4 + (5, TType.STRING, 'syncToken', 'UTF8', None, ), # 5 + (6, TType.I32, 'eventStatus', None, None, ), # 6 +) +all_structs.append(FetchMyEventsRequest) +FetchMyEventsRequest.thrift_spec = ( + None, # 0 + (1, TType.I64, 'subscriptionId', None, None, ), # 1 + (2, TType.STRING, 'syncToken', 'UTF8', None, ), # 2 + (3, TType.I32, 'limit', None, None, ), # 3 + (4, TType.STRING, 'continuationToken', 'UTF8', None, ), # 4 +) +all_structs.append(FetchMyEventsResponse) +FetchMyEventsResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'subscription', [SubscriptionState, None], None, ), # 1 + (2, TType.LIST, 'events', (TType.STRUCT, [SquareEvent, None], False), None, ), # 2 + (3, TType.STRING, 'syncToken', 'UTF8', None, ), # 3 + (4, TType.STRING, 'continuationToken', 'UTF8', None, ), # 4 +) +all_structs.append(FetchSquareChatEventsRequest) +FetchSquareChatEventsRequest.thrift_spec = ( + None, # 0 + (1, TType.I64, 'subscriptionId', None, None, ), # 1 + (2, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 2 + (3, TType.STRING, 'syncToken', 'UTF8', None, ), # 3 + (4, TType.I32, 'limit', None, None, ), # 4 + (5, TType.I32, 'direction', None, None, ), # 5 +) +all_structs.append(FetchSquareChatEventsResponse) +FetchSquareChatEventsResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'subscription', [SubscriptionState, None], None, ), # 1 + (2, TType.LIST, 'events', (TType.STRUCT, [SquareEvent, None], False), None, ), # 2 + (3, TType.STRING, 'syncToken', 'UTF8', None, ), # 3 + (4, TType.STRING, 'continuationToken', 'UTF8', None, ), # 4 +) +all_structs.append(InviteToSquareRequest) +InviteToSquareRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 + (3, TType.LIST, 'invitees', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 4 +) +all_structs.append(InviteToSquareResponse) +InviteToSquareResponse.thrift_spec = ( +) +all_structs.append(InviteToSquareChatRequest) +InviteToSquareChatRequest.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'inviteeMids', (TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 2 +) +all_structs.append(InviteToSquareChatResponse) +InviteToSquareChatResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'inviteeMids', (TType.STRING, 'UTF8', False), None, ), # 1 +) +all_structs.append(GetSquareMemberRequest) +GetSquareMemberRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMemberMid', 'UTF8', None, ), # 1 +) +all_structs.append(GetSquareMemberResponse) +GetSquareMemberResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'squareMember', [SquareMember, None], None, ), # 1 + (2, TType.STRUCT, 'relation', [SquareMemberRelation, None], None, ), # 2 + (3, TType.STRING, 'oneOnOneChatMid', 'UTF8', None, ), # 3 +) +all_structs.append(GetSquareMembersRequest) +GetSquareMembersRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.SET, 'mids', (TType.STRING, 'UTF8', False), None, ), # 2 +) +all_structs.append(GetSquareMembersResponse) +GetSquareMembersResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'members', [SquareMember, None], None, ), # 1 +) +all_structs.append(GetSquareMemberRelationsRequest) +GetSquareMemberRelationsRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.I32, 'state', None, None, ), # 2 + (3, TType.STRING, 'continuationToken', 'UTF8', None, ), # 3 + (4, TType.I32, 'limit', None, None, ), # 4 +) +all_structs.append(GetSquareMemberRelationsResponse) +GetSquareMemberRelationsResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'squareMembers', (TType.STRUCT, [SquareMember, None], False), None, ), # 1 + (2, TType.MAP, 'relations', (TType.STRING, 'UTF8', TType.STRUCT, [SquareMemberRelation, None], False), None, ), # 2 + (3, TType.STRING, 'continuationToken', 'UTF8', None, ), # 3 +) +all_structs.append(GetSquareMemberRelationRequest) +GetSquareMemberRelationRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 + (3, TType.STRING, 'targetSquareMemberMid', 'UTF8', None, ), # 3 +) +all_structs.append(GetSquareMemberRelationResponse) +GetSquareMemberRelationResponse.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'targetSquareMemberMid', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'relation', [SquareMemberRelation, None], None, ), # 3 +) +all_structs.append(Category) +Category.thrift_spec = ( + None, # 0 + (1, TType.I32, 'id', None, None, ), # 1 + (2, TType.STRING, 'name', 'UTF8', None, ), # 2 +) +all_structs.append(GetSquareCategoriesRequest) +GetSquareCategoriesRequest.thrift_spec = ( +) +all_structs.append(GetSquareCategoriesResponse) +GetSquareCategoriesResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'categoryList', (TType.STRUCT, [Category, None], False), None, ), # 1 +) +all_structs.append(UpdateSquareRequest) +UpdateSquareRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.SET, 'updatedAttrs', (TType.I32, None, False), None, ), # 2 + (3, TType.STRUCT, 'square', [Square, None], None, ), # 3 +) +all_structs.append(UpdateSquareResponse) +UpdateSquareResponse.thrift_spec = ( + None, # 0 + (1, TType.SET, 'updatedAttrs', (TType.I32, None, False), None, ), # 1 + (2, TType.STRUCT, 'square', [Square, None], None, ), # 2 +) +all_structs.append(SearchSquaresRequest) +SearchSquaresRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'query', 'UTF8', None, ), # 2 + (3, TType.STRING, 'continuationToken', 'UTF8', None, ), # 3 + (4, TType.I32, 'limit', None, None, ), # 4 +) +all_structs.append(SearchSquaresResponse) +SearchSquaresResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'squares', (TType.STRUCT, [Square, None], False), None, ), # 1 + (2, TType.MAP, 'squareStatuses', (TType.STRING, 'UTF8', TType.STRUCT, [SquareStatus, None], False), None, ), # 2 + (3, TType.MAP, 'myMemberships', (TType.STRING, 'UTF8', TType.STRUCT, [SquareMember, None], False), None, ), # 3 + (4, TType.STRING, 'continuationToken', 'UTF8', None, ), # 4 + (5, TType.MAP, 'noteStatuses', (TType.STRING, 'UTF8', TType.STRUCT, [NoteStatus, None], False), None, ), # 5 +) +all_structs.append(GetSquareFeatureSetRequest) +GetSquareFeatureSetRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 +) +all_structs.append(GetSquareFeatureSetResponse) +GetSquareFeatureSetResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'squareFeatureSet', [SquareFeatureSet, None], None, ), # 1 +) +all_structs.append(UpdateSquareFeatureSetRequest) +UpdateSquareFeatureSetRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.SET, 'updateAttributes', (TType.I32, None, False), None, ), # 2 + (3, TType.STRUCT, 'squareFeatureSet', [SquareFeatureSet, None], None, ), # 3 +) +all_structs.append(UpdateSquareFeatureSetResponse) +UpdateSquareFeatureSetResponse.thrift_spec = ( + None, # 0 + (1, TType.SET, 'updateAttributes', (TType.I32, None, False), None, ), # 1 + (2, TType.STRUCT, 'squareFeatureSet', [SquareFeatureSet, None], None, ), # 2 +) +all_structs.append(UpdateSquareMemberRequest) +UpdateSquareMemberRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.SET, 'updatedAttrs', (TType.I32, None, False), None, ), # 2 + (3, TType.SET, 'updatedPreferenceAttrs', (TType.I32, None, False), None, ), # 3 + (4, TType.STRUCT, 'squareMember', [SquareMember, None], None, ), # 4 +) +all_structs.append(UpdateSquareMemberResponse) +UpdateSquareMemberResponse.thrift_spec = ( + None, # 0 + (1, TType.SET, 'updatedAttrs', (TType.I32, None, False), None, ), # 1 + (2, TType.STRUCT, 'squareMember', [SquareMember, None], None, ), # 2 + (3, TType.SET, 'updatedPreferenceAttrs', (TType.I32, None, False), None, ), # 3 +) +all_structs.append(UpdateSquareMembersRequest) +UpdateSquareMembersRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.SET, 'updatedAttrs', (TType.I32, None, False), None, ), # 2 + (3, TType.LIST, 'members', (TType.STRUCT, [SquareMember, None], False), None, ), # 3 +) +all_structs.append(UpdateSquareMembersResponse) +UpdateSquareMembersResponse.thrift_spec = ( + None, # 0 + (1, TType.SET, 'updatedAttrs', (TType.I32, None, False), None, ), # 1 + (2, TType.STRUCT, 'editor', [SquareMember, None], None, ), # 2 + (3, TType.MAP, 'members', (TType.STRING, 'UTF8', TType.STRUCT, [SquareMember, None], False), None, ), # 3 +) +all_structs.append(RejectSquareMembersRequest) +RejectSquareMembersRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 + (3, TType.LIST, 'requestedMemberMids', (TType.STRING, 'UTF8', False), None, ), # 3 +) +all_structs.append(RejectSquareMembersResponse) +RejectSquareMembersResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'rejectedMembers', (TType.STRUCT, [SquareMember, None], False), None, ), # 1 + (2, TType.STRUCT, 'status', [SquareStatus, None], None, ), # 2 +) +all_structs.append(RemoveSubscriptionsRequest) +RemoveSubscriptionsRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.LIST, 'unsubscriptions', (TType.I64, None, False), None, ), # 2 +) +all_structs.append(RemoveSubscriptionsResponse) +RemoveSubscriptionsResponse.thrift_spec = ( +) +all_structs.append(RefreshSubscriptionsRequest) +RefreshSubscriptionsRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.LIST, 'subscriptions', (TType.I64, None, False), None, ), # 2 +) +all_structs.append(RefreshSubscriptionsResponse) +RefreshSubscriptionsResponse.thrift_spec = ( + None, # 0 + (1, TType.I64, 'ttlMillis', None, None, ), # 1 + (2, TType.MAP, 'subscriptionStates', (TType.I64, None, TType.STRUCT, [SubscriptionState, None], False), None, ), # 2 +) +all_structs.append(UpdateSquareChatRequest) +UpdateSquareChatRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.SET, 'updatedAttrs', (TType.I32, None, False), None, ), # 2 + (3, TType.STRUCT, 'squareChat', [SquareChat, None], None, ), # 3 +) +all_structs.append(UpdateSquareChatResponse) +UpdateSquareChatResponse.thrift_spec = ( + None, # 0 + (1, TType.SET, 'updatedAttrs', (TType.I32, None, False), None, ), # 1 + (2, TType.STRUCT, 'squareChat', [SquareChat, None], None, ), # 2 +) +all_structs.append(DeleteSquareChatRequest) +DeleteSquareChatRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 2 + (3, TType.I64, 'revision', None, None, ), # 3 +) +all_structs.append(DeleteSquareChatResponse) +DeleteSquareChatResponse.thrift_spec = ( +) +all_structs.append(UpdateSquareChatMemberRequest) +UpdateSquareChatMemberRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.SET, 'updatedAttrs', (TType.I32, None, False), None, ), # 2 + (3, TType.STRUCT, 'chatMember', [SquareChatMember, None], None, ), # 3 +) +all_structs.append(UpdateSquareChatMemberResponse) +UpdateSquareChatMemberResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'updatedChatMember', [SquareChatMember, None], None, ), # 1 +) +all_structs.append(UpdateSquareAuthorityRequest) +UpdateSquareAuthorityRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.SET, 'updateAttributes', (TType.I32, None, False), None, ), # 2 + (3, TType.STRUCT, 'authority', [SquareAuthority, None], None, ), # 3 +) +all_structs.append(UpdateSquareAuthorityResponse) +UpdateSquareAuthorityResponse.thrift_spec = ( + None, # 0 + (1, TType.SET, 'updatdAttributes', (TType.I32, None, False), None, ), # 1 + (2, TType.STRUCT, 'authority', [SquareAuthority, None], None, ), # 2 +) +all_structs.append(UpdateSquareMemberRelationRequest) +UpdateSquareMemberRelationRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 + (3, TType.STRING, 'targetSquareMemberMid', 'UTF8', None, ), # 3 + (4, TType.SET, 'updatedAttrs', (TType.I32, None, False), None, ), # 4 + (5, TType.STRUCT, 'relation', [SquareMemberRelation, None], None, ), # 5 +) +all_structs.append(UpdateSquareMemberRelationResponse) +UpdateSquareMemberRelationResponse.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + (2, TType.STRING, 'targetSquareMemberMid', 'UTF8', None, ), # 2 + (3, TType.SET, 'updatedAttrs', (TType.I32, None, False), None, ), # 3 + (4, TType.STRUCT, 'relation', [SquareMemberRelation, None], None, ), # 4 +) +all_structs.append(ReportSquareRequest) +ReportSquareRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 + (3, TType.I32, 'reportType', None, None, ), # 3 + (4, TType.STRING, 'otherReason', 'UTF8', None, ), # 4 +) +all_structs.append(ReportSquareResponse) +ReportSquareResponse.thrift_spec = ( +) +all_structs.append(ReportSquareChatRequest) +ReportSquareChatRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 + (3, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 3 + None, # 4 + (5, TType.I32, 'reportType', None, None, ), # 5 + (6, TType.STRING, 'otherReason', 'UTF8', None, ), # 6 +) +all_structs.append(ReportSquareChatResponse) +ReportSquareChatResponse.thrift_spec = ( +) +all_structs.append(ReportSquareMessageRequest) +ReportSquareMessageRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 + (3, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 3 + (4, TType.STRING, 'squareMessageId', 'UTF8', None, ), # 4 + (5, TType.I32, 'reportType', None, None, ), # 5 + (6, TType.STRING, 'otherReason', 'UTF8', None, ), # 6 +) +all_structs.append(ReportSquareMessageResponse) +ReportSquareMessageResponse.thrift_spec = ( +) +all_structs.append(ReportSquareMemberRequest) +ReportSquareMemberRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMemberMid', 'UTF8', None, ), # 2 + (3, TType.I32, 'reportType', None, None, ), # 3 + (4, TType.STRING, 'otherReason', 'UTF8', None, ), # 4 + (5, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 5 +) +all_structs.append(ReportSquareMemberResponse) +ReportSquareMemberResponse.thrift_spec = ( +) +all_structs.append(GetSquareRequest) +GetSquareRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'mid', 'UTF8', None, ), # 2 +) +all_structs.append(GetSquareResponse) +GetSquareResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'square', [Square, None], None, ), # 1 + (2, TType.STRUCT, 'myMembership', [SquareMember, None], None, ), # 2 + (3, TType.STRUCT, 'squareAuthority', [SquareAuthority, None], None, ), # 3 + (4, TType.STRUCT, 'squareStatus', [SquareStatus, None], None, ), # 4 + (5, TType.STRUCT, 'squareFeatureSet', [SquareFeatureSet, None], None, ), # 5 + (6, TType.STRUCT, 'noteStatus', [NoteStatus, None], None, ), # 6 +) +all_structs.append(GetSquareStatusRequest) +GetSquareStatusRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 +) +all_structs.append(GetSquareStatusResponse) +GetSquareStatusResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'squareStatus', [SquareStatus, None], None, ), # 1 +) +all_structs.append(GetNoteStatusRequest) +GetNoteStatusRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareMid', 'UTF8', None, ), # 2 +) +all_structs.append(GetNoteStatusResponse) +GetNoteStatusResponse.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'squareMid', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'status', [NoteStatus, None], None, ), # 2 +) +all_structs.append(CreateSquareChatAnnouncementRequest) +CreateSquareChatAnnouncementRequest.thrift_spec = ( + None, # 0 + (1, TType.I32, 'reqSeq', None, None, ), # 1 + (2, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'squareChatAnnouncement', [SquareChatAnnouncement, None], None, ), # 3 +) +all_structs.append(CreateSquareChatAnnouncementResponse) +CreateSquareChatAnnouncementResponse.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'announcement', [SquareChatAnnouncement, None], None, ), # 1 +) +all_structs.append(DeleteSquareChatAnnouncementRequest) +DeleteSquareChatAnnouncementRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 2 + (3, TType.I64, 'announcementSeq', None, None, ), # 3 +) +all_structs.append(DeleteSquareChatAnnouncementResponse) +DeleteSquareChatAnnouncementResponse.thrift_spec = ( +) +all_structs.append(GetSquareChatAnnouncementsRequest) +GetSquareChatAnnouncementsRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'squareChatMid', 'UTF8', None, ), # 2 +) +all_structs.append(GetSquareChatAnnouncementsResponse) +GetSquareChatAnnouncementsResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'announcements', (TType.STRUCT, [SquareChatAnnouncement, None], False), None, ), # 1 +) +all_structs.append(GetJoinedSquareChatsRequest) +GetJoinedSquareChatsRequest.thrift_spec = ( + None, # 0 + None, # 1 + (2, TType.STRING, 'continuationToken', 'UTF8', None, ), # 2 + (3, TType.I32, 'limit', None, None, ), # 3 +) +all_structs.append(GetJoinedSquareChatsResponse) +GetJoinedSquareChatsResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'chats', (TType.STRUCT, [SquareChat, None], False), None, ), # 1 + (2, TType.MAP, 'chatMembers', (TType.STRING, 'UTF8', TType.STRUCT, [SquareChatMember, None], False), None, ), # 2 + (3, TType.MAP, 'statuses', (TType.STRING, 'UTF8', TType.STRUCT, [SquareChatStatus, None], False), None, ), # 3 + (4, TType.STRING, 'continuationToken', 'UTF8', None, ), # 4 +) +all_structs.append(TalkException) +TalkException.thrift_spec = ( + None, # 0 + (1, TType.I32, 'code', None, None, ), # 1 + (2, TType.STRING, 'reason', 'UTF8', None, ), # 2 + (3, TType.MAP, 'parameterMap', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3 +) +all_structs.append(ShouldSyncException) +ShouldSyncException.thrift_spec = ( + None, # 0 + (1, TType.I64, 'syncOpRevision', None, None, ), # 1 + (2, TType.STRUCT, 'syncScope', [SyncScope, None], None, ), # 2 + (3, TType.I32, 'syncReason', None, None, ), # 3 + (4, TType.STRING, 'message', 'UTF8', None, ), # 4 +) +all_structs.append(PointException) +PointException.thrift_spec = ( + None, # 0 + (1, TType.I32, 'code', None, None, ), # 1 + (2, TType.STRING, 'reason', 'UTF8', None, ), # 2 + (3, TType.MAP, 'extra', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3 +) +all_structs.append(ChannelException) +ChannelException.thrift_spec = ( + None, # 0 + (1, TType.I32, 'code', None, None, ), # 1 + (2, TType.STRING, 'reason', 'UTF8', None, ), # 2 + (3, TType.MAP, 'parameterMap', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3 +) +all_structs.append(SquareException) +SquareException.thrift_spec = ( + None, # 0 + (1, TType.I32, 'errorCode', None, None, ), # 1 + (2, TType.STRUCT, 'errorExtraInfo', [ErrorExtraInfo, None], None, ), # 2 + (3, TType.STRING, 'reason', 'UTF8', None, ), # 3 +) +all_structs.append(UniversalNotificationServiceException) +UniversalNotificationServiceException.thrift_spec = ( + None, # 0 + (1, TType.I32, 'code', None, None, ), # 1 + (2, TType.STRING, 'reason', 'UTF8', None, ), # 2 + (3, TType.MAP, 'parameterMap', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3 +) +all_structs.append(UpdateBuddyProfileResult) +UpdateBuddyProfileResult.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'requestId', 'UTF8', None, ), # 1 + (2, TType.I32, 'state', None, None, ), # 2 + (3, TType.I32, 'eventNo', None, None, ), # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + None, # 10 + (11, TType.I64, 'receiverCount', None, None, ), # 11 + (12, TType.I64, 'successCount', None, None, ), # 12 + (13, TType.I64, 'failCount', None, None, ), # 13 + (14, TType.I64, 'cancelCount', None, None, ), # 14 + (15, TType.I64, 'unregisterCount', None, None, ), # 15 + None, # 16 + None, # 17 + None, # 18 + None, # 19 + None, # 20 + (21, TType.I64, 'timestamp', None, None, ), # 21 + (22, TType.STRING, 'message', 'UTF8', None, ), # 22 +) +all_structs.append(UserAuthStatus) +UserAuthStatus.thrift_spec = ( + None, # 0 + (1, TType.BOOL, 'phoneNumberRegistered', None, None, ), # 1 + (2, TType.LIST, 'registeredSnsIdTypes', (TType.I32, None, False), None, ), # 2 +) +all_structs.append(WapInvitation) +WapInvitation.thrift_spec = ( + None, # 0 + (1, TType.I32, 'type', None, None, ), # 1 + None, # 2 + None, # 3 + None, # 4 + None, # 5 + None, # 6 + None, # 7 + None, # 8 + None, # 9 + (10, TType.STRING, 'inviteeEmail', 'UTF8', None, ), # 10 + (11, TType.STRING, 'inviterMid', 'UTF8', None, ), # 11 + (12, TType.STRING, 'roomMid', 'UTF8', None, ), # 12 +) +all_structs.append(GroupCall) +GroupCall.thrift_spec = ( + None, # 0 + (1, TType.BOOL, 'online', None, None, ), # 1 + (2, TType.STRING, 'chatMid', 'UTF8', None, ), # 2 + (3, TType.STRING, 'hostMids', 'UTF8', None, ), # 3 + (4, TType.LIST, 'memberMids', (TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.I64, 'started', None, None, ), # 5 + (6, TType.I32, 'mediaType', None, None, ), # 6 +) +all_structs.append(GroupCallRoute) +GroupCallRoute.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'token', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'cscf', [CallHost, None], None, ), # 2 + (3, TType.STRUCT, 'mix', [CallHost, None], None, ), # 3 +) +fix_spec(all_structs) +del all_structs diff --git a/errorLog.txt b/errorLog.txt new file mode 100644 index 0000000..7592187 --- /dev/null +++ b/errorLog.txt @@ -0,0 +1,172 @@ + +[] 'copy' +[] 'MENTION' +[] 'copy' +[] 'copy' +[] 'data' +[] 'data' +[] 'copy' +[] Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library? +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',)) +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] ('Connection aborted.', ConnectionAbortedError(103, 'Software caused connection abort')) +[] 'NoneType' object has no attribute 'lower' +[] 'NoneType' object has no attribute 'lower' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] name 'Nadya' is not defined +[] 'copy' +[] name 'Nadya' is not defined +[] 'copy' +[] name 'Nadya' is not defined +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] name 'Nadya' is not defined +[] name 'Nadya' is not defined +[] name 'Nadya' is not defined +[] 'copy' +[] HTTPConnectionPool(host='dl.profile.nadya.naver.jp', port=80): Max retries exceeded with url: /0hgYPMqLg4OHZtNBT__TpHIVFxNhsaGj4-FQJ3ERo3NhNFAn5zVAFwREAyZU5EASsgUVd2QB00b05A/vp (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 7] No address associated with hostname',)) +[] 'copy' +[] Download file failure. +[] 'copy' +[] name 'line' is not defined +[] HTTPConnectionPool(host='dl.profile.nadya.naver.jp', port=80): Max retries exceeded with url: /0hgYPMqLg4OHZtNBT__TpHIVFxNhsaGj4-FQJ3ERo3NhNFAn5zVAFwREAyZU5EASsgUVd2QB00b05A (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 7] No address associated with hostname',)) +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] HTTPConnectionPool(host='dl.profile.nadya.naver.jp', port=80): Max retries exceeded with url: /0hgYPMqLg4OHZtNBT__TpHIVFxNhsaGj4-FQJ3ERo3NhNFAn5zVAFwREAyZU5EASsgUVd2QB00b05A (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 7] No address associated with hostname',)) +[] 'copy' +[] name 'Nadya' is not defined +[] 'copy' +[] 'copy' +[] name 'Nadya' is not defined +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'target' +[] [Errno 103] Software caused connection abort +[] [Errno 7] No address associated with hostname +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] HTTPConnectionPool(host='dl.profile.nadya.naver.jp', port=80): Max retries exceeded with url: /0hB1aKTOS3HR5cMjH-ruxiSWB3E3MrHBtWJFJQcClnQyhzUF9AMFBUfnE1Syt1BlwcYQNaLH4wFiYm (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 7] No address associated with hostname',)) +[] 'target' +[] 'copy' +[] HTTPConnectionPool(host='dl.profile.nadya.naver.jp', port=80): Max retries exceeded with url: /0h_4fZc9DCABtbIyzuNnp_TGdmDnYsDQZTI0EfKHcmXS1xFkZNbhUcLix3Wi5zQBdJNxcYeCkmWX4m (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 7] No address associated with hostname',)) +[] name 'message' is not defined +[] 'copy' +[] name 'message' is not defined +[] 'copy' +[] name 'message' is not defined +[] name 'message' is not defined +[] name 'message' is not defined +[] 'copy' +[] 'target' +[] local variable 'target' referenced before assignment +[] 'copy' +[] local variable 'target' referenced before assignment +[] 'copy' +[] 'copy' +[] [Errno 104] Connection reset by peer +[] 'copy' +[] 'copy' +[] [Errno 104] Connection reset by peer +[] 'copy' +[] 'copy' +[] [Errno 104] Connection reset by peer +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] [Errno 101] Network is unreachable +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] encoding without a string argument +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'LINE' object has no attribute 'sendText' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'copy' +[] 'NoneType' object has no attribute 'mid' +[] 'copy' +[] dictionary changed size during iteration +[] 'copy' +[] dictionary changed size during iteration +[] 'copy' +[] 'copy' +[] 'copy' +[] dictionary changed size during iteration +[] dictionary changed size during iteration +[] dictionary changed size during iteration +[] 'copy' +[] 'copy' +[] 'copy' +[] 'NoneType' object has no attribute 'lower' +[] Required argument 'status' (pos 1) not found +[] Required argument 'status' (pos 1) not found +[] local variable 'admin' referenced before assignment +[] local variable 'admin' referenced before assignment +[] local variable 'admin' referenced before assignment +[] local variable 'admin' referenced before assignment +[] name 'msg' is not defined +[] local variable 'msg' referenced before assignment +[] local variable 'K0' referenced before assignment +[] local variable 'K0' referenced before assignment +[] local variable 'K0' referenced before assignment +[] local variable 'K0' referenced before assignment +[] local variable 'K0' referenced before assignment +[] local variable 'K0' referenced before assignment +[] local variable 'K0' referenced before assignment \ No newline at end of file diff --git a/linepy/__init__.py b/linepy/__init__.py new file mode 100644 index 0000000..0943771 --- /dev/null +++ b/linepy/__init__.py @@ -0,0 +1,13 @@ +from .client import LINE +from .channel import Channel +from .oepoll import OEPoll +from akad.ttypes import OpType + +__copyright__ = 'Copyright 2018 by Fadhiil Rachman' +__version__ = '3.0.8' +__license__ = 'BSD-3-Clause' +__author__ = 'Fadhiil Rachman' +__author_email__ = 'fadhiilrachman@gmail.com' +__url__ = 'http://github.com/fadhiilrachman/line-py' + +__all__ = ['LINE', 'Channel', 'OEPoll', 'OpType'] \ No newline at end of file diff --git a/linepy/__pycache__/__init__.cpython-35.pyc b/linepy/__pycache__/__init__.cpython-35.pyc new file mode 100644 index 0000000..5699af5 Binary files /dev/null and b/linepy/__pycache__/__init__.cpython-35.pyc differ diff --git a/linepy/__pycache__/__init__.cpython-36.pyc b/linepy/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..3ce20a0 Binary files /dev/null and b/linepy/__pycache__/__init__.cpython-36.pyc differ diff --git a/linepy/__pycache__/auth.cpython-35.pyc b/linepy/__pycache__/auth.cpython-35.pyc new file mode 100644 index 0000000..3f7dd3b Binary files /dev/null and b/linepy/__pycache__/auth.cpython-35.pyc differ diff --git a/linepy/__pycache__/auth.cpython-36.pyc b/linepy/__pycache__/auth.cpython-36.pyc new file mode 100644 index 0000000..9ac9380 Binary files /dev/null and b/linepy/__pycache__/auth.cpython-36.pyc differ diff --git a/linepy/__pycache__/call.cpython-35.pyc b/linepy/__pycache__/call.cpython-35.pyc new file mode 100644 index 0000000..bdb34c7 Binary files /dev/null and b/linepy/__pycache__/call.cpython-35.pyc differ diff --git a/linepy/__pycache__/call.cpython-36.pyc b/linepy/__pycache__/call.cpython-36.pyc new file mode 100644 index 0000000..ec2861a Binary files /dev/null and b/linepy/__pycache__/call.cpython-36.pyc differ diff --git a/linepy/__pycache__/callback.cpython-35.pyc b/linepy/__pycache__/callback.cpython-35.pyc new file mode 100644 index 0000000..5cee459 Binary files /dev/null and b/linepy/__pycache__/callback.cpython-35.pyc differ diff --git a/linepy/__pycache__/callback.cpython-36.pyc b/linepy/__pycache__/callback.cpython-36.pyc new file mode 100644 index 0000000..8788791 Binary files /dev/null and b/linepy/__pycache__/callback.cpython-36.pyc differ diff --git a/linepy/__pycache__/channel.cpython-35.pyc b/linepy/__pycache__/channel.cpython-35.pyc new file mode 100644 index 0000000..97e01e1 Binary files /dev/null and b/linepy/__pycache__/channel.cpython-35.pyc differ diff --git a/linepy/__pycache__/channel.cpython-36.pyc b/linepy/__pycache__/channel.cpython-36.pyc new file mode 100644 index 0000000..0d72ae4 Binary files /dev/null and b/linepy/__pycache__/channel.cpython-36.pyc differ diff --git a/linepy/__pycache__/client.cpython-35.pyc b/linepy/__pycache__/client.cpython-35.pyc new file mode 100644 index 0000000..9bcb90a Binary files /dev/null and b/linepy/__pycache__/client.cpython-35.pyc differ diff --git a/linepy/__pycache__/client.cpython-36.pyc b/linepy/__pycache__/client.cpython-36.pyc new file mode 100644 index 0000000..ad2cacd Binary files /dev/null and b/linepy/__pycache__/client.cpython-36.pyc differ diff --git a/linepy/__pycache__/config.cpython-35.pyc b/linepy/__pycache__/config.cpython-35.pyc new file mode 100644 index 0000000..27da4e0 Binary files /dev/null and b/linepy/__pycache__/config.cpython-35.pyc differ diff --git a/linepy/__pycache__/config.cpython-36.pyc b/linepy/__pycache__/config.cpython-36.pyc new file mode 100644 index 0000000..3a14cad Binary files /dev/null and b/linepy/__pycache__/config.cpython-36.pyc differ diff --git a/linepy/__pycache__/models.cpython-35.pyc b/linepy/__pycache__/models.cpython-35.pyc new file mode 100644 index 0000000..2c487cb Binary files /dev/null and b/linepy/__pycache__/models.cpython-35.pyc differ diff --git a/linepy/__pycache__/models.cpython-36.pyc b/linepy/__pycache__/models.cpython-36.pyc new file mode 100644 index 0000000..730bf94 Binary files /dev/null and b/linepy/__pycache__/models.cpython-36.pyc differ diff --git a/linepy/__pycache__/object.cpython-35.pyc b/linepy/__pycache__/object.cpython-35.pyc new file mode 100644 index 0000000..d36a36b Binary files /dev/null and b/linepy/__pycache__/object.cpython-35.pyc differ diff --git a/linepy/__pycache__/object.cpython-36.pyc b/linepy/__pycache__/object.cpython-36.pyc new file mode 100644 index 0000000..cecfcab Binary files /dev/null and b/linepy/__pycache__/object.cpython-36.pyc differ diff --git a/linepy/__pycache__/oepoll.cpython-35.pyc b/linepy/__pycache__/oepoll.cpython-35.pyc new file mode 100644 index 0000000..5a30a5f Binary files /dev/null and b/linepy/__pycache__/oepoll.cpython-35.pyc differ diff --git a/linepy/__pycache__/oepoll.cpython-36.pyc b/linepy/__pycache__/oepoll.cpython-36.pyc new file mode 100644 index 0000000..6e88375 Binary files /dev/null and b/linepy/__pycache__/oepoll.cpython-36.pyc differ diff --git a/linepy/__pycache__/server.cpython-35.pyc b/linepy/__pycache__/server.cpython-35.pyc new file mode 100644 index 0000000..d5790a1 Binary files /dev/null and b/linepy/__pycache__/server.cpython-35.pyc differ diff --git a/linepy/__pycache__/server.cpython-36.pyc b/linepy/__pycache__/server.cpython-36.pyc new file mode 100644 index 0000000..04bcf3b Binary files /dev/null and b/linepy/__pycache__/server.cpython-36.pyc differ diff --git a/linepy/__pycache__/session.cpython-35.pyc b/linepy/__pycache__/session.cpython-35.pyc new file mode 100644 index 0000000..c41e376 Binary files /dev/null and b/linepy/__pycache__/session.cpython-35.pyc differ diff --git a/linepy/__pycache__/session.cpython-36.pyc b/linepy/__pycache__/session.cpython-36.pyc new file mode 100644 index 0000000..35f57f5 Binary files /dev/null and b/linepy/__pycache__/session.cpython-36.pyc differ diff --git a/linepy/__pycache__/square.cpython-35.pyc b/linepy/__pycache__/square.cpython-35.pyc new file mode 100644 index 0000000..0b16308 Binary files /dev/null and b/linepy/__pycache__/square.cpython-35.pyc differ diff --git a/linepy/__pycache__/square.cpython-36.pyc b/linepy/__pycache__/square.cpython-36.pyc new file mode 100644 index 0000000..4726aa9 Binary files /dev/null and b/linepy/__pycache__/square.cpython-36.pyc differ diff --git a/linepy/__pycache__/talk.cpython-35.pyc b/linepy/__pycache__/talk.cpython-35.pyc new file mode 100644 index 0000000..bf67362 Binary files /dev/null and b/linepy/__pycache__/talk.cpython-35.pyc differ diff --git a/linepy/__pycache__/talk.cpython-36.pyc b/linepy/__pycache__/talk.cpython-36.pyc new file mode 100644 index 0000000..acef5b6 Binary files /dev/null and b/linepy/__pycache__/talk.cpython-36.pyc differ diff --git a/linepy/__pycache__/timeline.cpython-35.pyc b/linepy/__pycache__/timeline.cpython-35.pyc new file mode 100644 index 0000000..c503f6e Binary files /dev/null and b/linepy/__pycache__/timeline.cpython-35.pyc differ diff --git a/linepy/__pycache__/timeline.cpython-36.pyc b/linepy/__pycache__/timeline.cpython-36.pyc new file mode 100644 index 0000000..6a16927 Binary files /dev/null and b/linepy/__pycache__/timeline.cpython-36.pyc differ diff --git a/linepy/auth.py b/linepy/auth.py new file mode 100644 index 0000000..1bf6cd8 --- /dev/null +++ b/linepy/auth.py @@ -0,0 +1,198 @@ +# -*- coding: utf-8 -*- +from akad.ttypes import IdentityProvider, LoginResultType, LoginRequest, LoginType +from .server import Server +from .session import Session +from .callback import Callback + +import rsa, os + +class Auth(object): + isLogin = False + authToken = "" + certificate = "" + + def __init__(self): + self.server = Server() + self.callback = Callback(self.__defaultCallback) + self.server.setHeadersWithDict({ + 'User-Agent': self.server.USER_AGENT, + 'X-Line-Application': self.server.APP_NAME, + 'X-Line-Carrier': self.server.CARRIER + }) + + def __loadSession(self): + self.talk = Session(self.server.LINE_HOST_DOMAIN, self.server.Headers, self.server.LINE_API_QUERY_PATH_FIR).Talk() + self.poll = Session(self.server.LINE_HOST_DOMAIN, self.server.Headers, self.server.LINE_POLL_QUERY_PATH_FIR).Talk() + self.call = Session(self.server.LINE_HOST_DOMAIN, self.server.Headers, self.server.LINE_CALL_QUERY_PATH).Call() + self.channel = Session(self.server.LINE_HOST_DOMAIN, self.server.Headers, self.server.LINE_CHAN_QUERY_PATH).Channel() + self.square = Session(self.server.LINE_HOST_DOMAIN, self.server.Headers, self.server.LINE_SQUARE_QUERY_PATH).Square() + + self.revision = self.poll.getLastOpRevision() + self.isLogin = True + + def __loginRequest(self, type, data): + lReq = LoginRequest() + if type == '0': + lReq.type = LoginType.ID_CREDENTIAL + lReq.identityProvider = data['identityProvider'] + lReq.identifier = data['identifier'] + lReq.password = data['password'] + lReq.keepLoggedIn = data['keepLoggedIn'] + lReq.accessLocation = data['accessLocation'] + lReq.systemName = data['systemName'] + lReq.certificate = data['certificate'] + lReq.e2eeVersion = data['e2eeVersion'] + elif type == '1': + lReq.type = LoginType.QRCODE + lReq.keepLoggedIn = data['keepLoggedIn'] + if 'identityProvider' in data: + lReq.identityProvider = data['identityProvider'] + if 'accessLocation' in data: + lReq.accessLocation = data['accessLocation'] + if 'systemName' in data: + lReq.systemName = data['systemName'] + lReq.verifier = data['verifier'] + lReq.e2eeVersion = data['e2eeVersion'] + else: + lReq=False + return lReq + + def loginWithCredential(self, _id, passwd, certificate=None, systemName=None, appName=None, keepLoggedIn=True): + if systemName is None: + systemName=self.server.SYSTEM_NAME + if self.server.EMAIL_REGEX.match(_id): + self.provider = IdentityProvider.LINE # LINE + else: + self.provider = IdentityProvider.NAVER_KR # NAVER + + if appName is None: + appName=self.server.APP_NAME + self.server.setHeaders('X-Line-Application', appName) + self.tauth = Session(self.server.LINE_HOST_DOMAIN, self.server.Headers, self.server.LINE_AUTH_QUERY_PATH).Talk(isopen=False) + + rsaKey = self.tauth.getRSAKeyInfo(self.provider) + + message = (chr(len(rsaKey.sessionKey)) + rsaKey.sessionKey + + chr(len(_id)) + _id + + chr(len(passwd)) + passwd).encode('utf-8') + pub_key = rsa.PublicKey(int(rsaKey.nvalue, 16), int(rsaKey.evalue, 16)) + crypto = rsa.encrypt(message, pub_key).hex() + + try: + with open(_id + '.crt', 'r') as f: + self.certificate = f.read() + except: + if certificate is not None: + self.certificate = certificate + if os.path.exists(certificate): + with open(certificate, 'r') as f: + self.certificate = f.read() + + self.auth = Session(self.server.LINE_HOST_DOMAIN, self.server.Headers, self.server.LINE_LOGIN_QUERY_PATH).Auth(isopen=False) + + lReq = self.__loginRequest('0', { + 'identityProvider': self.provider, + 'identifier': rsaKey.keynm, + 'password': crypto, + 'keepLoggedIn': keepLoggedIn, + 'accessLocation': self.server.IP_ADDR, + 'systemName': systemName, + 'certificate': self.certificate, + 'e2eeVersion': 0 + }) + + result = self.auth.loginZ(lReq) + + if result.type == LoginResultType.REQUIRE_DEVICE_CONFIRM: + self.callback.PinVerified(result.pinCode) + + self.server.setHeaders('X-Line-Access', result.verifier) + getAccessKey = self.server.getJson(self.server.parseUrl(self.server.LINE_CERTIFICATE_PATH), allowHeader=True) + + self.auth = Session(self.server.LINE_HOST_DOMAIN, self.server.Headers, self.server.LINE_LOGIN_QUERY_PATH).Auth(isopen=False) + + try: + lReq = self.__loginRequest('1', { + 'keepLoggedIn': keepLoggedIn, + 'verifier': getAccessKey['result']['verifier'], + 'e2eeVersion': 0 + }) + result = self.auth.loginZ(lReq) + except: + raise Exception('Login failed') + + if result.type == LoginResultType.SUCCESS: + if result.certificate is not None: + with open(_id + '.crt', 'w') as f: + f.write(result.certificate) + self.certificate = result.certificate + if result.authToken is not None: + self.loginWithAuthToken(result.authToken, appName) + else: + return False + else: + raise Exception('Login failed') + + elif result.type == LoginResultType.REQUIRE_QRCODE: + self.loginWithQrCode(keepLoggedIn, systemName, appName) + pass + + elif result.type == LoginResultType.SUCCESS: + self.certificate = result.certificate + self.loginWithAuthToken(result.authToken, appName) + + def loginWithQrCode(self, keepLoggedIn=True, systemName=None, appName=None, showQr=False): + if systemName is None: + systemName=self.server.SYSTEM_NAME + if appName is None: + appName=self.server.APP_NAME + self.server.setHeaders('X-Line-Application', appName) + + self.tauth = Session(self.server.LINE_HOST_DOMAIN, self.server.Headers, self.server.LINE_AUTH_QUERY_PATH).Talk(isopen=False) + qrCode = self.tauth.getAuthQrcode(keepLoggedIn, systemName) + + self.callback.QrUrl('line://au/q/' + qrCode.verifier, showQr) + self.server.setHeaders('X-Line-Access', qrCode.verifier) + + getAccessKey = self.server.getJson(self.server.parseUrl(self.server.LINE_CERTIFICATE_PATH), allowHeader=True) + + self.auth = Session(self.server.LINE_HOST_DOMAIN, self.server.Headers, self.server.LINE_LOGIN_QUERY_PATH).Auth(isopen=False) + + try: + lReq = self.__loginRequest('1', { + 'keepLoggedIn': keepLoggedIn, + 'systemName': systemName, + 'identityProvider': IdentityProvider.LINE, + 'verifier': getAccessKey['result']['verifier'], + 'accessLocation': self.server.IP_ADDR, + 'e2eeVersion': 0 + }) + result = self.auth.loginZ(lReq) + except: + raise Exception('Login failed') + + if result.type == LoginResultType.SUCCESS: + if result.authToken is not None: + self.loginWithAuthToken(result.authToken, appName) + else: + return False + else: + raise Exception('Login failed') + + def loginWithAuthToken(self, authToken=None, appName=None): + if authToken is None: + raise Exception('Please provide Auth Token') + if appName is None: + appName=self.server.APP_NAME + self.server.setHeadersWithDict({ + 'X-Line-Application': appName, + 'X-Line-Access': authToken + }) + self.authToken = authToken + self.__loadSession() + + def __defaultCallback(self, str): + print(str) + + def logout(self): + self.auth.logoutZ() \ No newline at end of file diff --git a/linepy/call.py b/linepy/call.py new file mode 100644 index 0000000..3ce1290 --- /dev/null +++ b/linepy/call.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +from akad.ttypes import MediaType + +def loggedIn(func): + def checkLogin(*args, **kwargs): + if args[0].isLogin: + return func(*args, **kwargs) + else: + args[0].callback.other('You want to call the function, you must login to LINE') + return checkLogin + +class Call(object): + isLogin = False + + def __init__(self): + self.isLogin = True + + @loggedIn + def acquireCallRoute(self, to): + return self.call.acquireCallRoute(to) + + @loggedIn + def acquireGroupCallRoute(self, groupId, mediaType=MediaType.AUDIO): + return self.call.acquireGroupCallRoute(groupId, mediaType) + + @loggedIn + def getGroupCall(self, ChatMid): + return self.call.getGroupCall(ChatMid) + + @loggedIn + def inviteIntoGroupCall(self, chatId, contactIds=[], mediaType=MediaType.AUDIO): + return self.call.inviteIntoGroupCall(chatId, contactIds, mediaType) \ No newline at end of file diff --git a/linepy/callback.py b/linepy/callback.py new file mode 100644 index 0000000..f54c0b1 --- /dev/null +++ b/linepy/callback.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +class Callback(object): + + def __init__(self, callback): + self.callback = callback + + def PinVerified(self, pin): + self.callback("Input this PIN code '" + pin + "' on your LINE for smartphone in 2 minutes") + + def QrUrl(self, url, showQr=True): + if showQr: + notice='or scan this QR ' + else: + notice='' + self.callback('Open this link ' + notice + 'on your LINE for smartphone in 2 minutes\n' + url) + if showQr: + try: + import pyqrcode + url = pyqrcode.create(url) + self.callback(url.terminal('green', 'white', 1)) + except: + pass + + def default(self, str): + self.callback(str) \ No newline at end of file diff --git a/linepy/channel.py b/linepy/channel.py new file mode 100644 index 0000000..b635f2e --- /dev/null +++ b/linepy/channel.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- + +def loggedIn(func): + def checkLogin(*args, **kwargs): + if args[0].isLogin: + return func(*args, **kwargs) + else: + args[0].callback.other('You want to call the function, you must login to LINE') + return checkLogin + +class Channel(object): + isLogin = False + channelId = None + channelResult = None + + def __init__(self, client, channelId, showSuccess=True): + self.client = client + self.channelId = channelId + self.showSuccess = showSuccess + self.__loginChannel() + + def __logChannel(self, text): + self.client.log('[%s] : Success login to %s' % (self.client.profile.displayName, text)) + + def __loginChannel(self): + self.isLogin = True + self.channelResult = self.approveChannelAndIssueChannelToken(self.channelId) + self.__createChannelSession() + + @loggedIn + def getChannelResult(self): + return self.channelResult + + def __createChannelSession(self): + channelInfo = self.getChannelInfo(self.channelId) + if self.showSuccess: + self.__logChannel(channelInfo.name) + + @loggedIn + def approveChannelAndIssueChannelToken(self, channelId): + return self.client.approveChannelAndIssueChannelToken(channelId) + + @loggedIn + def issueChannelToken(self, channelId): + return self.client.issueChannelToken(channelId) + + @loggedIn + def getChannelInfo(self, channelId, locale='EN'): + return self.client.getChannelInfo(channelId, locale) + + @loggedIn + def revokeChannel(self, channelId): + return self.client.revokeChannel(channelId) \ No newline at end of file diff --git a/linepy/client.py b/linepy/client.py new file mode 100644 index 0000000..9ed6366 --- /dev/null +++ b/linepy/client.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +from akad.ttypes import Message +from .auth import Auth +from .models import Models +from .talk import Talk +from .square import Square +from .call import Call +from .timeline import Timeline + +class LINE(Auth, Models, Talk, Square, Call, Timeline): + + def __init__(self, idOrAuthToken=None, passwd=None, certificate=None, systemName=None, appName=None, showQr=False, keepLoggedIn=True): + + Auth.__init__(self) + if not (idOrAuthToken or idOrAuthToken and passwd): + self.loginWithQrCode(keepLoggedIn=keepLoggedIn, systemName=systemName, appName=appName, showQr=showQr) + if idOrAuthToken and passwd: + self.loginWithCredential(_id=idOrAuthToken, passwd=passwd, certificate=certificate, systemName=systemName, appName=appName, keepLoggedIn=keepLoggedIn) + elif idOrAuthToken and not passwd: + self.loginWithAuthToken(authToken=idOrAuthToken, appName=appName) + + self.__initAll() + + def __initAll(self): + + self.profile = self.talk.getProfile() + self.groups = self.talk.getGroupIdsJoined() + + Models.__init__(self) + Talk.__init__(self) + Square.__init__(self) + Call.__init__(self) + Timeline.__init__(self) \ No newline at end of file diff --git a/linepy/config.py b/linepy/config.py new file mode 100644 index 0000000..7117f5b --- /dev/null +++ b/linepy/config.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +from akad.ttypes import ApplicationType +import re + +class Config(object): + LINE_HOST_DOMAIN = 'https://gd2.line.naver.jp' + LINE_OBS_DOMAIN = 'https://obs-sg.line-apps.com' + LINE_TIMELINE_API = 'https://gd2.line.naver.jp/mh/api' + LINE_TIMELINE_MH = 'https://gd2.line.naver.jp/mh' + + LINE_LOGIN_QUERY_PATH = '/api/v4p/rs' + LINE_AUTH_QUERY_PATH = '/api/v4/TalkService.do' + + LINE_API_QUERY_PATH_FIR = '/S4' + LINE_POLL_QUERY_PATH_FIR = '/P4' + LINE_CALL_QUERY_PATH = '/V4' + LINE_CERTIFICATE_PATH = '/Q' + LINE_CHAN_QUERY_PATH = '/CH4' + LINE_SQUARE_QUERY_PATH = '/SQS1' + + CHANNEL_ID = { + 'LINE_TIMELINE': '1341209950', + 'LINE_WEBTOON': '1401600689', + 'LINE_TODAY': '1518712866', + 'LINE_STORE': '1376922440', + 'LINE_MUSIC': '1381425814', + 'LINE_SERVICES': '1459630796' + } + + APP_TYPE = ApplicationType._VALUES_TO_NAMES[96] + APP_VER = '8.0.2' + CARRIER = '51089, 1-0' + SYSTEM_NAME = 'Nadya' + SYSTEM_VER = '11.2.5' + IP_ADDR = '8.8.8.8' + EMAIL_REGEX = re.compile(r"[^@]+@[^@]+\.[^@]+") + + def __init__(self): + self.APP_NAME = '%s\t%s\t%s\t%s' % (self.APP_TYPE, self.APP_VER, self.SYSTEM_NAME, self.SYSTEM_VER) + self.USER_AGENT = 'Line/%s' % self.APP_VER \ No newline at end of file diff --git a/linepy/models.py b/linepy/models.py new file mode 100644 index 0000000..53d2f7c --- /dev/null +++ b/linepy/models.py @@ -0,0 +1,77 @@ +# -*- coding: utf-8 -*- +from datetime import datetime +from .object import Object +from random import randint + +import json, shutil, time, os, base64, tempfile + +class Models(Object): + + def __init__(self): + Object.__init__(self) + + """Text""" + + def log(self, text): + print("[%s] %s" % (str(datetime.now()), text)) + + """File""" + + def saveFile(self, path, raw): + with open(path, 'wb') as f: + shutil.copyfileobj(raw, f) + + def deleteFile(self, path): + if os.path.exists(path): + os.remove(path) + return True + else: + return False + + def downloadFileURL(self, fileUrl, returnAs='path', saveAs='', headers=None): + if returnAs not in ['path','bool','bin']: + raise Exception('Invalid returnAs value') + if saveAs == '': + saveAs = self.genTempFile() + r = self.server.getContent(fileUrl, headers=headers) + if r.status_code != 404: + self.saveFile(saveAs, r.raw) + if returnAs == 'path': + return saveAs + elif returnAs == 'bool': + return True + elif returnAs == 'bin': + return r.raw + else: + raise Exception('Download file failure.') + + """Generator""" + + def genTempFile(self, returnAs='path'): + try: + if returnAs not in ['file','path']: + raise Exception('Invalid returnAs value') + fName, fPath = 'linepy-%s-%i.bin' % (int(time.time()), randint(0, 9)), tempfile.gettempdir() + if returnAs == 'file': + return fName + elif returnAs == 'path': + return os.path.join(fPath, fName) + except: + raise Exception('tempfile is required') + + def genOBSParams(self, newList, returnAs='json'): + oldList = {'name': self.genTempFile('file'),'ver': '1.0'} + if returnAs not in ['json','b64','default']: + raise Exception('Invalid parameter returnAs') + oldList.update(newList) + if 'range' in oldList: + new_range='bytes 0-%s\/%s' % ( str(oldList['range']-1), str(oldList['range']) ) + oldList.update({'range': new_range}) + if returnAs == 'json': + oldList=json.dumps(oldList) + return oldList + elif returnAs == 'b64': + oldList=json.dumps(oldList) + return base64.b64encode(oldList.encode('utf-8')) + elif returnAs == 'default': + return oldList \ No newline at end of file diff --git a/linepy/object.py b/linepy/object.py new file mode 100644 index 0000000..98e868f --- /dev/null +++ b/linepy/object.py @@ -0,0 +1,208 @@ +# -*- coding: utf-8 -*- +from datetime import datetime +import json, time, ntpath + +def loggedIn(func): + def checkLogin(*args, **kwargs): + if args[0].isLogin: + return func(*args, **kwargs) + else: + args[0].callback.other('You want to call the function, you must login to LINE') + return checkLogin + +class Object(object): + + def __init__(self): + if self.isLogin == True: + self.log("[%s] : Login success" % self.profile.displayName) + + """Group""" + + @loggedIn + def updateGroupPicture(self, groupId, path): + files = {'file': open(path, 'rb')} + data = {'params': self.genOBSParams({'oid': groupId,'type': 'image'})} + r = self.server.postContent(self.server.LINE_OBS_DOMAIN + '/talk/g/upload.nhn', data=data, files=files) + if r.status_code != 201: + raise Exception('Update group picture failure.') + return True + + """Personalize""" + + @loggedIn + def updateProfilePicture(self, path, type='p'): + files = {'file': open(path, 'rb')} + params = {'oid': self.profile.mid,'type': 'image'} + if type == 'vp': + params.update({'ver': '2.0', 'cat': 'vp.mp4'}) + data = {'params': self.genOBSParams(params)} + r = self.server.postContent(self.server.LINE_OBS_DOMAIN + '/talk/p/upload.nhn', data=data, files=files) + if r.status_code != 201: + raise Exception('Update profile picture failure.') + return True + + @loggedIn + def updateProfileVideoPicture(self, path): + try: + from ffmpy import FFmpeg + files = {'file': open(path, 'rb')} + data = {'params': self.genOBSParams({'oid': self.profile.mid,'ver': '2.0','type': 'video','cat': 'vp.mp4'})} + r_vp = self.server.postContent(self.server.LINE_OBS_DOMAIN + '/talk/vp/upload.nhn', data=data, files=files) + if r_vp.status_code != 201: + raise Exception('Update profile video picture failure.') + path_p = self.genTempFile('path') + ff = FFmpeg(inputs={'%s' % path: None}, outputs={'%s' % path_p: ['-ss', '00:00:2', '-vframes', '1']}) + ff.run() + self.updateProfilePicture(path_p, 'vp') + except: + raise Exception('You should install FFmpeg and ffmpy from pypi') + + @loggedIn + def updateProfileCover(self, path, returnAs='bool'): + if returnAs not in ['objId','bool']: + raise Exception('Invalid returnAs value') + objId = self.uploadObjHome(path, type='image', returnAs='objId') + home = self.updateProfileCoverById(objId) + if returnAs == 'objId': + return objId + elif returnAs == 'bool': + return True + + """Object""" + + @loggedIn + def uploadObjSquare(self, squareChatMid, path, type='image', returnAs='bool'): + if returnAs not in ['bool']: + raise Exception('Invalid returnAs value') + if type not in ['image','gif','video','audio','file']: + raise Exception('Invalid type value') + data = open(path, 'rb').read() + params = { + 'oid': 'reqseq', + 'reqseq': '%s' % str(self.revision), + 'tomid': '%s' % str(squareChatMid), + 'size': '%s' % str(len(data)), + 'range': len(data), + 'type': '%s' % str(type) + } + if type == 'image': + contentType = 'image/jpeg' + elif type == 'gif': + contentType = 'image/gif' + elif type == 'video': + params.update({'duration': '60000'}) + contentType = 'video/mp4' + elif type == 'audio': + params.update({'duration': '0'}) + contentType = 'audio/mp3' + headers = self.server.additionalHeaders(self.server.Headers, { + 'content-type': contentType, + 'Content-Length': str(len(data)), + 'x-obs-params': self.genOBSParams(params,'b64'), + 'X-Line-Access': self.squareObsToken + }) + r = self.server.postContent(self.server.LINE_OBS_DOMAIN + '/r/g2/m/reqseq', data=data, headers=headers) + if r.status_code != 201: + raise Exception('Upload %s failure.' % type) + if returnAs == 'bool': + return True + + @loggedIn + def uploadObjTalk(self, path, type='image', returnAs='bool', objId=None, to=None): + if returnAs not in ['objId','bool']: + raise Exception('Invalid returnAs value') + if type not in ['image','gif','video','audio','file']: + raise Exception('Invalid type value') + headers=None + files = {'file': open(path, 'rb')} + if type == 'image' or type == 'video' or type == 'audio' or type == 'file': + e_p = self.server.LINE_OBS_DOMAIN + '/talk/m/upload.nhn' + data = {'params': self.genOBSParams({'oid': objId,'size': len(open(path, 'rb').read()),'type': type})} + elif type == 'gif': + e_p = self.server.LINE_OBS_DOMAIN + '/r/talk/m/reqseq' + files = None + data = open(path, 'rb').read() + params = { + 'oid': 'reqseq', + 'reqseq': '%s' % str(self.revision), + 'tomid': '%s' % str(to), + 'size': '%s' % str(len(data)), + 'range': len(data), + 'type': 'image' + } + headers = self.server.additionalHeaders(self.server.Headers, { + 'Content-Type': 'image/gif', + 'Content-Length': str(len(data)), + 'x-obs-params': self.genOBSParams(params,'b64') + }) + r = self.server.postContent(e_p, data=data, headers=headers, files=files) + if r.status_code != 201: + raise Exception('Upload %s failure.' % type) + if returnAs == 'objId': + return objId + elif returnAs == 'bool': + return True + + @loggedIn + def uploadObjHome(self, path, type='image', returnAs='bool', objId=None): + if returnAs not in ['objId','bool']: + raise Exception('Invalid returnAs value') + if type not in ['image','video','audio']: + raise Exception('Invalid type value') + if type == 'image': + contentType = 'image/jpeg' + elif type == 'video': + contentType = 'video/mp4' + elif type == 'audio': + contentType = 'audio/mp3' + if not objId: + objId = int(time.time()) + file = open(path, 'rb').read() + params = { + 'userid': '%s' % self.profile.mid, + 'oid': '%s' % str(objId), + 'range': len(file), + 'type': type + } + hr = self.server.additionalHeaders(self.server.timelineHeaders, { + 'Content-Type': contentType, + 'Content-Length': str(len(file)), + 'x-obs-params': self.genOBSParams(params,'b64') + }) + r = self.server.postContent(self.server.LINE_OBS_DOMAIN + '/myhome/c/upload.nhn', headers=hr, data=file) + if r.status_code != 201: + raise Exception('Upload object home failure.') + if returnAs == 'objId': + return objId + elif returnAs == 'bool': + return True + + @loggedIn + def downloadObjectMsg(self, messageId, returnAs='path', saveAs=''): + if saveAs == '': + saveAs = self.genTempFile('path') + if returnAs not in ['path','bool','bin']: + raise Exception('Invalid returnAs value') + params = {'oid': messageId} + url = self.server.urlEncode(self.server.LINE_OBS_DOMAIN, '/talk/m/download.nhn', params) + r = self.server.getContent(url) + if r.status_code == 200: + self.saveFile(saveAs, r.raw) + if returnAs == 'path': + return saveAs + elif returnAs == 'bool': + return True + elif returnAs == 'bin': + return r.raw + else: + raise Exception('Download object failure.') + + @loggedIn + def forwardObjectMsg(self, to, msgId, contentType='image'): + if contentType not in ['image','video','audio']: + raise Exception('Type not valid.') + data = self.genOBSParams({'oid': 'reqseq','reqseq': self.revision,'type': contentType,'copyFrom': '/talk/m/%s' % msgId},'default') + r = self.server.postContent(self.server.LINE_OBS_DOMAIN + '/talk/m/copy.nhn', data=data) + if r.status_code != 200: + raise Exception('Forward object failure.') + return True \ No newline at end of file diff --git a/linepy/oepoll.py b/linepy/oepoll.py new file mode 100644 index 0000000..ef3d9f0 --- /dev/null +++ b/linepy/oepoll.py @@ -0,0 +1,77 @@ +# -*- coding: utf-8 -*- +from .client import LINE +from types import * + +import os, sys, threading, time + +class OEPoll(object): + OpInterrupt = {} + client = None + __squareSubId = {} + __squareSyncToken = {} + + def __init__(self, client): + if type(client) is not LINE: + raise Exception('You need to set LINE instance to initialize OEPoll') + self.client = client + + def __fetchOperation(self, revision, count=1): + return self.client.poll.fetchOperations(revision, count) + + def __execute(self, op, threading): + try: + if threading: + _td = threading.Thread(target=self.OpInterrupt[op.type](op)) + _td.daemon = False + _td.start() + else: + self.OpInterrupt[op.type](op) + except Exception as e: + self.client.log(e) + + def addOpInterruptWithDict(self, OpInterruptDict): + self.OpInterrupt.update(OpInterruptDict) + + def addOpInterrupt(self, OperationType, DisposeFunc): + self.OpInterrupt[OperationType] = DisposeFunc + + def setRevision(self, revision): + self.client.revision = max(revision, self.client.revision) + + def singleTrace(self, count=1): + try: + operations = self.__fetchOperation(self.client.revision, count=count) + except KeyboardInterrupt: + exit() + except: + return + + if operations is None: + return [] + else: + return operations + + def trace(self, threading=False): + try: + operations = self.__fetchOperation(self.client.revision) + except KeyboardInterrupt: + exit() + except: + return + + for op in operations: + if op.type in self.OpInterrupt.keys(): + self.__execute(op, threading) + self.setRevision(op.revision) + + def singleFetchSquareChat(self, squareChatMid, limit=1): + if squareChatMid not in self.__squareSubId: + self.__squareSubId[squareChatMid] = 0 + if squareChatMid not in self.__squareSyncToken: + self.__squareSyncToken[squareChatMid] = '' + + sqcEvents = self.client.fetchSquareChatEvents(squareChatMid, subscriptionId=self.__squareSubId[squareChatMid], syncToken=self.__squareSyncToken[squareChatMid], limit=limit, direction=1) + self.__squareSubId[squareChatMid] = sqcEvents.subscription + self.__squareSyncToken[squareChatMid] = sqcEvents.syncToken + + return sqcEvents.events \ No newline at end of file diff --git a/linepy/server.py b/linepy/server.py new file mode 100644 index 0000000..09fcfa5 --- /dev/null +++ b/linepy/server.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +from .config import Config +import json, requests, urllib + +class Server(Config): + _session = requests.session() + timelineHeaders = {} + Headers = {} + + def __init__(self): + self.Headers = {} + self.channelHeaders = {} + Config.__init__(self) + + def parseUrl(self, path): + return self.LINE_HOST_DOMAIN + path + + def urlEncode(self, url, path, params=[]): + return url + path + '?' + urllib.parse.urlencode(params) + + def getJson(self, url, allowHeader=False): + if allowHeader is False: + return json.loads(self._session.get(url).text) + else: + return json.loads(self._session.get(url, headers=self.Headers).text) + + def setHeadersWithDict(self, headersDict): + self.Headers.update(headersDict) + + def setHeaders(self, argument, value): + self.Headers[argument] = value + + def setTimelineHeadersWithDict(self, headersDict): + self.timelineHeaders.update(headersDict) + + def setTimelineHeaders(self, argument, value): + self.timelineHeaders[argument] = value + + def additionalHeaders(self, source, newSource): + headerList={} + headerList.update(source) + headerList.update(newSource) + return headerList + + def optionsContent(self, url, data=None, headers=None): + if headers is None: + headers=self.Headers + return self._session.options(url, headers=headers, data=data) + + def postContent(self, url, data=None, files=None, headers=None): + if headers is None: + headers=self.Headers + return self._session.post(url, headers=headers, data=data, files=files) + + def getContent(self, url, headers=None): + if headers is None: + headers=self.Headers + return self._session.get(url, headers=headers, stream=True) + + def deleteContent(self, url, data=None, headers=None): + if headers is None: + headers=self.Headers + return self._session.delete(url, headers=headers, data=data) + + def putContent(self, url, data=None, headers=None): + if headers is None: + headers=self.Headers + return self._session.put(url, headers=headers, data=data) \ No newline at end of file diff --git a/linepy/session.py b/linepy/session.py new file mode 100644 index 0000000..d0e3aa0 --- /dev/null +++ b/linepy/session.py @@ -0,0 +1,70 @@ +# -*- coding: utf-8 -*- +from thrift.transport import THttpClient +from thrift.protocol import TCompactProtocol +from akad import AuthService, TalkService, ChannelService, CallService, SquareService + +class Session: + + def __init__(self, url, headers, path=''): + self.host = url + path + self.headers = headers + + def Auth(self, isopen=True): + self.transport = THttpClient.THttpClient(self.host) + self.transport.setCustomHeaders(self.headers) + + self.protocol = TCompactProtocol.TCompactProtocol(self.transport) + self._auth = AuthService.Client(self.protocol) + + if isopen: + self.transport.open() + + return self._auth + + def Talk(self, isopen=True): + self.transport = THttpClient.THttpClient(self.host) + self.transport.setCustomHeaders(self.headers) + + self.protocol = TCompactProtocol.TCompactProtocol(self.transport) + self._talk = TalkService.Client(self.protocol) + + if isopen: + self.transport.open() + + return self._talk + + def Channel(self, isopen=True): + self.transport = THttpClient.THttpClient(self.host) + self.transport.setCustomHeaders(self.headers) + + self.protocol = TCompactProtocol.TCompactProtocol(self.transport) + self._channel = ChannelService.Client(self.protocol) + + if isopen: + self.transport.open() + + return self._channel + + def Call(self, isopen=True): + self.transport = THttpClient.THttpClient(self.host) + self.transport.setCustomHeaders(self.headers) + + self.protocol = TCompactProtocol.TCompactProtocol(self.transport) + self._call = CallService.Client(self.protocol) + + if isopen: + self.transport.open() + + return self._call + + def Square(self, isopen=True): + self.transport = THttpClient.THttpClient(self.host) + self.transport.setCustomHeaders(self.headers) + + self.protocol = TCompactProtocol.TCompactProtocol(self.transport) + self._square = SquareService.Client(self.protocol) + + if isopen: + self.transport.open() + + return self._square \ No newline at end of file diff --git a/linepy/square.py b/linepy/square.py new file mode 100644 index 0000000..4e8674c --- /dev/null +++ b/linepy/square.py @@ -0,0 +1,407 @@ +# -*- coding: utf-8 -*- +from akad.ttypes import * +from random import randint + +def loggedIn(func): + def checkLogin(*args, **kwargs): + if args[0].isSupportSquare: + if args[0].isLogin: + return func(*args, **kwargs) + else: + args[0].callback.other('You want to call the function, you must login to LINE') + else: + args[0].callback.other('Your LINE account is not support Square') + return checkLogin + +class Square(object): + isSupportSquare = False + isLogin = False + + def __init__(self): + self.isLogin = True + try: + self.isSupportSquare = True + self.squares = self.getJoinedSquares().squares + self.squareObsToken = self.acquireEncryptedAccessToken(2).split('\x1e')[1] + except: + self.isSupportSquare = False + self.log('Your LINE account is not support Square') + + """Object""" + + @loggedIn + def sendSquareImage(self, squareChatMid, path): # Under development + return self.uploadObjSquare(squareChatMid=squareChatMid, path=path, type='image', returnAs='bool') + + @loggedIn + def sendSquareImageWithURL(self, squareChatMid, url): # Under development + path = self.downloadFileURL(url, 'path') + return self.sendSquareImage(squareChatMid, path) + + @loggedIn + def sendSquareGIF(self, squareChatMid, path): # Under development + return self.uploadObjSquare(squareChatMid=squareChatMid, path=path, type='gif', returnAs='bool') + + @loggedIn + def sendSquareGIFWithURL(self, squareChatMid, url): # Under development + path = self.downloadFileURL(url, 'path') + return self.sendSquareGIF(squareChatMid, path) + + @loggedIn + def sendSquareVideo(self, squareChatMid, path): # Under development + return self.uploadObjSquare(squareChatMid=squareChatMid, path=path, type='video', returnAs='bool') + + @loggedIn + def sendSquareVideoWithURL(self, squareChatMid, url): # Under development + path = self.downloadFileURL(url, 'path') + return self.sendSquareVideo(squareChatMid, path) + + @loggedIn + def sendSquareAudio(self, squareChatMid, path): # Under development + return self.uploadObjSquare(squareChatMid=squareChatMid, path=path, type='audio', returnAs='bool') + + @loggedIn + def sendSquareAudioWithURL(self, squareChatMid, url): # Under development + path = self.downloadFileURL(url, 'path') + return self.sendSquareAudio(squareChatMid, path) + + @loggedIn + def sendSquareFile(self, squareChatMid, path): # Under development + return self.uploadObjSquare(squareChatMid=squareChatMid, path=path, type='file', returnAs='bool') + + @loggedIn + def sendSquareFileWithURL(self, squareChatMid, url, fileName=''): # Under development + path = self.downloadFileURL(url, 'path') + return self.sendSquareFile(squareChatMid, path, fileName) + + """Square Message""" + + @loggedIn + def sendSquareMessage(self, squareChatMid, text, contentMetadata={}, contentType=0): + rq = SendMessageRequest() + rq.squareChatMid = squareChatMid + rq.squareMessage = SquareMessage() + msg = Message() + msg.to = squareChatMid + msg.text = text + msg.contentType, msg.contentMetadata = contentType, contentMetadata + rq.squareMessage.message = msg + rq.squareMessage.fromType = 4 + if squareChatMid not in self._messageReq: + self._messageReq[squareChatMid] = -1 + self._messageReq[squareChatMid] += 1 + rq.squareMessage.squareMessageRevision = self._messageReq[squareChatMid] + return self.square.sendMessage(rq) + + @loggedIn + def sendSquareSticker(self, squareChatMid, packageId, stickerId): + contentMetadata = { + 'STKVER': '100', + 'STKPKGID': packageId, + 'STKID': stickerId + } + return self.sendSquareMessage(squareChatMid, '', contentMetadata, 7) + + @loggedIn + def sendSquareContact(self, squareChatMid, mid): + contentMetadata = {'mid': mid} + return self.sendSquareMessage(squareChatMid, '', contentMetadata, 13) + + @loggedIn + def sendSquareGift(self, squareChatMid, productId, productType): + if productType not in ['theme','sticker']: + raise Exception('Invalid productType value') + contentMetadata = { + 'MSGTPL': str(randint(0, 10)), + 'PRDTYPE': productType.upper(), + 'STKPKGID' if productType == 'sticker' else 'PRDID': productId + } + return self.sendSquareMessage(squareChatMid, '', contentMetadata, 9) + + @loggedIn + def destroySquareMessage(self, squareChatMid, messageId): + rq = DestroyMessageRequest() + rq.squareChatMid = squareChatMid + rq.messageId = messageId + return self.square.destroyMessage(rq) + + """Square""" + + @loggedIn + def searchSquareMembers(self, squareMid, continuationToken=None, limit=50): + rq = SearchSquareMembersRequest() + rq.squareMid = squareMid + rq.searchOption = SquareMemberSearchOption() + rq.continuationToken = continuationToken + rq.limit = limit + return self.square.searchSquareMembers(rq) + + @loggedIn + def findSquareByInvitationTicket(self, invitationTicket): + rq = FindSquareByInvitationTicketRequest() + rq.invitationTicket = invitationTicket + return self.square.findSquareByInvitationTicket(rq) + + @loggedIn + def approveSquareMembers(self, squareMid, requestedMemberMids=[]): + rq = ApproveSquareMembersRequest() + rq.squareMid = squareMid + rq.requestedMemberMids = requestedMemberMids + return self.square.approveSquareMembers(rq) + + @loggedIn + def deleteSquare(self, mid): + rq = DeleteSquareRequest() + rq.mid = mid + rq.revision = self.revision + return self.square.deleteSquare(rq) + + @loggedIn + def deleteSquareChat(self, squareChatMid): + rq = DeleteSquareChatRequest() + rq.squareChatMid = squareChatMid + rq.revision = self.revision + return self.square.deleteSquareChat(request) + + @loggedIn + def createSquare(self, name, categoryID, welcomeMessage='', profileImageObsHash='', desc='', searchable=True, type=1, ableToUseInvitationTicket=True): + rq = CreateSquareRequest() + rq.square = Square() + rq.square.name = name + rq.square.categoryID = categoryID + rq.square.welcomeMessage = welcomeMessage + rq.square.profileImageObsHash = profileImageObsHash + rq.square.desc = desc + rq.square.searchable = searchable + rq.square.type = type + rq.square.ableToUseInvitationTicket = ableToUseInvitationTicket + rq.creator = SquareMember() + return self.square.createSquare(rq) + + @loggedIn + def createSquareChat(self, squareMid, name, squareMemberMids): + rq = CreateSquareChatRequest() + rq.reqSeq = self.revision + rq.squareChat = SquareChat() + rq.squareChat.squareMid = squareMid + rq.squareChat.name = name + rq.squareMemberMids = squareMemberMids + return self.square.createSquareChat(request) + + @loggedIn + def fetchSquareChatEvents(self, squareChatMid, subscriptionId=0, syncToken='', limit=50, direction=2): + rq = FetchSquareChatEventsRequest() + rq.squareChatMid = squareChatMid + rq.subscriptionId = subscriptionId + rq.syncToken = syncToken + rq.limit = limit + rq.direction = direction + return self.square.fetchSquareChatEvents(rq) + + @loggedIn + def fetchMyEvents(self, subscriptionId=0, syncToken='', continuationToken=None, limit=50): + rq = FetchMyEventsRequest() + rq.subscriptionId = subscriptionId + rq.syncToken = syncToken + rq.continuationToken = continuationToken + rq.limit = limit + return self.square.fetchMyEvents(rq) + + @loggedIn + def markAsRead(self, squareChatMid, messageId): + rq = MarkAsReadRequest() + rq.squareChatMid = squareChatMid + rq.messageId = messageId + return self.square.markAsRead(rq) + + @loggedIn + def getSquareAuthority(self, squareMid): + rq = GetSquareAuthorityRequest() + rq.squareMid = squareMid + return self.square.getSquareAuthority(rq) + + @loggedIn + def leaveSquare(self, squareMid): + rq = LeaveSquareRequest() + rq.squareMid = squareMid + return self.square.leaveSquare(rq) + + @loggedIn + def leaveSquareChat(self, squareChatMid, squareChatMemberRevision, sayGoodbye=True): + rq = LeaveSquareChatRequest() + rq.squareChatMid = squareChatMid + rq.sayGoodbye = sayGoodbye + rq.squareChatMemberRevision = squareChatMemberRevision + return self.square.leaveSquareChat(rq) + + @loggedIn + def joinSquareChat(self, squareChatMid): + rq = JoinSquareChatRequest() + rq.squareChatMid = squareChatMid + return self.square.joinSquareChat(rq) + + @loggedIn + def joinSquare(self, squareMid, displayName, profileImageObsHash): + rq = JoinSquareRequest() + rq.squareMid = squareMid + rq.member = SquareMember() + rq.member.squareMid = squareMid + rq.member.displayName = displayName + rq.member.profileImageObsHash = profileImageObsHash + return self.square.joinSquare(rq) + + @loggedIn + def inviteToSquare(self, squareMid, squareChatMid, invitees=[]): + rq = InviteToSquareRequest() + rq.squareMid = squareMid + rq.invitees = invitees + rq.squareChatMid = squareChatMid + return self.square.inviteToSquare(rq) + + @loggedIn + def inviteToSquareChat(self, squareChatMid, inviteeMids=[]): + rq = InviteToSquareChatRequest() + rq.inviteeMids = inviteeMids + rq.squareChatMid = squareChatMid + return self.square.inviteToSquareChat(rq) + + @loggedIn + def getSquareMember(self, squareMemberMid): + rq = GetSquareMemberRequest() + rq.squareMemberMid = squareMemberMid + return self.square.getSquareMember(rq) + + @loggedIn + def getSquareMembers(self, mids=[]): + rq = GetSquareMembersRequest() + rq.mids = mids + return self.square.getSquareMembers(rq) + + @loggedIn + def getSquareMemberRelation(self, squareMid, targetSquareMemberMid): + rq = GetSquareMemberRelationRequest() + rq.squareMid = squareMid + rq.targetSquareMemberMid = targetSquareMemberMid + return self.square.getSquareMemberRelation(rq) + + @loggedIn + def getSquareMemberRelations(self, state=1, continuationToken=None, limit=50): + rq = GetSquareMemberRelationsRequest() + rq.state = state # 1 NONE, 2 BLOCKED + rq.continuationToken = continuationToken + rq.limit = limit + return self.square.getSquareMemberRelations(rq) + + @loggedIn + def getSquareChatMembers(self, squareChatMid, continuationToken=None, limit=50): + rq = GetSquareChatMembersRequest() + rq.squareChatMid = squareChatMid + rq.continuationToken = continuationToken + rq.limit = limit + return self.square.getSquareChatMembers(rq) + + @loggedIn + def getSquareChatStatus(self, squareChatMid): + rq = GetSquareChatStatusRequest() + rq.squareChatMid = squareChatMid + return self.square.getSquareChatStatus(rq) + + @loggedIn + def getSquareChat(self, squareChatMid): + rq = GetSquareChatRequest() + rq.squareChatMid = squareChatMid + return self.square.getSquareChat(rq) + + @loggedIn + def getSquare(self, mid): + rq = GetSquareRequest() + rq.mid = mid + return self.square.getSquare(rq) + + @loggedIn + def getSquareChatAnnouncements(self, squareChatMid): + rq = GetSquareChatAnnouncementsRequest() + rq.squareChatMid = squareChatMid + return self.square.getSquareChatAnnouncements(rq) + + @loggedIn + def deleteSquareChatAnnouncement(self, squareChatMid, announcementSeq): + rq = DeleteSquareChatAnnouncementRequest() + rq.squareChatMid = squareChatMid + rq.squareChatMid = announcementSeq + return self.square.deleteSquareChatAnnouncement(rq) + + @loggedIn + def createSquareChatAnnouncement(self, squareChatMid, text, messageId='', senderSquareMemberMid=''): + rq = CreateSquareChatAnnouncementRequest() + rq.reqSeq = 0 + rq.squareChatMid = squareChatMid + rq.squareChatAnnouncement = SquareChatAnnouncement() + rq.squareChatAnnouncement.announcementSeq = 0 + rq.squareChatAnnouncement.type = 0 + rq.squareChatAnnouncement.contents = SquareChatAnnouncementContents() + rq.squareChatAnnouncement.contents.textMessageAnnouncementContents = TextMessageAnnouncementContents() + rq.squareChatAnnouncement.contents.textMessageAnnouncementContents.messageId = messageId + rq.squareChatAnnouncement.contents.textMessageAnnouncementContents.text = text + rq.squareChatAnnouncement.contents.textMessageAnnouncementContents.senderSquareMemberMid = senderSquareMemberMid + return self.square.createSquareChatAnnouncement(rq) + + @loggedIn + def getJoinedSquares(self, continuationToken=None, limit=50): + rq = GetJoinedSquaresRequest() + rq.continuationToken = continuationToken + rq.limit = limit + return self.square.getJoinedSquares(rq) + + @loggedIn + def getJoinedSquareChats(self, continuationToken=None, limit=50): + rq = GetJoinedSquareChatsRequest() + rq.continuationToken = continuationToken + rq.limit = limit + return self.square.getJoinedSquareChats(rq) + + @loggedIn + def getJoinableSquareChats(self, squareMid, continuationToken=None, limit=50): + rq = GetJoinableSquareChatsRequest() + rq.squareMid = squareMid + rq.continuationToken = continuationToken + rq.limit = limit + return self.square.getJoinableSquareChats(rq) + + @loggedIn + def getInvitationTicketUrl(self, mid): + rq = GetInvitationTicketUrlRequest() + rq.mid = mid + return self.square.getInvitationTicketUrl(rq) + + @loggedIn + def getSquareStatus(self, squareMid): + rq = GetSquareStatusRequest() + rq.squareMid = squareMid + return self.square.getSquareStatus(rq) + + @loggedIn + def getNoteStatus(self, squareMid): + rq = GetNoteStatusRequest() + rq.squareMid = squareMid + return self.square.getNoteStatus(rq) + + @loggedIn + def searchSquares(self, query, continuationToken=None, limit=50): + rq = SearchSquaresRequest() + rq.query = query + rq.continuationToken = continuationToken + rq.limit = limit + return self.square.searchSquares(rq) + + @loggedIn + def refreshSubscriptions(self, subscriptions=[]): + rq = RefreshSubscriptionsRequest() + rq.subscriptions = subscriptions + return self.square.refreshSubscriptions(rq) + + @loggedIn + def removeSubscriptions(self, unsubscriptions=[]): + rq = RemoveSubscriptionsRequest() + rq.unsubscriptions = unsubscriptions + return self.square.removeSubscriptions(rq) \ No newline at end of file diff --git a/linepy/talk.py b/linepy/talk.py new file mode 100644 index 0000000..102a1b4 --- /dev/null +++ b/linepy/talk.py @@ -0,0 +1,478 @@ +# -*- coding: utf-8 -*- +from akad.ttypes import Message +from random import randint + +import json, ntpath + +def loggedIn(func): + def checkLogin(*args, **kwargs): + if args[0].isLogin: + return func(*args, **kwargs) + else: + args[0].callback.other('You want to call the function, you must login to LINE') + return checkLogin + +class Talk(object): + isLogin = False + _messageReq = {} + _unsendMessageReq = 0 + + def __init__(self): + self.isLogin = True + + """User""" + + @loggedIn + def acquireEncryptedAccessToken(self, featureType=2): + return self.talk.acquireEncryptedAccessToken(featureType) + + @loggedIn + def getProfile(self): + return self.talk.getProfile() + + @loggedIn + def getSettings(self): + return self.talk.getSettings() + + @loggedIn + def getUserTicket(self): + return self.talk.getUserTicket() + + @loggedIn + def updateProfile(self, profileObject): + return self.talk.updateProfile(0, profileObject) + + @loggedIn + def updateSettings(self, settingObject): + return self.talk.updateSettings(0, settingObject) + + @loggedIn + def updateProfileAttribute(self, attrId, value): + return self.talk.updateProfileAttribute(0, attrId, value) + + """Operation""" + + @loggedIn + def fetchOperation(self, revision, count): + return self.talk.fetchOperations(revision, count) + + @loggedIn + def getLastOpRevision(self): + return self.talk.getLastOpRevision() + + """Message""" + + @loggedIn + def sendMessage(self, to, text, contentMetadata={}, contentType=0): + msg = Message() + msg.to, msg._from = to, self.profile.mid + msg.text = text + msg.contentType, msg.contentMetadata = contentType, contentMetadata + if to not in self._messageReq: + self._messageReq[to] = -1 + self._messageReq[to] += 1 + return self.talk.sendMessage(self._messageReq[to], msg) + + """ Usage: + @to Integer + @text String + @dataMid List of user Mid + """ + @loggedIn + def sendMessageWithMention(self, to, text='', dataMid=[]): + arr = [] + list_text='' + if '[list]' in text.lower(): + i=0 + for l in dataMid: + list_text+='\n@[list-'+str(i)+']' + i=i+1 + text=text.replace('[list]', list_text) + elif '[list-' in text.lower(): + text=text + else: + i=0 + for l in dataMid: + list_text+=' @[list-'+str(i)+']' + i=i+1 + text=text+list_text + i=0 + for l in dataMid: + mid=l + name='@[list-'+str(i)+']' + ln_text=text.replace('\n',' ') + if ln_text.find(name): + line_s=int(ln_text.index(name)) + line_e=(int(line_s)+int(len(name))) + arrData={'S': str(line_s), 'E': str(line_e), 'M': mid} + arr.append(arrData) + i=i+1 + contentMetadata={'MENTION':str('{"MENTIONEES":' + json.dumps(arr).replace(' ','') + '}')} + return self.sendMessage(to, text, contentMetadata) + + @loggedIn + def sendSticker(self, to, packageId, stickerId): + contentMetadata = { + 'STKVER': '100', + 'STKPKGID': packageId, + 'STKID': stickerId + } + return self.sendMessage(to, '', contentMetadata, 7) + + @loggedIn + def sendContact(self, to, mid): + contentMetadata = {'mid': mid} + return self.sendMessage(to, '', contentMetadata, 13) + + @loggedIn + def sendGift(self, to, productId, productType): + if productType not in ['theme','sticker']: + raise Exception('Invalid productType value') + contentMetadata = { + 'MSGTPL': str(randint(0, 12)), + 'PRDTYPE': productType.upper(), + 'STKPKGID' if productType == 'sticker' else 'PRDID': productId + } + return self.sendMessage(to, '', contentMetadata, 9) + + @loggedIn + def sendMessageAwaitCommit(self, to, text, contentMetadata={}, contentType=0): + msg = Message() + msg.to, msg._from = to, self.profile.mid + msg.text = text + msg.contentType, msg.contentMetadata = contentType, contentMetadata + if to not in self._messageReq: + self._messageReq[to] = -1 + self._messageReq[to] += 1 + return self.talk.sendMessageAwaitCommit(self._messageReq[to], msg) + + @loggedIn + def unsendMessage(self, messageId): + self._unsendMessageReq += 1 + return self.talk.unsendMessage(self._unsendMessageReq, messageId) + + @loggedIn + def requestResendMessage(self, senderMid, messageId): + return self.talk.requestResendMessage(0, senderMid, messageId) + + @loggedIn + def respondResendMessage(self, receiverMid, originalMessageId, resendMessage, errorCode): + return self.talk.respondResendMessage(0, receiverMid, originalMessageId, resendMessage, errorCode) + + @loggedIn + def removeMessage(self, messageId): + return self.talk.removeMessage(messageId) + + @loggedIn + def removeAllMessages(self, lastMessageId): + return self.talk.removeAllMessages(0, lastMessageId) + + @loggedIn + def removeMessageFromMyHome(self, messageId): + return self.talk.removeMessageFromMyHome(messageId) + + @loggedIn + def destroyMessage(self, chatId, messageId): + return self.talk.destroyMessage(0, chatId, messageId, sessionId) + + @loggedIn + def sendChatChecked(self, consumer, messageId): + return self.talk.sendChatChecked(0, consumer, messageId) + + @loggedIn + def sendEvent(self, messageObject): + return self.talk.sendEvent(0, messageObject) + + @loggedIn + def getLastReadMessageIds(self, chatId): + return self.talk.getLastReadMessageIds(0, chatId) + + @loggedIn + def getPreviousMessagesV2WithReadCount(self, messageBoxId, endMessageId, messagesCount=50): + return self.talk.getPreviousMessagesV2WithReadCount(messageBoxId, endMessageId, messagesCount) + + """Object""" + + @loggedIn + def sendImage(self, to, path): + objectId = self.sendMessage(to=to, text=None, contentType = 1).id + return self.uploadObjTalk(path=path, type='image', returnAs='bool', objId=objectId) + + @loggedIn + def sendImageWithURL(self, to, url): + path = self.downloadFileURL(url, 'path') + return self.sendImage(to, path) + return self.deleteFile(path) + + @loggedIn + def sendGIF(self, to, path): + return self.uploadObjTalk(path=path, type='gif', returnAs='bool', to=to) + + @loggedIn + def sendGIFWithURL(self, to, url): + path = self.downloadFileURL(url, 'path') + return self.sendGIF(to, path) + return self.deleteFile(path) + + @loggedIn + def sendVideo(self, to, path): + objectId = self.sendMessage(to=to, text=None, contentMetadata={'VIDLEN': '60000','DURATION': '60000'}, contentType = 2).id + return self.uploadObjTalk(path=path, type='video', returnAs='bool', objId=objectId) + + @loggedIn + def sendVideoWithURL(self, to, url): + path = self.downloadFileURL(url, 'path') + return self.sendVideo(to, path) + return self.deleteFile(path) + + @loggedIn + def sendAudio(self, to, path): + objectId = self.sendMessage(to=to, text=None, contentType = 3).id + return self.uploadObjTalk(path=path, type='audio', returnAs='bool', objId=objectId) + + @loggedIn + def sendAudioWithURL(self, to, url): + path = self.downloadFileURL(url, 'path') + return self.sendAudio(to, path) + return self.deleteFile(path) + + @loggedIn + def sendFile(self, to, path, file_name=''): + if file_name == '': + file_name = ntpath.basename(path) + file_size = len(open(path, 'rb').read()) + objectId = self.sendMessage(to=to, text=None, contentMetadata={'FILE_NAME': str(file_name),'FILE_SIZE': str(file_size)}, contentType = 14).id + return self.uploadObjTalk(path=path, type='file', returnAs='bool', objId=objectId) + + @loggedIn + def sendFileWithURL(self, to, url, fileName=''): + path = self.downloadFileURL(url, 'path') + return self.sendFile(to, path, fileName) + return self.deleteFile(path) + + """Contact""" + + @loggedIn + def blockContact(self, mid): + return self.talk.blockContact(0, mid) + + @loggedIn + def unblockContact(self, mid): + return self.talk.unblockContact(0, mid) + + @loggedIn + def findAndAddContactByMetaTag(self, userid, reference): + return self.talk.findAndAddContactByMetaTag(0, userid, reference) + + @loggedIn + def findAndAddContactsByMid(self, mid): + return self.talk.findAndAddContactsByMid(0, mid, 0, '') + + @loggedIn + def findAndAddContactsByEmail(self, emails=[]): + return self.talk.findAndAddContactsByEmail(0, emails) + + @loggedIn + def findAndAddContactsByUserid(self, userid): + return self.talk.findAndAddContactsByUserid(0, userid) + + @loggedIn + def findContactsByUserid(self, userid): + return self.talk.findContactByUserid(userid) + + @loggedIn + def findContactByTicket(self, ticketId): + return self.talk.findContactByUserTicket(ticketId) + + @loggedIn + def getAllContactIds(self): + return self.talk.getAllContactIds() + + @loggedIn + def getBlockedContactIds(self): + return self.talk.getBlockedContactIds() + + @loggedIn + def getContact(self, mid): + return self.talk.getContact(mid) + + @loggedIn + def getContacts(self, midlist): + return self.talk.getContacts(midlist) + + @loggedIn + def getFavoriteMids(self): + return self.talk.getFavoriteMids() + + @loggedIn + def getHiddenContactMids(self): + return self.talk.getHiddenContactMids() + + @loggedIn + def tryFriendRequest(self, midOrEMid, friendRequestParams, method=1): + return self.talk.tryFriendRequest(midOrEMid, method, friendRequestParams) + + @loggedIn + def makeUserAddMyselfAsContact(self, contactOwnerMid): + return self.talk.makeUserAddMyselfAsContact(contactOwnerMid) + + @loggedIn + def getContactWithFriendRequestStatus(self, id): + return self.talk.getContactWithFriendRequestStatus(id) + + @loggedIn + def reissueUserTicket(self, expirationTime=100, maxUseCount=100): + return self.talk.reissueUserTicket(expirationTime, maxUseCount) + + @loggedIn + def cloneContactProfile(self, mid): + contact = self.getContact(mid) + profile = self.profile + profile.displayName = contact.displayName + profile.statusMessage = contact.statusMessage + profile.pictureStatus = contact.pictureStatus + if self.getProfileCoverId(mid) is not None: + self.updateProfileCoverById(self.getProfileCoverId(mid)) + self.updateProfileAttribute(8, profile.pictureStatus) + return self.updateProfile(profile) + + """Group""" + + @loggedIn + def getChatRoomAnnouncementsBulk(self, chatRoomMids): + return self.talk.getChatRoomAnnouncementsBulk(chatRoomMids) + + @loggedIn + def getChatRoomAnnouncements(self, chatRoomMid): + return self.talk.getChatRoomAnnouncements(chatRoomMid) + + @loggedIn + def createChatRoomAnnouncement(self, chatRoomMid, type, contents): + return self.talk.createChatRoomAnnouncement(0, chatRoomMid, type, contents) + + @loggedIn + def removeChatRoomAnnouncement(self, chatRoomMid, announcementSeq): + return self.talk.removeChatRoomAnnouncement(0, chatRoomMid, announcementSeq) + + @loggedIn + def getGroupWithoutMembers(self, groupId): + return self.talk.getGroupWithoutMembers(groupId) + + @loggedIn + def findGroupByTicket(self, ticketId): + return self.talk.findGroupByTicket(ticketId) + + @loggedIn + def acceptGroupInvitation(self, groupId): + return self.talk.acceptGroupInvitation(0, groupId) + + @loggedIn + def acceptGroupInvitationByTicket(self, groupId, ticketId): + return self.talk.acceptGroupInvitationByTicket(0, groupId, ticketId) + + @loggedIn + def cancelGroupInvitation(self, groupId, contactIds): + return self.talk.cancelGroupInvitation(0, groupId, contactIds) + + @loggedIn + def createGroup(self, name, midlist): + return self.talk.createGroup(0, name, midlist) + + @loggedIn + def getGroup(self, groupId): + return self.talk.getGroup(groupId) + + @loggedIn + def getGroups(self, groupIds): + return self.talk.getGroups(groupIds) + + @loggedIn + def getGroupsV2(self, groupIds): + return self.talk.getGroupsV2(groupIds) + + @loggedIn + def getCompactGroup(self, groupId): + return self.talk.getCompactGroup(groupId) + + @loggedIn + def getCompactRoom(self, roomId): + return self.talk.getCompactRoom(roomId) + + @loggedIn + def getGroupIdsByName(self, groupName): + gIds = [] + for gId in self.getGroupIdsJoined(): + g = self.getCompactGroup(gId) + if groupName in g.name: + gIds.append(gId) + return gIds + + @loggedIn + def getGroupIdsInvited(self): + return self.talk.getGroupIdsInvited() + + @loggedIn + def getGroupIdsJoined(self): + return self.talk.getGroupIdsJoined() + + @loggedIn + def updateGroupPreferenceAttribute(self, groupMid, updatedAttrs): + return self.talk.updateGroupPreferenceAttribute(0, groupMid, updatedAttrs) + + @loggedIn + def inviteIntoGroup(self, groupId, midlist): + return self.talk.inviteIntoGroup(0, groupId, midlist) + + @loggedIn + def kickoutFromGroup(self, groupId, midlist): + return self.talk.kickoutFromGroup(0, groupId, midlist) + + @loggedIn + def leaveGroup(self, groupId): + return self.talk.leaveGroup(0, groupId) + + @loggedIn + def rejectGroupInvitation(self, groupId): + return self.talk.rejectGroupInvitation(0, groupId) + + @loggedIn + def reissueGroupTicket(self, groupId): + return self.talk.reissueGroupTicket(groupId) + + @loggedIn + def updateGroup(self, groupObject): + return self.talk.updateGroup(0, groupObject) + + """Room""" + + @loggedIn + def createRoom(self, midlist): + return self.talk.createRoom(0, midlist) + + @loggedIn + def getRoom(self, roomId): + return self.talk.getRoom(roomId) + + @loggedIn + def inviteIntoRoom(self, roomId, midlist): + return self.talk.inviteIntoRoom(0, roomId, midlist) + + @loggedIn + def leaveRoom(self, roomId): + return self.talk.leaveRoom(0, roomId) + + """Call""" + + @loggedIn + def acquireCallTalkRoute(self, to): + return self.talk.acquireCallRoute(to) + + """Report""" + + @loggedIn + def reportSpam(self, chatMid, memberMids=[], spammerReasons=[], senderMids=[], spamMessageIds=[], spamMessages=[]): + return self.talk.reportSpam(chatMid, memberMids, spammerReasons, senderMids, spamMessageIds, spamMessages) + + @loggedIn + def reportSpammer(self, spammerMid, spammerReasons=[], spamMessageIds=[]): + return self.talk.reportSpammer(spammerMid, spammerReasons, spamMessageIds) \ No newline at end of file diff --git a/linepy/timeline.py b/linepy/timeline.py new file mode 100644 index 0000000..dec7072 --- /dev/null +++ b/linepy/timeline.py @@ -0,0 +1,243 @@ +# -*- coding: utf-8 -*- +from datetime import datetime +from .channel import Channel + +import json, time, base64 + +def loggedIn(func): + def checkLogin(*args, **kwargs): + if args[0].isLogin: + return func(*args, **kwargs) + else: + args[0].callback.other('You want to call the function, you must login to LINE') + return checkLogin + +class Timeline(Channel): + + def __init__(self): + Channel.__init__(self, self.channel, self.server.CHANNEL_ID['LINE_TIMELINE'], False) + self.tl = self.getChannelResult() + self.__loginTimeline() + + def __loginTimeline(self): + self.server.setTimelineHeadersWithDict({ + 'Content-Type': 'application/json', + 'User-Agent': self.server.USER_AGENT, + 'X-Line-Mid': self.profile.mid, + 'X-Line-Carrier': self.server.CARRIER, + 'X-Line-Application': self.server.APP_NAME, + 'X-Line-ChannelToken': self.tl.channelAccessToken + }) + self.profileDetail = self.getProfileDetail() + + """Timeline""" + + @loggedIn + def getFeed(self, postLimit=10, commentLimit=1, likeLimit=1, order='TIME'): + params = {'postLimit': postLimit, 'commentLimit': commentLimit, 'likeLimit': likeLimit, 'order': order} + url = self.server.urlEncode(self.server.LINE_TIMELINE_API, '/v27/feed/list.json', params) + r = self.server.getContent(url, headers=self.server.timelineHeaders) + return r.json() + + @loggedIn + def getHomeProfile(self, mid=None, postLimit=10, commentLimit=1, likeLimit=1): + if mid is None: + mid = self.profile.mid + params = {'homeId': mid, 'postLimit': postLimit, 'commentLimit': commentLimit, 'likeLimit': likeLimit, 'sourceType': 'LINE_PROFILE_COVER'} + url = self.server.urlEncode(self.server.LINE_TIMELINE_API, '/v27/post/list.json', params) + r = self.server.getContent(url, headers=self.server.timelineHeaders) + return r.json() + + @loggedIn + def getProfileDetail(self, mid=None): + if mid is None: + mid = self.profile.mid + params = {'userMid': mid} + url = self.server.urlEncode(self.server.LINE_TIMELINE_API, '/v1/userpopup/getDetail.json', params) + r = self.server.getContent(url, headers=self.server.timelineHeaders) + return r.json() + + @loggedIn + def updateProfileCoverById(self, objId): + params = {'coverImageId': objId} + url = self.server.urlEncode(self.server.LINE_TIMELINE_API, '/v39/home/updateCover.json', params) + r = self.server.getContent(url, headers=self.server.timelineHeaders) + return r.json() + + @loggedIn + def getProfileCoverId(self, mid=None): + if mid is None: + mid = self.profile.mid + home = self.getProfileDetail(mid) + return home['result']['objectId'] + + @loggedIn + def getProfileCoverURL(self, mid=None): + if mid is None: + mid = self.profile.mid + home = self.getProfileDetail(mid) + params = {'userid': mid, 'oid': home['result']['objectId']} + return self.server.urlEncode(self.server.LINE_OBS_DOMAIN, '/myhome/c/download.nhn', params) + + """Post""" + + @loggedIn + def createPost(self, text, holdingTime=None): + params = {'homeId': mid, 'sourceType': 'TIMELINE'} + url = self.server.urlEncode(self.server.LINE_TIMELINE_API, '/v33/post/create.json', params) + payload = {'postInfo': {'readPermission': {'type': 'ALL'}}, 'sourceType': 'TIMELINE', 'contents': {'text': text}} + if holdingTime != None: + payload["postInfo"]["holdingTime"] = holdingTime + data = json.dumps(payload) + r = self.server.postContent(url, data=data, headers=self.server.timelineHeaders) + return r.json() + + @loggedIn + def sendPostToTalk(self, mid, postId): + if mid is None: + mid = self.profile.mid + params = {'receiveMid': mid, 'postId': postId} + url = self.server.urlEncode(self.server.LINE_TIMELINE_API, '/v33/post/sendPostToTalk.json', params) + r = self.server.getContent(url, data=data, headers=self.server.timelineHeaders) + return r.json() + + @loggedIn + def createComment(self, mid, postId, text): + if mid is None: + mid = self.profile.mid + params = {'homeId': mid, 'sourceType': 'TIMELINE'} + url = self.server.urlEncode(self.server.LINE_TIMELINE_API, '/v33/comment/create.json', params) + data = {'commentText': text, 'activityExternalId': postId, 'actorId': mid} + r = self.server.postContent(url, data=data, headers=self.server.timelineHeaders) + return r.json() + + @loggedIn + def deleteComment(self, mid, postId, commentId): + if mid is None: + mid = self.profile.mid + params = {'homeId': mid, 'sourceType': 'TIMELINE'} + url = self.server.urlEncode(self.server.LINE_TIMELINE_API, '/v33/comment/delete.json', params) + data = {'commentId': commentId, 'activityExternalId': postId, 'actorId': mid} + r = self.server.postContent(url, data=data, headers=self.server.timelineHeaders) + return r.json() + + @loggedIn + def likePost(self, mid, postId, likeType=1001): + if mid is None: + mid = self.profile.mid + if likeType not in [1001,1002,1003,1004,1005,1006]: + raise Exception('Invalid parameter likeType') + params = {'homeId': mid, 'sourceType': 'TIMELINE'} + url = self.server.urlEncode(self.server.LINE_TIMELINE_API, '/v33/like/create.json', params) + data = {'likeType': likeType, 'activityExternalId': postId, 'actorId': mid} + r = self.server.postContent(url, data=data, headers=self.server.timelineHeaders) + return r.json() + + @loggedIn + def unlikePost(self, mid, postId): + if mid is None: + mid = self.profile.mid + params = {'homeId': mid, 'sourceType': 'TIMELINE'} + url = self.server.urlEncode(self.server.LINE_TIMELINE_API, '/v33/like/cancel.json', params) + data = {'activityExternalId': postId, 'actorId': mid} + r = self.server.postContent(url, data=data, headers=self.server.timelineHeaders) + return r.json() + + """Group Post""" + + @loggedIn + def createGroupPost(self, mid, text): + payload = {'postInfo': {'readPermission': {'homeId': mid}}, 'sourceType': 'TIMELINE', 'contents': {'text': text}} + data = json.dumps(payload) + r = self.server.postContent(self.server.LINE_TIMELINE_API + '/v27/post/create.json', data=data, headers=self.server.timelineHeaders) + return r.json() + + @loggedIn + def createGroupAlbum(self, mid, name): + data = json.dumps({'title': name, 'type': 'image'}) + params = {'homeId': mid,'count': '1','auto': '0'} + url = self.server.urlEncode(self.server.LINE_TIMELINE_MH, '/album/v3/album.json', params) + r = self.server.postContent(url, data=data, headers=self.server.timelineHeaders) + if r.status_code != 201: + raise Exception('Create a new album failure.') + return True + + @loggedIn + def deleteGroupAlbum(self, mid, albumId): + params = {'homeId': mid} + url = self.server.urlEncode(self.server.LINE_TIMELINE_MH, '/album/v3/album/%s' % albumId, params) + r = self.server.deleteContent(url, headers=self.server.timelineHeaders) + if r.status_code != 201: + raise Exception('Delete album failure.') + return True + + @loggedIn + def getGroupPost(self, mid, postLimit=10, commentLimit=1, likeLimit=1): + params = {'homeId': mid, 'commentLimit': commentLimit, 'likeLimit': likeLimit, 'sourceType': 'TALKROOM'} + url = self.server.urlEncode(self.server.LINE_TIMELINE_API, '/v27/post/list.json', params) + r = self.server.getContent(url, headers=self.server.timelineHeaders) + return r.json() + + """Group Album""" + + @loggedIn + def getGroupAlbum(self, mid): + params = {'homeId': mid, 'type': 'g', 'sourceType': 'TALKROOM'} + url = self.server.urlEncode(self.server.LINE_TIMELINE_MH, '/album/v3/albums.json', params) + r = self.server.getContent(url, headers=self.server.timelineHeaders) + return r.json() + + @loggedIn + def changeGroupAlbumName(self, mid, albumId, name): + data = json.dumps({'title': name}) + params = {'homeId': mid} + url = self.server.urlEncode(self.server.LINE_TIMELINE_MH, '/album/v3/album/%s' % albumId, params) + r = self.server.putContent(url, data=data, headers=self.server.timelineHeaders) + if r.status_code != 201: + raise Exception('Change album name failure.') + return True + + @loggedIn + def addImageToAlbum(self, mid, albumId, path): + file = open(path, 'rb').read() + params = { + 'oid': int(time.time()), + 'quality': '90', + 'range': len(file), + 'type': 'image' + } + hr = self.server.additionalHeaders(self.server.timelineHeaders, { + 'Content-Type': 'image/jpeg', + 'X-Line-Mid': mid, + 'X-Line-Album': albumId, + 'x-obs-params': self.genOBSParams(params,'b64') + }) + r = self.server.getContent(self.server.LINE_OBS_DOMAIN + '/album/a/upload.nhn', data=file, headers=hr) + if r.status_code != 201: + raise Exception('Add image to album failure.') + return r.json() + + @loggedIn + def getImageGroupAlbum(self, mid, albumId, objId, returnAs='path', saveAs=''): + if saveAs == '': + saveAs = self.genTempFile('path') + if returnAs not in ['path','bool','bin']: + raise Exception('Invalid returnAs value') + hr = self.server.additionalHeaders(self.server.timelineHeaders, { + 'Content-Type': 'image/jpeg', + 'X-Line-Mid': mid, + 'X-Line-Album': albumId + }) + params = {'ver': '1.0', 'oid': objId} + url = self.server.urlEncode(self.server.LINE_OBS_DOMAIN, '/album/a/download.nhn', params) + r = self.server.getContent(url, headers=hr) + if r.status_code == 200: + self.saveFile(saveAs, r.raw) + if returnAs == 'path': + return saveAs + elif returnAs == 'bool': + return True + elif returnAs == 'bin': + return r.raw + else: + raise Exception('Download image album failure.') \ No newline at end of file diff --git a/new.py b/new.py new file mode 100644 index 0000000..e806e8f --- /dev/null +++ b/new.py @@ -0,0 +1,888 @@ +# -*- coding: utf-8 -*- + +from linepy import * +from datetime import datetime +from time import sleep +from humanfriendly import format_timespan, format_size, format_number, format_length +import time, random, sys, json, codecs, threading, glob, re, string, os, requests, subprocess, six, ast, pytz, urllib, urllib.parse +#==============================================================================# +botStart = time.time() + +cl = LINE() +#cl = LINE("TOKEN KAMU") +#cl = LINE("Email","Password") +cl.log("Auth Token : " + str(cl.authToken)) +channelToken = cl.getChannelResult() +cl.log("Channel Token : " + str(channelToken)) + +clMID = cl.profile.mid +clProfile = cl.getProfile() +lineSettings = cl.getSettings() +oepoll = OEPoll(cl) +owners = ["ua10c2ad470b4b6e972954e1140ad1891","ud5ff1dff426cf9e3030c7ac2a61512f0","ue006c548bfffccd02c6a125c0bd6d6f2"] +if clMID not in owners: + python = sys.executable + os.execl(python, python, *sys.argv) +#==============================================================================# +readOpen = codecs.open("read.json","r","utf-8") +settingsOpen = codecs.open("temp.json","r","utf-8") + +read = json.load(readOpen) +settings = json.load(settingsOpen) + + +myProfile = { + "displayName": "", + "statusMessage": "", + "pictureStatus": "" +} + +msg_dict = {} +bl = [""] +myProfile["displayName"] = clProfile.displayName +myProfile["statusMessage"] = clProfile.statusMessage +myProfile["pictureStatus"] = clProfile.pictureStatus +#==============================================================================# +def restartBot(): + print ("[ INFO ] BOT RESETTED") + backupData() +# time.sleep(3) + python = sys.executable + os.execl(python, python, *sys.argv) +def backupData(): + try: + backup = settings + f = codecs.open('temp.json','w','utf-8') + json.dump(backup, f, sort_keys=True, indent=4, ensure_ascii=False) + backup = read + f = codecs.open('read.json','w','utf-8') + json.dump(backup, f, sort_keys=True, indent=4, ensure_ascii=False) + return True + except Exception as error: + logError(error) + return False +def logError(text): + cl.log("[ ERROR ] " + str(text)) + time_ = datetime.now() + with open("errorLog.txt","a") as error: + error.write("\n[%s] %s" % (str(time), text)) +def sendMessageWithMention(to, mid): + try: + aa = '{"S":"0","E":"3","M":'+json.dumps(mid)+'}' + text_ = '@x ' + cl.sendMessage(to, text_, contentMetadata={'MENTION':'{"MENTIONEES":['+aa+']}'}, contentType=0) + except Exception as error: + logError(error) +def helpmessage(): + helpMessage = """ ╔═══════════ ╠🍃小新指令表🍃 ║ +╠➥【speed】測速 +╠➥【Contect @】丟出個人友資 +╠➥【Name @】丟出@的友資 +╠➥【checkread】查已讀 +╠➥【Tagall】標註全部人 +╠➥【About】關於 +╠➥【AutJoin on/off】自動加入開啟/關閉 +╠➥【AutoAdd on/off】自動添加 開啟/關閉 +╠➥【Nk @】標注踢人 +╠➥【Link on】關閉群組網址 +╠➥【Link off】開啟群組網址 +╠➥【unban @】解除某人黑單 +╠➥【Ban @】黑單標注 +╠➥【Banlist 】查看黑單 +╠➥【Nkban】 踢除黑單 +╠➥【Byeall】 翻群 +║ +╚═〘 小新的半垢指令表 〙 +""" + return helpMessage +#==============================================================================# +def lineBot(op): + try: + if op.type == 0: + print ("[ 0 ] END OF OPERATION") + return + if op.type == 5: + print ("[ 5 ] NOTIFIED ADD CONTACT") + if settings["autoAdd"] == True: + cl.sendMessage(op.param1, "感謝您加入本帳為好友w".format(str(cl.getContact(op.param1).displayName))) + if op.type == 13: + print ("[ 13 ] NOTIFIED INVITE GROUP") + group = cl.getGroup(op.param1) + if settings["autoJoin"] == True: + cl.acceptGroupInvitation(op.param1) + if op.type == 24: + print ("[ 24 ] NOTIFIED LEAVE ROOM") + if settings["autoLeave"] == True: + cl.leaveRoom(op.param1) + if op.type == 25 or op.type == 26: + print ("[ 25 ] SEND MESSAGE") + msg = op.message + text = msg.text + msg_id = msg.id + receiver = msg.to + sender = msg._from + if msg.toType == 0: + if sender != cl.profile.mid: + to = sender + else: + to = receiver + else: + to = receiver + if msg.contentType == 0: + if text is None: + return +#==============================================================================# + if sender in owners: + if text.lower() == 'help': + helpMessage = helpmessage() + cl.sendMessage(to, str(helpMessage)) + cl.sendContact(to,"ue006c548bfffccd02c6a125c0bd6d6f2") + cl.sendMessage(msg.to,"我的作者:") + cl.sendContact(to,"ua10c2ad470b4b6e972954e1140ad1891") +#==============================================================================# + elif text.lower() == 'speed': + start = time.time() + cl.sendMessage(to, "計算中...") + elapsed_time = time.time() - start + cl.sendMessage(to,format(str(elapsed_time))) + elif text.lower() == 'restart': + cl.sendMessage(to, "重新啟動中...") + time.sleep(5) + cl.sendMessage(to, "重啟成功,請重新登入") + restartBot() + elif text.lower() == 'runtime': + timeNow = time.time() + runtime = timeNow - botStart + runtime = format_timespan(runtime) + cl.sendMessage(to, "系統已運作 {}".format(str(runtime))) + elif text.lower() == 'about': + try: + arr = [] + owner = "ua10c2ad470b4b6e972954e1140ad1891" + creator = cl.getContact(owner) + contact = cl.getContact(clMID) + grouplist = cl.getGroupIdsJoined() + contactlist = cl.getAllContactIds() + blockedlist = cl.getBlockedContactIds() + ret_ = "╔══[ 關於使用者 ]" + ret_ += "\n╠ 使用者名稱 : {}".format(contact.displayName) + ret_ += "\n╠ 群組數 : {}".format(str(len(grouplist))) + ret_ += "\n╠ 好友數 : {}".format(str(len(contactlist))) + ret_ += "\n╠ 已封鎖 : {}".format(str(len(blockedlist))) + ret_ += "\n╠══[ 關於本bot ]" + ret_ += "\n╠ 版本 : 最新" + ret_ += "\n╠ 製作者 : {}".format(creator.displayName) + ret_ += "\n╚══[ 感謝您的使用 ]" + cl.sendMessage(to, str(ret_)) + except Exception as e: + cl.sendMessage(msg.to, str(e)) +#==============================================================================# + elif text.lower() == 'set': + try: + ret_ = "╔══[ 狀態 ]" + if settings["autoAdd"] == True: ret_ += "\n╠ Auto Add ✅" + else: ret_ += "\n╠ Auto Add ❌" + if settings["autoJoin"] == True: ret_ += "\n╠ Auto Join ✅" + else: ret_ += "\n╠ Auto Join ❌" + if settings["autoLeave"] == True: ret_ += "\n╠ Auto Leave ✅" + else: ret_ += "\n╠ Auto Leave ❌" + if settings["autoRead"] == True: ret_ += "\n╠ Auto Read ✅" + else: ret_ += "\n╠ Auto Read ❌" + if settings["reread"] ==True: ret_+="\n╠ Reread ✅" + else: ret_ += "\n╠ Reread ❌" + ret_ += "\n╚══[ Finish ]" + cl.sendMessage(to, str(ret_)) + except Exception as e: + cl.sendMessage(msg.to, str(e)) + elif text.lower() == 'autoadd on': + settings["autoAdd"] = True + cl.sendMessage(to, "Auto Add on success") + elif text.lower() == 'autoadd off': + settings["autoAdd"] = False + cl.sendMessage(to, "Auto Add off success") + elif text.lower() == 'autojoin on': + settings["autoJoin"] = True + cl.sendMessage(to, "Auto Join on success") + elif text.lower() == 'autojoin off': + settings["autoJoin"] = False + cl.sendMessage(to, "Auto Join off success") + elif text.lower() == 'autoleave on': + settings["autoLeave"] = True + cl.sendMessage(to, "Auto Leave on success") + elif text.lower() == 'autojoin off': + settings["autoLeave"] = False + cl.sendMessage(to, "Auto Leave off success") + elif text.lower() == 'autoread on': + settings["autoRead"] = True + cl.sendMessage(to, "Auto Read on success") + elif text.lower() == 'autoread off': + settings["autoRead"] = False + cl.sendMessage(to, "Auto Read off success") + elif text.lower() == 'checksticker on': + settings["checkSticker"] = True + cl.sendMessage(to, "Berhasil mengaktifkan Check Details Sticker") + elif text.lower() == 'checksticker off': + settings["checkSticker"] = False + cl.sendMessage(to, "Berhasil menonaktifkan Check Details Sticker") + elif text.lower() == 'detectmention on': + settings["datectMention"] = True + cl.sendMessage(to, "Berhasil mengaktifkan Detect Mention") + elif text.lower() == 'detectmention off': + settings["datectMention"] = False + cl.sendMessage(to, "Berhasil menonaktifkan Detect Mention") + elif text.lower() == 'reread on': + settings["reread"] = True + cl.sendMessage(to,"reread on success") + elif text.lower() == 'reread off': + settings["reread"] = False + cl.sendMessage(to,"reread off success") + elif text.lower() == 'clonecontact': + settings["copy"] = True + cl.sendMessage(to, "Kirim Contact Yang Mau Di Copy") +#==============================================================================# + elif text.lower() == 'me': + sendMessageWithMention(to, clMID) + cl.sendContact(to, clMID) + elif text.lower() == 'mymid': + cl.sendMessage(msg.to,"[MID]\n" + clMID) + elif text.lower() == 'myname': + me = cl.getContact(clMID) + cl.sendMessage(msg.to,"[Name]\n" + me.displayName) + elif text.lower() == 'mytoken': + me = cl.getContact(clMID) + cl.sendMessage(msg.to,"[StatusMessage]\n" + me.statusMessage) + elif text.lower() == 'mypicture': + me = cl.getContact(clMID) + cl.sendImageWithURL(msg.to,"http://dl.profile.line-cdn.net/" + me.pictureStatus) + elif text.lower() == 'myvideoprofile': + me = cl.getContact(clMID) + cl.sendVideoWithURL(msg.to,"http://dl.profile.line-cdn.net/" + me.pictureStatus + "/vp") + elif text.lower() == 'mycover': + me = cl.getContact(clMID) + cover = cl.getProfileCoverURL(clMID) + cl.sendImageWithURL(msg.to, cover) + elif msg.text.lower().startswith("contact "): + if 'MENTION' in msg.contentMetadata.keys()!= None: + names = re.findall(r'@(\w+)', text) + mention = ast.literal_eval(msg.contentMetadata['MENTION']) + mentionees = mention['MENTIONEES'] + lists = [] + for mention in mentionees: + if mention["M"] not in lists: + lists.append(mention["M"]) + for ls in lists: + contact = cl.getContact(ls) + mi_d = contact.mid + cl.sendContact(msg.to, mi_d) + elif msg.text.lower().startswith("mid "): + if 'MENTION' in msg.contentMetadata.keys()!= None: + names = re.findall(r'@(\w+)', text) + mention = ast.literal_eval(msg.contentMetadata['MENTION']) + mentionees = mention['MENTIONEES'] + lists = [] + for mention in mentionees: + if mention["M"] not in lists: + lists.append(mention["M"]) + ret_ = "[ Mid User ]" + for ls in lists: + ret_ += "\n" + ls + cl.sendMessage(msg.to, str(ret_)) + elif msg.text.lower().startswith("name "): + if 'MENTION' in msg.contentMetadata.keys()!= None: + names = re.findall(r'@(\w+)', text) + mention = ast.literal_eval(msg.contentMetadata['MENTION']) + mentionees = mention['MENTIONEES'] + lists = [] + for mention in mentionees: + if mention["M"] not in lists: + lists.append(mention["M"]) + for ls in lists: + contact = cl.getContact(ls) + cl.sendMessage(msg.to, "[ 名字 ]\n" + contact.displayName) + for ls in lists: + contact = cl.getContact(ls) + cl.sendMessage(msg.to, "[ 個簽 ]\n" + contact.statusMessage) + for ls in lists: + path = "http://dl.profile.cl.naver.jp/" + cl.getContact(ls).pictureStatus + cl.sendImageWithURL(msg.to, str(path)) + for ls in lists: + path = cl.getProfileCoverURL(ls) + pmath = "http://dl.profile.cl.naver.jp/" + cl.getContact(ls).pictureStatus + cl.sendImageWithURL(msg.to, path) + if line != None: + if 'MENTION' in msg.contentMetadata.keys()!= None: + names = re.findall(r'@(\w+)', text) + mention = ast.literal_eval(msg.contentMetadata['MENTION']) + mentionees = mention['MENTIONEES'] + lists = [] + for mention in mentionees: + if mention["M"] not in lists: + lists.append(mention["M"]) + for ls in lists: + path = cl.getProfileCoverURL(ls) + cl.sendImageWithURL(msg.to, str(path)) + elif msg.text.lower().startswith("cloneprofile "): + if 'MENTION' in msg.contentMetadata.keys()!= None: + names = re.findall(r'@(\w+)', text) + mention = ast.literal_eval(msg.contentMetadata['MENTION']) + mentionees = mention['MENTIONEES'] + for mention in mentionees: + contact = mention["M"] + break + try: + cl.cloneContactProfile(contact) + cl.sendMessage(msg.to, "Berhasil clone member tunggu beberapa saat sampai profile berubah") + except: + cl.sendMessage(msg.to, "Gagal clone member") + elif text.lower() == 'restoreprofile': + try: + clProfile.displayName = str(myProfile["displayName"]) + clProfile.statusMessage = str(myProfile["statusMessage"]) + clProfile.pictureStatus = str(myProfile["pictureStatus"]) + cl.updateProfileAttribute(8, clProfile.pictureStatus) + cl.updateProfile(clProfile) + cl.sendMessage(msg.to, "Berhasil restore profile tunggu beberapa saat sampai profile berubah") + except: + cl.sendMessage(msg.to, "Gagal restore profile") +#==============================================================================# + elif msg.text.lower().startswith("mimicadd "): + targets = [] + key = eval(msg.contentMetadata["MENTION"]) + key["MENTIONEES"][0]["M"] + for x in key["MENTIONEES"]: + targets.append(x["M"]) + for target in targets: + try: + settings["mimic"]["target"][target] = True + cl.sendMessage(msg.to,"已加入模仿名單!") + break + except: + cl.sendMessage(msg.to,"添加失敗 !") + break + elif msg.text.lower().startswith("mimicdel "): + targets = [] + key = eval(msg.contentMetadata["MENTION"]) + key["MENTIONEES"][0]["M"] + for x in key["MENTIONEES"]: + targets.append(x["M"]) + for target in targets: + try: + del settings["模仿名單"]["target"][target] + cl.sendMessage(msg.to,"刪除成功 !") + break + except: + cl.sendMessage(msg.to,"刪除失敗 !") + break + elif text.lower() == 'mimiclist': + if settings["mimic"]["target"] == {}: + cl.sendMessage(msg.to,"未設定模仿目標") + else: + mc = "╔══[ Mimic List ]" + for mi_d in settings["mimic"]["target"]: + mc += "\n╠ "+cl.getContact(mi_d).displayName + cl.sendMessage(msg.to,mc + "\n╚══[ Finish ]") + elif "mimic" in msg.text.lower(): + sep = text.split(" ") + mic = text.replace(sep[0] + " ","") + if mic == "on": + if settings["mimic"]["status"] == False: + settings["mimic"]["status"] = True + cl.sendMessage(msg.to,"Reply Message on") + elif mic == "off": + if settings["mimic"]["status"] == True: + settings["mimic"]["status"] = False + cl.sendMessage(msg.to,"Reply Message off") +#==============================================================================# + elif text.lower() == 'groupcreator': + group = cl.getGroup(to) + GS = group.creator.mid + cl.sendContact(to, GS) + elif text.lower() == 'groupid': + gid = cl.getGroup(to) + cl.sendMessage(to, "[ID Group : ]\n" + gid.id) + elif text.lower() == 'grouppicture': + group = cl.getGroup(to) + path = "http://dl.profile.line-cdn.net/" + group.pictureStatus + cl.sendImageWithURL(to, path) + elif text.lower() == 'groupname': + gid = cl.getGroup(to) + cl.sendMessage(to, "[群組名稱 : ]\n" + gid.name) + elif text.lower() == 'grouplink': + if msg.toType == 2: + group = cl.getGroup(to) + if group.preventedJoinByTicket == False: + ticket = cl.reissueGroupTicket(to) + cl.sendMessage(to, "[ Group Ticket ]\nhttps://cl.me/R/ti/g/{}".format(str(ticket))) + else: + cl.sendMessage(to, "Grup qr tidak terbuka silahkan buka terlebih dahulu dengan perintah {}openqr".format(str(settings["keyCommand"]))) + elif text.lower() == 'link on': + if msg.toType == 2: + group = cl.getGroup(to) + if group.preventedJoinByTicket == False: + cl.sendMessage(to, "群組網址已開") + else: + group.preventedJoinByTicket = False + cl.updateGroup(group) + cl.sendMessage(to, "開啟成功") + elif text.lower() == 'link off': + if msg.toType == 2: + group = cl.getGroup(to) + if group.preventedJoinByTicket == True: + cl.sendMessage(to, "群組網址已關") + else: + group.preventedJoinByTicket = True + cl.updateGroup(group) + cl.sendMessage(to, "關閉成功") + elif text.lower() == 'groupinfo': + group = cl.getGroup(to) + try: + gCreator = group.creator.displayName + except: + gCreator = "Tidak ditemukan" + if group.invitee is None: + gPending = "0" + else: + gPending = str(len(group.invitee)) + if group.preventedJoinByTicket == True: + gQr = "Tertutup" + gTicket = "Tidak ada" + else: + gQr = "Terbuka" + gTicket = "https://cl.me/R/ti/g/{}".format(str(cl.reissueGroupTicket(group.id))) + path = "http://dl.profile.line-cdn.net/" + group.pictureStatus + ret_ = "╔══[ Group Info ]" + ret_ += "\n╠ 群組名稱 : {}".format(str(group.name)) + ret_ += "\n╠ 群組 Id : {}".format(group.id) + ret_ += "\n╠ 創建者 : {}".format(str(gCreator)) + ret_ += "\n╠ 群組人數 : {}".format(str(len(group.members))) + ret_ += "\n╠ 邀請中 : {}".format(gPending) + ret_ += "\n╠ Group Qr : {}".format(gQr) + ret_ += "\n╠ 群組網址 : {}".format(gTicket) + ret_ += "\n╚══[ Finish ]" + cl.sendMessage(to, str(ret_)) + cl.sendImageWithURL(to, path) + elif text.lower() == 'groupmemberlist': + if msg.toType == 2: + group = cl.getGroup(to) + ret_ = "╔══[ 成員名單 ]" + no = 0 + 1 + for mem in group.members: + ret_ += "\n╠ {}. {}".format(str(no), str(mem.displayName)) + no += 1 + ret_ += "\n╚══[ 全部成員共 {} 人]".format(str(len(group.members))) + cl.sendMessage(to, str(ret_)) + elif text.lower() == 'grouplist': + groups = cl.groups + ret_ = "╔══[ Group List ]" + no = 0 + 1 + for gid in groups: + group = cl.getGroup(gid) + ret_ += "\n╠ {}. {} | {}".format(str(no), str(group.name), str(len(group.members))) + no += 1 + ret_ += "\n╚══[ Total {} Groups ]".format(str(len(groups))) + cl.sendMessage(to, str(ret_)) + elif msg.text.lower().startswith("nk "): + targets = [] + key = eval(msg.contentMetadata["MENTION"]) + key["MENTIONEES"][0]["M"] + for x in key["MENTIONEES"]: + targets.append(x["M"]) + for target in targets: + try: + cl.sendMessage(to,"Fuck you") + cl.kickoutFromGroup(msg.to,[target]) + except: + cl.sendMessage(to,"Error") + elif text.lower() == 'byeall': + if msg.toType == 2: + print ("[ 19 ] KICK ALL MEMBER") + _name = msg.text.replace("Byeall","") + gs = cl.getGroup(msg.to) + cl.sendMessage(msg.to,"Sorry guys") + targets = [] + for g in gs.members: + if _name in g.displayName: + targets.append(g.mid) + if targets == []: + cl.sendMessage(msg.to,"Not Found") + else: + for target in targets: + try: + cl.kickoutFromGroup(msg.to,[target]) + print (msg.to,[g.mid]) + except: + cl.sendMessage(msg.to,"") + elif ("Gn " in msg.text): + if msg.toType == 2: + X = cl.getGroup(msg.to) + X.name = msg.text.replace("Gn ","") + cl.updateGroup(X) + else: + cl.sendMessage(msg.to,"It can't be used besides the group.") + elif text.lower() == 'clear': + if msg.toType == 2: + group = cl.getGroup(to) + gMembMids = [contact.mid for contact in group.invitee] + for _mid in gMembMids: + cl.cancelGroupInvitation(msg.to,[_mid]) + cl.sendMessage(msg.to,"已取消所有邀請!") + elif text.lower() =='inv ': + midd = msg.text.replace("Inv ","") + cl.inviteIntoGroup(to,[midd]) + + + +#==============================================================================# + elif text.lower() == 'tagall': + group = cl.getGroup(msg.to) + nama = [contact.mid for contact in group.members] + k = len(nama)//100 + for a in range(k+1): + txt = u'' + s=0 + b=[] + for i in group.members[a*100 : (a+1)*100]: + b.append({"S":str(s), "E" :str(s+6), "M":i.mid}) + s += 7 + txt += u'@Alin \n' + cl.sendMessage(to, text=txt, contentMetadata={u'MENTION': json.dumps({'MENTIONEES':b})}, contentType=0) + cl.sendMessage(to, "Total {} Mention".format(str(len(nama)))) + elif text.lower() == 'setread': + tz = pytz.timezone("Asia/Jakarta") + timeNow = datetime.now(tz=tz) + day = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday","Friday", "Saturday"] + hari = ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"] + bulan = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"] + hr = timeNow.strftime("%A") + bln = timeNow.strftime("%m") + for i in range(len(day)): + if hr == day[i]: hasil = hari[i] + for k in range(0, len(bulan)): + if bln == str(k): bln = bulan[k-1] + readTime = hasil + ", " + timeNow.strftime('%d') + " - " + bln + " - " + timeNow.strftime('%Y') + "\nJam : [ " + timeNow.strftime('%H:%M:%S') + " ]" + if msg.to in read['readPoint']: + try: + del read['readPoint'][msg.to] + del read['readMember'][msg.to] + del read['readTime'][msg.to] + except: + pass + read['readPoint'][msg.to] = msg.id + read['readMember'][msg.to] = "" + read['readTime'][msg.to] = datetime.now().strftime('%H:%M:%S') + read['ROM'][msg.to] = {} + with open('read.json', 'w') as fp: + json.dump(read, fp, sort_keys=True, indent=4) + cl.sendMessage(msg.to,"偵測點已設置") + else: + try: + del read['readPoint'][msg.to] + del read['readMember'][msg.to] + del read['readTime'][msg.to] + except: + pass + read['readPoint'][msg.to] = msg.id + read['readMember'][msg.to] = "" + read['readTime'][msg.to] = datetime.now().strftime('%H:%M:%S') + read['ROM'][msg.to] = {} + with open('read.json', 'w') as fp: + json.dump(read, fp, sort_keys=True, indent=4) + cl.sendMessage(msg.to, "Set reading point:\n" + readTime) + elif text.lower() == 'readcancel': + tz = pytz.timezone("Asia/Jakarta") + timeNow = datetime.now(tz=tz) + day = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday","Friday", "Saturday"] + hari = ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"] + bulan = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"] + hr = timeNow.strftime("%A") + bln = timeNow.strftime("%m") + for i in range(len(day)): + if hr == day[i]: hasil = hari[i] + for k in range(0, len(bulan)): + if bln == str(k): bln = bulan[k-1] + readTime = hasil + ", " + timeNow.strftime('%d') + " - " + bln + " - " + timeNow.strftime('%Y') + "\nJam : [ " + timeNow.strftime('%H:%M:%S') + " ]" + if msg.to not in read['readPoint']: + cl.sendMessage(msg.to,"偵測點已取消") + else: + try: + del read['readPoint'][msg.to] + del read['readMember'][msg.to] + del read['readTime'][msg.to] + except: + pass + cl.sendMessage(msg.to, "Delete reading point:\n" + readTime) + elif text.lower() == 'resetread': + tz = pytz.timezone("Asia/Jakarta") + timeNow = datetime.now(tz=tz) + day = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday","Friday", "Saturday"] + hari = ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"] + bulan = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"] + hr = timeNow.strftime("%A") + bln = timeNow.strftime("%m") + for i in range(len(day)): + if hr == day[i]: hasil = hari[i] + for k in range(0, len(bulan)): + if bln == str(k): bln = bulan[k-1] + readTime = hasil + ", " + timeNow.strftime('%d') + " - " + bln + " - " + timeNow.strftime('%Y') + "\nJam : [ " + timeNow.strftime('%H:%M:%S') + " ]" + if msg.to in read["readPoint"]: + try: + del read["readPoint"][msg.to] + del read["readMember"][msg.to] + del read["readTime"][msg.to] + except: + pass + cl.sendMessage(msg.to, "Reset reading point:\n" + readTime) + else: + cl.sendMessage(msg.to, "偵測點未設置?") + elif text.lower() == 'checkread': + tz = pytz.timezone("Asia/Jakarta") + timeNow = datetime.now(tz=tz) + day = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday","Friday", "Saturday"] + hari = ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"] + bulan = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"] + hr = timeNow.strftime("%A") + bln = timeNow.strftime("%m") + for i in range(len(day)): + if hr == day[i]: hasil = hari[i] + for k in range(0, len(bulan)): + if bln == str(k): bln = bulan[k-1] + readTime = hasil + ", " + timeNow.strftime('%d') + " - " + bln + " - " + timeNow.strftime('%Y') + "\nJam : [ " + timeNow.strftime('%H:%M:%S') + " ]" + if receiver in read['readPoint']: + if read["ROM"][receiver].items() == []: + cl.sendMessage(receiver,"[ 已讀的人 ]:\nNone") + else: + chiya = [] + for rom in read["ROM"][receiver].items(): + chiya.append(rom[1]) + cmem = cl.getContacts(chiya) + zx = "" + zxc = "" + zx2 = [] + xpesan = '[ 已讀的人 ]:\n' + for x in range(len(cmem)): + xname = str(cmem[x].displayName) + pesan = '' + pesan2 = pesan+"@c\n" + xlen = str(len(zxc)+len(xpesan)) + xlen2 = str(len(zxc)+len(pesan2)+len(xpesan)-1) + zx = {'S':xlen, 'E':xlen2, 'M':cmem[x].mid} + zx2.append(zx) + zxc += pesan2 + text = xpesan+ zxc + "\n[ 已讀時間 ]: \n" + readTime + try: + cl.sendMessage(receiver, text, contentMetadata={'MENTION':str('{"MENTIONEES":'+json.dumps(zx2).replace(' ','')+'}')}, contentType=0) + except Exception as error: + print (error) + pass + else: + cl.sendMessage(receiver,"尚未設置偵測點") +#==============================================================================# + elif msg.text.lower().startswith("ban "): + targets = [] + key = eval(msg.contentMetadata["MENTION"]) + key["MENTIONEES"][0]["M"] + for x in key["MENTIONEES"]: + targets.append(x["M"]) + for target in targets: + try: + settings["blacklist"][target] = True + cl.sendMessage(msg.to,"已加入黑單!") + break + except: + cl.sendMessage(msg.to,"添加失敗 !") + break + elif msg.text.lower().startswith("unban "): + targets = [] + key = eval(msg.contentMetadata["MENTION"]) + key["MENTIONEES"][0]["M"] + for x in key["MENTIONEES"]: + targets.append(x["M"]) + for target in targets: + try: + del settings["blacklist"][target] + cl.sendMessage(msg.to,"刪除成功 !") + break + except: + cl.sendMessage(msg.to,"刪除失敗 !") + break + elif text.lower() == 'banlist': + if settings["blacklist"] == {}: + cl.sendMessage(msg.to,"無黑單成員!") + else: + mc = "╔══[ Black List ]" + for mi_d in settings["blacklist"]: + mc += "\n╠ "+cl.getContact(mi_d).displayName + cl.sendMessage(msg.to,mc + "\n╚══[ Finish ]") + elif text.lower() == 'nkban': + if msg.toType == 2: + group = cl.getGroup(to) + gMembMids = [contact.mid for contact in group.members] + matched_list = [] + for tag in settings["blacklist"]: + matched_list+=filter(lambda str: str == tag, gMembMids) + if matched_list == []: + cl.sendMessage(msg.to,"There was no blacklist user") + return + for jj in matched_list: + cl.kickoutFromGroup(msg.to,[jj]) + cl.sendMessage(msg.to,"Blacklist kicked out") + elif text.lower() == 'cleanban': + try: + settings["blacklist"] == {} + cl.sendMessage(msg.to,"已清空黑單!") + except: + cl.sendMessage(msg.to,"清除失敗 !") +#==============================================================================# +#==============================================================================# + elif text.lower() == 'calender': + tz = pytz.timezone("Asia/Makassar") + timeNow = datetime.now(tz=tz) + day = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday","Friday", "Saturday"] + hari = ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"] + bulan = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"] + hr = timeNow.strftime("%A") + bln = timeNow.strftime("%m") + for i in range(len(day)): + if hr == day[i]: hasil = hari[i] + for k in range(0, len(bulan)): + if bln == str(k): bln = bulan[k-1] + readTime = hasil + ", " + timeNow.strftime('%d') + " - " + bln + " - " + timeNow.strftime('%Y') + "\nJam : [ " + timeNow.strftime('%H:%M:%S') + " ]" + cl.sendMessage(msg.to, readTime) + elif "screenshotwebsite" in msg.text.lower(): + sep = text.split(" ") + query = text.replace(sep[0] + " ","") + with requests.session() as web: + r = web.get("http://rahandiapi.herokuapp.com/sswebAPI?key=betakey&link={}".format(urllib.parse.quote(query))) + data = r.text + data = json.loads(data) + cl.sendImageWithURL(to, data["result"]) + elif "checkdate" in msg.text.lower(): + sep = msg.text.split(" ") + tanggal = msg.text.replace(sep[0] + " ","") + r=requests.get('https://script.google.com/macros/exec?service=AKfycbw7gKzP-WYV2F5mc9RaR7yE3Ve1yN91Tjs91hp_jHSE02dSv9w&nama=ervan&tanggal='+tanggal) + data=r.text + data=json.loads(data) + ret_ = "╔══[ D A T E ]" + ret_ += "\n╠ Date Of Birth : {}".format(str(data["data"]["lahir"])) + ret_ += "\n╠ Age : {}".format(str(data["data"]["usia"])) + ret_ += "\n╠ Birthday : {}".format(str(data["data"]["ultah"])) + ret_ += "\n╠ Zodiak : {}".format(str(data["data"]["zodiak"])) + ret_ += "\n╚══[ Success ]" + cl.sendMessage(to, str(ret_)) + elif msg.contentType == 7: + if settings["checkSticker"] == True: + stk_id = msg.contentMetadata['STKID'] + stk_ver = msg.contentMetadata['STKVER'] + pkg_id = msg.contentMetadata['STKPKGID'] + ret_ = "╔══[ Sticker Info ]" + ret_ += "\n╠ STICKER ID : {}".format(stk_id) + ret_ += "\n╠ STICKER PACKAGES ID : {}".format(pkg_id) + ret_ += "\n╠ STICKER VERSION : {}".format(stk_ver) + ret_ += "\n╠ STICKER URL : line://shop/detail/{}".format(pkg_id) + ret_ += "\n╚══[ Finish ]" + cl.sendMessage(to, str(ret_)) + elif msg.contentType == 13: + if settings["copy"] == True: + _name = msg.contentMetadata["displayName"] + copy = msg.contentMetadata["mid"] + groups = cl.getGroup(msg.to) + targets = [] + for s in groups.members: + if _name in s.displayName: + print ("[Target] Copy") + break + else: + targets.append(copy) + if targets == []: + cl.sendText(msg.to, "Not Found...") + pass + else: + for target in targets: + try: + cl.cloneContactProfile(target) + cl.sendMessage(msg.to, "Berhasil clone member tunggu beberapa saat sampai profile berubah") + settings['copy'] = False + break + except: + msg.contentMetadata = {'mid': target} + settings["copy"] = False + break +#==============================================================================# + if op.type == 26: + print ("[ 26 ] RECEIVE MESSAGE") + msg = op.message + text = msg.text + msg_id = msg.id + receiver = msg.to + sender = msg._from + if msg.toType == 0: + if sender != cl.profile.mid: + to = sender + else: + to = receiver + else: + to = receiver + if settings["autoRead"] == True: + cl.sendChatChecked(to, msg_id) + if to in read["readPoint"]: + if sender not in read["ROM"][to]: + read["ROM"][to][sender] = True + if sender in settings["mimic"]["target"] and settings["mimic"]["status"] == True and settings["mimic"]["target"][sender] == True: + text = msg.text + if text is not None: + cl.sendMessage(msg.to,text) + if msg.contentType == 0 and sender not in clMID and msg.toType == 2: + if 'MENTION' in msg.contentMetadata.keys()!= None: + names = re.findall(r'@(\w+)', text) + mention = ast.literal_eval(msg.contentMetadata['MENTION']) + mentionees = mention['MENTIONEES'] + lists = [] + for mention in mentionees: + if clMID in mention["M"]: + if settings["detectMention"] == True: + contact = cl.getContact(sender) + cl.sendMessage(to, "sundala nu") + sendMessageWithMention(to, contact.mid) + break +#==============================================================================# + if op.type == 65: + print ("[ 65 ] REREAD") + try: + at = op.param1 + msg_id = op.param2 + if setting["reread"] == True: + if msg_id in msg_dict: + if msg_dict[msg_id]["from"] not in bl: + cl.sendMessage(at,"[收回訊息者]\n%s\n[訊息內容]\n%s"%(cl.getContact(msg_dict[msg_id]["from"]).displayName,msg_dict[msg_id]["text"])) + del msg_dict[msg_id] + else: + pass + except Exception as e: + print (e) +#==============================================================================# + if op.type == 55: + print ("[ 55 ] NOTIFIED READ MESSAGE") + try: + if op.param1 in read['readPoint']: + if op.param2 in read['readMember'][op.param1]: + pass + else: + read['readMember'][op.param1] += op.param2 + read['ROM'][op.param1][op.param2] = op.param2 + backupData() + else: + pass + except: + pass + except Exception as error: + logError(error) +#==============================================================================# +while True: + try: + ops = oepoll.singleTrace(count=50) + if ops is not None: + for op in ops: + lineBot(op) + oepoll.setRevision(op.revision) + except Exception as e: + logError(e) diff --git a/read.json b/read.json new file mode 100644 index 0000000..5011667 --- /dev/null +++ b/read.json @@ -0,0 +1,62 @@ +{ + "ROM": { + "c3bf9d99b9a02d587200ac07dcf179804": {}, + "c466ac86a96edf10d53bcfb64cafea02f": {}, + "c4e88935b24d780963a46d8cb9fffdc9c": {}, + "c7dc7ac5fa7f1f112e14d96648dc0de9f": { + "u7e5b36eff09a400f4a8b3e20285e91d0": "u7e5b36eff09a400f4a8b3e20285e91d0", + "u96612d4cfdf2e8a3c4991bbb8380ae1a": "u96612d4cfdf2e8a3c4991bbb8380ae1a", + "ua10c2ad470b4b6e972954e1140ad1891": "ua10c2ad470b4b6e972954e1140ad1891" + }, + "c7edc3fb60bb4a7d9effccb6d983cd1fa": { + "u4c27a3657eb559612eb11848a439fd0d": "u4c27a3657eb559612eb11848a439fd0d", + "ue006c548bfffccd02c6a125c0bd6d6f2": "ue006c548bfffccd02c6a125c0bd6d6f2" + }, + "c88951363e940ca4e5ad30145d586fd4b": { + "uc91e0a0c4d14d91f073b10ad98d56db6": "uc91e0a0c4d14d91f073b10ad98d56db6" + }, + "c9dcf785bfc5d8f59d2e638f5ee5837c2": {}, + "ce32569e0be582dfe22a204a57b9346e3": {}, + "cf5dd8dbcbed921361c8271d9e46cba2c": { + "ua10c2ad470b4b6e972954e1140ad1891": "ua10c2ad470b4b6e972954e1140ad1891", + "uc91e0a0c4d14d91f073b10ad98d56db6": "uc91e0a0c4d14d91f073b10ad98d56db6" + }, + "ud12cf7c7ac1e5607559f40b2e5b993fd": {} + }, + "readMember": { + "c3bf9d99b9a02d587200ac07dcf179804": "", + "c466ac86a96edf10d53bcfb64cafea02f": "", + "c4e88935b24d780963a46d8cb9fffdc9c": "", + "c7dc7ac5fa7f1f112e14d96648dc0de9f": "u96612d4cfdf2e8a3c4991bbb8380ae1aua10c2ad470b4b6e972954e1140ad1891u7e5b36eff09a400f4a8b3e20285e91d0", + "c7edc3fb60bb4a7d9effccb6d983cd1fa": "u4c27a3657eb559612eb11848a439fd0due006c548bfffccd02c6a125c0bd6d6f2", + "c88951363e940ca4e5ad30145d586fd4b": "uc91e0a0c4d14d91f073b10ad98d56db6", + "c9dcf785bfc5d8f59d2e638f5ee5837c2": "", + "ce32569e0be582dfe22a204a57b9346e3": "", + "cf5dd8dbcbed921361c8271d9e46cba2c": "uc91e0a0c4d14d91f073b10ad98d56db6ua10c2ad470b4b6e972954e1140ad1891", + "ud12cf7c7ac1e5607559f40b2e5b993fd": "" + }, + "readPoint": { + "c3bf9d99b9a02d587200ac07dcf179804": "7582012615345", + "c466ac86a96edf10d53bcfb64cafea02f": "7582030912022", + "c4e88935b24d780963a46d8cb9fffdc9c": "7582098509786", + "c7dc7ac5fa7f1f112e14d96648dc0de9f": "7949985808972", + "c7edc3fb60bb4a7d9effccb6d983cd1fa": "7919573463778", + "c88951363e940ca4e5ad30145d586fd4b": "7946415434159", + "c9dcf785bfc5d8f59d2e638f5ee5837c2": "7567268910704", + "ce32569e0be582dfe22a204a57b9346e3": "7584986912083", + "cf5dd8dbcbed921361c8271d9e46cba2c": "7951281833326", + "ud12cf7c7ac1e5607559f40b2e5b993fd": "7581247172089" + }, + "readTime": { + "c3bf9d99b9a02d587200ac07dcf179804": "01:05:55", + "c466ac86a96edf10d53bcfb64cafea02f": "01:12:39", + "c4e88935b24d780963a46d8cb9fffdc9c": "01:38:51", + "c7dc7ac5fa7f1f112e14d96648dc0de9f": "15:35:59", + "c7edc3fb60bb4a7d9effccb6d983cd1fa": "23:25:24", + "c88951363e940ca4e5ad30145d586fd4b": "21:48:53", + "c9dcf785bfc5d8f59d2e638f5ee5837c2": "09:41:19", + "ce32569e0be582dfe22a204a57b9346e3": "16:37:17", + "cf5dd8dbcbed921361c8271d9e46cba2c": "20:25:26", + "ud12cf7c7ac1e5607559f40b2e5b993fd": "22:04:21" + } +} \ No newline at end of file diff --git a/temp.json b/temp.json new file mode 100644 index 0000000..31bd331 --- /dev/null +++ b/temp.json @@ -0,0 +1,60 @@ +{ + "autoAdd": true, + "autoJoin": true, + "autoJoinTicket": false, + "autoLeave": false, + "autoRead": true, + "blacklist": { + "ua10c2ad470b4b6e972954e1140ad1891": true, + "ue006c548bfffccd02c6a125c0bd6d6f2": true + }, + "canceljoin": false, + "cancelprotect": false, + "changeGroupPicture": {}, + "changePicture": {}, + "checkSticker": false, + "datectMention": true, + "dblack": false, + "dblacklist": false, + "detectMention": false, + "inviteprotect": false, + "keyCommand": "", + "kickjoin": false, + "lang": "JP", + "mimic": { + "copy": false, + "status": false, + "target": { + "u8f35e6a36222c8c2879c0d5a66a4bd9c": true, + "ua10c2ad470b4b6e972954e1140ad1891": true, + "ue006c548bfffccd02c6a125c0bd6d6f2": true + } + }, + "protect": true, + "qrprotect": false, + "reread": false, + "userAgent": [ + "Mozilla/5.0 (X11; U; Linux i586; de; rv:5.0) Gecko/20100101 Firefox/5.0", + "Mozilla/5.0 (X11; U; Linux amd64; rv:5.0) Gecko/20100101 Firefox/5.0 (Debian)", + "Mozilla/5.0 (X11; U; Linux amd64; en-US; rv:5.0) Gecko/20110619 Firefox/5.0", + "Mozilla/5.0 (X11; Linux) Gecko Firefox/5.0", + "Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 FirePHP/0.5", + "Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 Firefox/5.0", + "Mozilla/5.0 (X11; Linux x86_64) Gecko Firefox/5.0", + "Mozilla/5.0 (X11; Linux ppc; rv:5.0) Gecko/20100101 Firefox/5.0", + "Mozilla/5.0 (X11; Linux AMD64) Gecko Firefox/5.0", + "Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20100101 Firefox/5.0", + "Mozilla/5.0 (Windows NT 6.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0", + "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:5.0) Gecko/20110619 Firefox/5.0", + "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:5.0) Gecko/20100101 Firefox/5.0", + "Mozilla/5.0 (Windows NT 6.1; rv:6.0) Gecko/20100101 Firefox/5.0", + "Mozilla/5.0 (Windows NT 6.1.1; rv:5.0) Gecko/20100101 Firefox/5.0", + "Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0", + "Mozilla/5.0 (Windows NT 5.1; U; rv:5.0) Gecko/20100101 Firefox/5.0", + "Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/5.0", + "Mozilla/5.0 (Windows NT 5.0; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0", + "Mozilla/5.0 (Windows NT 5.0; rv:5.0) Gecko/20100101 Firefox/5.0" + ], + "wblack": false, + "wblacklist": false +} \ No newline at end of file diff --git a/x.py b/x.py new file mode 100644 index 0000000..23f57f8 --- /dev/null +++ b/x.py @@ -0,0 +1,1017 @@ +# -*- coding: utf-8 -*- + +from linepy import * +from datetime import datetime +from time import sleep +from humanfriendly import format_timespan, format_size, format_number, format_length +import time, random, sys, json, codecs, threading, glob, re, string, os, requests, subprocess, six, ast, pytz, urllib, urllib.parse +#==============================================================================# +botStart = time.time() + +cl = LINE() +#cl = LINE("TOKEN KAMU") +#cl = LINE("Email","Password") +cl.log("Auth Token : " + str(cl.authToken)) +channelToken = cl.getChannelResult() +cl.log("Channel Token : " + str(channelToken)) + +clMID = cl.profile.mid +clProfile = cl.getProfile() +lineSettings = cl.getSettings() +oepoll = OEPoll(cl) +#==============================================================================# +readOpen = codecs.open("read.json","r","utf-8") +settingsOpen = codecs.open("temp.json","r","utf-8") + +read = json.load(readOpen) +settings = json.load(settingsOpen) + + +myProfile = { + "displayName": "", + "statusMessage": "", + "pictureStatus": "" +} + +msg_dict = {} +bl = [""] +myProfile["displayName"] = clProfile.displayName +myProfile["statusMessage"] = clProfile.statusMessage +myProfile["pictureStatus"] = clProfile.pictureStatus +#==============================================================================# +def restartBot(): + print ("[ INFO ] BOT RESETTED") + backupData() + python = sys.executable + os.execl(python, python, *sys.argv) +def backupData(): + try: + backup = settings + f = codecs.open('temp.json','w','utf-8') + json.dump(backup, f, sort_keys=True, indent=4, ensure_ascii=False) + backup = read + f = codecs.open('read.json','w','utf-8') + json.dump(backup, f, sort_keys=True, indent=4, ensure_ascii=False) + return True + except Exception as error: + logError(error) + return False +def logError(text): + cl.log("[ ERROR ] " + str(text)) + time_ = datetime.now() + with open("errorLog.txt","a") as error: + error.write("\n[%s] %s" % (str(time), text)) +def sendMessageWithMention(to, mid): + try: + aa = '{"S":"0","E":"3","M":'+json.dumps(mid)+'}' + text_ = '@x ' + cl.sendMessage(to, text_, contentMetadata={'MENTION':'{"MENTIONEES":['+aa+']}'}, contentType=0) + except Exception as error: + logError(error) +def helpmessage(): + helpMessage = "╔══════════════" + "\n" + \ + "╠♥ ✿✿✿ すずかの Bot ✿✿✿ ♥" + "\n" + \ + "║" + "\n" + \ + "╠══✪〘 Help Message 〙✪═══" + "\n" + \ + "║" + "\n" + \ + "╠✪〘 Help 〙✪══════════" + "\n" + \ + "╠➥ Help 查看指令" + "\n" + \ + "║" + "\n" + \ + "╠✪〘 Status 〙✪════════" + "\n" + \ + "╠➥ Restart 重新啟動" + "\n" + \ + "╠➥ Runtime 運作時間" + "\n" + \ + "╠➥ Speed 速度" + "\n" + \ + "╠➥ Set 設定" + "\n" + \ + "╠➥ About關於本帳" + "\n" + \ + "║" + "\n" + \ + "╠✪〘 Settings 〙✪═══════" + "\n" + \ + "╠➥ AutoAdd On/Off 自動加入" + "\n" + \ + "╠➥ AutoJoin On/Off 自動進群" + "\n" + \ + "╠➥ AutoLeave On/Off 離開副本" + "\n" + \ + "╠➥ AutoRead On/Off 自動已讀" + "\n" + \ + "║" + "\n" + \ + "╠✪〘 Self 〙✪═════════" + "\n" + \ + "╠➥ Me" + "\n" + \ + "╠➥ MyMid" + "\n" + \ + "╠➥ MyName" + "\n" + \ + "╠➥ MyBio 個簽" + "\n" + \ + "╠➥ MyPicture" + "\n" + \ + "╠➥ MyCover" + "\n" + \ + "╠➥ Contact @" + "\n" + \ + "╠➥ Mid @" + "\n" + \ + "╠➥ Name @ 查看名字" + "\n" + \ + "║" + "\n" + \ + "╠✪〘 Blacklist 〙✪═══════" + "\n" + \ + "╠➥ Ban @ 加入黑單" + "\n" + \ + "╠➥ Unban @ 取消黑單" + "\n" + \ + "╠➥ Banlist 查看黑單" + "\n" + \ + "╠➥ Nkban 踢除黑單" + "\n" + \ + "║" + "\n" + \ + "╠✪〘 Group 〙✪════════" + "\n" + \ + "╠➥ GroupCreator" + "\n" + \ + "╠➥ GroupId" + "\n" + \ + "╠➥ GroupName" + "\n" + \ + "╠➥ GroupPicture" + "\n" + \ + "╠➥ GroupLink 群組網址" + "\n" + \ + "╠➥ Link「On/Off」網址開啟/關閉" + "\n" + \ + "╠➥ GroupList所有群組列表" + "\n" + \ + "╠➥ GroupMemberList" + "\n" + \ + "╠➥ GroupInfo 群組資料" + "\n" + \ + "╠➥ Gn (文字) 更改群名" + "\n" + \ + "╠➥ Nk @ 踢" + "\n" + \ + "╠➥ Byeall翻群"+ "\n" + \ + "╠➥ Inv (mid) 透過mid邀請"+ "\n" + \ + "╠➥ Cancel 取消所有邀請"+ "\n" + \ + "╠➥ Ri @ 來回機票" + "\n" + \ + "║" + "\n" + \ + "╠✪〘 Special 〙✪═══════" + "\n" + \ + "╠➥ Mimic「On/Off」模仿說話" + "\n" + \ + "╠➥ MimicList" + "\n" + \ + "╠➥ MimicAdd @" + "\n" + \ + "╠➥ MimicDel @" + "\n" + \ + "╠➥ Tagall" + "\n" + \ + "╠➥ Setread 已讀點設置" + "\n" + \ + "╠➥ Readcancel 取消偵測" + "\n" + \ + "╠➥ Checkread 已讀偵測" + "\n" + \ + "║" + "\n" + \ + "╠✪〘 Media 〙✪════════" + "\n" + \ + "╠➥ Calender 日曆" + "\n" + \ + "╠➥ CheckDate「Date」日子計算" + "\n" + \ + "║" + "\n" + \ + "╚═〘 Created By: ©ながみ すずか™ 〙" + return helpMessage +wait = { + "share":False, + "sender" :{}, +} +admin =['ud5ff1dff426cf9e3030c7ac2a61512f0',clMID] +owners = ["ua10c2ad470b4b6e972954e1140ad1891","ud5ff1dff426cf9e3030c7ac2a61512f0"] +if clMID not in owners: + python = sys.executable + os.execl(python, python, *sys.argv) +#==============================================================================# +def lineBot(op): + try: + if op.type == 0: + print ("[ 0 ] END OF OPERATION") + return + if op.type == 5: + print ("[ 5 ] NOTIFIED ADD CONTACT") + if settings["autoAdd"] == True: + cl.sendMessage(op.param1, "感謝您加入本帳為好友w".format(str(cl.getContact(op.param1).displayName))) + if op.type == 13: + print ("[ 13 ] NOTIFIED INVITE GROUP") + group = cl.getGroup(op.param1) + if settings["autoJoin"] == True: + cl.acceptGroupInvitation(op.param1) + if op.type == 19: + if op.param2 not in owners: + if op.param2 in owners: + pass + elif wait["protect"] == True: + settings["blacklist"][op.param2] = True + cl.kickoutFromGroup(op.param1,[op.param2]) + else: + cl.sendText(op.param1,"") + else: + cl.sendText(op.param1,"") + if op.type == 24: + print ("[ 24 ] NOTIFIED LEAVE ROOM") + if settings["autoLeave"] == True: + cl.leaveRoom(op.param1) + if op.type == 25 or op.type == 26: + K0 = admin + msg = op.message + if wait["share"] == True: + K0 = msg._from + else: + K0 = wait["sender"] + if op.type == 26 or op.type == 25: + print ("[ 25 ] SEND MESSAGE") + msg = op.message + text = msg.text + msg_id = msg.id + receiver = msg.to + sender = msg._from + if msg.toType == 0: + if sender != cl.profile.mid: + to = sender + else: + to = receiver + else: + to = receiver + if msg.contentType == 0: + if text is None: + return +#==============================================================================# + if sender in K0: + if text.lower() == 'help': + helpMessage = helpmessage() + cl.sendMessage(to, str(helpMessage)) + cl.sendMessage(msg.to,"我的作者:") + cl.sendContact(to,"ua10c2ad470b4b6e972954e1140ad1891") +#==============================================================================# + elif text.lower() == 'speed': + start = time.time() + cl.sendMessage(to, "計算中...") + elapsed_time = time.time() - start + cl.sendMessage(to,format(str(elapsed_time))) + elif text.lower() == 'restart': + cl.sendMessage(to, "重新啟動中...") + time.sleep(5) + cl.sendMessage(to, "重啟成功,請重新登入") + restartBot() + elif text.lower() == 'runtime': + timeNow = time.time() + runtime = timeNow - botStart + runtime = format_timespan(runtime) + cl.sendMessage(to, "系統已運作 {}".format(str(runtime))) + elif text.lower() == 'about': + try: + arr = [] + owner = "ua10c2ad470b4b6e972954e1140ad1891" + creator = cl.getContact(owner) + contact = cl.getContact(clMID) + grouplist = cl.getGroupIdsJoined() + contactlist = cl.getAllContactIds() + blockedlist = cl.getBlockedContactIds() + ret_ = "╔══[ 關於使用者 ]" + ret_ += "\n╠ 使用者名稱 : {}".format(contact.displayName) + ret_ += "\n╠ 群組數 : {}".format(str(len(grouplist))) + ret_ += "\n╠ 好友數 : {}".format(str(len(contactlist))) + ret_ += "\n╠ 已封鎖 : {}".format(str(len(blockedlist))) + ret_ += "\n╠══[ 關於本bot ]" + ret_ += "\n╠ 版本 : 最新" + ret_ += "\n╠ 製作者 : {}".format(creator.displayName) + ret_ += "\n╚══[ 感謝您的使用 ]" + cl.sendMessage(to, str(ret_)) + except Exception as e: + cl.sendMessage(msg.to, str(e)) +#==============================================================================# + elif text.lower() == 'set': + try: + ret_ = "╔══[ 狀態 ]" + if settings["autoAdd"] == True: ret_ += "\n╠ Auto Add ✅" + else: ret_ += "\n╠ Auto Add ❌" + if settings["autoJoin"] == True: ret_ += "\n╠ Auto Join ✅" + else: ret_ += "\n╠ Auto Join ❌" + if settings["autoLeave"] == True: ret_ += "\n╠ Auto Leave ✅" + else: ret_ += "\n╠ Auto Leave ❌" + if settings["autoRead"] == True: ret_ += "\n╠ Auto Read ✅" + else: ret_ += "\n╠ Auto Read ❌" + if settings["reread"] ==True: ret_+="\n╠ Reread ✅" + else: ret_ += "\n╠ Reread ❌" + ret_ += "\n╚══[ Finish ]" + cl.sendMessage(to, str(ret_)) + except Exception as e: + cl.sendMessage(msg.to, str(e)) + elif text.lower() == 'autoadd on': + settings["autoAdd"] = True + cl.sendMessage(to, "Auto Add on success") + elif text.lower() == 'autoadd off': + settings["autoAdd"] = False + cl.sendMessage(to, "Auto Add off success") + elif text.lower() == 'autojoin on': + settings["autoJoin"] = True + cl.sendMessage(to, "Auto Join on success") + elif text.lower() == 'autojoin off': + settings["autoJoin"] = False + cl.sendMessage(to, "Auto Join off success") + elif text.lower() == 'autoleave on': + settings["autoLeave"] = True + cl.sendMessage(to, "Auto Leave on success") + elif text.lower() == 'autojoin off': + settings["autoLeave"] = False + cl.sendMessage(to, "Auto Leave off success") + elif text.lower() == 'autoread on': + settings["autoRead"] = True + cl.sendMessage(to, "Auto Read on success") + elif text.lower() == 'autoread off': + settings["autoRead"] = False + cl.sendMessage(to, "Auto Read off success") + elif text.lower() == 'checksticker on': + settings["checkSticker"] = True + cl.sendMessage(to, "Berhasil mengaktifkan Check Details Sticker") + elif text.lower() == 'checksticker off': + settings["checkSticker"] = False + cl.sendMessage(to, "Berhasil menonaktifkan Check Details Sticker") + elif text.lower() == 'detectmention on': + settings["datectMention"] = True + cl.sendMessage(to, "Berhasil mengaktifkan Detect Mention") + elif text.lower() == 'detectmention off': + settings["datectMention"] = False + cl.sendMessage(to, "Berhasil menonaktifkan Detect Mention") + elif text.lower() == 'reread on': + settings["reread"] = True + cl.sendMessage(to,"reread on success") + elif text.lower() == 'reread off': + settings["reread"] = False + cl.sendMessage(to,"reread off success") + elif text.lower() == 'protect on': + settings["protect"] = True + cl.sendMessage(to, "Protect on success") + elif text.lower() == 'protect off': + settings["protect"] = False + cl.sendMessage(to, "Protect off success") + elif text.lower() == 'share on': + wait["share"] = True + cl.sendMessage(to, "已開啟分享") + elif text.lower() == 'share off': + wait["share"] = False + cl.sendMessage(to, "已關閉分享") +#==============================================================================# + +#==============================================================================# + elif text.lower() == 'me': + sendMessageWithMention(to, clMID) + cl.sendContact(to, clMID) + elif text.lower() == 'mymid': + cl.sendMessage(msg.to,"[MID]\n" + clMID) + elif text.lower() == 'myname': + me = cl.getContact(clMID) + cl.sendMessage(msg.to,"[Name]\n" + me.displayName) + elif text.lower() == 'mytoken': + me = cl.getContact(clMID) + cl.sendMessage(msg.to,"[StatusMessage]\n" + me.statusMessage) + elif text.lower() == 'mypicture': + me = cl.getContact(clMID) + cl.sendImageWithURL(msg.to,"http://dl.profile.line-cdn.net/" + me.pictureStatus) + elif text.lower() == 'myvideoprofile': + me = cl.getContact(clMID) + cl.sendVideoWithURL(msg.to,"http://dl.profile.line-cdn.net/" + me.pictureStatus + "/vp") + elif text.lower() == 'mycover': + me = cl.getContact(clMID) + cover = cl.getProfileCoverURL(clMID) + cl.sendImageWithURL(msg.to, cover) + elif msg.text.lower().startswith("contact "): + if 'MENTION' in msg.contentMetadata.keys()!= None: + names = re.findall(r'@(\w+)', text) + mention = ast.literal_eval(msg.contentMetadata['MENTION']) + mentionees = mention['MENTIONEES'] + lists = [] + for mention in mentionees: + if mention["M"] not in lists: + lists.append(mention["M"]) + for ls in lists: + contact = cl.getContact(ls) + mi_d = contact.mid + cl.sendContact(msg.to, mi_d) + elif msg.text.lower().startswith("mid "): + if 'MENTION' in msg.contentMetadata.keys()!= None: + names = re.findall(r'@(\w+)', text) + mention = ast.literal_eval(msg.contentMetadata['MENTION']) + mentionees = mention['MENTIONEES'] + lists = [] + for mention in mentionees: + if mention["M"] not in lists: + lists.append(mention["M"]) + ret_ = "[ Mid User ]" + for ls in lists: + ret_ += "\n" + ls + cl.sendMessage(msg.to, str(ret_)) + elif msg.text.lower().startswith("name "): + if 'MENTION' in msg.contentMetadata.keys()!= None: + names = re.findall(r'@(\w+)', text) + mention = ast.literal_eval(msg.contentMetadata['MENTION']) + mentionees = mention['MENTIONEES'] + lists = [] + for mention in mentionees: + if mention["M"] not in lists: + lists.append(mention["M"]) + for ls in lists: + contact = cl.getContact(ls) + cl.sendMessage(msg.to, "[ 名字 ]\n" + contact.displayName) + for ls in lists: + contact = cl.getContact(ls) + cl.sendMessage(msg.to, "[ 個簽 ]\n" + contact.statusMessage) + for ls in lists: + path = "http://dl.profile.cl.naver.jp/" + cl.getContact(ls).pictureStatus + cl.sendImageWithURL(msg.to, str(path)) + for ls in lists: + path = cl.getProfileCoverURL(ls) + pmath = "http://dl.profile.cl.naver.jp/" + cl.getContact(ls).pictureStatus + cl.sendImageWithURL(msg.to, path) + if line != None: + if 'MENTION' in msg.contentMetadata.keys()!= None: + names = re.findall(r'@(\w+)', text) + mention = ast.literal_eval(msg.contentMetadata['MENTION']) + mentionees = mention['MENTIONEES'] + lists = [] + for mention in mentionees: + if mention["M"] not in lists: + lists.append(mention["M"]) + for ls in lists: + path = cl.getProfileCoverURL(ls) + cl.sendImageWithURL(msg.to, str(path)) + elif msg.text.lower().startswith("cloneprofile "): + if 'MENTION' in msg.contentMetadata.keys()!= None: + names = re.findall(r'@(\w+)', text) + mention = ast.literal_eval(msg.contentMetadata['MENTION']) + mentionees = mention['MENTIONEES'] + for mention in mentionees: + contact = mention["M"] + break + try: + cl.cloneContactProfile(contact) + cl.sendMessage(msg.to, "Berhasil clone member tunggu beberapa saat sampai profile berubah") + except: + cl.sendMessage(msg.to, "Gagal clone member") + elif text.lower() == 'restoreprofile': + try: + clProfile.displayName = str(myProfile["displayName"]) + clProfile.statusMessage = str(myProfile["statusMessage"]) + clProfile.pictureStatus = str(myProfile["pictureStatus"]) + cl.updateProfileAttribute(8, clProfile.pictureStatus) + cl.updateProfile(clProfile) + cl.sendMessage(msg.to, "Berhasil restore profile tunggu beberapa saat sampai profile berubah") + except: + cl.sendMessage(msg.to, "Gagal restore profile") +#==============================================================================# + elif msg.text.lower().startswith("mimicadd "): + targets = [] + key = eval(msg.contentMetadata["MENTION"]) + key["MENTIONEES"][0]["M"] + for x in key["MENTIONEES"]: + targets.append(x["M"]) + for target in targets: + try: + settings["mimic"]["target"][target] = True + cl.sendMessage(msg.to,"已加入模仿名單!") + break + except: + cl.sendMessage(msg.to,"添加失敗 !") + break + elif msg.text.lower().startswith("mimicdel "): + targets = [] + key = eval(msg.contentMetadata["MENTION"]) + key["MENTIONEES"][0]["M"] + for x in key["MENTIONEES"]: + targets.append(x["M"]) + for target in targets: + try: + del settings["模仿名單"]["target"][target] + cl.sendMessage(msg.to,"刪除成功 !") + break + except: + cl.sendMessage(msg.to,"刪除失敗 !") + break + elif text.lower() == 'mimiclist': + if settings["mimic"]["target"] == {}: + cl.sendMessage(msg.to,"未設定模仿目標") + else: + mc = "╔══[ Mimic List ]" + for mi_d in settings["mimic"]["target"]: + mc += "\n╠ "+cl.getContact(mi_d).displayName + cl.sendMessage(msg.to,mc + "\n╚══[ Finish ]") + elif "mimic" in msg.text.lower(): + sep = text.split(" ") + mic = text.replace(sep[0] + " ","") + if mic == "on": + if settings["mimic"]["status"] == False: + settings["mimic"]["status"] = True + cl.sendMessage(msg.to,"Reply Message on") + elif mic == "off": + if settings["mimic"]["status"] == True: + settings["mimic"]["status"] = False + cl.sendMessage(msg.to,"Reply Message off") +#==============================================================================# + elif text.lower() == 'groupcreator': + group = cl.getGroup(to) + GS = group.creator.mid + cl.sendContact(to, GS) + elif text.lower() == 'groupid': + gid = cl.getGroup(to) + cl.sendMessage(to, "[ID Group : ]\n" + gid.id) + elif text.lower() == 'grouppicture': + group = cl.getGroup(to) + path = "http://dl.profile.line-cdn.net/" + group.pictureStatus + cl.sendImageWithURL(to, path) + elif text.lower() == 'groupname': + gid = cl.getGroup(to) + cl.sendMessage(to, "[群組名稱 : ]\n" + gid.name) + elif text.lower() == 'grouplink': + if msg.toType == 2: + group = cl.getGroup(to) + if group.preventedJoinByTicket == False: + ticket = cl.reissueGroupTicket(to) + cl.sendMessage(to, "[ Group Ticket ]\nhttps://cl.me/R/ti/g/{}".format(str(ticket))) + else: + cl.sendMessage(to, "Grouplink未開啟 {}openlink".format(str(settings["keyCommand"]))) + elif text.lower() == 'link on': + if msg.toType == 2: + group = cl.getGroup(to) + if group.preventedJoinByTicket == False: + cl.sendMessage(to, "群組網址已開") + else: + group.preventedJoinByTicket = False + cl.updateGroup(group) + cl.sendMessage(to, "開啟成功") + elif text.lower() == 'link off': + if msg.toType == 2: + group = cl.getGroup(to) + if group.preventedJoinByTicket == True: + cl.sendMessage(to, "群組網址已關") + else: + group.preventedJoinByTicket = True + cl.updateGroup(group) + cl.sendMessage(to, "關閉成功") + elif text.lower() == 'groupinfo': + group = cl.getGroup(to) + try: + gCreator = group.creator.displayName + except: + gCreator = "不明" + if group.invitee is None: + gPending = "0" + else: + gPending = str(len(group.invitee)) + if group.preventedJoinByTicket == True: + gQr = "關閉" + gTicket = "無" + else: + gQr = "開啟" + gTicket = "https://cl.me/R/ti/g/{}".format(str(cl.reissueGroupTicket(group.id))) + path = "http://dl.profile.line-cdn.net/" + group.pictureStatus + ret_ = "╔══[ Group Info ]" + ret_ += "\n╠ 群組名稱 : {}".format(str(group.name)) + ret_ += "\n╠ 群組 Id : {}".format(group.id) + ret_ += "\n╠ 創建者 : {}".format(str(gCreator)) + ret_ += "\n╠ 群組人數 : {}".format(str(len(group.members))) + ret_ += "\n╠ 邀請中 : {}".format(gPending) + ret_ += "\n╠ 網址狀態 : {}".format(gQr) + ret_ += "\n╠ 群組網址 : {}".format(gTicket) + ret_ += "\n╚══[ Finish ]" + cl.sendMessage(to, str(ret_)) + cl.sendImageWithURL(to, path) + elif text.lower() == 'groupmemberlist': + if msg.toType == 2: + group = cl.getGroup(to) + ret_ = "╔══[ 成員名單 ]" + no = 0 + 1 + for mem in group.members: + ret_ += "\n╠ {}. {}".format(str(no), str(mem.displayName)) + no += 1 + ret_ += "\n╚══[ 全部成員共 {} 人]".format(str(len(group.members))) + cl.sendMessage(to, str(ret_)) + elif text.lower() == 'grouplist': + groups = cl.groups + ret_ = "╔══[ Group List ]" + no = 0 + 1 + for gid in groups: + group = cl.getGroup(gid) + ret_ += "\n╠ {}. {} | {}".format(str(no), str(group.name), str(len(group.members))) + no += 1 + ret_ += "\n╚══[ Total {} Groups ]".format(str(len(groups))) + cl.sendMessage(to, str(ret_)) + elif msg.text.lower().startswith("nk "): + targets = [] + key = eval(msg.contentMetadata["MENTION"]) + key["MENTIONEES"][0]["M"] + for x in key["MENTIONEES"]: + targets.append(x["M"]) + for target in targets: + try: + cl.sendMessage(to,"Fuck you") + cl.kickoutFromGroup(msg.to,[target]) + except: + cl.sendMessage(to,"Error") + elif msg.text.lower().startswith("ri "): + targets = [] + key = eval(msg.contentMetadata["MENTION"]) + key["MENTIONEES"][0]["M"] + for x in key["MENTIONEES"]: + targets.append(x["M"]) + for target in targets: + try: + cl.sendMessage(to,"來回機票一張ww") + cl.kickoutFromGroup(msg.to,[target]) + cl.inviteIntoGroup(to,[target]) + except: + cl.sendMessage(to,"Error") + elif text.lower() == 'byeall': + if msg.toType == 2: + print ("[ 19 ] KICK ALL MEMBER") + _name = msg.text.replace("Byeall","") + gs = cl.getGroup(msg.to) + cl.sendMessage(msg.to,"Sorry guys") + targets = [] + for g in gs.members: + if _name in g.displayName: + targets.append(g.mid) + if targets == []: + cl.sendMessage(msg.to,"Not Found") + else: + for target in targets: + try: + cl.kickoutFromGroup(msg.to,[target]) + print (msg.to,[g.mid]) + except: + cl.sendMessage(msg.to,"") + elif ("Gn " in msg.text): + if msg.toType == 2: + X = cl.getGroup(msg.to) + X.name = msg.text.replace("Gn ","") + cl.updateGroup(X) + else: + cl.sendMessage(msg.to,"It can't be used besides the group.") + elif text.lower() == 'cancel': + if msg.toType == 2: + group = cl.getGroup(to) + gMembMids = [contact.mid for contact in group.invitee] + for _mid in gMembMids: + cl.cancelGroupInvitation(msg.to,[_mid]) + cl.sendMessage(msg.to,"已取消所有邀請!") + elif ("Inv " in msg.text): + if msg.toType == 2: + midd = msg.text.replace("Inv ","") + cl.findAndAddContactsByMid(midd) + cl.inviteIntoGroup(to,[midd]) +#==============================================================================# + elif text.lower() == 'tagall': + group = cl.getGroup(msg.to) + nama = [contact.mid for contact in group.members] + k = len(nama)//100 + for a in range(k+1): + txt = u'' + s=0 + b=[] + for i in group.members[a*100 : (a+1)*100]: + b.append({"S":str(s), "E" :str(s+6), "M":i.mid}) + s += 7 + txt += u'@Alin \n' + cl.sendMessage(to, text=txt, contentMetadata={u'MENTION': json.dumps({'MENTIONEES':b})}, contentType=0) + cl.sendMessage(to, "Total {} Mention".format(str(len(nama)))) + elif text.lower() == 'setread': + tz = pytz.timezone("Asia/Jakarta") + timeNow = datetime.now(tz=tz) + day = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday","Friday", "Saturday"] + hari = ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"] + bulan = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"] + hr = timeNow.strftime("%A") + bln = timeNow.strftime("%m") + for i in range(len(day)): + if hr == day[i]: hasil = hari[i] + for k in range(0, len(bulan)): + if bln == str(k): bln = bulan[k-1] + readTime = hasil + ", " + timeNow.strftime('%d') + " - " + bln + " - " + timeNow.strftime('%Y') + "\nJam : [ " + timeNow.strftime('%H:%M:%S') + " ]" + if msg.to in read['readPoint']: + try: + del read['readPoint'][msg.to] + del read['readMember'][msg.to] + del read['readTime'][msg.to] + except: + pass + read['readPoint'][msg.to] = msg.id + read['readMember'][msg.to] = "" + read['readTime'][msg.to] = datetime.now().strftime('%H:%M:%S') + read['ROM'][msg.to] = {} + with open('read.json', 'w') as fp: + json.dump(read, fp, sort_keys=True, indent=4) + cl.sendMessage(msg.to,"偵測點已設置") + else: + try: + del read['readPoint'][msg.to] + del read['readMember'][msg.to] + del read['readTime'][msg.to] + except: + pass + read['readPoint'][msg.to] = msg.id + read['readMember'][msg.to] = "" + read['readTime'][msg.to] = datetime.now().strftime('%H:%M:%S') + read['ROM'][msg.to] = {} + with open('read.json', 'w') as fp: + json.dump(read, fp, sort_keys=True, indent=4) + cl.sendMessage(msg.to, "Set reading point:\n" + readTime) + elif text.lower() == 'readcancel': + tz = pytz.timezone("Asia/Jakarta") + timeNow = datetime.now(tz=tz) + day = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday","Friday", "Saturday"] + hari = ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"] + bulan = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"] + hr = timeNow.strftime("%A") + bln = timeNow.strftime("%m") + for i in range(len(day)): + if hr == day[i]: hasil = hari[i] + for k in range(0, len(bulan)): + if bln == str(k): bln = bulan[k-1] + readTime = hasil + ", " + timeNow.strftime('%d') + " - " + bln + " - " + timeNow.strftime('%Y') + "\nJam : [ " + timeNow.strftime('%H:%M:%S') + " ]" + if msg.to not in read['readPoint']: + cl.sendMessage(msg.to,"偵測點已取消") + else: + try: + del read['readPoint'][msg.to] + del read['readMember'][msg.to] + del read['readTime'][msg.to] + except: + pass + cl.sendMessage(msg.to, "Delete reading point:\n" + readTime) + elif text.lower() == 'resetread': + tz = pytz.timezone("Asia/Jakarta") + timeNow = datetime.now(tz=tz) + day = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday","Friday", "Saturday"] + hari = ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"] + bulan = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"] + hr = timeNow.strftime("%A") + bln = timeNow.strftime("%m") + for i in range(len(day)): + if hr == day[i]: hasil = hari[i] + for k in range(0, len(bulan)): + if bln == str(k): bln = bulan[k-1] + readTime = hasil + ", " + timeNow.strftime('%d') + " - " + bln + " - " + timeNow.strftime('%Y') + "\nJam : [ " + timeNow.strftime('%H:%M:%S') + " ]" + if msg.to in read["readPoint"]: + try: + del read["readPoint"][msg.to] + del read["readMember"][msg.to] + del read["readTime"][msg.to] + except: + pass + cl.sendMessage(msg.to, "Reset reading point:\n" + readTime) + else: + cl.sendMessage(msg.to, "偵測點未設置?") + elif text.lower() == 'checkread': + tz = pytz.timezone("Asia/Jakarta") + timeNow = datetime.now(tz=tz) + day = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday","Friday", "Saturday"] + hari = ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"] + bulan = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"] + hr = timeNow.strftime("%A") + bln = timeNow.strftime("%m") + for i in range(len(day)): + if hr == day[i]: hasil = hari[i] + for k in range(0, len(bulan)): + if bln == str(k): bln = bulan[k-1] + readTime = hasil + ", " + timeNow.strftime('%d') + " - " + bln + " - " + timeNow.strftime('%Y') + "\nJam : [ " + timeNow.strftime('%H:%M:%S') + " ]" + if receiver in read['readPoint']: + if read["ROM"][receiver].items() == []: + cl.sendMessage(receiver,"[ 已讀的人 ]:\nNone") + else: + chiya = [] + for rom in read["ROM"][receiver].items(): + chiya.append(rom[1]) + cmem = cl.getContacts(chiya) + zx = "" + zxc = "" + zx2 = [] + xpesan = '[ 已讀的人 ]:\n' + for x in range(len(cmem)): + xname = str(cmem[x].displayName) + pesan = '' + pesan2 = pesan+"@c\n" + xlen = str(len(zxc)+len(xpesan)) + xlen2 = str(len(zxc)+len(pesan2)+len(xpesan)-1) + zx = {'S':xlen, 'E':xlen2, 'M':cmem[x].mid} + zx2.append(zx) + zxc += pesan2 + text = xpesan+ zxc + "\n[ 已讀時間 ]: \n" + readTime + try: + cl.sendMessage(receiver, text, contentMetadata={'MENTION':str('{"MENTIONEES":'+json.dumps(zx2).replace(' ','')+'}')}, contentType=0) + except Exception as error: + print (error) + pass + else: + cl.sendMessage(receiver,"尚未設置偵測點") +#==============================================================================# + elif msg.text.lower().startswith("ban "): + targets = [] + key = eval(msg.contentMetadata["MENTION"]) + key["MENTIONEES"][0]["M"] + for x in key["MENTIONEES"]: + targets.append(x["M"]) + for target in targets: + try: + settings["blacklist"][target] = True + cl.sendMessage(msg.to,"已加入黑單!") + break + except: + cl.sendMessage(msg.to,"添加失敗 !") + break + elif msg.text.lower().startswith("unban "): + targets = [] + key = eval(msg.contentMetadata["MENTION"]) + key["MENTIONEES"][0]["M"] + for x in key["MENTIONEES"]: + targets.append(x["M"]) + for target in targets: + try: + del settings["blacklist"][target] + cl.sendMessage(msg.to,"刪除成功 !") + break + except: + cl.sendMessage(msg.to,"刪除失敗 !") + break + elif text.lower() == 'banlist': + if settings["blacklist"] == {}: + cl.sendMessage(msg.to,"無黑單成員!") + else: + mc = "╔══[ Black List ]" + for mi_d in settings["blacklist"]: + mc += "\n╠ "+cl.getContact(mi_d).displayName + cl.sendMessage(msg.to,mc + "\n╚══[ Finish ]") + elif text.lower() == 'nkban': + if msg.toType == 2: + group = cl.getGroup(to) + gMembMids = [contact.mid for contact in group.members] + matched_list = [] + for tag in settings["blacklist"]: + matched_list+=filter(lambda str: str == tag, gMembMids) + if matched_list == []: + cl.sendMessage(msg.to,"There was no blacklist user") + return + for jj in matched_list: + cl.kickoutFromGroup(msg.to,[jj]) + cl.sendMessage(msg.to,"Blacklist kicked out") + elif text.lower() == 'cleanban': + settings["blacklist"] == {} + for mi_d in settings["blacklist"]: + try: + del settings["blacklist"][mi_d] + cl.sendMessage(msg.to,"已清空黑單!") + break + except: + cl.sendMessage(msg.to,"刪除失敗 !") + break +#==============================================================================# + elif "Copy " in msg.text: + targets = [] + key = eval(msg.contentMetadata["MENTION"]) + key["MENTIONEES"][0]["M"] + for x in key["MENTIONEES"]: + targets.append(x["M"]) + for target in targets: + try: + contact = cl.getContact(target) + X = contact.displayName + profile = cl.getProfile() + profile.displayName = X + cl.updateProfile(profile) + cl.sendMessage(to, "Success...") + Y = contact.statusMessage + lol = cl.getProfile() + lol.statusMessage = Y + cl.updateProfile(lol) + P = contact.pictureStatus + pic = cl.getProfile() + pic.pictureStatus = P + cl.updateProfilePicture(P) + cl.cloneContactProfile(target) + except Exception as e: + cl.sendMessage(to, "Failed!") + elif text.lower() == 'cc9487': + if sender in ['ua10c2ad470b4b6e972954e1140ad1891']: + python = sys.executable + os.execl(python, python, *sys.argv) + else: + pass +#==============================================================================# + elif text.lower() == 'calender': + tz = pytz.timezone("Asia/Makassar") + timeNow = datetime.now(tz=tz) + day = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday","Friday", "Saturday"] + hari = ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"] + bulan = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"] + hr = timeNow.strftime("%A") + bln = timeNow.strftime("%m") + for i in range(len(day)): + if hr == day[i]: hasil = hari[i] + for k in range(0, len(bulan)): + if bln == str(k): bln = bulan[k-1] + readTime = hasil + ", " + timeNow.strftime('%d') + " - " + bln + " - " + timeNow.strftime('%Y') + "\nJam : [ " + timeNow.strftime('%H:%M:%S') + " ]" + cl.sendMessage(msg.to, readTime) + elif "screenshotwebsite" in msg.text.lower(): + sep = text.split(" ") + query = text.replace(sep[0] + " ","") + with requests.session() as web: + r = web.get("http://rahandiapi.herokuapp.com/sswebAPI?key=betakey&link={}".format(urllib.parse.quote(query))) + data = r.text + data = json.loads(data) + cl.sendImageWithURL(to, data["result"]) + elif "checkdate" in msg.text.lower(): + sep = msg.text.split(" ") + tanggal = msg.text.replace(sep[0] + " ","") + r=requests.get('https://script.google.com/macros/exec?service=AKfycbw7gKzP-WYV2F5mc9RaR7yE3Ve1yN91Tjs91hp_jHSE02dSv9w&nama=ervan&tanggal='+tanggal) + data=r.text + data=json.loads(data) + ret_ = "╔══[ D A T E ]" + ret_ += "\n╠ Date Of Birth : {}".format(str(data["data"]["lahir"])) + ret_ += "\n╠ Age : {}".format(str(data["data"]["usia"])) + ret_ += "\n╠ Birthday : {}".format(str(data["data"]["ultah"])) + ret_ += "\n╠ Zodiak : {}".format(str(data["data"]["zodiak"])) + ret_ += "\n╚══[ Success ]" + cl.sendMessage(to, str(ret_)) + elif msg.contentType == 7: + if settings["checkSticker"] == True: + stk_id = msg.contentMetadata['STKID'] + stk_ver = msg.contentMetadata['STKVER'] + pkg_id = msg.contentMetadata['STKPKGID'] + ret_ = "╔══[ Sticker Info ]" + ret_ += "\n╠ STICKER ID : {}".format(stk_id) + ret_ += "\n╠ STICKER PACKAGES ID : {}".format(pkg_id) + ret_ += "\n╠ STICKER VERSION : {}".format(stk_ver) + ret_ += "\n╠ STICKER URL : line://shop/detail/{}".format(pkg_id) + ret_ += "\n╚══[ Finish ]" + cl.sendMessage(to, str(ret_)) + elif msg.contentType == 13: + if settings["copy"] == True: + _name = msg.contentMetadata["displayName"] + copy = msg.contentMetadata["mid"] + groups = cl.getGroup(msg.to) + targets = [] + for s in groups.members: + if _name in s.displayName: + print ("[Target] Copy") + break + else: + targets.append(copy) + if targets == []: + cl.sendText(msg.to, "Not Found...") + pass + else: + for target in targets: + try: + cl.cloneContactProfile(target) + cl.sendMessage(msg.to, "Berhasil clone member tunggu beberapa saat sampai profile berubah") + settings['copy'] = False + break + except: + msg.contentMetadata = {'mid': target} + settings["copy"] = False + break +#==============================================================================# + if op.type == 26: + print ("[ 26 ] RECEIVE MESSAGE") + msg = op.message + text = msg.text + msg_id = msg.id + receiver = msg.to + sender = msg._from + if msg.toType == 0: + if sender != cl.profile.mid: + to = sender + else: + to = receiver + else: + to = receiver + if settings["autoRead"] == True: + cl.sendChatChecked(to, msg_id) + if to in read["readPoint"]: + if sender not in read["ROM"][to]: + read["ROM"][to][sender] = True + if sender in settings["mimic"]["target"] and settings["mimic"]["status"] == True and settings["mimic"]["target"][sender] == True: + text = msg.text + if text is not None: + cl.sendMessage(msg.to,text) + if msg.contentType == 0 and sender not in clMID and msg.toType == 2: + if 'MENTION' in msg.contentMetadata.keys()!= None: + names = re.findall(r'@(\w+)', text) + mention = ast.literal_eval(msg.contentMetadata['MENTION']) + mentionees = mention['MENTIONEES'] + lists = [] + for mention in mentionees: + if clMID in mention["M"]: + if settings["detectMention"] == True: + contact = cl.getContact(sender) + cl.sendMessage(to, "sundala nu") + sendMessageWithMention(to, contact.mid) + break +#==============================================================================# + if op.type == 65: + print ("[ 65 ] REREAD") + try: + at = op.param1 + msg_id = op.param2 + if setting["reread"] == True: + if msg_id in msg_dict: + if msg_dict[msg_id]["from"] not in bl: + cl.sendMessage(at,"[收回訊息者]\n%s\n[訊息內容]\n%s"%(cl.getContact(msg_dict[msg_id]["from"]).displayName,msg_dict[msg_id]["text"])) + del msg_dict[msg_id] + else: + pass + except Exception as e: + print (e) +#==============================================================================# + if op.type == 55: + print ("[ 55 ] NOTIFIED READ MESSAGE") + try: + if op.param1 in read['readPoint']: + if op.param2 in read['readMember'][op.param1]: + pass + else: + read['readMember'][op.param1] += op.param2 + read['ROM'][op.param1][op.param2] = op.param2 + backupData() + else: + pass + except: + pass + except Exception as error: + logError(error) +#==============================================================================# +while True: + try: + ops = oepoll.singleTrace(count=50) + if ops is not None: + for op in ops: + lineBot(op) + oepoll.setRevision(op.revision) + except Exception as e: + logError(e)