Rev 1996 | Rev 2642 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
## Autogenerated by Thrift## DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING#from thrift.Thrift import *from ttypes import *from thrift.Thrift import TProcessorfrom thrift.transport import TTransportfrom thrift.protocol import TBinaryProtocoltry:from thrift.protocol import fastbinaryexcept:fastbinary = Noneclass Iface:"""service"""def closeSession(self, ):"""For closing the open session in sqlalchemy"""passdef createAnonymousUser(self, jsessionId):"""Parameters:- jsessionId"""passdef getUserById(self, userId):"""Parameters:- userId"""passdef getUserByEmail(self, email):"""Parameters:"""passdef createUser(self, user):"""Parameters:- user"""passdef updateUser(self, user):"""Parameters:- user"""passdef deleteUser(self, userId):"""Parameters:- userId"""passdef getUserState(self, userId):"""Parameters:- userId"""passdef authenticateUser(self, email, password):"""Parameters:- password"""passdef userExists(self, email):"""Parameters:"""passdef addAddressForUser(self, userId, address, setDefault):"""Parameters:- userId- address- setDefault"""passdef removeAddressForUser(self, userid, addressId):"""Parameters:- userid- addressId"""passdef setUserAsLoggedIn(self, userId, timestamp):"""Parameters:- userId- timestamp"""passdef setUserAsLoggedOut(self, userid, timestamp):"""Parameters:- userid- timestamp"""passdef setDefaultAddress(self, userid, addressId):"""Parameters:- userid- addressId"""passdef updatePassword(self, userid, oldPassword, newPassword):"""Parameters:- userid- oldPassword- newPassword"""passdef forgotPassword(self, email, newPassword):"""Parameters:- newPassword"""passdef getAllAddressesForUser(self, userId):"""Parameters:- userId"""passdef getAddressById(self, addressId):"""Parameters:- addressId"""passdef getDefaultAddressId(self, userId):"""Parameters:- userId"""passdef getDefaultPincode(self, userId):"""Parameters:- userId"""passdef saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):"""Parameters:- userId- replyTo- communicationType- orderId- airwaybillNo- productName- subject- message"""passdef getUserCommunicationById(self, id):"""Parameters:- id"""passdef getUserCommunicationByUser(self, userId):"""Parameters:- userId"""passdef getAllUserCommunications(self, ):passdef createMasterAffiliate(self, name, addedOn):"""Parameters:- name- addedOn"""passdef getAllMasterAffiliates(self, ):passdef getMasterAffiliateById(self, id):"""Parameters:- id"""passdef getMasterAffiliateByName(self, name):"""Parameters:- name"""passdef createAffiliate(self, name, url, masterAffiliateId, addedOn):"""Parameters:- name- url- masterAffiliateId- addedOn"""passdef getAffiliateById(self, id):"""Parameters:- id"""passdef getAffiliateByName(self, name):"""Parameters:- name"""passdef getTrackerById(self, id):"""Parameters:- id"""passdef getAffiliatesByMasterAffiliate(self, id):"""Parameters:- id"""passdef addTrackLog(self, affiliateId, userId, event, url, data, addedOn):"""Parameters:- affiliateId- userId- event- url- data- addedOn"""passdef getTrackLogById(self, id):"""Parameters:- id"""passdef getTrackLogsByAffiliate(self, affiliateId):"""Parameters:- affiliateId"""passdef getTrackLogsByUser(self, userId):"""Parameters:- userId"""passdef getTrackLogs(self, userId, event, url):"""Parameters:- userId- event- url"""passdef createCart(self, userId):"""Parameters:- userId"""passdef getCurrentCart(self, userId):"""Parameters:- userId"""passdef getCart(self, cartId):"""Parameters:- cartId"""passdef getCartsForUser(self, userId, status):"""Parameters:- userId- status"""passdef getCartsByStatus(self, status):"""Parameters:- status"""passdef getCartsByTime(self, from_time, to_time, status):"""Parameters:- from_time- to_time- status"""passdef changeCartStatus(self, cartId, status):"""Parameters:- cartId- status"""passdef addItemToCart(self, cartId, itemId, quantity):"""Parameters:- cartId- itemId- quantity"""passdef deleteItemFromCart(self, cartId, itemId):"""Parameters:- cartId- itemId"""passdef changeQuantity(self, cartId, itemId, quantity):"""Parameters:- cartId- itemId- quantity"""passdef changeItemStatus(self, cartId, itemId, status):"""Parameters:- cartId- itemId- status"""passdef addAddressToCart(self, cartId, addressId):"""Parameters:- cartId- addressId"""passdef applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):"""Parameters:- cartId- couponCode- totalPrice- discountedPrice"""passdef removeCoupon(self, cartId):"""Parameters:- cartId"""passdef createOrders(self, cartId):"""Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.Parameters:- cartId"""passdef validateCart(self, cartId):"""Validates that:1. The checkout timestamp is greater than the updatedOn timestamp.2. All of the lines in the cart are active items.3. The estimate for any of the lines in cart doesn't change.If all three are true, returns empty string; else returns appropriate message.Parameters:- cartId"""passdef mergeCart(self, fromCartId, toCartId):"""Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.Parameters:- fromCartId- toCartId"""passdef checkOut(self, cartId):"""Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.Parameters:- cartId"""passdef resetCart(self, cartId, items):"""The second parameter is a map of item ids and their quantities which have been successfully processed.This methods removes the specified quantiry of the specified item from the cart.Parameters:- cartId- items"""passdef getMyResearch(self, userId):"""WidgetsParameters:- userId"""passdef updateMyResearch(self, userId, itemId):"""Parameters:- userId- itemId"""passdef deleteItemFromMyResearch(self, userId, itemId):"""Parameters:- userId- itemId"""passdef updateBrowseHistory(self, userId, itemId):"""Parameters:- userId- itemId"""passdef getBrowseHistory(self, userId):"""Parameters:- userId"""passdef mergeBrowseHistory(self, fromUserId, toUserId):"""Parameters:- fromUserId- toUserId"""passdef getUserCount(self, userType):"""Returns number of registered users.If userType = null, then it returns count of all users, including anonymousIf userType = UserType.ANONYMOUS, then it returns count of anonymous users onlyIf userType = UserType.USER, then it returns count of non-anonymous users onlyParameters:- userType"""passdef getAllUsers(self, userType, startDate, endDate):"""Returns list of users of type userType who registered between startDate and endDate (both inclusive).If any of startDate or endDate is -1, then that filter is ignored.If userType is null, then returns all the users, irrespective of anonymous flagParameters:- userType- startDate- endDate"""passclass Client(Iface):"""service"""def __init__(self, iprot, oprot=None):self._iprot = self._oprot = iprotif oprot != None:self._oprot = oprotself._seqid = 0def closeSession(self, ):"""For closing the open session in sqlalchemy"""self.send_closeSession()self.recv_closeSession()def send_closeSession(self, ):self._oprot.writeMessageBegin('closeSession', TMessageType.CALL, self._seqid)args = closeSession_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_closeSession(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = closeSession_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef createAnonymousUser(self, jsessionId):"""Parameters:- jsessionId"""self.send_createAnonymousUser(jsessionId)return self.recv_createAnonymousUser()def send_createAnonymousUser(self, jsessionId):self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)args = createAnonymousUser_args()args.jsessionId = jsessionIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_createAnonymousUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = createAnonymousUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucex != None:raise result.ucexraise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");def getUserById(self, userId):"""Parameters:- userId"""self.send_getUserById(userId)return self.recv_getUserById()def send_getUserById(self, userId):self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)args = getUserById_args()args.userId = userIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getUserById(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getUserById_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucex != None:raise result.ucexraise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");def getUserByEmail(self, email):"""Parameters:"""self.send_getUserByEmail(email)return self.recv_getUserByEmail()def send_getUserByEmail(self, email):self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)args = getUserByEmail_args()args.email = emailargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getUserByEmail(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getUserByEmail_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucex != None:raise result.ucexraise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");def createUser(self, user):"""Parameters:- user"""self.send_createUser(user)return self.recv_createUser()def send_createUser(self, user):self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)args = createUser_args()args.user = userargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_createUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = createUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucex != None:raise result.ucexraise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");def updateUser(self, user):"""Parameters:- user"""self.send_updateUser(user)return self.recv_updateUser()def send_updateUser(self, user):self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)args = updateUser_args()args.user = userargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucex != None:raise result.ucexraise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");def deleteUser(self, userId):"""Parameters:- userId"""self.send_deleteUser(userId)return self.recv_deleteUser()def send_deleteUser(self, userId):self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)args = deleteUser_args()args.userId = userIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_deleteUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = deleteUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucex != None:raise result.ucexraise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");def getUserState(self, userId):"""Parameters:- userId"""self.send_getUserState(userId)return self.recv_getUserState()def send_getUserState(self, userId):self._oprot.writeMessageBegin('getUserState', TMessageType.CALL, self._seqid)args = getUserState_args()args.userId = userIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getUserState(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getUserState_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucex != None:raise result.ucexraise TApplicationException(TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");def authenticateUser(self, email, password):"""Parameters:- password"""self.send_authenticateUser(email, password)return self.recv_authenticateUser()def send_authenticateUser(self, email, password):self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)args = authenticateUser_args()args.email = emailargs.password = passwordargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_authenticateUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = authenticateUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.auex != None:raise result.auexraise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");def userExists(self, email):"""Parameters:"""self.send_userExists(email)return self.recv_userExists()def send_userExists(self, email):self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)args = userExists_args()args.email = emailargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_userExists(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = userExists_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");def addAddressForUser(self, userId, address, setDefault):"""Parameters:- userId- address- setDefault"""self.send_addAddressForUser(userId, address, setDefault)return self.recv_addAddressForUser()def send_addAddressForUser(self, userId, address, setDefault):self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)args = addAddressForUser_args()args.userId = userIdargs.address = addressargs.setDefault = setDefaultargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addAddressForUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addAddressForUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");def removeAddressForUser(self, userid, addressId):"""Parameters:- userid- addressId"""self.send_removeAddressForUser(userid, addressId)return self.recv_removeAddressForUser()def send_removeAddressForUser(self, userid, addressId):self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)args = removeAddressForUser_args()args.userid = useridargs.addressId = addressIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_removeAddressForUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = removeAddressForUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");def setUserAsLoggedIn(self, userId, timestamp):"""Parameters:- userId- timestamp"""self.send_setUserAsLoggedIn(userId, timestamp)return self.recv_setUserAsLoggedIn()def send_setUserAsLoggedIn(self, userId, timestamp):self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)args = setUserAsLoggedIn_args()args.userId = userIdargs.timestamp = timestampargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_setUserAsLoggedIn(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = setUserAsLoggedIn_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");def setUserAsLoggedOut(self, userid, timestamp):"""Parameters:- userid- timestamp"""self.send_setUserAsLoggedOut(userid, timestamp)return self.recv_setUserAsLoggedOut()def send_setUserAsLoggedOut(self, userid, timestamp):self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)args = setUserAsLoggedOut_args()args.userid = useridargs.timestamp = timestampargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_setUserAsLoggedOut(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = setUserAsLoggedOut_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");def setDefaultAddress(self, userid, addressId):"""Parameters:- userid- addressId"""self.send_setDefaultAddress(userid, addressId)return self.recv_setDefaultAddress()def send_setDefaultAddress(self, userid, addressId):self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)args = setDefaultAddress_args()args.userid = useridargs.addressId = addressIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_setDefaultAddress(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = setDefaultAddress_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");def updatePassword(self, userid, oldPassword, newPassword):"""Parameters:- userid- oldPassword- newPassword"""self.send_updatePassword(userid, oldPassword, newPassword)return self.recv_updatePassword()def send_updatePassword(self, userid, oldPassword, newPassword):self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)args = updatePassword_args()args.userid = useridargs.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 != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");def forgotPassword(self, email, newPassword):"""Parameters:- newPassword"""self.send_forgotPassword(email, newPassword)return self.recv_forgotPassword()def send_forgotPassword(self, email, newPassword):self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)args = forgotPassword_args()args.email = emailargs.newPassword = newPasswordargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_forgotPassword(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = forgotPassword_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");def getAllAddressesForUser(self, userId):"""Parameters:- userId"""self.send_getAllAddressesForUser(userId)return self.recv_getAllAddressesForUser()def send_getAllAddressesForUser(self, userId):self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)args = getAllAddressesForUser_args()args.userId = userIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllAddressesForUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllAddressesForUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");def getAddressById(self, addressId):"""Parameters:- addressId"""self.send_getAddressById(addressId)return self.recv_getAddressById()def send_getAddressById(self, addressId):self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)args = getAddressById_args()args.addressId = addressIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAddressById(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAddressById_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");def getDefaultAddressId(self, userId):"""Parameters:- userId"""self.send_getDefaultAddressId(userId)return self.recv_getDefaultAddressId()def send_getDefaultAddressId(self, userId):self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)args = getDefaultAddressId_args()args.userId = userIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getDefaultAddressId(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getDefaultAddressId_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");def getDefaultPincode(self, userId):"""Parameters:- userId"""self.send_getDefaultPincode(userId)return self.recv_getDefaultPincode()def send_getDefaultPincode(self, userId):self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)args = getDefaultPincode_args()args.userId = userIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getDefaultPincode(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getDefaultPincode_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):"""Parameters:- userId- replyTo- communicationType- orderId- airwaybillNo- productName- subject- message"""self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)return self.recv_saveUserCommunication()def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)args = saveUserCommunication_args()args.userId = userIdargs.replyTo = replyToargs.communicationType = communicationTypeargs.orderId = orderIdargs.airwaybillNo = airwaybillNoargs.productName = productNameargs.subject = subjectargs.message = messageargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_saveUserCommunication(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = saveUserCommunication_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");def getUserCommunicationById(self, id):"""Parameters:- id"""self.send_getUserCommunicationById(id)return self.recv_getUserCommunicationById()def send_getUserCommunicationById(self, id):self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)args = getUserCommunicationById_args()args.id = idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getUserCommunicationById(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getUserCommunicationById_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");def getUserCommunicationByUser(self, userId):"""Parameters:- userId"""self.send_getUserCommunicationByUser(userId)return self.recv_getUserCommunicationByUser()def send_getUserCommunicationByUser(self, userId):self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)args = getUserCommunicationByUser_args()args.userId = userIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getUserCommunicationByUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getUserCommunicationByUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");def getAllUserCommunications(self, ):self.send_getAllUserCommunications()return self.recv_getAllUserCommunications()def send_getAllUserCommunications(self, ):self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)args = getAllUserCommunications_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllUserCommunications(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllUserCommunications_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ucx != None:raise result.ucxraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");def createMasterAffiliate(self, name, addedOn):"""Parameters:- name- addedOn"""self.send_createMasterAffiliate(name, addedOn)return self.recv_createMasterAffiliate()def send_createMasterAffiliate(self, name, addedOn):self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)args = createMasterAffiliate_args()args.name = nameargs.addedOn = addedOnargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_createMasterAffiliate(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = createMasterAffiliate_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.utx != None:raise result.utxraise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");def getAllMasterAffiliates(self, ):self.send_getAllMasterAffiliates()return self.recv_getAllMasterAffiliates()def send_getAllMasterAffiliates(self, ):self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)args = getAllMasterAffiliates_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllMasterAffiliates(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllMasterAffiliates_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.utx != None:raise result.utxraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");def getMasterAffiliateById(self, id):"""Parameters:- id"""self.send_getMasterAffiliateById(id)return self.recv_getMasterAffiliateById()def send_getMasterAffiliateById(self, id):self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)args = getMasterAffiliateById_args()args.id = idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getMasterAffiliateById(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getMasterAffiliateById_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.utx != None:raise result.utxraise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");def getMasterAffiliateByName(self, name):"""Parameters:- name"""self.send_getMasterAffiliateByName(name)return self.recv_getMasterAffiliateByName()def send_getMasterAffiliateByName(self, name):self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)args = getMasterAffiliateByName_args()args.name = nameargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getMasterAffiliateByName(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getMasterAffiliateByName_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.utx != None:raise result.utxraise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");def createAffiliate(self, name, url, masterAffiliateId, addedOn):"""Parameters:- name- url- masterAffiliateId- addedOn"""self.send_createAffiliate(name, url, masterAffiliateId, addedOn)return self.recv_createAffiliate()def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)args = createAffiliate_args()args.name = nameargs.url = urlargs.masterAffiliateId = masterAffiliateIdargs.addedOn = addedOnargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_createAffiliate(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = createAffiliate_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.utx != None:raise result.utxraise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");def getAffiliateById(self, id):"""Parameters:- id"""self.send_getAffiliateById(id)return self.recv_getAffiliateById()def send_getAffiliateById(self, id):self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)args = getAffiliateById_args()args.id = idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAffiliateById(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAffiliateById_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.utx != None:raise result.utxraise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");def getAffiliateByName(self, name):"""Parameters:- name"""self.send_getAffiliateByName(name)return self.recv_getAffiliateByName()def send_getAffiliateByName(self, name):self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)args = getAffiliateByName_args()args.name = nameargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAffiliateByName(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAffiliateByName_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.utx != None:raise result.utxraise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");def getTrackerById(self, id):"""Parameters:- id"""self.send_getTrackerById(id)return self.recv_getTrackerById()def send_getTrackerById(self, id):self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)args = getTrackerById_args()args.id = idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getTrackerById(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getTrackerById_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.utx != None:raise result.utxraise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");def getAffiliatesByMasterAffiliate(self, id):"""Parameters:- id"""self.send_getAffiliatesByMasterAffiliate(id)return self.recv_getAffiliatesByMasterAffiliate()def send_getAffiliatesByMasterAffiliate(self, id):self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)args = getAffiliatesByMasterAffiliate_args()args.id = idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAffiliatesByMasterAffiliate(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAffiliatesByMasterAffiliate_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.utx != None:raise result.utxraise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):"""Parameters:- affiliateId- userId- event- url- data- addedOn"""self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)return self.recv_addTrackLog()def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)args = addTrackLog_args()args.affiliateId = affiliateIdargs.userId = userIdargs.event = eventargs.url = urlargs.data = dataargs.addedOn = addedOnargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addTrackLog(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addTrackLog_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.utx != None:raise result.utxraise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");def getTrackLogById(self, id):"""Parameters:- id"""self.send_getTrackLogById(id)return self.recv_getTrackLogById()def send_getTrackLogById(self, id):self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)args = getTrackLogById_args()args.id = idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getTrackLogById(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getTrackLogById_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.utx != None:raise result.utxraise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");def getTrackLogsByAffiliate(self, affiliateId):"""Parameters:- affiliateId"""self.send_getTrackLogsByAffiliate(affiliateId)return self.recv_getTrackLogsByAffiliate()def send_getTrackLogsByAffiliate(self, affiliateId):self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)args = getTrackLogsByAffiliate_args()args.affiliateId = affiliateIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getTrackLogsByAffiliate(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getTrackLogsByAffiliate_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.utx != None:raise result.utxraise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");def getTrackLogsByUser(self, userId):"""Parameters:- userId"""self.send_getTrackLogsByUser(userId)return self.recv_getTrackLogsByUser()def send_getTrackLogsByUser(self, userId):self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)args = getTrackLogsByUser_args()args.userId = userIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getTrackLogsByUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getTrackLogsByUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.utx != None:raise result.utxraise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");def getTrackLogs(self, userId, event, url):"""Parameters:- userId- event- url"""self.send_getTrackLogs(userId, event, url)return self.recv_getTrackLogs()def send_getTrackLogs(self, userId, event, url):self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)args = getTrackLogs_args()args.userId = userIdargs.event = eventargs.url = urlargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getTrackLogs(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getTrackLogs_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.utx != None:raise result.utxraise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");def createCart(self, userId):"""Parameters:- userId"""self.send_createCart(userId)return self.recv_createCart()def send_createCart(self, userId):self._oprot.writeMessageBegin('createCart', TMessageType.CALL, self._seqid)args = createCart_args()args.userId = userIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_createCart(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = createCart_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.scx != None:raise result.scxraise TApplicationException(TApplicationException.MISSING_RESULT, "createCart failed: unknown result");def getCurrentCart(self, userId):"""Parameters:- userId"""self.send_getCurrentCart(userId)return self.recv_getCurrentCart()def send_getCurrentCart(self, userId):self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)args = getCurrentCart_args()args.userId = userIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCurrentCart(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCurrentCart_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.scx != None:raise result.scxraise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");def getCart(self, cartId):"""Parameters:- cartId"""self.send_getCart(cartId)return self.recv_getCart()def send_getCart(self, cartId):self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)args = getCart_args()args.cartId = cartIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCart(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCart_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.scx != None:raise result.scxraise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");def getCartsForUser(self, userId, status):"""Parameters:- userId- status"""self.send_getCartsForUser(userId, status)return self.recv_getCartsForUser()def send_getCartsForUser(self, userId, status):self._oprot.writeMessageBegin('getCartsForUser', TMessageType.CALL, self._seqid)args = getCartsForUser_args()args.userId = userIdargs.status = statusargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCartsForUser(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCartsForUser_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.scx != None:raise result.scxraise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");def getCartsByStatus(self, status):"""Parameters:- status"""self.send_getCartsByStatus(status)return self.recv_getCartsByStatus()def send_getCartsByStatus(self, status):self._oprot.writeMessageBegin('getCartsByStatus', TMessageType.CALL, self._seqid)args = getCartsByStatus_args()args.status = statusargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCartsByStatus(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCartsByStatus_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.scx != None:raise result.scxraise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");def getCartsByTime(self, from_time, to_time, status):"""Parameters:- from_time- to_time- status"""self.send_getCartsByTime(from_time, to_time, status)return self.recv_getCartsByTime()def send_getCartsByTime(self, from_time, to_time, status):self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)args = getCartsByTime_args()args.from_time = from_timeargs.to_time = to_timeargs.status = statusargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCartsByTime(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCartsByTime_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.scx != None:raise result.scxraise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");def changeCartStatus(self, cartId, status):"""Parameters:- cartId- status"""self.send_changeCartStatus(cartId, status)self.recv_changeCartStatus()def send_changeCartStatus(self, cartId, status):self._oprot.writeMessageBegin('changeCartStatus', TMessageType.CALL, self._seqid)args = changeCartStatus_args()args.cartId = cartIdargs.status = statusargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_changeCartStatus(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = changeCartStatus_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.scx != None:raise result.scxreturndef addItemToCart(self, cartId, itemId, quantity):"""Parameters:- cartId- itemId- quantity"""self.send_addItemToCart(cartId, itemId, quantity)return self.recv_addItemToCart()def send_addItemToCart(self, cartId, itemId, quantity):self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)args = addItemToCart_args()args.cartId = cartIdargs.itemId = itemIdargs.quantity = quantityargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addItemToCart(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addItemToCart_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.scx != None:raise result.scxraise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");def deleteItemFromCart(self, cartId, itemId):"""Parameters:- cartId- itemId"""self.send_deleteItemFromCart(cartId, itemId)self.recv_deleteItemFromCart()def send_deleteItemFromCart(self, cartId, itemId):self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)args = deleteItemFromCart_args()args.cartId = cartIdargs.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_deleteItemFromCart(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = deleteItemFromCart_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.scx != None:raise result.scxreturndef changeQuantity(self, cartId, itemId, quantity):"""Parameters:- cartId- itemId- quantity"""self.send_changeQuantity(cartId, itemId, quantity)self.recv_changeQuantity()def send_changeQuantity(self, cartId, itemId, quantity):self._oprot.writeMessageBegin('changeQuantity', TMessageType.CALL, self._seqid)args = changeQuantity_args()args.cartId = cartIdargs.itemId = itemIdargs.quantity = quantityargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_changeQuantity(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = changeQuantity_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.scx != None:raise result.scxreturndef changeItemStatus(self, cartId, itemId, status):"""Parameters:- cartId- itemId- status"""self.send_changeItemStatus(cartId, itemId, status)self.recv_changeItemStatus()def send_changeItemStatus(self, cartId, itemId, status):self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)args = changeItemStatus_args()args.cartId = cartIdargs.itemId = itemIdargs.status = statusargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_changeItemStatus(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = changeItemStatus_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.scx != None:raise result.scxreturndef addAddressToCart(self, cartId, addressId):"""Parameters:- cartId- addressId"""self.send_addAddressToCart(cartId, addressId)self.recv_addAddressToCart()def send_addAddressToCart(self, cartId, addressId):self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)args = addAddressToCart_args()args.cartId = cartIdargs.addressId = addressIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addAddressToCart(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addAddressToCart_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.scx != None:raise result.scxreturndef applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):"""Parameters:- cartId- couponCode- totalPrice- discountedPrice"""self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)self.recv_applyCouponToCart()def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)args = applyCouponToCart_args()args.cartId = cartIdargs.couponCode = couponCodeargs.totalPrice = totalPriceargs.discountedPrice = discountedPriceargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_applyCouponToCart(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = applyCouponToCart_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.scx != None:raise result.scxreturndef removeCoupon(self, cartId):"""Parameters:- cartId"""self.send_removeCoupon(cartId)self.recv_removeCoupon()def send_removeCoupon(self, cartId):self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)args = removeCoupon_args()args.cartId = cartIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_removeCoupon(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = removeCoupon_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.scx != None:raise result.scxreturndef createOrders(self, cartId):"""Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.Parameters:- cartId"""self.send_createOrders(cartId)return self.recv_createOrders()def send_createOrders(self, cartId):self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)args = createOrders_args()args.cartId = cartIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_createOrders(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = createOrders_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.scx != None:raise result.scxraise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");def validateCart(self, cartId):"""Validates that:1. The checkout timestamp is greater than the updatedOn timestamp.2. All of the lines in the cart are active items.3. The estimate for any of the lines in cart doesn't change.If all three are true, returns empty string; else returns appropriate message.Parameters:- cartId"""self.send_validateCart(cartId)return self.recv_validateCart()def send_validateCart(self, cartId):self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)args = validateCart_args()args.cartId = cartIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_validateCart(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = validateCart_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.scex != None:raise result.scexraise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");def mergeCart(self, fromCartId, toCartId):"""Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.Parameters:- fromCartId- toCartId"""self.send_mergeCart(fromCartId, toCartId)self.recv_mergeCart()def send_mergeCart(self, fromCartId, toCartId):self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)args = mergeCart_args()args.fromCartId = fromCartIdargs.toCartId = toCartIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_mergeCart(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = mergeCart_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef checkOut(self, cartId):"""Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.Parameters:- cartId"""self.send_checkOut(cartId)return self.recv_checkOut()def send_checkOut(self, cartId):self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)args = checkOut_args()args.cartId = cartIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_checkOut(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = checkOut_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.scex != None:raise result.scexraise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");def resetCart(self, cartId, items):"""The second parameter is a map of item ids and their quantities which have been successfully processed.This methods removes the specified quantiry of the specified item from the cart.Parameters:- cartId- items"""self.send_resetCart(cartId, items)return self.recv_resetCart()def send_resetCart(self, cartId, items):self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)args = resetCart_args()args.cartId = cartIdargs.items = itemsargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_resetCart(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = resetCart_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.scex != None:raise result.scexraise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");def getMyResearch(self, userId):"""WidgetsParameters:- userId"""self.send_getMyResearch(userId)return self.recv_getMyResearch()def send_getMyResearch(self, userId):self._oprot.writeMessageBegin('getMyResearch', TMessageType.CALL, self._seqid)args = getMyResearch_args()args.userId = userIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getMyResearch(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getMyResearch_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.scx != None:raise result.scxraise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearch failed: unknown result");def updateMyResearch(self, userId, itemId):"""Parameters:- userId- itemId"""self.send_updateMyResearch(userId, itemId)return self.recv_updateMyResearch()def send_updateMyResearch(self, userId, itemId):self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)args = updateMyResearch_args()args.userId = userIdargs.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateMyResearch(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateMyResearch_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.scx != None:raise result.scxraise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");def deleteItemFromMyResearch(self, userId, itemId):"""Parameters:- userId- itemId"""self.send_deleteItemFromMyResearch(userId, itemId)self.recv_deleteItemFromMyResearch()def send_deleteItemFromMyResearch(self, userId, itemId):self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)args = deleteItemFromMyResearch_args()args.userId = userIdargs.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_deleteItemFromMyResearch(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = deleteItemFromMyResearch_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.scx != None:raise result.scxreturndef updateBrowseHistory(self, userId, itemId):"""Parameters:- userId- itemId"""self.send_updateBrowseHistory(userId, itemId)self.recv_updateBrowseHistory()def send_updateBrowseHistory(self, userId, itemId):self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)args = updateBrowseHistory_args()args.userId = userIdargs.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateBrowseHistory(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateBrowseHistory_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getBrowseHistory(self, userId):"""Parameters:- userId"""self.send_getBrowseHistory(userId)return self.recv_getBrowseHistory()def send_getBrowseHistory(self, userId):self._oprot.writeMessageBegin('getBrowseHistory', TMessageType.CALL, self._seqid)args = getBrowseHistory_args()args.userId = userIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getBrowseHistory(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getBrowseHistory_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.scx != None:raise result.scxraise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistory failed: unknown result");def mergeBrowseHistory(self, fromUserId, toUserId):"""Parameters:- fromUserId- toUserId"""self.send_mergeBrowseHistory(fromUserId, toUserId)self.recv_mergeBrowseHistory()def send_mergeBrowseHistory(self, fromUserId, toUserId):self._oprot.writeMessageBegin('mergeBrowseHistory', TMessageType.CALL, self._seqid)args = mergeBrowseHistory_args()args.fromUserId = fromUserIdargs.toUserId = toUserIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_mergeBrowseHistory(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = mergeBrowseHistory_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getUserCount(self, userType):"""Returns number of registered users.If userType = null, then it returns count of all users, including anonymousIf userType = UserType.ANONYMOUS, then it returns count of anonymous users onlyIf userType = UserType.USER, then it returns count of non-anonymous users onlyParameters:- userType"""self.send_getUserCount(userType)return self.recv_getUserCount()def send_getUserCount(self, userType):self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)args = getUserCount_args()args.userType = userTypeargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getUserCount(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getUserCount_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");def getAllUsers(self, userType, startDate, endDate):"""Returns list of users of type userType who registered between startDate and endDate (both inclusive).If any of startDate or endDate is -1, then that filter is ignored.If userType is null, then returns all the users, irrespective of anonymous flagParameters:- userType- startDate- endDate"""self.send_getAllUsers(userType, startDate, endDate)return self.recv_getAllUsers()def send_getAllUsers(self, userType, startDate, endDate):self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)args = getAllUsers_args()args.userType = userTypeargs.startDate = startDateargs.endDate = endDateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllUsers(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllUsers_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");class Processor(Iface, TProcessor):def __init__(self, handler):self._handler = handlerself._processMap = {}self._processMap["closeSession"] = Processor.process_closeSessionself._processMap["createAnonymousUser"] = Processor.process_createAnonymousUserself._processMap["getUserById"] = Processor.process_getUserByIdself._processMap["getUserByEmail"] = Processor.process_getUserByEmailself._processMap["createUser"] = Processor.process_createUserself._processMap["updateUser"] = Processor.process_updateUserself._processMap["deleteUser"] = Processor.process_deleteUserself._processMap["getUserState"] = Processor.process_getUserStateself._processMap["authenticateUser"] = Processor.process_authenticateUserself._processMap["userExists"] = Processor.process_userExistsself._processMap["addAddressForUser"] = Processor.process_addAddressForUserself._processMap["removeAddressForUser"] = Processor.process_removeAddressForUserself._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedInself._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOutself._processMap["setDefaultAddress"] = Processor.process_setDefaultAddressself._processMap["updatePassword"] = Processor.process_updatePasswordself._processMap["forgotPassword"] = Processor.process_forgotPasswordself._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUserself._processMap["getAddressById"] = Processor.process_getAddressByIdself._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressIdself._processMap["getDefaultPincode"] = Processor.process_getDefaultPincodeself._processMap["saveUserCommunication"] = Processor.process_saveUserCommunicationself._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationByIdself._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUserself._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunicationsself._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliateself._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliatesself._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateByIdself._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByNameself._processMap["createAffiliate"] = Processor.process_createAffiliateself._processMap["getAffiliateById"] = Processor.process_getAffiliateByIdself._processMap["getAffiliateByName"] = Processor.process_getAffiliateByNameself._processMap["getTrackerById"] = Processor.process_getTrackerByIdself._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliateself._processMap["addTrackLog"] = Processor.process_addTrackLogself._processMap["getTrackLogById"] = Processor.process_getTrackLogByIdself._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliateself._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUserself._processMap["getTrackLogs"] = Processor.process_getTrackLogsself._processMap["createCart"] = Processor.process_createCartself._processMap["getCurrentCart"] = Processor.process_getCurrentCartself._processMap["getCart"] = Processor.process_getCartself._processMap["getCartsForUser"] = Processor.process_getCartsForUserself._processMap["getCartsByStatus"] = Processor.process_getCartsByStatusself._processMap["getCartsByTime"] = Processor.process_getCartsByTimeself._processMap["changeCartStatus"] = Processor.process_changeCartStatusself._processMap["addItemToCart"] = Processor.process_addItemToCartself._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCartself._processMap["changeQuantity"] = Processor.process_changeQuantityself._processMap["changeItemStatus"] = Processor.process_changeItemStatusself._processMap["addAddressToCart"] = Processor.process_addAddressToCartself._processMap["applyCouponToCart"] = Processor.process_applyCouponToCartself._processMap["removeCoupon"] = Processor.process_removeCouponself._processMap["createOrders"] = Processor.process_createOrdersself._processMap["validateCart"] = Processor.process_validateCartself._processMap["mergeCart"] = Processor.process_mergeCartself._processMap["checkOut"] = Processor.process_checkOutself._processMap["resetCart"] = Processor.process_resetCartself._processMap["getMyResearch"] = Processor.process_getMyResearchself._processMap["updateMyResearch"] = Processor.process_updateMyResearchself._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearchself._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistoryself._processMap["getBrowseHistory"] = Processor.process_getBrowseHistoryself._processMap["mergeBrowseHistory"] = Processor.process_mergeBrowseHistoryself._processMap["getUserCount"] = Processor.process_getUserCountself._processMap["getAllUsers"] = Processor.process_getAllUsersdef 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_closeSession(self, seqid, iprot, oprot):args = closeSession_args()args.read(iprot)iprot.readMessageEnd()result = closeSession_result()self._handler.closeSession()oprot.writeMessageBegin("closeSession", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_createAnonymousUser(self, seqid, iprot, oprot):args = createAnonymousUser_args()args.read(iprot)iprot.readMessageEnd()result = createAnonymousUser_result()try:result.success = self._handler.createAnonymousUser(args.jsessionId)except UserContextException, ucex:result.ucex = ucexoprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getUserById(self, seqid, iprot, oprot):args = getUserById_args()args.read(iprot)iprot.readMessageEnd()result = getUserById_result()try:result.success = self._handler.getUserById(args.userId)except UserContextException, ucex:result.ucex = ucexoprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getUserByEmail(self, seqid, iprot, oprot):args = getUserByEmail_args()args.read(iprot)iprot.readMessageEnd()result = getUserByEmail_result()try:result.success = self._handler.getUserByEmail(args.email)except UserContextException, ucex:result.ucex = ucexoprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_createUser(self, seqid, iprot, oprot):args = createUser_args()args.read(iprot)iprot.readMessageEnd()result = createUser_result()try:result.success = self._handler.createUser(args.user)except UserContextException, ucex:result.ucex = ucexoprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateUser(self, seqid, iprot, oprot):args = updateUser_args()args.read(iprot)iprot.readMessageEnd()result = updateUser_result()try:result.success = self._handler.updateUser(args.user)except UserContextException, ucex:result.ucex = ucexoprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_deleteUser(self, seqid, iprot, oprot):args = deleteUser_args()args.read(iprot)iprot.readMessageEnd()result = deleteUser_result()try:result.success = self._handler.deleteUser(args.userId)except UserContextException, ucex:result.ucex = ucexoprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getUserState(self, seqid, iprot, oprot):args = getUserState_args()args.read(iprot)iprot.readMessageEnd()result = getUserState_result()try:result.success = self._handler.getUserState(args.userId)except UserContextException, ucex:result.ucex = ucexoprot.writeMessageBegin("getUserState", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_authenticateUser(self, seqid, iprot, oprot):args = authenticateUser_args()args.read(iprot)iprot.readMessageEnd()result = authenticateUser_result()try:result.success = self._handler.authenticateUser(args.email, args.password)except AuthenticationException, auex:result.auex = auexoprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_userExists(self, seqid, iprot, oprot):args = userExists_args()args.read(iprot)iprot.readMessageEnd()result = userExists_result()try:result.success = self._handler.userExists(args.email)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addAddressForUser(self, seqid, iprot, oprot):args = addAddressForUser_args()args.read(iprot)iprot.readMessageEnd()result = addAddressForUser_result()try:result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_removeAddressForUser(self, seqid, iprot, oprot):args = removeAddressForUser_args()args.read(iprot)iprot.readMessageEnd()result = removeAddressForUser_result()try:result.success = self._handler.removeAddressForUser(args.userid, args.addressId)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_setUserAsLoggedIn(self, seqid, iprot, oprot):args = setUserAsLoggedIn_args()args.read(iprot)iprot.readMessageEnd()result = setUserAsLoggedIn_result()try:result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_setUserAsLoggedOut(self, seqid, iprot, oprot):args = setUserAsLoggedOut_args()args.read(iprot)iprot.readMessageEnd()result = setUserAsLoggedOut_result()try:result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_setDefaultAddress(self, seqid, iprot, oprot):args = setDefaultAddress_args()args.read(iprot)iprot.readMessageEnd()result = setDefaultAddress_result()try:result.success = self._handler.setDefaultAddress(args.userid, args.addressId)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updatePassword(self, seqid, iprot, oprot):args = updatePassword_args()args.read(iprot)iprot.readMessageEnd()result = updatePassword_result()try:result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_forgotPassword(self, seqid, iprot, oprot):args = forgotPassword_args()args.read(iprot)iprot.readMessageEnd()result = forgotPassword_result()try:result.success = self._handler.forgotPassword(args.email, args.newPassword)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllAddressesForUser(self, seqid, iprot, oprot):args = getAllAddressesForUser_args()args.read(iprot)iprot.readMessageEnd()result = getAllAddressesForUser_result()try:result.success = self._handler.getAllAddressesForUser(args.userId)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAddressById(self, seqid, iprot, oprot):args = getAddressById_args()args.read(iprot)iprot.readMessageEnd()result = getAddressById_result()try:result.success = self._handler.getAddressById(args.addressId)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getDefaultAddressId(self, seqid, iprot, oprot):args = getDefaultAddressId_args()args.read(iprot)iprot.readMessageEnd()result = getDefaultAddressId_result()try:result.success = self._handler.getDefaultAddressId(args.userId)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getDefaultPincode(self, seqid, iprot, oprot):args = getDefaultPincode_args()args.read(iprot)iprot.readMessageEnd()result = getDefaultPincode_result()try:result.success = self._handler.getDefaultPincode(args.userId)except UserContextException, ucx:result.ucx = ucxoprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_saveUserCommunication(self, seqid, iprot, oprot):args = saveUserCommunication_args()args.read(iprot)iprot.readMessageEnd()result = saveUserCommunication_result()try:result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)except UserCommunicationException, ucx:result.ucx = ucxoprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getUserCommunicationById(self, seqid, iprot, oprot):args = getUserCommunicationById_args()args.read(iprot)iprot.readMessageEnd()result = getUserCommunicationById_result()try:result.success = self._handler.getUserCommunicationById(args.id)except UserCommunicationException, ucx:result.ucx = ucxoprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getUserCommunicationByUser(self, seqid, iprot, oprot):args = getUserCommunicationByUser_args()args.read(iprot)iprot.readMessageEnd()result = getUserCommunicationByUser_result()try:result.success = self._handler.getUserCommunicationByUser(args.userId)except UserCommunicationException, ucx:result.ucx = ucxoprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllUserCommunications(self, seqid, iprot, oprot):args = getAllUserCommunications_args()args.read(iprot)iprot.readMessageEnd()result = getAllUserCommunications_result()try:result.success = self._handler.getAllUserCommunications()except UserCommunicationException, ucx:result.ucx = ucxoprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_createMasterAffiliate(self, seqid, iprot, oprot):args = createMasterAffiliate_args()args.read(iprot)iprot.readMessageEnd()result = createMasterAffiliate_result()try:result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)except UserAffiliateException, utx:result.utx = utxoprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllMasterAffiliates(self, seqid, iprot, oprot):args = getAllMasterAffiliates_args()args.read(iprot)iprot.readMessageEnd()result = getAllMasterAffiliates_result()try:result.success = self._handler.getAllMasterAffiliates()except UserAffiliateException, utx:result.utx = utxoprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getMasterAffiliateById(self, seqid, iprot, oprot):args = getMasterAffiliateById_args()args.read(iprot)iprot.readMessageEnd()result = getMasterAffiliateById_result()try:result.success = self._handler.getMasterAffiliateById(args.id)except UserAffiliateException, utx:result.utx = utxoprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getMasterAffiliateByName(self, seqid, iprot, oprot):args = getMasterAffiliateByName_args()args.read(iprot)iprot.readMessageEnd()result = getMasterAffiliateByName_result()try:result.success = self._handler.getMasterAffiliateByName(args.name)except UserAffiliateException, utx:result.utx = utxoprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_createAffiliate(self, seqid, iprot, oprot):args = createAffiliate_args()args.read(iprot)iprot.readMessageEnd()result = createAffiliate_result()try:result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)except UserAffiliateException, utx:result.utx = utxoprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAffiliateById(self, seqid, iprot, oprot):args = getAffiliateById_args()args.read(iprot)iprot.readMessageEnd()result = getAffiliateById_result()try:result.success = self._handler.getAffiliateById(args.id)except UserAffiliateException, utx:result.utx = utxoprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAffiliateByName(self, seqid, iprot, oprot):args = getAffiliateByName_args()args.read(iprot)iprot.readMessageEnd()result = getAffiliateByName_result()try:result.success = self._handler.getAffiliateByName(args.name)except UserAffiliateException, utx:result.utx = utxoprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getTrackerById(self, seqid, iprot, oprot):args = getTrackerById_args()args.read(iprot)iprot.readMessageEnd()result = getTrackerById_result()try:result.success = self._handler.getTrackerById(args.id)except UserAffiliateException, utx:result.utx = utxoprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):args = getAffiliatesByMasterAffiliate_args()args.read(iprot)iprot.readMessageEnd()result = getAffiliatesByMasterAffiliate_result()try:result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)except UserAffiliateException, utx:result.utx = utxoprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addTrackLog(self, seqid, iprot, oprot):args = addTrackLog_args()args.read(iprot)iprot.readMessageEnd()result = addTrackLog_result()try:result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)except UserAffiliateException, utx:result.utx = utxoprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getTrackLogById(self, seqid, iprot, oprot):args = getTrackLogById_args()args.read(iprot)iprot.readMessageEnd()result = getTrackLogById_result()try:result.success = self._handler.getTrackLogById(args.id)except UserAffiliateException, utx:result.utx = utxoprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):args = getTrackLogsByAffiliate_args()args.read(iprot)iprot.readMessageEnd()result = getTrackLogsByAffiliate_result()try:result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId)except UserAffiliateException, utx:result.utx = utxoprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getTrackLogsByUser(self, seqid, iprot, oprot):args = getTrackLogsByUser_args()args.read(iprot)iprot.readMessageEnd()result = getTrackLogsByUser_result()try:result.success = self._handler.getTrackLogsByUser(args.userId)except UserAffiliateException, utx:result.utx = utxoprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getTrackLogs(self, seqid, iprot, oprot):args = getTrackLogs_args()args.read(iprot)iprot.readMessageEnd()result = getTrackLogs_result()try:result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)except UserAffiliateException, utx:result.utx = utxoprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_createCart(self, seqid, iprot, oprot):args = createCart_args()args.read(iprot)iprot.readMessageEnd()result = createCart_result()try:result.success = self._handler.createCart(args.userId)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("createCart", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCurrentCart(self, seqid, iprot, oprot):args = getCurrentCart_args()args.read(iprot)iprot.readMessageEnd()result = getCurrentCart_result()try:result.success = self._handler.getCurrentCart(args.userId)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCart(self, seqid, iprot, oprot):args = getCart_args()args.read(iprot)iprot.readMessageEnd()result = getCart_result()try:result.success = self._handler.getCart(args.cartId)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCartsForUser(self, seqid, iprot, oprot):args = getCartsForUser_args()args.read(iprot)iprot.readMessageEnd()result = getCartsForUser_result()try:result.success = self._handler.getCartsForUser(args.userId, args.status)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("getCartsForUser", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCartsByStatus(self, seqid, iprot, oprot):args = getCartsByStatus_args()args.read(iprot)iprot.readMessageEnd()result = getCartsByStatus_result()try:result.success = self._handler.getCartsByStatus(args.status)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("getCartsByStatus", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCartsByTime(self, seqid, iprot, oprot):args = getCartsByTime_args()args.read(iprot)iprot.readMessageEnd()result = getCartsByTime_result()try:result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_changeCartStatus(self, seqid, iprot, oprot):args = changeCartStatus_args()args.read(iprot)iprot.readMessageEnd()result = changeCartStatus_result()try:self._handler.changeCartStatus(args.cartId, args.status)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("changeCartStatus", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addItemToCart(self, seqid, iprot, oprot):args = addItemToCart_args()args.read(iprot)iprot.readMessageEnd()result = addItemToCart_result()try:result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_deleteItemFromCart(self, seqid, iprot, oprot):args = deleteItemFromCart_args()args.read(iprot)iprot.readMessageEnd()result = deleteItemFromCart_result()try:self._handler.deleteItemFromCart(args.cartId, args.itemId)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_changeQuantity(self, seqid, iprot, oprot):args = changeQuantity_args()args.read(iprot)iprot.readMessageEnd()result = changeQuantity_result()try:self._handler.changeQuantity(args.cartId, args.itemId, args.quantity)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("changeQuantity", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_changeItemStatus(self, seqid, iprot, oprot):args = changeItemStatus_args()args.read(iprot)iprot.readMessageEnd()result = changeItemStatus_result()try:self._handler.changeItemStatus(args.cartId, args.itemId, args.status)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addAddressToCart(self, seqid, iprot, oprot):args = addAddressToCart_args()args.read(iprot)iprot.readMessageEnd()result = addAddressToCart_result()try:self._handler.addAddressToCart(args.cartId, args.addressId)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_applyCouponToCart(self, seqid, iprot, oprot):args = applyCouponToCart_args()args.read(iprot)iprot.readMessageEnd()result = applyCouponToCart_result()try:self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_removeCoupon(self, seqid, iprot, oprot):args = removeCoupon_args()args.read(iprot)iprot.readMessageEnd()result = removeCoupon_result()try:self._handler.removeCoupon(args.cartId)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_createOrders(self, seqid, iprot, oprot):args = createOrders_args()args.read(iprot)iprot.readMessageEnd()result = createOrders_result()try:result.success = self._handler.createOrders(args.cartId)except ShoppingCartException, scx:result.scx = scxoprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_validateCart(self, seqid, iprot, oprot):args = validateCart_args()args.read(iprot)iprot.readMessageEnd()result = validateCart_result()try:result.success = self._handler.validateCart(args.cartId)except ShoppingCartException, scex:result.scex = scexoprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_mergeCart(self, seqid, iprot, oprot):args = mergeCart_args()args.read(iprot)iprot.readMessageEnd()result = mergeCart_result()self._handler.mergeCart(args.fromCartId, args.toCartId)oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_checkOut(self, seqid, iprot, oprot):args = checkOut_args()args.read(iprot)iprot.readMessageEnd()result = checkOut_result()try:result.success = self._handler.checkOut(args.cartId)except ShoppingCartException, scex:result.scex = scexoprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_resetCart(self, seqid, iprot, oprot):args = resetCart_args()args.read(iprot)iprot.readMessageEnd()result = resetCart_result()try:result.success = self._handler.resetCart(args.cartId, args.items)except ShoppingCartException, scex:result.scex = scexoprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getMyResearch(self, seqid, iprot, oprot):args = getMyResearch_args()args.read(iprot)iprot.readMessageEnd()result = getMyResearch_result()try:result.success = self._handler.getMyResearch(args.userId)except WidgetException, scx:result.scx = scxoprot.writeMessageBegin("getMyResearch", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateMyResearch(self, seqid, iprot, oprot):args = updateMyResearch_args()args.read(iprot)iprot.readMessageEnd()result = updateMyResearch_result()try:result.success = self._handler.updateMyResearch(args.userId, args.itemId)except WidgetException, scx:result.scx = scxoprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):args = deleteItemFromMyResearch_args()args.read(iprot)iprot.readMessageEnd()result = deleteItemFromMyResearch_result()try:self._handler.deleteItemFromMyResearch(args.userId, args.itemId)except WidgetException, scx:result.scx = scxoprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateBrowseHistory(self, seqid, iprot, oprot):args = updateBrowseHistory_args()args.read(iprot)iprot.readMessageEnd()result = updateBrowseHistory_result()self._handler.updateBrowseHistory(args.userId, args.itemId)oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getBrowseHistory(self, seqid, iprot, oprot):args = getBrowseHistory_args()args.read(iprot)iprot.readMessageEnd()result = getBrowseHistory_result()try:result.success = self._handler.getBrowseHistory(args.userId)except WidgetException, scx:result.scx = scxoprot.writeMessageBegin("getBrowseHistory", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_mergeBrowseHistory(self, seqid, iprot, oprot):args = mergeBrowseHistory_args()args.read(iprot)iprot.readMessageEnd()result = mergeBrowseHistory_result()self._handler.mergeBrowseHistory(args.fromUserId, args.toUserId)oprot.writeMessageBegin("mergeBrowseHistory", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getUserCount(self, seqid, iprot, oprot):args = getUserCount_args()args.read(iprot)iprot.readMessageEnd()result = getUserCount_result()result.success = self._handler.getUserCount(args.userType)oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllUsers(self, seqid, iprot, oprot):args = getAllUsers_args()args.read(iprot)iprot.readMessageEnd()result = getAllUsers_result()result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()# HELPER FUNCTIONS AND STRUCTURESclass closeSession_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('closeSession_args')oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class closeSession_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('closeSession_result')oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createAnonymousUser_args:"""Attributes:- jsessionId"""thrift_spec = (None, # 0(1, TType.STRING, 'jsessionId', None, None, ), # 1)def __init__(self, jsessionId=None,):self.jsessionId = jsessionIddef 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.jsessionId = 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('createAnonymousUser_args')if self.jsessionId != None:oprot.writeFieldBegin('jsessionId', TType.STRING, 1)oprot.writeString(self.jsessionId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createAnonymousUser_result:"""Attributes:- success- ucex"""thrift_spec = ((0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucex=None,):self.success = successself.ucex = ucexdef 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 = User()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucex = UserContextException()self.ucex.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('createAnonymousUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ucex != None:oprot.writeFieldBegin('ucex', TType.STRUCT, 1)self.ucex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getUserById_args:"""Attributes:- userId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1)def __init__(self, userId=None,):self.userId = userIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getUserById_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getUserById_result:"""Attributes:- success- ucex"""thrift_spec = ((0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucex=None,):self.success = successself.ucex = ucexdef 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 = User()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucex = UserContextException()self.ucex.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('getUserById_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ucex != None:oprot.writeFieldBegin('ucex', TType.STRUCT, 1)self.ucex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getUserByEmail_args:"""Attributes:"""thrift_spec = (None, # 0(1, TType.STRING, 'email', None, None, ), # 1)def __init__(self, email=None,):self.email = emaildef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.email = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getUserByEmail_args')if self.email != None:oprot.writeFieldBegin('email', TType.STRING, 1)oprot.writeString(self.email)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getUserByEmail_result:"""Attributes:- success- ucex"""thrift_spec = ((0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucex=None,):self.success = successself.ucex = ucexdef 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 = User()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucex = UserContextException()self.ucex.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('getUserByEmail_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ucex != None:oprot.writeFieldBegin('ucex', TType.STRUCT, 1)self.ucex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createUser_args:"""Attributes:- user"""thrift_spec = (None, # 0(1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1)def __init__(self, user=None,):self.user = userdef 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.user = User()self.user.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('createUser_args')if self.user != None:oprot.writeFieldBegin('user', TType.STRUCT, 1)self.user.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createUser_result:"""Attributes:- success- ucex"""thrift_spec = ((0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucex=None,):self.success = successself.ucex = ucexdef 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 = User()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucex = UserContextException()self.ucex.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('createUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ucex != None:oprot.writeFieldBegin('ucex', TType.STRUCT, 1)self.ucex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class updateUser_args:"""Attributes:- user"""thrift_spec = (None, # 0(1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1)def __init__(self, user=None,):self.user = userdef 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.user = User()self.user.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('updateUser_args')if self.user != None:oprot.writeFieldBegin('user', TType.STRUCT, 1)self.user.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class updateUser_result:"""Attributes:- success- ucex"""thrift_spec = ((0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucex=None,):self.success = successself.ucex = ucexdef 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 = User()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucex = UserContextException()self.ucex.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('updateUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ucex != None:oprot.writeFieldBegin('ucex', TType.STRUCT, 1)self.ucex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteUser_args:"""Attributes:- userId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1)def __init__(self, userId=None,):self.userId = userIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('deleteUser_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteUser_result:"""Attributes:- success- ucex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucex=None,):self.success = successself.ucex = ucexdef 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.ucex = UserContextException()self.ucex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('deleteUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucex != None:oprot.writeFieldBegin('ucex', TType.STRUCT, 1)self.ucex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getUserState_args:"""Attributes:- userId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1)def __init__(self, userId=None,):self.userId = userIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getUserState_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getUserState_result:"""Attributes:- success- ucex"""thrift_spec = ((0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucex=None,):self.success = successself.ucex = ucexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = UserState()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucex = UserContextException()self.ucex.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('getUserState_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ucex != None:oprot.writeFieldBegin('ucex', TType.STRUCT, 1)self.ucex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class authenticateUser_args:"""Attributes:- password"""thrift_spec = (None, # 0(1, TType.STRING, 'email', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2)def __init__(self, email=None, password=None,):self.email = emailself.password = passworddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.email = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.password = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('authenticateUser_args')if self.email != None:oprot.writeFieldBegin('email', TType.STRING, 1)oprot.writeString(self.email)oprot.writeFieldEnd()if self.password != None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class authenticateUser_result:"""Attributes:- success- auex"""thrift_spec = ((0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0(1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1)def __init__(self, success=None, auex=None,):self.success = successself.auex = auexdef 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 = User()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.auex = AuthenticationException()self.auex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('authenticateUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.auex != None:oprot.writeFieldBegin('auex', TType.STRUCT, 1)self.auex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class userExists_args:"""Attributes:"""thrift_spec = (None, # 0(1, TType.STRING, 'email', None, None, ), # 1)def __init__(self, email=None,):self.email = emaildef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.email = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('userExists_args')if self.email != None:oprot.writeFieldBegin('email', TType.STRING, 1)oprot.writeString(self.email)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class userExists_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('userExists_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addAddressForUser_args:"""Attributes:- userId- address- setDefault"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1(2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2(3, TType.BOOL, 'setDefault', None, None, ), # 3)def __init__(self, userId=None, address=None, setDefault=None,):self.userId = userIdself.address = addressself.setDefault = setDefaultdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRUCT:self.address = Address()self.address.read(iprot)else:iprot.skip(ftype)elif fid == 3:if ftype == TType.BOOL:self.setDefault = 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('addAddressForUser_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.address != None:oprot.writeFieldBegin('address', TType.STRUCT, 2)self.address.write(oprot)oprot.writeFieldEnd()if self.setDefault != None:oprot.writeFieldBegin('setDefault', TType.BOOL, 3)oprot.writeBool(self.setDefault)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addAddressForUser_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.I64:self.success = iprot.readI64();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addAddressForUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class removeAddressForUser_args:"""Attributes:- userid- addressId"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1(2, TType.I64, 'addressId', None, None, ), # 2)def __init__(self, userid=None, addressId=None,):self.userid = useridself.addressId = addressIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.addressId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('removeAddressForUser_args')if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()if self.addressId != None:oprot.writeFieldBegin('addressId', TType.I64, 2)oprot.writeI64(self.addressId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class removeAddressForUser_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('removeAddressForUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class setUserAsLoggedIn_args:"""Attributes:- userId- timestamp"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1(2, TType.I64, 'timestamp', None, None, ), # 2)def __init__(self, userId=None, timestamp=None,):self.userId = userIdself.timestamp = timestampdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.timestamp = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('setUserAsLoggedIn_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.timestamp != None:oprot.writeFieldBegin('timestamp', TType.I64, 2)oprot.writeI64(self.timestamp)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class setUserAsLoggedIn_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('setUserAsLoggedIn_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class setUserAsLoggedOut_args:"""Attributes:- userid- timestamp"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1(2, TType.I64, 'timestamp', None, None, ), # 2)def __init__(self, userid=None, timestamp=None,):self.userid = useridself.timestamp = timestampdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.timestamp = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('setUserAsLoggedOut_args')if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()if self.timestamp != None:oprot.writeFieldBegin('timestamp', TType.I64, 2)oprot.writeI64(self.timestamp)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class setUserAsLoggedOut_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('setUserAsLoggedOut_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class setDefaultAddress_args:"""Attributes:- userid- addressId"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1(2, TType.I64, 'addressId', None, None, ), # 2)def __init__(self, userid=None, addressId=None,):self.userid = useridself.addressId = addressIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userid = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.addressId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('setDefaultAddress_args')if self.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()if self.addressId != None:oprot.writeFieldBegin('addressId', TType.I64, 2)oprot.writeI64(self.addressId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class setDefaultAddress_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('setDefaultAddress_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class updatePassword_args:"""Attributes:- userid- oldPassword- newPassword"""thrift_spec = (None, # 0(1, TType.I64, 'userid', None, None, ), # 1(2, TType.STRING, 'oldPassword', None, None, ), # 2(3, TType.STRING, 'newPassword', None, None, ), # 3)def __init__(self, userid=None, oldPassword=None, newPassword=None,):self.userid = useridself.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.I64:self.userid = iprot.readI64();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.userid != None:oprot.writeFieldBegin('userid', TType.I64, 1)oprot.writeI64(self.userid)oprot.writeFieldEnd()if self.oldPassword != None:oprot.writeFieldBegin('oldPassword', TType.STRING, 2)oprot.writeString(self.oldPassword)oprot.writeFieldEnd()if self.newPassword != None:oprot.writeFieldBegin('newPassword', TType.STRING, 3)oprot.writeString(self.newPassword)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class updatePassword_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('updatePassword_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class forgotPassword_args:"""Attributes:- newPassword"""thrift_spec = (None, # 0(1, TType.STRING, 'email', None, None, ), # 1(2, TType.STRING, 'newPassword', None, None, ), # 2)def __init__(self, email=None, newPassword=None,):self.email = emailself.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.email = iprot.readString();else:iprot.skip(ftype)elif fid == 2: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('forgotPassword_args')if self.email != None:oprot.writeFieldBegin('email', TType.STRING, 1)oprot.writeString(self.email)oprot.writeFieldEnd()if self.newPassword != None:oprot.writeFieldBegin('newPassword', TType.STRING, 2)oprot.writeString(self.newPassword)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class forgotPassword_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('forgotPassword_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllAddressesForUser_args:"""Attributes:- userId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1)def __init__(self, userId=None,):self.userId = userIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllAddressesForUser_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllAddressesForUser_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype38, _size35) = iprot.readListBegin()for _i39 in xrange(_size35):_elem40 = Address()_elem40.read(iprot)self.success.append(_elem40)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllAddressesForUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter41 in self.success:iter41.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAddressById_args:"""Attributes:- addressId"""thrift_spec = (None, # 0(1, TType.I64, 'addressId', None, None, ), # 1)def __init__(self, addressId=None,):self.addressId = addressIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.addressId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAddressById_args')if self.addressId != None:oprot.writeFieldBegin('addressId', TType.I64, 1)oprot.writeI64(self.addressId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAddressById_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = Address()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAddressById_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getDefaultAddressId_args:"""Attributes:- userId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1)def __init__(self, userId=None,):self.userId = userIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getDefaultAddressId_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getDefaultAddressId_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.I64:self.success = iprot.readI64();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getDefaultAddressId_result')if self.success != None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getDefaultPincode_args:"""Attributes:- userId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1)def __init__(self, userId=None,):self.userId = userIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getDefaultPincode_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getDefaultPincode_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.STRING, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRING:self.success = iprot.readString();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserContextException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getDefaultPincode_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRING, 0)oprot.writeString(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class saveUserCommunication_args:"""Attributes:- userId- replyTo- communicationType- orderId- airwaybillNo- productName- subject- message"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1(2, TType.STRING, 'replyTo', None, None, ), # 2(3, TType.I64, 'communicationType', None, None, ), # 3(4, TType.I64, 'orderId', None, None, ), # 4(5, TType.STRING, 'airwaybillNo', None, None, ), # 5(6, TType.STRING, 'productName', None, None, ), # 6(7, TType.STRING, 'subject', None, None, ), # 7(8, TType.STRING, 'message', None, None, ), # 8)def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):self.userId = userIdself.replyTo = replyToself.communicationType = communicationTypeself.orderId = orderIdself.airwaybillNo = airwaybillNoself.productName = productNameself.subject = subjectself.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.userId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.replyTo = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.communicationType = iprot.readI64();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I64:self.orderId = iprot.readI64();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.STRING:self.airwaybillNo = iprot.readString();else:iprot.skip(ftype)elif fid == 6:if ftype == TType.STRING:self.productName = iprot.readString();else:iprot.skip(ftype)elif fid == 7:if ftype == TType.STRING:self.subject = iprot.readString();else:iprot.skip(ftype)elif fid == 8: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('saveUserCommunication_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.replyTo != None:oprot.writeFieldBegin('replyTo', TType.STRING, 2)oprot.writeString(self.replyTo)oprot.writeFieldEnd()if self.communicationType != None:oprot.writeFieldBegin('communicationType', TType.I64, 3)oprot.writeI64(self.communicationType)oprot.writeFieldEnd()if self.orderId != None:oprot.writeFieldBegin('orderId', TType.I64, 4)oprot.writeI64(self.orderId)oprot.writeFieldEnd()if self.airwaybillNo != None:oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)oprot.writeString(self.airwaybillNo)oprot.writeFieldEnd()if self.productName != None:oprot.writeFieldBegin('productName', TType.STRING, 6)oprot.writeString(self.productName)oprot.writeFieldEnd()if self.subject != None:oprot.writeFieldBegin('subject', TType.STRING, 7)oprot.writeString(self.subject)oprot.writeFieldEnd()if self.message != None:oprot.writeFieldBegin('message', TType.STRING, 8)oprot.writeString(self.message)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class saveUserCommunication_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserCommunicationException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('saveUserCommunication_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getUserCommunicationById_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('getUserCommunicationById_args')if self.id != None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getUserCommunicationById_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = UserCommunication()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserCommunicationException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getUserCommunicationById_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getUserCommunicationByUser_args:"""Attributes:- userId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1)def __init__(self, userId=None,):self.userId = userIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getUserCommunicationByUser_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getUserCommunicationByUser_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype45, _size42) = iprot.readListBegin()for _i46 in xrange(_size42):_elem47 = UserCommunication()_elem47.read(iprot)self.success.append(_elem47)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserCommunicationException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getUserCommunicationByUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter48 in self.success:iter48.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllUserCommunications_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('getAllUserCommunications_args')oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllUserCommunications_result:"""Attributes:- success- ucx"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1)def __init__(self, success=None, ucx=None,):self.success = successself.ucx = ucxdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype52, _size49) = iprot.readListBegin()for _i53 in xrange(_size49):_elem54 = UserCommunication()_elem54.read(iprot)self.success.append(_elem54)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ucx = UserCommunicationException()self.ucx.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getAllUserCommunications_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter55 in self.success:iter55.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.ucx != None:oprot.writeFieldBegin('ucx', TType.STRUCT, 1)self.ucx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createMasterAffiliate_args:"""Attributes:- name- addedOn"""thrift_spec = (None, # 0(1, TType.STRING, 'name', None, None, ), # 1(2, TType.I64, 'addedOn', None, None, ), # 2)def __init__(self, name=None, addedOn=None,):self.name = nameself.addedOn = addedOndef 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.name = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.addedOn = 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('createMasterAffiliate_args')if self.name != None:oprot.writeFieldBegin('name', TType.STRING, 1)oprot.writeString(self.name)oprot.writeFieldEnd()if self.addedOn != None:oprot.writeFieldBegin('addedOn', TType.I64, 2)oprot.writeI64(self.addedOn)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createMasterAffiliate_result:"""Attributes:- success- utx"""thrift_spec = ((0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0(1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1)def __init__(self, success=None, utx=None,):self.success = successself.utx = utxdef 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 = MasterAffiliate()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.utx = UserAffiliateException()self.utx.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('createMasterAffiliate_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.utx != None:oprot.writeFieldBegin('utx', TType.STRUCT, 1)self.utx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllMasterAffiliates_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('getAllMasterAffiliates_args')oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllMasterAffiliates_result:"""Attributes:- success- utx"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1)def __init__(self, success=None, utx=None,):self.success = successself.utx = utxdef 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 = MasterAffiliate()_elem61.read(iprot)self.success.append(_elem61)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.utx = UserAffiliateException()self.utx.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('getAllMasterAffiliates_result')if self.success != 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.utx != None:oprot.writeFieldBegin('utx', TType.STRUCT, 1)self.utx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getMasterAffiliateById_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('getMasterAffiliateById_args')if self.id != None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getMasterAffiliateById_result:"""Attributes:- success- utx"""thrift_spec = ((0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0(1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1)def __init__(self, success=None, utx=None,):self.success = successself.utx = utxdef 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 = MasterAffiliate()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.utx = UserAffiliateException()self.utx.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('getMasterAffiliateById_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.utx != None:oprot.writeFieldBegin('utx', TType.STRUCT, 1)self.utx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getMasterAffiliateByName_args:"""Attributes:- name"""thrift_spec = (None, # 0(1, TType.STRING, 'name', None, None, ), # 1)def __init__(self, name=None,):self.name = namedef 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.name = 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('getMasterAffiliateByName_args')if self.name != None:oprot.writeFieldBegin('name', TType.STRING, 1)oprot.writeString(self.name)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getMasterAffiliateByName_result:"""Attributes:- success- utx"""thrift_spec = ((0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0(1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1)def __init__(self, success=None, utx=None,):self.success = successself.utx = utxdef 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 = MasterAffiliate()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.utx = UserAffiliateException()self.utx.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('getMasterAffiliateByName_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.utx != None:oprot.writeFieldBegin('utx', TType.STRUCT, 1)self.utx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createAffiliate_args:"""Attributes:- name- url- masterAffiliateId- addedOn"""thrift_spec = (None, # 0(1, TType.STRING, 'name', None, None, ), # 1(2, TType.STRING, 'url', None, None, ), # 2(3, TType.I64, 'masterAffiliateId', None, None, ), # 3(4, TType.I64, 'addedOn', None, None, ), # 4)def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):self.name = nameself.url = urlself.masterAffiliateId = masterAffiliateIdself.addedOn = addedOndef 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.name = iprot.readString();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.I64:self.masterAffiliateId = iprot.readI64();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I64:self.addedOn = 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('createAffiliate_args')if self.name != None:oprot.writeFieldBegin('name', TType.STRING, 1)oprot.writeString(self.name)oprot.writeFieldEnd()if self.url != None:oprot.writeFieldBegin('url', TType.STRING, 2)oprot.writeString(self.url)oprot.writeFieldEnd()if self.masterAffiliateId != None:oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)oprot.writeI64(self.masterAffiliateId)oprot.writeFieldEnd()if self.addedOn != None:oprot.writeFieldBegin('addedOn', TType.I64, 4)oprot.writeI64(self.addedOn)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createAffiliate_result:"""Attributes:- success- utx"""thrift_spec = ((0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0(1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1)def __init__(self, success=None, utx=None,):self.success = successself.utx = utxdef 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 = Affiliate()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.utx = UserAffiliateException()self.utx.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('createAffiliate_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.utx != None:oprot.writeFieldBegin('utx', TType.STRUCT, 1)self.utx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAffiliateById_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('getAffiliateById_args')if self.id != None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAffiliateById_result:"""Attributes:- success- utx"""thrift_spec = ((0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0(1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1)def __init__(self, success=None, utx=None,):self.success = successself.utx = utxdef 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 = Affiliate()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.utx = UserAffiliateException()self.utx.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('getAffiliateById_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.utx != None:oprot.writeFieldBegin('utx', TType.STRUCT, 1)self.utx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAffiliateByName_args:"""Attributes:- name"""thrift_spec = (None, # 0(1, TType.STRING, 'name', None, None, ), # 1)def __init__(self, name=None,):self.name = namedef 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.name = 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('getAffiliateByName_args')if self.name != None:oprot.writeFieldBegin('name', TType.STRING, 1)oprot.writeString(self.name)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAffiliateByName_result:"""Attributes:- success- utx"""thrift_spec = ((0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0(1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1)def __init__(self, success=None, utx=None,):self.success = successself.utx = utxdef 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 = Affiliate()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.utx = UserAffiliateException()self.utx.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('getAffiliateByName_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.utx != None:oprot.writeFieldBegin('utx', TType.STRUCT, 1)self.utx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getTrackerById_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('getTrackerById_args')if self.id != None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getTrackerById_result:"""Attributes:- success- utx"""thrift_spec = ((0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0(1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1)def __init__(self, success=None, utx=None,):self.success = successself.utx = utxdef 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 = Tracker()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.utx = UserAffiliateException()self.utx.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('getTrackerById_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.utx != None:oprot.writeFieldBegin('utx', TType.STRUCT, 1)self.utx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAffiliatesByMasterAffiliate_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('getAffiliatesByMasterAffiliate_args')if self.id != None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAffiliatesByMasterAffiliate_result:"""Attributes:- success- utx"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1)def __init__(self, success=None, utx=None,):self.success = successself.utx = utxdef 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 = [](_etype66, _size63) = iprot.readListBegin()for _i67 in xrange(_size63):_elem68 = Affiliate()_elem68.read(iprot)self.success.append(_elem68)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.utx = UserAffiliateException()self.utx.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('getAffiliatesByMasterAffiliate_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter69 in self.success:iter69.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.utx != None:oprot.writeFieldBegin('utx', TType.STRUCT, 1)self.utx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addTrackLog_args:"""Attributes:- affiliateId- userId- event- url- data- addedOn"""thrift_spec = (None, # 0(1, TType.I64, 'affiliateId', None, None, ), # 1(2, TType.I64, 'userId', None, None, ), # 2(3, TType.STRING, 'event', None, None, ), # 3(4, TType.STRING, 'url', None, None, ), # 4(5, TType.STRING, 'data', None, None, ), # 5(6, TType.I64, 'addedOn', None, None, ), # 6)def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):self.affiliateId = affiliateIdself.userId = userIdself.event = eventself.url = urlself.data = dataself.addedOn = addedOndef 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.affiliateId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.event = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.STRING:self.url = iprot.readString();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.STRING:self.data = iprot.readString();else:iprot.skip(ftype)elif fid == 6:if ftype == TType.I64:self.addedOn = 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('addTrackLog_args')if self.affiliateId != None:oprot.writeFieldBegin('affiliateId', TType.I64, 1)oprot.writeI64(self.affiliateId)oprot.writeFieldEnd()if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 2)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.event != None:oprot.writeFieldBegin('event', TType.STRING, 3)oprot.writeString(self.event)oprot.writeFieldEnd()if self.url != None:oprot.writeFieldBegin('url', TType.STRING, 4)oprot.writeString(self.url)oprot.writeFieldEnd()if self.data != None:oprot.writeFieldBegin('data', TType.STRING, 5)oprot.writeString(self.data)oprot.writeFieldEnd()if self.addedOn != None:oprot.writeFieldBegin('addedOn', TType.I64, 6)oprot.writeI64(self.addedOn)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addTrackLog_result:"""Attributes:- success- utx"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0(1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1)def __init__(self, success=None, utx=None,):self.success = successself.utx = utxdef 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.utx = UserAffiliateException()self.utx.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('addTrackLog_result')if self.success != None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()if self.utx != None:oprot.writeFieldBegin('utx', TType.STRUCT, 1)self.utx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getTrackLogById_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('getTrackLogById_args')if self.id != None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getTrackLogById_result:"""Attributes:- success- utx"""thrift_spec = ((0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0(1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1)def __init__(self, success=None, utx=None,):self.success = successself.utx = utxdef 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 = TrackLog()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.utx = UserAffiliateException()self.utx.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('getTrackLogById_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.utx != None:oprot.writeFieldBegin('utx', TType.STRUCT, 1)self.utx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getTrackLogsByAffiliate_args:"""Attributes:- affiliateId"""thrift_spec = (None, # 0(1, TType.I64, 'affiliateId', None, None, ), # 1)def __init__(self, affiliateId=None,):self.affiliateId = affiliateIddef 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.affiliateId = 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('getTrackLogsByAffiliate_args')if self.affiliateId != None:oprot.writeFieldBegin('affiliateId', TType.I64, 1)oprot.writeI64(self.affiliateId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getTrackLogsByAffiliate_result:"""Attributes:- success- utx"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1)def __init__(self, success=None, utx=None,):self.success = successself.utx = utxdef 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 = [](_etype73, _size70) = iprot.readListBegin()for _i74 in xrange(_size70):_elem75 = TrackLog()_elem75.read(iprot)self.success.append(_elem75)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.utx = UserAffiliateException()self.utx.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('getTrackLogsByAffiliate_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter76 in self.success:iter76.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.utx != None:oprot.writeFieldBegin('utx', TType.STRUCT, 1)self.utx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getTrackLogsByUser_args:"""Attributes:- userId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1)def __init__(self, userId=None,):self.userId = userIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getTrackLogsByUser_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getTrackLogsByUser_result:"""Attributes:- success- utx"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1)def __init__(self, success=None, utx=None,):self.success = successself.utx = utxdef 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 = [](_etype80, _size77) = iprot.readListBegin()for _i81 in xrange(_size77):_elem82 = TrackLog()_elem82.read(iprot)self.success.append(_elem82)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.utx = UserAffiliateException()self.utx.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('getTrackLogsByUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter83 in self.success:iter83.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.utx != None:oprot.writeFieldBegin('utx', TType.STRUCT, 1)self.utx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getTrackLogs_args:"""Attributes:- userId- event- url"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1(2, TType.STRING, 'event', None, None, ), # 2(3, TType.STRING, 'url', None, None, ), # 3)def __init__(self, userId=None, event=None, url=None,):self.userId = userIdself.event = eventself.url = urldef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.event = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.url = 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('getTrackLogs_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.event != None:oprot.writeFieldBegin('event', TType.STRING, 2)oprot.writeString(self.event)oprot.writeFieldEnd()if self.url != None:oprot.writeFieldBegin('url', TType.STRING, 3)oprot.writeString(self.url)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getTrackLogs_result:"""Attributes:- success- utx"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1)def __init__(self, success=None, utx=None,):self.success = successself.utx = utxdef 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 = [](_etype87, _size84) = iprot.readListBegin()for _i88 in xrange(_size84):_elem89 = TrackLog()_elem89.read(iprot)self.success.append(_elem89)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.utx = UserAffiliateException()self.utx.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('getTrackLogs_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter90 in self.success:iter90.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.utx != None:oprot.writeFieldBegin('utx', TType.STRUCT, 1)self.utx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createCart_args:"""Attributes:- userId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1)def __init__(self, userId=None,):self.userId = userIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('createCart_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createCart_result:"""Attributes:- success- scx"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, success=None, scx=None,):self.success = successself.scx = scxdef 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.scx = ShoppingCartException()self.scx.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('createCart_result')if self.success != None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getCurrentCart_args:"""Attributes:- userId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1)def __init__(self, userId=None,):self.userId = userIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getCurrentCart_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getCurrentCart_result:"""Attributes:- success- scx"""thrift_spec = ((0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, success=None, scx=None,):self.success = successself.scx = scxdef 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 = Cart()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.scx = ShoppingCartException()self.scx.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('getCurrentCart_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getCart_args:"""Attributes:- cartId"""thrift_spec = (None, # 0(1, TType.I64, 'cartId', None, None, ), # 1)def __init__(self, cartId=None,):self.cartId = cartIddef 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.cartId = 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('getCart_args')if self.cartId != None:oprot.writeFieldBegin('cartId', TType.I64, 1)oprot.writeI64(self.cartId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getCart_result:"""Attributes:- success- scx"""thrift_spec = ((0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, success=None, scx=None,):self.success = successself.scx = scxdef 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 = Cart()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.scx = ShoppingCartException()self.scx.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('getCart_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getCartsForUser_args:"""Attributes:- userId- status"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1(2, TType.I32, 'status', None, None, ), # 2)def __init__(self, userId=None, status=None,):self.userId = userIdself.status = statusdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I32:self.status = iprot.readI32();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('getCartsForUser_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.status != None:oprot.writeFieldBegin('status', TType.I32, 2)oprot.writeI32(self.status)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getCartsForUser_result:"""Attributes:- success- scx"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, success=None, scx=None,):self.success = successself.scx = scxdef 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 = [](_etype94, _size91) = iprot.readListBegin()for _i95 in xrange(_size91):_elem96 = Cart()_elem96.read(iprot)self.success.append(_elem96)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.scx = ShoppingCartException()self.scx.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('getCartsForUser_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter97 in self.success:iter97.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getCartsByStatus_args:"""Attributes:- status"""thrift_spec = (None, # 0(1, TType.I32, 'status', None, None, ), # 1)def __init__(self, status=None,):self.status = statusdef 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.I32:self.status = iprot.readI32();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('getCartsByStatus_args')if self.status != None:oprot.writeFieldBegin('status', TType.I32, 1)oprot.writeI32(self.status)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getCartsByStatus_result:"""Attributes:- success- scx"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, success=None, scx=None,):self.success = successself.scx = scxdef 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 = [](_etype101, _size98) = iprot.readListBegin()for _i102 in xrange(_size98):_elem103 = Cart()_elem103.read(iprot)self.success.append(_elem103)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.scx = ShoppingCartException()self.scx.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('getCartsByStatus_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter104 in self.success:iter104.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getCartsByTime_args:"""Attributes:- from_time- to_time- status"""thrift_spec = (None, # 0(1, TType.I64, 'from_time', None, None, ), # 1(2, TType.I64, 'to_time', None, None, ), # 2(3, TType.I32, 'status', None, None, ), # 3)def __init__(self, from_time=None, to_time=None, status=None,):self.from_time = from_timeself.to_time = to_timeself.status = statusdef 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.from_time = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.to_time = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I32:self.status = iprot.readI32();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__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('getCartsByTime_args')if self.from_time != None:oprot.writeFieldBegin('from_time', TType.I64, 1)oprot.writeI64(self.from_time)oprot.writeFieldEnd()if self.to_time != None:oprot.writeFieldBegin('to_time', TType.I64, 2)oprot.writeI64(self.to_time)oprot.writeFieldEnd()if self.status != None:oprot.writeFieldBegin('status', TType.I32, 3)oprot.writeI32(self.status)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getCartsByTime_result:"""Attributes:- success- scx"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, success=None, scx=None,):self.success = successself.scx = scxdef 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 = [](_etype108, _size105) = iprot.readListBegin()for _i109 in xrange(_size105):_elem110 = Cart()_elem110.read(iprot)self.success.append(_elem110)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.scx = ShoppingCartException()self.scx.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('getCartsByTime_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter111 in self.success:iter111.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class changeCartStatus_args:"""Attributes:- cartId- status"""thrift_spec = (None, # 0(1, TType.I64, 'cartId', None, None, ), # 1(2, TType.I32, 'status', None, None, ), # 2)def __init__(self, cartId=None, status=None,):self.cartId = cartIdself.status = statusdef 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.cartId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I32:self.status = iprot.readI32();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__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('changeCartStatus_args')if self.cartId != None:oprot.writeFieldBegin('cartId', TType.I64, 1)oprot.writeI64(self.cartId)oprot.writeFieldEnd()if self.status != None:oprot.writeFieldBegin('status', TType.I32, 2)oprot.writeI32(self.status)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class changeCartStatus_result:"""Attributes:- scx"""thrift_spec = (None, # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, scx=None,):self.scx = scxdef 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.scx = ShoppingCartException()self.scx.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('changeCartStatus_result')if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addItemToCart_args:"""Attributes:- cartId- itemId- quantity"""thrift_spec = (None, # 0(1, TType.I64, 'cartId', None, None, ), # 1(2, TType.I64, 'itemId', None, None, ), # 2(3, TType.I64, 'quantity', None, None, ), # 3)def __init__(self, cartId=None, itemId=None, quantity=None,):self.cartId = cartIdself.itemId = itemIdself.quantity = quantitydef 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.cartId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.quantity = 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('addItemToCart_args')if self.cartId != None:oprot.writeFieldBegin('cartId', TType.I64, 1)oprot.writeI64(self.cartId)oprot.writeFieldEnd()if self.itemId != None:oprot.writeFieldBegin('itemId', TType.I64, 2)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.quantity != None:oprot.writeFieldBegin('quantity', TType.I64, 3)oprot.writeI64(self.quantity)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addItemToCart_result:"""Attributes:- success- scx"""thrift_spec = ((0, TType.STRING, 'success', None, None, ), # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, success=None, scx=None,):self.success = successself.scx = scxdef 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)elif fid == 1:if ftype == TType.STRUCT:self.scx = ShoppingCartException()self.scx.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('addItemToCart_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRING, 0)oprot.writeString(self.success)oprot.writeFieldEnd()if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteItemFromCart_args:"""Attributes:- cartId- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'cartId', None, None, ), # 1(2, TType.I64, 'itemId', None, None, ), # 2)def __init__(self, cartId=None, itemId=None,):self.cartId = cartIdself.itemId = itemIddef 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.cartId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.itemId = 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('deleteItemFromCart_args')if self.cartId != None:oprot.writeFieldBegin('cartId', TType.I64, 1)oprot.writeI64(self.cartId)oprot.writeFieldEnd()if self.itemId != None:oprot.writeFieldBegin('itemId', TType.I64, 2)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteItemFromCart_result:"""Attributes:- scx"""thrift_spec = (None, # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, scx=None,):self.scx = scxdef 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.scx = ShoppingCartException()self.scx.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('deleteItemFromCart_result')if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class changeQuantity_args:"""Attributes:- cartId- itemId- quantity"""thrift_spec = (None, # 0(1, TType.I64, 'cartId', None, None, ), # 1(2, TType.I64, 'itemId', None, None, ), # 2(3, TType.I64, 'quantity', None, None, ), # 3)def __init__(self, cartId=None, itemId=None, quantity=None,):self.cartId = cartIdself.itemId = itemIdself.quantity = quantitydef 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.cartId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.quantity = 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('changeQuantity_args')if self.cartId != None:oprot.writeFieldBegin('cartId', TType.I64, 1)oprot.writeI64(self.cartId)oprot.writeFieldEnd()if self.itemId != None:oprot.writeFieldBegin('itemId', TType.I64, 2)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.quantity != None:oprot.writeFieldBegin('quantity', TType.I64, 3)oprot.writeI64(self.quantity)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class changeQuantity_result:"""Attributes:- scx"""thrift_spec = (None, # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, scx=None,):self.scx = scxdef 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.scx = ShoppingCartException()self.scx.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('changeQuantity_result')if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class changeItemStatus_args:"""Attributes:- cartId- itemId- status"""thrift_spec = (None, # 0(1, TType.I64, 'cartId', None, None, ), # 1(2, TType.I64, 'itemId', None, None, ), # 2(3, TType.I32, 'status', None, None, ), # 3)def __init__(self, cartId=None, itemId=None, status=None,):self.cartId = cartIdself.itemId = itemIdself.status = statusdef 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.cartId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I32:self.status = iprot.readI32();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__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('changeItemStatus_args')if self.cartId != None:oprot.writeFieldBegin('cartId', TType.I64, 1)oprot.writeI64(self.cartId)oprot.writeFieldEnd()if self.itemId != None:oprot.writeFieldBegin('itemId', TType.I64, 2)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.status != None:oprot.writeFieldBegin('status', TType.I32, 3)oprot.writeI32(self.status)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class changeItemStatus_result:"""Attributes:- scx"""thrift_spec = (None, # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, scx=None,):self.scx = scxdef 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.scx = ShoppingCartException()self.scx.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('changeItemStatus_result')if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addAddressToCart_args:"""Attributes:- cartId- addressId"""thrift_spec = (None, # 0(1, TType.I64, 'cartId', None, None, ), # 1(2, TType.I64, 'addressId', None, None, ), # 2)def __init__(self, cartId=None, addressId=None,):self.cartId = cartIdself.addressId = addressIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.cartId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.addressId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('addAddressToCart_args')if self.cartId != None:oprot.writeFieldBegin('cartId', TType.I64, 1)oprot.writeI64(self.cartId)oprot.writeFieldEnd()if self.addressId != None:oprot.writeFieldBegin('addressId', TType.I64, 2)oprot.writeI64(self.addressId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class addAddressToCart_result:"""Attributes:- scx"""thrift_spec = (None, # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, scx=None,):self.scx = scxdef 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.scx = ShoppingCartException()self.scx.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('addAddressToCart_result')if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class applyCouponToCart_args:"""Attributes:- cartId- couponCode- totalPrice- discountedPrice"""thrift_spec = (None, # 0(1, TType.I64, 'cartId', None, None, ), # 1(2, TType.STRING, 'couponCode', None, None, ), # 2(3, TType.DOUBLE, 'totalPrice', None, None, ), # 3(4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4)def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):self.cartId = cartIdself.couponCode = couponCodeself.totalPrice = totalPriceself.discountedPrice = discountedPricedef 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.cartId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.couponCode = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.DOUBLE:self.totalPrice = iprot.readDouble();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.DOUBLE:self.discountedPrice = iprot.readDouble();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('applyCouponToCart_args')if self.cartId != None:oprot.writeFieldBegin('cartId', TType.I64, 1)oprot.writeI64(self.cartId)oprot.writeFieldEnd()if self.couponCode != None:oprot.writeFieldBegin('couponCode', TType.STRING, 2)oprot.writeString(self.couponCode)oprot.writeFieldEnd()if self.totalPrice != None:oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)oprot.writeDouble(self.totalPrice)oprot.writeFieldEnd()if self.discountedPrice != None:oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)oprot.writeDouble(self.discountedPrice)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class applyCouponToCart_result:"""Attributes:- scx"""thrift_spec = (None, # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, scx=None,):self.scx = scxdef 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.scx = ShoppingCartException()self.scx.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('applyCouponToCart_result')if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class removeCoupon_args:"""Attributes:- cartId"""thrift_spec = (None, # 0(1, TType.I64, 'cartId', None, None, ), # 1)def __init__(self, cartId=None,):self.cartId = cartIddef 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.cartId = 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('removeCoupon_args')if self.cartId != None:oprot.writeFieldBegin('cartId', TType.I64, 1)oprot.writeI64(self.cartId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class removeCoupon_result:"""Attributes:- scx"""thrift_spec = (None, # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, scx=None,):self.scx = scxdef 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.scx = ShoppingCartException()self.scx.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('removeCoupon_result')if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createOrders_args:"""Attributes:- cartId"""thrift_spec = (None, # 0(1, TType.I64, 'cartId', None, None, ), # 1)def __init__(self, cartId=None,):self.cartId = cartIddef 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.cartId = 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('createOrders_args')if self.cartId != None:oprot.writeFieldBegin('cartId', TType.I64, 1)oprot.writeI64(self.cartId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createOrders_result:"""Attributes:- success- scx"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0(1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, success=None, scx=None,):self.success = successself.scx = scxdef 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.scx = ShoppingCartException()self.scx.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('createOrders_result')if self.success != None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class validateCart_args:"""Attributes:- cartId"""thrift_spec = (None, # 0(1, TType.I64, 'cartId', None, None, ), # 1)def __init__(self, cartId=None,):self.cartId = cartIddef 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.cartId = 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('validateCart_args')if self.cartId != None:oprot.writeFieldBegin('cartId', TType.I64, 1)oprot.writeI64(self.cartId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class validateCart_result:"""Attributes:- success- scex"""thrift_spec = ((0, TType.STRING, 'success', None, None, ), # 0(1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, success=None, scex=None,):self.success = successself.scex = scexdef 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)elif fid == 1:if ftype == TType.STRUCT:self.scex = ShoppingCartException()self.scex.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('validateCart_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRING, 0)oprot.writeString(self.success)oprot.writeFieldEnd()if self.scex != None:oprot.writeFieldBegin('scex', TType.STRUCT, 1)self.scex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class mergeCart_args:"""Attributes:- fromCartId- toCartId"""thrift_spec = (None, # 0(1, TType.I64, 'fromCartId', None, None, ), # 1(2, TType.I64, 'toCartId', None, None, ), # 2)def __init__(self, fromCartId=None, toCartId=None,):self.fromCartId = fromCartIdself.toCartId = toCartIddef 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.fromCartId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.toCartId = 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('mergeCart_args')if self.fromCartId != None:oprot.writeFieldBegin('fromCartId', TType.I64, 1)oprot.writeI64(self.fromCartId)oprot.writeFieldEnd()if self.toCartId != None:oprot.writeFieldBegin('toCartId', TType.I64, 2)oprot.writeI64(self.toCartId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class mergeCart_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('mergeCart_result')oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class checkOut_args:"""Attributes:- cartId"""thrift_spec = (None, # 0(1, TType.I64, 'cartId', None, None, ), # 1)def __init__(self, cartId=None,):self.cartId = cartIddef 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.cartId = 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('checkOut_args')if self.cartId != None:oprot.writeFieldBegin('cartId', TType.I64, 1)oprot.writeI64(self.cartId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class checkOut_result:"""Attributes:- success- scex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, success=None, scex=None,):self.success = successself.scex = scexdef 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.scex = ShoppingCartException()self.scex.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('checkOut_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.scex != None:oprot.writeFieldBegin('scex', TType.STRUCT, 1)self.scex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class resetCart_args:"""Attributes:- cartId- items"""thrift_spec = (None, # 0(1, TType.I64, 'cartId', None, None, ), # 1(2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2)def __init__(self, cartId=None, items=None,):self.cartId = cartIdself.items = itemsdef 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.cartId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.MAP:self.items = {}(_ktype113, _vtype114, _size112 ) = iprot.readMapBegin()for _i116 in xrange(_size112):_key117 = iprot.readI64();_val118 = iprot.readDouble();self.items[_key117] = _val118iprot.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('resetCart_args')if self.cartId != None:oprot.writeFieldBegin('cartId', TType.I64, 1)oprot.writeI64(self.cartId)oprot.writeFieldEnd()if self.items != None:oprot.writeFieldBegin('items', TType.MAP, 2)oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))for kiter119,viter120 in self.items.items():oprot.writeI64(kiter119)oprot.writeDouble(viter120)oprot.writeMapEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class resetCart_result:"""Attributes:- success- scex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1)def __init__(self, success=None, scex=None,):self.success = successself.scex = scexdef 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.scex = ShoppingCartException()self.scex.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('resetCart_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.scex != None:oprot.writeFieldBegin('scex', TType.STRUCT, 1)self.scex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getMyResearch_args:"""Attributes:- userId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1)def __init__(self, userId=None,):self.userId = userIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getMyResearch_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getMyResearch_result:"""Attributes:- success- scx"""thrift_spec = ((0, TType.STRUCT, 'success', (Widget, Widget.thrift_spec), None, ), # 0(1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1)def __init__(self, success=None, scx=None,):self.success = successself.scx = scxdef 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 = Widget()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.scx = WidgetException()self.scx.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('getMyResearch_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class updateMyResearch_args:"""Attributes:- userId- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1(2, TType.I64, 'itemId', None, None, ), # 2)def __init__(self, userId=None, itemId=None,):self.userId = userIdself.itemId = itemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.itemId = 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('updateMyResearch_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.itemId != None:oprot.writeFieldBegin('itemId', TType.I64, 2)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class updateMyResearch_result:"""Attributes:- success- scx"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1)def __init__(self, success=None, scx=None,):self.success = successself.scx = scxdef 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.scx = WidgetException()self.scx.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('updateMyResearch_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteItemFromMyResearch_args:"""Attributes:- userId- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1(2, TType.I64, 'itemId', None, None, ), # 2)def __init__(self, userId=None, itemId=None,):self.userId = userIdself.itemId = itemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.itemId = 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('deleteItemFromMyResearch_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.itemId != None:oprot.writeFieldBegin('itemId', TType.I64, 2)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class deleteItemFromMyResearch_result:"""Attributes:- scx"""thrift_spec = (None, # 0(1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1)def __init__(self, scx=None,):self.scx = scxdef 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.scx = WidgetException()self.scx.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('deleteItemFromMyResearch_result')if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class updateBrowseHistory_args:"""Attributes:- userId- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1(2, TType.I64, 'itemId', None, None, ), # 2)def __init__(self, userId=None, itemId=None,):self.userId = userIdself.itemId = itemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.itemId = 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('updateBrowseHistory_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.itemId != None:oprot.writeFieldBegin('itemId', TType.I64, 2)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class updateBrowseHistory_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('updateBrowseHistory_result')oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getBrowseHistory_args:"""Attributes:- userId"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1)def __init__(self, userId=None,):self.userId = userIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.userId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getBrowseHistory_args')if self.userId != None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getBrowseHistory_result:"""Attributes:- success- scx"""thrift_spec = ((0, TType.STRUCT, 'success', (Widget, Widget.thrift_spec), None, ), # 0(1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1)def __init__(self, success=None, scx=None,):self.success = successself.scx = scxdef 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 = Widget()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.scx = WidgetException()self.scx.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('getBrowseHistory_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.scx != None:oprot.writeFieldBegin('scx', TType.STRUCT, 1)self.scx.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class mergeBrowseHistory_args:"""Attributes:- fromUserId- toUserId"""thrift_spec = (None, # 0(1, TType.I64, 'fromUserId', None, None, ), # 1(2, TType.I64, 'toUserId', None, None, ), # 2)def __init__(self, fromUserId=None, toUserId=None,):self.fromUserId = fromUserIdself.toUserId = toUserIddef 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.fromUserId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.toUserId = 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('mergeBrowseHistory_args')if self.fromUserId != None:oprot.writeFieldBegin('fromUserId', TType.I64, 1)oprot.writeI64(self.fromUserId)oprot.writeFieldEnd()if self.toUserId != None:oprot.writeFieldBegin('toUserId', TType.I64, 2)oprot.writeI64(self.toUserId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class mergeBrowseHistory_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('mergeBrowseHistory_result')oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getUserCount_args:"""Attributes:- userType"""thrift_spec = (None, # 0(1, TType.I32, 'userType', None, None, ), # 1)def __init__(self, userType=None,):self.userType = userTypedef 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.I32:self.userType = iprot.readI32();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('getUserCount_args')if self.userType != None:oprot.writeFieldBegin('userType', TType.I32, 1)oprot.writeI32(self.userType)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getUserCount_result:"""Attributes:- success"""thrift_spec = ((0, TType.I64, '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.I64:self.success = 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('getUserCount_result')if self.success != None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllUsers_args:"""Attributes:- userType- startDate- endDate"""thrift_spec = (None, # 0(1, TType.I32, 'userType', None, None, ), # 1(2, TType.I64, 'startDate', None, None, ), # 2(3, TType.I64, 'endDate', None, None, ), # 3)def __init__(self, userType=None, startDate=None, endDate=None,):self.userType = userTypeself.startDate = startDateself.endDate = endDatedef 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.I32:self.userType = iprot.readI32();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.startDate = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.endDate = 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('getAllUsers_args')if self.userType != None:oprot.writeFieldBegin('userType', TType.I32, 1)oprot.writeI32(self.userType)oprot.writeFieldEnd()if self.startDate != None:oprot.writeFieldBegin('startDate', TType.I64, 2)oprot.writeI64(self.startDate)oprot.writeFieldEnd()if self.endDate != None:oprot.writeFieldBegin('endDate', TType.I64, 3)oprot.writeI64(self.endDate)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getAllUsers_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(User, User.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 = [](_etype124, _size121) = iprot.readListBegin()for _i125 in xrange(_size121):_elem126 = User()_elem126.read(iprot)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('getAllUsers_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter127 in self.success:iter127.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)