Subversion Repositories SmartDukaan

Rev

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

Rev 12256 Rev 12363
Line 1222... Line 1222...
1222
    Parameters:
1222
    Parameters:
1223
     - uploadId
1223
     - uploadId
1224
    """
1224
    """
1225
    pass
1225
    pass
1226
 
1226
 
-
 
1227
  def addAmazonPromotion(self, amazonPromotions):
-
 
1228
    """
-
 
1229
    Parameters:
-
 
1230
     - amazonPromotions
-
 
1231
    """
-
 
1232
    pass
-
 
1233
 
-
 
1234
  def getAmazonPromotion(self, startDate, endDate):
-
 
1235
    """
-
 
1236
    Parameters:
-
 
1237
     - startDate
-
 
1238
     - endDate
-
 
1239
    """
-
 
1240
    pass
-
 
1241
 
-
 
1242
  def updateAmazonPromotion(self, amazonPromotions):
-
 
1243
    """
-
 
1244
    Parameters:
-
 
1245
     - amazonPromotions
-
 
1246
    """
-
 
1247
    pass
-
 
1248
 
1227
 
1249
 
1228
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1250
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1229
  def __init__(self, iprot, oprot=None):
1251
  def __init__(self, iprot, oprot=None):
1230
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1252
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1231
 
1253
 
Line 6479... Line 6501...
6479
    self._iprot.readMessageEnd()
6501
    self._iprot.readMessageEnd()
6480
    if result.success is not None:
6502
    if result.success is not None:
6481
      return result.success
6503
      return result.success
6482
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
6504
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
6483
 
6505
 
-
 
6506
  def addAmazonPromotion(self, amazonPromotions):
-
 
6507
    """
-
 
6508
    Parameters:
-
 
6509
     - amazonPromotions
-
 
6510
    """
-
 
6511
    self.send_addAmazonPromotion(amazonPromotions)
-
 
6512
    return self.recv_addAmazonPromotion()
-
 
6513
 
-
 
6514
  def send_addAmazonPromotion(self, amazonPromotions):
-
 
6515
    self._oprot.writeMessageBegin('addAmazonPromotion', TMessageType.CALL, self._seqid)
-
 
6516
    args = addAmazonPromotion_args()
-
 
6517
    args.amazonPromotions = amazonPromotions
-
 
6518
    args.write(self._oprot)
-
 
6519
    self._oprot.writeMessageEnd()
-
 
6520
    self._oprot.trans.flush()
-
 
6521
 
-
 
6522
  def recv_addAmazonPromotion(self, ):
-
 
6523
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
6524
    if mtype == TMessageType.EXCEPTION:
-
 
6525
      x = TApplicationException()
-
 
6526
      x.read(self._iprot)
-
 
6527
      self._iprot.readMessageEnd()
-
 
6528
      raise x
-
 
6529
    result = addAmazonPromotion_result()
-
 
6530
    result.read(self._iprot)
-
 
6531
    self._iprot.readMessageEnd()
-
 
6532
    if result.success is not None:
-
 
6533
      return result.success
-
 
6534
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAmazonPromotion failed: unknown result");
-
 
6535
 
-
 
6536
  def getAmazonPromotion(self, startDate, endDate):
-
 
6537
    """
-
 
6538
    Parameters:
-
 
6539
     - startDate
-
 
6540
     - endDate
-
 
6541
    """
-
 
6542
    self.send_getAmazonPromotion(startDate, endDate)
-
 
6543
    return self.recv_getAmazonPromotion()
-
 
6544
 
-
 
6545
  def send_getAmazonPromotion(self, startDate, endDate):
-
 
6546
    self._oprot.writeMessageBegin('getAmazonPromotion', TMessageType.CALL, self._seqid)
-
 
6547
    args = getAmazonPromotion_args()
-
 
6548
    args.startDate = startDate
-
 
6549
    args.endDate = endDate
-
 
6550
    args.write(self._oprot)
-
 
6551
    self._oprot.writeMessageEnd()
-
 
6552
    self._oprot.trans.flush()
-
 
6553
 
-
 
6554
  def recv_getAmazonPromotion(self, ):
-
 
6555
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
6556
    if mtype == TMessageType.EXCEPTION:
-
 
6557
      x = TApplicationException()
-
 
6558
      x.read(self._iprot)
-
 
6559
      self._iprot.readMessageEnd()
-
 
6560
      raise x
-
 
6561
    result = getAmazonPromotion_result()
-
 
6562
    result.read(self._iprot)
-
 
6563
    self._iprot.readMessageEnd()
-
 
6564
    if result.success is not None:
-
 
6565
      return result.success
-
 
6566
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonPromotion failed: unknown result");
-
 
6567
 
-
 
6568
  def updateAmazonPromotion(self, amazonPromotions):
-
 
6569
    """
-
 
6570
    Parameters:
-
 
6571
     - amazonPromotions
-
 
6572
    """
-
 
6573
    self.send_updateAmazonPromotion(amazonPromotions)
-
 
6574
    return self.recv_updateAmazonPromotion()
-
 
6575
 
-
 
6576
  def send_updateAmazonPromotion(self, amazonPromotions):
-
 
6577
    self._oprot.writeMessageBegin('updateAmazonPromotion', TMessageType.CALL, self._seqid)
-
 
6578
    args = updateAmazonPromotion_args()
-
 
6579
    args.amazonPromotions = amazonPromotions
-
 
6580
    args.write(self._oprot)
-
 
6581
    self._oprot.writeMessageEnd()
-
 
6582
    self._oprot.trans.flush()
-
 
6583
 
-
 
6584
  def recv_updateAmazonPromotion(self, ):
-
 
6585
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
6586
    if mtype == TMessageType.EXCEPTION:
-
 
6587
      x = TApplicationException()
-
 
6588
      x.read(self._iprot)
-
 
6589
      self._iprot.readMessageEnd()
-
 
6590
      raise x
-
 
6591
    result = updateAmazonPromotion_result()
-
 
6592
    result.read(self._iprot)
-
 
6593
    self._iprot.readMessageEnd()
-
 
6594
    if result.success is not None:
-
 
6595
      return result.success
-
 
6596
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonPromotion failed: unknown result");
-
 
6597
 
6484
 
6598
 
6485
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6599
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6486
  def __init__(self, handler):
6600
  def __init__(self, handler):
6487
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6601
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6488
    self._processMap["addItem"] = Processor.process_addItem
6602
    self._processMap["addItem"] = Processor.process_addItem
Line 6655... Line 6769...
6655
    self._processMap["getAllSnapdealMarketplaceItem"] = Processor.process_getAllSnapdealMarketplaceItem
6769
    self._processMap["getAllSnapdealMarketplaceItem"] = Processor.process_getAllSnapdealMarketplaceItem
6656
    self._processMap["getAllFlipkartMarketplaceItem"] = Processor.process_getAllFlipkartMarketplaceItem
6770
    self._processMap["getAllFlipkartMarketplaceItem"] = Processor.process_getAllFlipkartMarketplaceItem
6657
    self._processMap["addCompetitorScraping"] = Processor.process_addCompetitorScraping
6771
    self._processMap["addCompetitorScraping"] = Processor.process_addCompetitorScraping
6658
    self._processMap["getPreviousCompetitorScraping"] = Processor.process_getPreviousCompetitorScraping
6772
    self._processMap["getPreviousCompetitorScraping"] = Processor.process_getPreviousCompetitorScraping
6659
    self._processMap["getUploadResultById"] = Processor.process_getUploadResultById
6773
    self._processMap["getUploadResultById"] = Processor.process_getUploadResultById
-
 
6774
    self._processMap["addAmazonPromotion"] = Processor.process_addAmazonPromotion
-
 
6775
    self._processMap["getAmazonPromotion"] = Processor.process_getAmazonPromotion
-
 
6776
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
6660
 
6777
 
6661
  def process(self, iprot, oprot):
6778
  def process(self, iprot, oprot):
6662
    (name, type, seqid) = iprot.readMessageBegin()
6779
    (name, type, seqid) = iprot.readMessageBegin()
6663
    if name not in self._processMap:
6780
    if name not in self._processMap:
6664
      iprot.skip(TType.STRUCT)
6781
      iprot.skip(TType.STRUCT)
Line 8695... Line 8812...
8695
    oprot.writeMessageBegin("getUploadResultById", TMessageType.REPLY, seqid)
8812
    oprot.writeMessageBegin("getUploadResultById", TMessageType.REPLY, seqid)
8696
    result.write(oprot)
8813
    result.write(oprot)
8697
    oprot.writeMessageEnd()
8814
    oprot.writeMessageEnd()
8698
    oprot.trans.flush()
8815
    oprot.trans.flush()
8699
 
8816
 
-
 
8817
  def process_addAmazonPromotion(self, seqid, iprot, oprot):
-
 
8818
    args = addAmazonPromotion_args()
-
 
8819
    args.read(iprot)
-
 
8820
    iprot.readMessageEnd()
-
 
8821
    result = addAmazonPromotion_result()
-
 
8822
    result.success = self._handler.addAmazonPromotion(args.amazonPromotions)
-
 
8823
    oprot.writeMessageBegin("addAmazonPromotion", TMessageType.REPLY, seqid)
-
 
8824
    result.write(oprot)
-
 
8825
    oprot.writeMessageEnd()
-
 
8826
    oprot.trans.flush()
-
 
8827
 
-
 
8828
  def process_getAmazonPromotion(self, seqid, iprot, oprot):
-
 
8829
    args = getAmazonPromotion_args()
-
 
8830
    args.read(iprot)
-
 
8831
    iprot.readMessageEnd()
-
 
8832
    result = getAmazonPromotion_result()
-
 
8833
    result.success = self._handler.getAmazonPromotion(args.startDate, args.endDate)
-
 
8834
    oprot.writeMessageBegin("getAmazonPromotion", TMessageType.REPLY, seqid)
-
 
8835
    result.write(oprot)
-
 
8836
    oprot.writeMessageEnd()
-
 
8837
    oprot.trans.flush()
-
 
8838
 
-
 
8839
  def process_updateAmazonPromotion(self, seqid, iprot, oprot):
-
 
8840
    args = updateAmazonPromotion_args()
-
 
8841
    args.read(iprot)
-
 
8842
    iprot.readMessageEnd()
-
 
8843
    result = updateAmazonPromotion_result()
-
 
8844
    result.success = self._handler.updateAmazonPromotion(args.amazonPromotions)
-
 
8845
    oprot.writeMessageBegin("updateAmazonPromotion", TMessageType.REPLY, seqid)
-
 
8846
    result.write(oprot)
-
 
8847
    oprot.writeMessageEnd()
-
 
8848
    oprot.trans.flush()
-
 
8849
 
8700
 
8850
 
8701
# HELPER FUNCTIONS AND STRUCTURES
8851
# HELPER FUNCTIONS AND STRUCTURES
8702
 
8852
 
8703
class addItem_args:
8853
class addItem_args:
8704
  """
8854
  """
Line 30541... Line 30691...
30541
      oprot.writeFieldEnd()
30691
      oprot.writeFieldEnd()
30542
    oprot.writeFieldStop()
30692
    oprot.writeFieldStop()
30543
    oprot.writeStructEnd()
30693
    oprot.writeStructEnd()
30544
 
30694
 
30545
  def validate(self):
30695
  def validate(self):
-
 
30696
    return
-
 
30697
 
-
 
30698
 
-
 
30699
  def __repr__(self):
-
 
30700
    L = ['%s=%r' % (key, value)
-
 
30701
      for key, value in self.__dict__.iteritems()]
-
 
30702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
30703
 
-
 
30704
  def __eq__(self, other):
-
 
30705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
30706
 
-
 
30707
  def __ne__(self, other):
-
 
30708
    return not (self == other)
-
 
30709
 
-
 
30710
class addAmazonPromotion_args:
-
 
30711
  """
-
 
30712
  Attributes:
-
 
30713
   - amazonPromotions
-
 
30714
  """
-
 
30715
 
-
 
30716
  thrift_spec = (
-
 
30717
    None, # 0
-
 
30718
    (1, TType.MAP, 'amazonPromotions', (TType.STRING,None,TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
-
 
30719
  )
-
 
30720
 
-
 
30721
  def __init__(self, amazonPromotions=None,):
-
 
30722
    self.amazonPromotions = amazonPromotions
-
 
30723
 
-
 
30724
  def read(self, iprot):
-
 
30725
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
30726
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
30727
      return
-
 
30728
    iprot.readStructBegin()
-
 
30729
    while True:
-
 
30730
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
30731
      if ftype == TType.STOP:
-
 
30732
        break
-
 
30733
      if fid == 1:
-
 
30734
        if ftype == TType.MAP:
-
 
30735
          self.amazonPromotions = {}
-
 
30736
          (_ktype723, _vtype724, _size722 ) = iprot.readMapBegin() 
-
 
30737
          for _i726 in xrange(_size722):
-
 
30738
            _key727 = iprot.readString();
-
 
30739
            _val728 = AmazonPromotion()
-
 
30740
            _val728.read(iprot)
-
 
30741
            self.amazonPromotions[_key727] = _val728
-
 
30742
          iprot.readMapEnd()
-
 
30743
        else:
-
 
30744
          iprot.skip(ftype)
-
 
30745
      else:
-
 
30746
        iprot.skip(ftype)
-
 
30747
      iprot.readFieldEnd()
-
 
30748
    iprot.readStructEnd()
-
 
30749
 
-
 
30750
  def write(self, oprot):
-
 
30751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
30752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
30753
      return
-
 
30754
    oprot.writeStructBegin('addAmazonPromotion_args')
-
 
30755
    if self.amazonPromotions is not None:
-
 
30756
      oprot.writeFieldBegin('amazonPromotions', TType.MAP, 1)
-
 
30757
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.amazonPromotions))
-
 
30758
      for kiter729,viter730 in self.amazonPromotions.items():
-
 
30759
        oprot.writeString(kiter729)
-
 
30760
        viter730.write(oprot)
-
 
30761
      oprot.writeMapEnd()
-
 
30762
      oprot.writeFieldEnd()
-
 
30763
    oprot.writeFieldStop()
-
 
30764
    oprot.writeStructEnd()
-
 
30765
 
-
 
30766
  def validate(self):
-
 
30767
    return
-
 
30768
 
-
 
30769
 
-
 
30770
  def __repr__(self):
-
 
30771
    L = ['%s=%r' % (key, value)
-
 
30772
      for key, value in self.__dict__.iteritems()]
-
 
30773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
30774
 
-
 
30775
  def __eq__(self, other):
-
 
30776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
30777
 
-
 
30778
  def __ne__(self, other):
-
 
30779
    return not (self == other)
-
 
30780
 
-
 
30781
class addAmazonPromotion_result:
-
 
30782
  """
-
 
30783
  Attributes:
-
 
30784
   - success
-
 
30785
  """
-
 
30786
 
-
 
30787
  thrift_spec = (
-
 
30788
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
30789
  )
-
 
30790
 
-
 
30791
  def __init__(self, success=None,):
-
 
30792
    self.success = success
-
 
30793
 
-
 
30794
  def read(self, iprot):
-
 
30795
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
30796
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
30797
      return
-
 
30798
    iprot.readStructBegin()
-
 
30799
    while True:
-
 
30800
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
30801
      if ftype == TType.STOP:
-
 
30802
        break
-
 
30803
      if fid == 0:
-
 
30804
        if ftype == TType.BOOL:
-
 
30805
          self.success = iprot.readBool();
-
 
30806
        else:
-
 
30807
          iprot.skip(ftype)
-
 
30808
      else:
-
 
30809
        iprot.skip(ftype)
-
 
30810
      iprot.readFieldEnd()
-
 
30811
    iprot.readStructEnd()
-
 
30812
 
-
 
30813
  def write(self, oprot):
-
 
30814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
30815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
30816
      return
-
 
30817
    oprot.writeStructBegin('addAmazonPromotion_result')
-
 
30818
    if self.success is not None:
-
 
30819
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
30820
      oprot.writeBool(self.success)
-
 
30821
      oprot.writeFieldEnd()
-
 
30822
    oprot.writeFieldStop()
-
 
30823
    oprot.writeStructEnd()
-
 
30824
 
-
 
30825
  def validate(self):
-
 
30826
    return
-
 
30827
 
-
 
30828
 
-
 
30829
  def __repr__(self):
-
 
30830
    L = ['%s=%r' % (key, value)
-
 
30831
      for key, value in self.__dict__.iteritems()]
-
 
30832
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
30833
 
-
 
30834
  def __eq__(self, other):
-
 
30835
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
30836
 
-
 
30837
  def __ne__(self, other):
-
 
30838
    return not (self == other)
-
 
30839
 
-
 
30840
class getAmazonPromotion_args:
-
 
30841
  """
-
 
30842
  Attributes:
-
 
30843
   - startDate
-
 
30844
   - endDate
-
 
30845
  """
-
 
30846
 
-
 
30847
  thrift_spec = (
-
 
30848
    None, # 0
-
 
30849
    (1, TType.I64, 'startDate', None, None, ), # 1
-
 
30850
    (2, TType.I64, 'endDate', None, None, ), # 2
-
 
30851
  )
-
 
30852
 
-
 
30853
  def __init__(self, startDate=None, endDate=None,):
-
 
30854
    self.startDate = startDate
-
 
30855
    self.endDate = endDate
-
 
30856
 
-
 
30857
  def read(self, iprot):
-
 
30858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
30859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
30860
      return
-
 
30861
    iprot.readStructBegin()
-
 
30862
    while True:
-
 
30863
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
30864
      if ftype == TType.STOP:
-
 
30865
        break
-
 
30866
      if fid == 1:
-
 
30867
        if ftype == TType.I64:
-
 
30868
          self.startDate = iprot.readI64();
-
 
30869
        else:
-
 
30870
          iprot.skip(ftype)
-
 
30871
      elif fid == 2:
-
 
30872
        if ftype == TType.I64:
-
 
30873
          self.endDate = iprot.readI64();
-
 
30874
        else:
-
 
30875
          iprot.skip(ftype)
-
 
30876
      else:
-
 
30877
        iprot.skip(ftype)
-
 
30878
      iprot.readFieldEnd()
-
 
30879
    iprot.readStructEnd()
-
 
30880
 
-
 
30881
  def write(self, oprot):
-
 
30882
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
30883
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
30884
      return
-
 
30885
    oprot.writeStructBegin('getAmazonPromotion_args')
-
 
30886
    if self.startDate is not None:
-
 
30887
      oprot.writeFieldBegin('startDate', TType.I64, 1)
-
 
30888
      oprot.writeI64(self.startDate)
-
 
30889
      oprot.writeFieldEnd()
-
 
30890
    if self.endDate is not None:
-
 
30891
      oprot.writeFieldBegin('endDate', TType.I64, 2)
-
 
30892
      oprot.writeI64(self.endDate)
-
 
30893
      oprot.writeFieldEnd()
-
 
30894
    oprot.writeFieldStop()
-
 
30895
    oprot.writeStructEnd()
-
 
30896
 
-
 
30897
  def validate(self):
-
 
30898
    return
-
 
30899
 
-
 
30900
 
-
 
30901
  def __repr__(self):
-
 
30902
    L = ['%s=%r' % (key, value)
-
 
30903
      for key, value in self.__dict__.iteritems()]
-
 
30904
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
30905
 
-
 
30906
  def __eq__(self, other):
-
 
30907
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
30908
 
-
 
30909
  def __ne__(self, other):
-
 
30910
    return not (self == other)
-
 
30911
 
-
 
30912
class getAmazonPromotion_result:
-
 
30913
  """
-
 
30914
  Attributes:
-
 
30915
   - success
-
 
30916
  """
-
 
30917
 
-
 
30918
  thrift_spec = (
-
 
30919
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 0
-
 
30920
  )
-
 
30921
 
-
 
30922
  def __init__(self, success=None,):
-
 
30923
    self.success = success
-
 
30924
 
-
 
30925
  def read(self, iprot):
-
 
30926
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
30927
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
30928
      return
-
 
30929
    iprot.readStructBegin()
-
 
30930
    while True:
-
 
30931
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
30932
      if ftype == TType.STOP:
-
 
30933
        break
-
 
30934
      if fid == 0:
-
 
30935
        if ftype == TType.LIST:
-
 
30936
          self.success = []
-
 
30937
          (_etype734, _size731) = iprot.readListBegin()
-
 
30938
          for _i735 in xrange(_size731):
-
 
30939
            _elem736 = AmazonPromotion()
-
 
30940
            _elem736.read(iprot)
-
 
30941
            self.success.append(_elem736)
-
 
30942
          iprot.readListEnd()
-
 
30943
        else:
-
 
30944
          iprot.skip(ftype)
-
 
30945
      else:
-
 
30946
        iprot.skip(ftype)
-
 
30947
      iprot.readFieldEnd()
-
 
30948
    iprot.readStructEnd()
-
 
30949
 
-
 
30950
  def write(self, oprot):
-
 
30951
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
30952
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
30953
      return
-
 
30954
    oprot.writeStructBegin('getAmazonPromotion_result')
-
 
30955
    if self.success is not None:
-
 
30956
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
30957
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
30958
      for iter737 in self.success:
-
 
30959
        iter737.write(oprot)
-
 
30960
      oprot.writeListEnd()
-
 
30961
      oprot.writeFieldEnd()
-
 
30962
    oprot.writeFieldStop()
-
 
30963
    oprot.writeStructEnd()
-
 
30964
 
-
 
30965
  def validate(self):
-
 
30966
    return
-
 
30967
 
-
 
30968
 
-
 
30969
  def __repr__(self):
-
 
30970
    L = ['%s=%r' % (key, value)
-
 
30971
      for key, value in self.__dict__.iteritems()]
-
 
30972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
30973
 
-
 
30974
  def __eq__(self, other):
-
 
30975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
30976
 
-
 
30977
  def __ne__(self, other):
-
 
30978
    return not (self == other)
-
 
30979
 
-
 
30980
class updateAmazonPromotion_args:
-
 
30981
  """
-
 
30982
  Attributes:
-
 
30983
   - amazonPromotions
-
 
30984
  """
-
 
30985
 
-
 
30986
  thrift_spec = (
-
 
30987
    None, # 0
-
 
30988
    (1, TType.LIST, 'amazonPromotions', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
-
 
30989
  )
-
 
30990
 
-
 
30991
  def __init__(self, amazonPromotions=None,):
-
 
30992
    self.amazonPromotions = amazonPromotions
-
 
30993
 
-
 
30994
  def read(self, iprot):
-
 
30995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
30996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
30997
      return
-
 
30998
    iprot.readStructBegin()
-
 
30999
    while True:
-
 
31000
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
31001
      if ftype == TType.STOP:
-
 
31002
        break
-
 
31003
      if fid == 1:
-
 
31004
        if ftype == TType.LIST:
-
 
31005
          self.amazonPromotions = []
-
 
31006
          (_etype741, _size738) = iprot.readListBegin()
-
 
31007
          for _i742 in xrange(_size738):
-
 
31008
            _elem743 = AmazonPromotion()
-
 
31009
            _elem743.read(iprot)
-
 
31010
            self.amazonPromotions.append(_elem743)
-
 
31011
          iprot.readListEnd()
-
 
31012
        else:
-
 
31013
          iprot.skip(ftype)
-
 
31014
      else:
-
 
31015
        iprot.skip(ftype)
-
 
31016
      iprot.readFieldEnd()
-
 
31017
    iprot.readStructEnd()
-
 
31018
 
-
 
31019
  def write(self, oprot):
-
 
31020
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
31021
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
31022
      return
-
 
31023
    oprot.writeStructBegin('updateAmazonPromotion_args')
-
 
31024
    if self.amazonPromotions is not None:
-
 
31025
      oprot.writeFieldBegin('amazonPromotions', TType.LIST, 1)
-
 
31026
      oprot.writeListBegin(TType.STRUCT, len(self.amazonPromotions))
-
 
31027
      for iter744 in self.amazonPromotions:
-
 
31028
        iter744.write(oprot)
-
 
31029
      oprot.writeListEnd()
-
 
31030
      oprot.writeFieldEnd()
-
 
31031
    oprot.writeFieldStop()
-
 
31032
    oprot.writeStructEnd()
-
 
31033
 
-
 
31034
  def validate(self):
-
 
31035
    return
-
 
31036
 
-
 
31037
 
-
 
31038
  def __repr__(self):
-
 
31039
    L = ['%s=%r' % (key, value)
-
 
31040
      for key, value in self.__dict__.iteritems()]
-
 
31041
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
31042
 
-
 
31043
  def __eq__(self, other):
-
 
31044
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
31045
 
-
 
31046
  def __ne__(self, other):
-
 
31047
    return not (self == other)
-
 
31048
 
-
 
31049
class updateAmazonPromotion_result:
-
 
31050
  """
-
 
31051
  Attributes:
-
 
31052
   - success
-
 
31053
  """
-
 
31054
 
-
 
31055
  thrift_spec = (
-
 
31056
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
31057
  )
-
 
31058
 
-
 
31059
  def __init__(self, success=None,):
-
 
31060
    self.success = success
-
 
31061
 
-
 
31062
  def read(self, iprot):
-
 
31063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
31064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
31065
      return
-
 
31066
    iprot.readStructBegin()
-
 
31067
    while True:
-
 
31068
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
31069
      if ftype == TType.STOP:
-
 
31070
        break
-
 
31071
      if fid == 0:
-
 
31072
        if ftype == TType.BOOL:
-
 
31073
          self.success = iprot.readBool();
-
 
31074
        else:
-
 
31075
          iprot.skip(ftype)
-
 
31076
      else:
-
 
31077
        iprot.skip(ftype)
-
 
31078
      iprot.readFieldEnd()
-
 
31079
    iprot.readStructEnd()
-
 
31080
 
-
 
31081
  def write(self, oprot):
-
 
31082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
31083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
31084
      return
-
 
31085
    oprot.writeStructBegin('updateAmazonPromotion_result')
-
 
31086
    if self.success is not None:
-
 
31087
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
31088
      oprot.writeBool(self.success)
-
 
31089
      oprot.writeFieldEnd()
-
 
31090
    oprot.writeFieldStop()
-
 
31091
    oprot.writeStructEnd()
-
 
31092
 
-
 
31093
  def validate(self):
30546
    return
31094
    return
30547
 
31095
 
30548
 
31096
 
30549
  def __repr__(self):
31097
  def __repr__(self):
30550
    L = ['%s=%r' % (key, value)
31098
    L = ['%s=%r' % (key, value)