Subversion Repositories SmartDukaan

Rev

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

Rev 10140 Rev 10909
Line 1109... Line 1109...
1109
    Parameters:
1109
    Parameters:
1110
     - sku
1110
     - sku
1111
    """
1111
    """
1112
    pass
1112
    pass
1113
 
1113
 
-
 
1114
  def getAllFbbListedItems(self, ):
-
 
1115
    pass
-
 
1116
 
1114
 
1117
 
1115
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1118
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1116
  def __init__(self, iprot, oprot=None):
1119
  def __init__(self, iprot, oprot=None):
1117
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1120
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1118
 
1121
 
Line 5834... Line 5837...
5834
    self._iprot.readMessageEnd()
5837
    self._iprot.readMessageEnd()
5835
    if result.success is not None:
5838
    if result.success is not None:
5836
      return result.success
5839
      return result.success
5837
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
5840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
5838
 
5841
 
-
 
5842
  def getAllFbbListedItems(self, ):
-
 
5843
    self.send_getAllFbbListedItems()
-
 
5844
    return self.recv_getAllFbbListedItems()
-
 
5845
 
-
 
5846
  def send_getAllFbbListedItems(self, ):
-
 
5847
    self._oprot.writeMessageBegin('getAllFbbListedItems', TMessageType.CALL, self._seqid)
-
 
5848
    args = getAllFbbListedItems_args()
-
 
5849
    args.write(self._oprot)
-
 
5850
    self._oprot.writeMessageEnd()
-
 
5851
    self._oprot.trans.flush()
-
 
5852
 
-
 
5853
  def recv_getAllFbbListedItems(self, ):
-
 
5854
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
5855
    if mtype == TMessageType.EXCEPTION:
-
 
5856
      x = TApplicationException()
-
 
5857
      x.read(self._iprot)
-
 
5858
      self._iprot.readMessageEnd()
-
 
5859
      raise x
-
 
5860
    result = getAllFbbListedItems_result()
-
 
5861
    result.read(self._iprot)
-
 
5862
    self._iprot.readMessageEnd()
-
 
5863
    if result.success is not None:
-
 
5864
      return result.success
-
 
5865
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
-
 
5866
 
5839
 
5867
 
5840
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5868
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5841
  def __init__(self, handler):
5869
  def __init__(self, handler):
5842
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5870
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5843
    self._processMap["addItem"] = Processor.process_addItem
5871
    self._processMap["addItem"] = Processor.process_addItem
Line 5992... Line 6020...
5992
    self._processMap["searchFlipkartItems"] = Processor.process_searchFlipkartItems
6020
    self._processMap["searchFlipkartItems"] = Processor.process_searchFlipkartItems
5993
    self._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItems
6021
    self._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItems
5994
    self._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCount
6022
    self._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCount
5995
    self._processMap["getAllFkItems"] = Processor.process_getAllFkItems
6023
    self._processMap["getAllFkItems"] = Processor.process_getAllFkItems
5996
    self._processMap["getFlipkartItemBySkyAtFlipkart"] = Processor.process_getFlipkartItemBySkyAtFlipkart
6024
    self._processMap["getFlipkartItemBySkyAtFlipkart"] = Processor.process_getFlipkartItemBySkyAtFlipkart
-
 
6025
    self._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItems
5997
 
6026
 
5998
  def process(self, iprot, oprot):
6027
  def process(self, iprot, oprot):
5999
    (name, type, seqid) = iprot.readMessageBegin()
6028
    (name, type, seqid) = iprot.readMessageBegin()
6000
    if name not in self._processMap:
6029
    if name not in self._processMap:
6001
      iprot.skip(TType.STRUCT)
6030
      iprot.skip(TType.STRUCT)
Line 7831... Line 7860...
7831
    oprot.writeMessageBegin("getFlipkartItemBySkyAtFlipkart", TMessageType.REPLY, seqid)
7860
    oprot.writeMessageBegin("getFlipkartItemBySkyAtFlipkart", TMessageType.REPLY, seqid)
7832
    result.write(oprot)
7861
    result.write(oprot)
7833
    oprot.writeMessageEnd()
7862
    oprot.writeMessageEnd()
7834
    oprot.trans.flush()
7863
    oprot.trans.flush()
7835
 
7864
 
-
 
7865
  def process_getAllFbbListedItems(self, seqid, iprot, oprot):
-
 
7866
    args = getAllFbbListedItems_args()
-
 
7867
    args.read(iprot)
-
 
7868
    iprot.readMessageEnd()
-
 
7869
    result = getAllFbbListedItems_result()
-
 
7870
    result.success = self._handler.getAllFbbListedItems()
-
 
7871
    oprot.writeMessageBegin("getAllFbbListedItems", TMessageType.REPLY, seqid)
-
 
7872
    result.write(oprot)
-
 
7873
    oprot.writeMessageEnd()
-
 
7874
    oprot.trans.flush()
-
 
7875
 
7836
 
7876
 
7837
# HELPER FUNCTIONS AND STRUCTURES
7877
# HELPER FUNCTIONS AND STRUCTURES
7838
 
7878
 
7839
class addItem_args:
7879
class addItem_args:
7840
  """
7880
  """
Line 27384... Line 27424...
27384
      oprot.writeFieldEnd()
27424
      oprot.writeFieldEnd()
27385
    oprot.writeFieldStop()
27425
    oprot.writeFieldStop()
27386
    oprot.writeStructEnd()
27426
    oprot.writeStructEnd()
27387
 
27427
 
27388
  def validate(self):
27428
  def validate(self):
-
 
27429
    return
-
 
27430
 
-
 
27431
 
-
 
27432
  def __repr__(self):
-
 
27433
    L = ['%s=%r' % (key, value)
-
 
27434
      for key, value in self.__dict__.iteritems()]
-
 
27435
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
27436
 
-
 
27437
  def __eq__(self, other):
-
 
27438
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
27439
 
-
 
27440
  def __ne__(self, other):
-
 
27441
    return not (self == other)
-
 
27442
 
-
 
27443
class getAllFbbListedItems_args:
-
 
27444
 
-
 
27445
  thrift_spec = (
-
 
27446
  )
-
 
27447
 
-
 
27448
  def read(self, iprot):
-
 
27449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
27450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
27451
      return
-
 
27452
    iprot.readStructBegin()
-
 
27453
    while True:
-
 
27454
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
27455
      if ftype == TType.STOP:
-
 
27456
        break
-
 
27457
      else:
-
 
27458
        iprot.skip(ftype)
-
 
27459
      iprot.readFieldEnd()
-
 
27460
    iprot.readStructEnd()
-
 
27461
 
-
 
27462
  def write(self, oprot):
-
 
27463
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
27464
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
27465
      return
-
 
27466
    oprot.writeStructBegin('getAllFbbListedItems_args')
-
 
27467
    oprot.writeFieldStop()
-
 
27468
    oprot.writeStructEnd()
-
 
27469
 
-
 
27470
  def validate(self):
-
 
27471
    return
-
 
27472
 
-
 
27473
 
-
 
27474
  def __repr__(self):
-
 
27475
    L = ['%s=%r' % (key, value)
-
 
27476
      for key, value in self.__dict__.iteritems()]
-
 
27477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
27478
 
-
 
27479
  def __eq__(self, other):
-
 
27480
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
27481
 
-
 
27482
  def __ne__(self, other):
-
 
27483
    return not (self == other)
-
 
27484
 
-
 
27485
class getAllFbbListedItems_result:
-
 
27486
  """
-
 
27487
  Attributes:
-
 
27488
   - success
-
 
27489
  """
-
 
27490
 
-
 
27491
  thrift_spec = (
-
 
27492
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
-
 
27493
  )
-
 
27494
 
-
 
27495
  def __init__(self, success=None,):
-
 
27496
    self.success = success
-
 
27497
 
-
 
27498
  def read(self, iprot):
-
 
27499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
27500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
27501
      return
-
 
27502
    iprot.readStructBegin()
-
 
27503
    while True:
-
 
27504
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
27505
      if ftype == TType.STOP:
-
 
27506
        break
-
 
27507
      if fid == 0:
-
 
27508
        if ftype == TType.LIST:
-
 
27509
          self.success = []
-
 
27510
          (_etype623, _size620) = iprot.readListBegin()
-
 
27511
          for _i624 in xrange(_size620):
-
 
27512
            _elem625 = Amazonlisted()
-
 
27513
            _elem625.read(iprot)
-
 
27514
            self.success.append(_elem625)
-
 
27515
          iprot.readListEnd()
-
 
27516
        else:
-
 
27517
          iprot.skip(ftype)
-
 
27518
      else:
-
 
27519
        iprot.skip(ftype)
-
 
27520
      iprot.readFieldEnd()
-
 
27521
    iprot.readStructEnd()
-
 
27522
 
-
 
27523
  def write(self, oprot):
-
 
27524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
27525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
27526
      return
-
 
27527
    oprot.writeStructBegin('getAllFbbListedItems_result')
-
 
27528
    if self.success is not None:
-
 
27529
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
27530
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
27531
      for iter626 in self.success:
-
 
27532
        iter626.write(oprot)
-
 
27533
      oprot.writeListEnd()
-
 
27534
      oprot.writeFieldEnd()
-
 
27535
    oprot.writeFieldStop()
-
 
27536
    oprot.writeStructEnd()
-
 
27537
 
-
 
27538
  def validate(self):
27389
    return
27539
    return
27390
 
27540
 
27391
 
27541
 
27392
  def __repr__(self):
27542
  def __repr__(self):
27393
    L = ['%s=%r' % (key, value)
27543
    L = ['%s=%r' % (key, value)