Subversion Repositories SmartDukaan

Rev

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