Subversion Repositories SmartDukaan

Rev

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

Rev 10909 Rev 10924
Line 1112... Line 1112...
1112
    pass
1112
    pass
1113
 
1113
 
1114
  def getAllFbbListedItems(self, ):
1114
  def getAllFbbListedItems(self, ):
1115
    pass
1115
    pass
1116
 
1116
 
-
 
1117
  def getAllFbbPricingItems(self, ):
-
 
1118
    pass
-
 
1119
 
1117
 
1120
 
1118
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1121
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1119
  def __init__(self, iprot, oprot=None):
1122
  def __init__(self, iprot, oprot=None):
1120
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1123
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1121
 
1124
 
Line 5862... Line 5865...
5862
    self._iprot.readMessageEnd()
5865
    self._iprot.readMessageEnd()
5863
    if result.success is not None:
5866
    if result.success is not None:
5864
      return result.success
5867
      return result.success
5865
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
5868
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
5866
 
5869
 
-
 
5870
  def getAllFbbPricingItems(self, ):
-
 
5871
    self.send_getAllFbbPricingItems()
-
 
5872
    return self.recv_getAllFbbPricingItems()
-
 
5873
 
-
 
5874
  def send_getAllFbbPricingItems(self, ):
-
 
5875
    self._oprot.writeMessageBegin('getAllFbbPricingItems', TMessageType.CALL, self._seqid)
-
 
5876
    args = getAllFbbPricingItems_args()
-
 
5877
    args.write(self._oprot)
-
 
5878
    self._oprot.writeMessageEnd()
-
 
5879
    self._oprot.trans.flush()
-
 
5880
 
-
 
5881
  def recv_getAllFbbPricingItems(self, ):
-
 
5882
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
5883
    if mtype == TMessageType.EXCEPTION:
-
 
5884
      x = TApplicationException()
-
 
5885
      x.read(self._iprot)
-
 
5886
      self._iprot.readMessageEnd()
-
 
5887
      raise x
-
 
5888
    result = getAllFbbPricingItems_result()
-
 
5889
    result.read(self._iprot)
-
 
5890
    self._iprot.readMessageEnd()
-
 
5891
    if result.success is not None:
-
 
5892
      return result.success
-
 
5893
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbPricingItems failed: unknown result");
-
 
5894
 
5867
 
5895
 
5868
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5896
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5869
  def __init__(self, handler):
5897
  def __init__(self, handler):
5870
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5898
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5871
    self._processMap["addItem"] = Processor.process_addItem
5899
    self._processMap["addItem"] = Processor.process_addItem
Line 6021... Line 6049...
6021
    self._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItems
6049
    self._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItems
6022
    self._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCount
6050
    self._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCount
6023
    self._processMap["getAllFkItems"] = Processor.process_getAllFkItems
6051
    self._processMap["getAllFkItems"] = Processor.process_getAllFkItems
6024
    self._processMap["getFlipkartItemBySkyAtFlipkart"] = Processor.process_getFlipkartItemBySkyAtFlipkart
6052
    self._processMap["getFlipkartItemBySkyAtFlipkart"] = Processor.process_getFlipkartItemBySkyAtFlipkart
6025
    self._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItems
6053
    self._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItems
-
 
6054
    self._processMap["getAllFbbPricingItems"] = Processor.process_getAllFbbPricingItems
6026
 
6055
 
6027
  def process(self, iprot, oprot):
6056
  def process(self, iprot, oprot):
6028
    (name, type, seqid) = iprot.readMessageBegin()
6057
    (name, type, seqid) = iprot.readMessageBegin()
6029
    if name not in self._processMap:
6058
    if name not in self._processMap:
6030
      iprot.skip(TType.STRUCT)
6059
      iprot.skip(TType.STRUCT)
Line 7871... Line 7900...
7871
    oprot.writeMessageBegin("getAllFbbListedItems", TMessageType.REPLY, seqid)
7900
    oprot.writeMessageBegin("getAllFbbListedItems", TMessageType.REPLY, seqid)
7872
    result.write(oprot)
7901
    result.write(oprot)
7873
    oprot.writeMessageEnd()
7902
    oprot.writeMessageEnd()
7874
    oprot.trans.flush()
7903
    oprot.trans.flush()
7875
 
7904
 
-
 
7905
  def process_getAllFbbPricingItems(self, seqid, iprot, oprot):
-
 
7906
    args = getAllFbbPricingItems_args()
-
 
7907
    args.read(iprot)
-
 
7908
    iprot.readMessageEnd()
-
 
7909
    result = getAllFbbPricingItems_result()
-
 
7910
    result.success = self._handler.getAllFbbPricingItems()
-
 
7911
    oprot.writeMessageBegin("getAllFbbPricingItems", TMessageType.REPLY, seqid)
-
 
7912
    result.write(oprot)
-
 
7913
    oprot.writeMessageEnd()
-
 
7914
    oprot.trans.flush()
-
 
7915
 
7876
 
7916
 
7877
# HELPER FUNCTIONS AND STRUCTURES
7917
# HELPER FUNCTIONS AND STRUCTURES
7878
 
7918
 
7879
class addItem_args:
7919
class addItem_args:
7880
  """
7920
  """
Line 27533... Line 27573...
27533
      oprot.writeListEnd()
27573
      oprot.writeListEnd()
27534
      oprot.writeFieldEnd()
27574
      oprot.writeFieldEnd()
27535
    oprot.writeFieldStop()
27575
    oprot.writeFieldStop()
27536
    oprot.writeStructEnd()
27576
    oprot.writeStructEnd()
27537
 
27577
 
-
 
27578
  def validate(self):
-
 
27579
    return
-
 
27580
 
-
 
27581
 
-
 
27582
  def __repr__(self):
-
 
27583
    L = ['%s=%r' % (key, value)
-
 
27584
      for key, value in self.__dict__.iteritems()]
-
 
27585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
27586
 
-
 
27587
  def __eq__(self, other):
-
 
27588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
27589
 
-
 
27590
  def __ne__(self, other):
-
 
27591
    return not (self == other)
-
 
27592
 
-
 
27593
class getAllFbbPricingItems_args:
-
 
27594
 
-
 
27595
  thrift_spec = (
-
 
27596
  )
-
 
27597
 
-
 
27598
  def read(self, iprot):
-
 
27599
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
27600
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
27601
      return
-
 
27602
    iprot.readStructBegin()
-
 
27603
    while True:
-
 
27604
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
27605
      if ftype == TType.STOP:
-
 
27606
        break
-
 
27607
      else:
-
 
27608
        iprot.skip(ftype)
-
 
27609
      iprot.readFieldEnd()
-
 
27610
    iprot.readStructEnd()
-
 
27611
 
-
 
27612
  def write(self, oprot):
-
 
27613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
27614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
27615
      return
-
 
27616
    oprot.writeStructBegin('getAllFbbPricingItems_args')
-
 
27617
    oprot.writeFieldStop()
-
 
27618
    oprot.writeStructEnd()
-
 
27619
 
-
 
27620
  def validate(self):
-
 
27621
    return
-
 
27622
 
-
 
27623
 
-
 
27624
  def __repr__(self):
-
 
27625
    L = ['%s=%r' % (key, value)
-
 
27626
      for key, value in self.__dict__.iteritems()]
-
 
27627
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
27628
 
-
 
27629
  def __eq__(self, other):
-
 
27630
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
27631
 
-
 
27632
  def __ne__(self, other):
-
 
27633
    return not (self == other)
-
 
27634
 
-
 
27635
class getAllFbbPricingItems_result:
-
 
27636
  """
-
 
27637
  Attributes:
-
 
27638
   - success
-
 
27639
  """
-
 
27640
 
-
 
27641
  thrift_spec = (
-
 
27642
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
-
 
27643
  )
-
 
27644
 
-
 
27645
  def __init__(self, success=None,):
-
 
27646
    self.success = success
-
 
27647
 
-
 
27648
  def read(self, iprot):
-
 
27649
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
27650
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
27651
      return
-
 
27652
    iprot.readStructBegin()
-
 
27653
    while True:
-
 
27654
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
27655
      if ftype == TType.STOP:
-
 
27656
        break
-
 
27657
      if fid == 0:
-
 
27658
        if ftype == TType.LIST:
-
 
27659
          self.success = []
-
 
27660
          (_etype630, _size627) = iprot.readListBegin()
-
 
27661
          for _i631 in xrange(_size627):
-
 
27662
            _elem632 = Amazonlisted()
-
 
27663
            _elem632.read(iprot)
-
 
27664
            self.success.append(_elem632)
-
 
27665
          iprot.readListEnd()
-
 
27666
        else:
-
 
27667
          iprot.skip(ftype)
-
 
27668
      else:
-
 
27669
        iprot.skip(ftype)
-
 
27670
      iprot.readFieldEnd()
-
 
27671
    iprot.readStructEnd()
-
 
27672
 
-
 
27673
  def write(self, oprot):
-
 
27674
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
27675
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
27676
      return
-
 
27677
    oprot.writeStructBegin('getAllFbbPricingItems_result')
-
 
27678
    if self.success is not None:
-
 
27679
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
27680
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
27681
      for iter633 in self.success:
-
 
27682
        iter633.write(oprot)
-
 
27683
      oprot.writeListEnd()
-
 
27684
      oprot.writeFieldEnd()
-
 
27685
    oprot.writeFieldStop()
-
 
27686
    oprot.writeStructEnd()
-
 
27687
 
27538
  def validate(self):
27688
  def validate(self):
27539
    return
27689
    return
27540
 
27690
 
27541
 
27691
 
27542
  def __repr__(self):
27692
  def __repr__(self):