Subversion Repositories SmartDukaan

Rev

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

Rev 9895 Rev 9945
Line 1048... Line 1048...
1048
     - vendor_id
1048
     - vendor_id
1049
     - nlc
1049
     - nlc
1050
    """
1050
    """
1051
    pass
1051
    pass
1052
 
1052
 
-
 
1053
  def getAllFlipkartItems(self, ):
-
 
1054
    pass
-
 
1055
 
1053
 
1056
 
1054
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1057
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1055
  def __init__(self, iprot, oprot=None):
1058
  def __init__(self, iprot, oprot=None):
1056
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1059
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1057
 
1060
 
Line 5480... Line 5483...
5480
    result = updateNlcAtMarketplaces_result()
5483
    result = updateNlcAtMarketplaces_result()
5481
    result.read(self._iprot)
5484
    result.read(self._iprot)
5482
    self._iprot.readMessageEnd()
5485
    self._iprot.readMessageEnd()
5483
    return
5486
    return
5484
 
5487
 
-
 
5488
  def getAllFlipkartItems(self, ):
-
 
5489
    self.send_getAllFlipkartItems()
-
 
5490
    return self.recv_getAllFlipkartItems()
-
 
5491
 
-
 
5492
  def send_getAllFlipkartItems(self, ):
-
 
5493
    self._oprot.writeMessageBegin('getAllFlipkartItems', TMessageType.CALL, self._seqid)
-
 
5494
    args = getAllFlipkartItems_args()
-
 
5495
    args.write(self._oprot)
-
 
5496
    self._oprot.writeMessageEnd()
-
 
5497
    self._oprot.trans.flush()
-
 
5498
 
-
 
5499
  def recv_getAllFlipkartItems(self, ):
-
 
5500
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
5501
    if mtype == TMessageType.EXCEPTION:
-
 
5502
      x = TApplicationException()
-
 
5503
      x.read(self._iprot)
-
 
5504
      self._iprot.readMessageEnd()
-
 
5505
      raise x
-
 
5506
    result = getAllFlipkartItems_result()
-
 
5507
    result.read(self._iprot)
-
 
5508
    self._iprot.readMessageEnd()
-
 
5509
    if result.success is not None:
-
 
5510
      return result.success
-
 
5511
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");
-
 
5512
 
5485
 
5513
 
5486
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5514
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5487
  def __init__(self, handler):
5515
  def __init__(self, handler):
5488
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5516
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5489
    self._processMap["addItem"] = Processor.process_addItem
5517
    self._processMap["addItem"] = Processor.process_addItem
Line 5628... Line 5656...
5628
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
5656
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
5629
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
5657
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
5630
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
5658
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
5631
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
5659
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
5632
    self._processMap["updateNlcAtMarketplaces"] = Processor.process_updateNlcAtMarketplaces
5660
    self._processMap["updateNlcAtMarketplaces"] = Processor.process_updateNlcAtMarketplaces
-
 
5661
    self._processMap["getAllFlipkartItems"] = Processor.process_getAllFlipkartItems
5633
 
5662
 
5634
  def process(self, iprot, oprot):
5663
  def process(self, iprot, oprot):
5635
    (name, type, seqid) = iprot.readMessageBegin()
5664
    (name, type, seqid) = iprot.readMessageBegin()
5636
    if name not in self._processMap:
5665
    if name not in self._processMap:
5637
      iprot.skip(TType.STRUCT)
5666
      iprot.skip(TType.STRUCT)
Line 7357... Line 7386...
7357
    oprot.writeMessageBegin("updateNlcAtMarketplaces", TMessageType.REPLY, seqid)
7386
    oprot.writeMessageBegin("updateNlcAtMarketplaces", TMessageType.REPLY, seqid)
7358
    result.write(oprot)
7387
    result.write(oprot)
7359
    oprot.writeMessageEnd()
7388
    oprot.writeMessageEnd()
7360
    oprot.trans.flush()
7389
    oprot.trans.flush()
7361
 
7390
 
-
 
7391
  def process_getAllFlipkartItems(self, seqid, iprot, oprot):
-
 
7392
    args = getAllFlipkartItems_args()
-
 
7393
    args.read(iprot)
-
 
7394
    iprot.readMessageEnd()
-
 
7395
    result = getAllFlipkartItems_result()
-
 
7396
    result.success = self._handler.getAllFlipkartItems()
-
 
7397
    oprot.writeMessageBegin("getAllFlipkartItems", TMessageType.REPLY, seqid)
-
 
7398
    result.write(oprot)
-
 
7399
    oprot.writeMessageEnd()
-
 
7400
    oprot.trans.flush()
-
 
7401
 
7362
 
7402
 
7363
# HELPER FUNCTIONS AND STRUCTURES
7403
# HELPER FUNCTIONS AND STRUCTURES
7364
 
7404
 
7365
class addItem_args:
7405
class addItem_args:
7366
  """
7406
  """
Line 25674... Line 25714...
25674
    oprot.writeFieldStop()
25714
    oprot.writeFieldStop()
25675
    oprot.writeStructEnd()
25715
    oprot.writeStructEnd()
25676
 
25716
 
25677
  def validate(self):
25717
  def validate(self):
25678
    return
25718
    return
-
 
25719
 
-
 
25720
 
-
 
25721
  def __repr__(self):
-
 
25722
    L = ['%s=%r' % (key, value)
-
 
25723
      for key, value in self.__dict__.iteritems()]
-
 
25724
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
25725
 
-
 
25726
  def __eq__(self, other):
-
 
25727
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
25728
 
-
 
25729
  def __ne__(self, other):
-
 
25730
    return not (self == other)
-
 
25731
 
-
 
25732
class getAllFlipkartItems_args:
-
 
25733
 
-
 
25734
  thrift_spec = (
-
 
25735
  )
-
 
25736
 
-
 
25737
  def read(self, iprot):
-
 
25738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
25739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
25740
      return
-
 
25741
    iprot.readStructBegin()
-
 
25742
    while True:
-
 
25743
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
25744
      if ftype == TType.STOP:
-
 
25745
        break
-
 
25746
      else:
-
 
25747
        iprot.skip(ftype)
-
 
25748
      iprot.readFieldEnd()
-
 
25749
    iprot.readStructEnd()
-
 
25750
 
-
 
25751
  def write(self, oprot):
-
 
25752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
25753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
25754
      return
-
 
25755
    oprot.writeStructBegin('getAllFlipkartItems_args')
-
 
25756
    oprot.writeFieldStop()
-
 
25757
    oprot.writeStructEnd()
-
 
25758
 
-
 
25759
  def validate(self):
-
 
25760
    return
-
 
25761
 
-
 
25762
 
-
 
25763
  def __repr__(self):
-
 
25764
    L = ['%s=%r' % (key, value)
-
 
25765
      for key, value in self.__dict__.iteritems()]
-
 
25766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
25767
 
-
 
25768
  def __eq__(self, other):
-
 
25769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
25770
 
-
 
25771
  def __ne__(self, other):
-
 
25772
    return not (self == other)
-
 
25773
 
-
 
25774
class getAllFlipkartItems_result:
-
 
25775
  """
-
 
25776
  Attributes:
-
 
25777
   - success
-
 
25778
  """
-
 
25779
 
-
 
25780
  thrift_spec = (
-
 
25781
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
-
 
25782
  )
-
 
25783
 
-
 
25784
  def __init__(self, success=None,):
-
 
25785
    self.success = success
-
 
25786
 
-
 
25787
  def read(self, iprot):
-
 
25788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
25789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
25790
      return
-
 
25791
    iprot.readStructBegin()
-
 
25792
    while True:
-
 
25793
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
25794
      if ftype == TType.STOP:
-
 
25795
        break
-
 
25796
      if fid == 0:
-
 
25797
        if ftype == TType.LIST:
-
 
25798
          self.success = []
-
 
25799
          (_etype581, _size578) = iprot.readListBegin()
-
 
25800
          for _i582 in xrange(_size578):
-
 
25801
            _elem583 = FlipkartItem()
-
 
25802
            _elem583.read(iprot)
-
 
25803
            self.success.append(_elem583)
-
 
25804
          iprot.readListEnd()
-
 
25805
        else:
-
 
25806
          iprot.skip(ftype)
-
 
25807
      else:
-
 
25808
        iprot.skip(ftype)
-
 
25809
      iprot.readFieldEnd()
-
 
25810
    iprot.readStructEnd()
-
 
25811
 
-
 
25812
  def write(self, oprot):
-
 
25813
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
25814
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
25815
      return
-
 
25816
    oprot.writeStructBegin('getAllFlipkartItems_result')
-
 
25817
    if self.success is not None:
-
 
25818
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
25819
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
25820
      for iter584 in self.success:
-
 
25821
        iter584.write(oprot)
-
 
25822
      oprot.writeListEnd()
-
 
25823
      oprot.writeFieldEnd()
-
 
25824
    oprot.writeFieldStop()
-
 
25825
    oprot.writeStructEnd()
-
 
25826
 
-
 
25827
  def validate(self):
-
 
25828
    return
25679
 
25829
 
25680
 
25830
 
25681
  def __repr__(self):
25831
  def __repr__(self):
25682
    L = ['%s=%r' % (key, value)
25832
    L = ['%s=%r' % (key, value)
25683
      for key, value in self.__dict__.iteritems()]
25833
      for key, value in self.__dict__.iteritems()]