Subversion Repositories SmartDukaan

Rev

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

Rev 7263 Rev 7267
Line 1580... Line 1580...
1580
    Parameters:
1580
    Parameters:
1581
     - source
1581
     - source
1582
    """
1582
    """
1583
    pass
1583
    pass
1584
 
1584
 
-
 
1585
  def getAllCircles(self, ):
-
 
1586
    pass
-
 
1587
 
-
 
1588
  def deleteFrcs(self, frcIdsToDelete):
-
 
1589
    """
-
 
1590
    Parameters:
-
 
1591
     - frcIdsToDelete
-
 
1592
    """
-
 
1593
    pass
-
 
1594
 
1585
 
1595
 
1586
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1596
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1587
  def __init__(self, iprot, oprot=None):
1597
  def __init__(self, iprot, oprot=None):
1588
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1598
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1589
 
1599
 
Line 7230... Line 7240...
7230
    self._iprot.readMessageEnd()
7240
    self._iprot.readMessageEnd()
7231
    if result.success is not None:
7241
    if result.success is not None:
7232
      return result.success
7242
      return result.success
7233
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSourceDetail failed: unknown result");
7243
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSourceDetail failed: unknown result");
7234
 
7244
 
-
 
7245
  def getAllCircles(self, ):
-
 
7246
    self.send_getAllCircles()
-
 
7247
    return self.recv_getAllCircles()
-
 
7248
 
-
 
7249
  def send_getAllCircles(self, ):
-
 
7250
    self._oprot.writeMessageBegin('getAllCircles', TMessageType.CALL, self._seqid)
-
 
7251
    args = getAllCircles_args()
-
 
7252
    args.write(self._oprot)
-
 
7253
    self._oprot.writeMessageEnd()
-
 
7254
    self._oprot.trans.flush()
-
 
7255
 
-
 
7256
  def recv_getAllCircles(self, ):
-
 
7257
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7258
    if mtype == TMessageType.EXCEPTION:
-
 
7259
      x = TApplicationException()
-
 
7260
      x.read(self._iprot)
-
 
7261
      self._iprot.readMessageEnd()
-
 
7262
      raise x
-
 
7263
    result = getAllCircles_result()
-
 
7264
    result.read(self._iprot)
-
 
7265
    self._iprot.readMessageEnd()
-
 
7266
    if result.success is not None:
-
 
7267
      return result.success
-
 
7268
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCircles failed: unknown result");
-
 
7269
 
-
 
7270
  def deleteFrcs(self, frcIdsToDelete):
-
 
7271
    """
-
 
7272
    Parameters:
-
 
7273
     - frcIdsToDelete
-
 
7274
    """
-
 
7275
    self.send_deleteFrcs(frcIdsToDelete)
-
 
7276
    return self.recv_deleteFrcs()
-
 
7277
 
-
 
7278
  def send_deleteFrcs(self, frcIdsToDelete):
-
 
7279
    self._oprot.writeMessageBegin('deleteFrcs', TMessageType.CALL, self._seqid)
-
 
7280
    args = deleteFrcs_args()
-
 
7281
    args.frcIdsToDelete = frcIdsToDelete
-
 
7282
    args.write(self._oprot)
-
 
7283
    self._oprot.writeMessageEnd()
-
 
7284
    self._oprot.trans.flush()
-
 
7285
 
-
 
7286
  def recv_deleteFrcs(self, ):
-
 
7287
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7288
    if mtype == TMessageType.EXCEPTION:
-
 
7289
      x = TApplicationException()
-
 
7290
      x.read(self._iprot)
-
 
7291
      self._iprot.readMessageEnd()
-
 
7292
      raise x
-
 
7293
    result = deleteFrcs_result()
-
 
7294
    result.read(self._iprot)
-
 
7295
    self._iprot.readMessageEnd()
-
 
7296
    if result.success is not None:
-
 
7297
      return result.success
-
 
7298
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteFrcs failed: unknown result");
-
 
7299
 
7235
 
7300
 
7236
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7301
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7237
  def __init__(self, handler):
7302
  def __init__(self, handler):
7238
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7303
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7239
    self._processMap["createTransaction"] = Processor.process_createTransaction
7304
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 7399... Line 7464...
7399
    self._processMap["retrieveHotspotRechargeInvoice"] = Processor.process_retrieveHotspotRechargeInvoice
7464
    self._processMap["retrieveHotspotRechargeInvoice"] = Processor.process_retrieveHotspotRechargeInvoice
7400
    self._processMap["splitFreebieOrder"] = Processor.process_splitFreebieOrder
7465
    self._processMap["splitFreebieOrder"] = Processor.process_splitFreebieOrder
7401
    self._processMap["getRechargeTransactionsByNumber"] = Processor.process_getRechargeTransactionsByNumber
7466
    self._processMap["getRechargeTransactionsByNumber"] = Processor.process_getRechargeTransactionsByNumber
7402
    self._processMap["updateHotspotStorePassword"] = Processor.process_updateHotspotStorePassword
7467
    self._processMap["updateHotspotStorePassword"] = Processor.process_updateHotspotStorePassword
7403
    self._processMap["getSourceDetail"] = Processor.process_getSourceDetail
7468
    self._processMap["getSourceDetail"] = Processor.process_getSourceDetail
-
 
7469
    self._processMap["getAllCircles"] = Processor.process_getAllCircles
-
 
7470
    self._processMap["deleteFrcs"] = Processor.process_deleteFrcs
7404
 
7471
 
7405
  def process(self, iprot, oprot):
7472
  def process(self, iprot, oprot):
7406
    (name, type, seqid) = iprot.readMessageBegin()
7473
    (name, type, seqid) = iprot.readMessageBegin()
7407
    if name not in self._processMap:
7474
    if name not in self._processMap:
7408
      iprot.skip(TType.STRUCT)
7475
      iprot.skip(TType.STRUCT)
Line 9524... Line 9591...
9524
    oprot.writeMessageBegin("getSourceDetail", TMessageType.REPLY, seqid)
9591
    oprot.writeMessageBegin("getSourceDetail", TMessageType.REPLY, seqid)
9525
    result.write(oprot)
9592
    result.write(oprot)
9526
    oprot.writeMessageEnd()
9593
    oprot.writeMessageEnd()
9527
    oprot.trans.flush()
9594
    oprot.trans.flush()
9528
 
9595
 
-
 
9596
  def process_getAllCircles(self, seqid, iprot, oprot):
-
 
9597
    args = getAllCircles_args()
-
 
9598
    args.read(iprot)
-
 
9599
    iprot.readMessageEnd()
-
 
9600
    result = getAllCircles_result()
-
 
9601
    result.success = self._handler.getAllCircles()
-
 
9602
    oprot.writeMessageBegin("getAllCircles", TMessageType.REPLY, seqid)
-
 
9603
    result.write(oprot)
-
 
9604
    oprot.writeMessageEnd()
-
 
9605
    oprot.trans.flush()
-
 
9606
 
-
 
9607
  def process_deleteFrcs(self, seqid, iprot, oprot):
-
 
9608
    args = deleteFrcs_args()
-
 
9609
    args.read(iprot)
-
 
9610
    iprot.readMessageEnd()
-
 
9611
    result = deleteFrcs_result()
-
 
9612
    result.success = self._handler.deleteFrcs(args.frcIdsToDelete)
-
 
9613
    oprot.writeMessageBegin("deleteFrcs", TMessageType.REPLY, seqid)
-
 
9614
    result.write(oprot)
-
 
9615
    oprot.writeMessageEnd()
-
 
9616
    oprot.trans.flush()
-
 
9617
 
9529
 
9618
 
9530
# HELPER FUNCTIONS AND STRUCTURES
9619
# HELPER FUNCTIONS AND STRUCTURES
9531
 
9620
 
9532
class createTransaction_args:
9621
class createTransaction_args:
9533
  """
9622
  """
Line 32656... Line 32745...
32656
      oprot.writeFieldEnd()
32745
      oprot.writeFieldEnd()
32657
    oprot.writeFieldStop()
32746
    oprot.writeFieldStop()
32658
    oprot.writeStructEnd()
32747
    oprot.writeStructEnd()
32659
 
32748
 
32660
  def validate(self):
32749
  def validate(self):
-
 
32750
    return
-
 
32751
 
-
 
32752
 
-
 
32753
  def __repr__(self):
-
 
32754
    L = ['%s=%r' % (key, value)
-
 
32755
      for key, value in self.__dict__.iteritems()]
-
 
32756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
32757
 
-
 
32758
  def __eq__(self, other):
-
 
32759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
32760
 
-
 
32761
  def __ne__(self, other):
-
 
32762
    return not (self == other)
-
 
32763
 
-
 
32764
class getAllCircles_args:
-
 
32765
 
-
 
32766
  thrift_spec = (
-
 
32767
  )
-
 
32768
 
-
 
32769
  def read(self, iprot):
-
 
32770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
32771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
32772
      return
-
 
32773
    iprot.readStructBegin()
-
 
32774
    while True:
-
 
32775
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
32776
      if ftype == TType.STOP:
-
 
32777
        break
-
 
32778
      else:
-
 
32779
        iprot.skip(ftype)
-
 
32780
      iprot.readFieldEnd()
-
 
32781
    iprot.readStructEnd()
-
 
32782
 
-
 
32783
  def write(self, oprot):
-
 
32784
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
32785
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
32786
      return
-
 
32787
    oprot.writeStructBegin('getAllCircles_args')
-
 
32788
    oprot.writeFieldStop()
-
 
32789
    oprot.writeStructEnd()
-
 
32790
 
-
 
32791
  def validate(self):
-
 
32792
    return
-
 
32793
 
-
 
32794
 
-
 
32795
  def __repr__(self):
-
 
32796
    L = ['%s=%r' % (key, value)
-
 
32797
      for key, value in self.__dict__.iteritems()]
-
 
32798
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
32799
 
-
 
32800
  def __eq__(self, other):
-
 
32801
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
32802
 
-
 
32803
  def __ne__(self, other):
-
 
32804
    return not (self == other)
-
 
32805
 
-
 
32806
class getAllCircles_result:
-
 
32807
  """
-
 
32808
  Attributes:
-
 
32809
   - success
-
 
32810
  """
-
 
32811
 
-
 
32812
  thrift_spec = (
-
 
32813
    (0, TType.LIST, 'success', (TType.STRUCT,(TelecomCircle, TelecomCircle.thrift_spec)), None, ), # 0
-
 
32814
  )
-
 
32815
 
-
 
32816
  def __init__(self, success=None,):
-
 
32817
    self.success = success
-
 
32818
 
-
 
32819
  def read(self, iprot):
-
 
32820
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
32821
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
32822
      return
-
 
32823
    iprot.readStructBegin()
-
 
32824
    while True:
-
 
32825
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
32826
      if ftype == TType.STOP:
-
 
32827
        break
-
 
32828
      if fid == 0:
-
 
32829
        if ftype == TType.LIST:
-
 
32830
          self.success = []
-
 
32831
          (_etype768, _size765) = iprot.readListBegin()
-
 
32832
          for _i769 in xrange(_size765):
-
 
32833
            _elem770 = TelecomCircle()
-
 
32834
            _elem770.read(iprot)
-
 
32835
            self.success.append(_elem770)
-
 
32836
          iprot.readListEnd()
-
 
32837
        else:
-
 
32838
          iprot.skip(ftype)
-
 
32839
      else:
-
 
32840
        iprot.skip(ftype)
-
 
32841
      iprot.readFieldEnd()
-
 
32842
    iprot.readStructEnd()
-
 
32843
 
-
 
32844
  def write(self, oprot):
-
 
32845
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
32846
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
32847
      return
-
 
32848
    oprot.writeStructBegin('getAllCircles_result')
-
 
32849
    if self.success is not None:
-
 
32850
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
32851
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
32852
      for iter771 in self.success:
-
 
32853
        iter771.write(oprot)
-
 
32854
      oprot.writeListEnd()
-
 
32855
      oprot.writeFieldEnd()
-
 
32856
    oprot.writeFieldStop()
-
 
32857
    oprot.writeStructEnd()
-
 
32858
 
-
 
32859
  def validate(self):
-
 
32860
    return
-
 
32861
 
-
 
32862
 
-
 
32863
  def __repr__(self):
-
 
32864
    L = ['%s=%r' % (key, value)
-
 
32865
      for key, value in self.__dict__.iteritems()]
-
 
32866
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
32867
 
-
 
32868
  def __eq__(self, other):
-
 
32869
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
32870
 
-
 
32871
  def __ne__(self, other):
-
 
32872
    return not (self == other)
-
 
32873
 
-
 
32874
class deleteFrcs_args:
-
 
32875
  """
-
 
32876
  Attributes:
-
 
32877
   - frcIdsToDelete
-
 
32878
  """
-
 
32879
 
-
 
32880
  thrift_spec = (
-
 
32881
    None, # 0
-
 
32882
    (1, TType.LIST, 'frcIdsToDelete', (TType.I64,None), None, ), # 1
-
 
32883
  )
-
 
32884
 
-
 
32885
  def __init__(self, frcIdsToDelete=None,):
-
 
32886
    self.frcIdsToDelete = frcIdsToDelete
-
 
32887
 
-
 
32888
  def read(self, iprot):
-
 
32889
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
32890
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
32891
      return
-
 
32892
    iprot.readStructBegin()
-
 
32893
    while True:
-
 
32894
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
32895
      if ftype == TType.STOP:
-
 
32896
        break
-
 
32897
      if fid == 1:
-
 
32898
        if ftype == TType.LIST:
-
 
32899
          self.frcIdsToDelete = []
-
 
32900
          (_etype775, _size772) = iprot.readListBegin()
-
 
32901
          for _i776 in xrange(_size772):
-
 
32902
            _elem777 = iprot.readI64();
-
 
32903
            self.frcIdsToDelete.append(_elem777)
-
 
32904
          iprot.readListEnd()
-
 
32905
        else:
-
 
32906
          iprot.skip(ftype)
-
 
32907
      else:
-
 
32908
        iprot.skip(ftype)
-
 
32909
      iprot.readFieldEnd()
-
 
32910
    iprot.readStructEnd()
-
 
32911
 
-
 
32912
  def write(self, oprot):
-
 
32913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
32914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
32915
      return
-
 
32916
    oprot.writeStructBegin('deleteFrcs_args')
-
 
32917
    if self.frcIdsToDelete is not None:
-
 
32918
      oprot.writeFieldBegin('frcIdsToDelete', TType.LIST, 1)
-
 
32919
      oprot.writeListBegin(TType.I64, len(self.frcIdsToDelete))
-
 
32920
      for iter778 in self.frcIdsToDelete:
-
 
32921
        oprot.writeI64(iter778)
-
 
32922
      oprot.writeListEnd()
-
 
32923
      oprot.writeFieldEnd()
-
 
32924
    oprot.writeFieldStop()
-
 
32925
    oprot.writeStructEnd()
-
 
32926
 
-
 
32927
  def validate(self):
-
 
32928
    return
-
 
32929
 
-
 
32930
 
-
 
32931
  def __repr__(self):
-
 
32932
    L = ['%s=%r' % (key, value)
-
 
32933
      for key, value in self.__dict__.iteritems()]
-
 
32934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
32935
 
-
 
32936
  def __eq__(self, other):
-
 
32937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
32938
 
-
 
32939
  def __ne__(self, other):
-
 
32940
    return not (self == other)
-
 
32941
 
-
 
32942
class deleteFrcs_result:
-
 
32943
  """
-
 
32944
  Attributes:
-
 
32945
   - success
-
 
32946
  """
-
 
32947
 
-
 
32948
  thrift_spec = (
-
 
32949
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
32950
  )
-
 
32951
 
-
 
32952
  def __init__(self, success=None,):
-
 
32953
    self.success = success
-
 
32954
 
-
 
32955
  def read(self, iprot):
-
 
32956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
32957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
32958
      return
-
 
32959
    iprot.readStructBegin()
-
 
32960
    while True:
-
 
32961
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
32962
      if ftype == TType.STOP:
-
 
32963
        break
-
 
32964
      if fid == 0:
-
 
32965
        if ftype == TType.BOOL:
-
 
32966
          self.success = iprot.readBool();
-
 
32967
        else:
-
 
32968
          iprot.skip(ftype)
-
 
32969
      else:
-
 
32970
        iprot.skip(ftype)
-
 
32971
      iprot.readFieldEnd()
-
 
32972
    iprot.readStructEnd()
-
 
32973
 
-
 
32974
  def write(self, oprot):
-
 
32975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
32976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
32977
      return
-
 
32978
    oprot.writeStructBegin('deleteFrcs_result')
-
 
32979
    if self.success is not None:
-
 
32980
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
32981
      oprot.writeBool(self.success)
-
 
32982
      oprot.writeFieldEnd()
-
 
32983
    oprot.writeFieldStop()
-
 
32984
    oprot.writeStructEnd()
-
 
32985
 
-
 
32986
  def validate(self):
32661
    return
32987
    return
32662
 
32988
 
32663
 
32989
 
32664
  def __repr__(self):
32990
  def __repr__(self):
32665
    L = ['%s=%r' % (key, value)
32991
    L = ['%s=%r' % (key, value)