Subversion Repositories SmartDukaan

Rev

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

Rev 7190 Rev 7263
Line 1573... Line 1573...
1573
     - storeId
1573
     - storeId
1574
     - password
1574
     - password
1575
    """
1575
    """
1576
    pass
1576
    pass
1577
 
1577
 
-
 
1578
  def getSourceDetail(self, source):
-
 
1579
    """
-
 
1580
    Parameters:
-
 
1581
     - source
-
 
1582
    """
-
 
1583
    pass
-
 
1584
 
1578
 
1585
 
1579
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1586
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1580
  def __init__(self, iprot, oprot=None):
1587
  def __init__(self, iprot, oprot=None):
1581
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1588
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1582
 
1589
 
Line 7193... Line 7200...
7193
    self._iprot.readMessageEnd()
7200
    self._iprot.readMessageEnd()
7194
    if result.success is not None:
7201
    if result.success is not None:
7195
      return result.success
7202
      return result.success
7196
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateHotspotStorePassword failed: unknown result");
7203
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateHotspotStorePassword failed: unknown result");
7197
 
7204
 
-
 
7205
  def getSourceDetail(self, source):
-
 
7206
    """
-
 
7207
    Parameters:
-
 
7208
     - source
-
 
7209
    """
-
 
7210
    self.send_getSourceDetail(source)
-
 
7211
    return self.recv_getSourceDetail()
-
 
7212
 
-
 
7213
  def send_getSourceDetail(self, source):
-
 
7214
    self._oprot.writeMessageBegin('getSourceDetail', TMessageType.CALL, self._seqid)
-
 
7215
    args = getSourceDetail_args()
-
 
7216
    args.source = source
-
 
7217
    args.write(self._oprot)
-
 
7218
    self._oprot.writeMessageEnd()
-
 
7219
    self._oprot.trans.flush()
-
 
7220
 
-
 
7221
  def recv_getSourceDetail(self, ):
-
 
7222
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7223
    if mtype == TMessageType.EXCEPTION:
-
 
7224
      x = TApplicationException()
-
 
7225
      x.read(self._iprot)
-
 
7226
      self._iprot.readMessageEnd()
-
 
7227
      raise x
-
 
7228
    result = getSourceDetail_result()
-
 
7229
    result.read(self._iprot)
-
 
7230
    self._iprot.readMessageEnd()
-
 
7231
    if result.success is not None:
-
 
7232
      return result.success
-
 
7233
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSourceDetail failed: unknown result");
-
 
7234
 
7198
 
7235
 
7199
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7236
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7200
  def __init__(self, handler):
7237
  def __init__(self, handler):
7201
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7238
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7202
    self._processMap["createTransaction"] = Processor.process_createTransaction
7239
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 7361... Line 7398...
7361
    self._processMap["getTelecomCircle"] = Processor.process_getTelecomCircle
7398
    self._processMap["getTelecomCircle"] = Processor.process_getTelecomCircle
7362
    self._processMap["retrieveHotspotRechargeInvoice"] = Processor.process_retrieveHotspotRechargeInvoice
7399
    self._processMap["retrieveHotspotRechargeInvoice"] = Processor.process_retrieveHotspotRechargeInvoice
7363
    self._processMap["splitFreebieOrder"] = Processor.process_splitFreebieOrder
7400
    self._processMap["splitFreebieOrder"] = Processor.process_splitFreebieOrder
7364
    self._processMap["getRechargeTransactionsByNumber"] = Processor.process_getRechargeTransactionsByNumber
7401
    self._processMap["getRechargeTransactionsByNumber"] = Processor.process_getRechargeTransactionsByNumber
7365
    self._processMap["updateHotspotStorePassword"] = Processor.process_updateHotspotStorePassword
7402
    self._processMap["updateHotspotStorePassword"] = Processor.process_updateHotspotStorePassword
-
 
7403
    self._processMap["getSourceDetail"] = Processor.process_getSourceDetail
7366
 
7404
 
7367
  def process(self, iprot, oprot):
7405
  def process(self, iprot, oprot):
7368
    (name, type, seqid) = iprot.readMessageBegin()
7406
    (name, type, seqid) = iprot.readMessageBegin()
7369
    if name not in self._processMap:
7407
    if name not in self._processMap:
7370
      iprot.skip(TType.STRUCT)
7408
      iprot.skip(TType.STRUCT)
Line 9475... Line 9513...
9475
    oprot.writeMessageBegin("updateHotspotStorePassword", TMessageType.REPLY, seqid)
9513
    oprot.writeMessageBegin("updateHotspotStorePassword", TMessageType.REPLY, seqid)
9476
    result.write(oprot)
9514
    result.write(oprot)
9477
    oprot.writeMessageEnd()
9515
    oprot.writeMessageEnd()
9478
    oprot.trans.flush()
9516
    oprot.trans.flush()
9479
 
9517
 
-
 
9518
  def process_getSourceDetail(self, seqid, iprot, oprot):
-
 
9519
    args = getSourceDetail_args()
-
 
9520
    args.read(iprot)
-
 
9521
    iprot.readMessageEnd()
-
 
9522
    result = getSourceDetail_result()
-
 
9523
    result.success = self._handler.getSourceDetail(args.source)
-
 
9524
    oprot.writeMessageBegin("getSourceDetail", TMessageType.REPLY, seqid)
-
 
9525
    result.write(oprot)
-
 
9526
    oprot.writeMessageEnd()
-
 
9527
    oprot.trans.flush()
-
 
9528
 
9480
 
9529
 
9481
# HELPER FUNCTIONS AND STRUCTURES
9530
# HELPER FUNCTIONS AND STRUCTURES
9482
 
9531
 
9483
class createTransaction_args:
9532
class createTransaction_args:
9484
  """
9533
  """
Line 32487... Line 32536...
32487
      oprot.writeFieldEnd()
32536
      oprot.writeFieldEnd()
32488
    oprot.writeFieldStop()
32537
    oprot.writeFieldStop()
32489
    oprot.writeStructEnd()
32538
    oprot.writeStructEnd()
32490
 
32539
 
32491
  def validate(self):
32540
  def validate(self):
-
 
32541
    return
-
 
32542
 
-
 
32543
 
-
 
32544
  def __repr__(self):
-
 
32545
    L = ['%s=%r' % (key, value)
-
 
32546
      for key, value in self.__dict__.iteritems()]
-
 
32547
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
32548
 
-
 
32549
  def __eq__(self, other):
-
 
32550
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
32551
 
-
 
32552
  def __ne__(self, other):
-
 
32553
    return not (self == other)
-
 
32554
 
-
 
32555
class getSourceDetail_args:
-
 
32556
  """
-
 
32557
  Attributes:
-
 
32558
   - source
-
 
32559
  """
-
 
32560
 
-
 
32561
  thrift_spec = (
-
 
32562
    None, # 0
-
 
32563
    (1, TType.I64, 'source', None, None, ), # 1
-
 
32564
  )
-
 
32565
 
-
 
32566
  def __init__(self, source=None,):
-
 
32567
    self.source = source
-
 
32568
 
-
 
32569
  def read(self, iprot):
-
 
32570
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
32571
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
32572
      return
-
 
32573
    iprot.readStructBegin()
-
 
32574
    while True:
-
 
32575
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
32576
      if ftype == TType.STOP:
-
 
32577
        break
-
 
32578
      if fid == 1:
-
 
32579
        if ftype == TType.I64:
-
 
32580
          self.source = iprot.readI64();
-
 
32581
        else:
-
 
32582
          iprot.skip(ftype)
-
 
32583
      else:
-
 
32584
        iprot.skip(ftype)
-
 
32585
      iprot.readFieldEnd()
-
 
32586
    iprot.readStructEnd()
-
 
32587
 
-
 
32588
  def write(self, oprot):
-
 
32589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
32590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
32591
      return
-
 
32592
    oprot.writeStructBegin('getSourceDetail_args')
-
 
32593
    if self.source is not None:
-
 
32594
      oprot.writeFieldBegin('source', TType.I64, 1)
-
 
32595
      oprot.writeI64(self.source)
-
 
32596
      oprot.writeFieldEnd()
-
 
32597
    oprot.writeFieldStop()
-
 
32598
    oprot.writeStructEnd()
-
 
32599
 
-
 
32600
  def validate(self):
-
 
32601
    return
-
 
32602
 
-
 
32603
 
-
 
32604
  def __repr__(self):
-
 
32605
    L = ['%s=%r' % (key, value)
-
 
32606
      for key, value in self.__dict__.iteritems()]
-
 
32607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
32608
 
-
 
32609
  def __eq__(self, other):
-
 
32610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
32611
 
-
 
32612
  def __ne__(self, other):
-
 
32613
    return not (self == other)
-
 
32614
 
-
 
32615
class getSourceDetail_result:
-
 
32616
  """
-
 
32617
  Attributes:
-
 
32618
   - success
-
 
32619
  """
-
 
32620
 
-
 
32621
  thrift_spec = (
-
 
32622
    (0, TType.STRUCT, 'success', (SourceDetail, SourceDetail.thrift_spec), None, ), # 0
-
 
32623
  )
-
 
32624
 
-
 
32625
  def __init__(self, success=None,):
-
 
32626
    self.success = success
-
 
32627
 
-
 
32628
  def read(self, iprot):
-
 
32629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
32630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
32631
      return
-
 
32632
    iprot.readStructBegin()
-
 
32633
    while True:
-
 
32634
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
32635
      if ftype == TType.STOP:
-
 
32636
        break
-
 
32637
      if fid == 0:
-
 
32638
        if ftype == TType.STRUCT:
-
 
32639
          self.success = SourceDetail()
-
 
32640
          self.success.read(iprot)
-
 
32641
        else:
-
 
32642
          iprot.skip(ftype)
-
 
32643
      else:
-
 
32644
        iprot.skip(ftype)
-
 
32645
      iprot.readFieldEnd()
-
 
32646
    iprot.readStructEnd()
-
 
32647
 
-
 
32648
  def write(self, oprot):
-
 
32649
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
32650
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
32651
      return
-
 
32652
    oprot.writeStructBegin('getSourceDetail_result')
-
 
32653
    if self.success is not None:
-
 
32654
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
32655
      self.success.write(oprot)
-
 
32656
      oprot.writeFieldEnd()
-
 
32657
    oprot.writeFieldStop()
-
 
32658
    oprot.writeStructEnd()
-
 
32659
 
-
 
32660
  def validate(self):
32492
    return
32661
    return
32493
 
32662
 
32494
 
32663
 
32495
  def __repr__(self):
32664
  def __repr__(self):
32496
    L = ['%s=%r' % (key, value)
32665
    L = ['%s=%r' % (key, value)