Subversion Repositories SmartDukaan

Rev

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

Rev 19413 Rev 19416
Line 701... Line 701...
701
    Parameters:
701
    Parameters:
702
     - itemIds
702
     - itemIds
703
    """
703
    """
704
    pass
704
    pass
705
 
705
 
706
  def getItemPincodeAvailability(self, itemIds, pincode):
706
  def getItemPincodeAvailability(self, itempricing, pincode):
707
    """
707
    """
708
    Parameters:
708
    Parameters:
709
     - itemIds
709
     - itempricing
710
     - pincode
710
     - pincode
711
    """
711
    """
712
    pass
712
    pass
713
 
713
 
714
 
714
 
Line 3404... Line 3404...
3404
    self._iprot.readMessageEnd()
3404
    self._iprot.readMessageEnd()
3405
    if result.success is not None:
3405
    if result.success is not None:
3406
      return result.success
3406
      return result.success
3407
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemLocationAvailabilityCacheByItemId failed: unknown result");
3407
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemLocationAvailabilityCacheByItemId failed: unknown result");
3408
 
3408
 
3409
  def getItemPincodeAvailability(self, itemIds, pincode):
3409
  def getItemPincodeAvailability(self, itempricing, pincode):
3410
    """
3410
    """
3411
    Parameters:
3411
    Parameters:
3412
     - itemIds
3412
     - itempricing
3413
     - pincode
3413
     - pincode
3414
    """
3414
    """
3415
    self.send_getItemPincodeAvailability(itemIds, pincode)
3415
    self.send_getItemPincodeAvailability(itempricing, pincode)
3416
    return self.recv_getItemPincodeAvailability()
3416
    return self.recv_getItemPincodeAvailability()
3417
 
3417
 
3418
  def send_getItemPincodeAvailability(self, itemIds, pincode):
3418
  def send_getItemPincodeAvailability(self, itempricing, pincode):
3419
    self._oprot.writeMessageBegin('getItemPincodeAvailability', TMessageType.CALL, self._seqid)
3419
    self._oprot.writeMessageBegin('getItemPincodeAvailability', TMessageType.CALL, self._seqid)
3420
    args = getItemPincodeAvailability_args()
3420
    args = getItemPincodeAvailability_args()
3421
    args.itemIds = itemIds
3421
    args.itempricing = itempricing
3422
    args.pincode = pincode
3422
    args.pincode = pincode
3423
    args.write(self._oprot)
3423
    args.write(self._oprot)
3424
    self._oprot.writeMessageEnd()
3424
    self._oprot.writeMessageEnd()
3425
    self._oprot.trans.flush()
3425
    self._oprot.trans.flush()
3426
 
3426
 
Line 4557... Line 4557...
4557
  def process_getItemPincodeAvailability(self, seqid, iprot, oprot):
4557
  def process_getItemPincodeAvailability(self, seqid, iprot, oprot):
4558
    args = getItemPincodeAvailability_args()
4558
    args = getItemPincodeAvailability_args()
4559
    args.read(iprot)
4559
    args.read(iprot)
4560
    iprot.readMessageEnd()
4560
    iprot.readMessageEnd()
4561
    result = getItemPincodeAvailability_result()
4561
    result = getItemPincodeAvailability_result()
4562
    result.success = self._handler.getItemPincodeAvailability(args.itemIds, args.pincode)
4562
    result.success = self._handler.getItemPincodeAvailability(args.itempricing, args.pincode)
4563
    oprot.writeMessageBegin("getItemPincodeAvailability", TMessageType.REPLY, seqid)
4563
    oprot.writeMessageBegin("getItemPincodeAvailability", TMessageType.REPLY, seqid)
4564
    result.write(oprot)
4564
    result.write(oprot)
4565
    oprot.writeMessageEnd()
4565
    oprot.writeMessageEnd()
4566
    oprot.trans.flush()
4566
    oprot.trans.flush()
4567
 
4567
 
Line 15606... Line 15606...
15606
    return not (self == other)
15606
    return not (self == other)
15607
 
15607
 
15608
class getItemPincodeAvailability_args:
15608
class getItemPincodeAvailability_args:
15609
  """
15609
  """
15610
  Attributes:
15610
  Attributes:
15611
   - itemIds
15611
   - itempricing
15612
   - pincode
15612
   - pincode
15613
  """
15613
  """
15614
 
15614
 
15615
  thrift_spec = (
15615
  thrift_spec = (
15616
    None, # 0
15616
    None, # 0
15617
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
15617
    (1, TType.MAP, 'itempricing', (TType.I64,None,TType.I64,None), None, ), # 1
15618
    (2, TType.STRING, 'pincode', None, None, ), # 2
15618
    (2, TType.STRING, 'pincode', None, None, ), # 2
15619
  )
15619
  )
15620
 
15620
 
15621
  def __init__(self, itemIds=None, pincode=None,):
15621
  def __init__(self, itempricing=None, pincode=None,):
15622
    self.itemIds = itemIds
15622
    self.itempricing = itempricing
15623
    self.pincode = pincode
15623
    self.pincode = pincode
15624
 
15624
 
15625
  def read(self, iprot):
15625
  def read(self, iprot):
15626
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15626
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15627
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15627
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
Line 15630... Line 15630...
15630
    while True:
15630
    while True:
15631
      (fname, ftype, fid) = iprot.readFieldBegin()
15631
      (fname, ftype, fid) = iprot.readFieldBegin()
15632
      if ftype == TType.STOP:
15632
      if ftype == TType.STOP:
15633
        break
15633
        break
15634
      if fid == 1:
15634
      if fid == 1:
15635
        if ftype == TType.LIST:
15635
        if ftype == TType.MAP:
15636
          self.itemIds = []
15636
          self.itempricing = {}
15637
          (_etype405, _size402) = iprot.readListBegin()
15637
          (_ktype403, _vtype404, _size402 ) = iprot.readMapBegin() 
15638
          for _i406 in xrange(_size402):
15638
          for _i406 in xrange(_size402):
15639
            _elem407 = iprot.readI64();
15639
            _key407 = iprot.readI64();
-
 
15640
            _val408 = iprot.readI64();
15640
            self.itemIds.append(_elem407)
15641
            self.itempricing[_key407] = _val408
15641
          iprot.readListEnd()
15642
          iprot.readMapEnd()
15642
        else:
15643
        else:
15643
          iprot.skip(ftype)
15644
          iprot.skip(ftype)
15644
      elif fid == 2:
15645
      elif fid == 2:
15645
        if ftype == TType.STRING:
15646
        if ftype == TType.STRING:
15646
          self.pincode = iprot.readString();
15647
          self.pincode = iprot.readString();
Line 15654... Line 15655...
15654
  def write(self, oprot):
15655
  def write(self, oprot):
15655
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15656
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15657
      return
15658
      return
15658
    oprot.writeStructBegin('getItemPincodeAvailability_args')
15659
    oprot.writeStructBegin('getItemPincodeAvailability_args')
15659
    if self.itemIds is not None:
15660
    if self.itempricing is not None:
15660
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
15661
      oprot.writeFieldBegin('itempricing', TType.MAP, 1)
15661
      oprot.writeListBegin(TType.I64, len(self.itemIds))
15662
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itempricing))
15662
      for iter408 in self.itemIds:
15663
      for kiter409,viter410 in self.itempricing.items():
15663
        oprot.writeI64(iter408)
15664
        oprot.writeI64(kiter409)
-
 
15665
        oprot.writeI64(viter410)
15664
      oprot.writeListEnd()
15666
      oprot.writeMapEnd()
15665
      oprot.writeFieldEnd()
15667
      oprot.writeFieldEnd()
15666
    if self.pincode is not None:
15668
    if self.pincode is not None:
15667
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
15669
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
15668
      oprot.writeString(self.pincode)
15670
      oprot.writeString(self.pincode)
15669
      oprot.writeFieldEnd()
15671
      oprot.writeFieldEnd()