Subversion Repositories SmartDukaan

Rev

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

Rev 9816 Rev 9861
Line 1032... Line 1032...
1032
     - timestamp
1032
     - timestamp
1033
     - source
1033
     - source
1034
    """
1034
    """
1035
    pass
1035
    pass
1036
 
1036
 
-
 
1037
  def updateItemHoldInventory(self, itemHoldMap):
-
 
1038
    """
-
 
1039
    Parameters:
-
 
1040
     - itemHoldMap
-
 
1041
    """
-
 
1042
    pass
-
 
1043
 
1037
 
1044
 
1038
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1045
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1039
  def __init__(self, iprot, oprot=None):
1046
  def __init__(self, iprot, oprot=None):
1040
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1047
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1041
 
1048
 
Line 5404... Line 5411...
5404
    result = updateMarketPlacePriceUpdateStatus_result()
5411
    result = updateMarketPlacePriceUpdateStatus_result()
5405
    result.read(self._iprot)
5412
    result.read(self._iprot)
5406
    self._iprot.readMessageEnd()
5413
    self._iprot.readMessageEnd()
5407
    return
5414
    return
5408
 
5415
 
-
 
5416
  def updateItemHoldInventory(self, itemHoldMap):
-
 
5417
    """
-
 
5418
    Parameters:
-
 
5419
     - itemHoldMap
-
 
5420
    """
-
 
5421
    self.send_updateItemHoldInventory(itemHoldMap)
-
 
5422
    self.recv_updateItemHoldInventory()
-
 
5423
 
-
 
5424
  def send_updateItemHoldInventory(self, itemHoldMap):
-
 
5425
    self._oprot.writeMessageBegin('updateItemHoldInventory', TMessageType.CALL, self._seqid)
-
 
5426
    args = updateItemHoldInventory_args()
-
 
5427
    args.itemHoldMap = itemHoldMap
-
 
5428
    args.write(self._oprot)
-
 
5429
    self._oprot.writeMessageEnd()
-
 
5430
    self._oprot.trans.flush()
-
 
5431
 
-
 
5432
  def recv_updateItemHoldInventory(self, ):
-
 
5433
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
5434
    if mtype == TMessageType.EXCEPTION:
-
 
5435
      x = TApplicationException()
-
 
5436
      x.read(self._iprot)
-
 
5437
      self._iprot.readMessageEnd()
-
 
5438
      raise x
-
 
5439
    result = updateItemHoldInventory_result()
-
 
5440
    result.read(self._iprot)
-
 
5441
    self._iprot.readMessageEnd()
-
 
5442
    return
-
 
5443
 
5409
 
5444
 
5410
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5445
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5411
  def __init__(self, handler):
5446
  def __init__(self, handler):
5412
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5447
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5413
    self._processMap["addItem"] = Processor.process_addItem
5448
    self._processMap["addItem"] = Processor.process_addItem
Line 5550... Line 5585...
5550
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
5585
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
5551
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
5586
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
5552
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
5587
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
5553
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
5588
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
5554
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
5589
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
-
 
5590
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
5555
 
5591
 
5556
  def process(self, iprot, oprot):
5592
  def process(self, iprot, oprot):
5557
    (name, type, seqid) = iprot.readMessageBegin()
5593
    (name, type, seqid) = iprot.readMessageBegin()
5558
    if name not in self._processMap:
5594
    if name not in self._processMap:
5559
      iprot.skip(TType.STRUCT)
5595
      iprot.skip(TType.STRUCT)
Line 7257... Line 7293...
7257
    oprot.writeMessageBegin("updateMarketPlacePriceUpdateStatus", TMessageType.REPLY, seqid)
7293
    oprot.writeMessageBegin("updateMarketPlacePriceUpdateStatus", TMessageType.REPLY, seqid)
7258
    result.write(oprot)
7294
    result.write(oprot)
7259
    oprot.writeMessageEnd()
7295
    oprot.writeMessageEnd()
7260
    oprot.trans.flush()
7296
    oprot.trans.flush()
7261
 
7297
 
-
 
7298
  def process_updateItemHoldInventory(self, seqid, iprot, oprot):
-
 
7299
    args = updateItemHoldInventory_args()
-
 
7300
    args.read(iprot)
-
 
7301
    iprot.readMessageEnd()
-
 
7302
    result = updateItemHoldInventory_result()
-
 
7303
    self._handler.updateItemHoldInventory(args.itemHoldMap)
-
 
7304
    oprot.writeMessageBegin("updateItemHoldInventory", TMessageType.REPLY, seqid)
-
 
7305
    result.write(oprot)
-
 
7306
    oprot.writeMessageEnd()
-
 
7307
    oprot.trans.flush()
-
 
7308
 
7262
 
7309
 
7263
# HELPER FUNCTIONS AND STRUCTURES
7310
# HELPER FUNCTIONS AND STRUCTURES
7264
 
7311
 
7265
class addItem_args:
7312
class addItem_args:
7266
  """
7313
  """
Line 25342... Line 25389...
25342
    oprot.writeFieldStop()
25389
    oprot.writeFieldStop()
25343
    oprot.writeStructEnd()
25390
    oprot.writeStructEnd()
25344
 
25391
 
25345
  def validate(self):
25392
  def validate(self):
25346
    return
25393
    return
-
 
25394
 
-
 
25395
 
-
 
25396
  def __repr__(self):
-
 
25397
    L = ['%s=%r' % (key, value)
-
 
25398
      for key, value in self.__dict__.iteritems()]
-
 
25399
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
25400
 
-
 
25401
  def __eq__(self, other):
-
 
25402
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
25403
 
-
 
25404
  def __ne__(self, other):
-
 
25405
    return not (self == other)
-
 
25406
 
-
 
25407
class updateItemHoldInventory_args:
-
 
25408
  """
-
 
25409
  Attributes:
-
 
25410
   - itemHoldMap
-
 
25411
  """
-
 
25412
 
-
 
25413
  thrift_spec = (
-
 
25414
    None, # 0
-
 
25415
    (1, TType.MAP, 'itemHoldMap', (TType.I64,None,TType.I64,None), None, ), # 1
-
 
25416
  )
-
 
25417
 
-
 
25418
  def __init__(self, itemHoldMap=None,):
-
 
25419
    self.itemHoldMap = itemHoldMap
-
 
25420
 
-
 
25421
  def read(self, iprot):
-
 
25422
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
25423
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
25424
      return
-
 
25425
    iprot.readStructBegin()
-
 
25426
    while True:
-
 
25427
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
25428
      if ftype == TType.STOP:
-
 
25429
        break
-
 
25430
      if fid == 1:
-
 
25431
        if ftype == TType.MAP:
-
 
25432
          self.itemHoldMap = {}
-
 
25433
          (_ktype570, _vtype571, _size569 ) = iprot.readMapBegin() 
-
 
25434
          for _i573 in xrange(_size569):
-
 
25435
            _key574 = iprot.readI64();
-
 
25436
            _val575 = iprot.readI64();
-
 
25437
            self.itemHoldMap[_key574] = _val575
-
 
25438
          iprot.readMapEnd()
-
 
25439
        else:
-
 
25440
          iprot.skip(ftype)
-
 
25441
      else:
-
 
25442
        iprot.skip(ftype)
-
 
25443
      iprot.readFieldEnd()
-
 
25444
    iprot.readStructEnd()
-
 
25445
 
-
 
25446
  def write(self, oprot):
-
 
25447
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
25448
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
25449
      return
-
 
25450
    oprot.writeStructBegin('updateItemHoldInventory_args')
-
 
25451
    if self.itemHoldMap is not None:
-
 
25452
      oprot.writeFieldBegin('itemHoldMap', TType.MAP, 1)
-
 
25453
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itemHoldMap))
-
 
25454
      for kiter576,viter577 in self.itemHoldMap.items():
-
 
25455
        oprot.writeI64(kiter576)
-
 
25456
        oprot.writeI64(viter577)
-
 
25457
      oprot.writeMapEnd()
-
 
25458
      oprot.writeFieldEnd()
-
 
25459
    oprot.writeFieldStop()
-
 
25460
    oprot.writeStructEnd()
-
 
25461
 
-
 
25462
  def validate(self):
-
 
25463
    return
-
 
25464
 
-
 
25465
 
-
 
25466
  def __repr__(self):
-
 
25467
    L = ['%s=%r' % (key, value)
-
 
25468
      for key, value in self.__dict__.iteritems()]
-
 
25469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
25470
 
-
 
25471
  def __eq__(self, other):
-
 
25472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
25473
 
-
 
25474
  def __ne__(self, other):
-
 
25475
    return not (self == other)
-
 
25476
 
-
 
25477
class updateItemHoldInventory_result:
-
 
25478
 
-
 
25479
  thrift_spec = (
-
 
25480
  )
-
 
25481
 
-
 
25482
  def read(self, iprot):
-
 
25483
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
25484
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
25485
      return
-
 
25486
    iprot.readStructBegin()
-
 
25487
    while True:
-
 
25488
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
25489
      if ftype == TType.STOP:
-
 
25490
        break
-
 
25491
      else:
-
 
25492
        iprot.skip(ftype)
-
 
25493
      iprot.readFieldEnd()
-
 
25494
    iprot.readStructEnd()
-
 
25495
 
-
 
25496
  def write(self, oprot):
-
 
25497
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
25498
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
25499
      return
-
 
25500
    oprot.writeStructBegin('updateItemHoldInventory_result')
-
 
25501
    oprot.writeFieldStop()
-
 
25502
    oprot.writeStructEnd()
-
 
25503
 
-
 
25504
  def validate(self):
-
 
25505
    return
25347
 
25506
 
25348
 
25507
 
25349
  def __repr__(self):
25508
  def __repr__(self):
25350
    L = ['%s=%r' % (key, value)
25509
    L = ['%s=%r' % (key, value)
25351
      for key, value in self.__dict__.iteritems()]
25510
      for key, value in self.__dict__.iteritems()]