Subversion Repositories SmartDukaan

Rev

Rev 122 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
94 ashish 1
#
2
# Autogenerated by Thrift
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
from ttypes import *
9
from thrift.Thrift import TProcessor
10
from thrift.transport import TTransport
11
from thrift.protocol import TBinaryProtocol
12
try:
13
  from thrift.protocol import fastbinary
14
except:
15
  fastbinary = None
16
 
17
 
18
class Iface:
19
  """
20
  service
21
  """
22
  def createContext(self, context, updateExisting):
23
    """
24
    Parameters:
25
     - context
26
     - updateExisting
27
    """
28
    pass
29
 
30
  def getContextFromId(self, userId):
31
    """
32
    Parameters:
33
     - userId
34
    """
35
    pass
36
 
37
  def getContextFromEmailOrHandle(self, emailorhandle, isEmail):
38
    """
39
    Parameters:
40
     - emailorhandle
41
     - isEmail
42
    """
43
    pass
44
 
45
  def getState(self, userId):
46
    """
47
    Parameters:
48
     - userId
49
    """
50
    pass
51
 
52
  def getPrimaryInfo(self, userId):
53
    """
54
    Parameters:
55
     - userId
56
    """
57
    pass
58
 
59
  def getInternalInfo(self, userId):
60
    """
61
    Parameters:
62
     - userId
63
    """
64
    pass
65
 
66
  def getContext(self, email, password):
67
    """
68
    Parameters:
69
     - email
70
     - password
71
    """
72
    pass
73
 
74
  def userExists(self, email):
75
    """
76
    Parameters:
77
     - email
78
    """
79
    pass
80
 
81
  def addIpAdressForUser(self, ip, timestamp, userId):
82
    """
83
    Parameters:
84
     - ip
85
     - timestamp
86
     - userId
87
    """
88
    pass
89
 
90
  def addAddressForUser(self, address, userid, timestamp):
91
    """
92
    Parameters:
93
     - address
94
     - userid
95
     - timestamp
96
    """
97
    pass
98
 
99
  def removeAddressForUser(self, userid, addressId):
100
    """
101
    Parameters:
102
     - userid
103
     - addressId
104
    """
105
    pass
106
 
107
  def setUserAsLoggedIn(self, userId, timestamp):
108
    """
109
    Parameters:
110
     - userId
111
     - timestamp
112
    """
113
    pass
114
 
115
  def setUserAsLoggedOut(self, userid, timestamp):
116
    """
117
    Parameters:
118
     - userid
119
     - timestamp
120
    """
121
    pass
122
 
123
  def updatePassword(self, userid, password):
124
    """
125
    Parameters:
126
     - userid
127
     - password
128
    """
129
    pass
130
 
131
  def deleteUser(self, userid):
132
    """
133
    Parameters:
134
     - userid
135
    """
136
    pass
137
 
138
  def sendEmailVerification(self, userid):
139
    """
140
    Parameters:
141
     - userid
142
    """
143
    pass
144
 
145
  def sendSMSVerification(self, userid):
146
    """
147
    Parameters:
148
     - userid
149
    """
150
    pass
151
 
152
  def confirmEmailVerification(self, userid):
153
    """
154
    Parameters:
155
     - userid
156
    """
157
    pass
158
 
159
  def confirmSMSVerification(self, userid):
160
    """
161
    Parameters:
162
     - userid
163
    """
164
    pass
165
 
166
  def addSocialhandle(self, userid, socialService, handle):
167
    """
168
    Parameters:
169
     - userid
170
     - socialService
171
     - handle
172
    """
173
    pass
174
 
175
 
176
class Client(Iface):
177
  """
178
  service
179
  """
180
  def __init__(self, iprot, oprot=None):
181
    self._iprot = self._oprot = iprot
182
    if oprot != None:
183
      self._oprot = oprot
184
    self._seqid = 0
185
 
186
  def createContext(self, context, updateExisting):
187
    """
188
    Parameters:
189
     - context
190
     - updateExisting
191
    """
192
    self.send_createContext(context, updateExisting)
193
    return self.recv_createContext()
194
 
195
  def send_createContext(self, context, updateExisting):
196
    self._oprot.writeMessageBegin('createContext', TMessageType.CALL, self._seqid)
197
    args = createContext_args()
198
    args.context = context
199
    args.updateExisting = updateExisting
200
    args.write(self._oprot)
201
    self._oprot.writeMessageEnd()
202
    self._oprot.trans.flush()
203
 
204
  def recv_createContext(self, ):
205
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
206
    if mtype == TMessageType.EXCEPTION:
207
      x = TApplicationException()
208
      x.read(self._iprot)
209
      self._iprot.readMessageEnd()
210
      raise x
211
    result = createContext_result()
212
    result.read(self._iprot)
213
    self._iprot.readMessageEnd()
214
    if result.success != None:
215
      return result.success
216
    if result.cex != None:
217
      raise result.cex
218
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createContext failed: unknown result");
219
 
220
  def getContextFromId(self, userId):
221
    """
222
    Parameters:
223
     - userId
224
    """
225
    self.send_getContextFromId(userId)
226
    return self.recv_getContextFromId()
227
 
228
  def send_getContextFromId(self, userId):
229
    self._oprot.writeMessageBegin('getContextFromId', TMessageType.CALL, self._seqid)
230
    args = getContextFromId_args()
231
    args.userId = userId
232
    args.write(self._oprot)
233
    self._oprot.writeMessageEnd()
234
    self._oprot.trans.flush()
235
 
236
  def recv_getContextFromId(self, ):
237
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
238
    if mtype == TMessageType.EXCEPTION:
239
      x = TApplicationException()
240
      x.read(self._iprot)
241
      self._iprot.readMessageEnd()
242
      raise x
243
    result = getContextFromId_result()
244
    result.read(self._iprot)
245
    self._iprot.readMessageEnd()
246
    if result.success != None:
247
      return result.success
248
    if result.ucx != None:
249
      raise result.ucx
250
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getContextFromId failed: unknown result");
251
 
252
  def getContextFromEmailOrHandle(self, emailorhandle, isEmail):
253
    """
254
    Parameters:
255
     - emailorhandle
256
     - isEmail
257
    """
258
    self.send_getContextFromEmailOrHandle(emailorhandle, isEmail)
259
    return self.recv_getContextFromEmailOrHandle()
260
 
261
  def send_getContextFromEmailOrHandle(self, emailorhandle, isEmail):
262
    self._oprot.writeMessageBegin('getContextFromEmailOrHandle', TMessageType.CALL, self._seqid)
263
    args = getContextFromEmailOrHandle_args()
264
    args.emailorhandle = emailorhandle
265
    args.isEmail = isEmail
266
    args.write(self._oprot)
267
    self._oprot.writeMessageEnd()
268
    self._oprot.trans.flush()
269
 
270
  def recv_getContextFromEmailOrHandle(self, ):
271
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
272
    if mtype == TMessageType.EXCEPTION:
273
      x = TApplicationException()
274
      x.read(self._iprot)
275
      self._iprot.readMessageEnd()
276
      raise x
277
    result = getContextFromEmailOrHandle_result()
278
    result.read(self._iprot)
279
    self._iprot.readMessageEnd()
280
    if result.success != None:
281
      return result.success
282
    if result.ucx != None:
283
      raise result.ucx
284
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getContextFromEmailOrHandle failed: unknown result");
285
 
286
  def getState(self, userId):
287
    """
288
    Parameters:
289
     - userId
290
    """
291
    self.send_getState(userId)
292
    return self.recv_getState()
293
 
294
  def send_getState(self, userId):
295
    self._oprot.writeMessageBegin('getState', TMessageType.CALL, self._seqid)
296
    args = getState_args()
297
    args.userId = userId
298
    args.write(self._oprot)
299
    self._oprot.writeMessageEnd()
300
    self._oprot.trans.flush()
301
 
302
  def recv_getState(self, ):
303
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
304
    if mtype == TMessageType.EXCEPTION:
305
      x = TApplicationException()
306
      x.read(self._iprot)
307
      self._iprot.readMessageEnd()
308
      raise x
309
    result = getState_result()
310
    result.read(self._iprot)
311
    self._iprot.readMessageEnd()
312
    if result.success != None:
313
      return result.success
314
    if result.ucx != None:
315
      raise result.ucx
316
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getState failed: unknown result");
317
 
318
  def getPrimaryInfo(self, userId):
319
    """
320
    Parameters:
321
     - userId
322
    """
323
    self.send_getPrimaryInfo(userId)
324
    return self.recv_getPrimaryInfo()
325
 
326
  def send_getPrimaryInfo(self, userId):
327
    self._oprot.writeMessageBegin('getPrimaryInfo', TMessageType.CALL, self._seqid)
328
    args = getPrimaryInfo_args()
329
    args.userId = userId
330
    args.write(self._oprot)
331
    self._oprot.writeMessageEnd()
332
    self._oprot.trans.flush()
333
 
334
  def recv_getPrimaryInfo(self, ):
335
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
336
    if mtype == TMessageType.EXCEPTION:
337
      x = TApplicationException()
338
      x.read(self._iprot)
339
      self._iprot.readMessageEnd()
340
      raise x
341
    result = getPrimaryInfo_result()
342
    result.read(self._iprot)
343
    self._iprot.readMessageEnd()
344
    if result.success != None:
345
      return result.success
346
    if result.ucx != None:
347
      raise result.ucx
348
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrimaryInfo failed: unknown result");
349
 
350
  def getInternalInfo(self, userId):
351
    """
352
    Parameters:
353
     - userId
354
    """
355
    self.send_getInternalInfo(userId)
356
    return self.recv_getInternalInfo()
357
 
358
  def send_getInternalInfo(self, userId):
359
    self._oprot.writeMessageBegin('getInternalInfo', TMessageType.CALL, self._seqid)
360
    args = getInternalInfo_args()
361
    args.userId = userId
362
    args.write(self._oprot)
363
    self._oprot.writeMessageEnd()
364
    self._oprot.trans.flush()
365
 
366
  def recv_getInternalInfo(self, ):
367
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
368
    if mtype == TMessageType.EXCEPTION:
369
      x = TApplicationException()
370
      x.read(self._iprot)
371
      self._iprot.readMessageEnd()
372
      raise x
373
    result = getInternalInfo_result()
374
    result.read(self._iprot)
375
    self._iprot.readMessageEnd()
376
    if result.success != None:
377
      return result.success
378
    if result.ucx != None:
379
      raise result.ucx
380
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInternalInfo failed: unknown result");
381
 
382
  def getContext(self, email, password):
383
    """
384
    Parameters:
385
     - email
386
     - password
387
    """
388
    self.send_getContext(email, password)
389
    return self.recv_getContext()
390
 
391
  def send_getContext(self, email, password):
392
    self._oprot.writeMessageBegin('getContext', TMessageType.CALL, self._seqid)
393
    args = getContext_args()
394
    args.email = email
395
    args.password = password
396
    args.write(self._oprot)
397
    self._oprot.writeMessageEnd()
398
    self._oprot.trans.flush()
399
 
400
  def recv_getContext(self, ):
401
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
402
    if mtype == TMessageType.EXCEPTION:
403
      x = TApplicationException()
404
      x.read(self._iprot)
405
      self._iprot.readMessageEnd()
406
      raise x
407
    result = getContext_result()
408
    result.read(self._iprot)
409
    self._iprot.readMessageEnd()
410
    if result.success != None:
411
      return result.success
412
    if result.ax != None:
413
      raise result.ax
414
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getContext failed: unknown result");
415
 
416
  def userExists(self, email):
417
    """
418
    Parameters:
419
     - email
420
    """
421
    self.send_userExists(email)
422
    return self.recv_userExists()
423
 
424
  def send_userExists(self, email):
425
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
426
    args = userExists_args()
427
    args.email = email
428
    args.write(self._oprot)
429
    self._oprot.writeMessageEnd()
430
    self._oprot.trans.flush()
431
 
432
  def recv_userExists(self, ):
433
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
434
    if mtype == TMessageType.EXCEPTION:
435
      x = TApplicationException()
436
      x.read(self._iprot)
437
      self._iprot.readMessageEnd()
438
      raise x
439
    result = userExists_result()
440
    result.read(self._iprot)
441
    self._iprot.readMessageEnd()
442
    if result.success != None:
443
      return result.success
444
    if result.ucx != None:
445
      raise result.ucx
446
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
447
 
448
  def addIpAdressForUser(self, ip, timestamp, userId):
449
    """
450
    Parameters:
451
     - ip
452
     - timestamp
453
     - userId
454
    """
455
    self.send_addIpAdressForUser(ip, timestamp, userId)
456
    return self.recv_addIpAdressForUser()
457
 
458
  def send_addIpAdressForUser(self, ip, timestamp, userId):
459
    self._oprot.writeMessageBegin('addIpAdressForUser', TMessageType.CALL, self._seqid)
460
    args = addIpAdressForUser_args()
461
    args.ip = ip
462
    args.timestamp = timestamp
463
    args.userId = userId
464
    args.write(self._oprot)
465
    self._oprot.writeMessageEnd()
466
    self._oprot.trans.flush()
467
 
468
  def recv_addIpAdressForUser(self, ):
469
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
470
    if mtype == TMessageType.EXCEPTION:
471
      x = TApplicationException()
472
      x.read(self._iprot)
473
      self._iprot.readMessageEnd()
474
      raise x
475
    result = addIpAdressForUser_result()
476
    result.read(self._iprot)
477
    self._iprot.readMessageEnd()
478
    if result.success != None:
479
      return result.success
480
    if result.ucx != None:
481
      raise result.ucx
482
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addIpAdressForUser failed: unknown result");
483
 
484
  def addAddressForUser(self, address, userid, timestamp):
485
    """
486
    Parameters:
487
     - address
488
     - userid
489
     - timestamp
490
    """
491
    self.send_addAddressForUser(address, userid, timestamp)
492
    return self.recv_addAddressForUser()
493
 
494
  def send_addAddressForUser(self, address, userid, timestamp):
495
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
496
    args = addAddressForUser_args()
497
    args.address = address
498
    args.userid = userid
499
    args.timestamp = timestamp
500
    args.write(self._oprot)
501
    self._oprot.writeMessageEnd()
502
    self._oprot.trans.flush()
503
 
504
  def recv_addAddressForUser(self, ):
505
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
506
    if mtype == TMessageType.EXCEPTION:
507
      x = TApplicationException()
508
      x.read(self._iprot)
509
      self._iprot.readMessageEnd()
510
      raise x
511
    result = addAddressForUser_result()
512
    result.read(self._iprot)
513
    self._iprot.readMessageEnd()
514
    if result.success != None:
515
      return result.success
516
    if result.ucx != None:
517
      raise result.ucx
518
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
519
 
520
  def removeAddressForUser(self, userid, addressId):
521
    """
522
    Parameters:
523
     - userid
524
     - addressId
525
    """
526
    self.send_removeAddressForUser(userid, addressId)
527
    return self.recv_removeAddressForUser()
528
 
529
  def send_removeAddressForUser(self, userid, addressId):
530
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
531
    args = removeAddressForUser_args()
532
    args.userid = userid
533
    args.addressId = addressId
534
    args.write(self._oprot)
535
    self._oprot.writeMessageEnd()
536
    self._oprot.trans.flush()
537
 
538
  def recv_removeAddressForUser(self, ):
539
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
540
    if mtype == TMessageType.EXCEPTION:
541
      x = TApplicationException()
542
      x.read(self._iprot)
543
      self._iprot.readMessageEnd()
544
      raise x
545
    result = removeAddressForUser_result()
546
    result.read(self._iprot)
547
    self._iprot.readMessageEnd()
548
    if result.success != None:
549
      return result.success
550
    if result.ucx != None:
551
      raise result.ucx
552
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
553
 
554
  def setUserAsLoggedIn(self, userId, timestamp):
555
    """
556
    Parameters:
557
     - userId
558
     - timestamp
559
    """
560
    self.send_setUserAsLoggedIn(userId, timestamp)
561
    return self.recv_setUserAsLoggedIn()
562
 
563
  def send_setUserAsLoggedIn(self, userId, timestamp):
564
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
565
    args = setUserAsLoggedIn_args()
566
    args.userId = userId
567
    args.timestamp = timestamp
568
    args.write(self._oprot)
569
    self._oprot.writeMessageEnd()
570
    self._oprot.trans.flush()
571
 
572
  def recv_setUserAsLoggedIn(self, ):
573
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
574
    if mtype == TMessageType.EXCEPTION:
575
      x = TApplicationException()
576
      x.read(self._iprot)
577
      self._iprot.readMessageEnd()
578
      raise x
579
    result = setUserAsLoggedIn_result()
580
    result.read(self._iprot)
581
    self._iprot.readMessageEnd()
582
    if result.success != None:
583
      return result.success
584
    if result.ucx != None:
585
      raise result.ucx
586
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
587
 
588
  def setUserAsLoggedOut(self, userid, timestamp):
589
    """
590
    Parameters:
591
     - userid
592
     - timestamp
593
    """
594
    self.send_setUserAsLoggedOut(userid, timestamp)
595
    return self.recv_setUserAsLoggedOut()
596
 
597
  def send_setUserAsLoggedOut(self, userid, timestamp):
598
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
599
    args = setUserAsLoggedOut_args()
600
    args.userid = userid
601
    args.timestamp = timestamp
602
    args.write(self._oprot)
603
    self._oprot.writeMessageEnd()
604
    self._oprot.trans.flush()
605
 
606
  def recv_setUserAsLoggedOut(self, ):
607
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
608
    if mtype == TMessageType.EXCEPTION:
609
      x = TApplicationException()
610
      x.read(self._iprot)
611
      self._iprot.readMessageEnd()
612
      raise x
613
    result = setUserAsLoggedOut_result()
614
    result.read(self._iprot)
615
    self._iprot.readMessageEnd()
616
    if result.success != None:
617
      return result.success
618
    if result.ucx != None:
619
      raise result.ucx
620
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
621
 
622
  def updatePassword(self, userid, password):
623
    """
624
    Parameters:
625
     - userid
626
     - password
627
    """
628
    self.send_updatePassword(userid, password)
629
    return self.recv_updatePassword()
630
 
631
  def send_updatePassword(self, userid, password):
632
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
633
    args = updatePassword_args()
634
    args.userid = userid
635
    args.password = password
636
    args.write(self._oprot)
637
    self._oprot.writeMessageEnd()
638
    self._oprot.trans.flush()
639
 
640
  def recv_updatePassword(self, ):
641
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
642
    if mtype == TMessageType.EXCEPTION:
643
      x = TApplicationException()
644
      x.read(self._iprot)
645
      self._iprot.readMessageEnd()
646
      raise x
647
    result = updatePassword_result()
648
    result.read(self._iprot)
649
    self._iprot.readMessageEnd()
650
    if result.success != None:
651
      return result.success
652
    if result.ucx != None:
653
      raise result.ucx
654
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
655
 
656
  def deleteUser(self, userid):
657
    """
658
    Parameters:
659
     - userid
660
    """
661
    self.send_deleteUser(userid)
662
    return self.recv_deleteUser()
663
 
664
  def send_deleteUser(self, userid):
665
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
666
    args = deleteUser_args()
667
    args.userid = userid
668
    args.write(self._oprot)
669
    self._oprot.writeMessageEnd()
670
    self._oprot.trans.flush()
671
 
672
  def recv_deleteUser(self, ):
673
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
674
    if mtype == TMessageType.EXCEPTION:
675
      x = TApplicationException()
676
      x.read(self._iprot)
677
      self._iprot.readMessageEnd()
678
      raise x
679
    result = deleteUser_result()
680
    result.read(self._iprot)
681
    self._iprot.readMessageEnd()
682
    if result.success != None:
683
      return result.success
684
    if result.ucx != None:
685
      raise result.ucx
686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
687
 
688
  def sendEmailVerification(self, userid):
689
    """
690
    Parameters:
691
     - userid
692
    """
693
    self.send_sendEmailVerification(userid)
694
    return self.recv_sendEmailVerification()
695
 
696
  def send_sendEmailVerification(self, userid):
697
    self._oprot.writeMessageBegin('sendEmailVerification', TMessageType.CALL, self._seqid)
698
    args = sendEmailVerification_args()
699
    args.userid = userid
700
    args.write(self._oprot)
701
    self._oprot.writeMessageEnd()
702
    self._oprot.trans.flush()
703
 
704
  def recv_sendEmailVerification(self, ):
705
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
706
    if mtype == TMessageType.EXCEPTION:
707
      x = TApplicationException()
708
      x.read(self._iprot)
709
      self._iprot.readMessageEnd()
710
      raise x
711
    result = sendEmailVerification_result()
712
    result.read(self._iprot)
713
    self._iprot.readMessageEnd()
714
    if result.success != None:
715
      return result.success
716
    if result.ucx != None:
717
      raise result.ucx
718
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendEmailVerification failed: unknown result");
719
 
720
  def sendSMSVerification(self, userid):
721
    """
722
    Parameters:
723
     - userid
724
    """
725
    self.send_sendSMSVerification(userid)
726
    return self.recv_sendSMSVerification()
727
 
728
  def send_sendSMSVerification(self, userid):
729
    self._oprot.writeMessageBegin('sendSMSVerification', TMessageType.CALL, self._seqid)
730
    args = sendSMSVerification_args()
731
    args.userid = userid
732
    args.write(self._oprot)
733
    self._oprot.writeMessageEnd()
734
    self._oprot.trans.flush()
735
 
736
  def recv_sendSMSVerification(self, ):
737
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
738
    if mtype == TMessageType.EXCEPTION:
739
      x = TApplicationException()
740
      x.read(self._iprot)
741
      self._iprot.readMessageEnd()
742
      raise x
743
    result = sendSMSVerification_result()
744
    result.read(self._iprot)
745
    self._iprot.readMessageEnd()
746
    if result.success != None:
747
      return result.success
748
    if result.ucx != None:
749
      raise result.ucx
750
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendSMSVerification failed: unknown result");
751
 
752
  def confirmEmailVerification(self, userid):
753
    """
754
    Parameters:
755
     - userid
756
    """
757
    self.send_confirmEmailVerification(userid)
758
    return self.recv_confirmEmailVerification()
759
 
760
  def send_confirmEmailVerification(self, userid):
761
    self._oprot.writeMessageBegin('confirmEmailVerification', TMessageType.CALL, self._seqid)
762
    args = confirmEmailVerification_args()
763
    args.userid = userid
764
    args.write(self._oprot)
765
    self._oprot.writeMessageEnd()
766
    self._oprot.trans.flush()
767
 
768
  def recv_confirmEmailVerification(self, ):
769
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
770
    if mtype == TMessageType.EXCEPTION:
771
      x = TApplicationException()
772
      x.read(self._iprot)
773
      self._iprot.readMessageEnd()
774
      raise x
775
    result = confirmEmailVerification_result()
776
    result.read(self._iprot)
777
    self._iprot.readMessageEnd()
778
    if result.success != None:
779
      return result.success
780
    if result.ucx != None:
781
      raise result.ucx
782
    raise TApplicationException(TApplicationException.MISSING_RESULT, "confirmEmailVerification failed: unknown result");
783
 
784
  def confirmSMSVerification(self, userid):
785
    """
786
    Parameters:
787
     - userid
788
    """
789
    self.send_confirmSMSVerification(userid)
790
    return self.recv_confirmSMSVerification()
791
 
792
  def send_confirmSMSVerification(self, userid):
793
    self._oprot.writeMessageBegin('confirmSMSVerification', TMessageType.CALL, self._seqid)
794
    args = confirmSMSVerification_args()
795
    args.userid = userid
796
    args.write(self._oprot)
797
    self._oprot.writeMessageEnd()
798
    self._oprot.trans.flush()
799
 
800
  def recv_confirmSMSVerification(self, ):
801
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
802
    if mtype == TMessageType.EXCEPTION:
803
      x = TApplicationException()
804
      x.read(self._iprot)
805
      self._iprot.readMessageEnd()
806
      raise x
807
    result = confirmSMSVerification_result()
808
    result.read(self._iprot)
809
    self._iprot.readMessageEnd()
810
    if result.success != None:
811
      return result.success
812
    if result.ucx != None:
813
      raise result.ucx
814
    raise TApplicationException(TApplicationException.MISSING_RESULT, "confirmSMSVerification failed: unknown result");
815
 
816
  def addSocialhandle(self, userid, socialService, handle):
817
    """
818
    Parameters:
819
     - userid
820
     - socialService
821
     - handle
822
    """
823
    self.send_addSocialhandle(userid, socialService, handle)
824
    return self.recv_addSocialhandle()
825
 
826
  def send_addSocialhandle(self, userid, socialService, handle):
827
    self._oprot.writeMessageBegin('addSocialhandle', TMessageType.CALL, self._seqid)
828
    args = addSocialhandle_args()
829
    args.userid = userid
830
    args.socialService = socialService
831
    args.handle = handle
832
    args.write(self._oprot)
833
    self._oprot.writeMessageEnd()
834
    self._oprot.trans.flush()
835
 
836
  def recv_addSocialhandle(self, ):
837
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
838
    if mtype == TMessageType.EXCEPTION:
839
      x = TApplicationException()
840
      x.read(self._iprot)
841
      self._iprot.readMessageEnd()
842
      raise x
843
    result = addSocialhandle_result()
844
    result.read(self._iprot)
845
    self._iprot.readMessageEnd()
846
    if result.success != None:
847
      return result.success
848
    if result.ucx != None:
849
      raise result.ucx
850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSocialhandle failed: unknown result");
851
 
852
 
853
class Processor(Iface, TProcessor):
854
  def __init__(self, handler):
855
    self._handler = handler
856
    self._processMap = {}
857
    self._processMap["createContext"] = Processor.process_createContext
858
    self._processMap["getContextFromId"] = Processor.process_getContextFromId
859
    self._processMap["getContextFromEmailOrHandle"] = Processor.process_getContextFromEmailOrHandle
860
    self._processMap["getState"] = Processor.process_getState
861
    self._processMap["getPrimaryInfo"] = Processor.process_getPrimaryInfo
862
    self._processMap["getInternalInfo"] = Processor.process_getInternalInfo
863
    self._processMap["getContext"] = Processor.process_getContext
864
    self._processMap["userExists"] = Processor.process_userExists
865
    self._processMap["addIpAdressForUser"] = Processor.process_addIpAdressForUser
866
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
867
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
868
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
869
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
870
    self._processMap["updatePassword"] = Processor.process_updatePassword
871
    self._processMap["deleteUser"] = Processor.process_deleteUser
872
    self._processMap["sendEmailVerification"] = Processor.process_sendEmailVerification
873
    self._processMap["sendSMSVerification"] = Processor.process_sendSMSVerification
874
    self._processMap["confirmEmailVerification"] = Processor.process_confirmEmailVerification
875
    self._processMap["confirmSMSVerification"] = Processor.process_confirmSMSVerification
876
    self._processMap["addSocialhandle"] = Processor.process_addSocialhandle
877
 
878
  def process(self, iprot, oprot):
879
    (name, type, seqid) = iprot.readMessageBegin()
880
    if name not in self._processMap:
881
      iprot.skip(TType.STRUCT)
882
      iprot.readMessageEnd()
883
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
884
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
885
      x.write(oprot)
886
      oprot.writeMessageEnd()
887
      oprot.trans.flush()
888
      return
889
    else:
890
      self._processMap[name](self, seqid, iprot, oprot)
891
    return True
892
 
893
  def process_createContext(self, seqid, iprot, oprot):
894
    args = createContext_args()
895
    args.read(iprot)
896
    iprot.readMessageEnd()
897
    result = createContext_result()
898
    try:
899
      result.success = self._handler.createContext(args.context, args.updateExisting)
900
    except UserContextException, cex:
901
      result.cex = cex
902
    oprot.writeMessageBegin("createContext", TMessageType.REPLY, seqid)
903
    result.write(oprot)
904
    oprot.writeMessageEnd()
905
    oprot.trans.flush()
906
 
907
  def process_getContextFromId(self, seqid, iprot, oprot):
908
    args = getContextFromId_args()
909
    args.read(iprot)
910
    iprot.readMessageEnd()
911
    result = getContextFromId_result()
912
    try:
913
      result.success = self._handler.getContextFromId(args.userId)
914
    except UserContextException, ucx:
915
      result.ucx = ucx
916
    oprot.writeMessageBegin("getContextFromId", TMessageType.REPLY, seqid)
917
    result.write(oprot)
918
    oprot.writeMessageEnd()
919
    oprot.trans.flush()
920
 
921
  def process_getContextFromEmailOrHandle(self, seqid, iprot, oprot):
922
    args = getContextFromEmailOrHandle_args()
923
    args.read(iprot)
924
    iprot.readMessageEnd()
925
    result = getContextFromEmailOrHandle_result()
926
    try:
927
      result.success = self._handler.getContextFromEmailOrHandle(args.emailorhandle, args.isEmail)
928
    except UserContextException, ucx:
929
      result.ucx = ucx
930
    oprot.writeMessageBegin("getContextFromEmailOrHandle", TMessageType.REPLY, seqid)
931
    result.write(oprot)
932
    oprot.writeMessageEnd()
933
    oprot.trans.flush()
934
 
935
  def process_getState(self, seqid, iprot, oprot):
936
    args = getState_args()
937
    args.read(iprot)
938
    iprot.readMessageEnd()
939
    result = getState_result()
940
    try:
941
      result.success = self._handler.getState(args.userId)
942
    except UserContextException, ucx:
943
      result.ucx = ucx
944
    oprot.writeMessageBegin("getState", TMessageType.REPLY, seqid)
945
    result.write(oprot)
946
    oprot.writeMessageEnd()
947
    oprot.trans.flush()
948
 
949
  def process_getPrimaryInfo(self, seqid, iprot, oprot):
950
    args = getPrimaryInfo_args()
951
    args.read(iprot)
952
    iprot.readMessageEnd()
953
    result = getPrimaryInfo_result()
954
    try:
955
      result.success = self._handler.getPrimaryInfo(args.userId)
956
    except UserContextException, ucx:
957
      result.ucx = ucx
958
    oprot.writeMessageBegin("getPrimaryInfo", TMessageType.REPLY, seqid)
959
    result.write(oprot)
960
    oprot.writeMessageEnd()
961
    oprot.trans.flush()
962
 
963
  def process_getInternalInfo(self, seqid, iprot, oprot):
964
    args = getInternalInfo_args()
965
    args.read(iprot)
966
    iprot.readMessageEnd()
967
    result = getInternalInfo_result()
968
    try:
969
      result.success = self._handler.getInternalInfo(args.userId)
970
    except UserContextException, ucx:
971
      result.ucx = ucx
972
    oprot.writeMessageBegin("getInternalInfo", TMessageType.REPLY, seqid)
973
    result.write(oprot)
974
    oprot.writeMessageEnd()
975
    oprot.trans.flush()
976
 
977
  def process_getContext(self, seqid, iprot, oprot):
978
    args = getContext_args()
979
    args.read(iprot)
980
    iprot.readMessageEnd()
981
    result = getContext_result()
982
    try:
983
      result.success = self._handler.getContext(args.email, args.password)
984
    except AuthenticationException, ax:
985
      result.ax = ax
986
    oprot.writeMessageBegin("getContext", TMessageType.REPLY, seqid)
987
    result.write(oprot)
988
    oprot.writeMessageEnd()
989
    oprot.trans.flush()
990
 
991
  def process_userExists(self, seqid, iprot, oprot):
992
    args = userExists_args()
993
    args.read(iprot)
994
    iprot.readMessageEnd()
995
    result = userExists_result()
996
    try:
997
      result.success = self._handler.userExists(args.email)
998
    except UserContextException, ucx:
999
      result.ucx = ucx
1000
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
1001
    result.write(oprot)
1002
    oprot.writeMessageEnd()
1003
    oprot.trans.flush()
1004
 
1005
  def process_addIpAdressForUser(self, seqid, iprot, oprot):
1006
    args = addIpAdressForUser_args()
1007
    args.read(iprot)
1008
    iprot.readMessageEnd()
1009
    result = addIpAdressForUser_result()
1010
    try:
1011
      result.success = self._handler.addIpAdressForUser(args.ip, args.timestamp, args.userId)
1012
    except UserContextException, ucx:
1013
      result.ucx = ucx
1014
    oprot.writeMessageBegin("addIpAdressForUser", TMessageType.REPLY, seqid)
1015
    result.write(oprot)
1016
    oprot.writeMessageEnd()
1017
    oprot.trans.flush()
1018
 
1019
  def process_addAddressForUser(self, seqid, iprot, oprot):
1020
    args = addAddressForUser_args()
1021
    args.read(iprot)
1022
    iprot.readMessageEnd()
1023
    result = addAddressForUser_result()
1024
    try:
1025
      result.success = self._handler.addAddressForUser(args.address, args.userid, args.timestamp)
1026
    except UserContextException, ucx:
1027
      result.ucx = ucx
1028
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
1029
    result.write(oprot)
1030
    oprot.writeMessageEnd()
1031
    oprot.trans.flush()
1032
 
1033
  def process_removeAddressForUser(self, seqid, iprot, oprot):
1034
    args = removeAddressForUser_args()
1035
    args.read(iprot)
1036
    iprot.readMessageEnd()
1037
    result = removeAddressForUser_result()
1038
    try:
1039
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
1040
    except UserContextException, ucx:
1041
      result.ucx = ucx
1042
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
1043
    result.write(oprot)
1044
    oprot.writeMessageEnd()
1045
    oprot.trans.flush()
1046
 
1047
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
1048
    args = setUserAsLoggedIn_args()
1049
    args.read(iprot)
1050
    iprot.readMessageEnd()
1051
    result = setUserAsLoggedIn_result()
1052
    try:
1053
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
1054
    except UserContextException, ucx:
1055
      result.ucx = ucx
1056
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
1057
    result.write(oprot)
1058
    oprot.writeMessageEnd()
1059
    oprot.trans.flush()
1060
 
1061
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
1062
    args = setUserAsLoggedOut_args()
1063
    args.read(iprot)
1064
    iprot.readMessageEnd()
1065
    result = setUserAsLoggedOut_result()
1066
    try:
1067
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
1068
    except UserContextException, ucx:
1069
      result.ucx = ucx
1070
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
1071
    result.write(oprot)
1072
    oprot.writeMessageEnd()
1073
    oprot.trans.flush()
1074
 
1075
  def process_updatePassword(self, seqid, iprot, oprot):
1076
    args = updatePassword_args()
1077
    args.read(iprot)
1078
    iprot.readMessageEnd()
1079
    result = updatePassword_result()
1080
    try:
1081
      result.success = self._handler.updatePassword(args.userid, args.password)
1082
    except UserContextException, ucx:
1083
      result.ucx = ucx
1084
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
1085
    result.write(oprot)
1086
    oprot.writeMessageEnd()
1087
    oprot.trans.flush()
1088
 
1089
  def process_deleteUser(self, seqid, iprot, oprot):
1090
    args = deleteUser_args()
1091
    args.read(iprot)
1092
    iprot.readMessageEnd()
1093
    result = deleteUser_result()
1094
    try:
1095
      result.success = self._handler.deleteUser(args.userid)
1096
    except UserContextException, ucx:
1097
      result.ucx = ucx
1098
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
1099
    result.write(oprot)
1100
    oprot.writeMessageEnd()
1101
    oprot.trans.flush()
1102
 
1103
  def process_sendEmailVerification(self, seqid, iprot, oprot):
1104
    args = sendEmailVerification_args()
1105
    args.read(iprot)
1106
    iprot.readMessageEnd()
1107
    result = sendEmailVerification_result()
1108
    try:
1109
      result.success = self._handler.sendEmailVerification(args.userid)
1110
    except UserContextException, ucx:
1111
      result.ucx = ucx
1112
    oprot.writeMessageBegin("sendEmailVerification", TMessageType.REPLY, seqid)
1113
    result.write(oprot)
1114
    oprot.writeMessageEnd()
1115
    oprot.trans.flush()
1116
 
1117
  def process_sendSMSVerification(self, seqid, iprot, oprot):
1118
    args = sendSMSVerification_args()
1119
    args.read(iprot)
1120
    iprot.readMessageEnd()
1121
    result = sendSMSVerification_result()
1122
    try:
1123
      result.success = self._handler.sendSMSVerification(args.userid)
1124
    except UserContextException, ucx:
1125
      result.ucx = ucx
1126
    oprot.writeMessageBegin("sendSMSVerification", TMessageType.REPLY, seqid)
1127
    result.write(oprot)
1128
    oprot.writeMessageEnd()
1129
    oprot.trans.flush()
1130
 
1131
  def process_confirmEmailVerification(self, seqid, iprot, oprot):
1132
    args = confirmEmailVerification_args()
1133
    args.read(iprot)
1134
    iprot.readMessageEnd()
1135
    result = confirmEmailVerification_result()
1136
    try:
1137
      result.success = self._handler.confirmEmailVerification(args.userid)
1138
    except UserContextException, ucx:
1139
      result.ucx = ucx
1140
    oprot.writeMessageBegin("confirmEmailVerification", TMessageType.REPLY, seqid)
1141
    result.write(oprot)
1142
    oprot.writeMessageEnd()
1143
    oprot.trans.flush()
1144
 
1145
  def process_confirmSMSVerification(self, seqid, iprot, oprot):
1146
    args = confirmSMSVerification_args()
1147
    args.read(iprot)
1148
    iprot.readMessageEnd()
1149
    result = confirmSMSVerification_result()
1150
    try:
1151
      result.success = self._handler.confirmSMSVerification(args.userid)
1152
    except UserContextException, ucx:
1153
      result.ucx = ucx
1154
    oprot.writeMessageBegin("confirmSMSVerification", TMessageType.REPLY, seqid)
1155
    result.write(oprot)
1156
    oprot.writeMessageEnd()
1157
    oprot.trans.flush()
1158
 
1159
  def process_addSocialhandle(self, seqid, iprot, oprot):
1160
    args = addSocialhandle_args()
1161
    args.read(iprot)
1162
    iprot.readMessageEnd()
1163
    result = addSocialhandle_result()
1164
    try:
1165
      result.success = self._handler.addSocialhandle(args.userid, args.socialService, args.handle)
1166
    except UserContextException, ucx:
1167
      result.ucx = ucx
1168
    oprot.writeMessageBegin("addSocialhandle", TMessageType.REPLY, seqid)
1169
    result.write(oprot)
1170
    oprot.writeMessageEnd()
1171
    oprot.trans.flush()
1172
 
1173
 
1174
# HELPER FUNCTIONS AND STRUCTURES
1175
 
1176
class createContext_args:
1177
  """
1178
  Attributes:
1179
   - context
1180
   - updateExisting
1181
  """
1182
 
1183
  thrift_spec = (
1184
    None, # 0
1185
    (1, TType.STRUCT, 'context', (TUserContext, TUserContext.thrift_spec), None, ), # 1
1186
    (2, TType.BOOL, 'updateExisting', None, None, ), # 2
1187
  )
1188
 
1189
  def __init__(self, context=None, updateExisting=None,):
1190
    self.context = context
1191
    self.updateExisting = updateExisting
1192
 
1193
  def read(self, iprot):
1194
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1195
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1196
      return
1197
    iprot.readStructBegin()
1198
    while True:
1199
      (fname, ftype, fid) = iprot.readFieldBegin()
1200
      if ftype == TType.STOP:
1201
        break
1202
      if fid == 1:
1203
        if ftype == TType.STRUCT:
1204
          self.context = TUserContext()
1205
          self.context.read(iprot)
1206
        else:
1207
          iprot.skip(ftype)
1208
      elif fid == 2:
1209
        if ftype == TType.BOOL:
1210
          self.updateExisting = iprot.readBool();
1211
        else:
1212
          iprot.skip(ftype)
1213
      else:
1214
        iprot.skip(ftype)
1215
      iprot.readFieldEnd()
1216
    iprot.readStructEnd()
1217
 
1218
  def write(self, oprot):
1219
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1220
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1221
      return
1222
    oprot.writeStructBegin('createContext_args')
1223
    if self.context != None:
1224
      oprot.writeFieldBegin('context', TType.STRUCT, 1)
1225
      self.context.write(oprot)
1226
      oprot.writeFieldEnd()
1227
    if self.updateExisting != None:
1228
      oprot.writeFieldBegin('updateExisting', TType.BOOL, 2)
1229
      oprot.writeBool(self.updateExisting)
1230
      oprot.writeFieldEnd()
1231
    oprot.writeFieldStop()
1232
    oprot.writeStructEnd()
1233
 
1234
  def __repr__(self):
1235
    L = ['%s=%r' % (key, value)
1236
      for key, value in self.__dict__.iteritems()]
1237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1238
 
1239
  def __eq__(self, other):
1240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1241
 
1242
  def __ne__(self, other):
1243
    return not (self == other)
1244
 
1245
class createContext_result:
1246
  """
1247
  Attributes:
1248
   - success
1249
   - cex
1250
  """
1251
 
1252
  thrift_spec = (
1253
    (0, TType.STRUCT, 'success', (TUserContext, TUserContext.thrift_spec), None, ), # 0
1254
    (1, TType.STRUCT, 'cex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1255
  )
1256
 
1257
  def __init__(self, success=None, cex=None,):
1258
    self.success = success
1259
    self.cex = cex
1260
 
1261
  def read(self, iprot):
1262
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1263
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1264
      return
1265
    iprot.readStructBegin()
1266
    while True:
1267
      (fname, ftype, fid) = iprot.readFieldBegin()
1268
      if ftype == TType.STOP:
1269
        break
1270
      if fid == 0:
1271
        if ftype == TType.STRUCT:
1272
          self.success = TUserContext()
1273
          self.success.read(iprot)
1274
        else:
1275
          iprot.skip(ftype)
1276
      elif fid == 1:
1277
        if ftype == TType.STRUCT:
1278
          self.cex = UserContextException()
1279
          self.cex.read(iprot)
1280
        else:
1281
          iprot.skip(ftype)
1282
      else:
1283
        iprot.skip(ftype)
1284
      iprot.readFieldEnd()
1285
    iprot.readStructEnd()
1286
 
1287
  def write(self, oprot):
1288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1290
      return
1291
    oprot.writeStructBegin('createContext_result')
1292
    if self.success != None:
1293
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1294
      self.success.write(oprot)
1295
      oprot.writeFieldEnd()
1296
    if self.cex != None:
1297
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
1298
      self.cex.write(oprot)
1299
      oprot.writeFieldEnd()
1300
    oprot.writeFieldStop()
1301
    oprot.writeStructEnd()
1302
 
1303
  def __repr__(self):
1304
    L = ['%s=%r' % (key, value)
1305
      for key, value in self.__dict__.iteritems()]
1306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1307
 
1308
  def __eq__(self, other):
1309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1310
 
1311
  def __ne__(self, other):
1312
    return not (self == other)
1313
 
1314
class getContextFromId_args:
1315
  """
1316
  Attributes:
1317
   - userId
1318
  """
1319
 
1320
  thrift_spec = (
1321
    None, # 0
1322
    (1, TType.I64, 'userId', None, None, ), # 1
1323
  )
1324
 
1325
  def __init__(self, userId=None,):
1326
    self.userId = userId
1327
 
1328
  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:
1330
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1331
      return
1332
    iprot.readStructBegin()
1333
    while True:
1334
      (fname, ftype, fid) = iprot.readFieldBegin()
1335
      if ftype == TType.STOP:
1336
        break
1337
      if fid == 1:
1338
        if ftype == TType.I64:
1339
          self.userId = iprot.readI64();
1340
        else:
1341
          iprot.skip(ftype)
1342
      else:
1343
        iprot.skip(ftype)
1344
      iprot.readFieldEnd()
1345
    iprot.readStructEnd()
1346
 
1347
  def write(self, oprot):
1348
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1349
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1350
      return
1351
    oprot.writeStructBegin('getContextFromId_args')
1352
    if self.userId != None:
1353
      oprot.writeFieldBegin('userId', TType.I64, 1)
1354
      oprot.writeI64(self.userId)
1355
      oprot.writeFieldEnd()
1356
    oprot.writeFieldStop()
1357
    oprot.writeStructEnd()
1358
 
1359
  def __repr__(self):
1360
    L = ['%s=%r' % (key, value)
1361
      for key, value in self.__dict__.iteritems()]
1362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1363
 
1364
  def __eq__(self, other):
1365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1366
 
1367
  def __ne__(self, other):
1368
    return not (self == other)
1369
 
1370
class getContextFromId_result:
1371
  """
1372
  Attributes:
1373
   - success
1374
   - ucx
1375
  """
1376
 
1377
  thrift_spec = (
1378
    (0, TType.STRUCT, 'success', (TUserContext, TUserContext.thrift_spec), None, ), # 0
1379
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1380
  )
1381
 
1382
  def __init__(self, success=None, ucx=None,):
1383
    self.success = success
1384
    self.ucx = ucx
1385
 
1386
  def read(self, iprot):
1387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1389
      return
1390
    iprot.readStructBegin()
1391
    while True:
1392
      (fname, ftype, fid) = iprot.readFieldBegin()
1393
      if ftype == TType.STOP:
1394
        break
1395
      if fid == 0:
1396
        if ftype == TType.STRUCT:
1397
          self.success = TUserContext()
1398
          self.success.read(iprot)
1399
        else:
1400
          iprot.skip(ftype)
1401
      elif fid == 1:
1402
        if ftype == TType.STRUCT:
1403
          self.ucx = UserContextException()
1404
          self.ucx.read(iprot)
1405
        else:
1406
          iprot.skip(ftype)
1407
      else:
1408
        iprot.skip(ftype)
1409
      iprot.readFieldEnd()
1410
    iprot.readStructEnd()
1411
 
1412
  def write(self, oprot):
1413
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1414
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1415
      return
1416
    oprot.writeStructBegin('getContextFromId_result')
1417
    if self.success != None:
1418
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1419
      self.success.write(oprot)
1420
      oprot.writeFieldEnd()
1421
    if self.ucx != None:
1422
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
1423
      self.ucx.write(oprot)
1424
      oprot.writeFieldEnd()
1425
    oprot.writeFieldStop()
1426
    oprot.writeStructEnd()
1427
 
1428
  def __repr__(self):
1429
    L = ['%s=%r' % (key, value)
1430
      for key, value in self.__dict__.iteritems()]
1431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1432
 
1433
  def __eq__(self, other):
1434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1435
 
1436
  def __ne__(self, other):
1437
    return not (self == other)
1438
 
1439
class getContextFromEmailOrHandle_args:
1440
  """
1441
  Attributes:
1442
   - emailorhandle
1443
   - isEmail
1444
  """
1445
 
1446
  thrift_spec = (
1447
    None, # 0
1448
    (1, TType.STRING, 'emailorhandle', None, None, ), # 1
1449
    (2, TType.BOOL, 'isEmail', None, None, ), # 2
1450
  )
1451
 
1452
  def __init__(self, emailorhandle=None, isEmail=None,):
1453
    self.emailorhandle = emailorhandle
1454
    self.isEmail = isEmail
1455
 
1456
  def read(self, iprot):
1457
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1458
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1459
      return
1460
    iprot.readStructBegin()
1461
    while True:
1462
      (fname, ftype, fid) = iprot.readFieldBegin()
1463
      if ftype == TType.STOP:
1464
        break
1465
      if fid == 1:
1466
        if ftype == TType.STRING:
1467
          self.emailorhandle = iprot.readString();
1468
        else:
1469
          iprot.skip(ftype)
1470
      elif fid == 2:
1471
        if ftype == TType.BOOL:
1472
          self.isEmail = iprot.readBool();
1473
        else:
1474
          iprot.skip(ftype)
1475
      else:
1476
        iprot.skip(ftype)
1477
      iprot.readFieldEnd()
1478
    iprot.readStructEnd()
1479
 
1480
  def write(self, oprot):
1481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1483
      return
1484
    oprot.writeStructBegin('getContextFromEmailOrHandle_args')
1485
    if self.emailorhandle != None:
1486
      oprot.writeFieldBegin('emailorhandle', TType.STRING, 1)
1487
      oprot.writeString(self.emailorhandle)
1488
      oprot.writeFieldEnd()
1489
    if self.isEmail != None:
1490
      oprot.writeFieldBegin('isEmail', TType.BOOL, 2)
1491
      oprot.writeBool(self.isEmail)
1492
      oprot.writeFieldEnd()
1493
    oprot.writeFieldStop()
1494
    oprot.writeStructEnd()
1495
 
1496
  def __repr__(self):
1497
    L = ['%s=%r' % (key, value)
1498
      for key, value in self.__dict__.iteritems()]
1499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1500
 
1501
  def __eq__(self, other):
1502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1503
 
1504
  def __ne__(self, other):
1505
    return not (self == other)
1506
 
1507
class getContextFromEmailOrHandle_result:
1508
  """
1509
  Attributes:
1510
   - success
1511
   - ucx
1512
  """
1513
 
1514
  thrift_spec = (
1515
    (0, TType.STRUCT, 'success', (TUserContext, TUserContext.thrift_spec), None, ), # 0
1516
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1517
  )
1518
 
1519
  def __init__(self, success=None, ucx=None,):
1520
    self.success = success
1521
    self.ucx = ucx
1522
 
1523
  def read(self, iprot):
1524
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1525
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1526
      return
1527
    iprot.readStructBegin()
1528
    while True:
1529
      (fname, ftype, fid) = iprot.readFieldBegin()
1530
      if ftype == TType.STOP:
1531
        break
1532
      if fid == 0:
1533
        if ftype == TType.STRUCT:
1534
          self.success = TUserContext()
1535
          self.success.read(iprot)
1536
        else:
1537
          iprot.skip(ftype)
1538
      elif fid == 1:
1539
        if ftype == TType.STRUCT:
1540
          self.ucx = UserContextException()
1541
          self.ucx.read(iprot)
1542
        else:
1543
          iprot.skip(ftype)
1544
      else:
1545
        iprot.skip(ftype)
1546
      iprot.readFieldEnd()
1547
    iprot.readStructEnd()
1548
 
1549
  def write(self, oprot):
1550
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1551
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1552
      return
1553
    oprot.writeStructBegin('getContextFromEmailOrHandle_result')
1554
    if self.success != None:
1555
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1556
      self.success.write(oprot)
1557
      oprot.writeFieldEnd()
1558
    if self.ucx != None:
1559
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
1560
      self.ucx.write(oprot)
1561
      oprot.writeFieldEnd()
1562
    oprot.writeFieldStop()
1563
    oprot.writeStructEnd()
1564
 
1565
  def __repr__(self):
1566
    L = ['%s=%r' % (key, value)
1567
      for key, value in self.__dict__.iteritems()]
1568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1569
 
1570
  def __eq__(self, other):
1571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1572
 
1573
  def __ne__(self, other):
1574
    return not (self == other)
1575
 
1576
class getState_args:
1577
  """
1578
  Attributes:
1579
   - userId
1580
  """
1581
 
1582
  thrift_spec = (
1583
    None, # 0
1584
    (1, TType.I64, 'userId', None, None, ), # 1
1585
  )
1586
 
1587
  def __init__(self, userId=None,):
1588
    self.userId = userId
1589
 
1590
  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:
1592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1593
      return
1594
    iprot.readStructBegin()
1595
    while True:
1596
      (fname, ftype, fid) = iprot.readFieldBegin()
1597
      if ftype == TType.STOP:
1598
        break
1599
      if fid == 1:
1600
        if ftype == TType.I64:
1601
          self.userId = iprot.readI64();
1602
        else:
1603
          iprot.skip(ftype)
1604
      else:
1605
        iprot.skip(ftype)
1606
      iprot.readFieldEnd()
1607
    iprot.readStructEnd()
1608
 
1609
  def write(self, oprot):
1610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1612
      return
1613
    oprot.writeStructBegin('getState_args')
1614
    if self.userId != None:
1615
      oprot.writeFieldBegin('userId', TType.I64, 1)
1616
      oprot.writeI64(self.userId)
1617
      oprot.writeFieldEnd()
1618
    oprot.writeFieldStop()
1619
    oprot.writeStructEnd()
1620
 
1621
  def __repr__(self):
1622
    L = ['%s=%r' % (key, value)
1623
      for key, value in self.__dict__.iteritems()]
1624
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1625
 
1626
  def __eq__(self, other):
1627
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1628
 
1629
  def __ne__(self, other):
1630
    return not (self == other)
1631
 
1632
class getState_result:
1633
  """
1634
  Attributes:
1635
   - success
1636
   - ucx
1637
  """
1638
 
1639
  thrift_spec = (
1640
    (0, TType.STRUCT, 'success', (TUserState, TUserState.thrift_spec), None, ), # 0
1641
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1642
  )
1643
 
1644
  def __init__(self, success=None, ucx=None,):
1645
    self.success = success
1646
    self.ucx = ucx
1647
 
1648
  def read(self, iprot):
1649
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1650
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1651
      return
1652
    iprot.readStructBegin()
1653
    while True:
1654
      (fname, ftype, fid) = iprot.readFieldBegin()
1655
      if ftype == TType.STOP:
1656
        break
1657
      if fid == 0:
1658
        if ftype == TType.STRUCT:
1659
          self.success = TUserState()
1660
          self.success.read(iprot)
1661
        else:
1662
          iprot.skip(ftype)
1663
      elif fid == 1:
1664
        if ftype == TType.STRUCT:
1665
          self.ucx = UserContextException()
1666
          self.ucx.read(iprot)
1667
        else:
1668
          iprot.skip(ftype)
1669
      else:
1670
        iprot.skip(ftype)
1671
      iprot.readFieldEnd()
1672
    iprot.readStructEnd()
1673
 
1674
  def write(self, oprot):
1675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1677
      return
1678
    oprot.writeStructBegin('getState_result')
1679
    if self.success != None:
1680
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1681
      self.success.write(oprot)
1682
      oprot.writeFieldEnd()
1683
    if self.ucx != None:
1684
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
1685
      self.ucx.write(oprot)
1686
      oprot.writeFieldEnd()
1687
    oprot.writeFieldStop()
1688
    oprot.writeStructEnd()
1689
 
1690
  def __repr__(self):
1691
    L = ['%s=%r' % (key, value)
1692
      for key, value in self.__dict__.iteritems()]
1693
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1694
 
1695
  def __eq__(self, other):
1696
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1697
 
1698
  def __ne__(self, other):
1699
    return not (self == other)
1700
 
1701
class getPrimaryInfo_args:
1702
  """
1703
  Attributes:
1704
   - userId
1705
  """
1706
 
1707
  thrift_spec = (
1708
    None, # 0
1709
    (1, TType.I64, 'userId', None, None, ), # 1
1710
  )
1711
 
1712
  def __init__(self, userId=None,):
1713
    self.userId = userId
1714
 
1715
  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:
1717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1718
      return
1719
    iprot.readStructBegin()
1720
    while True:
1721
      (fname, ftype, fid) = iprot.readFieldBegin()
1722
      if ftype == TType.STOP:
1723
        break
1724
      if fid == 1:
1725
        if ftype == TType.I64:
1726
          self.userId = iprot.readI64();
1727
        else:
1728
          iprot.skip(ftype)
1729
      else:
1730
        iprot.skip(ftype)
1731
      iprot.readFieldEnd()
1732
    iprot.readStructEnd()
1733
 
1734
  def write(self, oprot):
1735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1737
      return
1738
    oprot.writeStructBegin('getPrimaryInfo_args')
1739
    if self.userId != None:
1740
      oprot.writeFieldBegin('userId', TType.I64, 1)
1741
      oprot.writeI64(self.userId)
1742
      oprot.writeFieldEnd()
1743
    oprot.writeFieldStop()
1744
    oprot.writeStructEnd()
1745
 
1746
  def __repr__(self):
1747
    L = ['%s=%r' % (key, value)
1748
      for key, value in self.__dict__.iteritems()]
1749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1750
 
1751
  def __eq__(self, other):
1752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1753
 
1754
  def __ne__(self, other):
1755
    return not (self == other)
1756
 
1757
class getPrimaryInfo_result:
1758
  """
1759
  Attributes:
1760
   - success
1761
   - ucx
1762
  """
1763
 
1764
  thrift_spec = (
1765
    (0, TType.STRUCT, 'success', (TUserPrimaryInfo, TUserPrimaryInfo.thrift_spec), None, ), # 0
1766
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1767
  )
1768
 
1769
  def __init__(self, success=None, ucx=None,):
1770
    self.success = success
1771
    self.ucx = ucx
1772
 
1773
  def read(self, iprot):
1774
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1775
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1776
      return
1777
    iprot.readStructBegin()
1778
    while True:
1779
      (fname, ftype, fid) = iprot.readFieldBegin()
1780
      if ftype == TType.STOP:
1781
        break
1782
      if fid == 0:
1783
        if ftype == TType.STRUCT:
1784
          self.success = TUserPrimaryInfo()
1785
          self.success.read(iprot)
1786
        else:
1787
          iprot.skip(ftype)
1788
      elif fid == 1:
1789
        if ftype == TType.STRUCT:
1790
          self.ucx = UserContextException()
1791
          self.ucx.read(iprot)
1792
        else:
1793
          iprot.skip(ftype)
1794
      else:
1795
        iprot.skip(ftype)
1796
      iprot.readFieldEnd()
1797
    iprot.readStructEnd()
1798
 
1799
  def write(self, oprot):
1800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1802
      return
1803
    oprot.writeStructBegin('getPrimaryInfo_result')
1804
    if self.success != None:
1805
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1806
      self.success.write(oprot)
1807
      oprot.writeFieldEnd()
1808
    if self.ucx != None:
1809
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
1810
      self.ucx.write(oprot)
1811
      oprot.writeFieldEnd()
1812
    oprot.writeFieldStop()
1813
    oprot.writeStructEnd()
1814
 
1815
  def __repr__(self):
1816
    L = ['%s=%r' % (key, value)
1817
      for key, value in self.__dict__.iteritems()]
1818
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1819
 
1820
  def __eq__(self, other):
1821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1822
 
1823
  def __ne__(self, other):
1824
    return not (self == other)
1825
 
1826
class getInternalInfo_args:
1827
  """
1828
  Attributes:
1829
   - userId
1830
  """
1831
 
1832
  thrift_spec = (
1833
    None, # 0
1834
    (1, TType.I64, 'userId', None, None, ), # 1
1835
  )
1836
 
1837
  def __init__(self, userId=None,):
1838
    self.userId = userId
1839
 
1840
  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:
1842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1843
      return
1844
    iprot.readStructBegin()
1845
    while True:
1846
      (fname, ftype, fid) = iprot.readFieldBegin()
1847
      if ftype == TType.STOP:
1848
        break
1849
      if fid == 1:
1850
        if ftype == TType.I64:
1851
          self.userId = iprot.readI64();
1852
        else:
1853
          iprot.skip(ftype)
1854
      else:
1855
        iprot.skip(ftype)
1856
      iprot.readFieldEnd()
1857
    iprot.readStructEnd()
1858
 
1859
  def write(self, oprot):
1860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1862
      return
1863
    oprot.writeStructBegin('getInternalInfo_args')
1864
    if self.userId != None:
1865
      oprot.writeFieldBegin('userId', TType.I64, 1)
1866
      oprot.writeI64(self.userId)
1867
      oprot.writeFieldEnd()
1868
    oprot.writeFieldStop()
1869
    oprot.writeStructEnd()
1870
 
1871
  def __repr__(self):
1872
    L = ['%s=%r' % (key, value)
1873
      for key, value in self.__dict__.iteritems()]
1874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1875
 
1876
  def __eq__(self, other):
1877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1878
 
1879
  def __ne__(self, other):
1880
    return not (self == other)
1881
 
1882
class getInternalInfo_result:
1883
  """
1884
  Attributes:
1885
   - success
1886
   - ucx
1887
  """
1888
 
1889
  thrift_spec = (
1890
    (0, TType.STRUCT, 'success', (TUserInternalInfo, TUserInternalInfo.thrift_spec), None, ), # 0
1891
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1892
  )
1893
 
1894
  def __init__(self, success=None, ucx=None,):
1895
    self.success = success
1896
    self.ucx = ucx
1897
 
1898
  def read(self, iprot):
1899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1901
      return
1902
    iprot.readStructBegin()
1903
    while True:
1904
      (fname, ftype, fid) = iprot.readFieldBegin()
1905
      if ftype == TType.STOP:
1906
        break
1907
      if fid == 0:
1908
        if ftype == TType.STRUCT:
1909
          self.success = TUserInternalInfo()
1910
          self.success.read(iprot)
1911
        else:
1912
          iprot.skip(ftype)
1913
      elif fid == 1:
1914
        if ftype == TType.STRUCT:
1915
          self.ucx = UserContextException()
1916
          self.ucx.read(iprot)
1917
        else:
1918
          iprot.skip(ftype)
1919
      else:
1920
        iprot.skip(ftype)
1921
      iprot.readFieldEnd()
1922
    iprot.readStructEnd()
1923
 
1924
  def write(self, oprot):
1925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1927
      return
1928
    oprot.writeStructBegin('getInternalInfo_result')
1929
    if self.success != None:
1930
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1931
      self.success.write(oprot)
1932
      oprot.writeFieldEnd()
1933
    if self.ucx != None:
1934
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
1935
      self.ucx.write(oprot)
1936
      oprot.writeFieldEnd()
1937
    oprot.writeFieldStop()
1938
    oprot.writeStructEnd()
1939
 
1940
  def __repr__(self):
1941
    L = ['%s=%r' % (key, value)
1942
      for key, value in self.__dict__.iteritems()]
1943
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1944
 
1945
  def __eq__(self, other):
1946
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1947
 
1948
  def __ne__(self, other):
1949
    return not (self == other)
1950
 
1951
class getContext_args:
1952
  """
1953
  Attributes:
1954
   - email
1955
   - password
1956
  """
1957
 
1958
  thrift_spec = (
1959
    None, # 0
1960
    (1, TType.STRING, 'email', None, None, ), # 1
1961
    (2, TType.STRING, 'password', None, None, ), # 2
1962
  )
1963
 
1964
  def __init__(self, email=None, password=None,):
1965
    self.email = email
1966
    self.password = password
1967
 
1968
  def read(self, iprot):
1969
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1970
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1971
      return
1972
    iprot.readStructBegin()
1973
    while True:
1974
      (fname, ftype, fid) = iprot.readFieldBegin()
1975
      if ftype == TType.STOP:
1976
        break
1977
      if fid == 1:
1978
        if ftype == TType.STRING:
1979
          self.email = iprot.readString();
1980
        else:
1981
          iprot.skip(ftype)
1982
      elif fid == 2:
1983
        if ftype == TType.STRING:
1984
          self.password = iprot.readString();
1985
        else:
1986
          iprot.skip(ftype)
1987
      else:
1988
        iprot.skip(ftype)
1989
      iprot.readFieldEnd()
1990
    iprot.readStructEnd()
1991
 
1992
  def write(self, oprot):
1993
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1994
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1995
      return
1996
    oprot.writeStructBegin('getContext_args')
1997
    if self.email != None:
1998
      oprot.writeFieldBegin('email', TType.STRING, 1)
1999
      oprot.writeString(self.email)
2000
      oprot.writeFieldEnd()
2001
    if self.password != None:
2002
      oprot.writeFieldBegin('password', TType.STRING, 2)
2003
      oprot.writeString(self.password)
2004
      oprot.writeFieldEnd()
2005
    oprot.writeFieldStop()
2006
    oprot.writeStructEnd()
2007
 
2008
  def __repr__(self):
2009
    L = ['%s=%r' % (key, value)
2010
      for key, value in self.__dict__.iteritems()]
2011
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2012
 
2013
  def __eq__(self, other):
2014
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2015
 
2016
  def __ne__(self, other):
2017
    return not (self == other)
2018
 
2019
class getContext_result:
2020
  """
2021
  Attributes:
2022
   - success
2023
   - ax
2024
  """
2025
 
2026
  thrift_spec = (
2027
    (0, TType.STRUCT, 'success', (TUserContext, TUserContext.thrift_spec), None, ), # 0
2028
    (1, TType.STRUCT, 'ax', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
2029
  )
2030
 
2031
  def __init__(self, success=None, ax=None,):
2032
    self.success = success
2033
    self.ax = ax
2034
 
2035
  def read(self, iprot):
2036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2038
      return
2039
    iprot.readStructBegin()
2040
    while True:
2041
      (fname, ftype, fid) = iprot.readFieldBegin()
2042
      if ftype == TType.STOP:
2043
        break
2044
      if fid == 0:
2045
        if ftype == TType.STRUCT:
2046
          self.success = TUserContext()
2047
          self.success.read(iprot)
2048
        else:
2049
          iprot.skip(ftype)
2050
      elif fid == 1:
2051
        if ftype == TType.STRUCT:
2052
          self.ax = AuthenticationException()
2053
          self.ax.read(iprot)
2054
        else:
2055
          iprot.skip(ftype)
2056
      else:
2057
        iprot.skip(ftype)
2058
      iprot.readFieldEnd()
2059
    iprot.readStructEnd()
2060
 
2061
  def write(self, oprot):
2062
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2063
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2064
      return
2065
    oprot.writeStructBegin('getContext_result')
2066
    if self.success != None:
2067
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2068
      self.success.write(oprot)
2069
      oprot.writeFieldEnd()
2070
    if self.ax != None:
2071
      oprot.writeFieldBegin('ax', TType.STRUCT, 1)
2072
      self.ax.write(oprot)
2073
      oprot.writeFieldEnd()
2074
    oprot.writeFieldStop()
2075
    oprot.writeStructEnd()
2076
 
2077
  def __repr__(self):
2078
    L = ['%s=%r' % (key, value)
2079
      for key, value in self.__dict__.iteritems()]
2080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2081
 
2082
  def __eq__(self, other):
2083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2084
 
2085
  def __ne__(self, other):
2086
    return not (self == other)
2087
 
2088
class userExists_args:
2089
  """
2090
  Attributes:
2091
   - email
2092
  """
2093
 
2094
  thrift_spec = (
2095
    None, # 0
2096
    (1, TType.STRING, 'email', None, None, ), # 1
2097
  )
2098
 
2099
  def __init__(self, email=None,):
2100
    self.email = email
2101
 
2102
  def read(self, iprot):
2103
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2104
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2105
      return
2106
    iprot.readStructBegin()
2107
    while True:
2108
      (fname, ftype, fid) = iprot.readFieldBegin()
2109
      if ftype == TType.STOP:
2110
        break
2111
      if fid == 1:
2112
        if ftype == TType.STRING:
2113
          self.email = iprot.readString();
2114
        else:
2115
          iprot.skip(ftype)
2116
      else:
2117
        iprot.skip(ftype)
2118
      iprot.readFieldEnd()
2119
    iprot.readStructEnd()
2120
 
2121
  def write(self, oprot):
2122
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2123
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2124
      return
2125
    oprot.writeStructBegin('userExists_args')
2126
    if self.email != None:
2127
      oprot.writeFieldBegin('email', TType.STRING, 1)
2128
      oprot.writeString(self.email)
2129
      oprot.writeFieldEnd()
2130
    oprot.writeFieldStop()
2131
    oprot.writeStructEnd()
2132
 
2133
  def __repr__(self):
2134
    L = ['%s=%r' % (key, value)
2135
      for key, value in self.__dict__.iteritems()]
2136
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2137
 
2138
  def __eq__(self, other):
2139
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2140
 
2141
  def __ne__(self, other):
2142
    return not (self == other)
2143
 
2144
class userExists_result:
2145
  """
2146
  Attributes:
2147
   - success
2148
   - ucx
2149
  """
2150
 
2151
  thrift_spec = (
2152
    (0, TType.BOOL, 'success', None, None, ), # 0
2153
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2154
  )
2155
 
2156
  def __init__(self, success=None, ucx=None,):
2157
    self.success = success
2158
    self.ucx = ucx
2159
 
2160
  def read(self, iprot):
2161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2163
      return
2164
    iprot.readStructBegin()
2165
    while True:
2166
      (fname, ftype, fid) = iprot.readFieldBegin()
2167
      if ftype == TType.STOP:
2168
        break
2169
      if fid == 0:
2170
        if ftype == TType.BOOL:
2171
          self.success = iprot.readBool();
2172
        else:
2173
          iprot.skip(ftype)
2174
      elif fid == 1:
2175
        if ftype == TType.STRUCT:
2176
          self.ucx = UserContextException()
2177
          self.ucx.read(iprot)
2178
        else:
2179
          iprot.skip(ftype)
2180
      else:
2181
        iprot.skip(ftype)
2182
      iprot.readFieldEnd()
2183
    iprot.readStructEnd()
2184
 
2185
  def write(self, oprot):
2186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2188
      return
2189
    oprot.writeStructBegin('userExists_result')
2190
    if self.success != None:
2191
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2192
      oprot.writeBool(self.success)
2193
      oprot.writeFieldEnd()
2194
    if self.ucx != None:
2195
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
2196
      self.ucx.write(oprot)
2197
      oprot.writeFieldEnd()
2198
    oprot.writeFieldStop()
2199
    oprot.writeStructEnd()
2200
 
2201
  def __repr__(self):
2202
    L = ['%s=%r' % (key, value)
2203
      for key, value in self.__dict__.iteritems()]
2204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2205
 
2206
  def __eq__(self, other):
2207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2208
 
2209
  def __ne__(self, other):
2210
    return not (self == other)
2211
 
2212
class addIpAdressForUser_args:
2213
  """
2214
  Attributes:
2215
   - ip
2216
   - timestamp
2217
   - userId
2218
  """
2219
 
2220
  thrift_spec = (
2221
    None, # 0
2222
    (1, TType.STRING, 'ip', None, None, ), # 1
2223
    (2, TType.I64, 'timestamp', None, None, ), # 2
2224
    (3, TType.I64, 'userId', None, None, ), # 3
2225
  )
2226
 
2227
  def __init__(self, ip=None, timestamp=None, userId=None,):
2228
    self.ip = ip
2229
    self.timestamp = timestamp
2230
    self.userId = userId
2231
 
2232
  def read(self, iprot):
2233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2235
      return
2236
    iprot.readStructBegin()
2237
    while True:
2238
      (fname, ftype, fid) = iprot.readFieldBegin()
2239
      if ftype == TType.STOP:
2240
        break
2241
      if fid == 1:
2242
        if ftype == TType.STRING:
2243
          self.ip = iprot.readString();
2244
        else:
2245
          iprot.skip(ftype)
2246
      elif fid == 2:
2247
        if ftype == TType.I64:
2248
          self.timestamp = iprot.readI64();
2249
        else:
2250
          iprot.skip(ftype)
2251
      elif fid == 3:
2252
        if ftype == TType.I64:
2253
          self.userId = iprot.readI64();
2254
        else:
2255
          iprot.skip(ftype)
2256
      else:
2257
        iprot.skip(ftype)
2258
      iprot.readFieldEnd()
2259
    iprot.readStructEnd()
2260
 
2261
  def write(self, oprot):
2262
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2263
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2264
      return
2265
    oprot.writeStructBegin('addIpAdressForUser_args')
2266
    if self.ip != None:
2267
      oprot.writeFieldBegin('ip', TType.STRING, 1)
2268
      oprot.writeString(self.ip)
2269
      oprot.writeFieldEnd()
2270
    if self.timestamp != None:
2271
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
2272
      oprot.writeI64(self.timestamp)
2273
      oprot.writeFieldEnd()
2274
    if self.userId != None:
2275
      oprot.writeFieldBegin('userId', TType.I64, 3)
2276
      oprot.writeI64(self.userId)
2277
      oprot.writeFieldEnd()
2278
    oprot.writeFieldStop()
2279
    oprot.writeStructEnd()
2280
 
2281
  def __repr__(self):
2282
    L = ['%s=%r' % (key, value)
2283
      for key, value in self.__dict__.iteritems()]
2284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2285
 
2286
  def __eq__(self, other):
2287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2288
 
2289
  def __ne__(self, other):
2290
    return not (self == other)
2291
 
2292
class addIpAdressForUser_result:
2293
  """
2294
  Attributes:
2295
   - success
2296
   - ucx
2297
  """
2298
 
2299
  thrift_spec = (
2300
    (0, TType.BOOL, 'success', None, None, ), # 0
2301
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2302
  )
2303
 
2304
  def __init__(self, success=None, ucx=None,):
2305
    self.success = success
2306
    self.ucx = ucx
2307
 
2308
  def read(self, iprot):
2309
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2310
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2311
      return
2312
    iprot.readStructBegin()
2313
    while True:
2314
      (fname, ftype, fid) = iprot.readFieldBegin()
2315
      if ftype == TType.STOP:
2316
        break
2317
      if fid == 0:
2318
        if ftype == TType.BOOL:
2319
          self.success = iprot.readBool();
2320
        else:
2321
          iprot.skip(ftype)
2322
      elif fid == 1:
2323
        if ftype == TType.STRUCT:
2324
          self.ucx = UserContextException()
2325
          self.ucx.read(iprot)
2326
        else:
2327
          iprot.skip(ftype)
2328
      else:
2329
        iprot.skip(ftype)
2330
      iprot.readFieldEnd()
2331
    iprot.readStructEnd()
2332
 
2333
  def write(self, oprot):
2334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2336
      return
2337
    oprot.writeStructBegin('addIpAdressForUser_result')
2338
    if self.success != None:
2339
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2340
      oprot.writeBool(self.success)
2341
      oprot.writeFieldEnd()
2342
    if self.ucx != None:
2343
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
2344
      self.ucx.write(oprot)
2345
      oprot.writeFieldEnd()
2346
    oprot.writeFieldStop()
2347
    oprot.writeStructEnd()
2348
 
2349
  def __repr__(self):
2350
    L = ['%s=%r' % (key, value)
2351
      for key, value in self.__dict__.iteritems()]
2352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2353
 
2354
  def __eq__(self, other):
2355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2356
 
2357
  def __ne__(self, other):
2358
    return not (self == other)
2359
 
2360
class addAddressForUser_args:
2361
  """
2362
  Attributes:
2363
   - address
2364
   - userid
2365
   - timestamp
2366
  """
2367
 
2368
  thrift_spec = (
2369
    None, # 0
2370
    (1, TType.STRUCT, 'address', (TAddress, TAddress.thrift_spec), None, ), # 1
2371
    (2, TType.I64, 'userid', None, None, ), # 2
2372
    (3, TType.I64, 'timestamp', None, None, ), # 3
2373
  )
2374
 
2375
  def __init__(self, address=None, userid=None, timestamp=None,):
2376
    self.address = address
2377
    self.userid = userid
2378
    self.timestamp = timestamp
2379
 
2380
  def read(self, iprot):
2381
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2382
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2383
      return
2384
    iprot.readStructBegin()
2385
    while True:
2386
      (fname, ftype, fid) = iprot.readFieldBegin()
2387
      if ftype == TType.STOP:
2388
        break
2389
      if fid == 1:
2390
        if ftype == TType.STRUCT:
2391
          self.address = TAddress()
2392
          self.address.read(iprot)
2393
        else:
2394
          iprot.skip(ftype)
2395
      elif fid == 2:
2396
        if ftype == TType.I64:
2397
          self.userid = iprot.readI64();
2398
        else:
2399
          iprot.skip(ftype)
2400
      elif fid == 3:
2401
        if ftype == TType.I64:
2402
          self.timestamp = iprot.readI64();
2403
        else:
2404
          iprot.skip(ftype)
2405
      else:
2406
        iprot.skip(ftype)
2407
      iprot.readFieldEnd()
2408
    iprot.readStructEnd()
2409
 
2410
  def write(self, oprot):
2411
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2412
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2413
      return
2414
    oprot.writeStructBegin('addAddressForUser_args')
2415
    if self.address != None:
2416
      oprot.writeFieldBegin('address', TType.STRUCT, 1)
2417
      self.address.write(oprot)
2418
      oprot.writeFieldEnd()
2419
    if self.userid != None:
2420
      oprot.writeFieldBegin('userid', TType.I64, 2)
2421
      oprot.writeI64(self.userid)
2422
      oprot.writeFieldEnd()
2423
    if self.timestamp != None:
2424
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
2425
      oprot.writeI64(self.timestamp)
2426
      oprot.writeFieldEnd()
2427
    oprot.writeFieldStop()
2428
    oprot.writeStructEnd()
2429
 
2430
  def __repr__(self):
2431
    L = ['%s=%r' % (key, value)
2432
      for key, value in self.__dict__.iteritems()]
2433
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2434
 
2435
  def __eq__(self, other):
2436
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2437
 
2438
  def __ne__(self, other):
2439
    return not (self == other)
2440
 
2441
class addAddressForUser_result:
2442
  """
2443
  Attributes:
2444
   - success
2445
   - ucx
2446
  """
2447
 
2448
  thrift_spec = (
2449
    (0, TType.BOOL, 'success', None, None, ), # 0
2450
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2451
  )
2452
 
2453
  def __init__(self, success=None, ucx=None,):
2454
    self.success = success
2455
    self.ucx = ucx
2456
 
2457
  def read(self, iprot):
2458
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2459
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2460
      return
2461
    iprot.readStructBegin()
2462
    while True:
2463
      (fname, ftype, fid) = iprot.readFieldBegin()
2464
      if ftype == TType.STOP:
2465
        break
2466
      if fid == 0:
2467
        if ftype == TType.BOOL:
2468
          self.success = iprot.readBool();
2469
        else:
2470
          iprot.skip(ftype)
2471
      elif fid == 1:
2472
        if ftype == TType.STRUCT:
2473
          self.ucx = UserContextException()
2474
          self.ucx.read(iprot)
2475
        else:
2476
          iprot.skip(ftype)
2477
      else:
2478
        iprot.skip(ftype)
2479
      iprot.readFieldEnd()
2480
    iprot.readStructEnd()
2481
 
2482
  def write(self, oprot):
2483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2485
      return
2486
    oprot.writeStructBegin('addAddressForUser_result')
2487
    if self.success != None:
2488
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2489
      oprot.writeBool(self.success)
2490
      oprot.writeFieldEnd()
2491
    if self.ucx != None:
2492
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
2493
      self.ucx.write(oprot)
2494
      oprot.writeFieldEnd()
2495
    oprot.writeFieldStop()
2496
    oprot.writeStructEnd()
2497
 
2498
  def __repr__(self):
2499
    L = ['%s=%r' % (key, value)
2500
      for key, value in self.__dict__.iteritems()]
2501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2502
 
2503
  def __eq__(self, other):
2504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2505
 
2506
  def __ne__(self, other):
2507
    return not (self == other)
2508
 
2509
class removeAddressForUser_args:
2510
  """
2511
  Attributes:
2512
   - userid
2513
   - addressId
2514
  """
2515
 
2516
  thrift_spec = (
2517
    None, # 0
2518
    (1, TType.I64, 'userid', None, None, ), # 1
2519
    (2, TType.I64, 'addressId', None, None, ), # 2
2520
  )
2521
 
2522
  def __init__(self, userid=None, addressId=None,):
2523
    self.userid = userid
2524
    self.addressId = addressId
2525
 
2526
  def read(self, iprot):
2527
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2528
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2529
      return
2530
    iprot.readStructBegin()
2531
    while True:
2532
      (fname, ftype, fid) = iprot.readFieldBegin()
2533
      if ftype == TType.STOP:
2534
        break
2535
      if fid == 1:
2536
        if ftype == TType.I64:
2537
          self.userid = iprot.readI64();
2538
        else:
2539
          iprot.skip(ftype)
2540
      elif fid == 2:
2541
        if ftype == TType.I64:
2542
          self.addressId = iprot.readI64();
2543
        else:
2544
          iprot.skip(ftype)
2545
      else:
2546
        iprot.skip(ftype)
2547
      iprot.readFieldEnd()
2548
    iprot.readStructEnd()
2549
 
2550
  def write(self, oprot):
2551
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2552
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2553
      return
2554
    oprot.writeStructBegin('removeAddressForUser_args')
2555
    if self.userid != None:
2556
      oprot.writeFieldBegin('userid', TType.I64, 1)
2557
      oprot.writeI64(self.userid)
2558
      oprot.writeFieldEnd()
2559
    if self.addressId != None:
2560
      oprot.writeFieldBegin('addressId', TType.I64, 2)
2561
      oprot.writeI64(self.addressId)
2562
      oprot.writeFieldEnd()
2563
    oprot.writeFieldStop()
2564
    oprot.writeStructEnd()
2565
 
2566
  def __repr__(self):
2567
    L = ['%s=%r' % (key, value)
2568
      for key, value in self.__dict__.iteritems()]
2569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2570
 
2571
  def __eq__(self, other):
2572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2573
 
2574
  def __ne__(self, other):
2575
    return not (self == other)
2576
 
2577
class removeAddressForUser_result:
2578
  """
2579
  Attributes:
2580
   - success
2581
   - ucx
2582
  """
2583
 
2584
  thrift_spec = (
2585
    (0, TType.BOOL, 'success', None, None, ), # 0
2586
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2587
  )
2588
 
2589
  def __init__(self, success=None, ucx=None,):
2590
    self.success = success
2591
    self.ucx = ucx
2592
 
2593
  def read(self, iprot):
2594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2596
      return
2597
    iprot.readStructBegin()
2598
    while True:
2599
      (fname, ftype, fid) = iprot.readFieldBegin()
2600
      if ftype == TType.STOP:
2601
        break
2602
      if fid == 0:
2603
        if ftype == TType.BOOL:
2604
          self.success = iprot.readBool();
2605
        else:
2606
          iprot.skip(ftype)
2607
      elif fid == 1:
2608
        if ftype == TType.STRUCT:
2609
          self.ucx = UserContextException()
2610
          self.ucx.read(iprot)
2611
        else:
2612
          iprot.skip(ftype)
2613
      else:
2614
        iprot.skip(ftype)
2615
      iprot.readFieldEnd()
2616
    iprot.readStructEnd()
2617
 
2618
  def write(self, oprot):
2619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2621
      return
2622
    oprot.writeStructBegin('removeAddressForUser_result')
2623
    if self.success != None:
2624
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2625
      oprot.writeBool(self.success)
2626
      oprot.writeFieldEnd()
2627
    if self.ucx != None:
2628
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
2629
      self.ucx.write(oprot)
2630
      oprot.writeFieldEnd()
2631
    oprot.writeFieldStop()
2632
    oprot.writeStructEnd()
2633
 
2634
  def __repr__(self):
2635
    L = ['%s=%r' % (key, value)
2636
      for key, value in self.__dict__.iteritems()]
2637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2638
 
2639
  def __eq__(self, other):
2640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2641
 
2642
  def __ne__(self, other):
2643
    return not (self == other)
2644
 
2645
class setUserAsLoggedIn_args:
2646
  """
2647
  Attributes:
2648
   - userId
2649
   - timestamp
2650
  """
2651
 
2652
  thrift_spec = (
2653
    None, # 0
2654
    (1, TType.I64, 'userId', None, None, ), # 1
2655
    (2, TType.I64, 'timestamp', None, None, ), # 2
2656
  )
2657
 
2658
  def __init__(self, userId=None, timestamp=None,):
2659
    self.userId = userId
2660
    self.timestamp = timestamp
2661
 
2662
  def read(self, iprot):
2663
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2664
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2665
      return
2666
    iprot.readStructBegin()
2667
    while True:
2668
      (fname, ftype, fid) = iprot.readFieldBegin()
2669
      if ftype == TType.STOP:
2670
        break
2671
      if fid == 1:
2672
        if ftype == TType.I64:
2673
          self.userId = iprot.readI64();
2674
        else:
2675
          iprot.skip(ftype)
2676
      elif fid == 2:
2677
        if ftype == TType.I64:
2678
          self.timestamp = iprot.readI64();
2679
        else:
2680
          iprot.skip(ftype)
2681
      else:
2682
        iprot.skip(ftype)
2683
      iprot.readFieldEnd()
2684
    iprot.readStructEnd()
2685
 
2686
  def write(self, oprot):
2687
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2688
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2689
      return
2690
    oprot.writeStructBegin('setUserAsLoggedIn_args')
2691
    if self.userId != None:
2692
      oprot.writeFieldBegin('userId', TType.I64, 1)
2693
      oprot.writeI64(self.userId)
2694
      oprot.writeFieldEnd()
2695
    if self.timestamp != None:
2696
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
2697
      oprot.writeI64(self.timestamp)
2698
      oprot.writeFieldEnd()
2699
    oprot.writeFieldStop()
2700
    oprot.writeStructEnd()
2701
 
2702
  def __repr__(self):
2703
    L = ['%s=%r' % (key, value)
2704
      for key, value in self.__dict__.iteritems()]
2705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2706
 
2707
  def __eq__(self, other):
2708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2709
 
2710
  def __ne__(self, other):
2711
    return not (self == other)
2712
 
2713
class setUserAsLoggedIn_result:
2714
  """
2715
  Attributes:
2716
   - success
2717
   - ucx
2718
  """
2719
 
2720
  thrift_spec = (
2721
    (0, TType.BOOL, 'success', None, None, ), # 0
2722
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2723
  )
2724
 
2725
  def __init__(self, success=None, ucx=None,):
2726
    self.success = success
2727
    self.ucx = ucx
2728
 
2729
  def read(self, iprot):
2730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2732
      return
2733
    iprot.readStructBegin()
2734
    while True:
2735
      (fname, ftype, fid) = iprot.readFieldBegin()
2736
      if ftype == TType.STOP:
2737
        break
2738
      if fid == 0:
2739
        if ftype == TType.BOOL:
2740
          self.success = iprot.readBool();
2741
        else:
2742
          iprot.skip(ftype)
2743
      elif fid == 1:
2744
        if ftype == TType.STRUCT:
2745
          self.ucx = UserContextException()
2746
          self.ucx.read(iprot)
2747
        else:
2748
          iprot.skip(ftype)
2749
      else:
2750
        iprot.skip(ftype)
2751
      iprot.readFieldEnd()
2752
    iprot.readStructEnd()
2753
 
2754
  def write(self, oprot):
2755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2757
      return
2758
    oprot.writeStructBegin('setUserAsLoggedIn_result')
2759
    if self.success != None:
2760
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2761
      oprot.writeBool(self.success)
2762
      oprot.writeFieldEnd()
2763
    if self.ucx != None:
2764
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
2765
      self.ucx.write(oprot)
2766
      oprot.writeFieldEnd()
2767
    oprot.writeFieldStop()
2768
    oprot.writeStructEnd()
2769
 
2770
  def __repr__(self):
2771
    L = ['%s=%r' % (key, value)
2772
      for key, value in self.__dict__.iteritems()]
2773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2774
 
2775
  def __eq__(self, other):
2776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2777
 
2778
  def __ne__(self, other):
2779
    return not (self == other)
2780
 
2781
class setUserAsLoggedOut_args:
2782
  """
2783
  Attributes:
2784
   - userid
2785
   - timestamp
2786
  """
2787
 
2788
  thrift_spec = (
2789
    None, # 0
2790
    (1, TType.I64, 'userid', None, None, ), # 1
2791
    (2, TType.I64, 'timestamp', None, None, ), # 2
2792
  )
2793
 
2794
  def __init__(self, userid=None, timestamp=None,):
2795
    self.userid = userid
2796
    self.timestamp = timestamp
2797
 
2798
  def read(self, iprot):
2799
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2800
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2801
      return
2802
    iprot.readStructBegin()
2803
    while True:
2804
      (fname, ftype, fid) = iprot.readFieldBegin()
2805
      if ftype == TType.STOP:
2806
        break
2807
      if fid == 1:
2808
        if ftype == TType.I64:
2809
          self.userid = iprot.readI64();
2810
        else:
2811
          iprot.skip(ftype)
2812
      elif fid == 2:
2813
        if ftype == TType.I64:
2814
          self.timestamp = iprot.readI64();
2815
        else:
2816
          iprot.skip(ftype)
2817
      else:
2818
        iprot.skip(ftype)
2819
      iprot.readFieldEnd()
2820
    iprot.readStructEnd()
2821
 
2822
  def write(self, oprot):
2823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2825
      return
2826
    oprot.writeStructBegin('setUserAsLoggedOut_args')
2827
    if self.userid != None:
2828
      oprot.writeFieldBegin('userid', TType.I64, 1)
2829
      oprot.writeI64(self.userid)
2830
      oprot.writeFieldEnd()
2831
    if self.timestamp != None:
2832
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
2833
      oprot.writeI64(self.timestamp)
2834
      oprot.writeFieldEnd()
2835
    oprot.writeFieldStop()
2836
    oprot.writeStructEnd()
2837
 
2838
  def __repr__(self):
2839
    L = ['%s=%r' % (key, value)
2840
      for key, value in self.__dict__.iteritems()]
2841
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2842
 
2843
  def __eq__(self, other):
2844
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2845
 
2846
  def __ne__(self, other):
2847
    return not (self == other)
2848
 
2849
class setUserAsLoggedOut_result:
2850
  """
2851
  Attributes:
2852
   - success
2853
   - ucx
2854
  """
2855
 
2856
  thrift_spec = (
2857
    (0, TType.BOOL, 'success', None, None, ), # 0
2858
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2859
  )
2860
 
2861
  def __init__(self, success=None, ucx=None,):
2862
    self.success = success
2863
    self.ucx = ucx
2864
 
2865
  def read(self, iprot):
2866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2868
      return
2869
    iprot.readStructBegin()
2870
    while True:
2871
      (fname, ftype, fid) = iprot.readFieldBegin()
2872
      if ftype == TType.STOP:
2873
        break
2874
      if fid == 0:
2875
        if ftype == TType.BOOL:
2876
          self.success = iprot.readBool();
2877
        else:
2878
          iprot.skip(ftype)
2879
      elif fid == 1:
2880
        if ftype == TType.STRUCT:
2881
          self.ucx = UserContextException()
2882
          self.ucx.read(iprot)
2883
        else:
2884
          iprot.skip(ftype)
2885
      else:
2886
        iprot.skip(ftype)
2887
      iprot.readFieldEnd()
2888
    iprot.readStructEnd()
2889
 
2890
  def write(self, oprot):
2891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2893
      return
2894
    oprot.writeStructBegin('setUserAsLoggedOut_result')
2895
    if self.success != None:
2896
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2897
      oprot.writeBool(self.success)
2898
      oprot.writeFieldEnd()
2899
    if self.ucx != None:
2900
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
2901
      self.ucx.write(oprot)
2902
      oprot.writeFieldEnd()
2903
    oprot.writeFieldStop()
2904
    oprot.writeStructEnd()
2905
 
2906
  def __repr__(self):
2907
    L = ['%s=%r' % (key, value)
2908
      for key, value in self.__dict__.iteritems()]
2909
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2910
 
2911
  def __eq__(self, other):
2912
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2913
 
2914
  def __ne__(self, other):
2915
    return not (self == other)
2916
 
2917
class updatePassword_args:
2918
  """
2919
  Attributes:
2920
   - userid
2921
   - password
2922
  """
2923
 
2924
  thrift_spec = (
2925
    None, # 0
2926
    (1, TType.I64, 'userid', None, None, ), # 1
2927
    (2, TType.STRING, 'password', None, None, ), # 2
2928
  )
2929
 
2930
  def __init__(self, userid=None, password=None,):
2931
    self.userid = userid
2932
    self.password = password
2933
 
2934
  def read(self, iprot):
2935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2937
      return
2938
    iprot.readStructBegin()
2939
    while True:
2940
      (fname, ftype, fid) = iprot.readFieldBegin()
2941
      if ftype == TType.STOP:
2942
        break
2943
      if fid == 1:
2944
        if ftype == TType.I64:
2945
          self.userid = iprot.readI64();
2946
        else:
2947
          iprot.skip(ftype)
2948
      elif fid == 2:
2949
        if ftype == TType.STRING:
2950
          self.password = iprot.readString();
2951
        else:
2952
          iprot.skip(ftype)
2953
      else:
2954
        iprot.skip(ftype)
2955
      iprot.readFieldEnd()
2956
    iprot.readStructEnd()
2957
 
2958
  def write(self, oprot):
2959
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2960
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2961
      return
2962
    oprot.writeStructBegin('updatePassword_args')
2963
    if self.userid != None:
2964
      oprot.writeFieldBegin('userid', TType.I64, 1)
2965
      oprot.writeI64(self.userid)
2966
      oprot.writeFieldEnd()
2967
    if self.password != None:
2968
      oprot.writeFieldBegin('password', TType.STRING, 2)
2969
      oprot.writeString(self.password)
2970
      oprot.writeFieldEnd()
2971
    oprot.writeFieldStop()
2972
    oprot.writeStructEnd()
2973
 
2974
  def __repr__(self):
2975
    L = ['%s=%r' % (key, value)
2976
      for key, value in self.__dict__.iteritems()]
2977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2978
 
2979
  def __eq__(self, other):
2980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2981
 
2982
  def __ne__(self, other):
2983
    return not (self == other)
2984
 
2985
class updatePassword_result:
2986
  """
2987
  Attributes:
2988
   - success
2989
   - ucx
2990
  """
2991
 
2992
  thrift_spec = (
2993
    (0, TType.BOOL, 'success', None, None, ), # 0
2994
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2995
  )
2996
 
2997
  def __init__(self, success=None, ucx=None,):
2998
    self.success = success
2999
    self.ucx = ucx
3000
 
3001
  def read(self, iprot):
3002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3004
      return
3005
    iprot.readStructBegin()
3006
    while True:
3007
      (fname, ftype, fid) = iprot.readFieldBegin()
3008
      if ftype == TType.STOP:
3009
        break
3010
      if fid == 0:
3011
        if ftype == TType.BOOL:
3012
          self.success = iprot.readBool();
3013
        else:
3014
          iprot.skip(ftype)
3015
      elif fid == 1:
3016
        if ftype == TType.STRUCT:
3017
          self.ucx = UserContextException()
3018
          self.ucx.read(iprot)
3019
        else:
3020
          iprot.skip(ftype)
3021
      else:
3022
        iprot.skip(ftype)
3023
      iprot.readFieldEnd()
3024
    iprot.readStructEnd()
3025
 
3026
  def write(self, oprot):
3027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3029
      return
3030
    oprot.writeStructBegin('updatePassword_result')
3031
    if self.success != None:
3032
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3033
      oprot.writeBool(self.success)
3034
      oprot.writeFieldEnd()
3035
    if self.ucx != None:
3036
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
3037
      self.ucx.write(oprot)
3038
      oprot.writeFieldEnd()
3039
    oprot.writeFieldStop()
3040
    oprot.writeStructEnd()
3041
 
3042
  def __repr__(self):
3043
    L = ['%s=%r' % (key, value)
3044
      for key, value in self.__dict__.iteritems()]
3045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3046
 
3047
  def __eq__(self, other):
3048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3049
 
3050
  def __ne__(self, other):
3051
    return not (self == other)
3052
 
3053
class deleteUser_args:
3054
  """
3055
  Attributes:
3056
   - userid
3057
  """
3058
 
3059
  thrift_spec = (
3060
    None, # 0
3061
    (1, TType.I64, 'userid', None, None, ), # 1
3062
  )
3063
 
3064
  def __init__(self, userid=None,):
3065
    self.userid = userid
3066
 
3067
  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:
3069
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3070
      return
3071
    iprot.readStructBegin()
3072
    while True:
3073
      (fname, ftype, fid) = iprot.readFieldBegin()
3074
      if ftype == TType.STOP:
3075
        break
3076
      if fid == 1:
3077
        if ftype == TType.I64:
3078
          self.userid = iprot.readI64();
3079
        else:
3080
          iprot.skip(ftype)
3081
      else:
3082
        iprot.skip(ftype)
3083
      iprot.readFieldEnd()
3084
    iprot.readStructEnd()
3085
 
3086
  def write(self, oprot):
3087
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3088
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3089
      return
3090
    oprot.writeStructBegin('deleteUser_args')
3091
    if self.userid != None:
3092
      oprot.writeFieldBegin('userid', TType.I64, 1)
3093
      oprot.writeI64(self.userid)
3094
      oprot.writeFieldEnd()
3095
    oprot.writeFieldStop()
3096
    oprot.writeStructEnd()
3097
 
3098
  def __repr__(self):
3099
    L = ['%s=%r' % (key, value)
3100
      for key, value in self.__dict__.iteritems()]
3101
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3102
 
3103
  def __eq__(self, other):
3104
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3105
 
3106
  def __ne__(self, other):
3107
    return not (self == other)
3108
 
3109
class deleteUser_result:
3110
  """
3111
  Attributes:
3112
   - success
3113
   - ucx
3114
  """
3115
 
3116
  thrift_spec = (
3117
    (0, TType.BOOL, 'success', None, None, ), # 0
3118
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
3119
  )
3120
 
3121
  def __init__(self, success=None, ucx=None,):
3122
    self.success = success
3123
    self.ucx = ucx
3124
 
3125
  def read(self, iprot):
3126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3128
      return
3129
    iprot.readStructBegin()
3130
    while True:
3131
      (fname, ftype, fid) = iprot.readFieldBegin()
3132
      if ftype == TType.STOP:
3133
        break
3134
      if fid == 0:
3135
        if ftype == TType.BOOL:
3136
          self.success = iprot.readBool();
3137
        else:
3138
          iprot.skip(ftype)
3139
      elif fid == 1:
3140
        if ftype == TType.STRUCT:
3141
          self.ucx = UserContextException()
3142
          self.ucx.read(iprot)
3143
        else:
3144
          iprot.skip(ftype)
3145
      else:
3146
        iprot.skip(ftype)
3147
      iprot.readFieldEnd()
3148
    iprot.readStructEnd()
3149
 
3150
  def write(self, oprot):
3151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3153
      return
3154
    oprot.writeStructBegin('deleteUser_result')
3155
    if self.success != None:
3156
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3157
      oprot.writeBool(self.success)
3158
      oprot.writeFieldEnd()
3159
    if self.ucx != None:
3160
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
3161
      self.ucx.write(oprot)
3162
      oprot.writeFieldEnd()
3163
    oprot.writeFieldStop()
3164
    oprot.writeStructEnd()
3165
 
3166
  def __repr__(self):
3167
    L = ['%s=%r' % (key, value)
3168
      for key, value in self.__dict__.iteritems()]
3169
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3170
 
3171
  def __eq__(self, other):
3172
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3173
 
3174
  def __ne__(self, other):
3175
    return not (self == other)
3176
 
3177
class sendEmailVerification_args:
3178
  """
3179
  Attributes:
3180
   - userid
3181
  """
3182
 
3183
  thrift_spec = (
3184
    None, # 0
3185
    (1, TType.I64, 'userid', None, None, ), # 1
3186
  )
3187
 
3188
  def __init__(self, userid=None,):
3189
    self.userid = userid
3190
 
3191
  def read(self, iprot):
3192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3194
      return
3195
    iprot.readStructBegin()
3196
    while True:
3197
      (fname, ftype, fid) = iprot.readFieldBegin()
3198
      if ftype == TType.STOP:
3199
        break
3200
      if fid == 1:
3201
        if ftype == TType.I64:
3202
          self.userid = iprot.readI64();
3203
        else:
3204
          iprot.skip(ftype)
3205
      else:
3206
        iprot.skip(ftype)
3207
      iprot.readFieldEnd()
3208
    iprot.readStructEnd()
3209
 
3210
  def write(self, oprot):
3211
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3212
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3213
      return
3214
    oprot.writeStructBegin('sendEmailVerification_args')
3215
    if self.userid != None:
3216
      oprot.writeFieldBegin('userid', TType.I64, 1)
3217
      oprot.writeI64(self.userid)
3218
      oprot.writeFieldEnd()
3219
    oprot.writeFieldStop()
3220
    oprot.writeStructEnd()
3221
 
3222
  def __repr__(self):
3223
    L = ['%s=%r' % (key, value)
3224
      for key, value in self.__dict__.iteritems()]
3225
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3226
 
3227
  def __eq__(self, other):
3228
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3229
 
3230
  def __ne__(self, other):
3231
    return not (self == other)
3232
 
3233
class sendEmailVerification_result:
3234
  """
3235
  Attributes:
3236
   - success
3237
   - ucx
3238
  """
3239
 
3240
  thrift_spec = (
3241
    (0, TType.BOOL, 'success', None, None, ), # 0
3242
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
3243
  )
3244
 
3245
  def __init__(self, success=None, ucx=None,):
3246
    self.success = success
3247
    self.ucx = ucx
3248
 
3249
  def read(self, iprot):
3250
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3251
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3252
      return
3253
    iprot.readStructBegin()
3254
    while True:
3255
      (fname, ftype, fid) = iprot.readFieldBegin()
3256
      if ftype == TType.STOP:
3257
        break
3258
      if fid == 0:
3259
        if ftype == TType.BOOL:
3260
          self.success = iprot.readBool();
3261
        else:
3262
          iprot.skip(ftype)
3263
      elif fid == 1:
3264
        if ftype == TType.STRUCT:
3265
          self.ucx = UserContextException()
3266
          self.ucx.read(iprot)
3267
        else:
3268
          iprot.skip(ftype)
3269
      else:
3270
        iprot.skip(ftype)
3271
      iprot.readFieldEnd()
3272
    iprot.readStructEnd()
3273
 
3274
  def write(self, oprot):
3275
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3276
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3277
      return
3278
    oprot.writeStructBegin('sendEmailVerification_result')
3279
    if self.success != None:
3280
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3281
      oprot.writeBool(self.success)
3282
      oprot.writeFieldEnd()
3283
    if self.ucx != None:
3284
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
3285
      self.ucx.write(oprot)
3286
      oprot.writeFieldEnd()
3287
    oprot.writeFieldStop()
3288
    oprot.writeStructEnd()
3289
 
3290
  def __repr__(self):
3291
    L = ['%s=%r' % (key, value)
3292
      for key, value in self.__dict__.iteritems()]
3293
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3294
 
3295
  def __eq__(self, other):
3296
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3297
 
3298
  def __ne__(self, other):
3299
    return not (self == other)
3300
 
3301
class sendSMSVerification_args:
3302
  """
3303
  Attributes:
3304
   - userid
3305
  """
3306
 
3307
  thrift_spec = (
3308
    None, # 0
3309
    (1, TType.I64, 'userid', None, None, ), # 1
3310
  )
3311
 
3312
  def __init__(self, userid=None,):
3313
    self.userid = userid
3314
 
3315
  def read(self, iprot):
3316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3318
      return
3319
    iprot.readStructBegin()
3320
    while True:
3321
      (fname, ftype, fid) = iprot.readFieldBegin()
3322
      if ftype == TType.STOP:
3323
        break
3324
      if fid == 1:
3325
        if ftype == TType.I64:
3326
          self.userid = iprot.readI64();
3327
        else:
3328
          iprot.skip(ftype)
3329
      else:
3330
        iprot.skip(ftype)
3331
      iprot.readFieldEnd()
3332
    iprot.readStructEnd()
3333
 
3334
  def write(self, oprot):
3335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3337
      return
3338
    oprot.writeStructBegin('sendSMSVerification_args')
3339
    if self.userid != None:
3340
      oprot.writeFieldBegin('userid', TType.I64, 1)
3341
      oprot.writeI64(self.userid)
3342
      oprot.writeFieldEnd()
3343
    oprot.writeFieldStop()
3344
    oprot.writeStructEnd()
3345
 
3346
  def __repr__(self):
3347
    L = ['%s=%r' % (key, value)
3348
      for key, value in self.__dict__.iteritems()]
3349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3350
 
3351
  def __eq__(self, other):
3352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3353
 
3354
  def __ne__(self, other):
3355
    return not (self == other)
3356
 
3357
class sendSMSVerification_result:
3358
  """
3359
  Attributes:
3360
   - success
3361
   - ucx
3362
  """
3363
 
3364
  thrift_spec = (
3365
    (0, TType.BOOL, 'success', None, None, ), # 0
3366
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
3367
  )
3368
 
3369
  def __init__(self, success=None, ucx=None,):
3370
    self.success = success
3371
    self.ucx = ucx
3372
 
3373
  def read(self, iprot):
3374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3376
      return
3377
    iprot.readStructBegin()
3378
    while True:
3379
      (fname, ftype, fid) = iprot.readFieldBegin()
3380
      if ftype == TType.STOP:
3381
        break
3382
      if fid == 0:
3383
        if ftype == TType.BOOL:
3384
          self.success = iprot.readBool();
3385
        else:
3386
          iprot.skip(ftype)
3387
      elif fid == 1:
3388
        if ftype == TType.STRUCT:
3389
          self.ucx = UserContextException()
3390
          self.ucx.read(iprot)
3391
        else:
3392
          iprot.skip(ftype)
3393
      else:
3394
        iprot.skip(ftype)
3395
      iprot.readFieldEnd()
3396
    iprot.readStructEnd()
3397
 
3398
  def write(self, oprot):
3399
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3400
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3401
      return
3402
    oprot.writeStructBegin('sendSMSVerification_result')
3403
    if self.success != None:
3404
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3405
      oprot.writeBool(self.success)
3406
      oprot.writeFieldEnd()
3407
    if self.ucx != None:
3408
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
3409
      self.ucx.write(oprot)
3410
      oprot.writeFieldEnd()
3411
    oprot.writeFieldStop()
3412
    oprot.writeStructEnd()
3413
 
3414
  def __repr__(self):
3415
    L = ['%s=%r' % (key, value)
3416
      for key, value in self.__dict__.iteritems()]
3417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3418
 
3419
  def __eq__(self, other):
3420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3421
 
3422
  def __ne__(self, other):
3423
    return not (self == other)
3424
 
3425
class confirmEmailVerification_args:
3426
  """
3427
  Attributes:
3428
   - userid
3429
  """
3430
 
3431
  thrift_spec = (
3432
    None, # 0
3433
    (1, TType.I64, 'userid', None, None, ), # 1
3434
  )
3435
 
3436
  def __init__(self, userid=None,):
3437
    self.userid = userid
3438
 
3439
  def read(self, iprot):
3440
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3441
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3442
      return
3443
    iprot.readStructBegin()
3444
    while True:
3445
      (fname, ftype, fid) = iprot.readFieldBegin()
3446
      if ftype == TType.STOP:
3447
        break
3448
      if fid == 1:
3449
        if ftype == TType.I64:
3450
          self.userid = iprot.readI64();
3451
        else:
3452
          iprot.skip(ftype)
3453
      else:
3454
        iprot.skip(ftype)
3455
      iprot.readFieldEnd()
3456
    iprot.readStructEnd()
3457
 
3458
  def write(self, oprot):
3459
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3460
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3461
      return
3462
    oprot.writeStructBegin('confirmEmailVerification_args')
3463
    if self.userid != None:
3464
      oprot.writeFieldBegin('userid', TType.I64, 1)
3465
      oprot.writeI64(self.userid)
3466
      oprot.writeFieldEnd()
3467
    oprot.writeFieldStop()
3468
    oprot.writeStructEnd()
3469
 
3470
  def __repr__(self):
3471
    L = ['%s=%r' % (key, value)
3472
      for key, value in self.__dict__.iteritems()]
3473
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3474
 
3475
  def __eq__(self, other):
3476
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3477
 
3478
  def __ne__(self, other):
3479
    return not (self == other)
3480
 
3481
class confirmEmailVerification_result:
3482
  """
3483
  Attributes:
3484
   - success
3485
   - ucx
3486
  """
3487
 
3488
  thrift_spec = (
3489
    (0, TType.BOOL, 'success', None, None, ), # 0
3490
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
3491
  )
3492
 
3493
  def __init__(self, success=None, ucx=None,):
3494
    self.success = success
3495
    self.ucx = ucx
3496
 
3497
  def read(self, iprot):
3498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3500
      return
3501
    iprot.readStructBegin()
3502
    while True:
3503
      (fname, ftype, fid) = iprot.readFieldBegin()
3504
      if ftype == TType.STOP:
3505
        break
3506
      if fid == 0:
3507
        if ftype == TType.BOOL:
3508
          self.success = iprot.readBool();
3509
        else:
3510
          iprot.skip(ftype)
3511
      elif fid == 1:
3512
        if ftype == TType.STRUCT:
3513
          self.ucx = UserContextException()
3514
          self.ucx.read(iprot)
3515
        else:
3516
          iprot.skip(ftype)
3517
      else:
3518
        iprot.skip(ftype)
3519
      iprot.readFieldEnd()
3520
    iprot.readStructEnd()
3521
 
3522
  def write(self, oprot):
3523
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3524
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3525
      return
3526
    oprot.writeStructBegin('confirmEmailVerification_result')
3527
    if self.success != None:
3528
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3529
      oprot.writeBool(self.success)
3530
      oprot.writeFieldEnd()
3531
    if self.ucx != None:
3532
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
3533
      self.ucx.write(oprot)
3534
      oprot.writeFieldEnd()
3535
    oprot.writeFieldStop()
3536
    oprot.writeStructEnd()
3537
 
3538
  def __repr__(self):
3539
    L = ['%s=%r' % (key, value)
3540
      for key, value in self.__dict__.iteritems()]
3541
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3542
 
3543
  def __eq__(self, other):
3544
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3545
 
3546
  def __ne__(self, other):
3547
    return not (self == other)
3548
 
3549
class confirmSMSVerification_args:
3550
  """
3551
  Attributes:
3552
   - userid
3553
  """
3554
 
3555
  thrift_spec = (
3556
    None, # 0
3557
    (1, TType.I64, 'userid', None, None, ), # 1
3558
  )
3559
 
3560
  def __init__(self, userid=None,):
3561
    self.userid = userid
3562
 
3563
  def read(self, iprot):
3564
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3565
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3566
      return
3567
    iprot.readStructBegin()
3568
    while True:
3569
      (fname, ftype, fid) = iprot.readFieldBegin()
3570
      if ftype == TType.STOP:
3571
        break
3572
      if fid == 1:
3573
        if ftype == TType.I64:
3574
          self.userid = iprot.readI64();
3575
        else:
3576
          iprot.skip(ftype)
3577
      else:
3578
        iprot.skip(ftype)
3579
      iprot.readFieldEnd()
3580
    iprot.readStructEnd()
3581
 
3582
  def write(self, oprot):
3583
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3584
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3585
      return
3586
    oprot.writeStructBegin('confirmSMSVerification_args')
3587
    if self.userid != None:
3588
      oprot.writeFieldBegin('userid', TType.I64, 1)
3589
      oprot.writeI64(self.userid)
3590
      oprot.writeFieldEnd()
3591
    oprot.writeFieldStop()
3592
    oprot.writeStructEnd()
3593
 
3594
  def __repr__(self):
3595
    L = ['%s=%r' % (key, value)
3596
      for key, value in self.__dict__.iteritems()]
3597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3598
 
3599
  def __eq__(self, other):
3600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3601
 
3602
  def __ne__(self, other):
3603
    return not (self == other)
3604
 
3605
class confirmSMSVerification_result:
3606
  """
3607
  Attributes:
3608
   - success
3609
   - ucx
3610
  """
3611
 
3612
  thrift_spec = (
3613
    (0, TType.BOOL, 'success', None, None, ), # 0
3614
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
3615
  )
3616
 
3617
  def __init__(self, success=None, ucx=None,):
3618
    self.success = success
3619
    self.ucx = ucx
3620
 
3621
  def read(self, iprot):
3622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3624
      return
3625
    iprot.readStructBegin()
3626
    while True:
3627
      (fname, ftype, fid) = iprot.readFieldBegin()
3628
      if ftype == TType.STOP:
3629
        break
3630
      if fid == 0:
3631
        if ftype == TType.BOOL:
3632
          self.success = iprot.readBool();
3633
        else:
3634
          iprot.skip(ftype)
3635
      elif fid == 1:
3636
        if ftype == TType.STRUCT:
3637
          self.ucx = UserContextException()
3638
          self.ucx.read(iprot)
3639
        else:
3640
          iprot.skip(ftype)
3641
      else:
3642
        iprot.skip(ftype)
3643
      iprot.readFieldEnd()
3644
    iprot.readStructEnd()
3645
 
3646
  def write(self, oprot):
3647
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3648
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3649
      return
3650
    oprot.writeStructBegin('confirmSMSVerification_result')
3651
    if self.success != None:
3652
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3653
      oprot.writeBool(self.success)
3654
      oprot.writeFieldEnd()
3655
    if self.ucx != None:
3656
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
3657
      self.ucx.write(oprot)
3658
      oprot.writeFieldEnd()
3659
    oprot.writeFieldStop()
3660
    oprot.writeStructEnd()
3661
 
3662
  def __repr__(self):
3663
    L = ['%s=%r' % (key, value)
3664
      for key, value in self.__dict__.iteritems()]
3665
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3666
 
3667
  def __eq__(self, other):
3668
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3669
 
3670
  def __ne__(self, other):
3671
    return not (self == other)
3672
 
3673
class addSocialhandle_args:
3674
  """
3675
  Attributes:
3676
   - userid
3677
   - socialService
3678
   - handle
3679
  """
3680
 
3681
  thrift_spec = (
3682
    None, # 0
3683
    (1, TType.I64, 'userid', None, None, ), # 1
3684
    (2, TType.STRING, 'socialService', None, None, ), # 2
3685
    (3, TType.STRING, 'handle', None, None, ), # 3
3686
  )
3687
 
3688
  def __init__(self, userid=None, socialService=None, handle=None,):
3689
    self.userid = userid
3690
    self.socialService = socialService
3691
    self.handle = handle
3692
 
3693
  def read(self, iprot):
3694
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3695
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3696
      return
3697
    iprot.readStructBegin()
3698
    while True:
3699
      (fname, ftype, fid) = iprot.readFieldBegin()
3700
      if ftype == TType.STOP:
3701
        break
3702
      if fid == 1:
3703
        if ftype == TType.I64:
3704
          self.userid = iprot.readI64();
3705
        else:
3706
          iprot.skip(ftype)
3707
      elif fid == 2:
3708
        if ftype == TType.STRING:
3709
          self.socialService = iprot.readString();
3710
        else:
3711
          iprot.skip(ftype)
3712
      elif fid == 3:
3713
        if ftype == TType.STRING:
3714
          self.handle = iprot.readString();
3715
        else:
3716
          iprot.skip(ftype)
3717
      else:
3718
        iprot.skip(ftype)
3719
      iprot.readFieldEnd()
3720
    iprot.readStructEnd()
3721
 
3722
  def write(self, oprot):
3723
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3724
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3725
      return
3726
    oprot.writeStructBegin('addSocialhandle_args')
3727
    if self.userid != None:
3728
      oprot.writeFieldBegin('userid', TType.I64, 1)
3729
      oprot.writeI64(self.userid)
3730
      oprot.writeFieldEnd()
3731
    if self.socialService != None:
3732
      oprot.writeFieldBegin('socialService', TType.STRING, 2)
3733
      oprot.writeString(self.socialService)
3734
      oprot.writeFieldEnd()
3735
    if self.handle != None:
3736
      oprot.writeFieldBegin('handle', TType.STRING, 3)
3737
      oprot.writeString(self.handle)
3738
      oprot.writeFieldEnd()
3739
    oprot.writeFieldStop()
3740
    oprot.writeStructEnd()
3741
 
3742
  def __repr__(self):
3743
    L = ['%s=%r' % (key, value)
3744
      for key, value in self.__dict__.iteritems()]
3745
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3746
 
3747
  def __eq__(self, other):
3748
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3749
 
3750
  def __ne__(self, other):
3751
    return not (self == other)
3752
 
3753
class addSocialhandle_result:
3754
  """
3755
  Attributes:
3756
   - success
3757
   - ucx
3758
  """
3759
 
3760
  thrift_spec = (
3761
    (0, TType.BOOL, 'success', None, None, ), # 0
3762
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
3763
  )
3764
 
3765
  def __init__(self, success=None, ucx=None,):
3766
    self.success = success
3767
    self.ucx = ucx
3768
 
3769
  def read(self, iprot):
3770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3772
      return
3773
    iprot.readStructBegin()
3774
    while True:
3775
      (fname, ftype, fid) = iprot.readFieldBegin()
3776
      if ftype == TType.STOP:
3777
        break
3778
      if fid == 0:
3779
        if ftype == TType.BOOL:
3780
          self.success = iprot.readBool();
3781
        else:
3782
          iprot.skip(ftype)
3783
      elif fid == 1:
3784
        if ftype == TType.STRUCT:
3785
          self.ucx = UserContextException()
3786
          self.ucx.read(iprot)
3787
        else:
3788
          iprot.skip(ftype)
3789
      else:
3790
        iprot.skip(ftype)
3791
      iprot.readFieldEnd()
3792
    iprot.readStructEnd()
3793
 
3794
  def write(self, oprot):
3795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3797
      return
3798
    oprot.writeStructBegin('addSocialhandle_result')
3799
    if self.success != None:
3800
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3801
      oprot.writeBool(self.success)
3802
      oprot.writeFieldEnd()
3803
    if self.ucx != None:
3804
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
3805
      self.ucx.write(oprot)
3806
      oprot.writeFieldEnd()
3807
    oprot.writeFieldStop()
3808
    oprot.writeStructEnd()
3809
 
3810
  def __repr__(self):
3811
    L = ['%s=%r' % (key, value)
3812
      for key, value in self.__dict__.iteritems()]
3813
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3814
 
3815
  def __eq__(self, other):
3816
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3817
 
3818
  def __ne__(self, other):
3819
    return not (self == other)
3820
 
3821