linerb 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1224 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.13.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require_relative 'takagi_chan_types'
9
+
10
+ module PrimaryAccountInitService
11
+ class Client
12
+ include ::Thrift::Client
13
+
14
+ def exchangeEncryptionKey(authSessionId, request)
15
+ send_exchangeEncryptionKey(authSessionId, request)
16
+ return recv_exchangeEncryptionKey()
17
+ end
18
+
19
+ def send_exchangeEncryptionKey(authSessionId, request)
20
+ send_message('exchangeEncryptionKey', ExchangeEncryptionKey_args, :authSessionId => authSessionId, :request => request)
21
+ end
22
+
23
+ def recv_exchangeEncryptionKey()
24
+ result = receive_message(ExchangeEncryptionKey_result)
25
+ return result.success unless result.success.nil?
26
+ raise result.e unless result.e.nil?
27
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'exchangeEncryptionKey failed: unknown result')
28
+ end
29
+
30
+ def getAcctVerifMethod(authSessionId, accountIdentifier)
31
+ send_getAcctVerifMethod(authSessionId, accountIdentifier)
32
+ return recv_getAcctVerifMethod()
33
+ end
34
+
35
+ def send_getAcctVerifMethod(authSessionId, accountIdentifier)
36
+ send_message('getAcctVerifMethod', GetAcctVerifMethod_args, :authSessionId => authSessionId, :accountIdentifier => accountIdentifier)
37
+ end
38
+
39
+ def recv_getAcctVerifMethod()
40
+ result = receive_message(GetAcctVerifMethod_result)
41
+ return result.success unless result.success.nil?
42
+ raise result.e unless result.e.nil?
43
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAcctVerifMethod failed: unknown result')
44
+ end
45
+
46
+ def getCountryInfo(authSessionId, simCard)
47
+ send_getCountryInfo(authSessionId, simCard)
48
+ return recv_getCountryInfo()
49
+ end
50
+
51
+ def send_getCountryInfo(authSessionId, simCard)
52
+ send_message('getCountryInfo', GetCountryInfo_args, :authSessionId => authSessionId, :simCard => simCard)
53
+ end
54
+
55
+ def recv_getCountryInfo()
56
+ result = receive_message(GetCountryInfo_result)
57
+ return result.success unless result.success.nil?
58
+ raise result.e unless result.e.nil?
59
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getCountryInfo failed: unknown result')
60
+ end
61
+
62
+ def getPhoneVerifMethod(authSessionId, device, userPhoneNumber)
63
+ send_getPhoneVerifMethod(authSessionId, device, userPhoneNumber)
64
+ return recv_getPhoneVerifMethod()
65
+ end
66
+
67
+ def send_getPhoneVerifMethod(authSessionId, device, userPhoneNumber)
68
+ send_message('getPhoneVerifMethod', GetPhoneVerifMethod_args, :authSessionId => authSessionId, :device => device, :userPhoneNumber => userPhoneNumber)
69
+ end
70
+
71
+ def recv_getPhoneVerifMethod()
72
+ result = receive_message(GetPhoneVerifMethod_result)
73
+ return result.success unless result.success.nil?
74
+ raise result.e unless result.e.nil?
75
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getPhoneVerifMethod failed: unknown result')
76
+ end
77
+
78
+ def getSecondAuthMethod(authSessionId)
79
+ send_getSecondAuthMethod(authSessionId)
80
+ return recv_getSecondAuthMethod()
81
+ end
82
+
83
+ def send_getSecondAuthMethod(authSessionId)
84
+ send_message('getSecondAuthMethod', GetSecondAuthMethod_args, :authSessionId => authSessionId)
85
+ end
86
+
87
+ def recv_getSecondAuthMethod()
88
+ result = receive_message(GetSecondAuthMethod_result)
89
+ return result.success unless result.success.nil?
90
+ raise result.e unless result.e.nil?
91
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSecondAuthMethod failed: unknown result')
92
+ end
93
+
94
+ def getUserProfile(authSessionId, accountIdentifier)
95
+ send_getUserProfile(authSessionId, accountIdentifier)
96
+ return recv_getUserProfile()
97
+ end
98
+
99
+ def send_getUserProfile(authSessionId, accountIdentifier)
100
+ send_message('getUserProfile', GetUserProfile_args, :authSessionId => authSessionId, :accountIdentifier => accountIdentifier)
101
+ end
102
+
103
+ def recv_getUserProfile()
104
+ result = receive_message(GetUserProfile_result)
105
+ return result.success unless result.success.nil?
106
+ raise result.e unless result.e.nil?
107
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getUserProfile failed: unknown result')
108
+ end
109
+
110
+ def issueWebAuthDetailsForAcctVerif(authSessionId, accountIdentifier)
111
+ send_issueWebAuthDetailsForAcctVerif(authSessionId, accountIdentifier)
112
+ return recv_issueWebAuthDetailsForAcctVerif()
113
+ end
114
+
115
+ def send_issueWebAuthDetailsForAcctVerif(authSessionId, accountIdentifier)
116
+ send_message('issueWebAuthDetailsForAcctVerif', IssueWebAuthDetailsForAcctVerif_args, :authSessionId => authSessionId, :accountIdentifier => accountIdentifier)
117
+ end
118
+
119
+ def recv_issueWebAuthDetailsForAcctVerif()
120
+ result = receive_message(IssueWebAuthDetailsForAcctVerif_result)
121
+ return result.success unless result.success.nil?
122
+ raise result.e unless result.e.nil?
123
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'issueWebAuthDetailsForAcctVerif failed: unknown result')
124
+ end
125
+
126
+ def issueWebAuthDetailsForSecondAuth(authSessionId)
127
+ send_issueWebAuthDetailsForSecondAuth(authSessionId)
128
+ return recv_issueWebAuthDetailsForSecondAuth()
129
+ end
130
+
131
+ def send_issueWebAuthDetailsForSecondAuth(authSessionId)
132
+ send_message('issueWebAuthDetailsForSecondAuth', IssueWebAuthDetailsForSecondAuth_args, :authSessionId => authSessionId)
133
+ end
134
+
135
+ def recv_issueWebAuthDetailsForSecondAuth()
136
+ result = receive_message(IssueWebAuthDetailsForSecondAuth_result)
137
+ return result.success unless result.success.nil?
138
+ raise result.e unless result.e.nil?
139
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'issueWebAuthDetailsForSecondAuth failed: unknown result')
140
+ end
141
+
142
+ def migratePrimaryUsingPhone(authSessionId)
143
+ send_migratePrimaryUsingPhone(authSessionId)
144
+ return recv_migratePrimaryUsingPhone()
145
+ end
146
+
147
+ def send_migratePrimaryUsingPhone(authSessionId)
148
+ send_message('migratePrimaryUsingPhone', MigratePrimaryUsingPhone_args, :authSessionId => authSessionId)
149
+ end
150
+
151
+ def recv_migratePrimaryUsingPhone()
152
+ result = receive_message(MigratePrimaryUsingPhone_result)
153
+ return result.success unless result.success.nil?
154
+ raise result.e unless result.e.nil?
155
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'migratePrimaryUsingPhone failed: unknown result')
156
+ end
157
+
158
+ def migratePrimaryUsingSocialLogin(authSessionId)
159
+ send_migratePrimaryUsingSocialLogin(authSessionId)
160
+ return recv_migratePrimaryUsingSocialLogin()
161
+ end
162
+
163
+ def send_migratePrimaryUsingSocialLogin(authSessionId)
164
+ send_message('migratePrimaryUsingSocialLogin', MigratePrimaryUsingSocialLogin_args, :authSessionId => authSessionId)
165
+ end
166
+
167
+ def recv_migratePrimaryUsingSocialLogin()
168
+ result = receive_message(MigratePrimaryUsingSocialLogin_result)
169
+ return result.success unless result.success.nil?
170
+ raise result.e unless result.e.nil?
171
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'migratePrimaryUsingSocialLogin failed: unknown result')
172
+ end
173
+
174
+ def openSession(request)
175
+ send_openSession(request)
176
+ return recv_openSession()
177
+ end
178
+
179
+ def send_openSession(request)
180
+ send_message('openSession', OpenSession_args, :request => request)
181
+ end
182
+
183
+ def recv_openSession()
184
+ result = receive_message(OpenSession_result)
185
+ return result.success unless result.success.nil?
186
+ raise result.e unless result.e.nil?
187
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'openSession failed: unknown result')
188
+ end
189
+
190
+ def registerPrimaryUsingPhone(authSessionId)
191
+ send_registerPrimaryUsingPhone(authSessionId)
192
+ return recv_registerPrimaryUsingPhone()
193
+ end
194
+
195
+ def send_registerPrimaryUsingPhone(authSessionId)
196
+ send_message('registerPrimaryUsingPhone', RegisterPrimaryUsingPhone_args, :authSessionId => authSessionId)
197
+ end
198
+
199
+ def recv_registerPrimaryUsingPhone()
200
+ result = receive_message(RegisterPrimaryUsingPhone_result)
201
+ return result.success unless result.success.nil?
202
+ raise result.e unless result.e.nil?
203
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'registerPrimaryUsingPhone failed: unknown result')
204
+ end
205
+
206
+ def registerPrimaryUsingSocialLogin(authSessionId)
207
+ send_registerPrimaryUsingSocialLogin(authSessionId)
208
+ return recv_registerPrimaryUsingSocialLogin()
209
+ end
210
+
211
+ def send_registerPrimaryUsingSocialLogin(authSessionId)
212
+ send_message('registerPrimaryUsingSocialLogin', RegisterPrimaryUsingSocialLogin_args, :authSessionId => authSessionId)
213
+ end
214
+
215
+ def recv_registerPrimaryUsingSocialLogin()
216
+ result = receive_message(RegisterPrimaryUsingSocialLogin_result)
217
+ return result.success unless result.success.nil?
218
+ raise result.e unless result.e.nil?
219
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'registerPrimaryUsingSocialLogin failed: unknown result')
220
+ end
221
+
222
+ def sendPinCodeForPhone(authSessionId, device, userPhoneNumber, verifMethod)
223
+ send_sendPinCodeForPhone(authSessionId, device, userPhoneNumber, verifMethod)
224
+ return recv_sendPinCodeForPhone()
225
+ end
226
+
227
+ def send_sendPinCodeForPhone(authSessionId, device, userPhoneNumber, verifMethod)
228
+ send_message('sendPinCodeForPhone', SendPinCodeForPhone_args, :authSessionId => authSessionId, :device => device, :userPhoneNumber => userPhoneNumber, :verifMethod => verifMethod)
229
+ end
230
+
231
+ def recv_sendPinCodeForPhone()
232
+ result = receive_message(SendPinCodeForPhone_result)
233
+ return result.success unless result.success.nil?
234
+ raise result.e unless result.e.nil?
235
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'sendPinCodeForPhone failed: unknown result')
236
+ end
237
+
238
+ def setPassword(authSessionId, encryptedPassword)
239
+ send_setPassword(authSessionId, encryptedPassword)
240
+ return recv_setPassword()
241
+ end
242
+
243
+ def send_setPassword(authSessionId, encryptedPassword)
244
+ send_message('setPassword', SetPassword_args, :authSessionId => authSessionId, :encryptedPassword => encryptedPassword)
245
+ end
246
+
247
+ def recv_setPassword()
248
+ result = receive_message(SetPassword_result)
249
+ return result.success unless result.success.nil?
250
+ raise result.e unless result.e.nil?
251
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'setPassword failed: unknown result')
252
+ end
253
+
254
+ def validateProfile(authSessionId, displayName)
255
+ send_validateProfile(authSessionId, displayName)
256
+ return recv_validateProfile()
257
+ end
258
+
259
+ def send_validateProfile(authSessionId, displayName)
260
+ send_message('validateProfile', ValidateProfile_args, :authSessionId => authSessionId, :displayName => displayName)
261
+ end
262
+
263
+ def recv_validateProfile()
264
+ result = receive_message(ValidateProfile_result)
265
+ return result.success unless result.success.nil?
266
+ raise result.e unless result.e.nil?
267
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'validateProfile failed: unknown result')
268
+ end
269
+
270
+ def verifyAccountUsingPwd(authSessionId, accountIdentifier, encryptedPassword)
271
+ send_verifyAccountUsingPwd(authSessionId, accountIdentifier, encryptedPassword)
272
+ return recv_verifyAccountUsingPwd()
273
+ end
274
+
275
+ def send_verifyAccountUsingPwd(authSessionId, accountIdentifier, encryptedPassword)
276
+ send_message('verifyAccountUsingPwd', VerifyAccountUsingPwd_args, :authSessionId => authSessionId, :accountIdentifier => accountIdentifier, :encryptedPassword => encryptedPassword)
277
+ end
278
+
279
+ def recv_verifyAccountUsingPwd()
280
+ result = receive_message(VerifyAccountUsingPwd_result)
281
+ return result.success unless result.success.nil?
282
+ raise result.e unless result.e.nil?
283
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'verifyAccountUsingPwd failed: unknown result')
284
+ end
285
+
286
+ def verifyPhone(authSessionId, device, userPhoneNumber, pinCode)
287
+ send_verifyPhone(authSessionId, device, userPhoneNumber, pinCode)
288
+ return recv_verifyPhone()
289
+ end
290
+
291
+ def send_verifyPhone(authSessionId, device, userPhoneNumber, pinCode)
292
+ send_message('verifyPhone', VerifyPhone_args, :authSessionId => authSessionId, :device => device, :userPhoneNumber => userPhoneNumber, :pinCode => pinCode)
293
+ end
294
+
295
+ def recv_verifyPhone()
296
+ result = receive_message(VerifyPhone_result)
297
+ return result.success unless result.success.nil?
298
+ raise result.e unless result.e.nil?
299
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'verifyPhone failed: unknown result')
300
+ end
301
+
302
+ def verifySocialLogin(authSessionId, device, socialLogin)
303
+ send_verifySocialLogin(authSessionId, device, socialLogin)
304
+ return recv_verifySocialLogin()
305
+ end
306
+
307
+ def send_verifySocialLogin(authSessionId, device, socialLogin)
308
+ send_message('verifySocialLogin', VerifySocialLogin_args, :authSessionId => authSessionId, :device => device, :socialLogin => socialLogin)
309
+ end
310
+
311
+ def recv_verifySocialLogin()
312
+ result = receive_message(VerifySocialLogin_result)
313
+ return result.success unless result.success.nil?
314
+ raise result.e unless result.e.nil?
315
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'verifySocialLogin failed: unknown result')
316
+ end
317
+
318
+ end
319
+
320
+ class Processor
321
+ include ::Thrift::Processor
322
+
323
+ def process_exchangeEncryptionKey(seqid, iprot, oprot)
324
+ args = read_args(iprot, ExchangeEncryptionKey_args)
325
+ result = ExchangeEncryptionKey_result.new()
326
+ begin
327
+ result.success = @handler.exchangeEncryptionKey(args.authSessionId, args.request)
328
+ rescue ::AuthException => e
329
+ result.e = e
330
+ end
331
+ write_result(result, oprot, 'exchangeEncryptionKey', seqid)
332
+ end
333
+
334
+ def process_getAcctVerifMethod(seqid, iprot, oprot)
335
+ args = read_args(iprot, GetAcctVerifMethod_args)
336
+ result = GetAcctVerifMethod_result.new()
337
+ begin
338
+ result.success = @handler.getAcctVerifMethod(args.authSessionId, args.accountIdentifier)
339
+ rescue ::AuthException => e
340
+ result.e = e
341
+ end
342
+ write_result(result, oprot, 'getAcctVerifMethod', seqid)
343
+ end
344
+
345
+ def process_getCountryInfo(seqid, iprot, oprot)
346
+ args = read_args(iprot, GetCountryInfo_args)
347
+ result = GetCountryInfo_result.new()
348
+ begin
349
+ result.success = @handler.getCountryInfo(args.authSessionId, args.simCard)
350
+ rescue ::AuthException => e
351
+ result.e = e
352
+ end
353
+ write_result(result, oprot, 'getCountryInfo', seqid)
354
+ end
355
+
356
+ def process_getPhoneVerifMethod(seqid, iprot, oprot)
357
+ args = read_args(iprot, GetPhoneVerifMethod_args)
358
+ result = GetPhoneVerifMethod_result.new()
359
+ begin
360
+ result.success = @handler.getPhoneVerifMethod(args.authSessionId, args.device, args.userPhoneNumber)
361
+ rescue ::AuthException => e
362
+ result.e = e
363
+ end
364
+ write_result(result, oprot, 'getPhoneVerifMethod', seqid)
365
+ end
366
+
367
+ def process_getSecondAuthMethod(seqid, iprot, oprot)
368
+ args = read_args(iprot, GetSecondAuthMethod_args)
369
+ result = GetSecondAuthMethod_result.new()
370
+ begin
371
+ result.success = @handler.getSecondAuthMethod(args.authSessionId)
372
+ rescue ::AuthException => e
373
+ result.e = e
374
+ end
375
+ write_result(result, oprot, 'getSecondAuthMethod', seqid)
376
+ end
377
+
378
+ def process_getUserProfile(seqid, iprot, oprot)
379
+ args = read_args(iprot, GetUserProfile_args)
380
+ result = GetUserProfile_result.new()
381
+ begin
382
+ result.success = @handler.getUserProfile(args.authSessionId, args.accountIdentifier)
383
+ rescue ::AuthException => e
384
+ result.e = e
385
+ end
386
+ write_result(result, oprot, 'getUserProfile', seqid)
387
+ end
388
+
389
+ def process_issueWebAuthDetailsForAcctVerif(seqid, iprot, oprot)
390
+ args = read_args(iprot, IssueWebAuthDetailsForAcctVerif_args)
391
+ result = IssueWebAuthDetailsForAcctVerif_result.new()
392
+ begin
393
+ result.success = @handler.issueWebAuthDetailsForAcctVerif(args.authSessionId, args.accountIdentifier)
394
+ rescue ::AuthException => e
395
+ result.e = e
396
+ end
397
+ write_result(result, oprot, 'issueWebAuthDetailsForAcctVerif', seqid)
398
+ end
399
+
400
+ def process_issueWebAuthDetailsForSecondAuth(seqid, iprot, oprot)
401
+ args = read_args(iprot, IssueWebAuthDetailsForSecondAuth_args)
402
+ result = IssueWebAuthDetailsForSecondAuth_result.new()
403
+ begin
404
+ result.success = @handler.issueWebAuthDetailsForSecondAuth(args.authSessionId)
405
+ rescue ::AuthException => e
406
+ result.e = e
407
+ end
408
+ write_result(result, oprot, 'issueWebAuthDetailsForSecondAuth', seqid)
409
+ end
410
+
411
+ def process_migratePrimaryUsingPhone(seqid, iprot, oprot)
412
+ args = read_args(iprot, MigratePrimaryUsingPhone_args)
413
+ result = MigratePrimaryUsingPhone_result.new()
414
+ begin
415
+ result.success = @handler.migratePrimaryUsingPhone(args.authSessionId)
416
+ rescue ::AuthException => e
417
+ result.e = e
418
+ end
419
+ write_result(result, oprot, 'migratePrimaryUsingPhone', seqid)
420
+ end
421
+
422
+ def process_migratePrimaryUsingSocialLogin(seqid, iprot, oprot)
423
+ args = read_args(iprot, MigratePrimaryUsingSocialLogin_args)
424
+ result = MigratePrimaryUsingSocialLogin_result.new()
425
+ begin
426
+ result.success = @handler.migratePrimaryUsingSocialLogin(args.authSessionId)
427
+ rescue ::AuthException => e
428
+ result.e = e
429
+ end
430
+ write_result(result, oprot, 'migratePrimaryUsingSocialLogin', seqid)
431
+ end
432
+
433
+ def process_openSession(seqid, iprot, oprot)
434
+ args = read_args(iprot, OpenSession_args)
435
+ result = OpenSession_result.new()
436
+ begin
437
+ result.success = @handler.openSession(args.request)
438
+ rescue ::AuthException => e
439
+ result.e = e
440
+ end
441
+ write_result(result, oprot, 'openSession', seqid)
442
+ end
443
+
444
+ def process_registerPrimaryUsingPhone(seqid, iprot, oprot)
445
+ args = read_args(iprot, RegisterPrimaryUsingPhone_args)
446
+ result = RegisterPrimaryUsingPhone_result.new()
447
+ begin
448
+ result.success = @handler.registerPrimaryUsingPhone(args.authSessionId)
449
+ rescue ::AuthException => e
450
+ result.e = e
451
+ end
452
+ write_result(result, oprot, 'registerPrimaryUsingPhone', seqid)
453
+ end
454
+
455
+ def process_registerPrimaryUsingSocialLogin(seqid, iprot, oprot)
456
+ args = read_args(iprot, RegisterPrimaryUsingSocialLogin_args)
457
+ result = RegisterPrimaryUsingSocialLogin_result.new()
458
+ begin
459
+ result.success = @handler.registerPrimaryUsingSocialLogin(args.authSessionId)
460
+ rescue ::AuthException => e
461
+ result.e = e
462
+ end
463
+ write_result(result, oprot, 'registerPrimaryUsingSocialLogin', seqid)
464
+ end
465
+
466
+ def process_sendPinCodeForPhone(seqid, iprot, oprot)
467
+ args = read_args(iprot, SendPinCodeForPhone_args)
468
+ result = SendPinCodeForPhone_result.new()
469
+ begin
470
+ result.success = @handler.sendPinCodeForPhone(args.authSessionId, args.device, args.userPhoneNumber, args.verifMethod)
471
+ rescue ::AuthException => e
472
+ result.e = e
473
+ end
474
+ write_result(result, oprot, 'sendPinCodeForPhone', seqid)
475
+ end
476
+
477
+ def process_setPassword(seqid, iprot, oprot)
478
+ args = read_args(iprot, SetPassword_args)
479
+ result = SetPassword_result.new()
480
+ begin
481
+ result.success = @handler.setPassword(args.authSessionId, args.encryptedPassword)
482
+ rescue ::TalkException => e
483
+ result.e = e
484
+ end
485
+ write_result(result, oprot, 'setPassword', seqid)
486
+ end
487
+
488
+ def process_validateProfile(seqid, iprot, oprot)
489
+ args = read_args(iprot, ValidateProfile_args)
490
+ result = ValidateProfile_result.new()
491
+ begin
492
+ result.success = @handler.validateProfile(args.authSessionId, args.displayName)
493
+ rescue ::AuthException => e
494
+ result.e = e
495
+ end
496
+ write_result(result, oprot, 'validateProfile', seqid)
497
+ end
498
+
499
+ def process_verifyAccountUsingPwd(seqid, iprot, oprot)
500
+ args = read_args(iprot, VerifyAccountUsingPwd_args)
501
+ result = VerifyAccountUsingPwd_result.new()
502
+ begin
503
+ result.success = @handler.verifyAccountUsingPwd(args.authSessionId, args.accountIdentifier, args.encryptedPassword)
504
+ rescue ::AuthException => e
505
+ result.e = e
506
+ end
507
+ write_result(result, oprot, 'verifyAccountUsingPwd', seqid)
508
+ end
509
+
510
+ def process_verifyPhone(seqid, iprot, oprot)
511
+ args = read_args(iprot, VerifyPhone_args)
512
+ result = VerifyPhone_result.new()
513
+ begin
514
+ result.success = @handler.verifyPhone(args.authSessionId, args.device, args.userPhoneNumber, args.pinCode)
515
+ rescue ::AuthException => e
516
+ result.e = e
517
+ end
518
+ write_result(result, oprot, 'verifyPhone', seqid)
519
+ end
520
+
521
+ def process_verifySocialLogin(seqid, iprot, oprot)
522
+ args = read_args(iprot, VerifySocialLogin_args)
523
+ result = VerifySocialLogin_result.new()
524
+ begin
525
+ result.success = @handler.verifySocialLogin(args.authSessionId, args.device, args.socialLogin)
526
+ rescue ::AuthException => e
527
+ result.e = e
528
+ end
529
+ write_result(result, oprot, 'verifySocialLogin', seqid)
530
+ end
531
+
532
+ end
533
+
534
+ # HELPER FUNCTIONS AND STRUCTURES
535
+
536
+ class ExchangeEncryptionKey_args
537
+ include ::Thrift::Struct, ::Thrift::Struct_Union
538
+ AUTHSESSIONID = 1
539
+ REQUEST = 2
540
+
541
+ FIELDS = {
542
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'},
543
+ REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::ExchangeEncryptionKeyRequest}
544
+ }
545
+
546
+ def struct_fields; FIELDS; end
547
+
548
+ def validate
549
+ end
550
+
551
+ ::Thrift::Struct.generate_accessors self
552
+ end
553
+
554
+ class ExchangeEncryptionKey_result
555
+ include ::Thrift::Struct, ::Thrift::Struct_Union
556
+ SUCCESS = 0
557
+ E = 1
558
+
559
+ FIELDS = {
560
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ExchangeEncryptionKeyResponse},
561
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
562
+ }
563
+
564
+ def struct_fields; FIELDS; end
565
+
566
+ def validate
567
+ end
568
+
569
+ ::Thrift::Struct.generate_accessors self
570
+ end
571
+
572
+ class GetAcctVerifMethod_args
573
+ include ::Thrift::Struct, ::Thrift::Struct_Union
574
+ AUTHSESSIONID = 1
575
+ ACCOUNTIDENTIFIER = 2
576
+
577
+ FIELDS = {
578
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'},
579
+ ACCOUNTIDENTIFIER => {:type => ::Thrift::Types::STRUCT, :name => 'accountIdentifier', :class => ::AccountIdentifier}
580
+ }
581
+
582
+ def struct_fields; FIELDS; end
583
+
584
+ def validate
585
+ end
586
+
587
+ ::Thrift::Struct.generate_accessors self
588
+ end
589
+
590
+ class GetAcctVerifMethod_result
591
+ include ::Thrift::Struct, ::Thrift::Struct_Union
592
+ SUCCESS = 0
593
+ E = 1
594
+
595
+ FIELDS = {
596
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetAcctVerifMethodResponse},
597
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
598
+ }
599
+
600
+ def struct_fields; FIELDS; end
601
+
602
+ def validate
603
+ end
604
+
605
+ ::Thrift::Struct.generate_accessors self
606
+ end
607
+
608
+ class GetCountryInfo_args
609
+ include ::Thrift::Struct, ::Thrift::Struct_Union
610
+ AUTHSESSIONID = 1
611
+ SIMCARD = 11
612
+
613
+ FIELDS = {
614
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'},
615
+ SIMCARD => {:type => ::Thrift::Types::STRUCT, :name => 'simCard', :class => ::SimCard}
616
+ }
617
+
618
+ def struct_fields; FIELDS; end
619
+
620
+ def validate
621
+ end
622
+
623
+ ::Thrift::Struct.generate_accessors self
624
+ end
625
+
626
+ class GetCountryInfo_result
627
+ include ::Thrift::Struct, ::Thrift::Struct_Union
628
+ SUCCESS = 0
629
+ E = 1
630
+
631
+ FIELDS = {
632
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetCountryInfoResponse},
633
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
634
+ }
635
+
636
+ def struct_fields; FIELDS; end
637
+
638
+ def validate
639
+ end
640
+
641
+ ::Thrift::Struct.generate_accessors self
642
+ end
643
+
644
+ class GetPhoneVerifMethod_args
645
+ include ::Thrift::Struct, ::Thrift::Struct_Union
646
+ AUTHSESSIONID = 1
647
+ DEVICE = 2
648
+ USERPHONENUMBER = 3
649
+
650
+ FIELDS = {
651
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'},
652
+ DEVICE => {:type => ::Thrift::Types::STRUCT, :name => 'device', :class => ::Device},
653
+ USERPHONENUMBER => {:type => ::Thrift::Types::STRUCT, :name => 'userPhoneNumber', :class => ::UserPhoneNumber}
654
+ }
655
+
656
+ def struct_fields; FIELDS; end
657
+
658
+ def validate
659
+ end
660
+
661
+ ::Thrift::Struct.generate_accessors self
662
+ end
663
+
664
+ class GetPhoneVerifMethod_result
665
+ include ::Thrift::Struct, ::Thrift::Struct_Union
666
+ SUCCESS = 0
667
+ E = 1
668
+
669
+ FIELDS = {
670
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetPhoneVerifMethodResponse},
671
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
672
+ }
673
+
674
+ def struct_fields; FIELDS; end
675
+
676
+ def validate
677
+ end
678
+
679
+ ::Thrift::Struct.generate_accessors self
680
+ end
681
+
682
+ class GetSecondAuthMethod_args
683
+ include ::Thrift::Struct, ::Thrift::Struct_Union
684
+ AUTHSESSIONID = 1
685
+
686
+ FIELDS = {
687
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'}
688
+ }
689
+
690
+ def struct_fields; FIELDS; end
691
+
692
+ def validate
693
+ end
694
+
695
+ ::Thrift::Struct.generate_accessors self
696
+ end
697
+
698
+ class GetSecondAuthMethod_result
699
+ include ::Thrift::Struct, ::Thrift::Struct_Union
700
+ SUCCESS = 0
701
+ E = 1
702
+
703
+ FIELDS = {
704
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetSecondAuthMethodResponse},
705
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
706
+ }
707
+
708
+ def struct_fields; FIELDS; end
709
+
710
+ def validate
711
+ end
712
+
713
+ ::Thrift::Struct.generate_accessors self
714
+ end
715
+
716
+ class GetUserProfile_args
717
+ include ::Thrift::Struct, ::Thrift::Struct_Union
718
+ AUTHSESSIONID = 1
719
+ ACCOUNTIDENTIFIER = 2
720
+
721
+ FIELDS = {
722
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'},
723
+ ACCOUNTIDENTIFIER => {:type => ::Thrift::Types::STRUCT, :name => 'accountIdentifier', :class => ::AccountIdentifier}
724
+ }
725
+
726
+ def struct_fields; FIELDS; end
727
+
728
+ def validate
729
+ end
730
+
731
+ ::Thrift::Struct.generate_accessors self
732
+ end
733
+
734
+ class GetUserProfile_result
735
+ include ::Thrift::Struct, ::Thrift::Struct_Union
736
+ SUCCESS = 0
737
+ E = 1
738
+
739
+ FIELDS = {
740
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetUserProfileResponse},
741
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
742
+ }
743
+
744
+ def struct_fields; FIELDS; end
745
+
746
+ def validate
747
+ end
748
+
749
+ ::Thrift::Struct.generate_accessors self
750
+ end
751
+
752
+ class IssueWebAuthDetailsForAcctVerif_args
753
+ include ::Thrift::Struct, ::Thrift::Struct_Union
754
+ AUTHSESSIONID = 1
755
+ ACCOUNTIDENTIFIER = 2
756
+
757
+ FIELDS = {
758
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'},
759
+ ACCOUNTIDENTIFIER => {:type => ::Thrift::Types::STRUCT, :name => 'accountIdentifier', :class => ::AccountIdentifier}
760
+ }
761
+
762
+ def struct_fields; FIELDS; end
763
+
764
+ def validate
765
+ end
766
+
767
+ ::Thrift::Struct.generate_accessors self
768
+ end
769
+
770
+ class IssueWebAuthDetailsForAcctVerif_result
771
+ include ::Thrift::Struct, ::Thrift::Struct_Union
772
+ SUCCESS = 0
773
+ E = 1
774
+
775
+ FIELDS = {
776
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::IssueWebAuthDetailsForAcctVerifResponse},
777
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
778
+ }
779
+
780
+ def struct_fields; FIELDS; end
781
+
782
+ def validate
783
+ end
784
+
785
+ ::Thrift::Struct.generate_accessors self
786
+ end
787
+
788
+ class IssueWebAuthDetailsForSecondAuth_args
789
+ include ::Thrift::Struct, ::Thrift::Struct_Union
790
+ AUTHSESSIONID = 1
791
+
792
+ FIELDS = {
793
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'}
794
+ }
795
+
796
+ def struct_fields; FIELDS; end
797
+
798
+ def validate
799
+ end
800
+
801
+ ::Thrift::Struct.generate_accessors self
802
+ end
803
+
804
+ class IssueWebAuthDetailsForSecondAuth_result
805
+ include ::Thrift::Struct, ::Thrift::Struct_Union
806
+ SUCCESS = 0
807
+ E = 1
808
+
809
+ FIELDS = {
810
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::IssueWebAuthDetailsForSecondAuthResponse},
811
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
812
+ }
813
+
814
+ def struct_fields; FIELDS; end
815
+
816
+ def validate
817
+ end
818
+
819
+ ::Thrift::Struct.generate_accessors self
820
+ end
821
+
822
+ class MigratePrimaryUsingPhone_args
823
+ include ::Thrift::Struct, ::Thrift::Struct_Union
824
+ AUTHSESSIONID = 1
825
+
826
+ FIELDS = {
827
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'}
828
+ }
829
+
830
+ def struct_fields; FIELDS; end
831
+
832
+ def validate
833
+ end
834
+
835
+ ::Thrift::Struct.generate_accessors self
836
+ end
837
+
838
+ class MigratePrimaryUsingPhone_result
839
+ include ::Thrift::Struct, ::Thrift::Struct_Union
840
+ SUCCESS = 0
841
+ E = 1
842
+
843
+ FIELDS = {
844
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::MigratePrimaryResponse},
845
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
846
+ }
847
+
848
+ def struct_fields; FIELDS; end
849
+
850
+ def validate
851
+ end
852
+
853
+ ::Thrift::Struct.generate_accessors self
854
+ end
855
+
856
+ class MigratePrimaryUsingSocialLogin_args
857
+ include ::Thrift::Struct, ::Thrift::Struct_Union
858
+ AUTHSESSIONID = 1
859
+
860
+ FIELDS = {
861
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'}
862
+ }
863
+
864
+ def struct_fields; FIELDS; end
865
+
866
+ def validate
867
+ end
868
+
869
+ ::Thrift::Struct.generate_accessors self
870
+ end
871
+
872
+ class MigratePrimaryUsingSocialLogin_result
873
+ include ::Thrift::Struct, ::Thrift::Struct_Union
874
+ SUCCESS = 0
875
+ E = 1
876
+
877
+ FIELDS = {
878
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::MigratePrimaryResponse},
879
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
880
+ }
881
+
882
+ def struct_fields; FIELDS; end
883
+
884
+ def validate
885
+ end
886
+
887
+ ::Thrift::Struct.generate_accessors self
888
+ end
889
+
890
+ class OpenSession_args
891
+ include ::Thrift::Struct, ::Thrift::Struct_Union
892
+ REQUEST = 1
893
+
894
+ FIELDS = {
895
+ REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::OpenSessionRequest}
896
+ }
897
+
898
+ def struct_fields; FIELDS; end
899
+
900
+ def validate
901
+ end
902
+
903
+ ::Thrift::Struct.generate_accessors self
904
+ end
905
+
906
+ class OpenSession_result
907
+ include ::Thrift::Struct, ::Thrift::Struct_Union
908
+ SUCCESS = 0
909
+ E = 1
910
+
911
+ FIELDS = {
912
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
913
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
914
+ }
915
+
916
+ def struct_fields; FIELDS; end
917
+
918
+ def validate
919
+ end
920
+
921
+ ::Thrift::Struct.generate_accessors self
922
+ end
923
+
924
+ class RegisterPrimaryUsingPhone_args
925
+ include ::Thrift::Struct, ::Thrift::Struct_Union
926
+ AUTHSESSIONID = 2
927
+
928
+ FIELDS = {
929
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'}
930
+ }
931
+
932
+ def struct_fields; FIELDS; end
933
+
934
+ def validate
935
+ end
936
+
937
+ ::Thrift::Struct.generate_accessors self
938
+ end
939
+
940
+ class RegisterPrimaryUsingPhone_result
941
+ include ::Thrift::Struct, ::Thrift::Struct_Union
942
+ SUCCESS = 0
943
+ E = 1
944
+
945
+ FIELDS = {
946
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::RegisterPrimaryResponse},
947
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
948
+ }
949
+
950
+ def struct_fields; FIELDS; end
951
+
952
+ def validate
953
+ end
954
+
955
+ ::Thrift::Struct.generate_accessors self
956
+ end
957
+
958
+ class RegisterPrimaryUsingSocialLogin_args
959
+ include ::Thrift::Struct, ::Thrift::Struct_Union
960
+ AUTHSESSIONID = 2
961
+
962
+ FIELDS = {
963
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'}
964
+ }
965
+
966
+ def struct_fields; FIELDS; end
967
+
968
+ def validate
969
+ end
970
+
971
+ ::Thrift::Struct.generate_accessors self
972
+ end
973
+
974
+ class RegisterPrimaryUsingSocialLogin_result
975
+ include ::Thrift::Struct, ::Thrift::Struct_Union
976
+ SUCCESS = 0
977
+ E = 1
978
+
979
+ FIELDS = {
980
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::RegisterPrimaryResponse},
981
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
982
+ }
983
+
984
+ def struct_fields; FIELDS; end
985
+
986
+ def validate
987
+ end
988
+
989
+ ::Thrift::Struct.generate_accessors self
990
+ end
991
+
992
+ class SendPinCodeForPhone_args
993
+ include ::Thrift::Struct, ::Thrift::Struct_Union
994
+ AUTHSESSIONID = 1
995
+ DEVICE = 2
996
+ USERPHONENUMBER = 3
997
+ VERIFMETHOD = 4
998
+
999
+ FIELDS = {
1000
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'},
1001
+ DEVICE => {:type => ::Thrift::Types::STRUCT, :name => 'device', :class => ::Device},
1002
+ USERPHONENUMBER => {:type => ::Thrift::Types::STRUCT, :name => 'userPhoneNumber', :class => ::UserPhoneNumber},
1003
+ VERIFMETHOD => {:type => ::Thrift::Types::I32, :name => 'verifMethod', :enum_class => ::G_a_c_u0_a_b_t}
1004
+ }
1005
+
1006
+ def struct_fields; FIELDS; end
1007
+
1008
+ def validate
1009
+ unless @verifMethod.nil? || ::G_a_c_u0_a_b_t::VALID_VALUES.include?(@verifMethod)
1010
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field verifMethod!')
1011
+ end
1012
+ end
1013
+
1014
+ ::Thrift::Struct.generate_accessors self
1015
+ end
1016
+
1017
+ class SendPinCodeForPhone_result
1018
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1019
+ SUCCESS = 0
1020
+ E = 1
1021
+
1022
+ FIELDS = {
1023
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::SendPinCodeForPhoneResponse},
1024
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
1025
+ }
1026
+
1027
+ def struct_fields; FIELDS; end
1028
+
1029
+ def validate
1030
+ end
1031
+
1032
+ ::Thrift::Struct.generate_accessors self
1033
+ end
1034
+
1035
+ class SetPassword_args
1036
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1037
+ AUTHSESSIONID = 1
1038
+ ENCRYPTEDPASSWORD = 2
1039
+
1040
+ FIELDS = {
1041
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'},
1042
+ ENCRYPTEDPASSWORD => {:type => ::Thrift::Types::STRUCT, :name => 'encryptedPassword', :class => ::EncryptedPassword}
1043
+ }
1044
+
1045
+ def struct_fields; FIELDS; end
1046
+
1047
+ def validate
1048
+ end
1049
+
1050
+ ::Thrift::Struct.generate_accessors self
1051
+ end
1052
+
1053
+ class SetPassword_result
1054
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1055
+ SUCCESS = 0
1056
+ E = 1
1057
+
1058
+ FIELDS = {
1059
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::IdentityCredentialResponse},
1060
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::TalkException}
1061
+ }
1062
+
1063
+ def struct_fields; FIELDS; end
1064
+
1065
+ def validate
1066
+ end
1067
+
1068
+ ::Thrift::Struct.generate_accessors self
1069
+ end
1070
+
1071
+ class ValidateProfile_args
1072
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1073
+ AUTHSESSIONID = 1
1074
+ DISPLAYNAME = 2
1075
+
1076
+ FIELDS = {
1077
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'},
1078
+ DISPLAYNAME => {:type => ::Thrift::Types::STRING, :name => 'displayName'}
1079
+ }
1080
+
1081
+ def struct_fields; FIELDS; end
1082
+
1083
+ def validate
1084
+ end
1085
+
1086
+ ::Thrift::Struct.generate_accessors self
1087
+ end
1088
+
1089
+ class ValidateProfile_result
1090
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1091
+ SUCCESS = 0
1092
+ E = 1
1093
+
1094
+ FIELDS = {
1095
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ValidateProfileResponse},
1096
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
1097
+ }
1098
+
1099
+ def struct_fields; FIELDS; end
1100
+
1101
+ def validate
1102
+ end
1103
+
1104
+ ::Thrift::Struct.generate_accessors self
1105
+ end
1106
+
1107
+ class VerifyAccountUsingPwd_args
1108
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1109
+ AUTHSESSIONID = 1
1110
+ ACCOUNTIDENTIFIER = 2
1111
+ ENCRYPTEDPASSWORD = 3
1112
+
1113
+ FIELDS = {
1114
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'},
1115
+ ACCOUNTIDENTIFIER => {:type => ::Thrift::Types::STRUCT, :name => 'accountIdentifier', :class => ::AccountIdentifier},
1116
+ ENCRYPTEDPASSWORD => {:type => ::Thrift::Types::STRUCT, :name => 'encryptedPassword', :class => ::EncryptedPassword}
1117
+ }
1118
+
1119
+ def struct_fields; FIELDS; end
1120
+
1121
+ def validate
1122
+ end
1123
+
1124
+ ::Thrift::Struct.generate_accessors self
1125
+ end
1126
+
1127
+ class VerifyAccountUsingPwd_result
1128
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1129
+ SUCCESS = 0
1130
+ E = 1
1131
+
1132
+ FIELDS = {
1133
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::VerifyAccountUsingPwdResponse},
1134
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
1135
+ }
1136
+
1137
+ def struct_fields; FIELDS; end
1138
+
1139
+ def validate
1140
+ end
1141
+
1142
+ ::Thrift::Struct.generate_accessors self
1143
+ end
1144
+
1145
+ class VerifyPhone_args
1146
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1147
+ AUTHSESSIONID = 1
1148
+ DEVICE = 2
1149
+ USERPHONENUMBER = 3
1150
+ PINCODE = 4
1151
+
1152
+ FIELDS = {
1153
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'},
1154
+ DEVICE => {:type => ::Thrift::Types::STRUCT, :name => 'device', :class => ::Device},
1155
+ USERPHONENUMBER => {:type => ::Thrift::Types::STRUCT, :name => 'userPhoneNumber', :class => ::UserPhoneNumber},
1156
+ PINCODE => {:type => ::Thrift::Types::STRING, :name => 'pinCode'}
1157
+ }
1158
+
1159
+ def struct_fields; FIELDS; end
1160
+
1161
+ def validate
1162
+ end
1163
+
1164
+ ::Thrift::Struct.generate_accessors self
1165
+ end
1166
+
1167
+ class VerifyPhone_result
1168
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1169
+ SUCCESS = 0
1170
+ E = 1
1171
+
1172
+ FIELDS = {
1173
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::VerifyPhoneResponse},
1174
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
1175
+ }
1176
+
1177
+ def struct_fields; FIELDS; end
1178
+
1179
+ def validate
1180
+ end
1181
+
1182
+ ::Thrift::Struct.generate_accessors self
1183
+ end
1184
+
1185
+ class VerifySocialLogin_args
1186
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1187
+ AUTHSESSIONID = 1
1188
+ DEVICE = 2
1189
+ SOCIALLOGIN = 3
1190
+
1191
+ FIELDS = {
1192
+ AUTHSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'authSessionId'},
1193
+ DEVICE => {:type => ::Thrift::Types::STRUCT, :name => 'device', :class => ::Device},
1194
+ SOCIALLOGIN => {:type => ::Thrift::Types::STRUCT, :name => 'socialLogin', :class => ::SocialLogin}
1195
+ }
1196
+
1197
+ def struct_fields; FIELDS; end
1198
+
1199
+ def validate
1200
+ end
1201
+
1202
+ ::Thrift::Struct.generate_accessors self
1203
+ end
1204
+
1205
+ class VerifySocialLogin_result
1206
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1207
+ SUCCESS = 0
1208
+ E = 1
1209
+
1210
+ FIELDS = {
1211
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::VerifySocialLoginResponse},
1212
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::AuthException}
1213
+ }
1214
+
1215
+ def struct_fields; FIELDS; end
1216
+
1217
+ def validate
1218
+ end
1219
+
1220
+ ::Thrift::Struct.generate_accessors self
1221
+ end
1222
+
1223
+ end
1224
+