Rev 7410 | Rev 12696 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
## Autogenerated by Thrift Compiler (0.7.0)## DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING#from thrift.Thrift import *import shop2020.thriftpy.generic.GenericServicefrom ttypes import *from thrift.Thrift import TProcessorfrom thrift.transport import TTransportfrom thrift.protocol import TBinaryProtocol, TProtocoltry:from thrift.protocol import fastbinaryexcept:fastbinary = Noneclass Iface(shop2020.thriftpy.generic.GenericService.Iface):def saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId):"""Save email details, to be sent later; Also returns its identifier.Parameters:- emailTo- emailFrom- subject- body- source- emailType- cc- bcc- sourceId"""passdef getEmailsToBeSent(self, ):"""Retreives all the emails pending for dispatch"""passdef markEmailAsSent(self, emailId):"""Marks email as sent after successful dispatchParameters:- emailId"""passdef sendMail(self, mail):"""Parameters:"""passdef sendText(self, message):"""Parameters:- message"""passdef addMessage(self, message):"""Parameters:- message"""passdef updateMessage(self, id, message):"""Parameters:- id- message"""passdef getMessage(self, id):"""Parameters:- id"""passdef getSubstitutedMessage(self, id, params):"""Parameters:- id- params"""passdef addUser(self, username, password, warehouseId):"""Parameters:- username- password- warehouseId"""passdef deleteUser(self, username):"""Parameters:- username"""passdef authenticateDashboardUser(self, username, password):"""Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.The loggedOn timestamp for the dashboard user is updated .Parameters:- username- password"""passdef updatePassword(self, username, oldPassword, newPassword):"""Update the password of the dashboard user. Currently, there is no place where this method is called.Parameters:- username- oldPassword- newPassword"""passdef authenticateLogisticsUser(self, username, password):"""Returns the LogisticsUser struct associated with the given username and password if they match.Throws an exception otherwise.Parameters:- username- password"""passdef authenticateStatisticsUser(self, username, password):"""Returns the StatisticsUser struct associated with the given username and password if they match.Throws an exception otherwise.Parameters:- username- password"""passdef authenticateReportUser(self, username, password):"""Returns the ReportUser struct associated with the given username and password if they match.Throws an exception otherwise.Parameters:- username- password"""passdef getReports(self, role):"""Returns list of reports which are configured for the given role.Parameters:- role"""passdef authenticateCatalogUser(self, username, password):"""Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.Throws an exception otherwise.Parameters:- username- password"""passdef shareEntities(self, entityIds, email):"""Saves the list of entity Ids to be shared with an email addressParameters:- entityIds"""passdef getAgents(self, ):passdef validateLogIn(self, emailId, password):"""Parameters:- emailId- password"""passdef updatePasswordForAgent(self, agentEmailId, password):"""Parameters:- agentEmailId- password"""passdef getRoleNamesForAgent(self, agentEmailId):"""Parameters:- agentEmailId"""passdef getPermissionsForRoleName(self, roleName):"""Parameters:- roleName"""passdef saveQuickLink(self, url, text):"""Parameters:- url- text"""passdef getQuickLinks(self, ):passdef updateQuickLink(self, id, url, text):"""Parameters:- id- url- text"""passdef getEmailsForNotificationsSent(self, startDatetime, endDatetime):"""Returns a list of emails to which product notifications have been sent in a given date rangeParameters:- startDatetime- endDatetime"""passdef getOrderConfirmationMail(self, orderId):"""Parameters:- orderId"""passdef getOrderDeliveryMail(self, orderId):"""Parameters:- orderId"""passdef getWarehouseIdsForAgent(self, agentEmailId):"""Parameters:- agentEmailId"""passclass Client(shop2020.thriftpy.generic.GenericService.Client, Iface):def __init__(self, iprot, oprot=None):shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)def saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId):"""Save email details, to be sent later; Also returns its identifier.Parameters:- emailTo- emailFrom- subject- body- source- emailType- cc- bcc- sourceId"""self.send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId)return self.recv_saveUserEmailForSending()def send_saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId):self._oprot.writeMessageBegin('saveUserEmailForSending', TMessageType.CALL, self._seqid)args = saveUserEmailForSending_args()args.emailTo = emailToargs.emailFrom = emailFromargs.subject = subjectargs.body = bodyargs.source = sourceargs.emailType = emailTypeargs.cc = ccargs.bcc = bccargs.sourceId = sourceIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_saveUserEmailForSending(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = saveUserEmailForSending_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.se is not None:raise result.seraise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");def getEmailsToBeSent(self, ):"""Retreives all the emails pending for dispatch"""self.send_getEmailsToBeSent()return self.recv_getEmailsToBeSent()def send_getEmailsToBeSent(self, ):self._oprot.writeMessageBegin('getEmailsToBeSent', TMessageType.CALL, self._seqid)args = getEmailsToBeSent_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getEmailsToBeSent(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getEmailsToBeSent_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.se is not None:raise result.seraise TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");def markEmailAsSent(self, emailId):"""Marks email as sent after successful dispatchParameters:- emailId"""self.send_markEmailAsSent(emailId)self.recv_markEmailAsSent()def send_markEmailAsSent(self, emailId):self._oprot.writeMessageBegin('markEmailAsSent', TMessageType.CALL, self._seqid)args = markEmailAsSent_args()args.emailId = emailIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_markEmailAsSent(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = markEmailAsSent_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.se is not None:raise result.sereturndef sendMail(self, mail):"""Parameters:"""self.send_sendMail(mail)self.recv_sendMail()def send_sendMail(self, mail):self._oprot.writeMessageBegin('sendMail', TMessageType.CALL, self._seqid)args = sendMail_args()args.mail = mailargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_sendMail(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = sendMail_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.se is not None:raise result.sereturndef sendText(self, message):"""Parameters:- message"""self.send_sendText(message)self.recv_sendText()def send_sendText(self, message):self._oprot.writeMessageBegin('sendText', TMessageType.CALL, self._seqid)args = sendText_args()args.message = messageargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_sendText(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = sendText_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.se is not None:raise result.sereturndef addMessage(self, message):"""Parameters:- message"""self.send_addMessage(message)self.recv_addMessage()def send_addMessage(self, message):self._oprot.writeMessageBegin('addMessage', TMessageType.CALL, self._seqid)args = addMessage_args()args.message = messageargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addMessage(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addMessage_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.se is not None:raise result.sereturndef updateMessage(self, id, message):"""Parameters:- id- message"""self.send_updateMessage(id, message)self.recv_updateMessage()def send_updateMessage(self, id, message):self._oprot.writeMessageBegin('updateMessage', TMessageType.CALL, self._seqid)args = updateMessage_args()args.id = idargs.message = messageargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateMessage(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateMessage_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.se is not None:raise result.sereturndef getMessage(self, id):"""Parameters:- id"""self.send_getMessage(id)return self.recv_getMessage()def send_getMessage(self, id):self._oprot.writeMessageBegin('getMessage', TMessageType.CALL, self._seqid)args = getMessage_args()args.id = idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getMessage(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getMessage_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.se is not None:raise result.seraise TApplicationException(TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");def getSubstitutedMessage(self, id, params):"""Parameters:- id- params"""self.send_getSubstitutedMessage(id, params)return self.recv_getSubstitutedMessage()def send_getSubstitutedMessage(self, id, params):self._oprot.writeMessageBegin('getSubstitutedMessage', TMessageType.CALL, self._seqid)args = getSubstitutedMessage_args()args.id = idargs.params = paramsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getSubstitutedMessage(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getSubstitutedMessage_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.se is not None:raise result.seraise TApplicationException(TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");def addUser(self, username, password, warehouseId):"""Parameters:- username- password- warehouseId"""self.send_addUser(username, password, warehouseId)return self.recv_addUser()def send_addUser(self, username, password, warehouseId):self._oprot.writeMessageBegin('addUser', TMessageType.CALL, self._seqid)args = addUser_args()args.username = usernameargs.password = passwordargs.warehouseId = warehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.se is not None:raise result.seraise TApplicationException(TApplicationException.MISSING_RESULT, "addUser failed: unknown result");def deleteUser(self, username):"""Parameters:- username"""self.send_deleteUser(username)return self.recv_deleteUser()def send_deleteUser(self, username):self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)args = deleteUser_args()args.username = usernameargs.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 is not None:return result.successif result.se is not None:raise result.seraise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");def authenticateDashboardUser(self, username, password):"""Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.The loggedOn timestamp for the dashboard user is updated .Parameters:- username- password"""self.send_authenticateDashboardUser(username, password)return self.recv_authenticateDashboardUser()def send_authenticateDashboardUser(self, username, password):self._oprot.writeMessageBegin('authenticateDashboardUser', TMessageType.CALL, self._seqid)args = authenticateDashboardUser_args()args.username = usernameargs.password = passwordargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_authenticateDashboardUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = authenticateDashboardUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.se is not None:raise result.seraise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");def updatePassword(self, username, oldPassword, newPassword):"""Update the password of the dashboard user. Currently, there is no place where this method is called.Parameters:- username- oldPassword- newPassword"""self.send_updatePassword(username, oldPassword, newPassword)return self.recv_updatePassword()def send_updatePassword(self, username, oldPassword, newPassword):self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)args = updatePassword_args()args.username = usernameargs.oldPassword = oldPasswordargs.newPassword = newPasswordargs.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 is not None:return result.successif result.se is not None:raise result.seraise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");def authenticateLogisticsUser(self, username, password):"""Returns the LogisticsUser struct associated with the given username and password if they match.Throws an exception otherwise.Parameters:- username- password"""self.send_authenticateLogisticsUser(username, password)return self.recv_authenticateLogisticsUser()def send_authenticateLogisticsUser(self, username, password):self._oprot.writeMessageBegin('authenticateLogisticsUser', TMessageType.CALL, self._seqid)args = authenticateLogisticsUser_args()args.username = usernameargs.password = passwordargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_authenticateLogisticsUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = authenticateLogisticsUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.hse is not None:raise result.hseraise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");def authenticateStatisticsUser(self, username, password):"""Returns the StatisticsUser struct associated with the given username and password if they match.Throws an exception otherwise.Parameters:- username- password"""self.send_authenticateStatisticsUser(username, password)return self.recv_authenticateStatisticsUser()def send_authenticateStatisticsUser(self, username, password):self._oprot.writeMessageBegin('authenticateStatisticsUser', TMessageType.CALL, self._seqid)args = authenticateStatisticsUser_args()args.username = usernameargs.password = passwordargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_authenticateStatisticsUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = authenticateStatisticsUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.hse is not None:raise result.hseraise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");def authenticateReportUser(self, username, password):"""Returns the ReportUser struct associated with the given username and password if they match.Throws an exception otherwise.Parameters:- username- password"""self.send_authenticateReportUser(username, password)return self.recv_authenticateReportUser()def send_authenticateReportUser(self, username, password):self._oprot.writeMessageBegin('authenticateReportUser', TMessageType.CALL, self._seqid)args = authenticateReportUser_args()args.username = usernameargs.password = passwordargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_authenticateReportUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = authenticateReportUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.hse is not None:raise result.hseraise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");def getReports(self, role):"""Returns list of reports which are configured for the given role.Parameters:- role"""self.send_getReports(role)return self.recv_getReports()def send_getReports(self, role):self._oprot.writeMessageBegin('getReports', TMessageType.CALL, self._seqid)args = getReports_args()args.role = roleargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getReports(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getReports_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getReports failed: unknown result");def authenticateCatalogUser(self, username, password):"""Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.Throws an exception otherwise.Parameters:- username- password"""self.send_authenticateCatalogUser(username, password)return self.recv_authenticateCatalogUser()def send_authenticateCatalogUser(self, username, password):self._oprot.writeMessageBegin('authenticateCatalogUser', TMessageType.CALL, self._seqid)args = authenticateCatalogUser_args()args.username = usernameargs.password = passwordargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_authenticateCatalogUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = authenticateCatalogUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.hse is not None:raise result.hseraise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");def shareEntities(self, entityIds, email):"""Saves the list of entity Ids to be shared with an email addressParameters:- entityIds"""self.send_shareEntities(entityIds, email)self.recv_shareEntities()def send_shareEntities(self, entityIds, email):self._oprot.writeMessageBegin('shareEntities', TMessageType.CALL, self._seqid)args = shareEntities_args()args.entityIds = entityIdsargs.email = emailargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_shareEntities(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = shareEntities_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.hse is not None:raise result.hsereturndef getAgents(self, ):self.send_getAgents()return self.recv_getAgents()def send_getAgents(self, ):self._oprot.writeMessageBegin('getAgents', TMessageType.CALL, self._seqid)args = getAgents_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAgents(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAgents_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");def validateLogIn(self, emailId, password):"""Parameters:- emailId- password"""self.send_validateLogIn(emailId, password)return self.recv_validateLogIn()def send_validateLogIn(self, emailId, password):self._oprot.writeMessageBegin('validateLogIn', TMessageType.CALL, self._seqid)args = validateLogIn_args()args.emailId = emailIdargs.password = passwordargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_validateLogIn(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = validateLogIn_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");def updatePasswordForAgent(self, agentEmailId, password):"""Parameters:- agentEmailId- password"""self.send_updatePasswordForAgent(agentEmailId, password)self.recv_updatePasswordForAgent()def send_updatePasswordForAgent(self, agentEmailId, password):self._oprot.writeMessageBegin('updatePasswordForAgent', TMessageType.CALL, self._seqid)args = updatePasswordForAgent_args()args.agentEmailId = agentEmailIdargs.password = passwordargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updatePasswordForAgent(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updatePasswordForAgent_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getRoleNamesForAgent(self, agentEmailId):"""Parameters:- agentEmailId"""self.send_getRoleNamesForAgent(agentEmailId)return self.recv_getRoleNamesForAgent()def send_getRoleNamesForAgent(self, agentEmailId):self._oprot.writeMessageBegin('getRoleNamesForAgent', TMessageType.CALL, self._seqid)args = getRoleNamesForAgent_args()args.agentEmailId = agentEmailIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getRoleNamesForAgent(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getRoleNamesForAgent_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");def getPermissionsForRoleName(self, roleName):"""Parameters:- roleName"""self.send_getPermissionsForRoleName(roleName)return self.recv_getPermissionsForRoleName()def send_getPermissionsForRoleName(self, roleName):self._oprot.writeMessageBegin('getPermissionsForRoleName', TMessageType.CALL, self._seqid)args = getPermissionsForRoleName_args()args.roleName = roleNameargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getPermissionsForRoleName(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getPermissionsForRoleName_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");def saveQuickLink(self, url, text):"""Parameters:- url- text"""self.send_saveQuickLink(url, text)self.recv_saveQuickLink()def send_saveQuickLink(self, url, text):self._oprot.writeMessageBegin('saveQuickLink', TMessageType.CALL, self._seqid)args = saveQuickLink_args()args.url = urlargs.text = textargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_saveQuickLink(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = saveQuickLink_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.hse is not None:raise result.hsereturndef getQuickLinks(self, ):self.send_getQuickLinks()return self.recv_getQuickLinks()def send_getQuickLinks(self, ):self._oprot.writeMessageBegin('getQuickLinks', TMessageType.CALL, self._seqid)args = getQuickLinks_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getQuickLinks(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getQuickLinks_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.hse is not None:raise result.hseraise TApplicationException(TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");def updateQuickLink(self, id, url, text):"""Parameters:- id- url- text"""self.send_updateQuickLink(id, url, text)self.recv_updateQuickLink()def send_updateQuickLink(self, id, url, text):self._oprot.writeMessageBegin('updateQuickLink', TMessageType.CALL, self._seqid)args = updateQuickLink_args()args.id = idargs.url = urlargs.text = textargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateQuickLink(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateQuickLink_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.hse is not None:raise result.hsereturndef getEmailsForNotificationsSent(self, startDatetime, endDatetime):"""Returns a list of emails to which product notifications have been sent in a given date rangeParameters:- startDatetime- endDatetime"""self.send_getEmailsForNotificationsSent(startDatetime, endDatetime)return self.recv_getEmailsForNotificationsSent()def send_getEmailsForNotificationsSent(self, startDatetime, endDatetime):self._oprot.writeMessageBegin('getEmailsForNotificationsSent', TMessageType.CALL, self._seqid)args = getEmailsForNotificationsSent_args()args.startDatetime = startDatetimeargs.endDatetime = endDatetimeargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getEmailsForNotificationsSent(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getEmailsForNotificationsSent_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.hse is not None:raise result.hseraise TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");def getOrderConfirmationMail(self, orderId):"""Parameters:- orderId"""self.send_getOrderConfirmationMail(orderId)return self.recv_getOrderConfirmationMail()def send_getOrderConfirmationMail(self, orderId):self._oprot.writeMessageBegin('getOrderConfirmationMail', TMessageType.CALL, self._seqid)args = getOrderConfirmationMail_args()args.orderId = orderIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getOrderConfirmationMail(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getOrderConfirmationMail_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");def getOrderDeliveryMail(self, orderId):"""Parameters:- orderId"""self.send_getOrderDeliveryMail(orderId)return self.recv_getOrderDeliveryMail()def send_getOrderDeliveryMail(self, orderId):self._oprot.writeMessageBegin('getOrderDeliveryMail', TMessageType.CALL, self._seqid)args = getOrderDeliveryMail_args()args.orderId = orderIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getOrderDeliveryMail(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getOrderDeliveryMail_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");def getWarehouseIdsForAgent(self, agentEmailId):"""Parameters:- agentEmailId"""self.send_getWarehouseIdsForAgent(agentEmailId)return self.recv_getWarehouseIdsForAgent()def send_getWarehouseIdsForAgent(self, agentEmailId):self._oprot.writeMessageBegin('getWarehouseIdsForAgent', TMessageType.CALL, self._seqid)args = getWarehouseIdsForAgent_args()args.agentEmailId = agentEmailIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getWarehouseIdsForAgent(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getWarehouseIdsForAgent_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseIdsForAgent failed: unknown result");class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):def __init__(self, handler):shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSendingself._processMap["getEmailsToBeSent"] = Processor.process_getEmailsToBeSentself._processMap["markEmailAsSent"] = Processor.process_markEmailAsSentself._processMap["sendMail"] = Processor.process_sendMailself._processMap["sendText"] = Processor.process_sendTextself._processMap["addMessage"] = Processor.process_addMessageself._processMap["updateMessage"] = Processor.process_updateMessageself._processMap["getMessage"] = Processor.process_getMessageself._processMap["getSubstitutedMessage"] = Processor.process_getSubstitutedMessageself._processMap["addUser"] = Processor.process_addUserself._processMap["deleteUser"] = Processor.process_deleteUserself._processMap["authenticateDashboardUser"] = Processor.process_authenticateDashboardUserself._processMap["updatePassword"] = Processor.process_updatePasswordself._processMap["authenticateLogisticsUser"] = Processor.process_authenticateLogisticsUserself._processMap["authenticateStatisticsUser"] = Processor.process_authenticateStatisticsUserself._processMap["authenticateReportUser"] = Processor.process_authenticateReportUserself._processMap["getReports"] = Processor.process_getReportsself._processMap["authenticateCatalogUser"] = Processor.process_authenticateCatalogUserself._processMap["shareEntities"] = Processor.process_shareEntitiesself._processMap["getAgents"] = Processor.process_getAgentsself._processMap["validateLogIn"] = Processor.process_validateLogInself._processMap["updatePasswordForAgent"] = Processor.process_updatePasswordForAgentself._processMap["getRoleNamesForAgent"] = Processor.process_getRoleNamesForAgentself._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleNameself._processMap["saveQuickLink"] = Processor.process_saveQuickLinkself._processMap["getQuickLinks"] = Processor.process_getQuickLinksself._processMap["updateQuickLink"] = Processor.process_updateQuickLinkself._processMap["getEmailsForNotificationsSent"] = Processor.process_getEmailsForNotificationsSentself._processMap["getOrderConfirmationMail"] = Processor.process_getOrderConfirmationMailself._processMap["getOrderDeliveryMail"] = Processor.process_getOrderDeliveryMailself._processMap["getWarehouseIdsForAgent"] = Processor.process_getWarehouseIdsForAgentdef 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_saveUserEmailForSending(self, seqid, iprot, oprot):args = saveUserEmailForSending_args()args.read(iprot)iprot.readMessageEnd()result = saveUserEmailForSending_result()try:result.success = self._handler.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType, args.cc, args.bcc, args.sourceId)except HelperServiceException, se:result.se = seoprot.writeMessageBegin("saveUserEmailForSending", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getEmailsToBeSent(self, seqid, iprot, oprot):args = getEmailsToBeSent_args()args.read(iprot)iprot.readMessageEnd()result = getEmailsToBeSent_result()try:result.success = self._handler.getEmailsToBeSent()except HelperServiceException, se:result.se = seoprot.writeMessageBegin("getEmailsToBeSent", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_markEmailAsSent(self, seqid, iprot, oprot):args = markEmailAsSent_args()args.read(iprot)iprot.readMessageEnd()result = markEmailAsSent_result()try:self._handler.markEmailAsSent(args.emailId)except HelperServiceException, se:result.se = seoprot.writeMessageBegin("markEmailAsSent", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_sendMail(self, seqid, iprot, oprot):args = sendMail_args()args.read(iprot)iprot.readMessageEnd()result = sendMail_result()try:self._handler.sendMail(args.mail)except HelperServiceException, se:result.se = seoprot.writeMessageBegin("sendMail", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_sendText(self, seqid, iprot, oprot):args = sendText_args()args.read(iprot)iprot.readMessageEnd()result = sendText_result()try:self._handler.sendText(args.message)except HelperServiceException, se:result.se = seoprot.writeMessageBegin("sendText", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addMessage(self, seqid, iprot, oprot):args = addMessage_args()args.read(iprot)iprot.readMessageEnd()result = addMessage_result()try:self._handler.addMessage(args.message)except HelperServiceException, se:result.se = seoprot.writeMessageBegin("addMessage", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateMessage(self, seqid, iprot, oprot):args = updateMessage_args()args.read(iprot)iprot.readMessageEnd()result = updateMessage_result()try:self._handler.updateMessage(args.id, args.message)except HelperServiceException, se:result.se = seoprot.writeMessageBegin("updateMessage", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getMessage(self, seqid, iprot, oprot):args = getMessage_args()args.read(iprot)iprot.readMessageEnd()result = getMessage_result()try:result.success = self._handler.getMessage(args.id)except HelperServiceException, se:result.se = seoprot.writeMessageBegin("getMessage", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getSubstitutedMessage(self, seqid, iprot, oprot):args = getSubstitutedMessage_args()args.read(iprot)iprot.readMessageEnd()result = getSubstitutedMessage_result()try:result.success = self._handler.getSubstitutedMessage(args.id, args.params)except HelperServiceException, se:result.se = seoprot.writeMessageBegin("getSubstitutedMessage", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addUser(self, seqid, iprot, oprot):args = addUser_args()args.read(iprot)iprot.readMessageEnd()result = addUser_result()try:result.success = self._handler.addUser(args.username, args.password, args.warehouseId)except HelperServiceException, se:result.se = seoprot.writeMessageBegin("addUser", 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.username)except HelperServiceException, se:result.se = seoprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_authenticateDashboardUser(self, seqid, iprot, oprot):args = authenticateDashboardUser_args()args.read(iprot)iprot.readMessageEnd()result = authenticateDashboardUser_result()try:result.success = self._handler.authenticateDashboardUser(args.username, args.password)except HelperServiceException, se:result.se = seoprot.writeMessageBegin("authenticateDashboardUser", 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.username, args.oldPassword, args.newPassword)except HelperServiceException, se:result.se = seoprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_authenticateLogisticsUser(self, seqid, iprot, oprot):args = authenticateLogisticsUser_args()args.read(iprot)iprot.readMessageEnd()result = authenticateLogisticsUser_result()try:result.success = self._handler.authenticateLogisticsUser(args.username, args.password)except HelperServiceException, hse:result.hse = hseoprot.writeMessageBegin("authenticateLogisticsUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_authenticateStatisticsUser(self, seqid, iprot, oprot):args = authenticateStatisticsUser_args()args.read(iprot)iprot.readMessageEnd()result = authenticateStatisticsUser_result()try:result.success = self._handler.authenticateStatisticsUser(args.username, args.password)except HelperServiceException, hse:result.hse = hseoprot.writeMessageBegin("authenticateStatisticsUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_authenticateReportUser(self, seqid, iprot, oprot):args = authenticateReportUser_args()args.read(iprot)iprot.readMessageEnd()result = authenticateReportUser_result()try:result.success = self._handler.authenticateReportUser(args.username, args.password)except HelperServiceException, hse:result.hse = hseoprot.writeMessageBegin("authenticateReportUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getReports(self, seqid, iprot, oprot):args = getReports_args()args.read(iprot)iprot.readMessageEnd()result = getReports_result()result.success = self._handler.getReports(args.role)oprot.writeMessageBegin("getReports", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_authenticateCatalogUser(self, seqid, iprot, oprot):args = authenticateCatalogUser_args()args.read(iprot)iprot.readMessageEnd()result = authenticateCatalogUser_result()try:result.success = self._handler.authenticateCatalogUser(args.username, args.password)except HelperServiceException, hse:result.hse = hseoprot.writeMessageBegin("authenticateCatalogUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_shareEntities(self, seqid, iprot, oprot):args = shareEntities_args()args.read(iprot)iprot.readMessageEnd()result = shareEntities_result()try:self._handler.shareEntities(args.entityIds, args.email)except HelperServiceException, hse:result.hse = hseoprot.writeMessageBegin("shareEntities", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAgents(self, seqid, iprot, oprot):args = getAgents_args()args.read(iprot)iprot.readMessageEnd()result = getAgents_result()result.success = self._handler.getAgents()oprot.writeMessageBegin("getAgents", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_validateLogIn(self, seqid, iprot, oprot):args = validateLogIn_args()args.read(iprot)iprot.readMessageEnd()result = validateLogIn_result()result.success = self._handler.validateLogIn(args.emailId, args.password)oprot.writeMessageBegin("validateLogIn", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updatePasswordForAgent(self, seqid, iprot, oprot):args = updatePasswordForAgent_args()args.read(iprot)iprot.readMessageEnd()result = updatePasswordForAgent_result()self._handler.updatePasswordForAgent(args.agentEmailId, args.password)oprot.writeMessageBegin("updatePasswordForAgent", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getRoleNamesForAgent(self, seqid, iprot, oprot):args = getRoleNamesForAgent_args()args.read(iprot)iprot.readMessageEnd()result = getRoleNamesForAgent_result()result.success = self._handler.getRoleNamesForAgent(args.agentEmailId)oprot.writeMessageBegin("getRoleNamesForAgent", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getPermissionsForRoleName(self, seqid, iprot, oprot):args = getPermissionsForRoleName_args()args.read(iprot)iprot.readMessageEnd()result = getPermissionsForRoleName_result()result.success = self._handler.getPermissionsForRoleName(args.roleName)oprot.writeMessageBegin("getPermissionsForRoleName", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_saveQuickLink(self, seqid, iprot, oprot):args = saveQuickLink_args()args.read(iprot)iprot.readMessageEnd()result = saveQuickLink_result()try:self._handler.saveQuickLink(args.url, args.text)except HelperServiceException, hse:result.hse = hseoprot.writeMessageBegin("saveQuickLink", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getQuickLinks(self, seqid, iprot, oprot):args = getQuickLinks_args()args.read(iprot)iprot.readMessageEnd()result = getQuickLinks_result()try:result.success = self._handler.getQuickLinks()except HelperServiceException, hse:result.hse = hseoprot.writeMessageBegin("getQuickLinks", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateQuickLink(self, seqid, iprot, oprot):args = updateQuickLink_args()args.read(iprot)iprot.readMessageEnd()result = updateQuickLink_result()try:self._handler.updateQuickLink(args.id, args.url, args.text)except HelperServiceException, hse:result.hse = hseoprot.writeMessageBegin("updateQuickLink", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getEmailsForNotificationsSent(self, seqid, iprot, oprot):args = getEmailsForNotificationsSent_args()args.read(iprot)iprot.readMessageEnd()result = getEmailsForNotificationsSent_result()try:result.success = self._handler.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime)except HelperServiceException, hse:result.hse = hseoprot.writeMessageBegin("getEmailsForNotificationsSent", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getOrderConfirmationMail(self, seqid, iprot, oprot):args = getOrderConfirmationMail_args()args.read(iprot)iprot.readMessageEnd()result = getOrderConfirmationMail_result()result.success = self._handler.getOrderConfirmationMail(args.orderId)oprot.writeMessageBegin("getOrderConfirmationMail", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getOrderDeliveryMail(self, seqid, iprot, oprot):args = getOrderDeliveryMail_args()args.read(iprot)iprot.readMessageEnd()result = getOrderDeliveryMail_result()result.success = self._handler.getOrderDeliveryMail(args.orderId)oprot.writeMessageBegin("getOrderDeliveryMail", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getWarehouseIdsForAgent(self, seqid, iprot, oprot):args = getWarehouseIdsForAgent_args()args.read(iprot)iprot.readMessageEnd()result = getWarehouseIdsForAgent_result()result.success = self._handler.getWarehouseIdsForAgent(args.agentEmailId)oprot.writeMessageBegin("getWarehouseIdsForAgent", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()# HELPER FUNCTIONS AND STRUCTURESclass saveUserEmailForSending_args:"""Attributes:- emailTo- emailFrom- subject- body- source- emailType- cc- bcc- sourceId"""thrift_spec = (None, # 0(1, TType.LIST, 'emailTo', (TType.STRING,None), None, ), # 1(2, TType.STRING, 'emailFrom', None, None, ), # 2(3, TType.STRING, 'subject', None, None, ), # 3(4, TType.STRING, 'body', None, None, ), # 4(5, TType.STRING, 'source', None, None, ), # 5(6, TType.STRING, 'emailType', None, None, ), # 6(7, TType.LIST, 'cc', (TType.STRING,None), None, ), # 7(8, TType.LIST, 'bcc', (TType.STRING,None), None, ), # 8(9, TType.I64, 'sourceId', None, None, ), # 9)def __init__(self, emailTo=None, emailFrom=None, subject=None, body=None, source=None, emailType=None, cc=None, bcc=None, sourceId=None,):self.emailTo = emailToself.emailFrom = emailFromself.subject = subjectself.body = bodyself.source = sourceself.emailType = emailTypeself.cc = ccself.bcc = bccself.sourceId = sourceIddef 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.LIST:self.emailTo = [](_etype38, _size35) = iprot.readListBegin()for _i39 in xrange(_size35):_elem40 = iprot.readString();self.emailTo.append(_elem40)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.emailFrom = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.subject = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.STRING:self.body = iprot.readString();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.STRING:self.source = iprot.readString();else:iprot.skip(ftype)elif fid == 6:if ftype == TType.STRING:self.emailType = iprot.readString();else:iprot.skip(ftype)elif fid == 7:if ftype == TType.LIST:self.cc = [](_etype44, _size41) = iprot.readListBegin()for _i45 in xrange(_size41):_elem46 = iprot.readString();self.cc.append(_elem46)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 8:if ftype == TType.LIST:self.bcc = [](_etype50, _size47) = iprot.readListBegin()for _i51 in xrange(_size47):_elem52 = iprot.readString();self.bcc.append(_elem52)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 9:if ftype == TType.I64:self.sourceId = 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('saveUserEmailForSending_args')if self.emailTo is not None:oprot.writeFieldBegin('emailTo', TType.LIST, 1)oprot.writeListBegin(TType.STRING, len(self.emailTo))for iter53 in self.emailTo:oprot.writeString(iter53)oprot.writeListEnd()oprot.writeFieldEnd()if self.emailFrom is not None:oprot.writeFieldBegin('emailFrom', TType.STRING, 2)oprot.writeString(self.emailFrom)oprot.writeFieldEnd()if self.subject is not None:oprot.writeFieldBegin('subject', TType.STRING, 3)oprot.writeString(self.subject)oprot.writeFieldEnd()if self.body is not None:oprot.writeFieldBegin('body', TType.STRING, 4)oprot.writeString(self.body)oprot.writeFieldEnd()if self.source is not None:oprot.writeFieldBegin('source', TType.STRING, 5)oprot.writeString(self.source)oprot.writeFieldEnd()if self.emailType is not None:oprot.writeFieldBegin('emailType', TType.STRING, 6)oprot.writeString(self.emailType)oprot.writeFieldEnd()if self.cc is not None:oprot.writeFieldBegin('cc', TType.LIST, 7)oprot.writeListBegin(TType.STRING, len(self.cc))for iter54 in self.cc:oprot.writeString(iter54)oprot.writeListEnd()oprot.writeFieldEnd()if self.bcc is not None:oprot.writeFieldBegin('bcc', TType.LIST, 8)oprot.writeListBegin(TType.STRING, len(self.bcc))for iter55 in self.bcc:oprot.writeString(iter55)oprot.writeListEnd()oprot.writeFieldEnd()if self.sourceId is not None:oprot.writeFieldBegin('sourceId', TType.I64, 9)oprot.writeI64(self.sourceId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 saveUserEmailForSending_result:"""Attributes:- success- se"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, se=None,):self.success = successself.se = sedef 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.I64:self.success = iprot.readI64();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.se = HelperServiceException()self.se.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('saveUserEmailForSending_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()if self.se is not None:oprot.writeFieldBegin('se', TType.STRUCT, 1)self.se.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getEmailsToBeSent_args:thrift_spec = ()def 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:breakelse: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('getEmailsToBeSent_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getEmailsToBeSent_result:"""Attributes:- success- se"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(UserEmail, UserEmail.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, se=None,):self.success = successself.se = sedef 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.LIST:self.success = [](_etype59, _size56) = iprot.readListBegin()for _i60 in xrange(_size56):_elem61 = UserEmail()_elem61.read(iprot)self.success.append(_elem61)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.se = HelperServiceException()self.se.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('getEmailsToBeSent_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter62 in self.success:iter62.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.se is not None:oprot.writeFieldBegin('se', TType.STRUCT, 1)self.se.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 markEmailAsSent_args:"""Attributes:- emailId"""thrift_spec = (None, # 0(1, TType.I64, 'emailId', None, None, ), # 1)def __init__(self, emailId=None,):self.emailId = emailIddef 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.emailId = 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('markEmailAsSent_args')if self.emailId is not None:oprot.writeFieldBegin('emailId', TType.I64, 1)oprot.writeI64(self.emailId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 markEmailAsSent_result:"""Attributes:- se"""thrift_spec = (None, # 0(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, se=None,):self.se = sedef 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.se = HelperServiceException()self.se.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('markEmailAsSent_result')if self.se is not None:oprot.writeFieldBegin('se', TType.STRUCT, 1)self.se.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 sendMail_args:"""Attributes:"""thrift_spec = (None, # 0(1, TType.STRUCT, 'mail', (Mail, Mail.thrift_spec), None, ), # 1)def __init__(self, mail=None,):self.mail = maildef 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.mail = Mail()self.mail.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('sendMail_args')if self.mail is not None:oprot.writeFieldBegin('mail', TType.STRUCT, 1)self.mail.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 sendMail_result:"""Attributes:- se"""thrift_spec = (None, # 0(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, se=None,):self.se = sedef 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.se = HelperServiceException()self.se.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('sendMail_result')if self.se is not None:oprot.writeFieldBegin('se', TType.STRUCT, 1)self.se.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 sendText_args:"""Attributes:- message"""thrift_spec = (None, # 0(1, TType.STRUCT, 'message', (TextMessage, TextMessage.thrift_spec), None, ), # 1)def __init__(self, message=None,):self.message = messagedef 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.message = TextMessage()self.message.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('sendText_args')if self.message is not None:oprot.writeFieldBegin('message', TType.STRUCT, 1)self.message.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 sendText_result:"""Attributes:- se"""thrift_spec = (None, # 0(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, se=None,):self.se = sedef 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.se = HelperServiceException()self.se.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('sendText_result')if self.se is not None:oprot.writeFieldBegin('se', TType.STRUCT, 1)self.se.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 addMessage_args:"""Attributes:- message"""thrift_spec = (None, # 0(1, TType.STRUCT, 'message', (Message, Message.thrift_spec), None, ), # 1)def __init__(self, message=None,):self.message = messagedef 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.message = Message()self.message.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('addMessage_args')if self.message is not None:oprot.writeFieldBegin('message', TType.STRUCT, 1)self.message.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 addMessage_result:"""Attributes:- se"""thrift_spec = (None, # 0(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, se=None,):self.se = sedef 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.se = HelperServiceException()self.se.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('addMessage_result')if self.se is not None:oprot.writeFieldBegin('se', TType.STRUCT, 1)self.se.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 updateMessage_args:"""Attributes:- id- message"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1(2, TType.STRING, 'message', None, None, ), # 2)def __init__(self, id=None, message=None,):self.id = idself.message = messagedef 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.id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.message = 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('updateMessage_args')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()if self.message is not None:oprot.writeFieldBegin('message', TType.STRING, 2)oprot.writeString(self.message)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 updateMessage_result:"""Attributes:- se"""thrift_spec = (None, # 0(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, se=None,):self.se = sedef 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.se = HelperServiceException()self.se.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('updateMessage_result')if self.se is not None:oprot.writeFieldBegin('se', TType.STRUCT, 1)self.se.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getMessage_args:"""Attributes:- id"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1)def __init__(self, id=None,):self.id = iddef 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.id = 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('getMessage_args')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getMessage_result:"""Attributes:- success- se"""thrift_spec = ((0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, se=None,):self.success = successself.se = sedef 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 = Message()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.se = HelperServiceException()self.se.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('getMessage_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.se is not None:oprot.writeFieldBegin('se', TType.STRUCT, 1)self.se.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getSubstitutedMessage_args:"""Attributes:- id- params"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1(2, TType.MAP, 'params', (TType.STRING,None,TType.STRING,None), None, ), # 2)def __init__(self, id=None, params=None,):self.id = idself.params = paramsdef 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.id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.MAP:self.params = {}(_ktype64, _vtype65, _size63 ) = iprot.readMapBegin()for _i67 in xrange(_size63):_key68 = iprot.readString();_val69 = iprot.readString();self.params[_key68] = _val69iprot.readMapEnd()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('getSubstitutedMessage_args')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()if self.params is not None:oprot.writeFieldBegin('params', TType.MAP, 2)oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.params))for kiter70,viter71 in self.params.items():oprot.writeString(kiter70)oprot.writeString(viter71)oprot.writeMapEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getSubstitutedMessage_result:"""Attributes:- success- se"""thrift_spec = ((0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, se=None,):self.success = successself.se = sedef 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 = Message()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.se = HelperServiceException()self.se.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('getSubstitutedMessage_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.se is not None:oprot.writeFieldBegin('se', TType.STRUCT, 1)self.se.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 addUser_args:"""Attributes:- username- password- warehouseId"""thrift_spec = (None, # 0(1, TType.STRING, 'username', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2(3, TType.I64, 'warehouseId', None, None, ), # 3)def __init__(self, username=None, password=None, warehouseId=None,):self.username = usernameself.password = passwordself.warehouseId = warehouseIddef 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.username = 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.I64:self.warehouseId = 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('addUser_args')if self.username is not None:oprot.writeFieldBegin('username', TType.STRING, 1)oprot.writeString(self.username)oprot.writeFieldEnd()if self.password is not None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()if self.warehouseId is not None:oprot.writeFieldBegin('warehouseId', TType.I64, 3)oprot.writeI64(self.warehouseId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 addUser_result:"""Attributes:- success- se"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, se=None,):self.success = successself.se = sedef 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.se = HelperServiceException()self.se.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('addUser_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.se is not None:oprot.writeFieldBegin('se', TType.STRUCT, 1)self.se.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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:- username"""thrift_spec = (None, # 0(1, TType.STRING, 'username', None, None, ), # 1)def __init__(self, username=None,):self.username = usernamedef 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.username = 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('deleteUser_args')if self.username is not None:oprot.writeFieldBegin('username', TType.STRING, 1)oprot.writeString(self.username)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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- se"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, se=None,):self.success = successself.se = sedef 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.se = HelperServiceException()self.se.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 is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.se is not None:oprot.writeFieldBegin('se', TType.STRUCT, 1)self.se.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 authenticateDashboardUser_args:"""Attributes:- username- password"""thrift_spec = (None, # 0(1, TType.STRING, 'username', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2)def __init__(self, username=None, password=None,):self.username = usernameself.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.username = 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('authenticateDashboardUser_args')if self.username is not None:oprot.writeFieldBegin('username', TType.STRING, 1)oprot.writeString(self.username)oprot.writeFieldEnd()if self.password is not None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 authenticateDashboardUser_result:"""Attributes:- success- se"""thrift_spec = ((0, TType.STRUCT, 'success', (DashboardUser, DashboardUser.thrift_spec), None, ), # 0(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, se=None,):self.success = successself.se = sedef 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 = DashboardUser()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.se = HelperServiceException()self.se.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('authenticateDashboardUser_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.se is not None:oprot.writeFieldBegin('se', TType.STRUCT, 1)self.se.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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:- username- oldPassword- newPassword"""thrift_spec = (None, # 0(1, TType.STRING, 'username', None, None, ), # 1(2, TType.STRING, 'oldPassword', None, None, ), # 2(3, TType.STRING, 'newPassword', None, None, ), # 3)def __init__(self, username=None, oldPassword=None, newPassword=None,):self.username = usernameself.oldPassword = oldPasswordself.newPassword = newPassworddef 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.username = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.oldPassword = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.newPassword = 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.username is not None:oprot.writeFieldBegin('username', TType.STRING, 1)oprot.writeString(self.username)oprot.writeFieldEnd()if self.oldPassword is not None:oprot.writeFieldBegin('oldPassword', TType.STRING, 2)oprot.writeString(self.oldPassword)oprot.writeFieldEnd()if self.newPassword is not None:oprot.writeFieldBegin('newPassword', TType.STRING, 3)oprot.writeString(self.newPassword)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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- se"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, se=None,):self.success = successself.se = sedef 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.se = HelperServiceException()self.se.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 is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.se is not None:oprot.writeFieldBegin('se', TType.STRUCT, 1)self.se.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 authenticateLogisticsUser_args:"""Attributes:- username- password"""thrift_spec = (None, # 0(1, TType.STRING, 'username', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2)def __init__(self, username=None, password=None,):self.username = usernameself.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.username = 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('authenticateLogisticsUser_args')if self.username is not None:oprot.writeFieldBegin('username', TType.STRING, 1)oprot.writeString(self.username)oprot.writeFieldEnd()if self.password is not None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 authenticateLogisticsUser_result:"""Attributes:- success- hse"""thrift_spec = ((0, TType.STRUCT, 'success', (LogisticsUser, LogisticsUser.thrift_spec), None, ), # 0(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, hse=None,):self.success = successself.hse = hsedef 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 = LogisticsUser()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.hse = HelperServiceException()self.hse.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('authenticateLogisticsUser_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.hse is not None:oprot.writeFieldBegin('hse', TType.STRUCT, 1)self.hse.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 authenticateStatisticsUser_args:"""Attributes:- username- password"""thrift_spec = (None, # 0(1, TType.STRING, 'username', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2)def __init__(self, username=None, password=None,):self.username = usernameself.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.username = 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('authenticateStatisticsUser_args')if self.username is not None:oprot.writeFieldBegin('username', TType.STRING, 1)oprot.writeString(self.username)oprot.writeFieldEnd()if self.password is not None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 authenticateStatisticsUser_result:"""Attributes:- success- hse"""thrift_spec = ((0, TType.STRUCT, 'success', (StatisticsUser, StatisticsUser.thrift_spec), None, ), # 0(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, hse=None,):self.success = successself.hse = hsedef 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 = StatisticsUser()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.hse = HelperServiceException()self.hse.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('authenticateStatisticsUser_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.hse is not None:oprot.writeFieldBegin('hse', TType.STRUCT, 1)self.hse.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 authenticateReportUser_args:"""Attributes:- username- password"""thrift_spec = (None, # 0(1, TType.STRING, 'username', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2)def __init__(self, username=None, password=None,):self.username = usernameself.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.username = 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('authenticateReportUser_args')if self.username is not None:oprot.writeFieldBegin('username', TType.STRING, 1)oprot.writeString(self.username)oprot.writeFieldEnd()if self.password is not None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 authenticateReportUser_result:"""Attributes:- success- hse"""thrift_spec = ((0, TType.STRUCT, 'success', (ReportUser, ReportUser.thrift_spec), None, ), # 0(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, hse=None,):self.success = successself.hse = hsedef 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 = ReportUser()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.hse = HelperServiceException()self.hse.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('authenticateReportUser_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.hse is not None:oprot.writeFieldBegin('hse', TType.STRUCT, 1)self.hse.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getReports_args:"""Attributes:- role"""thrift_spec = (None, # 0(1, TType.I64, 'role', None, None, ), # 1)def __init__(self, role=None,):self.role = roledef 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.role = 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('getReports_args')if self.role is not None:oprot.writeFieldBegin('role', TType.I64, 1)oprot.writeI64(self.role)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getReports_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Report, Report.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef 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.LIST:self.success = [](_etype75, _size72) = iprot.readListBegin()for _i76 in xrange(_size72):_elem77 = Report()_elem77.read(iprot)self.success.append(_elem77)iprot.readListEnd()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('getReports_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter78 in self.success:iter78.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 authenticateCatalogUser_args:"""Attributes:- username- password"""thrift_spec = (None, # 0(1, TType.STRING, 'username', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2)def __init__(self, username=None, password=None,):self.username = usernameself.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.username = 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('authenticateCatalogUser_args')if self.username is not None:oprot.writeFieldBegin('username', TType.STRING, 1)oprot.writeString(self.username)oprot.writeFieldEnd()if self.password is not None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 authenticateCatalogUser_result:"""Attributes:- success- hse"""thrift_spec = ((0, TType.STRUCT, 'success', (CatalogDashboardUser, CatalogDashboardUser.thrift_spec), None, ), # 0(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, hse=None,):self.success = successself.hse = hsedef 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 = CatalogDashboardUser()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.hse = HelperServiceException()self.hse.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('authenticateCatalogUser_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.hse is not None:oprot.writeFieldBegin('hse', TType.STRUCT, 1)self.hse.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 shareEntities_args:"""Attributes:- entityIds"""thrift_spec = (None, # 0(1, TType.LIST, 'entityIds', (TType.I64,None), None, ), # 1(2, TType.STRING, 'email', None, None, ), # 2)def __init__(self, entityIds=None, email=None,):self.entityIds = entityIdsself.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.LIST:self.entityIds = [](_etype82, _size79) = iprot.readListBegin()for _i83 in xrange(_size79):_elem84 = iprot.readI64();self.entityIds.append(_elem84)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 2: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('shareEntities_args')if self.entityIds is not None:oprot.writeFieldBegin('entityIds', TType.LIST, 1)oprot.writeListBegin(TType.I64, len(self.entityIds))for iter85 in self.entityIds:oprot.writeI64(iter85)oprot.writeListEnd()oprot.writeFieldEnd()if self.email is not None:oprot.writeFieldBegin('email', TType.STRING, 2)oprot.writeString(self.email)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 shareEntities_result:"""Attributes:- hse"""thrift_spec = (None, # 0(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, hse=None,):self.hse = hsedef 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.hse = HelperServiceException()self.hse.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('shareEntities_result')if self.hse is not None:oprot.writeFieldBegin('hse', TType.STRUCT, 1)self.hse.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getAgents_args:thrift_spec = ()def 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:breakelse: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('getAgents_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getAgents_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Agent, Agent.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef 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.LIST:self.success = [](_etype89, _size86) = iprot.readListBegin()for _i90 in xrange(_size86):_elem91 = Agent()_elem91.read(iprot)self.success.append(_elem91)iprot.readListEnd()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('getAgents_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter92 in self.success:iter92.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 validateLogIn_args:"""Attributes:- emailId- password"""thrift_spec = (None, # 0(1, TType.STRING, 'emailId', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2)def __init__(self, emailId=None, password=None,):self.emailId = emailIdself.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.emailId = 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('validateLogIn_args')if self.emailId is not None:oprot.writeFieldBegin('emailId', TType.STRING, 1)oprot.writeString(self.emailId)oprot.writeFieldEnd()if self.password is not None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 validateLogIn_result:"""Attributes:- success"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef 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)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('validateLogIn_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 updatePasswordForAgent_args:"""Attributes:- agentEmailId- password"""thrift_spec = (None, # 0(1, TType.STRING, 'agentEmailId', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2)def __init__(self, agentEmailId=None, password=None,):self.agentEmailId = agentEmailIdself.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.agentEmailId = 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('updatePasswordForAgent_args')if self.agentEmailId is not None:oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)oprot.writeString(self.agentEmailId)oprot.writeFieldEnd()if self.password is not None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 updatePasswordForAgent_result:thrift_spec = ()def 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:breakelse: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('updatePasswordForAgent_result')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getRoleNamesForAgent_args:"""Attributes:- agentEmailId"""thrift_spec = (None, # 0(1, TType.STRING, 'agentEmailId', None, None, ), # 1)def __init__(self, agentEmailId=None,):self.agentEmailId = agentEmailIddef 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.agentEmailId = 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('getRoleNamesForAgent_args')if self.agentEmailId is not None:oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)oprot.writeString(self.agentEmailId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getRoleNamesForAgent_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0)def __init__(self, success=None,):self.success = successdef 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.LIST:self.success = [](_etype96, _size93) = iprot.readListBegin()for _i97 in xrange(_size93):_elem98 = iprot.readString();self.success.append(_elem98)iprot.readListEnd()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('getRoleNamesForAgent_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRING, len(self.success))for iter99 in self.success:oprot.writeString(iter99)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getPermissionsForRoleName_args:"""Attributes:- roleName"""thrift_spec = (None, # 0(1, TType.STRING, 'roleName', None, None, ), # 1)def __init__(self, roleName=None,):self.roleName = roleNamedef 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.roleName = 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('getPermissionsForRoleName_args')if self.roleName is not None:oprot.writeFieldBegin('roleName', TType.STRING, 1)oprot.writeString(self.roleName)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getPermissionsForRoleName_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0)def __init__(self, success=None,):self.success = successdef 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.LIST:self.success = [](_etype103, _size100) = iprot.readListBegin()for _i104 in xrange(_size100):_elem105 = iprot.readString();self.success.append(_elem105)iprot.readListEnd()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('getPermissionsForRoleName_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRING, len(self.success))for iter106 in self.success:oprot.writeString(iter106)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 saveQuickLink_args:"""Attributes:- url- text"""thrift_spec = (None, # 0(1, TType.STRING, 'url', None, None, ), # 1(2, TType.STRING, 'text', None, None, ), # 2)def __init__(self, url=None, text=None,):self.url = urlself.text = textdef 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.url = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.text = 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('saveQuickLink_args')if self.url is not None:oprot.writeFieldBegin('url', TType.STRING, 1)oprot.writeString(self.url)oprot.writeFieldEnd()if self.text is not None:oprot.writeFieldBegin('text', TType.STRING, 2)oprot.writeString(self.text)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 saveQuickLink_result:"""Attributes:- hse"""thrift_spec = (None, # 0(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, hse=None,):self.hse = hsedef 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.hse = HelperServiceException()self.hse.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('saveQuickLink_result')if self.hse is not None:oprot.writeFieldBegin('hse', TType.STRUCT, 1)self.hse.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getQuickLinks_args:thrift_spec = ()def 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:breakelse: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('getQuickLinks_args')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getQuickLinks_result:"""Attributes:- success- hse"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(QuickLink, QuickLink.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, hse=None,):self.success = successself.hse = hsedef 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.LIST:self.success = [](_etype110, _size107) = iprot.readListBegin()for _i111 in xrange(_size107):_elem112 = QuickLink()_elem112.read(iprot)self.success.append(_elem112)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.hse = HelperServiceException()self.hse.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('getQuickLinks_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter113 in self.success:iter113.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.hse is not None:oprot.writeFieldBegin('hse', TType.STRUCT, 1)self.hse.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 updateQuickLink_args:"""Attributes:- id- url- text"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1(2, TType.STRING, 'url', None, None, ), # 2(3, TType.STRING, 'text', None, None, ), # 3)def __init__(self, id=None, url=None, text=None,):self.id = idself.url = urlself.text = textdef 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.id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.url = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.text = 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('updateQuickLink_args')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()if self.url is not None:oprot.writeFieldBegin('url', TType.STRING, 2)oprot.writeString(self.url)oprot.writeFieldEnd()if self.text is not None:oprot.writeFieldBegin('text', TType.STRING, 3)oprot.writeString(self.text)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 updateQuickLink_result:"""Attributes:- hse"""thrift_spec = (None, # 0(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, hse=None,):self.hse = hsedef 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.hse = HelperServiceException()self.hse.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('updateQuickLink_result')if self.hse is not None:oprot.writeFieldBegin('hse', TType.STRUCT, 1)self.hse.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getEmailsForNotificationsSent_args:"""Attributes:- startDatetime- endDatetime"""thrift_spec = (None, # 0(1, TType.I64, 'startDatetime', None, None, ), # 1(2, TType.I64, 'endDatetime', None, None, ), # 2)def __init__(self, startDatetime=None, endDatetime=None,):self.startDatetime = startDatetimeself.endDatetime = endDatetimedef 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.startDatetime = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.endDatetime = 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('getEmailsForNotificationsSent_args')if self.startDatetime is not None:oprot.writeFieldBegin('startDatetime', TType.I64, 1)oprot.writeI64(self.startDatetime)oprot.writeFieldEnd()if self.endDatetime is not None:oprot.writeFieldBegin('endDatetime', TType.I64, 2)oprot.writeI64(self.endDatetime)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getEmailsForNotificationsSent_result:"""Attributes:- success- hse"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0(1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, hse=None,):self.success = successself.hse = hsedef 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.LIST:self.success = [](_etype117, _size114) = iprot.readListBegin()for _i118 in xrange(_size114):_elem119 = iprot.readString();self.success.append(_elem119)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.hse = HelperServiceException()self.hse.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('getEmailsForNotificationsSent_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRING, len(self.success))for iter120 in self.success:oprot.writeString(iter120)oprot.writeListEnd()oprot.writeFieldEnd()if self.hse is not None:oprot.writeFieldBegin('hse', TType.STRUCT, 1)self.hse.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getOrderConfirmationMail_args:"""Attributes:- orderId"""thrift_spec = (None, # 0(1, TType.I64, 'orderId', None, None, ), # 1)def __init__(self, orderId=None,):self.orderId = orderIddef 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.orderId = 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('getOrderConfirmationMail_args')if self.orderId is not None:oprot.writeFieldBegin('orderId', TType.I64, 1)oprot.writeI64(self.orderId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getOrderConfirmationMail_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRING, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef 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.STRING:self.success = 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('getOrderConfirmationMail_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRING, 0)oprot.writeString(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getOrderDeliveryMail_args:"""Attributes:- orderId"""thrift_spec = (None, # 0(1, TType.I64, 'orderId', None, None, ), # 1)def __init__(self, orderId=None,):self.orderId = orderIddef 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.orderId = 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('getOrderDeliveryMail_args')if self.orderId is not None:oprot.writeFieldBegin('orderId', TType.I64, 1)oprot.writeI64(self.orderId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getOrderDeliveryMail_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRING, 'success', None, None, ), # 0)def __init__(self, success=None,):self.success = successdef 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.STRING:self.success = 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('getOrderDeliveryMail_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRING, 0)oprot.writeString(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getWarehouseIdsForAgent_args:"""Attributes:- agentEmailId"""thrift_spec = (None, # 0(1, TType.STRING, 'agentEmailId', None, None, ), # 1)def __init__(self, agentEmailId=None,):self.agentEmailId = agentEmailIddef 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.agentEmailId = 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('getWarehouseIdsForAgent_args')if self.agentEmailId is not None:oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)oprot.writeString(self.agentEmailId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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 getWarehouseIdsForAgent_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.I64,None), None, ), # 0)def __init__(self, success=None,):self.success = successdef 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.LIST:self.success = [](_etype124, _size121) = iprot.readListBegin()for _i125 in xrange(_size121):_elem126 = iprot.readI64();self.success.append(_elem126)iprot.readListEnd()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('getWarehouseIdsForAgent_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.I64, len(self.success))for iter127 in self.success:oprot.writeI64(iter127)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __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)