Subversion Repositories SmartDukaan

Rev

Rev 8619 | Rev 9155 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8619 Rev 8739
Line 891... Line 891...
891
    Parameters:
891
    Parameters:
892
     - item
892
     - item
893
    """
893
    """
894
    pass
894
    pass
895
 
895
 
-
 
896
  def addOrUpdateSnapdealItem(self, snapdealitem):
-
 
897
    """
-
 
898
    Parameters:
-
 
899
     - snapdealitem
-
 
900
    """
-
 
901
    pass
-
 
902
 
-
 
903
  def getSnapdealItem(self, item_id):
-
 
904
    """
-
 
905
    Parameters:
-
 
906
     - item_id
-
 
907
    """
-
 
908
    pass
-
 
909
 
-
 
910
  def getAllSnapdealItems(self, ):
-
 
911
    pass
-
 
912
 
896
 
913
 
897
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
914
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
898
  def __init__(self, iprot, oprot=None):
915
  def __init__(self, iprot, oprot=None):
899
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
916
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
900
 
917
 
Line 4644... Line 4661...
4644
    result = updateAsin_result()
4661
    result = updateAsin_result()
4645
    result.read(self._iprot)
4662
    result.read(self._iprot)
4646
    self._iprot.readMessageEnd()
4663
    self._iprot.readMessageEnd()
4647
    return
4664
    return
4648
 
4665
 
-
 
4666
  def addOrUpdateSnapdealItem(self, snapdealitem):
-
 
4667
    """
-
 
4668
    Parameters:
-
 
4669
     - snapdealitem
-
 
4670
    """
-
 
4671
    self.send_addOrUpdateSnapdealItem(snapdealitem)
-
 
4672
    return self.recv_addOrUpdateSnapdealItem()
-
 
4673
 
-
 
4674
  def send_addOrUpdateSnapdealItem(self, snapdealitem):
-
 
4675
    self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)
-
 
4676
    args = addOrUpdateSnapdealItem_args()
-
 
4677
    args.snapdealitem = snapdealitem
-
 
4678
    args.write(self._oprot)
-
 
4679
    self._oprot.writeMessageEnd()
-
 
4680
    self._oprot.trans.flush()
-
 
4681
 
-
 
4682
  def recv_addOrUpdateSnapdealItem(self, ):
-
 
4683
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4684
    if mtype == TMessageType.EXCEPTION:
-
 
4685
      x = TApplicationException()
-
 
4686
      x.read(self._iprot)
-
 
4687
      self._iprot.readMessageEnd()
-
 
4688
      raise x
-
 
4689
    result = addOrUpdateSnapdealItem_result()
-
 
4690
    result.read(self._iprot)
-
 
4691
    self._iprot.readMessageEnd()
-
 
4692
    if result.success is not None:
-
 
4693
      return result.success
-
 
4694
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");
-
 
4695
 
-
 
4696
  def getSnapdealItem(self, item_id):
-
 
4697
    """
-
 
4698
    Parameters:
-
 
4699
     - item_id
-
 
4700
    """
-
 
4701
    self.send_getSnapdealItem(item_id)
-
 
4702
    return self.recv_getSnapdealItem()
-
 
4703
 
-
 
4704
  def send_getSnapdealItem(self, item_id):
-
 
4705
    self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)
-
 
4706
    args = getSnapdealItem_args()
-
 
4707
    args.item_id = item_id
-
 
4708
    args.write(self._oprot)
-
 
4709
    self._oprot.writeMessageEnd()
-
 
4710
    self._oprot.trans.flush()
-
 
4711
 
-
 
4712
  def recv_getSnapdealItem(self, ):
-
 
4713
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4714
    if mtype == TMessageType.EXCEPTION:
-
 
4715
      x = TApplicationException()
-
 
4716
      x.read(self._iprot)
-
 
4717
      self._iprot.readMessageEnd()
-
 
4718
      raise x
-
 
4719
    result = getSnapdealItem_result()
-
 
4720
    result.read(self._iprot)
-
 
4721
    self._iprot.readMessageEnd()
-
 
4722
    if result.success is not None:
-
 
4723
      return result.success
-
 
4724
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
-
 
4725
 
-
 
4726
  def getAllSnapdealItems(self, ):
-
 
4727
    self.send_getAllSnapdealItems()
-
 
4728
    return self.recv_getAllSnapdealItems()
-
 
4729
 
-
 
4730
  def send_getAllSnapdealItems(self, ):
-
 
4731
    self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)
-
 
4732
    args = getAllSnapdealItems_args()
-
 
4733
    args.write(self._oprot)
-
 
4734
    self._oprot.writeMessageEnd()
-
 
4735
    self._oprot.trans.flush()
-
 
4736
 
-
 
4737
  def recv_getAllSnapdealItems(self, ):
-
 
4738
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4739
    if mtype == TMessageType.EXCEPTION:
-
 
4740
      x = TApplicationException()
-
 
4741
      x.read(self._iprot)
-
 
4742
      self._iprot.readMessageEnd()
-
 
4743
      raise x
-
 
4744
    result = getAllSnapdealItems_result()
-
 
4745
    result.read(self._iprot)
-
 
4746
    self._iprot.readMessageEnd()
-
 
4747
    if result.success is not None:
-
 
4748
      return result.success
-
 
4749
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
-
 
4750
 
4649
 
4751
 
4650
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
4752
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
4651
  def __init__(self, handler):
4753
  def __init__(self, handler):
4652
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4754
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4653
    self._processMap["addItem"] = Processor.process_addItem
4755
    self._processMap["addItem"] = Processor.process_addItem
Line 4770... Line 4872...
4770
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
4872
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
4771
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
4873
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
4772
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
4874
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
4773
    self._processMap["getAllSnapdealListedActiveItems"] = Processor.process_getAllSnapdealListedActiveItems
4875
    self._processMap["getAllSnapdealListedActiveItems"] = Processor.process_getAllSnapdealListedActiveItems
4774
    self._processMap["updateAsin"] = Processor.process_updateAsin
4876
    self._processMap["updateAsin"] = Processor.process_updateAsin
-
 
4877
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
-
 
4878
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
-
 
4879
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
4775
 
4880
 
4776
  def process(self, iprot, oprot):
4881
  def process(self, iprot, oprot):
4777
    (name, type, seqid) = iprot.readMessageBegin()
4882
    (name, type, seqid) = iprot.readMessageBegin()
4778
    if name not in self._processMap:
4883
    if name not in self._processMap:
4779
      iprot.skip(TType.STRUCT)
4884
      iprot.skip(TType.STRUCT)
Line 6242... Line 6347...
6242
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
6347
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
6243
    result.write(oprot)
6348
    result.write(oprot)
6244
    oprot.writeMessageEnd()
6349
    oprot.writeMessageEnd()
6245
    oprot.trans.flush()
6350
    oprot.trans.flush()
6246
 
6351
 
-
 
6352
  def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):
-
 
6353
    args = addOrUpdateSnapdealItem_args()
-
 
6354
    args.read(iprot)
-
 
6355
    iprot.readMessageEnd()
-
 
6356
    result = addOrUpdateSnapdealItem_result()
-
 
6357
    result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)
-
 
6358
    oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)
-
 
6359
    result.write(oprot)
-
 
6360
    oprot.writeMessageEnd()
-
 
6361
    oprot.trans.flush()
-
 
6362
 
-
 
6363
  def process_getSnapdealItem(self, seqid, iprot, oprot):
-
 
6364
    args = getSnapdealItem_args()
-
 
6365
    args.read(iprot)
-
 
6366
    iprot.readMessageEnd()
-
 
6367
    result = getSnapdealItem_result()
-
 
6368
    result.success = self._handler.getSnapdealItem(args.item_id)
-
 
6369
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
-
 
6370
    result.write(oprot)
-
 
6371
    oprot.writeMessageEnd()
-
 
6372
    oprot.trans.flush()
-
 
6373
 
-
 
6374
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
-
 
6375
    args = getAllSnapdealItems_args()
-
 
6376
    args.read(iprot)
-
 
6377
    iprot.readMessageEnd()
-
 
6378
    result = getAllSnapdealItems_result()
-
 
6379
    result.success = self._handler.getAllSnapdealItems()
-
 
6380
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
-
 
6381
    result.write(oprot)
-
 
6382
    oprot.writeMessageEnd()
-
 
6383
    oprot.trans.flush()
-
 
6384
 
6247
 
6385
 
6248
# HELPER FUNCTIONS AND STRUCTURES
6386
# HELPER FUNCTIONS AND STRUCTURES
6249
 
6387
 
6250
class addItem_args:
6388
class addItem_args:
6251
  """
6389
  """
Line 21716... Line 21854...
21716
    oprot.writeFieldStop()
21854
    oprot.writeFieldStop()
21717
    oprot.writeStructEnd()
21855
    oprot.writeStructEnd()
21718
 
21856
 
21719
  def validate(self):
21857
  def validate(self):
21720
    return
21858
    return
-
 
21859
 
-
 
21860
 
-
 
21861
  def __repr__(self):
-
 
21862
    L = ['%s=%r' % (key, value)
-
 
21863
      for key, value in self.__dict__.iteritems()]
-
 
21864
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
21865
 
-
 
21866
  def __eq__(self, other):
-
 
21867
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
21868
 
-
 
21869
  def __ne__(self, other):
-
 
21870
    return not (self == other)
-
 
21871
 
-
 
21872
class addOrUpdateSnapdealItem_args:
-
 
21873
  """
-
 
21874
  Attributes:
-
 
21875
   - snapdealitem
-
 
21876
  """
-
 
21877
 
-
 
21878
  thrift_spec = None
-
 
21879
  def __init__(self, snapdealitem=None,):
-
 
21880
    self.snapdealitem = snapdealitem
-
 
21881
 
-
 
21882
  def read(self, iprot):
-
 
21883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
21884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
21885
      return
-
 
21886
    iprot.readStructBegin()
-
 
21887
    while True:
-
 
21888
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
21889
      if ftype == TType.STOP:
-
 
21890
        break
-
 
21891
      if fid == -1:
-
 
21892
        if ftype == TType.STRUCT:
-
 
21893
          self.snapdealitem = SnapdealItem()
-
 
21894
          self.snapdealitem.read(iprot)
-
 
21895
        else:
-
 
21896
          iprot.skip(ftype)
-
 
21897
      else:
-
 
21898
        iprot.skip(ftype)
-
 
21899
      iprot.readFieldEnd()
-
 
21900
    iprot.readStructEnd()
-
 
21901
 
-
 
21902
  def write(self, oprot):
-
 
21903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
21904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
21905
      return
-
 
21906
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
-
 
21907
    if self.snapdealitem is not None:
-
 
21908
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
-
 
21909
      self.snapdealitem.write(oprot)
-
 
21910
      oprot.writeFieldEnd()
-
 
21911
    oprot.writeFieldStop()
-
 
21912
    oprot.writeStructEnd()
-
 
21913
 
-
 
21914
  def validate(self):
-
 
21915
    return
-
 
21916
 
-
 
21917
 
-
 
21918
  def __repr__(self):
-
 
21919
    L = ['%s=%r' % (key, value)
-
 
21920
      for key, value in self.__dict__.iteritems()]
-
 
21921
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
21922
 
-
 
21923
  def __eq__(self, other):
-
 
21924
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
21925
 
-
 
21926
  def __ne__(self, other):
-
 
21927
    return not (self == other)
-
 
21928
 
-
 
21929
class addOrUpdateSnapdealItem_result:
-
 
21930
  """
-
 
21931
  Attributes:
-
 
21932
   - success
-
 
21933
  """
-
 
21934
 
-
 
21935
  thrift_spec = (
-
 
21936
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
21937
  )
-
 
21938
 
-
 
21939
  def __init__(self, success=None,):
-
 
21940
    self.success = success
-
 
21941
 
-
 
21942
  def read(self, iprot):
-
 
21943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
21944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
21945
      return
-
 
21946
    iprot.readStructBegin()
-
 
21947
    while True:
-
 
21948
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
21949
      if ftype == TType.STOP:
-
 
21950
        break
-
 
21951
      if fid == 0:
-
 
21952
        if ftype == TType.BOOL:
-
 
21953
          self.success = iprot.readBool();
-
 
21954
        else:
-
 
21955
          iprot.skip(ftype)
-
 
21956
      else:
-
 
21957
        iprot.skip(ftype)
-
 
21958
      iprot.readFieldEnd()
-
 
21959
    iprot.readStructEnd()
-
 
21960
 
-
 
21961
  def write(self, oprot):
-
 
21962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
21963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
21964
      return
-
 
21965
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
-
 
21966
    if self.success is not None:
-
 
21967
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
21968
      oprot.writeBool(self.success)
-
 
21969
      oprot.writeFieldEnd()
-
 
21970
    oprot.writeFieldStop()
-
 
21971
    oprot.writeStructEnd()
-
 
21972
 
-
 
21973
  def validate(self):
-
 
21974
    return
-
 
21975
 
-
 
21976
 
-
 
21977
  def __repr__(self):
-
 
21978
    L = ['%s=%r' % (key, value)
-
 
21979
      for key, value in self.__dict__.iteritems()]
-
 
21980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
21981
 
-
 
21982
  def __eq__(self, other):
-
 
21983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
21984
 
-
 
21985
  def __ne__(self, other):
-
 
21986
    return not (self == other)
-
 
21987
 
-
 
21988
class getSnapdealItem_args:
-
 
21989
  """
-
 
21990
  Attributes:
-
 
21991
   - item_id
-
 
21992
  """
-
 
21993
 
-
 
21994
  thrift_spec = (
-
 
21995
    None, # 0
-
 
21996
    (1, TType.I64, 'item_id', None, None, ), # 1
-
 
21997
  )
-
 
21998
 
-
 
21999
  def __init__(self, item_id=None,):
-
 
22000
    self.item_id = item_id
-
 
22001
 
-
 
22002
  def read(self, iprot):
-
 
22003
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
22004
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
22005
      return
-
 
22006
    iprot.readStructBegin()
-
 
22007
    while True:
-
 
22008
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
22009
      if ftype == TType.STOP:
-
 
22010
        break
-
 
22011
      if fid == 1:
-
 
22012
        if ftype == TType.I64:
-
 
22013
          self.item_id = iprot.readI64();
-
 
22014
        else:
-
 
22015
          iprot.skip(ftype)
-
 
22016
      else:
-
 
22017
        iprot.skip(ftype)
-
 
22018
      iprot.readFieldEnd()
-
 
22019
    iprot.readStructEnd()
-
 
22020
 
-
 
22021
  def write(self, oprot):
-
 
22022
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
22023
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
22024
      return
-
 
22025
    oprot.writeStructBegin('getSnapdealItem_args')
-
 
22026
    if self.item_id is not None:
-
 
22027
      oprot.writeFieldBegin('item_id', TType.I64, 1)
-
 
22028
      oprot.writeI64(self.item_id)
-
 
22029
      oprot.writeFieldEnd()
-
 
22030
    oprot.writeFieldStop()
-
 
22031
    oprot.writeStructEnd()
-
 
22032
 
-
 
22033
  def validate(self):
-
 
22034
    return
-
 
22035
 
-
 
22036
 
-
 
22037
  def __repr__(self):
-
 
22038
    L = ['%s=%r' % (key, value)
-
 
22039
      for key, value in self.__dict__.iteritems()]
-
 
22040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
22041
 
-
 
22042
  def __eq__(self, other):
-
 
22043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
22044
 
-
 
22045
  def __ne__(self, other):
-
 
22046
    return not (self == other)
-
 
22047
 
-
 
22048
class getSnapdealItem_result:
-
 
22049
  """
-
 
22050
  Attributes:
-
 
22051
   - success
-
 
22052
  """
-
 
22053
 
-
 
22054
  thrift_spec = (
-
 
22055
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
-
 
22056
  )
-
 
22057
 
-
 
22058
  def __init__(self, success=None,):
-
 
22059
    self.success = success
-
 
22060
 
-
 
22061
  def read(self, iprot):
-
 
22062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
22063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
22064
      return
-
 
22065
    iprot.readStructBegin()
-
 
22066
    while True:
-
 
22067
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
22068
      if ftype == TType.STOP:
-
 
22069
        break
-
 
22070
      if fid == 0:
-
 
22071
        if ftype == TType.STRUCT:
-
 
22072
          self.success = SnapdealItem()
-
 
22073
          self.success.read(iprot)
-
 
22074
        else:
-
 
22075
          iprot.skip(ftype)
-
 
22076
      else:
-
 
22077
        iprot.skip(ftype)
-
 
22078
      iprot.readFieldEnd()
-
 
22079
    iprot.readStructEnd()
-
 
22080
 
-
 
22081
  def write(self, oprot):
-
 
22082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
22083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
22084
      return
-
 
22085
    oprot.writeStructBegin('getSnapdealItem_result')
-
 
22086
    if self.success is not None:
-
 
22087
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
22088
      self.success.write(oprot)
-
 
22089
      oprot.writeFieldEnd()
-
 
22090
    oprot.writeFieldStop()
-
 
22091
    oprot.writeStructEnd()
-
 
22092
 
-
 
22093
  def validate(self):
-
 
22094
    return
-
 
22095
 
-
 
22096
 
-
 
22097
  def __repr__(self):
-
 
22098
    L = ['%s=%r' % (key, value)
-
 
22099
      for key, value in self.__dict__.iteritems()]
-
 
22100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
22101
 
-
 
22102
  def __eq__(self, other):
-
 
22103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
22104
 
-
 
22105
  def __ne__(self, other):
-
 
22106
    return not (self == other)
-
 
22107
 
-
 
22108
class getAllSnapdealItems_args:
-
 
22109
 
-
 
22110
  thrift_spec = (
-
 
22111
  )
-
 
22112
 
-
 
22113
  def read(self, iprot):
-
 
22114
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
22115
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
22116
      return
-
 
22117
    iprot.readStructBegin()
-
 
22118
    while True:
-
 
22119
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
22120
      if ftype == TType.STOP:
-
 
22121
        break
-
 
22122
      else:
-
 
22123
        iprot.skip(ftype)
-
 
22124
      iprot.readFieldEnd()
-
 
22125
    iprot.readStructEnd()
-
 
22126
 
-
 
22127
  def write(self, oprot):
-
 
22128
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
22129
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
22130
      return
-
 
22131
    oprot.writeStructBegin('getAllSnapdealItems_args')
-
 
22132
    oprot.writeFieldStop()
-
 
22133
    oprot.writeStructEnd()
-
 
22134
 
-
 
22135
  def validate(self):
-
 
22136
    return
-
 
22137
 
-
 
22138
 
-
 
22139
  def __repr__(self):
-
 
22140
    L = ['%s=%r' % (key, value)
-
 
22141
      for key, value in self.__dict__.iteritems()]
-
 
22142
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
22143
 
-
 
22144
  def __eq__(self, other):
-
 
22145
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
22146
 
-
 
22147
  def __ne__(self, other):
-
 
22148
    return not (self == other)
-
 
22149
 
-
 
22150
class getAllSnapdealItems_result:
-
 
22151
  """
-
 
22152
  Attributes:
-
 
22153
   - success
-
 
22154
  """
-
 
22155
 
-
 
22156
  thrift_spec = (
-
 
22157
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItem, SnapdealItem.thrift_spec)), None, ), # 0
-
 
22158
  )
-
 
22159
 
-
 
22160
  def __init__(self, success=None,):
-
 
22161
    self.success = success
-
 
22162
 
-
 
22163
  def read(self, iprot):
-
 
22164
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
22165
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
22166
      return
-
 
22167
    iprot.readStructBegin()
-
 
22168
    while True:
-
 
22169
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
22170
      if ftype == TType.STOP:
-
 
22171
        break
-
 
22172
      if fid == 0:
-
 
22173
        if ftype == TType.LIST:
-
 
22174
          self.success = []
-
 
22175
          (_etype507, _size504) = iprot.readListBegin()
-
 
22176
          for _i508 in xrange(_size504):
-
 
22177
            _elem509 = SnapdealItem()
-
 
22178
            _elem509.read(iprot)
-
 
22179
            self.success.append(_elem509)
-
 
22180
          iprot.readListEnd()
-
 
22181
        else:
-
 
22182
          iprot.skip(ftype)
-
 
22183
      else:
-
 
22184
        iprot.skip(ftype)
-
 
22185
      iprot.readFieldEnd()
-
 
22186
    iprot.readStructEnd()
-
 
22187
 
-
 
22188
  def write(self, oprot):
-
 
22189
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
22190
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
22191
      return
-
 
22192
    oprot.writeStructBegin('getAllSnapdealItems_result')
-
 
22193
    if self.success is not None:
-
 
22194
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
22195
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
22196
      for iter510 in self.success:
-
 
22197
        iter510.write(oprot)
-
 
22198
      oprot.writeListEnd()
-
 
22199
      oprot.writeFieldEnd()
-
 
22200
    oprot.writeFieldStop()
-
 
22201
    oprot.writeStructEnd()
-
 
22202
 
-
 
22203
  def validate(self):
-
 
22204
    return
21721
 
22205
 
21722
 
22206
 
21723
  def __repr__(self):
22207
  def __repr__(self):
21724
    L = ['%s=%r' % (key, value)
22208
    L = ['%s=%r' % (key, value)
21725
      for key, value in self.__dict__.iteritems()]
22209
      for key, value in self.__dict__.iteritems()]