Subversion Repositories SmartDukaan

Rev

Rev 1891 | Rev 2358 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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