Subversion Repositories SmartDukaan

Rev

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

Rev 94 Rev 122
Line 25... Line 25...
25
     - context
25
     - context
26
     - updateExisting
26
     - updateExisting
27
    """
27
    """
28
    pass
28
    pass
29
 
29
 
30
  def getContextFromId(self, userId):
30
  def getContextFromId(self, userId, isSessionId):
31
    """
31
    """
32
    Parameters:
32
    Parameters:
33
     - userId
33
     - userId
-
 
34
     - isSessionId
34
    """
35
    """
35
    pass
36
    pass
36
 
37
 
37
  def getContextFromEmailOrHandle(self, emailorhandle, isEmail):
38
  def getContextFromEmailOrHandle(self, emailorhandle, isEmail):
38
    """
39
    """
Line 40... Line 41...
40
     - emailorhandle
41
     - emailorhandle
41
     - isEmail
42
     - isEmail
42
    """
43
    """
43
    pass
44
    pass
44
 
45
 
45
  def getState(self, userId):
46
  def getState(self, userId, isSessionId):
46
    """
47
    """
47
    Parameters:
48
    Parameters:
48
     - userId
49
     - userId
-
 
50
     - isSessionId
49
    """
51
    """
50
    pass
52
    pass
51
 
53
 
52
  def getPrimaryInfo(self, userId):
54
  def getPrimaryInfo(self, userId, isSessionId):
53
    """
55
    """
54
    Parameters:
56
    Parameters:
55
     - userId
57
     - userId
-
 
58
     - isSessionId
56
    """
59
    """
57
    pass
60
    pass
58
 
61
 
59
  def getInternalInfo(self, userId):
62
  def getInternalInfo(self, userId, isSessionId):
60
    """
63
    """
61
    Parameters:
64
    Parameters:
62
     - userId
65
     - userId
-
 
66
     - isSessionId
63
    """
67
    """
64
    pass
68
    pass
65
 
69
 
66
  def getContext(self, email, password):
70
  def getContext(self, email, password):
67
    """
71
    """
Line 69... Line 73...
69
     - email
73
     - email
70
     - password
74
     - password
71
    """
75
    """
72
    pass
76
    pass
73
 
77
 
-
 
78
  def authenticateUser(self, handle, password, isEmail):
-
 
79
    """
-
 
80
    Parameters:
-
 
81
     - handle
-
 
82
     - password
-
 
83
     - isEmail
-
 
84
    """
-
 
85
    pass
-
 
86
 
74
  def userExists(self, email):
87
  def userExists(self, email):
75
    """
88
    """
76
    Parameters:
89
    Parameters:
77
     - email
90
     - email
78
    """
91
    """
Line 126... Line 139...
126
     - userid
139
     - userid
127
     - password
140
     - password
128
    """
141
    """
129
    pass
142
    pass
130
 
143
 
131
  def deleteUser(self, userid):
144
  def deleteUser(self, userid, isSessionId):
132
    """
145
    """
133
    Parameters:
146
    Parameters:
134
     - userid
147
     - userid
-
 
148
     - isSessionId
135
    """
149
    """
136
    pass
150
    pass
137
 
151
 
138
  def sendEmailVerification(self, userid):
152
  def sendEmailVerification(self, userid):
139
    """
153
    """
Line 215... Line 229...
215
      return result.success
229
      return result.success
216
    if result.cex != None:
230
    if result.cex != None:
217
      raise result.cex
231
      raise result.cex
218
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createContext failed: unknown result");
232
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createContext failed: unknown result");
219
 
233
 
220
  def getContextFromId(self, userId):
234
  def getContextFromId(self, userId, isSessionId):
221
    """
235
    """
222
    Parameters:
236
    Parameters:
223
     - userId
237
     - userId
-
 
238
     - isSessionId
224
    """
239
    """
225
    self.send_getContextFromId(userId)
240
    self.send_getContextFromId(userId, isSessionId)
226
    return self.recv_getContextFromId()
241
    return self.recv_getContextFromId()
227
 
242
 
228
  def send_getContextFromId(self, userId):
243
  def send_getContextFromId(self, userId, isSessionId):
229
    self._oprot.writeMessageBegin('getContextFromId', TMessageType.CALL, self._seqid)
244
    self._oprot.writeMessageBegin('getContextFromId', TMessageType.CALL, self._seqid)
230
    args = getContextFromId_args()
245
    args = getContextFromId_args()
231
    args.userId = userId
246
    args.userId = userId
-
 
247
    args.isSessionId = isSessionId
232
    args.write(self._oprot)
248
    args.write(self._oprot)
233
    self._oprot.writeMessageEnd()
249
    self._oprot.writeMessageEnd()
234
    self._oprot.trans.flush()
250
    self._oprot.trans.flush()
235
 
251
 
236
  def recv_getContextFromId(self, ):
252
  def recv_getContextFromId(self, ):
Line 281... Line 297...
281
      return result.success
297
      return result.success
282
    if result.ucx != None:
298
    if result.ucx != None:
283
      raise result.ucx
299
      raise result.ucx
284
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getContextFromEmailOrHandle failed: unknown result");
300
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getContextFromEmailOrHandle failed: unknown result");
285
 
301
 
286
  def getState(self, userId):
302
  def getState(self, userId, isSessionId):
287
    """
303
    """
288
    Parameters:
304
    Parameters:
289
     - userId
305
     - userId
-
 
306
     - isSessionId
290
    """
307
    """
291
    self.send_getState(userId)
308
    self.send_getState(userId, isSessionId)
292
    return self.recv_getState()
309
    return self.recv_getState()
293
 
310
 
294
  def send_getState(self, userId):
311
  def send_getState(self, userId, isSessionId):
295
    self._oprot.writeMessageBegin('getState', TMessageType.CALL, self._seqid)
312
    self._oprot.writeMessageBegin('getState', TMessageType.CALL, self._seqid)
296
    args = getState_args()
313
    args = getState_args()
297
    args.userId = userId
314
    args.userId = userId
-
 
315
    args.isSessionId = isSessionId
298
    args.write(self._oprot)
316
    args.write(self._oprot)
299
    self._oprot.writeMessageEnd()
317
    self._oprot.writeMessageEnd()
300
    self._oprot.trans.flush()
318
    self._oprot.trans.flush()
301
 
319
 
302
  def recv_getState(self, ):
320
  def recv_getState(self, ):
Line 313... Line 331...
313
      return result.success
331
      return result.success
314
    if result.ucx != None:
332
    if result.ucx != None:
315
      raise result.ucx
333
      raise result.ucx
316
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getState failed: unknown result");
334
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getState failed: unknown result");
317
 
335
 
318
  def getPrimaryInfo(self, userId):
336
  def getPrimaryInfo(self, userId, isSessionId):
319
    """
337
    """
320
    Parameters:
338
    Parameters:
321
     - userId
339
     - userId
-
 
340
     - isSessionId
322
    """
341
    """
323
    self.send_getPrimaryInfo(userId)
342
    self.send_getPrimaryInfo(userId, isSessionId)
324
    return self.recv_getPrimaryInfo()
343
    return self.recv_getPrimaryInfo()
325
 
344
 
326
  def send_getPrimaryInfo(self, userId):
345
  def send_getPrimaryInfo(self, userId, isSessionId):
327
    self._oprot.writeMessageBegin('getPrimaryInfo', TMessageType.CALL, self._seqid)
346
    self._oprot.writeMessageBegin('getPrimaryInfo', TMessageType.CALL, self._seqid)
328
    args = getPrimaryInfo_args()
347
    args = getPrimaryInfo_args()
329
    args.userId = userId
348
    args.userId = userId
-
 
349
    args.isSessionId = isSessionId
330
    args.write(self._oprot)
350
    args.write(self._oprot)
331
    self._oprot.writeMessageEnd()
351
    self._oprot.writeMessageEnd()
332
    self._oprot.trans.flush()
352
    self._oprot.trans.flush()
333
 
353
 
334
  def recv_getPrimaryInfo(self, ):
354
  def recv_getPrimaryInfo(self, ):
Line 345... Line 365...
345
      return result.success
365
      return result.success
346
    if result.ucx != None:
366
    if result.ucx != None:
347
      raise result.ucx
367
      raise result.ucx
348
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrimaryInfo failed: unknown result");
368
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrimaryInfo failed: unknown result");
349
 
369
 
350
  def getInternalInfo(self, userId):
370
  def getInternalInfo(self, userId, isSessionId):
351
    """
371
    """
352
    Parameters:
372
    Parameters:
353
     - userId
373
     - userId
-
 
374
     - isSessionId
354
    """
375
    """
355
    self.send_getInternalInfo(userId)
376
    self.send_getInternalInfo(userId, isSessionId)
356
    return self.recv_getInternalInfo()
377
    return self.recv_getInternalInfo()
357
 
378
 
358
  def send_getInternalInfo(self, userId):
379
  def send_getInternalInfo(self, userId, isSessionId):
359
    self._oprot.writeMessageBegin('getInternalInfo', TMessageType.CALL, self._seqid)
380
    self._oprot.writeMessageBegin('getInternalInfo', TMessageType.CALL, self._seqid)
360
    args = getInternalInfo_args()
381
    args = getInternalInfo_args()
361
    args.userId = userId
382
    args.userId = userId
-
 
383
    args.isSessionId = isSessionId
362
    args.write(self._oprot)
384
    args.write(self._oprot)
363
    self._oprot.writeMessageEnd()
385
    self._oprot.writeMessageEnd()
364
    self._oprot.trans.flush()
386
    self._oprot.trans.flush()
365
 
387
 
366
  def recv_getInternalInfo(self, ):
388
  def recv_getInternalInfo(self, ):
Line 411... Line 433...
411
      return result.success
433
      return result.success
412
    if result.ax != None:
434
    if result.ax != None:
413
      raise result.ax
435
      raise result.ax
414
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getContext failed: unknown result");
436
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getContext failed: unknown result");
415
 
437
 
-
 
438
  def authenticateUser(self, handle, password, isEmail):
-
 
439
    """
-
 
440
    Parameters:
-
 
441
     - handle
-
 
442
     - password
-
 
443
     - isEmail
-
 
444
    """
-
 
445
    self.send_authenticateUser(handle, password, isEmail)
-
 
446
    return self.recv_authenticateUser()
-
 
447
 
-
 
448
  def send_authenticateUser(self, handle, password, isEmail):
-
 
449
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
-
 
450
    args = authenticateUser_args()
-
 
451
    args.handle = handle
-
 
452
    args.password = password
-
 
453
    args.isEmail = isEmail
-
 
454
    args.write(self._oprot)
-
 
455
    self._oprot.writeMessageEnd()
-
 
456
    self._oprot.trans.flush()
-
 
457
 
-
 
458
  def recv_authenticateUser(self, ):
-
 
459
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
460
    if mtype == TMessageType.EXCEPTION:
-
 
461
      x = TApplicationException()
-
 
462
      x.read(self._iprot)
-
 
463
      self._iprot.readMessageEnd()
-
 
464
      raise x
-
 
465
    result = authenticateUser_result()
-
 
466
    result.read(self._iprot)
-
 
467
    self._iprot.readMessageEnd()
-
 
468
    if result.success != None:
-
 
469
      return result.success
-
 
470
    if result.ax != None:
-
 
471
      raise result.ax
-
 
472
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
-
 
473
 
416
  def userExists(self, email):
474
  def userExists(self, email):
417
    """
475
    """
418
    Parameters:
476
    Parameters:
419
     - email
477
     - email
420
    """
478
    """
Line 651... Line 709...
651
      return result.success
709
      return result.success
652
    if result.ucx != None:
710
    if result.ucx != None:
653
      raise result.ucx
711
      raise result.ucx
654
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
712
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
655
 
713
 
656
  def deleteUser(self, userid):
714
  def deleteUser(self, userid, isSessionId):
657
    """
715
    """
658
    Parameters:
716
    Parameters:
659
     - userid
717
     - userid
-
 
718
     - isSessionId
660
    """
719
    """
661
    self.send_deleteUser(userid)
720
    self.send_deleteUser(userid, isSessionId)
662
    return self.recv_deleteUser()
721
    return self.recv_deleteUser()
663
 
722
 
664
  def send_deleteUser(self, userid):
723
  def send_deleteUser(self, userid, isSessionId):
665
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
724
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
666
    args = deleteUser_args()
725
    args = deleteUser_args()
667
    args.userid = userid
726
    args.userid = userid
-
 
727
    args.isSessionId = isSessionId
668
    args.write(self._oprot)
728
    args.write(self._oprot)
669
    self._oprot.writeMessageEnd()
729
    self._oprot.writeMessageEnd()
670
    self._oprot.trans.flush()
730
    self._oprot.trans.flush()
671
 
731
 
672
  def recv_deleteUser(self, ):
732
  def recv_deleteUser(self, ):
Line 859... Line 919...
859
    self._processMap["getContextFromEmailOrHandle"] = Processor.process_getContextFromEmailOrHandle
919
    self._processMap["getContextFromEmailOrHandle"] = Processor.process_getContextFromEmailOrHandle
860
    self._processMap["getState"] = Processor.process_getState
920
    self._processMap["getState"] = Processor.process_getState
861
    self._processMap["getPrimaryInfo"] = Processor.process_getPrimaryInfo
921
    self._processMap["getPrimaryInfo"] = Processor.process_getPrimaryInfo
862
    self._processMap["getInternalInfo"] = Processor.process_getInternalInfo
922
    self._processMap["getInternalInfo"] = Processor.process_getInternalInfo
863
    self._processMap["getContext"] = Processor.process_getContext
923
    self._processMap["getContext"] = Processor.process_getContext
-
 
924
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
864
    self._processMap["userExists"] = Processor.process_userExists
925
    self._processMap["userExists"] = Processor.process_userExists
865
    self._processMap["addIpAdressForUser"] = Processor.process_addIpAdressForUser
926
    self._processMap["addIpAdressForUser"] = Processor.process_addIpAdressForUser
866
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
927
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
867
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
928
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
868
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
929
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
Line 908... Line 969...
908
    args = getContextFromId_args()
969
    args = getContextFromId_args()
909
    args.read(iprot)
970
    args.read(iprot)
910
    iprot.readMessageEnd()
971
    iprot.readMessageEnd()
911
    result = getContextFromId_result()
972
    result = getContextFromId_result()
912
    try:
973
    try:
913
      result.success = self._handler.getContextFromId(args.userId)
974
      result.success = self._handler.getContextFromId(args.userId, args.isSessionId)
914
    except UserContextException, ucx:
975
    except UserContextException, ucx:
915
      result.ucx = ucx
976
      result.ucx = ucx
916
    oprot.writeMessageBegin("getContextFromId", TMessageType.REPLY, seqid)
977
    oprot.writeMessageBegin("getContextFromId", TMessageType.REPLY, seqid)
917
    result.write(oprot)
978
    result.write(oprot)
918
    oprot.writeMessageEnd()
979
    oprot.writeMessageEnd()
Line 936... Line 997...
936
    args = getState_args()
997
    args = getState_args()
937
    args.read(iprot)
998
    args.read(iprot)
938
    iprot.readMessageEnd()
999
    iprot.readMessageEnd()
939
    result = getState_result()
1000
    result = getState_result()
940
    try:
1001
    try:
941
      result.success = self._handler.getState(args.userId)
1002
      result.success = self._handler.getState(args.userId, args.isSessionId)
942
    except UserContextException, ucx:
1003
    except UserContextException, ucx:
943
      result.ucx = ucx
1004
      result.ucx = ucx
944
    oprot.writeMessageBegin("getState", TMessageType.REPLY, seqid)
1005
    oprot.writeMessageBegin("getState", TMessageType.REPLY, seqid)
945
    result.write(oprot)
1006
    result.write(oprot)
946
    oprot.writeMessageEnd()
1007
    oprot.writeMessageEnd()
Line 950... Line 1011...
950
    args = getPrimaryInfo_args()
1011
    args = getPrimaryInfo_args()
951
    args.read(iprot)
1012
    args.read(iprot)
952
    iprot.readMessageEnd()
1013
    iprot.readMessageEnd()
953
    result = getPrimaryInfo_result()
1014
    result = getPrimaryInfo_result()
954
    try:
1015
    try:
955
      result.success = self._handler.getPrimaryInfo(args.userId)
1016
      result.success = self._handler.getPrimaryInfo(args.userId, args.isSessionId)
956
    except UserContextException, ucx:
1017
    except UserContextException, ucx:
957
      result.ucx = ucx
1018
      result.ucx = ucx
958
    oprot.writeMessageBegin("getPrimaryInfo", TMessageType.REPLY, seqid)
1019
    oprot.writeMessageBegin("getPrimaryInfo", TMessageType.REPLY, seqid)
959
    result.write(oprot)
1020
    result.write(oprot)
960
    oprot.writeMessageEnd()
1021
    oprot.writeMessageEnd()
Line 964... Line 1025...
964
    args = getInternalInfo_args()
1025
    args = getInternalInfo_args()
965
    args.read(iprot)
1026
    args.read(iprot)
966
    iprot.readMessageEnd()
1027
    iprot.readMessageEnd()
967
    result = getInternalInfo_result()
1028
    result = getInternalInfo_result()
968
    try:
1029
    try:
969
      result.success = self._handler.getInternalInfo(args.userId)
1030
      result.success = self._handler.getInternalInfo(args.userId, args.isSessionId)
970
    except UserContextException, ucx:
1031
    except UserContextException, ucx:
971
      result.ucx = ucx
1032
      result.ucx = ucx
972
    oprot.writeMessageBegin("getInternalInfo", TMessageType.REPLY, seqid)
1033
    oprot.writeMessageBegin("getInternalInfo", TMessageType.REPLY, seqid)
973
    result.write(oprot)
1034
    result.write(oprot)
974
    oprot.writeMessageEnd()
1035
    oprot.writeMessageEnd()
Line 986... Line 1047...
986
    oprot.writeMessageBegin("getContext", TMessageType.REPLY, seqid)
1047
    oprot.writeMessageBegin("getContext", TMessageType.REPLY, seqid)
987
    result.write(oprot)
1048
    result.write(oprot)
988
    oprot.writeMessageEnd()
1049
    oprot.writeMessageEnd()
989
    oprot.trans.flush()
1050
    oprot.trans.flush()
990
 
1051
 
-
 
1052
  def process_authenticateUser(self, seqid, iprot, oprot):
-
 
1053
    args = authenticateUser_args()
-
 
1054
    args.read(iprot)
-
 
1055
    iprot.readMessageEnd()
-
 
1056
    result = authenticateUser_result()
-
 
1057
    try:
-
 
1058
      result.success = self._handler.authenticateUser(args.handle, args.password, args.isEmail)
-
 
1059
    except AuthenticationException, ax:
-
 
1060
      result.ax = ax
-
 
1061
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
-
 
1062
    result.write(oprot)
-
 
1063
    oprot.writeMessageEnd()
-
 
1064
    oprot.trans.flush()
-
 
1065
 
991
  def process_userExists(self, seqid, iprot, oprot):
1066
  def process_userExists(self, seqid, iprot, oprot):
992
    args = userExists_args()
1067
    args = userExists_args()
993
    args.read(iprot)
1068
    args.read(iprot)
994
    iprot.readMessageEnd()
1069
    iprot.readMessageEnd()
995
    result = userExists_result()
1070
    result = userExists_result()
Line 1090... Line 1165...
1090
    args = deleteUser_args()
1165
    args = deleteUser_args()
1091
    args.read(iprot)
1166
    args.read(iprot)
1092
    iprot.readMessageEnd()
1167
    iprot.readMessageEnd()
1093
    result = deleteUser_result()
1168
    result = deleteUser_result()
1094
    try:
1169
    try:
1095
      result.success = self._handler.deleteUser(args.userid)
1170
      result.success = self._handler.deleteUser(args.userid, args.isSessionId)
1096
    except UserContextException, ucx:
1171
    except UserContextException, ucx:
1097
      result.ucx = ucx
1172
      result.ucx = ucx
1098
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
1173
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
1099
    result.write(oprot)
1174
    result.write(oprot)
1100
    oprot.writeMessageEnd()
1175
    oprot.writeMessageEnd()
Line 1180... Line 1255...
1180
   - updateExisting
1255
   - updateExisting
1181
  """
1256
  """
1182
 
1257
 
1183
  thrift_spec = (
1258
  thrift_spec = (
1184
    None, # 0
1259
    None, # 0
1185
    (1, TType.STRUCT, 'context', (TUserContext, TUserContext.thrift_spec), None, ), # 1
1260
    (1, TType.STRUCT, 'context', (UserContext, UserContext.thrift_spec), None, ), # 1
1186
    (2, TType.BOOL, 'updateExisting', None, None, ), # 2
1261
    (2, TType.BOOL, 'updateExisting', None, None, ), # 2
1187
  )
1262
  )
1188
 
1263
 
1189
  def __init__(self, context=None, updateExisting=None,):
1264
  def __init__(self, context=None, updateExisting=None,):
1190
    self.context = context
1265
    self.context = context
Line 1199... Line 1274...
1199
      (fname, ftype, fid) = iprot.readFieldBegin()
1274
      (fname, ftype, fid) = iprot.readFieldBegin()
1200
      if ftype == TType.STOP:
1275
      if ftype == TType.STOP:
1201
        break
1276
        break
1202
      if fid == 1:
1277
      if fid == 1:
1203
        if ftype == TType.STRUCT:
1278
        if ftype == TType.STRUCT:
1204
          self.context = TUserContext()
1279
          self.context = UserContext()
1205
          self.context.read(iprot)
1280
          self.context.read(iprot)
1206
        else:
1281
        else:
1207
          iprot.skip(ftype)
1282
          iprot.skip(ftype)
1208
      elif fid == 2:
1283
      elif fid == 2:
1209
        if ftype == TType.BOOL:
1284
        if ftype == TType.BOOL:
Line 1248... Line 1323...
1248
   - success
1323
   - success
1249
   - cex
1324
   - cex
1250
  """
1325
  """
1251
 
1326
 
1252
  thrift_spec = (
1327
  thrift_spec = (
1253
    (0, TType.STRUCT, 'success', (TUserContext, TUserContext.thrift_spec), None, ), # 0
1328
    (0, TType.STRUCT, 'success', (UserContext, UserContext.thrift_spec), None, ), # 0
1254
    (1, TType.STRUCT, 'cex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1329
    (1, TType.STRUCT, 'cex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1255
  )
1330
  )
1256
 
1331
 
1257
  def __init__(self, success=None, cex=None,):
1332
  def __init__(self, success=None, cex=None,):
1258
    self.success = success
1333
    self.success = success
Line 1267... Line 1342...
1267
      (fname, ftype, fid) = iprot.readFieldBegin()
1342
      (fname, ftype, fid) = iprot.readFieldBegin()
1268
      if ftype == TType.STOP:
1343
      if ftype == TType.STOP:
1269
        break
1344
        break
1270
      if fid == 0:
1345
      if fid == 0:
1271
        if ftype == TType.STRUCT:
1346
        if ftype == TType.STRUCT:
1272
          self.success = TUserContext()
1347
          self.success = UserContext()
1273
          self.success.read(iprot)
1348
          self.success.read(iprot)
1274
        else:
1349
        else:
1275
          iprot.skip(ftype)
1350
          iprot.skip(ftype)
1276
      elif fid == 1:
1351
      elif fid == 1:
1277
        if ftype == TType.STRUCT:
1352
        if ftype == TType.STRUCT:
Line 1313... Line 1388...
1313
 
1388
 
1314
class getContextFromId_args:
1389
class getContextFromId_args:
1315
  """
1390
  """
1316
  Attributes:
1391
  Attributes:
1317
   - userId
1392
   - userId
-
 
1393
   - isSessionId
1318
  """
1394
  """
1319
 
1395
 
1320
  thrift_spec = (
1396
  thrift_spec = (
1321
    None, # 0
1397
    None, # 0
1322
    (1, TType.I64, 'userId', None, None, ), # 1
1398
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
1399
    (2, TType.BOOL, 'isSessionId', None, None, ), # 2
1323
  )
1400
  )
1324
 
1401
 
1325
  def __init__(self, userId=None,):
1402
  def __init__(self, userId=None, isSessionId=None,):
1326
    self.userId = userId
1403
    self.userId = userId
-
 
1404
    self.isSessionId = isSessionId
1327
 
1405
 
1328
  def read(self, iprot):
1406
  def read(self, iprot):
1329
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1407
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1330
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1408
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1331
      return
1409
      return
Line 1337... Line 1415...
1337
      if fid == 1:
1415
      if fid == 1:
1338
        if ftype == TType.I64:
1416
        if ftype == TType.I64:
1339
          self.userId = iprot.readI64();
1417
          self.userId = iprot.readI64();
1340
        else:
1418
        else:
1341
          iprot.skip(ftype)
1419
          iprot.skip(ftype)
-
 
1420
      elif fid == 2:
-
 
1421
        if ftype == TType.BOOL:
-
 
1422
          self.isSessionId = iprot.readBool();
-
 
1423
        else:
-
 
1424
          iprot.skip(ftype)
1342
      else:
1425
      else:
1343
        iprot.skip(ftype)
1426
        iprot.skip(ftype)
1344
      iprot.readFieldEnd()
1427
      iprot.readFieldEnd()
1345
    iprot.readStructEnd()
1428
    iprot.readStructEnd()
1346
 
1429
 
Line 1351... Line 1434...
1351
    oprot.writeStructBegin('getContextFromId_args')
1434
    oprot.writeStructBegin('getContextFromId_args')
1352
    if self.userId != None:
1435
    if self.userId != None:
1353
      oprot.writeFieldBegin('userId', TType.I64, 1)
1436
      oprot.writeFieldBegin('userId', TType.I64, 1)
1354
      oprot.writeI64(self.userId)
1437
      oprot.writeI64(self.userId)
1355
      oprot.writeFieldEnd()
1438
      oprot.writeFieldEnd()
-
 
1439
    if self.isSessionId != None:
-
 
1440
      oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)
-
 
1441
      oprot.writeBool(self.isSessionId)
-
 
1442
      oprot.writeFieldEnd()
1356
    oprot.writeFieldStop()
1443
    oprot.writeFieldStop()
1357
    oprot.writeStructEnd()
1444
    oprot.writeStructEnd()
1358
 
1445
 
1359
  def __repr__(self):
1446
  def __repr__(self):
1360
    L = ['%s=%r' % (key, value)
1447
    L = ['%s=%r' % (key, value)
Line 1373... Line 1460...
1373
   - success
1460
   - success
1374
   - ucx
1461
   - ucx
1375
  """
1462
  """
1376
 
1463
 
1377
  thrift_spec = (
1464
  thrift_spec = (
1378
    (0, TType.STRUCT, 'success', (TUserContext, TUserContext.thrift_spec), None, ), # 0
1465
    (0, TType.STRUCT, 'success', (UserContext, UserContext.thrift_spec), None, ), # 0
1379
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1466
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1380
  )
1467
  )
1381
 
1468
 
1382
  def __init__(self, success=None, ucx=None,):
1469
  def __init__(self, success=None, ucx=None,):
1383
    self.success = success
1470
    self.success = success
Line 1392... Line 1479...
1392
      (fname, ftype, fid) = iprot.readFieldBegin()
1479
      (fname, ftype, fid) = iprot.readFieldBegin()
1393
      if ftype == TType.STOP:
1480
      if ftype == TType.STOP:
1394
        break
1481
        break
1395
      if fid == 0:
1482
      if fid == 0:
1396
        if ftype == TType.STRUCT:
1483
        if ftype == TType.STRUCT:
1397
          self.success = TUserContext()
1484
          self.success = UserContext()
1398
          self.success.read(iprot)
1485
          self.success.read(iprot)
1399
        else:
1486
        else:
1400
          iprot.skip(ftype)
1487
          iprot.skip(ftype)
1401
      elif fid == 1:
1488
      elif fid == 1:
1402
        if ftype == TType.STRUCT:
1489
        if ftype == TType.STRUCT:
Line 1510... Line 1597...
1510
   - success
1597
   - success
1511
   - ucx
1598
   - ucx
1512
  """
1599
  """
1513
 
1600
 
1514
  thrift_spec = (
1601
  thrift_spec = (
1515
    (0, TType.STRUCT, 'success', (TUserContext, TUserContext.thrift_spec), None, ), # 0
1602
    (0, TType.STRUCT, 'success', (UserContext, UserContext.thrift_spec), None, ), # 0
1516
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1603
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1517
  )
1604
  )
1518
 
1605
 
1519
  def __init__(self, success=None, ucx=None,):
1606
  def __init__(self, success=None, ucx=None,):
1520
    self.success = success
1607
    self.success = success
Line 1529... Line 1616...
1529
      (fname, ftype, fid) = iprot.readFieldBegin()
1616
      (fname, ftype, fid) = iprot.readFieldBegin()
1530
      if ftype == TType.STOP:
1617
      if ftype == TType.STOP:
1531
        break
1618
        break
1532
      if fid == 0:
1619
      if fid == 0:
1533
        if ftype == TType.STRUCT:
1620
        if ftype == TType.STRUCT:
1534
          self.success = TUserContext()
1621
          self.success = UserContext()
1535
          self.success.read(iprot)
1622
          self.success.read(iprot)
1536
        else:
1623
        else:
1537
          iprot.skip(ftype)
1624
          iprot.skip(ftype)
1538
      elif fid == 1:
1625
      elif fid == 1:
1539
        if ftype == TType.STRUCT:
1626
        if ftype == TType.STRUCT:
Line 1575... Line 1662...
1575
 
1662
 
1576
class getState_args:
1663
class getState_args:
1577
  """
1664
  """
1578
  Attributes:
1665
  Attributes:
1579
   - userId
1666
   - userId
-
 
1667
   - isSessionId
1580
  """
1668
  """
1581
 
1669
 
1582
  thrift_spec = (
1670
  thrift_spec = (
1583
    None, # 0
1671
    None, # 0
1584
    (1, TType.I64, 'userId', None, None, ), # 1
1672
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
1673
    (2, TType.BOOL, 'isSessionId', None, None, ), # 2
1585
  )
1674
  )
1586
 
1675
 
1587
  def __init__(self, userId=None,):
1676
  def __init__(self, userId=None, isSessionId=None,):
1588
    self.userId = userId
1677
    self.userId = userId
-
 
1678
    self.isSessionId = isSessionId
1589
 
1679
 
1590
  def read(self, iprot):
1680
  def read(self, iprot):
1591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1593
      return
1683
      return
Line 1599... Line 1689...
1599
      if fid == 1:
1689
      if fid == 1:
1600
        if ftype == TType.I64:
1690
        if ftype == TType.I64:
1601
          self.userId = iprot.readI64();
1691
          self.userId = iprot.readI64();
1602
        else:
1692
        else:
1603
          iprot.skip(ftype)
1693
          iprot.skip(ftype)
-
 
1694
      elif fid == 2:
-
 
1695
        if ftype == TType.BOOL:
-
 
1696
          self.isSessionId = iprot.readBool();
-
 
1697
        else:
-
 
1698
          iprot.skip(ftype)
1604
      else:
1699
      else:
1605
        iprot.skip(ftype)
1700
        iprot.skip(ftype)
1606
      iprot.readFieldEnd()
1701
      iprot.readFieldEnd()
1607
    iprot.readStructEnd()
1702
    iprot.readStructEnd()
1608
 
1703
 
Line 1613... Line 1708...
1613
    oprot.writeStructBegin('getState_args')
1708
    oprot.writeStructBegin('getState_args')
1614
    if self.userId != None:
1709
    if self.userId != None:
1615
      oprot.writeFieldBegin('userId', TType.I64, 1)
1710
      oprot.writeFieldBegin('userId', TType.I64, 1)
1616
      oprot.writeI64(self.userId)
1711
      oprot.writeI64(self.userId)
1617
      oprot.writeFieldEnd()
1712
      oprot.writeFieldEnd()
-
 
1713
    if self.isSessionId != None:
-
 
1714
      oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)
-
 
1715
      oprot.writeBool(self.isSessionId)
-
 
1716
      oprot.writeFieldEnd()
1618
    oprot.writeFieldStop()
1717
    oprot.writeFieldStop()
1619
    oprot.writeStructEnd()
1718
    oprot.writeStructEnd()
1620
 
1719
 
1621
  def __repr__(self):
1720
  def __repr__(self):
1622
    L = ['%s=%r' % (key, value)
1721
    L = ['%s=%r' % (key, value)
Line 1635... Line 1734...
1635
   - success
1734
   - success
1636
   - ucx
1735
   - ucx
1637
  """
1736
  """
1638
 
1737
 
1639
  thrift_spec = (
1738
  thrift_spec = (
1640
    (0, TType.STRUCT, 'success', (TUserState, TUserState.thrift_spec), None, ), # 0
1739
    (0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0
1641
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1740
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1642
  )
1741
  )
1643
 
1742
 
1644
  def __init__(self, success=None, ucx=None,):
1743
  def __init__(self, success=None, ucx=None,):
1645
    self.success = success
1744
    self.success = success
Line 1654... Line 1753...
1654
      (fname, ftype, fid) = iprot.readFieldBegin()
1753
      (fname, ftype, fid) = iprot.readFieldBegin()
1655
      if ftype == TType.STOP:
1754
      if ftype == TType.STOP:
1656
        break
1755
        break
1657
      if fid == 0:
1756
      if fid == 0:
1658
        if ftype == TType.STRUCT:
1757
        if ftype == TType.STRUCT:
1659
          self.success = TUserState()
1758
          self.success = UserState()
1660
          self.success.read(iprot)
1759
          self.success.read(iprot)
1661
        else:
1760
        else:
1662
          iprot.skip(ftype)
1761
          iprot.skip(ftype)
1663
      elif fid == 1:
1762
      elif fid == 1:
1664
        if ftype == TType.STRUCT:
1763
        if ftype == TType.STRUCT:
Line 1700... Line 1799...
1700
 
1799
 
1701
class getPrimaryInfo_args:
1800
class getPrimaryInfo_args:
1702
  """
1801
  """
1703
  Attributes:
1802
  Attributes:
1704
   - userId
1803
   - userId
-
 
1804
   - isSessionId
1705
  """
1805
  """
1706
 
1806
 
1707
  thrift_spec = (
1807
  thrift_spec = (
1708
    None, # 0
1808
    None, # 0
1709
    (1, TType.I64, 'userId', None, None, ), # 1
1809
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
1810
    (2, TType.BOOL, 'isSessionId', None, None, ), # 2
1710
  )
1811
  )
1711
 
1812
 
1712
  def __init__(self, userId=None,):
1813
  def __init__(self, userId=None, isSessionId=None,):
1713
    self.userId = userId
1814
    self.userId = userId
-
 
1815
    self.isSessionId = isSessionId
1714
 
1816
 
1715
  def read(self, iprot):
1817
  def read(self, iprot):
1716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1818
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1819
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1718
      return
1820
      return
Line 1724... Line 1826...
1724
      if fid == 1:
1826
      if fid == 1:
1725
        if ftype == TType.I64:
1827
        if ftype == TType.I64:
1726
          self.userId = iprot.readI64();
1828
          self.userId = iprot.readI64();
1727
        else:
1829
        else:
1728
          iprot.skip(ftype)
1830
          iprot.skip(ftype)
-
 
1831
      elif fid == 2:
-
 
1832
        if ftype == TType.BOOL:
-
 
1833
          self.isSessionId = iprot.readBool();
-
 
1834
        else:
-
 
1835
          iprot.skip(ftype)
1729
      else:
1836
      else:
1730
        iprot.skip(ftype)
1837
        iprot.skip(ftype)
1731
      iprot.readFieldEnd()
1838
      iprot.readFieldEnd()
1732
    iprot.readStructEnd()
1839
    iprot.readStructEnd()
1733
 
1840
 
Line 1738... Line 1845...
1738
    oprot.writeStructBegin('getPrimaryInfo_args')
1845
    oprot.writeStructBegin('getPrimaryInfo_args')
1739
    if self.userId != None:
1846
    if self.userId != None:
1740
      oprot.writeFieldBegin('userId', TType.I64, 1)
1847
      oprot.writeFieldBegin('userId', TType.I64, 1)
1741
      oprot.writeI64(self.userId)
1848
      oprot.writeI64(self.userId)
1742
      oprot.writeFieldEnd()
1849
      oprot.writeFieldEnd()
-
 
1850
    if self.isSessionId != None:
-
 
1851
      oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)
-
 
1852
      oprot.writeBool(self.isSessionId)
-
 
1853
      oprot.writeFieldEnd()
1743
    oprot.writeFieldStop()
1854
    oprot.writeFieldStop()
1744
    oprot.writeStructEnd()
1855
    oprot.writeStructEnd()
1745
 
1856
 
1746
  def __repr__(self):
1857
  def __repr__(self):
1747
    L = ['%s=%r' % (key, value)
1858
    L = ['%s=%r' % (key, value)
Line 1760... Line 1871...
1760
   - success
1871
   - success
1761
   - ucx
1872
   - ucx
1762
  """
1873
  """
1763
 
1874
 
1764
  thrift_spec = (
1875
  thrift_spec = (
1765
    (0, TType.STRUCT, 'success', (TUserPrimaryInfo, TUserPrimaryInfo.thrift_spec), None, ), # 0
1876
    (0, TType.STRUCT, 'success', (UserPrimaryInfo, UserPrimaryInfo.thrift_spec), None, ), # 0
1766
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1877
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1767
  )
1878
  )
1768
 
1879
 
1769
  def __init__(self, success=None, ucx=None,):
1880
  def __init__(self, success=None, ucx=None,):
1770
    self.success = success
1881
    self.success = success
Line 1779... Line 1890...
1779
      (fname, ftype, fid) = iprot.readFieldBegin()
1890
      (fname, ftype, fid) = iprot.readFieldBegin()
1780
      if ftype == TType.STOP:
1891
      if ftype == TType.STOP:
1781
        break
1892
        break
1782
      if fid == 0:
1893
      if fid == 0:
1783
        if ftype == TType.STRUCT:
1894
        if ftype == TType.STRUCT:
1784
          self.success = TUserPrimaryInfo()
1895
          self.success = UserPrimaryInfo()
1785
          self.success.read(iprot)
1896
          self.success.read(iprot)
1786
        else:
1897
        else:
1787
          iprot.skip(ftype)
1898
          iprot.skip(ftype)
1788
      elif fid == 1:
1899
      elif fid == 1:
1789
        if ftype == TType.STRUCT:
1900
        if ftype == TType.STRUCT:
Line 1825... Line 1936...
1825
 
1936
 
1826
class getInternalInfo_args:
1937
class getInternalInfo_args:
1827
  """
1938
  """
1828
  Attributes:
1939
  Attributes:
1829
   - userId
1940
   - userId
-
 
1941
   - isSessionId
1830
  """
1942
  """
1831
 
1943
 
1832
  thrift_spec = (
1944
  thrift_spec = (
1833
    None, # 0
1945
    None, # 0
1834
    (1, TType.I64, 'userId', None, None, ), # 1
1946
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
1947
    (2, TType.BOOL, 'isSessionId', None, None, ), # 2
1835
  )
1948
  )
1836
 
1949
 
1837
  def __init__(self, userId=None,):
1950
  def __init__(self, userId=None, isSessionId=None,):
1838
    self.userId = userId
1951
    self.userId = userId
-
 
1952
    self.isSessionId = isSessionId
1839
 
1953
 
1840
  def read(self, iprot):
1954
  def read(self, iprot):
1841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1843
      return
1957
      return
Line 1849... Line 1963...
1849
      if fid == 1:
1963
      if fid == 1:
1850
        if ftype == TType.I64:
1964
        if ftype == TType.I64:
1851
          self.userId = iprot.readI64();
1965
          self.userId = iprot.readI64();
1852
        else:
1966
        else:
1853
          iprot.skip(ftype)
1967
          iprot.skip(ftype)
-
 
1968
      elif fid == 2:
-
 
1969
        if ftype == TType.BOOL:
-
 
1970
          self.isSessionId = iprot.readBool();
-
 
1971
        else:
-
 
1972
          iprot.skip(ftype)
1854
      else:
1973
      else:
1855
        iprot.skip(ftype)
1974
        iprot.skip(ftype)
1856
      iprot.readFieldEnd()
1975
      iprot.readFieldEnd()
1857
    iprot.readStructEnd()
1976
    iprot.readStructEnd()
1858
 
1977
 
Line 1863... Line 1982...
1863
    oprot.writeStructBegin('getInternalInfo_args')
1982
    oprot.writeStructBegin('getInternalInfo_args')
1864
    if self.userId != None:
1983
    if self.userId != None:
1865
      oprot.writeFieldBegin('userId', TType.I64, 1)
1984
      oprot.writeFieldBegin('userId', TType.I64, 1)
1866
      oprot.writeI64(self.userId)
1985
      oprot.writeI64(self.userId)
1867
      oprot.writeFieldEnd()
1986
      oprot.writeFieldEnd()
-
 
1987
    if self.isSessionId != None:
-
 
1988
      oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)
-
 
1989
      oprot.writeBool(self.isSessionId)
-
 
1990
      oprot.writeFieldEnd()
1868
    oprot.writeFieldStop()
1991
    oprot.writeFieldStop()
1869
    oprot.writeStructEnd()
1992
    oprot.writeStructEnd()
1870
 
1993
 
1871
  def __repr__(self):
1994
  def __repr__(self):
1872
    L = ['%s=%r' % (key, value)
1995
    L = ['%s=%r' % (key, value)
Line 1885... Line 2008...
1885
   - success
2008
   - success
1886
   - ucx
2009
   - ucx
1887
  """
2010
  """
1888
 
2011
 
1889
  thrift_spec = (
2012
  thrift_spec = (
1890
    (0, TType.STRUCT, 'success', (TUserInternalInfo, TUserInternalInfo.thrift_spec), None, ), # 0
2013
    (0, TType.STRUCT, 'success', (UserInternalInfo, UserInternalInfo.thrift_spec), None, ), # 0
1891
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2014
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1892
  )
2015
  )
1893
 
2016
 
1894
  def __init__(self, success=None, ucx=None,):
2017
  def __init__(self, success=None, ucx=None,):
1895
    self.success = success
2018
    self.success = success
Line 1904... Line 2027...
1904
      (fname, ftype, fid) = iprot.readFieldBegin()
2027
      (fname, ftype, fid) = iprot.readFieldBegin()
1905
      if ftype == TType.STOP:
2028
      if ftype == TType.STOP:
1906
        break
2029
        break
1907
      if fid == 0:
2030
      if fid == 0:
1908
        if ftype == TType.STRUCT:
2031
        if ftype == TType.STRUCT:
1909
          self.success = TUserInternalInfo()
2032
          self.success = UserInternalInfo()
1910
          self.success.read(iprot)
2033
          self.success.read(iprot)
1911
        else:
2034
        else:
1912
          iprot.skip(ftype)
2035
          iprot.skip(ftype)
1913
      elif fid == 1:
2036
      elif fid == 1:
1914
        if ftype == TType.STRUCT:
2037
        if ftype == TType.STRUCT:
Line 2022... Line 2145...
2022
   - success
2145
   - success
2023
   - ax
2146
   - ax
2024
  """
2147
  """
2025
 
2148
 
2026
  thrift_spec = (
2149
  thrift_spec = (
2027
    (0, TType.STRUCT, 'success', (TUserContext, TUserContext.thrift_spec), None, ), # 0
2150
    (0, TType.STRUCT, 'success', (UserContext, UserContext.thrift_spec), None, ), # 0
2028
    (1, TType.STRUCT, 'ax', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
2151
    (1, TType.STRUCT, 'ax', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
2029
  )
2152
  )
2030
 
2153
 
2031
  def __init__(self, success=None, ax=None,):
2154
  def __init__(self, success=None, ax=None,):
2032
    self.success = success
2155
    self.success = success
Line 2041... Line 2164...
2041
      (fname, ftype, fid) = iprot.readFieldBegin()
2164
      (fname, ftype, fid) = iprot.readFieldBegin()
2042
      if ftype == TType.STOP:
2165
      if ftype == TType.STOP:
2043
        break
2166
        break
2044
      if fid == 0:
2167
      if fid == 0:
2045
        if ftype == TType.STRUCT:
2168
        if ftype == TType.STRUCT:
2046
          self.success = TUserContext()
2169
          self.success = UserContext()
2047
          self.success.read(iprot)
2170
          self.success.read(iprot)
2048
        else:
2171
        else:
2049
          iprot.skip(ftype)
2172
          iprot.skip(ftype)
2050
      elif fid == 1:
2173
      elif fid == 1:
2051
        if ftype == TType.STRUCT:
2174
        if ftype == TType.STRUCT:
Line 2083... Line 2206...
2083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2206
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2084
 
2207
 
2085
  def __ne__(self, other):
2208
  def __ne__(self, other):
2086
    return not (self == other)
2209
    return not (self == other)
2087
 
2210
 
-
 
2211
class authenticateUser_args:
-
 
2212
  """
-
 
2213
  Attributes:
-
 
2214
   - handle
-
 
2215
   - password
-
 
2216
   - isEmail
-
 
2217
  """
-
 
2218
 
-
 
2219
  thrift_spec = (
-
 
2220
    None, # 0
-
 
2221
    (1, TType.STRING, 'handle', None, None, ), # 1
-
 
2222
    (2, TType.STRING, 'password', None, None, ), # 2
-
 
2223
    (3, TType.BOOL, 'isEmail', None, None, ), # 3
-
 
2224
  )
-
 
2225
 
-
 
2226
  def __init__(self, handle=None, password=None, isEmail=None,):
-
 
2227
    self.handle = handle
-
 
2228
    self.password = password
-
 
2229
    self.isEmail = isEmail
-
 
2230
 
-
 
2231
  def read(self, iprot):
-
 
2232
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2233
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2234
      return
-
 
2235
    iprot.readStructBegin()
-
 
2236
    while True:
-
 
2237
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2238
      if ftype == TType.STOP:
-
 
2239
        break
-
 
2240
      if fid == 1:
-
 
2241
        if ftype == TType.STRING:
-
 
2242
          self.handle = iprot.readString();
-
 
2243
        else:
-
 
2244
          iprot.skip(ftype)
-
 
2245
      elif fid == 2:
-
 
2246
        if ftype == TType.STRING:
-
 
2247
          self.password = iprot.readString();
-
 
2248
        else:
-
 
2249
          iprot.skip(ftype)
-
 
2250
      elif fid == 3:
-
 
2251
        if ftype == TType.BOOL:
-
 
2252
          self.isEmail = iprot.readBool();
-
 
2253
        else:
-
 
2254
          iprot.skip(ftype)
-
 
2255
      else:
-
 
2256
        iprot.skip(ftype)
-
 
2257
      iprot.readFieldEnd()
-
 
2258
    iprot.readStructEnd()
-
 
2259
 
-
 
2260
  def write(self, oprot):
-
 
2261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2263
      return
-
 
2264
    oprot.writeStructBegin('authenticateUser_args')
-
 
2265
    if self.handle != None:
-
 
2266
      oprot.writeFieldBegin('handle', TType.STRING, 1)
-
 
2267
      oprot.writeString(self.handle)
-
 
2268
      oprot.writeFieldEnd()
-
 
2269
    if self.password != None:
-
 
2270
      oprot.writeFieldBegin('password', TType.STRING, 2)
-
 
2271
      oprot.writeString(self.password)
-
 
2272
      oprot.writeFieldEnd()
-
 
2273
    if self.isEmail != None:
-
 
2274
      oprot.writeFieldBegin('isEmail', TType.BOOL, 3)
-
 
2275
      oprot.writeBool(self.isEmail)
-
 
2276
      oprot.writeFieldEnd()
-
 
2277
    oprot.writeFieldStop()
-
 
2278
    oprot.writeStructEnd()
-
 
2279
 
-
 
2280
  def __repr__(self):
-
 
2281
    L = ['%s=%r' % (key, value)
-
 
2282
      for key, value in self.__dict__.iteritems()]
-
 
2283
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2284
 
-
 
2285
  def __eq__(self, other):
-
 
2286
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2287
 
-
 
2288
  def __ne__(self, other):
-
 
2289
    return not (self == other)
-
 
2290
 
-
 
2291
class authenticateUser_result:
-
 
2292
  """
-
 
2293
  Attributes:
-
 
2294
   - success
-
 
2295
   - ax
-
 
2296
  """
-
 
2297
 
-
 
2298
  thrift_spec = (
-
 
2299
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
2300
    (1, TType.STRUCT, 'ax', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
-
 
2301
  )
-
 
2302
 
-
 
2303
  def __init__(self, success=None, ax=None,):
-
 
2304
    self.success = success
-
 
2305
    self.ax = ax
-
 
2306
 
-
 
2307
  def read(self, iprot):
-
 
2308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2310
      return
-
 
2311
    iprot.readStructBegin()
-
 
2312
    while True:
-
 
2313
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2314
      if ftype == TType.STOP:
-
 
2315
        break
-
 
2316
      if fid == 0:
-
 
2317
        if ftype == TType.BOOL:
-
 
2318
          self.success = iprot.readBool();
-
 
2319
        else:
-
 
2320
          iprot.skip(ftype)
-
 
2321
      elif fid == 1:
-
 
2322
        if ftype == TType.STRUCT:
-
 
2323
          self.ax = AuthenticationException()
-
 
2324
          self.ax.read(iprot)
-
 
2325
        else:
-
 
2326
          iprot.skip(ftype)
-
 
2327
      else:
-
 
2328
        iprot.skip(ftype)
-
 
2329
      iprot.readFieldEnd()
-
 
2330
    iprot.readStructEnd()
-
 
2331
 
-
 
2332
  def write(self, oprot):
-
 
2333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2335
      return
-
 
2336
    oprot.writeStructBegin('authenticateUser_result')
-
 
2337
    if self.success != None:
-
 
2338
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
2339
      oprot.writeBool(self.success)
-
 
2340
      oprot.writeFieldEnd()
-
 
2341
    if self.ax != None:
-
 
2342
      oprot.writeFieldBegin('ax', TType.STRUCT, 1)
-
 
2343
      self.ax.write(oprot)
-
 
2344
      oprot.writeFieldEnd()
-
 
2345
    oprot.writeFieldStop()
-
 
2346
    oprot.writeStructEnd()
-
 
2347
 
-
 
2348
  def __repr__(self):
-
 
2349
    L = ['%s=%r' % (key, value)
-
 
2350
      for key, value in self.__dict__.iteritems()]
-
 
2351
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2352
 
-
 
2353
  def __eq__(self, other):
-
 
2354
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2355
 
-
 
2356
  def __ne__(self, other):
-
 
2357
    return not (self == other)
-
 
2358
 
2088
class userExists_args:
2359
class userExists_args:
2089
  """
2360
  """
2090
  Attributes:
2361
  Attributes:
2091
   - email
2362
   - email
2092
  """
2363
  """
Line 2365... Line 2636...
2365
   - timestamp
2636
   - timestamp
2366
  """
2637
  """
2367
 
2638
 
2368
  thrift_spec = (
2639
  thrift_spec = (
2369
    None, # 0
2640
    None, # 0
2370
    (1, TType.STRUCT, 'address', (TAddress, TAddress.thrift_spec), None, ), # 1
2641
    (1, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 1
2371
    (2, TType.I64, 'userid', None, None, ), # 2
2642
    (2, TType.I64, 'userid', None, None, ), # 2
2372
    (3, TType.I64, 'timestamp', None, None, ), # 3
2643
    (3, TType.I64, 'timestamp', None, None, ), # 3
2373
  )
2644
  )
2374
 
2645
 
2375
  def __init__(self, address=None, userid=None, timestamp=None,):
2646
  def __init__(self, address=None, userid=None, timestamp=None,):
Line 2386... Line 2657...
2386
      (fname, ftype, fid) = iprot.readFieldBegin()
2657
      (fname, ftype, fid) = iprot.readFieldBegin()
2387
      if ftype == TType.STOP:
2658
      if ftype == TType.STOP:
2388
        break
2659
        break
2389
      if fid == 1:
2660
      if fid == 1:
2390
        if ftype == TType.STRUCT:
2661
        if ftype == TType.STRUCT:
2391
          self.address = TAddress()
2662
          self.address = Address()
2392
          self.address.read(iprot)
2663
          self.address.read(iprot)
2393
        else:
2664
        else:
2394
          iprot.skip(ftype)
2665
          iprot.skip(ftype)
2395
      elif fid == 2:
2666
      elif fid == 2:
2396
        if ftype == TType.I64:
2667
        if ftype == TType.I64:
Line 3052... Line 3323...
3052
 
3323
 
3053
class deleteUser_args:
3324
class deleteUser_args:
3054
  """
3325
  """
3055
  Attributes:
3326
  Attributes:
3056
   - userid
3327
   - userid
-
 
3328
   - isSessionId
3057
  """
3329
  """
3058
 
3330
 
3059
  thrift_spec = (
3331
  thrift_spec = (
3060
    None, # 0
3332
    None, # 0
3061
    (1, TType.I64, 'userid', None, None, ), # 1
3333
    (1, TType.I64, 'userid', None, None, ), # 1
-
 
3334
    (2, TType.BOOL, 'isSessionId', None, None, ), # 2
3062
  )
3335
  )
3063
 
3336
 
3064
  def __init__(self, userid=None,):
3337
  def __init__(self, userid=None, isSessionId=None,):
3065
    self.userid = userid
3338
    self.userid = userid
-
 
3339
    self.isSessionId = isSessionId
3066
 
3340
 
3067
  def read(self, iprot):
3341
  def read(self, iprot):
3068
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3342
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3069
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3343
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3070
      return
3344
      return
Line 3076... Line 3350...
3076
      if fid == 1:
3350
      if fid == 1:
3077
        if ftype == TType.I64:
3351
        if ftype == TType.I64:
3078
          self.userid = iprot.readI64();
3352
          self.userid = iprot.readI64();
3079
        else:
3353
        else:
3080
          iprot.skip(ftype)
3354
          iprot.skip(ftype)
-
 
3355
      elif fid == 2:
-
 
3356
        if ftype == TType.BOOL:
-
 
3357
          self.isSessionId = iprot.readBool();
-
 
3358
        else:
-
 
3359
          iprot.skip(ftype)
3081
      else:
3360
      else:
3082
        iprot.skip(ftype)
3361
        iprot.skip(ftype)
3083
      iprot.readFieldEnd()
3362
      iprot.readFieldEnd()
3084
    iprot.readStructEnd()
3363
    iprot.readStructEnd()
3085
 
3364
 
Line 3090... Line 3369...
3090
    oprot.writeStructBegin('deleteUser_args')
3369
    oprot.writeStructBegin('deleteUser_args')
3091
    if self.userid != None:
3370
    if self.userid != None:
3092
      oprot.writeFieldBegin('userid', TType.I64, 1)
3371
      oprot.writeFieldBegin('userid', TType.I64, 1)
3093
      oprot.writeI64(self.userid)
3372
      oprot.writeI64(self.userid)
3094
      oprot.writeFieldEnd()
3373
      oprot.writeFieldEnd()
-
 
3374
    if self.isSessionId != None:
-
 
3375
      oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)
-
 
3376
      oprot.writeBool(self.isSessionId)
-
 
3377
      oprot.writeFieldEnd()
3095
    oprot.writeFieldStop()
3378
    oprot.writeFieldStop()
3096
    oprot.writeStructEnd()
3379
    oprot.writeStructEnd()
3097
 
3380
 
3098
  def __repr__(self):
3381
  def __repr__(self):
3099
    L = ['%s=%r' % (key, value)
3382
    L = ['%s=%r' % (key, value)