Rev 12696 | Blame | Compare with Previous | Last modification | View Log | RSS feed
## Autogenerated by Thrift Compiler (0.7.0)## DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING#from thrift.Thrift import *import shop2020.thriftpy.generic.ttypesfrom thrift.transport import TTransportfrom thrift.protocol import TBinaryProtocol, TProtocoltry:from thrift.protocol import fastbinaryexcept:fastbinary = Noneclass Role:WAREHOUSE_EXECUTIVE = 0ADMIN = 1WAREHOUSE_MONITOR = 2WAREHOUSE_OBSERVER = 3_VALUES_TO_NAMES = {0: "WAREHOUSE_EXECUTIVE",1: "ADMIN",2: "WAREHOUSE_MONITOR",3: "WAREHOUSE_OBSERVER",}_NAMES_TO_VALUES = {"WAREHOUSE_EXECUTIVE": 0,"ADMIN": 1,"WAREHOUSE_MONITOR": 2,"WAREHOUSE_OBSERVER": 3,}class DealerAuthRole:ADMIN = 1AREA_MANAGER = 2ONFEET_EXECUTIVE = 3CRM = 4_VALUES_TO_NAMES = {1: "ADMIN",2: "AREA_MANAGER",3: "ONFEET_EXECUTIVE",4: "CRM",}_NAMES_TO_VALUES = {"ADMIN": 1,"AREA_MANAGER": 2,"ONFEET_EXECUTIVE": 3,"CRM": 4,}class Campaigns:GOSF = 1CORPORATE_COUPONS = 2_VALUES_TO_NAMES = {1: "GOSF",2: "CORPORATE_COUPONS",}_NAMES_TO_VALUES = {"GOSF": 1,"CORPORATE_COUPONS": 2,}class SmsType:TRANSACTIONAL = 0PROMOTIONAL = 1SERVICE_ALERT = 2_VALUES_TO_NAMES = {0: "TRANSACTIONAL",1: "PROMOTIONAL",2: "SERVICE_ALERT",}_NAMES_TO_VALUES = {"TRANSACTIONAL": 0,"PROMOTIONAL": 1,"SERVICE_ALERT": 2,}class SmsStatus:IN_PROCESS = 0DELIVERED = 1UNDELIVERED = 2SERVICE_ERROR = 3USER_ABSENT = 4MEMORY_FULL = 5NDLC_FAIL = 6INVALID_NUMBER = 7_VALUES_TO_NAMES = {0: "IN_PROCESS",1: "DELIVERED",2: "UNDELIVERED",3: "SERVICE_ERROR",4: "USER_ABSENT",5: "MEMORY_FULL",6: "NDLC_FAIL",7: "INVALID_NUMBER",}_NAMES_TO_VALUES = {"IN_PROCESS": 0,"DELIVERED": 1,"UNDELIVERED": 2,"SERVICE_ERROR": 3,"USER_ABSENT": 4,"MEMORY_FULL": 5,"NDLC_FAIL": 6,"INVALID_NUMBER": 7,}class SmsDeliveryStatus:NOT_SENT = 0SENT_TO_OPERATOR = 1SUBMITTED_TO_SMSC = 2GOT_STATUS_CODE = 3_VALUES_TO_NAMES = {0: "NOT_SENT",1: "SENT_TO_OPERATOR",2: "SUBMITTED_TO_SMSC",3: "GOT_STATUS_CODE",}_NAMES_TO_VALUES = {"NOT_SENT": 0,"SENT_TO_OPERATOR": 1,"SUBMITTED_TO_SMSC": 2,"GOT_STATUS_CODE": 3,}class Agent:"""Helper servicecreated by @ashish*Attributes:- id- name- emailId- managerId- password- isActive"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1(2, TType.STRING, 'name', None, None, ), # 2(3, TType.STRING, 'emailId', None, None, ), # 3(4, TType.I64, 'managerId', None, None, ), # 4(5, TType.STRING, 'password', None, None, ), # 5(6, TType.BOOL, 'isActive', None, None, ), # 6)def __init__(self, id=None, name=None, emailId=None, managerId=None, password=None, isActive=None,):self.id = idself.name = nameself.emailId = emailIdself.managerId = managerIdself.password = passwordself.isActive = isActivedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.name = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.emailId = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I64:self.managerId = iprot.readI64();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.STRING:self.password = iprot.readString();else:iprot.skip(ftype)elif fid == 6:if ftype == TType.BOOL:self.isActive = 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('Agent')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()if self.name is not None:oprot.writeFieldBegin('name', TType.STRING, 2)oprot.writeString(self.name)oprot.writeFieldEnd()if self.emailId is not None:oprot.writeFieldBegin('emailId', TType.STRING, 3)oprot.writeString(self.emailId)oprot.writeFieldEnd()if self.managerId is not None:oprot.writeFieldBegin('managerId', TType.I64, 4)oprot.writeI64(self.managerId)oprot.writeFieldEnd()if self.password is not None:oprot.writeFieldBegin('password', TType.STRING, 5)oprot.writeString(self.password)oprot.writeFieldEnd()if self.isActive is not None:oprot.writeFieldBegin('isActive', TType.BOOL, 6)oprot.writeBool(self.isActive)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class Mail:"""Attributes:- to- subject- data- sender- attachments- password"""thrift_spec = (None, # 0(1, TType.LIST, 'to', (TType.STRING,None), None, ), # 1(2, TType.STRING, 'subject', None, None, ), # 2(3, TType.STRING, 'data', None, None, ), # 3(4, TType.STRING, 'sender', None, None, ), # 4(5, TType.LIST, 'attachments', (TType.STRING,None), None, ), # 5(6, TType.STRING, 'password', None, None, ), # 6)def __init__(self, to=None, subject=None, data=None, sender=None, attachments=None, password=None,):self.to = toself.subject = subjectself.data = dataself.sender = senderself.attachments = attachmentsself.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.LIST:self.to = [](_etype3, _size0) = iprot.readListBegin()for _i4 in xrange(_size0):_elem5 = iprot.readString();self.to.append(_elem5)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.subject = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.data = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.STRING:self.sender = iprot.readString();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.LIST:self.attachments = [](_etype9, _size6) = iprot.readListBegin()for _i10 in xrange(_size6):_elem11 = iprot.readString();self.attachments.append(_elem11)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 6: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('Mail')if self.to is not None:oprot.writeFieldBegin('to', TType.LIST, 1)oprot.writeListBegin(TType.STRING, len(self.to))for iter12 in self.to:oprot.writeString(iter12)oprot.writeListEnd()oprot.writeFieldEnd()if self.subject is not None:oprot.writeFieldBegin('subject', TType.STRING, 2)oprot.writeString(self.subject)oprot.writeFieldEnd()if self.data is not None:oprot.writeFieldBegin('data', TType.STRING, 3)oprot.writeString(self.data)oprot.writeFieldEnd()if self.sender is not None:oprot.writeFieldBegin('sender', TType.STRING, 4)oprot.writeString(self.sender)oprot.writeFieldEnd()if self.attachments is not None:oprot.writeFieldBegin('attachments', TType.LIST, 5)oprot.writeListBegin(TType.STRING, len(self.attachments))for iter13 in self.attachments:oprot.writeString(iter13)oprot.writeListEnd()oprot.writeFieldEnd()if self.password is not None:oprot.writeFieldBegin('password', TType.STRING, 6)oprot.writeString(self.password)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class TextMessage:"""Attributes:- number- message- dispatchTime- deliveryTime"""thrift_spec = (None, # 0(1, TType.STRING, 'number', None, None, ), # 1(2, TType.STRING, 'message', None, None, ), # 2(3, TType.I64, 'dispatchTime', None, None, ), # 3(4, TType.I64, 'deliveryTime', None, None, ), # 4)def __init__(self, number=None, message=None, dispatchTime=None, deliveryTime=None,):self.number = numberself.message = messageself.dispatchTime = dispatchTimeself.deliveryTime = deliveryTimedef 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.number = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.message = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.dispatchTime = iprot.readI64();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I64:self.deliveryTime = 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('TextMessage')if self.number is not None:oprot.writeFieldBegin('number', TType.STRING, 1)oprot.writeString(self.number)oprot.writeFieldEnd()if self.message is not None:oprot.writeFieldBegin('message', TType.STRING, 2)oprot.writeString(self.message)oprot.writeFieldEnd()if self.dispatchTime is not None:oprot.writeFieldBegin('dispatchTime', TType.I64, 3)oprot.writeI64(self.dispatchTime)oprot.writeFieldEnd()if self.deliveryTime is not None:oprot.writeFieldBegin('deliveryTime', TType.I64, 4)oprot.writeI64(self.deliveryTime)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class HelperServiceException(Exception):"""Attributes:- id- message"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1(2, TType.STRING, 'message', None, None, ), # 2)def __init__(self, id=None, message=None,):self.id = idself.message = messagedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.message = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('HelperServiceException')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()if self.message is not None:oprot.writeFieldBegin('message', TType.STRING, 2)oprot.writeString(self.message)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __str__(self):return repr(self)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 Message:"""Attributes:- id- message"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1(2, TType.STRING, 'message', None, None, ), # 2)def __init__(self, id=None, message=None,):self.id = idself.message = messagedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.message = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('Message')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()if self.message is not None:oprot.writeFieldBegin('message', TType.STRING, 2)oprot.writeString(self.message)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class Location:"""Attributes:- lattitude- longitude"""thrift_spec = (None, # 0(1, TType.DOUBLE, 'lattitude', None, None, ), # 1(2, TType.DOUBLE, 'longitude', None, None, ), # 2)def __init__(self, lattitude=None, longitude=None,):self.lattitude = lattitudeself.longitude = longitudedef 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.DOUBLE:self.lattitude = iprot.readDouble();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.DOUBLE:self.longitude = iprot.readDouble();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__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('Location')if self.lattitude is not None:oprot.writeFieldBegin('lattitude', TType.DOUBLE, 1)oprot.writeDouble(self.lattitude)oprot.writeFieldEnd()if self.longitude is not None:oprot.writeFieldBegin('longitude', TType.DOUBLE, 2)oprot.writeDouble(self.longitude)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class DealerAuth:"""Attributes:- username- password- role- createdOn- lastLoggedIn- lastLocation- isActive"""thrift_spec = (None, # 0(1, TType.STRING, 'username', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2(3, TType.I32, 'role', None, None, ), # 3(4, TType.I64, 'createdOn', None, None, ), # 4(5, TType.I64, 'lastLoggedIn', None, None, ), # 5(6, TType.STRUCT, 'lastLocation', (Location, Location.thrift_spec), None, ), # 6(7, TType.BOOL, 'isActive', None, None, ), # 7)def __init__(self, username=None, password=None, role=None, createdOn=None, lastLoggedIn=None, lastLocation=None, isActive=None,):self.username = usernameself.password = passwordself.role = roleself.createdOn = createdOnself.lastLoggedIn = lastLoggedInself.lastLocation = lastLocationself.isActive = isActivedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.username = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.password = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I32:self.role = iprot.readI32();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I64:self.createdOn = iprot.readI64();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.I64:self.lastLoggedIn = iprot.readI64();else:iprot.skip(ftype)elif fid == 6:if ftype == TType.STRUCT:self.lastLocation = Location()self.lastLocation.read(iprot)else:iprot.skip(ftype)elif fid == 7:if ftype == TType.BOOL:self.isActive = 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('DealerAuth')if self.username is not None:oprot.writeFieldBegin('username', TType.STRING, 1)oprot.writeString(self.username)oprot.writeFieldEnd()if self.password is not None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()if self.role is not None:oprot.writeFieldBegin('role', TType.I32, 3)oprot.writeI32(self.role)oprot.writeFieldEnd()if self.createdOn is not None:oprot.writeFieldBegin('createdOn', TType.I64, 4)oprot.writeI64(self.createdOn)oprot.writeFieldEnd()if self.lastLoggedIn is not None:oprot.writeFieldBegin('lastLoggedIn', TType.I64, 5)oprot.writeI64(self.lastLoggedIn)oprot.writeFieldEnd()if self.lastLocation is not None:oprot.writeFieldBegin('lastLocation', TType.STRUCT, 6)self.lastLocation.write(oprot)oprot.writeFieldEnd()if self.isActive is not None:oprot.writeFieldBegin('isActive', TType.BOOL, 7)oprot.writeBool(self.isActive)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class DashboardUser:"""Attributes:- username- password- warehouseId- role- source"""thrift_spec = (None, # 0(1, TType.STRING, 'username', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2(3, TType.I64, 'warehouseId', None, None, ), # 3(4, TType.I32, 'role', None, None, ), # 4(5, TType.I64, 'source', None, None, ), # 5)def __init__(self, username=None, password=None, warehouseId=None, role=None, source=None,):self.username = usernameself.password = passwordself.warehouseId = warehouseIdself.role = roleself.source = sourcedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.username = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.password = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.warehouseId = iprot.readI64();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I32:self.role = iprot.readI32();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.I64:self.source = 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('DashboardUser')if self.username is not None:oprot.writeFieldBegin('username', TType.STRING, 1)oprot.writeString(self.username)oprot.writeFieldEnd()if self.password is not None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()if self.warehouseId is not None:oprot.writeFieldBegin('warehouseId', TType.I64, 3)oprot.writeI64(self.warehouseId)oprot.writeFieldEnd()if self.role is not None:oprot.writeFieldBegin('role', TType.I32, 4)oprot.writeI32(self.role)oprot.writeFieldEnd()if self.source is not None:oprot.writeFieldBegin('source', TType.I64, 5)oprot.writeI64(self.source)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class LogisticsUser:"""Attributes:- username- providerId"""thrift_spec = (None, # 0(1, TType.STRING, 'username', None, None, ), # 1(2, TType.I64, 'providerId', None, None, ), # 2)def __init__(self, username=None, providerId=None,):self.username = usernameself.providerId = providerIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.username = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.providerId = 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('LogisticsUser')if self.username is not None:oprot.writeFieldBegin('username', TType.STRING, 1)oprot.writeString(self.username)oprot.writeFieldEnd()if self.providerId is not None:oprot.writeFieldBegin('providerId', TType.I64, 2)oprot.writeI64(self.providerId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class StatisticsUser:"""Attributes:- username"""thrift_spec = (None, # 0(1, TType.STRING, 'username', None, None, ), # 1)def __init__(self, username=None,):self.username = usernamedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.username = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('StatisticsUser')if self.username is not None:oprot.writeFieldBegin('username', TType.STRING, 1)oprot.writeString(self.username)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class CatalogDashboardUser:"""Attributes:- username- password- role"""thrift_spec = (None, # 0(1, TType.STRING, 'username', None, None, ), # 1(2, TType.STRING, 'password', None, None, ), # 2(3, TType.I64, 'role', None, None, ), # 3)def __init__(self, username=None, password=None, role=None,):self.username = usernameself.password = passwordself.role = roledef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.username = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.password = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.role = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('CatalogDashboardUser')if self.username is not None:oprot.writeFieldBegin('username', TType.STRING, 1)oprot.writeString(self.username)oprot.writeFieldEnd()if self.password is not None:oprot.writeFieldBegin('password', TType.STRING, 2)oprot.writeString(self.password)oprot.writeFieldEnd()if self.role is not None:oprot.writeFieldBegin('role', TType.I64, 3)oprot.writeI64(self.role)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class UserEmail:"""Attributes:- id- emailTo- emailFrom- subject- body- source- emailType- status- timestamp- cc- bcc"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1(2, TType.LIST, 'emailTo', (TType.STRING,None), None, ), # 2(3, TType.STRING, 'emailFrom', None, None, ), # 3(4, TType.STRING, 'subject', None, None, ), # 4(5, TType.STRING, 'body', None, None, ), # 5(6, TType.STRING, 'source', None, None, ), # 6(7, TType.STRING, 'emailType', None, None, ), # 7(8, TType.BOOL, 'status', None, None, ), # 8(9, TType.I64, 'timestamp', None, None, ), # 9(10, TType.LIST, 'cc', (TType.STRING,None), None, ), # 10(11, TType.LIST, 'bcc', (TType.STRING,None), None, ), # 11)def __init__(self, id=None, emailTo=None, emailFrom=None, subject=None, body=None, source=None, emailType=None, status=None, timestamp=None, cc=None, bcc=None,):self.id = idself.emailTo = emailToself.emailFrom = emailFromself.subject = subjectself.body = bodyself.source = sourceself.emailType = emailTypeself.status = statusself.timestamp = timestampself.cc = ccself.bcc = bccdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.LIST:self.emailTo = [](_etype17, _size14) = iprot.readListBegin()for _i18 in xrange(_size14):_elem19 = iprot.readString();self.emailTo.append(_elem19)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.emailFrom = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.STRING:self.subject = iprot.readString();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.STRING:self.body = iprot.readString();else:iprot.skip(ftype)elif fid == 6:if ftype == TType.STRING:self.source = iprot.readString();else:iprot.skip(ftype)elif fid == 7:if ftype == TType.STRING:self.emailType = iprot.readString();else:iprot.skip(ftype)elif fid == 8:if ftype == TType.BOOL:self.status = iprot.readBool();else:iprot.skip(ftype)elif fid == 9:if ftype == TType.I64:self.timestamp = iprot.readI64();else:iprot.skip(ftype)elif fid == 10:if ftype == TType.LIST:self.cc = [](_etype23, _size20) = iprot.readListBegin()for _i24 in xrange(_size20):_elem25 = iprot.readString();self.cc.append(_elem25)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 11:if ftype == TType.LIST:self.bcc = [](_etype29, _size26) = iprot.readListBegin()for _i30 in xrange(_size26):_elem31 = iprot.readString();self.bcc.append(_elem31)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('UserEmail')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()if self.emailTo is not None:oprot.writeFieldBegin('emailTo', TType.LIST, 2)oprot.writeListBegin(TType.STRING, len(self.emailTo))for iter32 in self.emailTo:oprot.writeString(iter32)oprot.writeListEnd()oprot.writeFieldEnd()if self.emailFrom is not None:oprot.writeFieldBegin('emailFrom', TType.STRING, 3)oprot.writeString(self.emailFrom)oprot.writeFieldEnd()if self.subject is not None:oprot.writeFieldBegin('subject', TType.STRING, 4)oprot.writeString(self.subject)oprot.writeFieldEnd()if self.body is not None:oprot.writeFieldBegin('body', TType.STRING, 5)oprot.writeString(self.body)oprot.writeFieldEnd()if self.source is not None:oprot.writeFieldBegin('source', TType.STRING, 6)oprot.writeString(self.source)oprot.writeFieldEnd()if self.emailType is not None:oprot.writeFieldBegin('emailType', TType.STRING, 7)oprot.writeString(self.emailType)oprot.writeFieldEnd()if self.status is not None:oprot.writeFieldBegin('status', TType.BOOL, 8)oprot.writeBool(self.status)oprot.writeFieldEnd()if self.timestamp is not None:oprot.writeFieldBegin('timestamp', TType.I64, 9)oprot.writeI64(self.timestamp)oprot.writeFieldEnd()if self.cc is not None:oprot.writeFieldBegin('cc', TType.LIST, 10)oprot.writeListBegin(TType.STRING, len(self.cc))for iter33 in self.cc:oprot.writeString(iter33)oprot.writeListEnd()oprot.writeFieldEnd()if self.bcc is not None:oprot.writeFieldBegin('bcc', TType.LIST, 11)oprot.writeListBegin(TType.STRING, len(self.bcc))for iter34 in self.bcc:oprot.writeString(iter34)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class ReportUser:"""Attributes:- username- role"""thrift_spec = (None, # 0(1, TType.STRING, 'username', None, None, ), # 1(2, TType.I64, 'role', None, None, ), # 2(3, TType.STRING, 'email', None, None, ), # 3)def __init__(self, username=None, role=None, email=None,):self.username = usernameself.role = roleself.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.username = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.role = iprot.readI64();else:iprot.skip(ftype)elif fid == 3: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('ReportUser')if self.username is not None:oprot.writeFieldBegin('username', TType.STRING, 1)oprot.writeString(self.username)oprot.writeFieldEnd()if self.role is not None:oprot.writeFieldBegin('role', TType.I64, 2)oprot.writeI64(self.role)oprot.writeFieldEnd()if self.email is not None:oprot.writeFieldBegin('email', TType.STRING, 3)oprot.writeString(self.email)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class Report:"""Attributes:- id- description- controller"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1(2, TType.STRING, 'description', None, None, ), # 2(3, TType.STRING, 'controller', None, None, ), # 3)def __init__(self, id=None, description=None, controller=None,):self.id = idself.description = descriptionself.controller = controllerdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.description = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.controller = 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('Report')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()if self.description is not None:oprot.writeFieldBegin('description', TType.STRING, 2)oprot.writeString(self.description)oprot.writeFieldEnd()if self.controller is not None:oprot.writeFieldBegin('controller', TType.STRING, 3)oprot.writeString(self.controller)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class QuickLink:"""Attributes:- id- url- text"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1(2, TType.STRING, 'url', None, None, ), # 2(3, TType.STRING, 'text', None, None, ), # 3)def __init__(self, id=None, url=None, text=None,):self.id = idself.url = urlself.text = textdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.url = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.text = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('QuickLink')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()if self.url is not None:oprot.writeFieldBegin('url', TType.STRING, 2)oprot.writeString(self.url)oprot.writeFieldEnd()if self.text is not None:oprot.writeFieldBegin('text', TType.STRING, 3)oprot.writeString(self.text)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class AgentWarehouseMapping:"""Attributes:- agentId- warehouseId"""thrift_spec = (None, # 0(1, TType.I64, 'agentId', None, None, ), # 1(2, TType.I64, 'warehouseId', None, None, ), # 2)def __init__(self, agentId=None, warehouseId=None,):self.agentId = agentIdself.warehouseId = warehouseIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.agentId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.warehouseId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('AgentWarehouseMapping')if self.agentId is not None:oprot.writeFieldBegin('agentId', TType.I64, 1)oprot.writeI64(self.agentId)oprot.writeFieldEnd()if self.warehouseId is not None:oprot.writeFieldBegin('warehouseId', TType.I64, 2)oprot.writeI64(self.warehouseId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class UserSms:"""Attributes:- id- user_id- mobileNumber- smsText- type- status- attempts- createdTimestamp- responseId- responseText- deliveryStatus"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1(2, TType.I64, 'user_id', None, None, ), # 2(3, TType.STRING, 'mobileNumber', None, None, ), # 3(4, TType.STRING, 'smsText', None, None, ), # 4(5, TType.I32, 'type', None, None, ), # 5(6, TType.I32, 'status', None, None, ), # 6(7, TType.I64, 'attempts', None, None, ), # 7(8, TType.I64, 'createdTimestamp', None, None, ), # 8(9, TType.STRING, 'responseId', None, None, ), # 9(10, TType.STRING, 'responseText', None, None, ), # 10(11, TType.I32, 'deliveryStatus', None, None, ), # 11)def __init__(self, id=None, user_id=None, mobileNumber=None, smsText=None, type=None, status=None, attempts=None, createdTimestamp=None, responseId=None, responseText=None, deliveryStatus=None,):self.id = idself.user_id = user_idself.mobileNumber = mobileNumberself.smsText = smsTextself.type = typeself.status = statusself.attempts = attemptsself.createdTimestamp = createdTimestampself.responseId = responseIdself.responseText = responseTextself.deliveryStatus = deliveryStatusdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.user_id = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.mobileNumber = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.STRING:self.smsText = iprot.readString();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.I32:self.type = iprot.readI32();else:iprot.skip(ftype)elif fid == 6:if ftype == TType.I32:self.status = iprot.readI32();else:iprot.skip(ftype)elif fid == 7:if ftype == TType.I64:self.attempts = iprot.readI64();else:iprot.skip(ftype)elif fid == 8:if ftype == TType.I64:self.createdTimestamp = iprot.readI64();else:iprot.skip(ftype)elif fid == 9:if ftype == TType.STRING:self.responseId = iprot.readString();else:iprot.skip(ftype)elif fid == 10:if ftype == TType.STRING:self.responseText = iprot.readString();else:iprot.skip(ftype)elif fid == 11:if ftype == TType.I32:self.deliveryStatus = 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('UserSms')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()if self.user_id is not None:oprot.writeFieldBegin('user_id', TType.I64, 2)oprot.writeI64(self.user_id)oprot.writeFieldEnd()if self.mobileNumber is not None:oprot.writeFieldBegin('mobileNumber', TType.STRING, 3)oprot.writeString(self.mobileNumber)oprot.writeFieldEnd()if self.smsText is not None:oprot.writeFieldBegin('smsText', TType.STRING, 4)oprot.writeString(self.smsText)oprot.writeFieldEnd()if self.type is not None:oprot.writeFieldBegin('type', TType.I32, 5)oprot.writeI32(self.type)oprot.writeFieldEnd()if self.status is not None:oprot.writeFieldBegin('status', TType.I32, 6)oprot.writeI32(self.status)oprot.writeFieldEnd()if self.attempts is not None:oprot.writeFieldBegin('attempts', TType.I64, 7)oprot.writeI64(self.attempts)oprot.writeFieldEnd()if self.createdTimestamp is not None:oprot.writeFieldBegin('createdTimestamp', TType.I64, 8)oprot.writeI64(self.createdTimestamp)oprot.writeFieldEnd()if self.responseId is not None:oprot.writeFieldBegin('responseId', TType.STRING, 9)oprot.writeString(self.responseId)oprot.writeFieldEnd()if self.responseText is not None:oprot.writeFieldBegin('responseText', TType.STRING, 10)oprot.writeString(self.responseText)oprot.writeFieldEnd()if self.deliveryStatus is not None:oprot.writeFieldBegin('deliveryStatus', TType.I32, 11)oprot.writeI32(self.deliveryStatus)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class UserSmsInfo:"""Attributes:- userId- mobileNo- dailyCount- weeklyCount- dndStatus- smsSubscribed- createdTimestamp- updateTimestamp"""thrift_spec = (None, # 0(1, TType.I64, 'userId', None, None, ), # 1(2, TType.STRING, 'mobileNo', None, None, ), # 2(3, TType.I32, 'dailyCount', None, None, ), # 3(4, TType.I32, 'weeklyCount', None, None, ), # 4(5, TType.BOOL, 'dndStatus', None, None, ), # 5(6, TType.BOOL, 'smsSubscribed', None, None, ), # 6(7, TType.I64, 'createdTimestamp', None, None, ), # 7(8, TType.I64, 'updateTimestamp', None, None, ), # 8)def __init__(self, userId=None, mobileNo=None, dailyCount=None, weeklyCount=None, dndStatus=None, smsSubscribed=None, createdTimestamp=None, updateTimestamp=None,):self.userId = userIdself.mobileNo = mobileNoself.dailyCount = dailyCountself.weeklyCount = weeklyCountself.dndStatus = dndStatusself.smsSubscribed = smsSubscribedself.createdTimestamp = createdTimestampself.updateTimestamp = updateTimestampdef 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.mobileNo = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I32:self.dailyCount = iprot.readI32();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I32:self.weeklyCount = iprot.readI32();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.BOOL:self.dndStatus = iprot.readBool();else:iprot.skip(ftype)elif fid == 6:if ftype == TType.BOOL:self.smsSubscribed = iprot.readBool();else:iprot.skip(ftype)elif fid == 7:if ftype == TType.I64:self.createdTimestamp = iprot.readI64();else:iprot.skip(ftype)elif fid == 8:if ftype == TType.I64:self.updateTimestamp = 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('UserSmsInfo')if self.userId is not None:oprot.writeFieldBegin('userId', TType.I64, 1)oprot.writeI64(self.userId)oprot.writeFieldEnd()if self.mobileNo is not None:oprot.writeFieldBegin('mobileNo', TType.STRING, 2)oprot.writeString(self.mobileNo)oprot.writeFieldEnd()if self.dailyCount is not None:oprot.writeFieldBegin('dailyCount', TType.I32, 3)oprot.writeI32(self.dailyCount)oprot.writeFieldEnd()if self.weeklyCount is not None:oprot.writeFieldBegin('weeklyCount', TType.I32, 4)oprot.writeI32(self.weeklyCount)oprot.writeFieldEnd()if self.dndStatus is not None:oprot.writeFieldBegin('dndStatus', TType.BOOL, 5)oprot.writeBool(self.dndStatus)oprot.writeFieldEnd()if self.smsSubscribed is not None:oprot.writeFieldBegin('smsSubscribed', TType.BOOL, 6)oprot.writeBool(self.smsSubscribed)oprot.writeFieldEnd()if self.createdTimestamp is not None:oprot.writeFieldBegin('createdTimestamp', TType.I64, 7)oprot.writeI64(self.createdTimestamp)oprot.writeFieldEnd()if self.updateTimestamp is not None:oprot.writeFieldBegin('updateTimestamp', TType.I64, 8)oprot.writeI64(self.updateTimestamp)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)