Subversion Repositories SmartDukaan

Rev

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

Rev 14780 Rev 15702
Line 1319... Line 1319...
1319
    Parameters:
1319
    Parameters:
1320
     - catalogItemId
1320
     - catalogItemId
1321
    """
1321
    """
1322
    pass
1322
    pass
1323
 
1323
 
-
 
1324
  def getAllItemstoListOnFbd(self, ):
-
 
1325
    pass
-
 
1326
 
1324
 
1327
 
1325
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1328
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1326
  def __init__(self, iprot, oprot=None):
1329
  def __init__(self, iprot, oprot=None):
1327
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1330
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1328
 
1331
 
Line 7023... Line 7026...
7023
    self._iprot.readMessageEnd()
7026
    self._iprot.readMessageEnd()
7024
    if result.success is not None:
7027
    if result.success is not None:
7025
      return result.success
7028
      return result.success
7026
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPricingForDtr failed: unknown result");
7029
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPricingForDtr failed: unknown result");
7027
 
7030
 
-
 
7031
  def getAllItemstoListOnFbd(self, ):
-
 
7032
    self.send_getAllItemstoListOnFbd()
-
 
7033
    return self.recv_getAllItemstoListOnFbd()
-
 
7034
 
-
 
7035
  def send_getAllItemstoListOnFbd(self, ):
-
 
7036
    self._oprot.writeMessageBegin('getAllItemstoListOnFbd', TMessageType.CALL, self._seqid)
-
 
7037
    args = getAllItemstoListOnFbd_args()
-
 
7038
    args.write(self._oprot)
-
 
7039
    self._oprot.writeMessageEnd()
-
 
7040
    self._oprot.trans.flush()
-
 
7041
 
-
 
7042
  def recv_getAllItemstoListOnFbd(self, ):
-
 
7043
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7044
    if mtype == TMessageType.EXCEPTION:
-
 
7045
      x = TApplicationException()
-
 
7046
      x.read(self._iprot)
-
 
7047
      self._iprot.readMessageEnd()
-
 
7048
      raise x
-
 
7049
    result = getAllItemstoListOnFbd_result()
-
 
7050
    result.read(self._iprot)
-
 
7051
    self._iprot.readMessageEnd()
-
 
7052
    if result.success is not None:
-
 
7053
      return result.success
-
 
7054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbd failed: unknown result");
-
 
7055
 
7028
 
7056
 
7029
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7057
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7030
  def __init__(self, handler):
7058
  def __init__(self, handler):
7031
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7059
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7032
    self._processMap["addItem"] = Processor.process_addItem
7060
    self._processMap["addItem"] = Processor.process_addItem
Line 7214... Line 7242...
7214
    self._processMap["checkServices"] = Processor.process_checkServices
7242
    self._processMap["checkServices"] = Processor.process_checkServices
7215
    self._processMap["addHsItem"] = Processor.process_addHsItem
7243
    self._processMap["addHsItem"] = Processor.process_addHsItem
7216
    self._processMap["getHsItem"] = Processor.process_getHsItem
7244
    self._processMap["getHsItem"] = Processor.process_getHsItem
7217
    self._processMap["updateHsItem"] = Processor.process_updateHsItem
7245
    self._processMap["updateHsItem"] = Processor.process_updateHsItem
7218
    self._processMap["getPricingForDtr"] = Processor.process_getPricingForDtr
7246
    self._processMap["getPricingForDtr"] = Processor.process_getPricingForDtr
-
 
7247
    self._processMap["getAllItemstoListOnFbd"] = Processor.process_getAllItemstoListOnFbd
7219
 
7248
 
7220
  def process(self, iprot, oprot):
7249
  def process(self, iprot, oprot):
7221
    (name, type, seqid) = iprot.readMessageBegin()
7250
    (name, type, seqid) = iprot.readMessageBegin()
7222
    if name not in self._processMap:
7251
    if name not in self._processMap:
7223
      iprot.skip(TType.STRUCT)
7252
      iprot.skip(TType.STRUCT)
Line 9431... Line 9460...
9431
    oprot.writeMessageBegin("getPricingForDtr", TMessageType.REPLY, seqid)
9460
    oprot.writeMessageBegin("getPricingForDtr", TMessageType.REPLY, seqid)
9432
    result.write(oprot)
9461
    result.write(oprot)
9433
    oprot.writeMessageEnd()
9462
    oprot.writeMessageEnd()
9434
    oprot.trans.flush()
9463
    oprot.trans.flush()
9435
 
9464
 
-
 
9465
  def process_getAllItemstoListOnFbd(self, seqid, iprot, oprot):
-
 
9466
    args = getAllItemstoListOnFbd_args()
-
 
9467
    args.read(iprot)
-
 
9468
    iprot.readMessageEnd()
-
 
9469
    result = getAllItemstoListOnFbd_result()
-
 
9470
    result.success = self._handler.getAllItemstoListOnFbd()
-
 
9471
    oprot.writeMessageBegin("getAllItemstoListOnFbd", TMessageType.REPLY, seqid)
-
 
9472
    result.write(oprot)
-
 
9473
    oprot.writeMessageEnd()
-
 
9474
    oprot.trans.flush()
-
 
9475
 
9436
 
9476
 
9437
# HELPER FUNCTIONS AND STRUCTURES
9477
# HELPER FUNCTIONS AND STRUCTURES
9438
 
9478
 
9439
class addItem_args:
9479
class addItem_args:
9440
  """
9480
  """
Line 33231... Line 33271...
33231
      oprot.writeFieldEnd()
33271
      oprot.writeFieldEnd()
33232
    oprot.writeFieldStop()
33272
    oprot.writeFieldStop()
33233
    oprot.writeStructEnd()
33273
    oprot.writeStructEnd()
33234
 
33274
 
33235
  def validate(self):
33275
  def validate(self):
-
 
33276
    return
-
 
33277
 
-
 
33278
 
-
 
33279
  def __repr__(self):
-
 
33280
    L = ['%s=%r' % (key, value)
-
 
33281
      for key, value in self.__dict__.iteritems()]
-
 
33282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33283
 
-
 
33284
  def __eq__(self, other):
-
 
33285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33286
 
-
 
33287
  def __ne__(self, other):
-
 
33288
    return not (self == other)
-
 
33289
 
-
 
33290
class getAllItemstoListOnFbd_args:
-
 
33291
 
-
 
33292
  thrift_spec = (
-
 
33293
  )
-
 
33294
 
-
 
33295
  def read(self, iprot):
-
 
33296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
33297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
33298
      return
-
 
33299
    iprot.readStructBegin()
-
 
33300
    while True:
-
 
33301
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
33302
      if ftype == TType.STOP:
-
 
33303
        break
-
 
33304
      else:
-
 
33305
        iprot.skip(ftype)
-
 
33306
      iprot.readFieldEnd()
-
 
33307
    iprot.readStructEnd()
-
 
33308
 
-
 
33309
  def write(self, oprot):
-
 
33310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33312
      return
-
 
33313
    oprot.writeStructBegin('getAllItemstoListOnFbd_args')
-
 
33314
    oprot.writeFieldStop()
-
 
33315
    oprot.writeStructEnd()
-
 
33316
 
-
 
33317
  def validate(self):
-
 
33318
    return
-
 
33319
 
-
 
33320
 
-
 
33321
  def __repr__(self):
-
 
33322
    L = ['%s=%r' % (key, value)
-
 
33323
      for key, value in self.__dict__.iteritems()]
-
 
33324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33325
 
-
 
33326
  def __eq__(self, other):
-
 
33327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33328
 
-
 
33329
  def __ne__(self, other):
-
 
33330
    return not (self == other)
-
 
33331
 
-
 
33332
class getAllItemstoListOnFbd_result:
-
 
33333
  """
-
 
33334
  Attributes:
-
 
33335
   - success
-
 
33336
  """
-
 
33337
 
-
 
33338
  thrift_spec = (
-
 
33339
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
-
 
33340
  )
-
 
33341
 
-
 
33342
  def __init__(self, success=None,):
-
 
33343
    self.success = success
-
 
33344
 
-
 
33345
  def read(self, iprot):
-
 
33346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
33347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
33348
      return
-
 
33349
    iprot.readStructBegin()
-
 
33350
    while True:
-
 
33351
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
33352
      if ftype == TType.STOP:
-
 
33353
        break
-
 
33354
      if fid == 0:
-
 
33355
        if ftype == TType.LIST:
-
 
33356
          self.success = []
-
 
33357
          (_etype855, _size852) = iprot.readListBegin()
-
 
33358
          for _i856 in xrange(_size852):
-
 
33359
            _elem857 = Amazonlisted()
-
 
33360
            _elem857.read(iprot)
-
 
33361
            self.success.append(_elem857)
-
 
33362
          iprot.readListEnd()
-
 
33363
        else:
-
 
33364
          iprot.skip(ftype)
-
 
33365
      else:
-
 
33366
        iprot.skip(ftype)
-
 
33367
      iprot.readFieldEnd()
-
 
33368
    iprot.readStructEnd()
-
 
33369
 
-
 
33370
  def write(self, oprot):
-
 
33371
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33372
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33373
      return
-
 
33374
    oprot.writeStructBegin('getAllItemstoListOnFbd_result')
-
 
33375
    if self.success is not None:
-
 
33376
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
33377
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
33378
      for iter858 in self.success:
-
 
33379
        iter858.write(oprot)
-
 
33380
      oprot.writeListEnd()
-
 
33381
      oprot.writeFieldEnd()
-
 
33382
    oprot.writeFieldStop()
-
 
33383
    oprot.writeStructEnd()
-
 
33384
 
-
 
33385
  def validate(self):
33236
    return
33386
    return
33237
 
33387
 
33238
 
33388
 
33239
  def __repr__(self):
33389
  def __repr__(self):
33240
    L = ['%s=%r' % (key, value)
33390
    L = ['%s=%r' % (key, value)