Rev 130 | Rev 513 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
## Autogenerated by Thrift## DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING#from thrift.Thrift import *from ttypes import *from thrift.Thrift import TProcessorfrom thrift.transport import TTransportfrom thrift.protocol import TBinaryProtocoltry:from thrift.protocol import fastbinaryexcept:fastbinary = Noneclass Iface:"""service"""def createContext(self, context, updateExisting):"""Parameters:- context- updateExisting"""passdef getContextFromId(self, userId, isSessionId):"""Parameters:- userId- isSessionId"""passdef getContextFromEmailOrHandle(self, emailorhandle, isEmail):"""Parameters:- emailorhandle- isEmail"""passdef getState(self, userId, isSessionId):"""Parameters:- userId- isSessionId"""passdef getPrimaryInfo(self, userId, isSessionId):"""Parameters:- userId- isSessionId"""passdef getInternalInfo(self, userId, isSessionId):"""Parameters:- userId- isSessionId"""passdef getContext(self, email, password):"""Parameters:- password"""passdef authenticateUser(self, handle, password, isEmail):"""Parameters:- handle- password- isEmail"""passdef userExists(self, email):"""Parameters:"""passdef addIpAdressForUser(self, ip, timestamp, userId):"""Parameters:- ip- timestamp- userId"""passdef addAddressForUser(self, address, userid, timestamp):"""Parameters:- address- userid- timestamp"""passdef removeAddressForUser(self, userid, addressId):"""Parameters:- userid- addressId"""passdef setUserAsLoggedIn(self, userId, timestamp):"""Parameters:- userId- timestamp"""passdef setUserAsLoggedOut(self, userid, timestamp):"""Parameters:- userid- timestamp"""passdef setDefaultAddress(self, userid, addressId):"""Parameters:- userid- addressId"""passdef updatePassword(self, userid, password):"""Parameters:- userid- password"""passdef deleteUser(self, userid, isSessionId):"""Parameters:- userid- isSessionId"""passdef sendEmailVerification(self, userid):"""Parameters:- userid"""passdef sendSMSVerification(self, userid):"""Parameters:- userid"""passdef confirmEmailVerification(self, userid):"""Parameters:- userid"""passdef confirmSMSVerification(self, userid):"""Parameters:- userid"""passdef addSocialhandle(self, userid, socialService, handle):"""Parameters:- userid- socialService- handle"""passdef sendNewPasswordById(self, userid):"""Parameters:- userid"""passdef sendNewPasswordByHandle(self, emailOrHandle, isEmail):"""Parameters:- emailOrHandle- isEmail"""passclass Client(Iface):"""service"""def __init__(self, iprot, oprot=None):self._iprot = self._oprot = iprotif oprot != None:self._oprot = oprotself._seqid = 0def createContext(self, context, updateExisting):"""Parameters:- context- updateExisting"""self.send_createContext(context, updateExisting)return self.recv_createContext()def send_createContext(self, context, updateExisting):self._oprot.writeMessageBegin('createContext', TMessageType.CALL, self._seqid)args = createContext_args()args.context = contextargs.updateExisting = updateExistingargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_createContext(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = createContext_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.cex != None:raise result.cexraise TApplicationException(TApplicationException.MISSING_RESULT, "createContext failed: unknown result");def getContextFromId(self, userId, isSessionId):"""Parameters:- userId- isSessionId"""self.send_getContextFromId(userId, isSessionId)return self.recv_getContextFromId()def send_getContextFromId(self, userId, isSessionId):self._oprot.writeMessageBegin('getContextFromId', TMessageType.CALL, self._seqid)args = getContextFromId_args()args.userId = userIdargs.isSessionId = isSessionIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getContextFromId(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getContextFromId_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "getContextFromId failed: unknown result");def getContextFromEmailOrHandle(self, emailorhandle, isEmail):"""Parameters:- emailorhandle- isEmail"""self.send_getContextFromEmailOrHandle(emailorhandle, isEmail)return self.recv_getContextFromEmailOrHandle()def send_getContextFromEmailOrHandle(self, emailorhandle, isEmail):self._oprot.writeMessageBegin('getContextFromEmailOrHandle', TMessageType.CALL, self._seqid)args = getContextFromEmailOrHandle_args()args.emailorhandle = emailorhandleargs.isEmail = isEmailargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getContextFromEmailOrHandle(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getContextFromEmailOrHandle_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "getContextFromEmailOrHandle failed: unknown result");def getState(self, userId, isSessionId):"""Parameters:- userId- isSessionId"""self.send_getState(userId, isSessionId)return self.recv_getState()def send_getState(self, userId, isSessionId):self._oprot.writeMessageBegin('getState', TMessageType.CALL, self._seqid)args = getState_args()args.userId = userIdargs.isSessionId = isSessionIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getState(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getState_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "getState failed: unknown result");def getPrimaryInfo(self, userId, isSessionId):"""Parameters:- userId- isSessionId"""self.send_getPrimaryInfo(userId, isSessionId)return self.recv_getPrimaryInfo()def send_getPrimaryInfo(self, userId, isSessionId):self._oprot.writeMessageBegin('getPrimaryInfo', TMessageType.CALL, self._seqid)args = getPrimaryInfo_args()args.userId = userIdargs.isSessionId = isSessionIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getPrimaryInfo(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getPrimaryInfo_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "getPrimaryInfo failed: unknown result");def getInternalInfo(self, userId, isSessionId):"""Parameters:- userId- isSessionId"""self.send_getInternalInfo(userId, isSessionId)return self.recv_getInternalInfo()def send_getInternalInfo(self, userId, isSessionId):self._oprot.writeMessageBegin('getInternalInfo', TMessageType.CALL, self._seqid)args = getInternalInfo_args()args.userId = userIdargs.isSessionId = isSessionIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getInternalInfo(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getInternalInfo_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "getInternalInfo failed: unknown result");def getContext(self, email, password):"""Parameters:- password"""self.send_getContext(email, password)return self.recv_getContext()def send_getContext(self, email, password):self._oprot.writeMessageBegin('getContext', TMessageType.CALL, self._seqid)args = getContext_args()args.email = emailargs.password = passwordargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getContext(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getContext_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ax != None:raise result.axraise TApplicationException(TApplicationException.MISSING_RESULT, "getContext failed: unknown result");def authenticateUser(self, handle, password, isEmail):"""Parameters:- handle- password- isEmail"""self.send_authenticateUser(handle, password, isEmail)return self.recv_authenticateUser()def send_authenticateUser(self, handle, password, isEmail):self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)args = authenticateUser_args()args.handle = handleargs.password = passwordargs.isEmail = isEmailargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_authenticateUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = authenticateUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ax != None:raise result.axraise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");def userExists(self, email):"""Parameters:"""self.send_userExists(email)return self.recv_userExists()def send_userExists(self, email):self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)args = userExists_args()args.email = emailargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_userExists(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = userExists_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");def addIpAdressForUser(self, ip, timestamp, userId):"""Parameters:- ip- timestamp- userId"""self.send_addIpAdressForUser(ip, timestamp, userId)return self.recv_addIpAdressForUser()def send_addIpAdressForUser(self, ip, timestamp, userId):self._oprot.writeMessageBegin('addIpAdressForUser', TMessageType.CALL, self._seqid)args = addIpAdressForUser_args()args.ip = ipargs.timestamp = timestampargs.userId = userIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addIpAdressForUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addIpAdressForUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "addIpAdressForUser failed: unknown result");def addAddressForUser(self, address, userid, timestamp):"""Parameters:- address- userid- timestamp"""self.send_addAddressForUser(address, userid, timestamp)return self.recv_addAddressForUser()def send_addAddressForUser(self, address, userid, timestamp):self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)args = addAddressForUser_args()args.address = addressargs.userid = useridargs.timestamp = timestampargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addAddressForUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addAddressForUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");def removeAddressForUser(self, userid, addressId):"""Parameters:- userid- addressId"""self.send_removeAddressForUser(userid, addressId)return self.recv_removeAddressForUser()def send_removeAddressForUser(self, userid, addressId):self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)args = removeAddressForUser_args()args.userid = useridargs.addressId = addressIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_removeAddressForUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = removeAddressForUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");def setUserAsLoggedIn(self, userId, timestamp):"""Parameters:- userId- timestamp"""self.send_setUserAsLoggedIn(userId, timestamp)return self.recv_setUserAsLoggedIn()def send_setUserAsLoggedIn(self, userId, timestamp):self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)args = setUserAsLoggedIn_args()args.userId = userIdargs.timestamp = timestampargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_setUserAsLoggedIn(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = setUserAsLoggedIn_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");def setUserAsLoggedOut(self, userid, timestamp):"""Parameters:- userid- timestamp"""self.send_setUserAsLoggedOut(userid, timestamp)return self.recv_setUserAsLoggedOut()def send_setUserAsLoggedOut(self, userid, timestamp):self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)args = setUserAsLoggedOut_args()args.userid = useridargs.timestamp = timestampargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_setUserAsLoggedOut(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = setUserAsLoggedOut_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");def setDefaultAddress(self, userid, addressId):"""Parameters:- userid- addressId"""self.send_setDefaultAddress(userid, addressId)return self.recv_setDefaultAddress()def send_setDefaultAddress(self, userid, addressId):self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)args = setDefaultAddress_args()args.userid = useridargs.addressId = addressIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_setDefaultAddress(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = setDefaultAddress_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");def updatePassword(self, userid, password):"""Parameters:- userid- password"""self.send_updatePassword(userid, password)return self.recv_updatePassword()def send_updatePassword(self, userid, password):self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)args = updatePassword_args()args.userid = useridargs.password = passwordargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updatePassword(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updatePassword_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");def deleteUser(self, userid, isSessionId):"""Parameters:- userid- isSessionId"""self.send_deleteUser(userid, isSessionId)return self.recv_deleteUser()def send_deleteUser(self, userid, isSessionId):self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)args = deleteUser_args()args.userid = useridargs.isSessionId = isSessionIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_deleteUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = deleteUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");def sendEmailVerification(self, userid):"""Parameters:- userid"""self.send_sendEmailVerification(userid)return self.recv_sendEmailVerification()def send_sendEmailVerification(self, userid):self._oprot.writeMessageBegin('sendEmailVerification', TMessageType.CALL, self._seqid)args = sendEmailVerification_args()args.userid = useridargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_sendEmailVerification(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = sendEmailVerification_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "sendEmailVerification failed: unknown result");def sendSMSVerification(self, userid):"""Parameters:- userid"""self.send_sendSMSVerification(userid)return self.recv_sendSMSVerification()def send_sendSMSVerification(self, userid):self._oprot.writeMessageBegin('sendSMSVerification', TMessageType.CALL, self._seqid)args = sendSMSVerification_args()args.userid = useridargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_sendSMSVerification(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = sendSMSVerification_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "sendSMSVerification failed: unknown result");def confirmEmailVerification(self, userid):"""Parameters:- userid"""self.send_confirmEmailVerification(userid)return self.recv_confirmEmailVerification()def send_confirmEmailVerification(self, userid):self._oprot.writeMessageBegin('confirmEmailVerification', TMessageType.CALL, self._seqid)args = confirmEmailVerification_args()args.userid = useridargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_confirmEmailVerification(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = confirmEmailVerification_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "confirmEmailVerification failed: unknown result");def confirmSMSVerification(self, userid):"""Parameters:- userid"""self.send_confirmSMSVerification(userid)return self.recv_confirmSMSVerification()def send_confirmSMSVerification(self, userid):self._oprot.writeMessageBegin('confirmSMSVerification', TMessageType.CALL, self._seqid)args = confirmSMSVerification_args()args.userid = useridargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_confirmSMSVerification(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = confirmSMSVerification_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "confirmSMSVerification failed: unknown result");def addSocialhandle(self, userid, socialService, handle):"""Parameters:- userid- socialService- handle"""self.send_addSocialhandle(userid, socialService, handle)return self.recv_addSocialhandle()def send_addSocialhandle(self, userid, socialService, handle):self._oprot.writeMessageBegin('addSocialhandle', TMessageType.CALL, self._seqid)args = addSocialhandle_args()args.userid = useridargs.socialService = socialServiceargs.handle = handleargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addSocialhandle(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addSocialhandle_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "addSocialhandle failed: unknown result");def sendNewPasswordById(self, userid):"""Parameters:- userid"""self.send_sendNewPasswordById(userid)return self.recv_sendNewPasswordById()def send_sendNewPasswordById(self, userid):self._oprot.writeMessageBegin('sendNewPasswordById', TMessageType.CALL, self._seqid)args = sendNewPasswordById_args()args.userid = useridargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_sendNewPasswordById(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = sendNewPasswordById_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "sendNewPasswordById failed: unknown result");def sendNewPasswordByHandle(self, emailOrHandle, isEmail):"""Parameters:- emailOrHandle- isEmail"""self.send_sendNewPasswordByHandle(emailOrHandle, isEmail)return self.recv_sendNewPasswordByHandle()def send_sendNewPasswordByHandle(self, emailOrHandle, isEmail):self._oprot.writeMessageBegin('sendNewPasswordByHandle', TMessageType.CALL, self._seqid)args = sendNewPasswordByHandle_args()args.emailOrHandle = emailOrHandleargs.isEmail = isEmailargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_sendNewPasswordByHandle(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = sendNewPasswordByHandle_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "sendNewPasswordByHandle failed: unknown result");class Processor(Iface, TProcessor):def __init__(self, handler):self._handler = handlerself._processMap = {}self._processMap["createContext"] = Processor.process_createContextself._processMap["getContextFromId"] = Processor.process_getContextFromIdself._processMap["getContextFromEmailOrHandle"] = Processor.process_getContextFromEmailOrHandleself._processMap["getState"] = Processor.process_getStateself._processMap["getPrimaryInfo"] = Processor.process_getPrimaryInfoself._processMap["getInternalInfo"] = Processor.process_getInternalInfoself._processMap["getContext"] = Processor.process_getContextself._processMap["authenticateUser"] = Processor.process_authenticateUserself._processMap["userExists"] = Processor.process_userExistsself._processMap["addIpAdressForUser"] = Processor.process_addIpAdressForUserself._processMap["addAddressForUser"] = Processor.process_addAddressForUserself._processMap["removeAddressForUser"] = Processor.process_removeAddressForUserself._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedInself._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOutself._processMap["setDefaultAddress"] = Processor.process_setDefaultAddressself._processMap["updatePassword"] = Processor.process_updatePasswordself._processMap["deleteUser"] = Processor.process_deleteUserself._processMap["sendEmailVerification"] = Processor.process_sendEmailVerificationself._processMap["sendSMSVerification"] = Processor.process_sendSMSVerificationself._processMap["confirmEmailVerification"] = Processor.process_confirmEmailVerificationself._processMap["confirmSMSVerification"] = Processor.process_confirmSMSVerificationself._processMap["addSocialhandle"] = Processor.process_addSocialhandleself._processMap["sendNewPasswordById"] = Processor.process_sendNewPasswordByIdself._processMap["sendNewPasswordByHandle"] = Processor.process_sendNewPasswordByHandledef 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()returnelse:self._processMap[name](self, seqid, iprot, oprot)return Truedef process_createContext(self, seqid, iprot, oprot):args = createContext_args()args.read(iprot)iprot.readMessageEnd()result = createContext_result()try:result.success = self._handler.createContext(args.context, args.updateExisting)except UserContextException, cex:result.cex = cexoprot.writeMessageBegin("createContext", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getContextFromId(self, seqid, iprot, oprot):args = getContextFromId_args()args.read(iprot)iprot.readMessageEnd()result = getContextFromId_result()try:result.success = self._handler.getContextFromId(args.userId, args.isSessionId)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("getContextFromId", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getContextFromEmailOrHandle(self, seqid, iprot, oprot):args = getContextFromEmailOrHandle_args()args.read(iprot)iprot.readMessageEnd()result = getContextFromEmailOrHandle_result()try:result.success = self._handler.getContextFromEmailOrHandle(args.emailorhandle, args.isEmail)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("getContextFromEmailOrHandle", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getState(self, seqid, iprot, oprot):args = getState_args()args.read(iprot)iprot.readMessageEnd()result = getState_result()try:result.success = self._handler.getState(args.userId, args.isSessionId)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("getState", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getPrimaryInfo(self, seqid, iprot, oprot):args = getPrimaryInfo_args()args.read(iprot)iprot.readMessageEnd()result = getPrimaryInfo_result()try:result.success = self._handler.getPrimaryInfo(args.userId, args.isSessionId)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("getPrimaryInfo", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getInternalInfo(self, seqid, iprot, oprot):args = getInternalInfo_args()args.read(iprot)iprot.readMessageEnd()result = getInternalInfo_result()try:result.success = self._handler.getInternalInfo(args.userId, args.isSessionId)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("getInternalInfo", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getContext(self, seqid, iprot, oprot):args = getContext_args()args.read(iprot)iprot.readMessageEnd()result = getContext_result()try:result.success = self._handler.getContext(args.email, args.password)except AuthenticationException, ax:result.ax = axoprot.writeMessageBegin("getContext", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_authenticateUser(self, seqid, iprot, oprot):args = authenticateUser_args()args.read(iprot)iprot.readMessageEnd()result = authenticateUser_result()try:result.success = self._handler.authenticateUser(args.handle, args.password, args.isEmail)except AuthenticationException, ax:result.ax = axoprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_userExists(self, seqid, iprot, oprot):args = userExists_args()args.read(iprot)iprot.readMessageEnd()result = userExists_result()try:result.success = self._handler.userExists(args.email)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addIpAdressForUser(self, seqid, iprot, oprot):args = addIpAdressForUser_args()args.read(iprot)iprot.readMessageEnd()result = addIpAdressForUser_result()try:result.success = self._handler.addIpAdressForUser(args.ip, args.timestamp, args.userId)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("addIpAdressForUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addAddressForUser(self, seqid, iprot, oprot):args = addAddressForUser_args()args.read(iprot)iprot.readMessageEnd()result = addAddressForUser_result()try:result.success = self._handler.addAddressForUser(args.address, args.userid, args.timestamp)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_removeAddressForUser(self, seqid, iprot, oprot):args = removeAddressForUser_args()args.read(iprot)iprot.readMessageEnd()result = removeAddressForUser_result()try:result.success = self._handler.removeAddressForUser(args.userid, args.addressId)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_setUserAsLoggedIn(self, seqid, iprot, oprot):args = setUserAsLoggedIn_args()args.read(iprot)iprot.readMessageEnd()result = setUserAsLoggedIn_result()try:result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_setUserAsLoggedOut(self, seqid, iprot, oprot):args = setUserAsLoggedOut_args()args.read(iprot)iprot.readMessageEnd()result = setUserAsLoggedOut_result()try:result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_setDefaultAddress(self, seqid, iprot, oprot):args = setDefaultAddress_args()args.read(iprot)iprot.readMessageEnd()result = setDefaultAddress_result()try:result.success = self._handler.setDefaultAddress(args.userid, args.addressId)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updatePassword(self, seqid, iprot, oprot):args = updatePassword_args()args.read(iprot)iprot.readMessageEnd()result = updatePassword_result()try:result.success = self._handler.updatePassword(args.userid, args.password)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_deleteUser(self, seqid, iprot, oprot):args = deleteUser_args()args.read(iprot)iprot.readMessageEnd()result = deleteUser_result()try:result.success = self._handler.deleteUser(args.userid, args.isSessionId)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_sendEmailVerification(self, seqid, iprot, oprot):args = sendEmailVerification_args()args.read(iprot)iprot.readMessageEnd()result = sendEmailVerification_result()try:result.success = self._handler.sendEmailVerification(args.userid)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("sendEmailVerification", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_sendSMSVerification(self, seqid, iprot, oprot):args = sendSMSVerification_args()args.read(iprot)iprot.readMessageEnd()result = sendSMSVerification_result()try:result.success = self._handler.sendSMSVerification(args.userid)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("sendSMSVerification", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_confirmEmailVerification(self, seqid, iprot, oprot):args = confirmEmailVerification_args()args.read(iprot)iprot.readMessageEnd()result = confirmEmailVerification_result()try:result.success = self._handler.confirmEmailVerification(args.userid)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("confirmEmailVerification", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_confirmSMSVerification(self, seqid, iprot, oprot):args = confirmSMSVerification_args()args.read(iprot)iprot.readMessageEnd()result = confirmSMSVerification_result()try:result.success = self._handler.confirmSMSVerification(args.userid)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("confirmSMSVerification", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addSocialhandle(self, seqid, iprot, oprot):args = addSocialhandle_args()args.read(iprot)iprot.readMessageEnd()result = addSocialhandle_result()try:result.success = self._handler.addSocialhandle(args.userid, args.socialService, args.handle)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("addSocialhandle", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_sendNewPasswordById(self, seqid, iprot, oprot):args = sendNewPasswordById_args()args.read(iprot)iprot.readMessageEnd()result = sendNewPasswordById_result()try:result.success = self._handler.sendNewPasswordById(args.userid)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("sendNewPasswordById", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_sendNewPasswordByHandle(self, seqid, iprot, oprot):args = sendNewPasswordByHandle_args()args.read(iprot)iprot.readMessageEnd()result = sendNewPasswordByHandle_result()try:result.success = self._handler.sendNewPasswordByHandle(args.emailOrHandle, args.isEmail)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("sendNewPasswordByHandle", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()# HELPER FUNCTIONS AND STRUCTURESclass createContext_args:"""Attributes:- context- updateExisting"""thrift_spec = (None, # 0(1, TType.STRUCT, 'context', (UserContext, UserContext.thrift_spec), None, ), # 1(2, TType.BOOL, 'updateExisting', None, None, ), # 2)def __init__(self, context=None, updateExisting=None,):self.context = contextself.updateExisting = updateExistingdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRUCT:self.context = UserContext()self.context.read(iprot)else:iprot.skip(ftype)elif fid == 2:if ftype == TType.BOOL:self.updateExisting = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('createContext_args')if self.context != None:oprot.writeFieldBegin('context', TType.STRUCT, 1)self.context.write(oprot)oprot.writeFieldEnd()if self.updateExisting != None:oprot.writeFieldBegin('updateExisting', TType.BOOL, 2)oprot.writeBool(self.updateExisting)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createContext_result:"""Attributes:- success- cex"""thrift_spec = ((0, TType.STRUCT, 'success', (UserContext, UserContext.thrift_spec), None, ), # 0(1, TType.STRUCT, 'cex', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, cex=None,):self.success = successself.cex = cexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = UserContext()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.cex = UserContextException()self.cex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('createContext_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.cex != None:oprot.writeFieldBegin('cex', TType.STRUCT, 1)self.cex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getContextFromId_args:"""Attributes:- userId- isSessionId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1(2, TType.BOOL, 'isSessionId', None, None, ), # 2)def __init__(self, userId=None, isSessionId=None,):self.userId = userIdself.isSessionId = isSessionIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.BOOL:self.isSessionId = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getContextFromId_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.isSessionId != None:oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)oprot.writeBool(self.isSessionId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getContextFromId_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.STRUCT, 'success', (UserContext, UserContext.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = UserContext()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getContextFromId_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getContextFromEmailOrHandle_args:"""Attributes:- emailorhandle- isEmail"""thrift_spec = (None, # 0(1, TType.STRING, 'emailorhandle', None, None, ), # 1(2, TType.BOOL, 'isEmail', None, None, ), # 2)def __init__(self, emailorhandle=None, isEmail=None,):self.emailorhandle = emailorhandleself.isEmail = isEmaildef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.emailorhandle = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.BOOL:self.isEmail = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getContextFromEmailOrHandle_args')if self.emailorhandle != None:oprot.writeFieldBegin('emailorhandle', TType.STRING, 1)oprot.writeString(self.emailorhandle)oprot.writeFieldEnd()if self.isEmail != None:oprot.writeFieldBegin('isEmail', TType.BOOL, 2)oprot.writeBool(self.isEmail)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getContextFromEmailOrHandle_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.STRUCT, 'success', (UserContext, UserContext.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = UserContext()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getContextFromEmailOrHandle_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getState_args:"""Attributes:- userId- isSessionId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1(2, TType.BOOL, 'isSessionId', None, None, ), # 2)def __init__(self, userId=None, isSessionId=None,):self.userId = userIdself.isSessionId = isSessionIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.BOOL:self.isSessionId = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getState_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.isSessionId != None:oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)oprot.writeBool(self.isSessionId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getState_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = UserState()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getState_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getPrimaryInfo_args:"""Attributes:- userId- isSessionId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1(2, TType.BOOL, 'isSessionId', None, None, ), # 2)def __init__(self, userId=None, isSessionId=None,):self.userId = userIdself.isSessionId = isSessionIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.BOOL:self.isSessionId = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getPrimaryInfo_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.isSessionId != None:oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)oprot.writeBool(self.isSessionId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getPrimaryInfo_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.STRUCT, 'success', (UserPrimaryInfo, UserPrimaryInfo.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = UserPrimaryInfo()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getPrimaryInfo_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getInternalInfo_args:"""Attributes:- userId- isSessionId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1(2, TType.BOOL, 'isSessionId', None, None, ), # 2)def __init__(self, userId=None, isSessionId=None,):self.userId = userIdself.isSessionId = isSessionIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.BOOL:self.isSessionId = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getInternalInfo_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.isSessionId != None:oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)oprot.writeBool(self.isSessionId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getInternalInfo_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.STRUCT, 'success', (UserInternalInfo, UserInternalInfo.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = UserInternalInfo()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getInternalInfo_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getContext_args:"""Attributes:- password"""thrift_spec = (None, # 0(1, TType.STRING, 'email', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2)def __init__(self, email=None, password=None,):self.email = emailself.password = passworddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.email = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.password = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getContext_args')if self.email != None:oprot.writeFieldBegin('email', TType.STRING, 1)oprot.writeString(self.email)oprot.writeFieldEnd()if self.password != None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getContext_result:"""Attributes:- success- ax"""thrift_spec = ((0, TType.STRUCT, 'success', (UserContext, UserContext.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ax', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1)def __init__(self, success=None, ax=None,):self.success = successself.ax = axdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = UserContext()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ax = AuthenticationException()self.ax.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getContext_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ax != None:oprot.writeFieldBegin('ax', TType.STRUCT, 1)self.ax.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class authenticateUser_args:"""Attributes:- handle- password- isEmail"""thrift_spec = (None, # 0(1, TType.STRING, 'handle', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2(3, TType.BOOL, 'isEmail', None, None, ), # 3)def __init__(self, handle=None, password=None, isEmail=None,):self.handle = handleself.password = passwordself.isEmail = isEmaildef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.handle = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.password = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.BOOL:self.isEmail = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('authenticateUser_args')if self.handle != None:oprot.writeFieldBegin('handle', TType.STRING, 1)oprot.writeString(self.handle)oprot.writeFieldEnd()if self.password != None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()if self.isEmail != None:oprot.writeFieldBegin('isEmail', TType.BOOL, 3)oprot.writeBool(self.isEmail)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class authenticateUser_result:"""Attributes:- success- ax"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ax', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1)def __init__(self, success=None, ax=None,):self.success = successself.ax = axdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ax = AuthenticationException()self.ax.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('authenticateUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ax != None:oprot.writeFieldBegin('ax', TType.STRUCT, 1)self.ax.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class userExists_args:"""Attributes:"""thrift_spec = (None, # 0(1, TType.STRING, 'email', None, None, ), # 1)def __init__(self, email=None,):self.email = emaildef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.email = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('userExists_args')if self.email != None:oprot.writeFieldBegin('email', TType.STRING, 1)oprot.writeString(self.email)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class userExists_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('userExists_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addIpAdressForUser_args:"""Attributes:- ip- timestamp- userId"""thrift_spec = (None, # 0(1, TType.STRING, 'ip', None, None, ), # 1(2, TType.I64, 'timestamp', None, None, ), # 2(3, TType.I64, 'userId', None, None, ), # 3)def __init__(self, ip=None, timestamp=None, userId=None,):self.ip = ipself.timestamp = timestampself.userId = userIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.ip = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.timestamp = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addIpAdressForUser_args')if self.ip != None:oprot.writeFieldBegin('ip', TType.STRING, 1)oprot.writeString(self.ip)oprot.writeFieldEnd()if self.timestamp != None:oprot.writeFieldBegin('timestamp', TType.I64, 2)oprot.writeI64(self.timestamp)oprot.writeFieldEnd()if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 3)oprot.writeI64(self.userId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addIpAdressForUser_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addIpAdressForUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addAddressForUser_args:"""Attributes:- address- userid- timestamp"""thrift_spec = (None, # 0(1, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 1(2, TType.I64, 'userid', None, None, ), # 2(3, TType.I64, 'timestamp', None, None, ), # 3)def __init__(self, address=None, userid=None, timestamp=None,):self.address = addressself.userid = useridself.timestamp = timestampdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRUCT:self.address = Address()self.address.read(iprot)else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)elif fid == 3: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.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addAddressForUser_args')if self.address != None:oprot.writeFieldBegin('address', TType.STRUCT, 1)self.address.write(oprot)oprot.writeFieldEnd()if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 2)oprot.writeI64(self.userid)oprot.writeFieldEnd()if self.timestamp != None:oprot.writeFieldBegin('timestamp', TType.I64, 3)oprot.writeI64(self.timestamp)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addAddressForUser_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addAddressForUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class removeAddressForUser_args:"""Attributes:- userid- addressId"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1(2, TType.I64, 'addressId', None, None, ), # 2)def __init__(self, userid=None, addressId=None,):self.userid = useridself.addressId = addressIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.addressId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('removeAddressForUser_args')if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()if self.addressId != None:oprot.writeFieldBegin('addressId', TType.I64, 2)oprot.writeI64(self.addressId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class removeAddressForUser_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('removeAddressForUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class setUserAsLoggedIn_args:"""Attributes:- userId- timestamp"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1(2, TType.I64, 'timestamp', None, None, ), # 2)def __init__(self, userId=None, timestamp=None,):self.userId = userIdself.timestamp = timestampdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)elif 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.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('setUserAsLoggedIn_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.timestamp != None:oprot.writeFieldBegin('timestamp', TType.I64, 2)oprot.writeI64(self.timestamp)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class setUserAsLoggedIn_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('setUserAsLoggedIn_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class setUserAsLoggedOut_args:"""Attributes:- userid- timestamp"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1(2, TType.I64, 'timestamp', None, None, ), # 2)def __init__(self, userid=None, timestamp=None,):self.userid = useridself.timestamp = timestampdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)elif 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.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('setUserAsLoggedOut_args')if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()if self.timestamp != None:oprot.writeFieldBegin('timestamp', TType.I64, 2)oprot.writeI64(self.timestamp)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class setUserAsLoggedOut_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('setUserAsLoggedOut_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class setDefaultAddress_args:"""Attributes:- userid- addressId"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1(2, TType.I64, 'addressId', None, None, ), # 2)def __init__(self, userid=None, addressId=None,):self.userid = useridself.addressId = addressIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.addressId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('setDefaultAddress_args')if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()if self.addressId != None:oprot.writeFieldBegin('addressId', TType.I64, 2)oprot.writeI64(self.addressId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class setDefaultAddress_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('setDefaultAddress_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class updatePassword_args:"""Attributes:- userid- password"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2)def __init__(self, userid=None, password=None,):self.userid = useridself.password = passworddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.password = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('updatePassword_args')if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()if self.password != None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class updatePassword_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('updatePassword_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteUser_args:"""Attributes:- userid- isSessionId"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1(2, TType.BOOL, 'isSessionId', None, None, ), # 2)def __init__(self, userid=None, isSessionId=None,):self.userid = useridself.isSessionId = isSessionIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.BOOL:self.isSessionId = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('deleteUser_args')if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()if self.isSessionId != None:oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)oprot.writeBool(self.isSessionId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteUser_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('deleteUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class sendEmailVerification_args:"""Attributes:- userid"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1)def __init__(self, userid=None,):self.userid = useriddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('sendEmailVerification_args')if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class sendEmailVerification_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('sendEmailVerification_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class sendSMSVerification_args:"""Attributes:- userid"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1)def __init__(self, userid=None,):self.userid = useriddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('sendSMSVerification_args')if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class sendSMSVerification_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('sendSMSVerification_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class confirmEmailVerification_args:"""Attributes:- userid"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1)def __init__(self, userid=None,):self.userid = useriddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('confirmEmailVerification_args')if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class confirmEmailVerification_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('confirmEmailVerification_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class confirmSMSVerification_args:"""Attributes:- userid"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1)def __init__(self, userid=None,):self.userid = useriddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('confirmSMSVerification_args')if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class confirmSMSVerification_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('confirmSMSVerification_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addSocialhandle_args:"""Attributes:- userid- socialService- handle"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1(2, TType.STRING, 'socialService', None, None, ), # 2(3, TType.STRING, 'handle', None, None, ), # 3)def __init__(self, userid=None, socialService=None, handle=None,):self.userid = useridself.socialService = socialServiceself.handle = handledef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.socialService = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.handle = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addSocialhandle_args')if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()if self.socialService != None:oprot.writeFieldBegin('socialService', TType.STRING, 2)oprot.writeString(self.socialService)oprot.writeFieldEnd()if self.handle != None:oprot.writeFieldBegin('handle', TType.STRING, 3)oprot.writeString(self.handle)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addSocialhandle_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addSocialhandle_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class sendNewPasswordById_args:"""Attributes:- userid"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1)def __init__(self, userid=None,):self.userid = useriddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('sendNewPasswordById_args')if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class sendNewPasswordById_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('sendNewPasswordById_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class sendNewPasswordByHandle_args:"""Attributes:- emailOrHandle- isEmail"""thrift_spec = (None, # 0(1, TType.STRING, 'emailOrHandle', None, None, ), # 1(2, TType.BOOL, 'isEmail', None, None, ), # 2)def __init__(self, emailOrHandle=None, isEmail=None,):self.emailOrHandle = emailOrHandleself.isEmail = isEmaildef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.emailOrHandle = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.BOOL:self.isEmail = iprot.readBool();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('sendNewPasswordByHandle_args')if self.emailOrHandle != None:oprot.writeFieldBegin('emailOrHandle', TType.STRING, 1)oprot.writeString(self.emailOrHandle)oprot.writeFieldEnd()if self.isEmail != None:oprot.writeFieldBegin('isEmail', TType.BOOL, 2)oprot.writeBool(self.isEmail)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class sendNewPasswordByHandle_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('sendNewPasswordByHandle_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)