Subversion Repositories SmartDukaan

Rev

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

Rev 5342 Rev 5407
Line 199... Line 199...
199
    pass
199
    pass
200
 
200
 
201
  def getAllUserCommunications(self, ):
201
  def getAllUserCommunications(self, ):
202
    pass
202
    pass
203
 
203
 
-
 
204
  def removeUserCommunication(self, id):
-
 
205
    """
-
 
206
    Parameters:
-
 
207
     - id
-
 
208
    """
-
 
209
    pass
-
 
210
 
204
  def createMasterAffiliate(self, name, addedOn):
211
  def createMasterAffiliate(self, name, addedOn):
205
    """
212
    """
206
    Parameters:
213
    Parameters:
207
     - name
214
     - name
208
     - addedOn
215
     - addedOn
Line 559... Line 566...
559
     - userId
566
     - userId
560
     - trustLevelDelta
567
     - trustLevelDelta
561
    """
568
    """
562
    pass
569
    pass
563
 
570
 
-
 
571
  def getTrustLevel(self, userId):
-
 
572
    """
-
 
573
    Get trust level of a user
-
 
574
 
-
 
575
    Parameters:
-
 
576
     - userId
-
 
577
    """
-
 
578
    pass
-
 
579
 
564
  def showCODOption(self, cartId, sourceId, pincode):
580
  def showCODOption(self, cartId, sourceId, pincode):
565
    """
581
    """
566
    Returns true/false depending on wether COD is allowed for a cart or not
582
    Returns true/false depending on wether COD is allowed for a cart or not
567
 
583
 
568
    Parameters:
584
    Parameters:
Line 1375... Line 1391...
1375
      return result.success
1391
      return result.success
1376
    if result.ucx is not None:
1392
    if result.ucx is not None:
1377
      raise result.ucx
1393
      raise result.ucx
1378
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1394
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1379
 
1395
 
-
 
1396
  def removeUserCommunication(self, id):
-
 
1397
    """
-
 
1398
    Parameters:
-
 
1399
     - id
-
 
1400
    """
-
 
1401
    self.send_removeUserCommunication(id)
-
 
1402
    self.recv_removeUserCommunication()
-
 
1403
 
-
 
1404
  def send_removeUserCommunication(self, id):
-
 
1405
    self._oprot.writeMessageBegin('removeUserCommunication', TMessageType.CALL, self._seqid)
-
 
1406
    args = removeUserCommunication_args()
-
 
1407
    args.id = id
-
 
1408
    args.write(self._oprot)
-
 
1409
    self._oprot.writeMessageEnd()
-
 
1410
    self._oprot.trans.flush()
-
 
1411
 
-
 
1412
  def recv_removeUserCommunication(self, ):
-
 
1413
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1414
    if mtype == TMessageType.EXCEPTION:
-
 
1415
      x = TApplicationException()
-
 
1416
      x.read(self._iprot)
-
 
1417
      self._iprot.readMessageEnd()
-
 
1418
      raise x
-
 
1419
    result = removeUserCommunication_result()
-
 
1420
    result.read(self._iprot)
-
 
1421
    self._iprot.readMessageEnd()
-
 
1422
    if result.ucx is not None:
-
 
1423
      raise result.ucx
-
 
1424
    return
-
 
1425
 
1380
  def createMasterAffiliate(self, name, addedOn):
1426
  def createMasterAffiliate(self, name, addedOn):
1381
    """
1427
    """
1382
    Parameters:
1428
    Parameters:
1383
     - name
1429
     - name
1384
     - addedOn
1430
     - addedOn
Line 2723... Line 2769...
2723
    args.userId = userId
2769
    args.userId = userId
2724
    args.trustLevelDelta = trustLevelDelta
2770
    args.trustLevelDelta = trustLevelDelta
2725
    args.write(self._oprot)
2771
    args.write(self._oprot)
2726
    self._oprot.writeMessageEnd()
2772
    self._oprot.writeMessageEnd()
2727
    self._oprot.trans.flush()
2773
    self._oprot.trans.flush()
-
 
2774
  def getTrustLevel(self, userId):
-
 
2775
    """
-
 
2776
    Get trust level of a user
-
 
2777
 
-
 
2778
    Parameters:
-
 
2779
     - userId
-
 
2780
    """
-
 
2781
    self.send_getTrustLevel(userId)
-
 
2782
    return self.recv_getTrustLevel()
-
 
2783
 
-
 
2784
  def send_getTrustLevel(self, userId):
-
 
2785
    self._oprot.writeMessageBegin('getTrustLevel', TMessageType.CALL, self._seqid)
-
 
2786
    args = getTrustLevel_args()
-
 
2787
    args.userId = userId
-
 
2788
    args.write(self._oprot)
-
 
2789
    self._oprot.writeMessageEnd()
-
 
2790
    self._oprot.trans.flush()
-
 
2791
 
-
 
2792
  def recv_getTrustLevel(self, ):
-
 
2793
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2794
    if mtype == TMessageType.EXCEPTION:
-
 
2795
      x = TApplicationException()
-
 
2796
      x.read(self._iprot)
-
 
2797
      self._iprot.readMessageEnd()
-
 
2798
      raise x
-
 
2799
    result = getTrustLevel_result()
-
 
2800
    result.read(self._iprot)
-
 
2801
    self._iprot.readMessageEnd()
-
 
2802
    if result.success is not None:
-
 
2803
      return result.success
-
 
2804
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrustLevel failed: unknown result");
-
 
2805
 
2728
  def showCODOption(self, cartId, sourceId, pincode):
2806
  def showCODOption(self, cartId, sourceId, pincode):
2729
    """
2807
    """
2730
    Returns true/false depending on wether COD is allowed for a cart or not
2808
    Returns true/false depending on wether COD is allowed for a cart or not
2731
 
2809
 
2732
    Parameters:
2810
    Parameters:
Line 2787... Line 2865...
2787
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
2865
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
2788
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
2866
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
2789
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2867
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2790
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2868
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2791
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
2869
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
-
 
2870
    self._processMap["removeUserCommunication"] = Processor.process_removeUserCommunication
2792
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
2871
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
2793
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
2872
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
2794
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2873
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2795
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2874
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2796
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
2875
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
Line 2827... Line 2906...
2827
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2906
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2828
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2907
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2829
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
2908
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
2830
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
2909
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
2831
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
2910
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
-
 
2911
    self._processMap["getTrustLevel"] = Processor.process_getTrustLevel
2832
    self._processMap["showCODOption"] = Processor.process_showCODOption
2912
    self._processMap["showCODOption"] = Processor.process_showCODOption
2833
 
2913
 
2834
  def process(self, iprot, oprot):
2914
  def process(self, iprot, oprot):
2835
    (name, type, seqid) = iprot.readMessageBegin()
2915
    (name, type, seqid) = iprot.readMessageBegin()
2836
    if name not in self._processMap:
2916
    if name not in self._processMap:
Line 3180... Line 3260...
3180
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3260
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3181
    result.write(oprot)
3261
    result.write(oprot)
3182
    oprot.writeMessageEnd()
3262
    oprot.writeMessageEnd()
3183
    oprot.trans.flush()
3263
    oprot.trans.flush()
3184
 
3264
 
-
 
3265
  def process_removeUserCommunication(self, seqid, iprot, oprot):
-
 
3266
    args = removeUserCommunication_args()
-
 
3267
    args.read(iprot)
-
 
3268
    iprot.readMessageEnd()
-
 
3269
    result = removeUserCommunication_result()
-
 
3270
    try:
-
 
3271
      self._handler.removeUserCommunication(args.id)
-
 
3272
    except UserCommunicationException, ucx:
-
 
3273
      result.ucx = ucx
-
 
3274
    oprot.writeMessageBegin("removeUserCommunication", TMessageType.REPLY, seqid)
-
 
3275
    result.write(oprot)
-
 
3276
    oprot.writeMessageEnd()
-
 
3277
    oprot.trans.flush()
-
 
3278
 
3185
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3279
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3186
    args = createMasterAffiliate_args()
3280
    args = createMasterAffiliate_args()
3187
    args.read(iprot)
3281
    args.read(iprot)
3188
    iprot.readMessageEnd()
3282
    iprot.readMessageEnd()
3189
    result = createMasterAffiliate_result()
3283
    result = createMasterAffiliate_result()
Line 3712... Line 3806...
3712
    args.read(iprot)
3806
    args.read(iprot)
3713
    iprot.readMessageEnd()
3807
    iprot.readMessageEnd()
3714
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3808
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3715
    return
3809
    return
3716
 
3810
 
-
 
3811
  def process_getTrustLevel(self, seqid, iprot, oprot):
-
 
3812
    args = getTrustLevel_args()
-
 
3813
    args.read(iprot)
-
 
3814
    iprot.readMessageEnd()
-
 
3815
    result = getTrustLevel_result()
-
 
3816
    result.success = self._handler.getTrustLevel(args.userId)
-
 
3817
    oprot.writeMessageBegin("getTrustLevel", TMessageType.REPLY, seqid)
-
 
3818
    result.write(oprot)
-
 
3819
    oprot.writeMessageEnd()
-
 
3820
    oprot.trans.flush()
-
 
3821
 
3717
  def process_showCODOption(self, seqid, iprot, oprot):
3822
  def process_showCODOption(self, seqid, iprot, oprot):
3718
    args = showCODOption_args()
3823
    args = showCODOption_args()
3719
    args.read(iprot)
3824
    args.read(iprot)
3720
    iprot.readMessageEnd()
3825
    iprot.readMessageEnd()
3721
    result = showCODOption_result()
3826
    result = showCODOption_result()
Line 7120... Line 7225...
7120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7225
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7121
 
7226
 
7122
  def __ne__(self, other):
7227
  def __ne__(self, other):
7123
    return not (self == other)
7228
    return not (self == other)
7124
 
7229
 
-
 
7230
class removeUserCommunication_args:
-
 
7231
  """
-
 
7232
  Attributes:
-
 
7233
   - id
-
 
7234
  """
-
 
7235
 
-
 
7236
  thrift_spec = (
-
 
7237
    None, # 0
-
 
7238
    (1, TType.I64, 'id', None, None, ), # 1
-
 
7239
  )
-
 
7240
 
-
 
7241
  def __init__(self, id=None,):
-
 
7242
    self.id = id
-
 
7243
 
-
 
7244
  def read(self, iprot):
-
 
7245
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7246
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7247
      return
-
 
7248
    iprot.readStructBegin()
-
 
7249
    while True:
-
 
7250
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7251
      if ftype == TType.STOP:
-
 
7252
        break
-
 
7253
      if fid == 1:
-
 
7254
        if ftype == TType.I64:
-
 
7255
          self.id = iprot.readI64();
-
 
7256
        else:
-
 
7257
          iprot.skip(ftype)
-
 
7258
      else:
-
 
7259
        iprot.skip(ftype)
-
 
7260
      iprot.readFieldEnd()
-
 
7261
    iprot.readStructEnd()
-
 
7262
 
-
 
7263
  def write(self, oprot):
-
 
7264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7266
      return
-
 
7267
    oprot.writeStructBegin('removeUserCommunication_args')
-
 
7268
    if self.id is not None:
-
 
7269
      oprot.writeFieldBegin('id', TType.I64, 1)
-
 
7270
      oprot.writeI64(self.id)
-
 
7271
      oprot.writeFieldEnd()
-
 
7272
    oprot.writeFieldStop()
-
 
7273
    oprot.writeStructEnd()
-
 
7274
 
-
 
7275
  def validate(self):
-
 
7276
    return
-
 
7277
 
-
 
7278
 
-
 
7279
  def __repr__(self):
-
 
7280
    L = ['%s=%r' % (key, value)
-
 
7281
      for key, value in self.__dict__.iteritems()]
-
 
7282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7283
 
-
 
7284
  def __eq__(self, other):
-
 
7285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7286
 
-
 
7287
  def __ne__(self, other):
-
 
7288
    return not (self == other)
-
 
7289
 
-
 
7290
class removeUserCommunication_result:
-
 
7291
  """
-
 
7292
  Attributes:
-
 
7293
   - ucx
-
 
7294
  """
-
 
7295
 
-
 
7296
  thrift_spec = (
-
 
7297
    None, # 0
-
 
7298
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
-
 
7299
  )
-
 
7300
 
-
 
7301
  def __init__(self, ucx=None,):
-
 
7302
    self.ucx = ucx
-
 
7303
 
-
 
7304
  def read(self, iprot):
-
 
7305
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7306
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7307
      return
-
 
7308
    iprot.readStructBegin()
-
 
7309
    while True:
-
 
7310
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7311
      if ftype == TType.STOP:
-
 
7312
        break
-
 
7313
      if fid == 1:
-
 
7314
        if ftype == TType.STRUCT:
-
 
7315
          self.ucx = UserCommunicationException()
-
 
7316
          self.ucx.read(iprot)
-
 
7317
        else:
-
 
7318
          iprot.skip(ftype)
-
 
7319
      else:
-
 
7320
        iprot.skip(ftype)
-
 
7321
      iprot.readFieldEnd()
-
 
7322
    iprot.readStructEnd()
-
 
7323
 
-
 
7324
  def write(self, oprot):
-
 
7325
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7326
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7327
      return
-
 
7328
    oprot.writeStructBegin('removeUserCommunication_result')
-
 
7329
    if self.ucx is not None:
-
 
7330
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
-
 
7331
      self.ucx.write(oprot)
-
 
7332
      oprot.writeFieldEnd()
-
 
7333
    oprot.writeFieldStop()
-
 
7334
    oprot.writeStructEnd()
-
 
7335
 
-
 
7336
  def validate(self):
-
 
7337
    return
-
 
7338
 
-
 
7339
 
-
 
7340
  def __repr__(self):
-
 
7341
    L = ['%s=%r' % (key, value)
-
 
7342
      for key, value in self.__dict__.iteritems()]
-
 
7343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7344
 
-
 
7345
  def __eq__(self, other):
-
 
7346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7347
 
-
 
7348
  def __ne__(self, other):
-
 
7349
    return not (self == other)
-
 
7350
 
7125
class createMasterAffiliate_args:
7351
class createMasterAffiliate_args:
7126
  """
7352
  """
7127
  Attributes:
7353
  Attributes:
7128
   - name
7354
   - name
7129
   - addedOn
7355
   - addedOn
Line 12686... Line 12912...
12686
      oprot.writeFieldEnd()
12912
      oprot.writeFieldEnd()
12687
    oprot.writeFieldStop()
12913
    oprot.writeFieldStop()
12688
    oprot.writeStructEnd()
12914
    oprot.writeStructEnd()
12689
 
12915
 
12690
  def validate(self):
12916
  def validate(self):
-
 
12917
    return
-
 
12918
 
-
 
12919
 
-
 
12920
  def __repr__(self):
-
 
12921
    L = ['%s=%r' % (key, value)
-
 
12922
      for key, value in self.__dict__.iteritems()]
-
 
12923
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12924
 
-
 
12925
  def __eq__(self, other):
-
 
12926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12927
 
-
 
12928
  def __ne__(self, other):
-
 
12929
    return not (self == other)
-
 
12930
 
-
 
12931
class getTrustLevel_args:
-
 
12932
  """
-
 
12933
  Attributes:
-
 
12934
   - userId
-
 
12935
  """
-
 
12936
 
-
 
12937
  thrift_spec = (
-
 
12938
    None, # 0
-
 
12939
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
12940
  )
-
 
12941
 
-
 
12942
  def __init__(self, userId=None,):
-
 
12943
    self.userId = userId
-
 
12944
 
-
 
12945
  def read(self, iprot):
-
 
12946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12948
      return
-
 
12949
    iprot.readStructBegin()
-
 
12950
    while True:
-
 
12951
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12952
      if ftype == TType.STOP:
-
 
12953
        break
-
 
12954
      if fid == 1:
-
 
12955
        if ftype == TType.I64:
-
 
12956
          self.userId = iprot.readI64();
-
 
12957
        else:
-
 
12958
          iprot.skip(ftype)
-
 
12959
      else:
-
 
12960
        iprot.skip(ftype)
-
 
12961
      iprot.readFieldEnd()
-
 
12962
    iprot.readStructEnd()
-
 
12963
 
-
 
12964
  def write(self, oprot):
-
 
12965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12967
      return
-
 
12968
    oprot.writeStructBegin('getTrustLevel_args')
-
 
12969
    if self.userId is not None:
-
 
12970
      oprot.writeFieldBegin('userId', TType.I64, 1)
-
 
12971
      oprot.writeI64(self.userId)
-
 
12972
      oprot.writeFieldEnd()
-
 
12973
    oprot.writeFieldStop()
-
 
12974
    oprot.writeStructEnd()
-
 
12975
 
-
 
12976
  def validate(self):
-
 
12977
    return
-
 
12978
 
-
 
12979
 
-
 
12980
  def __repr__(self):
-
 
12981
    L = ['%s=%r' % (key, value)
-
 
12982
      for key, value in self.__dict__.iteritems()]
-
 
12983
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12984
 
-
 
12985
  def __eq__(self, other):
-
 
12986
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12987
 
-
 
12988
  def __ne__(self, other):
-
 
12989
    return not (self == other)
-
 
12990
 
-
 
12991
class getTrustLevel_result:
-
 
12992
  """
-
 
12993
  Attributes:
-
 
12994
   - success
-
 
12995
  """
-
 
12996
 
-
 
12997
  thrift_spec = (
-
 
12998
    (0, TType.DOUBLE, 'success', None, None, ), # 0
-
 
12999
  )
-
 
13000
 
-
 
13001
  def __init__(self, success=None,):
-
 
13002
    self.success = success
-
 
13003
 
-
 
13004
  def read(self, iprot):
-
 
13005
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13006
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13007
      return
-
 
13008
    iprot.readStructBegin()
-
 
13009
    while True:
-
 
13010
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13011
      if ftype == TType.STOP:
-
 
13012
        break
-
 
13013
      if fid == 0:
-
 
13014
        if ftype == TType.DOUBLE:
-
 
13015
          self.success = iprot.readDouble();
-
 
13016
        else:
-
 
13017
          iprot.skip(ftype)
-
 
13018
      else:
-
 
13019
        iprot.skip(ftype)
-
 
13020
      iprot.readFieldEnd()
-
 
13021
    iprot.readStructEnd()
-
 
13022
 
-
 
13023
  def write(self, oprot):
-
 
13024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13026
      return
-
 
13027
    oprot.writeStructBegin('getTrustLevel_result')
-
 
13028
    if self.success is not None:
-
 
13029
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
-
 
13030
      oprot.writeDouble(self.success)
-
 
13031
      oprot.writeFieldEnd()
-
 
13032
    oprot.writeFieldStop()
-
 
13033
    oprot.writeStructEnd()
-
 
13034
 
-
 
13035
  def validate(self):
12691
    return
13036
    return
12692
 
13037
 
12693
 
13038
 
12694
  def __repr__(self):
13039
  def __repr__(self):
12695
    L = ['%s=%r' % (key, value)
13040
    L = ['%s=%r' % (key, value)