Subversion Repositories SmartDukaan

Rev

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