Subversion Repositories SmartDukaan

Rev

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

Rev 7281 Rev 7291
Line 717... Line 717...
717
    Parameters:
717
    Parameters:
718
     - amazonlisted
718
     - amazonlisted
719
    """
719
    """
720
    pass
720
    pass
721
 
721
 
-
 
722
  def getAsinItems(self, ):
-
 
723
    pass
-
 
724
 
-
 
725
  def getAllFbaListedItems(self, ):
-
 
726
    pass
-
 
727
 
-
 
728
  def getAllNonFbaListedItems(self, ):
-
 
729
    pass
-
 
730
 
722
 
731
 
723
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
732
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
724
  def __init__(self, iprot, oprot=None):
733
  def __init__(self, iprot, oprot=None):
725
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
734
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
726
 
735
 
Line 3631... Line 3640...
3631
    result = addAmazonItem_result()
3640
    result = addAmazonItem_result()
3632
    result.read(self._iprot)
3641
    result.read(self._iprot)
3633
    self._iprot.readMessageEnd()
3642
    self._iprot.readMessageEnd()
3634
    return
3643
    return
3635
 
3644
 
-
 
3645
  def getAsinItems(self, ):
-
 
3646
    self.send_getAsinItems()
-
 
3647
    return self.recv_getAsinItems()
-
 
3648
 
-
 
3649
  def send_getAsinItems(self, ):
-
 
3650
    self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)
-
 
3651
    args = getAsinItems_args()
-
 
3652
    args.write(self._oprot)
-
 
3653
    self._oprot.writeMessageEnd()
-
 
3654
    self._oprot.trans.flush()
-
 
3655
 
-
 
3656
  def recv_getAsinItems(self, ):
-
 
3657
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3658
    if mtype == TMessageType.EXCEPTION:
-
 
3659
      x = TApplicationException()
-
 
3660
      x.read(self._iprot)
-
 
3661
      self._iprot.readMessageEnd()
-
 
3662
      raise x
-
 
3663
    result = getAsinItems_result()
-
 
3664
    result.read(self._iprot)
-
 
3665
    self._iprot.readMessageEnd()
-
 
3666
    if result.success is not None:
-
 
3667
      return result.success
-
 
3668
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");
-
 
3669
 
-
 
3670
  def getAllFbaListedItems(self, ):
-
 
3671
    self.send_getAllFbaListedItems()
-
 
3672
    return self.recv_getAllFbaListedItems()
-
 
3673
 
-
 
3674
  def send_getAllFbaListedItems(self, ):
-
 
3675
    self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)
-
 
3676
    args = getAllFbaListedItems_args()
-
 
3677
    args.write(self._oprot)
-
 
3678
    self._oprot.writeMessageEnd()
-
 
3679
    self._oprot.trans.flush()
-
 
3680
 
-
 
3681
  def recv_getAllFbaListedItems(self, ):
-
 
3682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3683
    if mtype == TMessageType.EXCEPTION:
-
 
3684
      x = TApplicationException()
-
 
3685
      x.read(self._iprot)
-
 
3686
      self._iprot.readMessageEnd()
-
 
3687
      raise x
-
 
3688
    result = getAllFbaListedItems_result()
-
 
3689
    result.read(self._iprot)
-
 
3690
    self._iprot.readMessageEnd()
-
 
3691
    if result.success is not None:
-
 
3692
      return result.success
-
 
3693
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");
-
 
3694
 
-
 
3695
  def getAllNonFbaListedItems(self, ):
-
 
3696
    self.send_getAllNonFbaListedItems()
-
 
3697
    return self.recv_getAllNonFbaListedItems()
-
 
3698
 
-
 
3699
  def send_getAllNonFbaListedItems(self, ):
-
 
3700
    self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)
-
 
3701
    args = getAllNonFbaListedItems_args()
-
 
3702
    args.write(self._oprot)
-
 
3703
    self._oprot.writeMessageEnd()
-
 
3704
    self._oprot.trans.flush()
-
 
3705
 
-
 
3706
  def recv_getAllNonFbaListedItems(self, ):
-
 
3707
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3708
    if mtype == TMessageType.EXCEPTION:
-
 
3709
      x = TApplicationException()
-
 
3710
      x.read(self._iprot)
-
 
3711
      self._iprot.readMessageEnd()
-
 
3712
      raise x
-
 
3713
    result = getAllNonFbaListedItems_result()
-
 
3714
    result.read(self._iprot)
-
 
3715
    self._iprot.readMessageEnd()
-
 
3716
    if result.success is not None:
-
 
3717
      return result.success
-
 
3718
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");
-
 
3719
 
3636
 
3720
 
3637
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3721
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3638
  def __init__(self, handler):
3722
  def __init__(self, handler):
3639
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3723
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3640
    self._processMap["addItem"] = Processor.process_addItem
3724
    self._processMap["addItem"] = Processor.process_addItem
Line 3727... Line 3811...
3727
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
3811
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
3728
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
3812
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
3729
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
3813
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
3730
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
3814
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
3731
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
3815
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
-
 
3816
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
-
 
3817
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
-
 
3818
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
3732
 
3819
 
3733
  def process(self, iprot, oprot):
3820
  def process(self, iprot, oprot):
3734
    (name, type, seqid) = iprot.readMessageBegin()
3821
    (name, type, seqid) = iprot.readMessageBegin()
3735
    if name not in self._processMap:
3822
    if name not in self._processMap:
3736
      iprot.skip(TType.STRUCT)
3823
      iprot.skip(TType.STRUCT)
Line 4863... Line 4950...
4863
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
4950
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
4864
    result.write(oprot)
4951
    result.write(oprot)
4865
    oprot.writeMessageEnd()
4952
    oprot.writeMessageEnd()
4866
    oprot.trans.flush()
4953
    oprot.trans.flush()
4867
 
4954
 
-
 
4955
  def process_getAsinItems(self, seqid, iprot, oprot):
-
 
4956
    args = getAsinItems_args()
-
 
4957
    args.read(iprot)
-
 
4958
    iprot.readMessageEnd()
-
 
4959
    result = getAsinItems_result()
-
 
4960
    result.success = self._handler.getAsinItems()
-
 
4961
    oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)
-
 
4962
    result.write(oprot)
-
 
4963
    oprot.writeMessageEnd()
-
 
4964
    oprot.trans.flush()
-
 
4965
 
-
 
4966
  def process_getAllFbaListedItems(self, seqid, iprot, oprot):
-
 
4967
    args = getAllFbaListedItems_args()
-
 
4968
    args.read(iprot)
-
 
4969
    iprot.readMessageEnd()
-
 
4970
    result = getAllFbaListedItems_result()
-
 
4971
    result.success = self._handler.getAllFbaListedItems()
-
 
4972
    oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)
-
 
4973
    result.write(oprot)
-
 
4974
    oprot.writeMessageEnd()
-
 
4975
    oprot.trans.flush()
-
 
4976
 
-
 
4977
  def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):
-
 
4978
    args = getAllNonFbaListedItems_args()
-
 
4979
    args.read(iprot)
-
 
4980
    iprot.readMessageEnd()
-
 
4981
    result = getAllNonFbaListedItems_result()
-
 
4982
    result.success = self._handler.getAllNonFbaListedItems()
-
 
4983
    oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)
-
 
4984
    result.write(oprot)
-
 
4985
    oprot.writeMessageEnd()
-
 
4986
    oprot.trans.flush()
-
 
4987
 
4868
 
4988
 
4869
# HELPER FUNCTIONS AND STRUCTURES
4989
# HELPER FUNCTIONS AND STRUCTURES
4870
 
4990
 
4871
class addItem_args:
4991
class addItem_args:
4872
  """
4992
  """
Line 16853... Line 16973...
16853
    oprot.writeFieldStop()
16973
    oprot.writeFieldStop()
16854
    oprot.writeStructEnd()
16974
    oprot.writeStructEnd()
16855
 
16975
 
16856
  def validate(self):
16976
  def validate(self):
16857
    return
16977
    return
-
 
16978
 
-
 
16979
 
-
 
16980
  def __repr__(self):
-
 
16981
    L = ['%s=%r' % (key, value)
-
 
16982
      for key, value in self.__dict__.iteritems()]
-
 
16983
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
16984
 
-
 
16985
  def __eq__(self, other):
-
 
16986
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
16987
 
-
 
16988
  def __ne__(self, other):
-
 
16989
    return not (self == other)
-
 
16990
 
-
 
16991
class getAsinItems_args:
-
 
16992
 
-
 
16993
  thrift_spec = (
-
 
16994
  )
-
 
16995
 
-
 
16996
  def read(self, iprot):
-
 
16997
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
16998
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
16999
      return
-
 
17000
    iprot.readStructBegin()
-
 
17001
    while True:
-
 
17002
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
17003
      if ftype == TType.STOP:
-
 
17004
        break
-
 
17005
      else:
-
 
17006
        iprot.skip(ftype)
-
 
17007
      iprot.readFieldEnd()
-
 
17008
    iprot.readStructEnd()
-
 
17009
 
-
 
17010
  def write(self, oprot):
-
 
17011
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
17012
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
17013
      return
-
 
17014
    oprot.writeStructBegin('getAsinItems_args')
-
 
17015
    oprot.writeFieldStop()
-
 
17016
    oprot.writeStructEnd()
-
 
17017
 
-
 
17018
  def validate(self):
-
 
17019
    return
-
 
17020
 
-
 
17021
 
-
 
17022
  def __repr__(self):
-
 
17023
    L = ['%s=%r' % (key, value)
-
 
17024
      for key, value in self.__dict__.iteritems()]
-
 
17025
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
17026
 
-
 
17027
  def __eq__(self, other):
-
 
17028
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
17029
 
-
 
17030
  def __ne__(self, other):
-
 
17031
    return not (self == other)
-
 
17032
 
-
 
17033
class getAsinItems_result:
-
 
17034
  """
-
 
17035
  Attributes:
-
 
17036
   - success
-
 
17037
  """
-
 
17038
 
-
 
17039
  thrift_spec = (
-
 
17040
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
-
 
17041
  )
-
 
17042
 
-
 
17043
  def __init__(self, success=None,):
-
 
17044
    self.success = success
-
 
17045
 
-
 
17046
  def read(self, iprot):
-
 
17047
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
17048
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
17049
      return
-
 
17050
    iprot.readStructBegin()
-
 
17051
    while True:
-
 
17052
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
17053
      if ftype == TType.STOP:
-
 
17054
        break
-
 
17055
      if fid == 0:
-
 
17056
        if ftype == TType.LIST:
-
 
17057
          self.success = []
-
 
17058
          (_etype317, _size314) = iprot.readListBegin()
-
 
17059
          for _i318 in xrange(_size314):
-
 
17060
            _elem319 = Item()
-
 
17061
            _elem319.read(iprot)
-
 
17062
            self.success.append(_elem319)
-
 
17063
          iprot.readListEnd()
-
 
17064
        else:
-
 
17065
          iprot.skip(ftype)
-
 
17066
      else:
-
 
17067
        iprot.skip(ftype)
-
 
17068
      iprot.readFieldEnd()
-
 
17069
    iprot.readStructEnd()
-
 
17070
 
-
 
17071
  def write(self, oprot):
-
 
17072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
17073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
17074
      return
-
 
17075
    oprot.writeStructBegin('getAsinItems_result')
-
 
17076
    if self.success is not None:
-
 
17077
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
17078
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
17079
      for iter320 in self.success:
-
 
17080
        iter320.write(oprot)
-
 
17081
      oprot.writeListEnd()
-
 
17082
      oprot.writeFieldEnd()
-
 
17083
    oprot.writeFieldStop()
-
 
17084
    oprot.writeStructEnd()
-
 
17085
 
-
 
17086
  def validate(self):
-
 
17087
    return
-
 
17088
 
-
 
17089
 
-
 
17090
  def __repr__(self):
-
 
17091
    L = ['%s=%r' % (key, value)
-
 
17092
      for key, value in self.__dict__.iteritems()]
-
 
17093
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
17094
 
-
 
17095
  def __eq__(self, other):
-
 
17096
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
17097
 
-
 
17098
  def __ne__(self, other):
-
 
17099
    return not (self == other)
-
 
17100
 
-
 
17101
class getAllFbaListedItems_args:
-
 
17102
 
-
 
17103
  thrift_spec = (
-
 
17104
  )
-
 
17105
 
-
 
17106
  def read(self, iprot):
-
 
17107
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
17108
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
17109
      return
-
 
17110
    iprot.readStructBegin()
-
 
17111
    while True:
-
 
17112
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
17113
      if ftype == TType.STOP:
-
 
17114
        break
-
 
17115
      else:
-
 
17116
        iprot.skip(ftype)
-
 
17117
      iprot.readFieldEnd()
-
 
17118
    iprot.readStructEnd()
-
 
17119
 
-
 
17120
  def write(self, oprot):
-
 
17121
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
17122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
17123
      return
-
 
17124
    oprot.writeStructBegin('getAllFbaListedItems_args')
-
 
17125
    oprot.writeFieldStop()
-
 
17126
    oprot.writeStructEnd()
-
 
17127
 
-
 
17128
  def validate(self):
-
 
17129
    return
-
 
17130
 
-
 
17131
 
-
 
17132
  def __repr__(self):
-
 
17133
    L = ['%s=%r' % (key, value)
-
 
17134
      for key, value in self.__dict__.iteritems()]
-
 
17135
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
17136
 
-
 
17137
  def __eq__(self, other):
-
 
17138
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
17139
 
-
 
17140
  def __ne__(self, other):
-
 
17141
    return not (self == other)
-
 
17142
 
-
 
17143
class getAllFbaListedItems_result:
-
 
17144
  """
-
 
17145
  Attributes:
-
 
17146
   - success
-
 
17147
  """
-
 
17148
 
-
 
17149
  thrift_spec = (
-
 
17150
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
-
 
17151
  )
-
 
17152
 
-
 
17153
  def __init__(self, success=None,):
-
 
17154
    self.success = success
-
 
17155
 
-
 
17156
  def read(self, iprot):
-
 
17157
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
17158
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
17159
      return
-
 
17160
    iprot.readStructBegin()
-
 
17161
    while True:
-
 
17162
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
17163
      if ftype == TType.STOP:
-
 
17164
        break
-
 
17165
      if fid == 0:
-
 
17166
        if ftype == TType.LIST:
-
 
17167
          self.success = []
-
 
17168
          (_etype324, _size321) = iprot.readListBegin()
-
 
17169
          for _i325 in xrange(_size321):
-
 
17170
            _elem326 = Amazonlisted()
-
 
17171
            _elem326.read(iprot)
-
 
17172
            self.success.append(_elem326)
-
 
17173
          iprot.readListEnd()
-
 
17174
        else:
-
 
17175
          iprot.skip(ftype)
-
 
17176
      else:
-
 
17177
        iprot.skip(ftype)
-
 
17178
      iprot.readFieldEnd()
-
 
17179
    iprot.readStructEnd()
-
 
17180
 
-
 
17181
  def write(self, oprot):
-
 
17182
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
17183
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
17184
      return
-
 
17185
    oprot.writeStructBegin('getAllFbaListedItems_result')
-
 
17186
    if self.success is not None:
-
 
17187
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
17188
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
17189
      for iter327 in self.success:
-
 
17190
        iter327.write(oprot)
-
 
17191
      oprot.writeListEnd()
-
 
17192
      oprot.writeFieldEnd()
-
 
17193
    oprot.writeFieldStop()
-
 
17194
    oprot.writeStructEnd()
-
 
17195
 
-
 
17196
  def validate(self):
-
 
17197
    return
-
 
17198
 
-
 
17199
 
-
 
17200
  def __repr__(self):
-
 
17201
    L = ['%s=%r' % (key, value)
-
 
17202
      for key, value in self.__dict__.iteritems()]
-
 
17203
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
17204
 
-
 
17205
  def __eq__(self, other):
-
 
17206
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
17207
 
-
 
17208
  def __ne__(self, other):
-
 
17209
    return not (self == other)
-
 
17210
 
-
 
17211
class getAllNonFbaListedItems_args:
-
 
17212
 
-
 
17213
  thrift_spec = (
-
 
17214
  )
-
 
17215
 
-
 
17216
  def read(self, iprot):
-
 
17217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
17218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
17219
      return
-
 
17220
    iprot.readStructBegin()
-
 
17221
    while True:
-
 
17222
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
17223
      if ftype == TType.STOP:
-
 
17224
        break
-
 
17225
      else:
-
 
17226
        iprot.skip(ftype)
-
 
17227
      iprot.readFieldEnd()
-
 
17228
    iprot.readStructEnd()
-
 
17229
 
-
 
17230
  def write(self, oprot):
-
 
17231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
17232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
17233
      return
-
 
17234
    oprot.writeStructBegin('getAllNonFbaListedItems_args')
-
 
17235
    oprot.writeFieldStop()
-
 
17236
    oprot.writeStructEnd()
-
 
17237
 
-
 
17238
  def validate(self):
-
 
17239
    return
-
 
17240
 
-
 
17241
 
-
 
17242
  def __repr__(self):
-
 
17243
    L = ['%s=%r' % (key, value)
-
 
17244
      for key, value in self.__dict__.iteritems()]
-
 
17245
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
17246
 
-
 
17247
  def __eq__(self, other):
-
 
17248
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
17249
 
-
 
17250
  def __ne__(self, other):
-
 
17251
    return not (self == other)
-
 
17252
 
-
 
17253
class getAllNonFbaListedItems_result:
-
 
17254
  """
-
 
17255
  Attributes:
-
 
17256
   - success
-
 
17257
  """
-
 
17258
 
-
 
17259
  thrift_spec = (
-
 
17260
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
-
 
17261
  )
-
 
17262
 
-
 
17263
  def __init__(self, success=None,):
-
 
17264
    self.success = success
-
 
17265
 
-
 
17266
  def read(self, iprot):
-
 
17267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
17268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
17269
      return
-
 
17270
    iprot.readStructBegin()
-
 
17271
    while True:
-
 
17272
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
17273
      if ftype == TType.STOP:
-
 
17274
        break
-
 
17275
      if fid == 0:
-
 
17276
        if ftype == TType.LIST:
-
 
17277
          self.success = []
-
 
17278
          (_etype331, _size328) = iprot.readListBegin()
-
 
17279
          for _i332 in xrange(_size328):
-
 
17280
            _elem333 = Amazonlisted()
-
 
17281
            _elem333.read(iprot)
-
 
17282
            self.success.append(_elem333)
-
 
17283
          iprot.readListEnd()
-
 
17284
        else:
-
 
17285
          iprot.skip(ftype)
-
 
17286
      else:
-
 
17287
        iprot.skip(ftype)
-
 
17288
      iprot.readFieldEnd()
-
 
17289
    iprot.readStructEnd()
-
 
17290
 
-
 
17291
  def write(self, oprot):
-
 
17292
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
17293
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
17294
      return
-
 
17295
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
-
 
17296
    if self.success is not None:
-
 
17297
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
17298
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
17299
      for iter334 in self.success:
-
 
17300
        iter334.write(oprot)
-
 
17301
      oprot.writeListEnd()
-
 
17302
      oprot.writeFieldEnd()
-
 
17303
    oprot.writeFieldStop()
-
 
17304
    oprot.writeStructEnd()
-
 
17305
 
-
 
17306
  def validate(self):
-
 
17307
    return
16858
 
17308
 
16859
 
17309
 
16860
  def __repr__(self):
17310
  def __repr__(self):
16861
    L = ['%s=%r' % (key, value)
17311
    L = ['%s=%r' % (key, value)
16862
      for key, value in self.__dict__.iteritems()]
17312
      for key, value in self.__dict__.iteritems()]