Subversion Repositories SmartDukaan

Rev

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

Rev 8616 Rev 8619
Line 755... Line 755...
755
    pass
755
    pass
756
 
756
 
757
  def getAllAmazonListedItems(self, ):
757
  def getAllAmazonListedItems(self, ):
758
    pass
758
    pass
759
 
759
 
-
 
760
  def searchAmazonItems(self, searchTerm, offset, limit):
-
 
761
    """
-
 
762
    Parameters:
-
 
763
     - searchTerm
-
 
764
     - offset
-
 
765
     - limit
-
 
766
    """
-
 
767
    pass
-
 
768
 
-
 
769
  def getAmazonSearchResultCount(self, searchTerm):
-
 
770
    """
-
 
771
    Parameters:
-
 
772
     - searchTerm
-
 
773
    """
-
 
774
    pass
-
 
775
 
-
 
776
  def getCountForAmazonlistedItems(self, ):
-
 
777
    pass
-
 
778
 
760
  def getAmazonItemDetails(self, itemId):
779
  def getAmazonItemDetails(self, itemId):
761
    """
780
    """
762
    Parameters:
781
    Parameters:
763
     - itemId
782
     - itemId
764
    """
783
    """
Line 865... Line 884...
865
    pass
884
    pass
866
 
885
 
867
  def getAllSnapdealListedActiveItems(self, ):
886
  def getAllSnapdealListedActiveItems(self, ):
868
    pass
887
    pass
869
 
888
 
-
 
889
  def updateAsin(self, item):
-
 
890
    """
-
 
891
    Parameters:
-
 
892
     - item
-
 
893
    """
-
 
894
    pass
-
 
895
 
870
 
896
 
871
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
897
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
872
  def __init__(self, iprot, oprot=None):
898
  def __init__(self, iprot, oprot=None):
873
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
899
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
874
 
900
 
Line 3968... Line 3994...
3968
    self._iprot.readMessageEnd()
3994
    self._iprot.readMessageEnd()
3969
    if result.success is not None:
3995
    if result.success is not None:
3970
      return result.success
3996
      return result.success
3971
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
3997
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
3972
 
3998
 
-
 
3999
  def searchAmazonItems(self, searchTerm, offset, limit):
-
 
4000
    """
-
 
4001
    Parameters:
-
 
4002
     - searchTerm
-
 
4003
     - offset
-
 
4004
     - limit
-
 
4005
    """
-
 
4006
    self.send_searchAmazonItems(searchTerm, offset, limit)
-
 
4007
    return self.recv_searchAmazonItems()
-
 
4008
 
-
 
4009
  def send_searchAmazonItems(self, searchTerm, offset, limit):
-
 
4010
    self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)
-
 
4011
    args = searchAmazonItems_args()
-
 
4012
    args.searchTerm = searchTerm
-
 
4013
    args.offset = offset
-
 
4014
    args.limit = limit
-
 
4015
    args.write(self._oprot)
-
 
4016
    self._oprot.writeMessageEnd()
-
 
4017
    self._oprot.trans.flush()
-
 
4018
 
-
 
4019
  def recv_searchAmazonItems(self, ):
-
 
4020
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4021
    if mtype == TMessageType.EXCEPTION:
-
 
4022
      x = TApplicationException()
-
 
4023
      x.read(self._iprot)
-
 
4024
      self._iprot.readMessageEnd()
-
 
4025
      raise x
-
 
4026
    result = searchAmazonItems_result()
-
 
4027
    result.read(self._iprot)
-
 
4028
    self._iprot.readMessageEnd()
-
 
4029
    if result.success is not None:
-
 
4030
      return result.success
-
 
4031
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
-
 
4032
 
-
 
4033
  def getAmazonSearchResultCount(self, searchTerm):
-
 
4034
    """
-
 
4035
    Parameters:
-
 
4036
     - searchTerm
-
 
4037
    """
-
 
4038
    self.send_getAmazonSearchResultCount(searchTerm)
-
 
4039
    return self.recv_getAmazonSearchResultCount()
-
 
4040
 
-
 
4041
  def send_getAmazonSearchResultCount(self, searchTerm):
-
 
4042
    self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)
-
 
4043
    args = getAmazonSearchResultCount_args()
-
 
4044
    args.searchTerm = searchTerm
-
 
4045
    args.write(self._oprot)
-
 
4046
    self._oprot.writeMessageEnd()
-
 
4047
    self._oprot.trans.flush()
-
 
4048
 
-
 
4049
  def recv_getAmazonSearchResultCount(self, ):
-
 
4050
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4051
    if mtype == TMessageType.EXCEPTION:
-
 
4052
      x = TApplicationException()
-
 
4053
      x.read(self._iprot)
-
 
4054
      self._iprot.readMessageEnd()
-
 
4055
      raise x
-
 
4056
    result = getAmazonSearchResultCount_result()
-
 
4057
    result.read(self._iprot)
-
 
4058
    self._iprot.readMessageEnd()
-
 
4059
    if result.success is not None:
-
 
4060
      return result.success
-
 
4061
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
-
 
4062
 
-
 
4063
  def getCountForAmazonlistedItems(self, ):
-
 
4064
    self.send_getCountForAmazonlistedItems()
-
 
4065
    return self.recv_getCountForAmazonlistedItems()
-
 
4066
 
-
 
4067
  def send_getCountForAmazonlistedItems(self, ):
-
 
4068
    self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)
-
 
4069
    args = getCountForAmazonlistedItems_args()
-
 
4070
    args.write(self._oprot)
-
 
4071
    self._oprot.writeMessageEnd()
-
 
4072
    self._oprot.trans.flush()
-
 
4073
 
-
 
4074
  def recv_getCountForAmazonlistedItems(self, ):
-
 
4075
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4076
    if mtype == TMessageType.EXCEPTION:
-
 
4077
      x = TApplicationException()
-
 
4078
      x.read(self._iprot)
-
 
4079
      self._iprot.readMessageEnd()
-
 
4080
      raise x
-
 
4081
    result = getCountForAmazonlistedItems_result()
-
 
4082
    result.read(self._iprot)
-
 
4083
    self._iprot.readMessageEnd()
-
 
4084
    if result.success is not None:
-
 
4085
      return result.success
-
 
4086
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
-
 
4087
 
3973
  def getAmazonItemDetails(self, itemId):
4088
  def getAmazonItemDetails(self, itemId):
3974
    """
4089
    """
3975
    Parameters:
4090
    Parameters:
3976
     - itemId
4091
     - itemId
3977
    """
4092
    """
Line 4501... Line 4616...
4501
    self._iprot.readMessageEnd()
4616
    self._iprot.readMessageEnd()
4502
    if result.success is not None:
4617
    if result.success is not None:
4503
      return result.success
4618
      return result.success
4504
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealListedActiveItems failed: unknown result");
4619
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealListedActiveItems failed: unknown result");
4505
 
4620
 
-
 
4621
  def updateAsin(self, item):
-
 
4622
    """
-
 
4623
    Parameters:
-
 
4624
     - item
-
 
4625
    """
-
 
4626
    self.send_updateAsin(item)
-
 
4627
    self.recv_updateAsin()
-
 
4628
 
-
 
4629
  def send_updateAsin(self, item):
-
 
4630
    self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)
-
 
4631
    args = updateAsin_args()
-
 
4632
    args.item = item
-
 
4633
    args.write(self._oprot)
-
 
4634
    self._oprot.writeMessageEnd()
-
 
4635
    self._oprot.trans.flush()
-
 
4636
 
-
 
4637
  def recv_updateAsin(self, ):
-
 
4638
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4639
    if mtype == TMessageType.EXCEPTION:
-
 
4640
      x = TApplicationException()
-
 
4641
      x.read(self._iprot)
-
 
4642
      self._iprot.readMessageEnd()
-
 
4643
      raise x
-
 
4644
    result = updateAsin_result()
-
 
4645
    result.read(self._iprot)
-
 
4646
    self._iprot.readMessageEnd()
-
 
4647
    return
-
 
4648
 
4506
 
4649
 
4507
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
4650
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
4508
  def __init__(self, handler):
4651
  def __init__(self, handler):
4509
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4652
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4510
    self._processMap["addItem"] = Processor.process_addItem
4653
    self._processMap["addItem"] = Processor.process_addItem
Line 4604... Line 4747...
4604
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
4747
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
4605
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
4748
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
4606
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
4749
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
4607
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
4750
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
4608
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
4751
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
-
 
4752
    self._processMap["searchAmazonItems"] = Processor.process_searchAmazonItems
-
 
4753
    self._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCount
-
 
4754
    self._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItems
4609
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
4755
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
4610
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
4756
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
4611
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
4757
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
4612
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
4758
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
4613
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
4759
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
Line 4623... Line 4769...
4623
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
4769
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
4624
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
4770
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
4625
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
4771
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
4626
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
4772
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
4627
    self._processMap["getAllSnapdealListedActiveItems"] = Processor.process_getAllSnapdealListedActiveItems
4773
    self._processMap["getAllSnapdealListedActiveItems"] = Processor.process_getAllSnapdealListedActiveItems
-
 
4774
    self._processMap["updateAsin"] = Processor.process_updateAsin
4628
 
4775
 
4629
  def process(self, iprot, oprot):
4776
  def process(self, iprot, oprot):
4630
    (name, type, seqid) = iprot.readMessageBegin()
4777
    (name, type, seqid) = iprot.readMessageBegin()
4631
    if name not in self._processMap:
4778
    if name not in self._processMap:
4632
      iprot.skip(TType.STRUCT)
4779
      iprot.skip(TType.STRUCT)
Line 5842... Line 5989...
5842
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
5989
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
5843
    result.write(oprot)
5990
    result.write(oprot)
5844
    oprot.writeMessageEnd()
5991
    oprot.writeMessageEnd()
5845
    oprot.trans.flush()
5992
    oprot.trans.flush()
5846
 
5993
 
-
 
5994
  def process_searchAmazonItems(self, seqid, iprot, oprot):
-
 
5995
    args = searchAmazonItems_args()
-
 
5996
    args.read(iprot)
-
 
5997
    iprot.readMessageEnd()
-
 
5998
    result = searchAmazonItems_result()
-
 
5999
    result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)
-
 
6000
    oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)
-
 
6001
    result.write(oprot)
-
 
6002
    oprot.writeMessageEnd()
-
 
6003
    oprot.trans.flush()
-
 
6004
 
-
 
6005
  def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):
-
 
6006
    args = getAmazonSearchResultCount_args()
-
 
6007
    args.read(iprot)
-
 
6008
    iprot.readMessageEnd()
-
 
6009
    result = getAmazonSearchResultCount_result()
-
 
6010
    result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)
-
 
6011
    oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)
-
 
6012
    result.write(oprot)
-
 
6013
    oprot.writeMessageEnd()
-
 
6014
    oprot.trans.flush()
-
 
6015
 
-
 
6016
  def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):
-
 
6017
    args = getCountForAmazonlistedItems_args()
-
 
6018
    args.read(iprot)
-
 
6019
    iprot.readMessageEnd()
-
 
6020
    result = getCountForAmazonlistedItems_result()
-
 
6021
    result.success = self._handler.getCountForAmazonlistedItems()
-
 
6022
    oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)
-
 
6023
    result.write(oprot)
-
 
6024
    oprot.writeMessageEnd()
-
 
6025
    oprot.trans.flush()
-
 
6026
 
5847
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
6027
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
5848
    args = getAmazonItemDetails_args()
6028
    args = getAmazonItemDetails_args()
5849
    args.read(iprot)
6029
    args.read(iprot)
5850
    iprot.readMessageEnd()
6030
    iprot.readMessageEnd()
5851
    result = getAmazonItemDetails_result()
6031
    result = getAmazonItemDetails_result()
Line 6051... Line 6231...
6051
    oprot.writeMessageBegin("getAllSnapdealListedActiveItems", TMessageType.REPLY, seqid)
6231
    oprot.writeMessageBegin("getAllSnapdealListedActiveItems", TMessageType.REPLY, seqid)
6052
    result.write(oprot)
6232
    result.write(oprot)
6053
    oprot.writeMessageEnd()
6233
    oprot.writeMessageEnd()
6054
    oprot.trans.flush()
6234
    oprot.trans.flush()
6055
 
6235
 
-
 
6236
  def process_updateAsin(self, seqid, iprot, oprot):
-
 
6237
    args = updateAsin_args()
-
 
6238
    args.read(iprot)
-
 
6239
    iprot.readMessageEnd()
-
 
6240
    result = updateAsin_result()
-
 
6241
    self._handler.updateAsin(args.item)
-
 
6242
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
-
 
6243
    result.write(oprot)
-
 
6244
    oprot.writeMessageEnd()
-
 
6245
    oprot.trans.flush()
-
 
6246
 
6056
 
6247
 
6057
# HELPER FUNCTIONS AND STRUCTURES
6248
# HELPER FUNCTIONS AND STRUCTURES
6058
 
6249
 
6059
class addItem_args:
6250
class addItem_args:
6060
  """
6251
  """
Line 18845... Line 19036...
18845
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18846
 
19037
 
18847
  def __ne__(self, other):
19038
  def __ne__(self, other):
18848
    return not (self == other)
19039
    return not (self == other)
18849
 
19040
 
-
 
19041
class searchAmazonItems_args:
-
 
19042
  """
-
 
19043
  Attributes:
-
 
19044
   - searchTerm
-
 
19045
   - offset
-
 
19046
   - limit
-
 
19047
  """
-
 
19048
 
-
 
19049
  thrift_spec = (
-
 
19050
    None, # 0
-
 
19051
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
-
 
19052
    (2, TType.I64, 'offset', None, None, ), # 2
-
 
19053
    (3, TType.I64, 'limit', None, None, ), # 3
-
 
19054
  )
-
 
19055
 
-
 
19056
  def __init__(self, searchTerm=None, offset=None, limit=None,):
-
 
19057
    self.searchTerm = searchTerm
-
 
19058
    self.offset = offset
-
 
19059
    self.limit = limit
-
 
19060
 
-
 
19061
  def read(self, iprot):
-
 
19062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
19063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
19064
      return
-
 
19065
    iprot.readStructBegin()
-
 
19066
    while True:
-
 
19067
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
19068
      if ftype == TType.STOP:
-
 
19069
        break
-
 
19070
      if fid == 1:
-
 
19071
        if ftype == TType.LIST:
-
 
19072
          self.searchTerm = []
-
 
19073
          (_etype405, _size402) = iprot.readListBegin()
-
 
19074
          for _i406 in xrange(_size402):
-
 
19075
            _elem407 = iprot.readString();
-
 
19076
            self.searchTerm.append(_elem407)
-
 
19077
          iprot.readListEnd()
-
 
19078
        else:
-
 
19079
          iprot.skip(ftype)
-
 
19080
      elif fid == 2:
-
 
19081
        if ftype == TType.I64:
-
 
19082
          self.offset = iprot.readI64();
-
 
19083
        else:
-
 
19084
          iprot.skip(ftype)
-
 
19085
      elif fid == 3:
-
 
19086
        if ftype == TType.I64:
-
 
19087
          self.limit = iprot.readI64();
-
 
19088
        else:
-
 
19089
          iprot.skip(ftype)
-
 
19090
      else:
-
 
19091
        iprot.skip(ftype)
-
 
19092
      iprot.readFieldEnd()
-
 
19093
    iprot.readStructEnd()
-
 
19094
 
-
 
19095
  def write(self, oprot):
-
 
19096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
19097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
19098
      return
-
 
19099
    oprot.writeStructBegin('searchAmazonItems_args')
-
 
19100
    if self.searchTerm is not None:
-
 
19101
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
-
 
19102
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
-
 
19103
      for iter408 in self.searchTerm:
-
 
19104
        oprot.writeString(iter408)
-
 
19105
      oprot.writeListEnd()
-
 
19106
      oprot.writeFieldEnd()
-
 
19107
    if self.offset is not None:
-
 
19108
      oprot.writeFieldBegin('offset', TType.I64, 2)
-
 
19109
      oprot.writeI64(self.offset)
-
 
19110
      oprot.writeFieldEnd()
-
 
19111
    if self.limit is not None:
-
 
19112
      oprot.writeFieldBegin('limit', TType.I64, 3)
-
 
19113
      oprot.writeI64(self.limit)
-
 
19114
      oprot.writeFieldEnd()
-
 
19115
    oprot.writeFieldStop()
-
 
19116
    oprot.writeStructEnd()
-
 
19117
 
-
 
19118
  def validate(self):
-
 
19119
    return
-
 
19120
 
-
 
19121
 
-
 
19122
  def __repr__(self):
-
 
19123
    L = ['%s=%r' % (key, value)
-
 
19124
      for key, value in self.__dict__.iteritems()]
-
 
19125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
19126
 
-
 
19127
  def __eq__(self, other):
-
 
19128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
19129
 
-
 
19130
  def __ne__(self, other):
-
 
19131
    return not (self == other)
-
 
19132
 
-
 
19133
class searchAmazonItems_result:
-
 
19134
  """
-
 
19135
  Attributes:
-
 
19136
   - success
-
 
19137
  """
-
 
19138
 
-
 
19139
  thrift_spec = (
-
 
19140
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
-
 
19141
  )
-
 
19142
 
-
 
19143
  def __init__(self, success=None,):
-
 
19144
    self.success = success
-
 
19145
 
-
 
19146
  def read(self, iprot):
-
 
19147
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
19148
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
19149
      return
-
 
19150
    iprot.readStructBegin()
-
 
19151
    while True:
-
 
19152
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
19153
      if ftype == TType.STOP:
-
 
19154
        break
-
 
19155
      if fid == 0:
-
 
19156
        if ftype == TType.LIST:
-
 
19157
          self.success = []
-
 
19158
          (_etype412, _size409) = iprot.readListBegin()
-
 
19159
          for _i413 in xrange(_size409):
-
 
19160
            _elem414 = Amazonlisted()
-
 
19161
            _elem414.read(iprot)
-
 
19162
            self.success.append(_elem414)
-
 
19163
          iprot.readListEnd()
-
 
19164
        else:
-
 
19165
          iprot.skip(ftype)
-
 
19166
      else:
-
 
19167
        iprot.skip(ftype)
-
 
19168
      iprot.readFieldEnd()
-
 
19169
    iprot.readStructEnd()
-
 
19170
 
-
 
19171
  def write(self, oprot):
-
 
19172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
19173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
19174
      return
-
 
19175
    oprot.writeStructBegin('searchAmazonItems_result')
-
 
19176
    if self.success is not None:
-
 
19177
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
19178
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
19179
      for iter415 in self.success:
-
 
19180
        iter415.write(oprot)
-
 
19181
      oprot.writeListEnd()
-
 
19182
      oprot.writeFieldEnd()
-
 
19183
    oprot.writeFieldStop()
-
 
19184
    oprot.writeStructEnd()
-
 
19185
 
-
 
19186
  def validate(self):
-
 
19187
    return
-
 
19188
 
-
 
19189
 
-
 
19190
  def __repr__(self):
-
 
19191
    L = ['%s=%r' % (key, value)
-
 
19192
      for key, value in self.__dict__.iteritems()]
-
 
19193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
19194
 
-
 
19195
  def __eq__(self, other):
-
 
19196
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
19197
 
-
 
19198
  def __ne__(self, other):
-
 
19199
    return not (self == other)
-
 
19200
 
-
 
19201
class getAmazonSearchResultCount_args:
-
 
19202
  """
-
 
19203
  Attributes:
-
 
19204
   - searchTerm
-
 
19205
  """
-
 
19206
 
-
 
19207
  thrift_spec = (
-
 
19208
    None, # 0
-
 
19209
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
-
 
19210
  )
-
 
19211
 
-
 
19212
  def __init__(self, searchTerm=None,):
-
 
19213
    self.searchTerm = searchTerm
-
 
19214
 
-
 
19215
  def read(self, iprot):
-
 
19216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
19217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
19218
      return
-
 
19219
    iprot.readStructBegin()
-
 
19220
    while True:
-
 
19221
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
19222
      if ftype == TType.STOP:
-
 
19223
        break
-
 
19224
      if fid == 1:
-
 
19225
        if ftype == TType.LIST:
-
 
19226
          self.searchTerm = []
-
 
19227
          (_etype419, _size416) = iprot.readListBegin()
-
 
19228
          for _i420 in xrange(_size416):
-
 
19229
            _elem421 = iprot.readString();
-
 
19230
            self.searchTerm.append(_elem421)
-
 
19231
          iprot.readListEnd()
-
 
19232
        else:
-
 
19233
          iprot.skip(ftype)
-
 
19234
      else:
-
 
19235
        iprot.skip(ftype)
-
 
19236
      iprot.readFieldEnd()
-
 
19237
    iprot.readStructEnd()
-
 
19238
 
-
 
19239
  def write(self, oprot):
-
 
19240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
19241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
19242
      return
-
 
19243
    oprot.writeStructBegin('getAmazonSearchResultCount_args')
-
 
19244
    if self.searchTerm is not None:
-
 
19245
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
-
 
19246
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
-
 
19247
      for iter422 in self.searchTerm:
-
 
19248
        oprot.writeString(iter422)
-
 
19249
      oprot.writeListEnd()
-
 
19250
      oprot.writeFieldEnd()
-
 
19251
    oprot.writeFieldStop()
-
 
19252
    oprot.writeStructEnd()
-
 
19253
 
-
 
19254
  def validate(self):
-
 
19255
    return
-
 
19256
 
-
 
19257
 
-
 
19258
  def __repr__(self):
-
 
19259
    L = ['%s=%r' % (key, value)
-
 
19260
      for key, value in self.__dict__.iteritems()]
-
 
19261
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
19262
 
-
 
19263
  def __eq__(self, other):
-
 
19264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
19265
 
-
 
19266
  def __ne__(self, other):
-
 
19267
    return not (self == other)
-
 
19268
 
-
 
19269
class getAmazonSearchResultCount_result:
-
 
19270
  """
-
 
19271
  Attributes:
-
 
19272
   - success
-
 
19273
  """
-
 
19274
 
-
 
19275
  thrift_spec = (
-
 
19276
    (0, TType.I64, 'success', None, None, ), # 0
-
 
19277
  )
-
 
19278
 
-
 
19279
  def __init__(self, success=None,):
-
 
19280
    self.success = success
-
 
19281
 
-
 
19282
  def read(self, iprot):
-
 
19283
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
19284
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
19285
      return
-
 
19286
    iprot.readStructBegin()
-
 
19287
    while True:
-
 
19288
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
19289
      if ftype == TType.STOP:
-
 
19290
        break
-
 
19291
      if fid == 0:
-
 
19292
        if ftype == TType.I64:
-
 
19293
          self.success = iprot.readI64();
-
 
19294
        else:
-
 
19295
          iprot.skip(ftype)
-
 
19296
      else:
-
 
19297
        iprot.skip(ftype)
-
 
19298
      iprot.readFieldEnd()
-
 
19299
    iprot.readStructEnd()
-
 
19300
 
-
 
19301
  def write(self, oprot):
-
 
19302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
19303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
19304
      return
-
 
19305
    oprot.writeStructBegin('getAmazonSearchResultCount_result')
-
 
19306
    if self.success is not None:
-
 
19307
      oprot.writeFieldBegin('success', TType.I64, 0)
-
 
19308
      oprot.writeI64(self.success)
-
 
19309
      oprot.writeFieldEnd()
-
 
19310
    oprot.writeFieldStop()
-
 
19311
    oprot.writeStructEnd()
-
 
19312
 
-
 
19313
  def validate(self):
-
 
19314
    return
-
 
19315
 
-
 
19316
 
-
 
19317
  def __repr__(self):
-
 
19318
    L = ['%s=%r' % (key, value)
-
 
19319
      for key, value in self.__dict__.iteritems()]
-
 
19320
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
19321
 
-
 
19322
  def __eq__(self, other):
-
 
19323
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
19324
 
-
 
19325
  def __ne__(self, other):
-
 
19326
    return not (self == other)
-
 
19327
 
-
 
19328
class getCountForAmazonlistedItems_args:
-
 
19329
 
-
 
19330
  thrift_spec = (
-
 
19331
  )
-
 
19332
 
-
 
19333
  def read(self, iprot):
-
 
19334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
19335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
19336
      return
-
 
19337
    iprot.readStructBegin()
-
 
19338
    while True:
-
 
19339
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
19340
      if ftype == TType.STOP:
-
 
19341
        break
-
 
19342
      else:
-
 
19343
        iprot.skip(ftype)
-
 
19344
      iprot.readFieldEnd()
-
 
19345
    iprot.readStructEnd()
-
 
19346
 
-
 
19347
  def write(self, oprot):
-
 
19348
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
19349
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
19350
      return
-
 
19351
    oprot.writeStructBegin('getCountForAmazonlistedItems_args')
-
 
19352
    oprot.writeFieldStop()
-
 
19353
    oprot.writeStructEnd()
-
 
19354
 
-
 
19355
  def validate(self):
-
 
19356
    return
-
 
19357
 
-
 
19358
 
-
 
19359
  def __repr__(self):
-
 
19360
    L = ['%s=%r' % (key, value)
-
 
19361
      for key, value in self.__dict__.iteritems()]
-
 
19362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
19363
 
-
 
19364
  def __eq__(self, other):
-
 
19365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
19366
 
-
 
19367
  def __ne__(self, other):
-
 
19368
    return not (self == other)
-
 
19369
 
-
 
19370
class getCountForAmazonlistedItems_result:
-
 
19371
  """
-
 
19372
  Attributes:
-
 
19373
   - success
-
 
19374
  """
-
 
19375
 
-
 
19376
  thrift_spec = (
-
 
19377
    (0, TType.I64, 'success', None, None, ), # 0
-
 
19378
  )
-
 
19379
 
-
 
19380
  def __init__(self, success=None,):
-
 
19381
    self.success = success
-
 
19382
 
-
 
19383
  def read(self, iprot):
-
 
19384
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
19385
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
19386
      return
-
 
19387
    iprot.readStructBegin()
-
 
19388
    while True:
-
 
19389
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
19390
      if ftype == TType.STOP:
-
 
19391
        break
-
 
19392
      if fid == 0:
-
 
19393
        if ftype == TType.I64:
-
 
19394
          self.success = iprot.readI64();
-
 
19395
        else:
-
 
19396
          iprot.skip(ftype)
-
 
19397
      else:
-
 
19398
        iprot.skip(ftype)
-
 
19399
      iprot.readFieldEnd()
-
 
19400
    iprot.readStructEnd()
-
 
19401
 
-
 
19402
  def write(self, oprot):
-
 
19403
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
19404
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
19405
      return
-
 
19406
    oprot.writeStructBegin('getCountForAmazonlistedItems_result')
-
 
19407
    if self.success is not None:
-
 
19408
      oprot.writeFieldBegin('success', TType.I64, 0)
-
 
19409
      oprot.writeI64(self.success)
-
 
19410
      oprot.writeFieldEnd()
-
 
19411
    oprot.writeFieldStop()
-
 
19412
    oprot.writeStructEnd()
-
 
19413
 
-
 
19414
  def validate(self):
-
 
19415
    return
-
 
19416
 
-
 
19417
 
-
 
19418
  def __repr__(self):
-
 
19419
    L = ['%s=%r' % (key, value)
-
 
19420
      for key, value in self.__dict__.iteritems()]
-
 
19421
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
19422
 
-
 
19423
  def __eq__(self, other):
-
 
19424
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
19425
 
-
 
19426
  def __ne__(self, other):
-
 
19427
    return not (self == other)
-
 
19428
 
18850
class getAmazonItemDetails_args:
19429
class getAmazonItemDetails_args:
18851
  """
19430
  """
18852
  Attributes:
19431
  Attributes:
18853
   - itemId
19432
   - itemId
18854
  """
19433
  """
Line 19238... Line 19817...
19238
      if ftype == TType.STOP:
19817
      if ftype == TType.STOP:
19239
        break
19818
        break
19240
      if fid == 0:
19819
      if fid == 0:
19241
        if ftype == TType.LIST:
19820
        if ftype == TType.LIST:
19242
          self.success = []
19821
          self.success = []
19243
          (_etype405, _size402) = iprot.readListBegin()
19822
          (_etype426, _size423) = iprot.readListBegin()
19244
          for _i406 in xrange(_size402):
19823
          for _i427 in xrange(_size423):
19245
            _elem407 = Item()
19824
            _elem428 = Item()
19246
            _elem407.read(iprot)
19825
            _elem428.read(iprot)
19247
            self.success.append(_elem407)
19826
            self.success.append(_elem428)
19248
          iprot.readListEnd()
19827
          iprot.readListEnd()
19249
        else:
19828
        else:
19250
          iprot.skip(ftype)
19829
          iprot.skip(ftype)
19251
      else:
19830
      else:
19252
        iprot.skip(ftype)
19831
        iprot.skip(ftype)
Line 19259... Line 19838...
19259
      return
19838
      return
19260
    oprot.writeStructBegin('getAsinItems_result')
19839
    oprot.writeStructBegin('getAsinItems_result')
19261
    if self.success is not None:
19840
    if self.success is not None:
19262
      oprot.writeFieldBegin('success', TType.LIST, 0)
19841
      oprot.writeFieldBegin('success', TType.LIST, 0)
19263
      oprot.writeListBegin(TType.STRUCT, len(self.success))
19842
      oprot.writeListBegin(TType.STRUCT, len(self.success))
19264
      for iter408 in self.success:
19843
      for iter429 in self.success:
19265
        iter408.write(oprot)
19844
        iter429.write(oprot)
19266
      oprot.writeListEnd()
19845
      oprot.writeListEnd()
19267
      oprot.writeFieldEnd()
19846
      oprot.writeFieldEnd()
19268
    oprot.writeFieldStop()
19847
    oprot.writeFieldStop()
19269
    oprot.writeStructEnd()
19848
    oprot.writeStructEnd()
19270
 
19849
 
Line 19348... Line 19927...
19348
      if ftype == TType.STOP:
19927
      if ftype == TType.STOP:
19349
        break
19928
        break
19350
      if fid == 0:
19929
      if fid == 0:
19351
        if ftype == TType.LIST:
19930
        if ftype == TType.LIST:
19352
          self.success = []
19931
          self.success = []
19353
          (_etype412, _size409) = iprot.readListBegin()
19932
          (_etype433, _size430) = iprot.readListBegin()
19354
          for _i413 in xrange(_size409):
19933
          for _i434 in xrange(_size430):
19355
            _elem414 = Amazonlisted()
19934
            _elem435 = Amazonlisted()
19356
            _elem414.read(iprot)
19935
            _elem435.read(iprot)
19357
            self.success.append(_elem414)
19936
            self.success.append(_elem435)
19358
          iprot.readListEnd()
19937
          iprot.readListEnd()
19359
        else:
19938
        else:
19360
          iprot.skip(ftype)
19939
          iprot.skip(ftype)
19361
      else:
19940
      else:
19362
        iprot.skip(ftype)
19941
        iprot.skip(ftype)
Line 19369... Line 19948...
19369
      return
19948
      return
19370
    oprot.writeStructBegin('getAllFbaListedItems_result')
19949
    oprot.writeStructBegin('getAllFbaListedItems_result')
19371
    if self.success is not None:
19950
    if self.success is not None:
19372
      oprot.writeFieldBegin('success', TType.LIST, 0)
19951
      oprot.writeFieldBegin('success', TType.LIST, 0)
19373
      oprot.writeListBegin(TType.STRUCT, len(self.success))
19952
      oprot.writeListBegin(TType.STRUCT, len(self.success))
19374
      for iter415 in self.success:
19953
      for iter436 in self.success:
19375
        iter415.write(oprot)
19954
        iter436.write(oprot)
19376
      oprot.writeListEnd()
19955
      oprot.writeListEnd()
19377
      oprot.writeFieldEnd()
19956
      oprot.writeFieldEnd()
19378
    oprot.writeFieldStop()
19957
    oprot.writeFieldStop()
19379
    oprot.writeStructEnd()
19958
    oprot.writeStructEnd()
19380
 
19959
 
Line 19458... Line 20037...
19458
      if ftype == TType.STOP:
20037
      if ftype == TType.STOP:
19459
        break
20038
        break
19460
      if fid == 0:
20039
      if fid == 0:
19461
        if ftype == TType.LIST:
20040
        if ftype == TType.LIST:
19462
          self.success = []
20041
          self.success = []
19463
          (_etype419, _size416) = iprot.readListBegin()
20042
          (_etype440, _size437) = iprot.readListBegin()
19464
          for _i420 in xrange(_size416):
20043
          for _i441 in xrange(_size437):
19465
            _elem421 = Amazonlisted()
20044
            _elem442 = Amazonlisted()
19466
            _elem421.read(iprot)
20045
            _elem442.read(iprot)
19467
            self.success.append(_elem421)
20046
            self.success.append(_elem442)
19468
          iprot.readListEnd()
20047
          iprot.readListEnd()
19469
        else:
20048
        else:
19470
          iprot.skip(ftype)
20049
          iprot.skip(ftype)
19471
      else:
20050
      else:
19472
        iprot.skip(ftype)
20051
        iprot.skip(ftype)
Line 19479... Line 20058...
19479
      return
20058
      return
19480
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
20059
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
19481
    if self.success is not None:
20060
    if self.success is not None:
19482
      oprot.writeFieldBegin('success', TType.LIST, 0)
20061
      oprot.writeFieldBegin('success', TType.LIST, 0)
19483
      oprot.writeListBegin(TType.STRUCT, len(self.success))
20062
      oprot.writeListBegin(TType.STRUCT, len(self.success))
19484
      for iter422 in self.success:
20063
      for iter443 in self.success:
19485
        iter422.write(oprot)
20064
        iter443.write(oprot)
19486
      oprot.writeListEnd()
20065
      oprot.writeListEnd()
19487
      oprot.writeFieldEnd()
20066
      oprot.writeFieldEnd()
19488
    oprot.writeFieldStop()
20067
    oprot.writeFieldStop()
19489
    oprot.writeStructEnd()
20068
    oprot.writeStructEnd()
19490
 
20069
 
Line 19681... Line 20260...
19681
        else:
20260
        else:
19682
          iprot.skip(ftype)
20261
          iprot.skip(ftype)
19683
      elif fid == 2:
20262
      elif fid == 2:
19684
        if ftype == TType.LIST:
20263
        if ftype == TType.LIST:
19685
          self.sku = []
20264
          self.sku = []
19686
          (_etype426, _size423) = iprot.readListBegin()
20265
          (_etype447, _size444) = iprot.readListBegin()
19687
          for _i427 in xrange(_size423):
20266
          for _i448 in xrange(_size444):
19688
            _elem428 = iprot.readI64();
20267
            _elem449 = iprot.readI64();
19689
            self.sku.append(_elem428)
20268
            self.sku.append(_elem449)
19690
          iprot.readListEnd()
20269
          iprot.readListEnd()
19691
        else:
20270
        else:
19692
          iprot.skip(ftype)
20271
          iprot.skip(ftype)
19693
      elif fid == 3:
20272
      elif fid == 3:
19694
        if ftype == TType.I64:
20273
        if ftype == TType.I64:
Line 19710... Line 20289...
19710
      oprot.writeString(self.type)
20289
      oprot.writeString(self.type)
19711
      oprot.writeFieldEnd()
20290
      oprot.writeFieldEnd()
19712
    if self.sku is not None:
20291
    if self.sku is not None:
19713
      oprot.writeFieldBegin('sku', TType.LIST, 2)
20292
      oprot.writeFieldBegin('sku', TType.LIST, 2)
19714
      oprot.writeListBegin(TType.I64, len(self.sku))
20293
      oprot.writeListBegin(TType.I64, len(self.sku))
19715
      for iter429 in self.sku:
20294
      for iter450 in self.sku:
19716
        oprot.writeI64(iter429)
20295
        oprot.writeI64(iter450)
19717
      oprot.writeListEnd()
20296
      oprot.writeListEnd()
19718
      oprot.writeFieldEnd()
20297
      oprot.writeFieldEnd()
19719
    if self.timestamp is not None:
20298
    if self.timestamp is not None:
19720
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
20299
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
19721
      oprot.writeI64(self.timestamp)
20300
      oprot.writeI64(self.timestamp)
Line 19862... Line 20441...
19862
      if ftype == TType.STOP:
20441
      if ftype == TType.STOP:
19863
        break
20442
        break
19864
      if fid == 0:
20443
      if fid == 0:
19865
        if ftype == TType.LIST:
20444
        if ftype == TType.LIST:
19866
          self.success = []
20445
          self.success = []
19867
          (_etype433, _size430) = iprot.readListBegin()
20446
          (_etype454, _size451) = iprot.readListBegin()
19868
          for _i434 in xrange(_size430):
20447
          for _i455 in xrange(_size451):
19869
            _elem435 = Category()
20448
            _elem456 = Category()
19870
            _elem435.read(iprot)
20449
            _elem456.read(iprot)
19871
            self.success.append(_elem435)
20450
            self.success.append(_elem456)
19872
          iprot.readListEnd()
20451
          iprot.readListEnd()
19873
        else:
20452
        else:
19874
          iprot.skip(ftype)
20453
          iprot.skip(ftype)
19875
      else:
20454
      else:
19876
        iprot.skip(ftype)
20455
        iprot.skip(ftype)
Line 19883... Line 20462...
19883
      return
20462
      return
19884
    oprot.writeStructBegin('getAllParentCategories_result')
20463
    oprot.writeStructBegin('getAllParentCategories_result')
19885
    if self.success is not None:
20464
    if self.success is not None:
19886
      oprot.writeFieldBegin('success', TType.LIST, 0)
20465
      oprot.writeFieldBegin('success', TType.LIST, 0)
19887
      oprot.writeListBegin(TType.STRUCT, len(self.success))
20466
      oprot.writeListBegin(TType.STRUCT, len(self.success))
19888
      for iter436 in self.success:
20467
      for iter457 in self.success:
19889
        iter436.write(oprot)
20468
        iter457.write(oprot)
19890
      oprot.writeListEnd()
20469
      oprot.writeListEnd()
19891
      oprot.writeFieldEnd()
20470
      oprot.writeFieldEnd()
19892
    oprot.writeFieldStop()
20471
    oprot.writeFieldStop()
19893
    oprot.writeStructEnd()
20472
    oprot.writeStructEnd()
19894
 
20473
 
Line 20534... Line 21113...
20534
      if ftype == TType.STOP:
21113
      if ftype == TType.STOP:
20535
        break
21114
        break
20536
      if fid == 0:
21115
      if fid == 0:
20537
        if ftype == TType.LIST:
21116
        if ftype == TType.LIST:
20538
          self.success = []
21117
          self.success = []
20539
          (_etype440, _size437) = iprot.readListBegin()
21118
          (_etype461, _size458) = iprot.readListBegin()
20540
          for _i441 in xrange(_size437):
21119
          for _i462 in xrange(_size458):
20541
            _elem442 = Amazonlisted()
21120
            _elem463 = Amazonlisted()
20542
            _elem442.read(iprot)
21121
            _elem463.read(iprot)
20543
            self.success.append(_elem442)
21122
            self.success.append(_elem463)
20544
          iprot.readListEnd()
21123
          iprot.readListEnd()
20545
        else:
21124
        else:
20546
          iprot.skip(ftype)
21125
          iprot.skip(ftype)
20547
      else:
21126
      else:
20548
        iprot.skip(ftype)
21127
        iprot.skip(ftype)
Line 20555... Line 21134...
20555
      return
21134
      return
20556
    oprot.writeStructBegin('getAmazonListedItems_result')
21135
    oprot.writeStructBegin('getAmazonListedItems_result')
20557
    if self.success is not None:
21136
    if self.success is not None:
20558
      oprot.writeFieldBegin('success', TType.LIST, 0)
21137
      oprot.writeFieldBegin('success', TType.LIST, 0)
20559
      oprot.writeListBegin(TType.STRUCT, len(self.success))
21138
      oprot.writeListBegin(TType.STRUCT, len(self.success))
20560
      for iter443 in self.success:
21139
      for iter464 in self.success:
20561
        iter443.write(oprot)
21140
        iter464.write(oprot)
20562
      oprot.writeListEnd()
21141
      oprot.writeListEnd()
20563
      oprot.writeFieldEnd()
21142
      oprot.writeFieldEnd()
20564
    oprot.writeFieldStop()
21143
    oprot.writeFieldStop()
20565
    oprot.writeStructEnd()
21144
    oprot.writeStructEnd()
20566
 
21145
 
Line 20603... Line 21182...
20603
      if ftype == TType.STOP:
21182
      if ftype == TType.STOP:
20604
        break
21183
        break
20605
      if fid == 1:
21184
      if fid == 1:
20606
        if ftype == TType.MAP:
21185
        if ftype == TType.MAP:
20607
          self.amazonlisted = {}
21186
          self.amazonlisted = {}
20608
          (_ktype445, _vtype446, _size444 ) = iprot.readMapBegin() 
21187
          (_ktype466, _vtype467, _size465 ) = iprot.readMapBegin() 
20609
          for _i448 in xrange(_size444):
21188
          for _i469 in xrange(_size465):
20610
            _key449 = iprot.readI64();
21189
            _key470 = iprot.readI64();
20611
            _val450 = Amazonlisted()
21190
            _val471 = Amazonlisted()
20612
            _val450.read(iprot)
21191
            _val471.read(iprot)
20613
            self.amazonlisted[_key449] = _val450
21192
            self.amazonlisted[_key470] = _val471
20614
          iprot.readMapEnd()
21193
          iprot.readMapEnd()
20615
        else:
21194
        else:
20616
          iprot.skip(ftype)
21195
          iprot.skip(ftype)
20617
      else:
21196
      else:
20618
        iprot.skip(ftype)
21197
        iprot.skip(ftype)
Line 20625... Line 21204...
20625
      return
21204
      return
20626
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
21205
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
20627
    if self.amazonlisted is not None:
21206
    if self.amazonlisted is not None:
20628
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
21207
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
20629
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
21208
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
20630
      for kiter451,viter452 in self.amazonlisted.items():
21209
      for kiter472,viter473 in self.amazonlisted.items():
20631
        oprot.writeI64(kiter451)
21210
        oprot.writeI64(kiter472)
20632
        viter452.write(oprot)
21211
        viter473.write(oprot)
20633
      oprot.writeMapEnd()
21212
      oprot.writeMapEnd()
20634
      oprot.writeFieldEnd()
21213
      oprot.writeFieldEnd()
20635
    oprot.writeFieldStop()
21214
    oprot.writeFieldStop()
20636
    oprot.writeStructEnd()
21215
    oprot.writeStructEnd()
20637
 
21216
 
Line 20774... Line 21353...
20774
      if ftype == TType.STOP:
21353
      if ftype == TType.STOP:
20775
        break
21354
        break
20776
      if fid == 0:
21355
      if fid == 0:
20777
        if ftype == TType.LIST:
21356
        if ftype == TType.LIST:
20778
          self.success = []
21357
          self.success = []
20779
          (_etype456, _size453) = iprot.readListBegin()
21358
          (_etype477, _size474) = iprot.readListBegin()
20780
          for _i457 in xrange(_size453):
21359
          for _i478 in xrange(_size474):
20781
            _elem458 = Amazonlisted()
21360
            _elem479 = Amazonlisted()
20782
            _elem458.read(iprot)
21361
            _elem479.read(iprot)
20783
            self.success.append(_elem458)
21362
            self.success.append(_elem479)
20784
          iprot.readListEnd()
21363
          iprot.readListEnd()
20785
        else:
21364
        else:
20786
          iprot.skip(ftype)
21365
          iprot.skip(ftype)
20787
      else:
21366
      else:
20788
        iprot.skip(ftype)
21367
        iprot.skip(ftype)
Line 20795... Line 21374...
20795
      return
21374
      return
20796
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
21375
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
20797
    if self.success is not None:
21376
    if self.success is not None:
20798
      oprot.writeFieldBegin('success', TType.LIST, 0)
21377
      oprot.writeFieldBegin('success', TType.LIST, 0)
20799
      oprot.writeListBegin(TType.STRUCT, len(self.success))
21378
      oprot.writeListBegin(TType.STRUCT, len(self.success))
20800
      for iter459 in self.success:
21379
      for iter480 in self.success:
20801
        iter459.write(oprot)
21380
        iter480.write(oprot)
20802
      oprot.writeListEnd()
21381
      oprot.writeListEnd()
20803
      oprot.writeFieldEnd()
21382
      oprot.writeFieldEnd()
20804
    oprot.writeFieldStop()
21383
    oprot.writeFieldStop()
20805
    oprot.writeStructEnd()
21384
    oprot.writeStructEnd()
20806
 
21385
 
Line 20884... Line 21463...
20884
      if ftype == TType.STOP:
21463
      if ftype == TType.STOP:
20885
        break
21464
        break
20886
      if fid == 0:
21465
      if fid == 0:
20887
        if ftype == TType.LIST:
21466
        if ftype == TType.LIST:
20888
          self.success = []
21467
          self.success = []
20889
          (_etype463, _size460) = iprot.readListBegin()
21468
          (_etype484, _size481) = iprot.readListBegin()
20890
          for _i464 in xrange(_size460):
21469
          for _i485 in xrange(_size481):
20891
            _elem465 = Amazonlisted()
21470
            _elem486 = Amazonlisted()
20892
            _elem465.read(iprot)
21471
            _elem486.read(iprot)
20893
            self.success.append(_elem465)
21472
            self.success.append(_elem486)
20894
          iprot.readListEnd()
21473
          iprot.readListEnd()
20895
        else:
21474
        else:
20896
          iprot.skip(ftype)
21475
          iprot.skip(ftype)
20897
      else:
21476
      else:
20898
        iprot.skip(ftype)
21477
        iprot.skip(ftype)
Line 20905... Line 21484...
20905
      return
21484
      return
20906
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
21485
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
20907
    if self.success is not None:
21486
    if self.success is not None:
20908
      oprot.writeFieldBegin('success', TType.LIST, 0)
21487
      oprot.writeFieldBegin('success', TType.LIST, 0)
20909
      oprot.writeListBegin(TType.STRUCT, len(self.success))
21488
      oprot.writeListBegin(TType.STRUCT, len(self.success))
20910
      for iter466 in self.success:
21489
      for iter487 in self.success:
20911
        iter466.write(oprot)
21490
        iter487.write(oprot)
20912
      oprot.writeListEnd()
21491
      oprot.writeListEnd()
20913
      oprot.writeFieldEnd()
21492
      oprot.writeFieldEnd()
20914
    oprot.writeFieldStop()
21493
    oprot.writeFieldStop()
20915
    oprot.writeStructEnd()
21494
    oprot.writeStructEnd()
20916
 
21495
 
Line 20994... Line 21573...
20994
      if ftype == TType.STOP:
21573
      if ftype == TType.STOP:
20995
        break
21574
        break
20996
      if fid == 0:
21575
      if fid == 0:
20997
        if ftype == TType.LIST:
21576
        if ftype == TType.LIST:
20998
          self.success = []
21577
          self.success = []
20999
          (_etype470, _size467) = iprot.readListBegin()
21578
          (_etype491, _size488) = iprot.readListBegin()
21000
          for _i471 in xrange(_size467):
21579
          for _i492 in xrange(_size488):
21001
            _elem472 = Item()
21580
            _elem493 = Item()
21002
            _elem472.read(iprot)
21581
            _elem493.read(iprot)
21003
            self.success.append(_elem472)
21582
            self.success.append(_elem493)
21004
          iprot.readListEnd()
21583
          iprot.readListEnd()
21005
        else:
21584
        else:
21006
          iprot.skip(ftype)
21585
          iprot.skip(ftype)
21007
      else:
21586
      else:
21008
        iprot.skip(ftype)
21587
        iprot.skip(ftype)
Line 21015... Line 21594...
21015
      return
21594
      return
21016
    oprot.writeStructBegin('getAllSnapdealListedActiveItems_result')
21595
    oprot.writeStructBegin('getAllSnapdealListedActiveItems_result')
21017
    if self.success is not None:
21596
    if self.success is not None:
21018
      oprot.writeFieldBegin('success', TType.LIST, 0)
21597
      oprot.writeFieldBegin('success', TType.LIST, 0)
21019
      oprot.writeListBegin(TType.STRUCT, len(self.success))
21598
      oprot.writeListBegin(TType.STRUCT, len(self.success))
21020
      for iter473 in self.success:
21599
      for iter494 in self.success:
21021
        iter473.write(oprot)
21600
        iter494.write(oprot)
21022
      oprot.writeListEnd()
21601
      oprot.writeListEnd()
21023
      oprot.writeFieldEnd()
21602
      oprot.writeFieldEnd()
21024
    oprot.writeFieldStop()
21603
    oprot.writeFieldStop()
21025
    oprot.writeStructEnd()
21604
    oprot.writeStructEnd()
21026
 
21605
 
21027
  def validate(self):
21606
  def validate(self):
21028
    return
21607
    return
-
 
21608
 
-
 
21609
 
-
 
21610
  def __repr__(self):
-
 
21611
    L = ['%s=%r' % (key, value)
-
 
21612
      for key, value in self.__dict__.iteritems()]
-
 
21613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
21614
 
-
 
21615
  def __eq__(self, other):
-
 
21616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
21617
 
-
 
21618
  def __ne__(self, other):
-
 
21619
    return not (self == other)
-
 
21620
 
-
 
21621
class updateAsin_args:
-
 
21622
  """
-
 
21623
  Attributes:
-
 
21624
   - item
-
 
21625
  """
-
 
21626
 
-
 
21627
  thrift_spec = (
-
 
21628
    None, # 0
-
 
21629
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
-
 
21630
  )
-
 
21631
 
-
 
21632
  def __init__(self, item=None,):
-
 
21633
    self.item = item
-
 
21634
 
-
 
21635
  def read(self, iprot):
-
 
21636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
21637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
21638
      return
-
 
21639
    iprot.readStructBegin()
-
 
21640
    while True:
-
 
21641
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
21642
      if ftype == TType.STOP:
-
 
21643
        break
-
 
21644
      if fid == 1:
-
 
21645
        if ftype == TType.MAP:
-
 
21646
          self.item = {}
-
 
21647
          (_ktype496, _vtype497, _size495 ) = iprot.readMapBegin() 
-
 
21648
          for _i499 in xrange(_size495):
-
 
21649
            _key500 = iprot.readI64();
-
 
21650
            _val501 = Item()
-
 
21651
            _val501.read(iprot)
-
 
21652
            self.item[_key500] = _val501
-
 
21653
          iprot.readMapEnd()
-
 
21654
        else:
-
 
21655
          iprot.skip(ftype)
-
 
21656
      else:
-
 
21657
        iprot.skip(ftype)
-
 
21658
      iprot.readFieldEnd()
-
 
21659
    iprot.readStructEnd()
-
 
21660
 
-
 
21661
  def write(self, oprot):
-
 
21662
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
21663
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
21664
      return
-
 
21665
    oprot.writeStructBegin('updateAsin_args')
-
 
21666
    if self.item is not None:
-
 
21667
      oprot.writeFieldBegin('item', TType.MAP, 1)
-
 
21668
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
-
 
21669
      for kiter502,viter503 in self.item.items():
-
 
21670
        oprot.writeI64(kiter502)
-
 
21671
        viter503.write(oprot)
-
 
21672
      oprot.writeMapEnd()
-
 
21673
      oprot.writeFieldEnd()
-
 
21674
    oprot.writeFieldStop()
-
 
21675
    oprot.writeStructEnd()
-
 
21676
 
-
 
21677
  def validate(self):
-
 
21678
    return
-
 
21679
 
-
 
21680
 
-
 
21681
  def __repr__(self):
-
 
21682
    L = ['%s=%r' % (key, value)
-
 
21683
      for key, value in self.__dict__.iteritems()]
-
 
21684
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
21685
 
-
 
21686
  def __eq__(self, other):
-
 
21687
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
21688
 
-
 
21689
  def __ne__(self, other):
-
 
21690
    return not (self == other)
-
 
21691
 
-
 
21692
class updateAsin_result:
-
 
21693
 
-
 
21694
  thrift_spec = (
-
 
21695
  )
-
 
21696
 
-
 
21697
  def read(self, iprot):
-
 
21698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
21699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
21700
      return
-
 
21701
    iprot.readStructBegin()
-
 
21702
    while True:
-
 
21703
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
21704
      if ftype == TType.STOP:
-
 
21705
        break
-
 
21706
      else:
-
 
21707
        iprot.skip(ftype)
-
 
21708
      iprot.readFieldEnd()
-
 
21709
    iprot.readStructEnd()
-
 
21710
 
-
 
21711
  def write(self, oprot):
-
 
21712
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
21713
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
21714
      return
-
 
21715
    oprot.writeStructBegin('updateAsin_result')
-
 
21716
    oprot.writeFieldStop()
-
 
21717
    oprot.writeStructEnd()
-
 
21718
 
-
 
21719
  def validate(self):
-
 
21720
    return
21029
 
21721
 
21030
 
21722
 
21031
  def __repr__(self):
21723
  def __repr__(self):
21032
    L = ['%s=%r' % (key, value)
21724
    L = ['%s=%r' % (key, value)
21033
      for key, value in self.__dict__.iteritems()]
21725
      for key, value in self.__dict__.iteritems()]