Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
349 ashish 1
#
3431 rajveer 2
# Autogenerated by Thrift Compiler (0.7.0)
349 ashish 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
3431 rajveer 12
from thrift.protocol import TBinaryProtocol, TProtocol
349 ashish 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.
3431 rajveer 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
3431 rajveer 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 .
3431 rajveer 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.
3431 rajveer 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.
3431 rajveer 135
 
759 chandransh 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.
3431 rajveer 146
 
1610 ankur.sing 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.
3431 rajveer 157
 
1891 ankur.sing 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.
3431 rajveer 167
 
1891 ankur.sing 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.
3431 rajveer 177
 
2025 ankur.sing 178
    Parameters:
179
     - username
180
     - password
2358 ankur.sing 181
     - role
2025 ankur.sing 182
    """
183
    pass
1891 ankur.sing 184
 
4544 varun.gupt 185
  def shareEntities(self, entityIds, email):
186
    """
187
    Saves the list of entity Ids to be shared with an email address
2025 ankur.sing 188
 
4544 varun.gupt 189
    Parameters:
190
     - entityIds
191
     - email
192
    """
193
    pass
194
 
4691 mandeep.dh 195
  def getAgents(self, ):
196
    pass
4544 varun.gupt 197
 
4691 mandeep.dh 198
  def validateLogIn(self, emailId, password):
199
    """
200
    Parameters:
201
     - emailId
202
     - password
203
    """
204
    pass
205
 
206
  def updatePasswordForAgent(self, agentEmailId, password):
207
    """
208
    Parameters:
209
     - agentEmailId
210
     - password
211
    """
212
    pass
213
 
214
  def getRoleNamesForAgent(self, agentEmailId):
215
    """
216
    Parameters:
217
     - agentEmailId
218
    """
219
    pass
220
 
221
  def getPermissionsForRoleName(self, roleName):
222
    """
223
    Parameters:
224
     - roleName
225
    """
226
    pass
227
 
228
 
3376 rajveer 229
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
349 ashish 230
  def __init__(self, iprot, oprot=None):
3376 rajveer 231
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
349 ashish 232
 
1395 varun.gupt 233
  def saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType):
234
    """
3206 mandeep.dh 235
    Save email details, to be sent later; Also returns its identifier.
3431 rajveer 236
 
1395 varun.gupt 237
    Parameters:
238
     - emailTo
239
     - emailFrom
240
     - subject
241
     - body
242
     - source
243
     - emailType
244
    """
245
    self.send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType)
3206 mandeep.dh 246
    return self.recv_saveUserEmailForSending()
1395 varun.gupt 247
 
248
  def send_saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType):
249
    self._oprot.writeMessageBegin('saveUserEmailForSending', TMessageType.CALL, self._seqid)
250
    args = saveUserEmailForSending_args()
251
    args.emailTo = emailTo
252
    args.emailFrom = emailFrom
253
    args.subject = subject
254
    args.body = body
255
    args.source = source
256
    args.emailType = emailType
257
    args.write(self._oprot)
258
    self._oprot.writeMessageEnd()
259
    self._oprot.trans.flush()
260
 
261
  def recv_saveUserEmailForSending(self, ):
262
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
263
    if mtype == TMessageType.EXCEPTION:
264
      x = TApplicationException()
265
      x.read(self._iprot)
266
      self._iprot.readMessageEnd()
267
      raise x
268
    result = saveUserEmailForSending_result()
269
    result.read(self._iprot)
270
    self._iprot.readMessageEnd()
3431 rajveer 271
    if result.success is not None:
3206 mandeep.dh 272
      return result.success
3431 rajveer 273
    if result.se is not None:
1395 varun.gupt 274
      raise result.se
3206 mandeep.dh 275
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 276
 
3086 rajveer 277
  def getEmailsToBeSent(self, ):
1422 varun.gupt 278
    """
2783 chandransh 279
    Retreives all the emails pending for dispatch
1422 varun.gupt 280
    """
3086 rajveer 281
    self.send_getEmailsToBeSent()
1422 varun.gupt 282
    return self.recv_getEmailsToBeSent()
283
 
3086 rajveer 284
  def send_getEmailsToBeSent(self, ):
1422 varun.gupt 285
    self._oprot.writeMessageBegin('getEmailsToBeSent', TMessageType.CALL, self._seqid)
286
    args = getEmailsToBeSent_args()
287
    args.write(self._oprot)
288
    self._oprot.writeMessageEnd()
289
    self._oprot.trans.flush()
290
 
291
  def recv_getEmailsToBeSent(self, ):
292
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
293
    if mtype == TMessageType.EXCEPTION:
294
      x = TApplicationException()
295
      x.read(self._iprot)
296
      self._iprot.readMessageEnd()
297
      raise x
298
    result = getEmailsToBeSent_result()
299
    result.read(self._iprot)
300
    self._iprot.readMessageEnd()
3431 rajveer 301
    if result.success is not None:
1422 varun.gupt 302
      return result.success
3431 rajveer 303
    if result.se is not None:
1422 varun.gupt 304
      raise result.se
305
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
306
 
307
  def markEmailAsSent(self, emailId):
308
    """
2783 chandransh 309
    Marks email as sent after successful dispatch
3431 rajveer 310
 
1422 varun.gupt 311
    Parameters:
312
     - emailId
313
    """
314
    self.send_markEmailAsSent(emailId)
315
    self.recv_markEmailAsSent()
316
 
317
  def send_markEmailAsSent(self, emailId):
318
    self._oprot.writeMessageBegin('markEmailAsSent', TMessageType.CALL, self._seqid)
319
    args = markEmailAsSent_args()
320
    args.emailId = emailId
321
    args.write(self._oprot)
322
    self._oprot.writeMessageEnd()
323
    self._oprot.trans.flush()
324
 
325
  def recv_markEmailAsSent(self, ):
326
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
327
    if mtype == TMessageType.EXCEPTION:
328
      x = TApplicationException()
329
      x.read(self._iprot)
330
      self._iprot.readMessageEnd()
331
      raise x
332
    result = markEmailAsSent_result()
333
    result.read(self._iprot)
334
    self._iprot.readMessageEnd()
3431 rajveer 335
    if result.se is not None:
1422 varun.gupt 336
      raise result.se
337
    return
338
 
349 ashish 339
  def sendMail(self, mail):
340
    """
341
    Parameters:
342
     - mail
343
    """
344
    self.send_sendMail(mail)
345
    self.recv_sendMail()
346
 
347
  def send_sendMail(self, mail):
348
    self._oprot.writeMessageBegin('sendMail', TMessageType.CALL, self._seqid)
349
    args = sendMail_args()
350
    args.mail = mail
351
    args.write(self._oprot)
352
    self._oprot.writeMessageEnd()
353
    self._oprot.trans.flush()
354
 
355
  def recv_sendMail(self, ):
356
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
357
    if mtype == TMessageType.EXCEPTION:
358
      x = TApplicationException()
359
      x.read(self._iprot)
360
      self._iprot.readMessageEnd()
361
      raise x
362
    result = sendMail_result()
363
    result.read(self._iprot)
364
    self._iprot.readMessageEnd()
3431 rajveer 365
    if result.se is not None:
349 ashish 366
      raise result.se
367
    return
368
 
369
  def sendText(self, message):
370
    """
371
    Parameters:
372
     - message
373
    """
374
    self.send_sendText(message)
375
    self.recv_sendText()
376
 
377
  def send_sendText(self, message):
378
    self._oprot.writeMessageBegin('sendText', TMessageType.CALL, self._seqid)
379
    args = sendText_args()
380
    args.message = message
381
    args.write(self._oprot)
382
    self._oprot.writeMessageEnd()
383
    self._oprot.trans.flush()
384
 
385
  def recv_sendText(self, ):
386
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
387
    if mtype == TMessageType.EXCEPTION:
388
      x = TApplicationException()
389
      x.read(self._iprot)
390
      self._iprot.readMessageEnd()
391
      raise x
392
    result = sendText_result()
393
    result.read(self._iprot)
394
    self._iprot.readMessageEnd()
3431 rajveer 395
    if result.se is not None:
349 ashish 396
      raise result.se
397
    return
398
 
399
  def addMessage(self, message):
400
    """
401
    Parameters:
402
     - message
403
    """
404
    self.send_addMessage(message)
405
    self.recv_addMessage()
406
 
407
  def send_addMessage(self, message):
408
    self._oprot.writeMessageBegin('addMessage', TMessageType.CALL, self._seqid)
409
    args = addMessage_args()
410
    args.message = message
411
    args.write(self._oprot)
412
    self._oprot.writeMessageEnd()
413
    self._oprot.trans.flush()
414
 
415
  def recv_addMessage(self, ):
416
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
417
    if mtype == TMessageType.EXCEPTION:
418
      x = TApplicationException()
419
      x.read(self._iprot)
420
      self._iprot.readMessageEnd()
421
      raise x
422
    result = addMessage_result()
423
    result.read(self._iprot)
424
    self._iprot.readMessageEnd()
3431 rajveer 425
    if result.se is not None:
349 ashish 426
      raise result.se
427
    return
428
 
429
  def updateMessage(self, id, message):
430
    """
431
    Parameters:
432
     - id
433
     - message
434
    """
435
    self.send_updateMessage(id, message)
436
    self.recv_updateMessage()
437
 
438
  def send_updateMessage(self, id, message):
439
    self._oprot.writeMessageBegin('updateMessage', TMessageType.CALL, self._seqid)
440
    args = updateMessage_args()
441
    args.id = id
442
    args.message = message
443
    args.write(self._oprot)
444
    self._oprot.writeMessageEnd()
445
    self._oprot.trans.flush()
446
 
447
  def recv_updateMessage(self, ):
448
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
449
    if mtype == TMessageType.EXCEPTION:
450
      x = TApplicationException()
451
      x.read(self._iprot)
452
      self._iprot.readMessageEnd()
453
      raise x
454
    result = updateMessage_result()
455
    result.read(self._iprot)
456
    self._iprot.readMessageEnd()
3431 rajveer 457
    if result.se is not None:
349 ashish 458
      raise result.se
459
    return
460
 
461
  def getMessage(self, id):
462
    """
463
    Parameters:
464
     - id
465
    """
466
    self.send_getMessage(id)
353 ashish 467
    return self.recv_getMessage()
349 ashish 468
 
469
  def send_getMessage(self, id):
470
    self._oprot.writeMessageBegin('getMessage', TMessageType.CALL, self._seqid)
471
    args = getMessage_args()
472
    args.id = id
473
    args.write(self._oprot)
474
    self._oprot.writeMessageEnd()
475
    self._oprot.trans.flush()
476
 
477
  def recv_getMessage(self, ):
478
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
479
    if mtype == TMessageType.EXCEPTION:
480
      x = TApplicationException()
481
      x.read(self._iprot)
482
      self._iprot.readMessageEnd()
483
      raise x
484
    result = getMessage_result()
485
    result.read(self._iprot)
486
    self._iprot.readMessageEnd()
3431 rajveer 487
    if result.success is not None:
353 ashish 488
      return result.success
3431 rajveer 489
    if result.se is not None:
349 ashish 490
      raise result.se
353 ashish 491
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
349 ashish 492
 
493
  def getSubstitutedMessage(self, id, params):
494
    """
495
    Parameters:
496
     - id
497
     - params
498
    """
499
    self.send_getSubstitutedMessage(id, params)
353 ashish 500
    return self.recv_getSubstitutedMessage()
349 ashish 501
 
502
  def send_getSubstitutedMessage(self, id, params):
503
    self._oprot.writeMessageBegin('getSubstitutedMessage', TMessageType.CALL, self._seqid)
504
    args = getSubstitutedMessage_args()
505
    args.id = id
506
    args.params = params
507
    args.write(self._oprot)
508
    self._oprot.writeMessageEnd()
509
    self._oprot.trans.flush()
510
 
511
  def recv_getSubstitutedMessage(self, ):
512
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
513
    if mtype == TMessageType.EXCEPTION:
514
      x = TApplicationException()
515
      x.read(self._iprot)
516
      self._iprot.readMessageEnd()
517
      raise x
518
    result = getSubstitutedMessage_result()
519
    result.read(self._iprot)
520
    self._iprot.readMessageEnd()
3431 rajveer 521
    if result.success is not None:
353 ashish 522
      return result.success
3431 rajveer 523
    if result.se is not None:
349 ashish 524
      raise result.se
353 ashish 525
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
349 ashish 526
 
494 rajveer 527
  def addUser(self, username, password, warehouseId):
528
    """
529
    Parameters:
530
     - username
531
     - password
532
     - warehouseId
533
    """
534
    self.send_addUser(username, password, warehouseId)
535
    return self.recv_addUser()
349 ashish 536
 
494 rajveer 537
  def send_addUser(self, username, password, warehouseId):
538
    self._oprot.writeMessageBegin('addUser', TMessageType.CALL, self._seqid)
539
    args = addUser_args()
540
    args.username = username
541
    args.password = password
542
    args.warehouseId = warehouseId
543
    args.write(self._oprot)
544
    self._oprot.writeMessageEnd()
545
    self._oprot.trans.flush()
546
 
547
  def recv_addUser(self, ):
548
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
549
    if mtype == TMessageType.EXCEPTION:
550
      x = TApplicationException()
551
      x.read(self._iprot)
552
      self._iprot.readMessageEnd()
553
      raise x
554
    result = addUser_result()
555
    result.read(self._iprot)
556
    self._iprot.readMessageEnd()
3431 rajveer 557
    if result.success is not None:
494 rajveer 558
      return result.success
3431 rajveer 559
    if result.se is not None:
494 rajveer 560
      raise result.se
561
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
562
 
563
  def deleteUser(self, username):
564
    """
565
    Parameters:
566
     - username
567
    """
568
    self.send_deleteUser(username)
569
    return self.recv_deleteUser()
570
 
571
  def send_deleteUser(self, username):
572
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
573
    args = deleteUser_args()
574
    args.username = username
575
    args.write(self._oprot)
576
    self._oprot.writeMessageEnd()
577
    self._oprot.trans.flush()
578
 
579
  def recv_deleteUser(self, ):
580
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
581
    if mtype == TMessageType.EXCEPTION:
582
      x = TApplicationException()
583
      x.read(self._iprot)
584
      self._iprot.readMessageEnd()
585
      raise x
586
    result = deleteUser_result()
587
    result.read(self._iprot)
588
    self._iprot.readMessageEnd()
3431 rajveer 589
    if result.success is not None:
494 rajveer 590
      return result.success
3431 rajveer 591
    if result.se is not None:
494 rajveer 592
      raise result.se
593
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
594
 
2447 chandransh 595
  def authenticateDashboardUser(self, username, password):
494 rajveer 596
    """
2447 chandransh 597
    Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
598
    The loggedOn timestamp for the dashboard user is updated .
3431 rajveer 599
 
494 rajveer 600
    Parameters:
601
     - username
602
     - password
603
    """
2447 chandransh 604
    self.send_authenticateDashboardUser(username, password)
605
    return self.recv_authenticateDashboardUser()
494 rajveer 606
 
2447 chandransh 607
  def send_authenticateDashboardUser(self, username, password):
608
    self._oprot.writeMessageBegin('authenticateDashboardUser', TMessageType.CALL, self._seqid)
609
    args = authenticateDashboardUser_args()
494 rajveer 610
    args.username = username
611
    args.password = password
612
    args.write(self._oprot)
613
    self._oprot.writeMessageEnd()
614
    self._oprot.trans.flush()
615
 
2447 chandransh 616
  def recv_authenticateDashboardUser(self, ):
494 rajveer 617
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
618
    if mtype == TMessageType.EXCEPTION:
619
      x = TApplicationException()
620
      x.read(self._iprot)
621
      self._iprot.readMessageEnd()
622
      raise x
2447 chandransh 623
    result = authenticateDashboardUser_result()
494 rajveer 624
    result.read(self._iprot)
625
    self._iprot.readMessageEnd()
3431 rajveer 626
    if result.success is not None:
494 rajveer 627
      return result.success
3431 rajveer 628
    if result.se is not None:
494 rajveer 629
      raise result.se
2447 chandransh 630
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
494 rajveer 631
 
632
  def updatePassword(self, username, oldPassword, newPassword):
633
    """
2447 chandransh 634
    Update the password of the dashboard user. Currently, there is no place where this method is called.
3431 rajveer 635
 
494 rajveer 636
    Parameters:
637
     - username
638
     - oldPassword
639
     - newPassword
640
    """
641
    self.send_updatePassword(username, oldPassword, newPassword)
642
    return self.recv_updatePassword()
643
 
644
  def send_updatePassword(self, username, oldPassword, newPassword):
645
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
646
    args = updatePassword_args()
647
    args.username = username
648
    args.oldPassword = oldPassword
649
    args.newPassword = newPassword
650
    args.write(self._oprot)
651
    self._oprot.writeMessageEnd()
652
    self._oprot.trans.flush()
653
 
654
  def recv_updatePassword(self, ):
655
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
656
    if mtype == TMessageType.EXCEPTION:
657
      x = TApplicationException()
658
      x.read(self._iprot)
659
      self._iprot.readMessageEnd()
660
      raise x
661
    result = updatePassword_result()
662
    result.read(self._iprot)
663
    self._iprot.readMessageEnd()
3431 rajveer 664
    if result.success is not None:
494 rajveer 665
      return result.success
3431 rajveer 666
    if result.se is not None:
494 rajveer 667
      raise result.se
668
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
669
 
759 chandransh 670
  def authenticateLogisticsUser(self, username, password):
671
    """
672
    Returns the LogisticsUser struct associated with the given username and password if they match.
673
    Throws an exception otherwise.
3431 rajveer 674
 
759 chandransh 675
    Parameters:
676
     - username
677
     - password
678
    """
679
    self.send_authenticateLogisticsUser(username, password)
680
    return self.recv_authenticateLogisticsUser()
494 rajveer 681
 
759 chandransh 682
  def send_authenticateLogisticsUser(self, username, password):
683
    self._oprot.writeMessageBegin('authenticateLogisticsUser', TMessageType.CALL, self._seqid)
684
    args = authenticateLogisticsUser_args()
685
    args.username = username
686
    args.password = password
687
    args.write(self._oprot)
688
    self._oprot.writeMessageEnd()
689
    self._oprot.trans.flush()
690
 
691
  def recv_authenticateLogisticsUser(self, ):
692
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
693
    if mtype == TMessageType.EXCEPTION:
694
      x = TApplicationException()
695
      x.read(self._iprot)
696
      self._iprot.readMessageEnd()
697
      raise x
698
    result = authenticateLogisticsUser_result()
699
    result.read(self._iprot)
700
    self._iprot.readMessageEnd()
3431 rajveer 701
    if result.success is not None:
759 chandransh 702
      return result.success
3431 rajveer 703
    if result.hse is not None:
759 chandransh 704
      raise result.hse
705
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
706
 
1610 ankur.sing 707
  def authenticateStatisticsUser(self, username, password):
708
    """
709
    Returns the StatisticsUser struct associated with the given username and password if they match.
710
    Throws an exception otherwise.
3431 rajveer 711
 
1610 ankur.sing 712
    Parameters:
713
     - username
714
     - password
715
    """
716
    self.send_authenticateStatisticsUser(username, password)
717
    return self.recv_authenticateStatisticsUser()
759 chandransh 718
 
1610 ankur.sing 719
  def send_authenticateStatisticsUser(self, username, password):
720
    self._oprot.writeMessageBegin('authenticateStatisticsUser', TMessageType.CALL, self._seqid)
721
    args = authenticateStatisticsUser_args()
722
    args.username = username
723
    args.password = password
724
    args.write(self._oprot)
725
    self._oprot.writeMessageEnd()
726
    self._oprot.trans.flush()
727
 
728
  def recv_authenticateStatisticsUser(self, ):
729
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
730
    if mtype == TMessageType.EXCEPTION:
731
      x = TApplicationException()
732
      x.read(self._iprot)
733
      self._iprot.readMessageEnd()
734
      raise x
735
    result = authenticateStatisticsUser_result()
736
    result.read(self._iprot)
737
    self._iprot.readMessageEnd()
3431 rajveer 738
    if result.success is not None:
1610 ankur.sing 739
      return result.success
3431 rajveer 740
    if result.hse is not None:
1610 ankur.sing 741
      raise result.hse
742
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
743
 
1891 ankur.sing 744
  def authenticateReportUser(self, username, password):
745
    """
746
    Returns the ReportUser struct associated with the given username and password if they match.
747
    Throws an exception otherwise.
3431 rajveer 748
 
1891 ankur.sing 749
    Parameters:
750
     - username
751
     - password
752
    """
753
    self.send_authenticateReportUser(username, password)
754
    return self.recv_authenticateReportUser()
1610 ankur.sing 755
 
1891 ankur.sing 756
  def send_authenticateReportUser(self, username, password):
757
    self._oprot.writeMessageBegin('authenticateReportUser', TMessageType.CALL, self._seqid)
758
    args = authenticateReportUser_args()
759
    args.username = username
760
    args.password = password
761
    args.write(self._oprot)
762
    self._oprot.writeMessageEnd()
763
    self._oprot.trans.flush()
764
 
765
  def recv_authenticateReportUser(self, ):
766
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
767
    if mtype == TMessageType.EXCEPTION:
768
      x = TApplicationException()
769
      x.read(self._iprot)
770
      self._iprot.readMessageEnd()
771
      raise x
772
    result = authenticateReportUser_result()
773
    result.read(self._iprot)
774
    self._iprot.readMessageEnd()
3431 rajveer 775
    if result.success is not None:
1891 ankur.sing 776
      return result.success
3431 rajveer 777
    if result.hse is not None:
1891 ankur.sing 778
      raise result.hse
779
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
780
 
781
  def getReports(self, role):
782
    """
783
    Returns list of reports which are configured for the given role.
3431 rajveer 784
 
1891 ankur.sing 785
    Parameters:
786
     - role
787
    """
788
    self.send_getReports(role)
789
    return self.recv_getReports()
790
 
791
  def send_getReports(self, role):
792
    self._oprot.writeMessageBegin('getReports', TMessageType.CALL, self._seqid)
793
    args = getReports_args()
794
    args.role = role
795
    args.write(self._oprot)
796
    self._oprot.writeMessageEnd()
797
    self._oprot.trans.flush()
798
 
799
  def recv_getReports(self, ):
800
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
801
    if mtype == TMessageType.EXCEPTION:
802
      x = TApplicationException()
803
      x.read(self._iprot)
804
      self._iprot.readMessageEnd()
805
      raise x
806
    result = getReports_result()
807
    result.read(self._iprot)
808
    self._iprot.readMessageEnd()
3431 rajveer 809
    if result.success is not None:
1891 ankur.sing 810
      return result.success
811
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
812
 
2358 ankur.sing 813
  def authenticateCatalogUser(self, username, password, role):
2025 ankur.sing 814
    """
2358 ankur.sing 815
    Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2025 ankur.sing 816
    Throws an exception otherwise.
3431 rajveer 817
 
2025 ankur.sing 818
    Parameters:
819
     - username
820
     - password
2358 ankur.sing 821
     - role
2025 ankur.sing 822
    """
2358 ankur.sing 823
    self.send_authenticateCatalogUser(username, password, role)
2025 ankur.sing 824
    return self.recv_authenticateCatalogUser()
1891 ankur.sing 825
 
2358 ankur.sing 826
  def send_authenticateCatalogUser(self, username, password, role):
2025 ankur.sing 827
    self._oprot.writeMessageBegin('authenticateCatalogUser', TMessageType.CALL, self._seqid)
828
    args = authenticateCatalogUser_args()
829
    args.username = username
830
    args.password = password
2358 ankur.sing 831
    args.role = role
2025 ankur.sing 832
    args.write(self._oprot)
833
    self._oprot.writeMessageEnd()
834
    self._oprot.trans.flush()
835
 
836
  def recv_authenticateCatalogUser(self, ):
837
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
838
    if mtype == TMessageType.EXCEPTION:
839
      x = TApplicationException()
840
      x.read(self._iprot)
841
      self._iprot.readMessageEnd()
842
      raise x
843
    result = authenticateCatalogUser_result()
844
    result.read(self._iprot)
845
    self._iprot.readMessageEnd()
3431 rajveer 846
    if result.success is not None:
2025 ankur.sing 847
      return result.success
3431 rajveer 848
    if result.hse is not None:
2025 ankur.sing 849
      raise result.hse
850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
851
 
4544 varun.gupt 852
  def shareEntities(self, entityIds, email):
853
    """
854
    Saves the list of entity Ids to be shared with an email address
2025 ankur.sing 855
 
4544 varun.gupt 856
    Parameters:
857
     - entityIds
858
     - email
859
    """
860
    self.send_shareEntities(entityIds, email)
861
    self.recv_shareEntities()
862
 
863
  def send_shareEntities(self, entityIds, email):
864
    self._oprot.writeMessageBegin('shareEntities', TMessageType.CALL, self._seqid)
865
    args = shareEntities_args()
866
    args.entityIds = entityIds
867
    args.email = email
868
    args.write(self._oprot)
869
    self._oprot.writeMessageEnd()
870
    self._oprot.trans.flush()
871
 
872
  def recv_shareEntities(self, ):
873
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
874
    if mtype == TMessageType.EXCEPTION:
875
      x = TApplicationException()
876
      x.read(self._iprot)
877
      self._iprot.readMessageEnd()
878
      raise x
879
    result = shareEntities_result()
880
    result.read(self._iprot)
881
    self._iprot.readMessageEnd()
882
    if result.hse is not None:
883
      raise result.hse
884
    return
885
 
4691 mandeep.dh 886
  def getAgents(self, ):
887
    self.send_getAgents()
888
    return self.recv_getAgents()
4544 varun.gupt 889
 
4691 mandeep.dh 890
  def send_getAgents(self, ):
891
    self._oprot.writeMessageBegin('getAgents', TMessageType.CALL, self._seqid)
892
    args = getAgents_args()
893
    args.write(self._oprot)
894
    self._oprot.writeMessageEnd()
895
    self._oprot.trans.flush()
896
 
897
  def recv_getAgents(self, ):
898
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
899
    if mtype == TMessageType.EXCEPTION:
900
      x = TApplicationException()
901
      x.read(self._iprot)
902
      self._iprot.readMessageEnd()
903
      raise x
904
    result = getAgents_result()
905
    result.read(self._iprot)
906
    self._iprot.readMessageEnd()
907
    if result.success is not None:
908
      return result.success
909
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
910
 
911
  def validateLogIn(self, emailId, password):
912
    """
913
    Parameters:
914
     - emailId
915
     - password
916
    """
917
    self.send_validateLogIn(emailId, password)
918
    return self.recv_validateLogIn()
919
 
920
  def send_validateLogIn(self, emailId, password):
921
    self._oprot.writeMessageBegin('validateLogIn', TMessageType.CALL, self._seqid)
922
    args = validateLogIn_args()
923
    args.emailId = emailId
924
    args.password = password
925
    args.write(self._oprot)
926
    self._oprot.writeMessageEnd()
927
    self._oprot.trans.flush()
928
 
929
  def recv_validateLogIn(self, ):
930
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
931
    if mtype == TMessageType.EXCEPTION:
932
      x = TApplicationException()
933
      x.read(self._iprot)
934
      self._iprot.readMessageEnd()
935
      raise x
936
    result = validateLogIn_result()
937
    result.read(self._iprot)
938
    self._iprot.readMessageEnd()
939
    if result.success is not None:
940
      return result.success
941
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
942
 
943
  def updatePasswordForAgent(self, agentEmailId, password):
944
    """
945
    Parameters:
946
     - agentEmailId
947
     - password
948
    """
949
    self.send_updatePasswordForAgent(agentEmailId, password)
950
    self.recv_updatePasswordForAgent()
951
 
952
  def send_updatePasswordForAgent(self, agentEmailId, password):
953
    self._oprot.writeMessageBegin('updatePasswordForAgent', TMessageType.CALL, self._seqid)
954
    args = updatePasswordForAgent_args()
955
    args.agentEmailId = agentEmailId
956
    args.password = password
957
    args.write(self._oprot)
958
    self._oprot.writeMessageEnd()
959
    self._oprot.trans.flush()
960
 
961
  def recv_updatePasswordForAgent(self, ):
962
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
963
    if mtype == TMessageType.EXCEPTION:
964
      x = TApplicationException()
965
      x.read(self._iprot)
966
      self._iprot.readMessageEnd()
967
      raise x
968
    result = updatePasswordForAgent_result()
969
    result.read(self._iprot)
970
    self._iprot.readMessageEnd()
971
    return
972
 
973
  def getRoleNamesForAgent(self, agentEmailId):
974
    """
975
    Parameters:
976
     - agentEmailId
977
    """
978
    self.send_getRoleNamesForAgent(agentEmailId)
979
    return self.recv_getRoleNamesForAgent()
980
 
981
  def send_getRoleNamesForAgent(self, agentEmailId):
982
    self._oprot.writeMessageBegin('getRoleNamesForAgent', TMessageType.CALL, self._seqid)
983
    args = getRoleNamesForAgent_args()
984
    args.agentEmailId = agentEmailId
985
    args.write(self._oprot)
986
    self._oprot.writeMessageEnd()
987
    self._oprot.trans.flush()
988
 
989
  def recv_getRoleNamesForAgent(self, ):
990
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
991
    if mtype == TMessageType.EXCEPTION:
992
      x = TApplicationException()
993
      x.read(self._iprot)
994
      self._iprot.readMessageEnd()
995
      raise x
996
    result = getRoleNamesForAgent_result()
997
    result.read(self._iprot)
998
    self._iprot.readMessageEnd()
999
    if result.success is not None:
1000
      return result.success
1001
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
1002
 
1003
  def getPermissionsForRoleName(self, roleName):
1004
    """
1005
    Parameters:
1006
     - roleName
1007
    """
1008
    self.send_getPermissionsForRoleName(roleName)
1009
    return self.recv_getPermissionsForRoleName()
1010
 
1011
  def send_getPermissionsForRoleName(self, roleName):
1012
    self._oprot.writeMessageBegin('getPermissionsForRoleName', TMessageType.CALL, self._seqid)
1013
    args = getPermissionsForRoleName_args()
1014
    args.roleName = roleName
1015
    args.write(self._oprot)
1016
    self._oprot.writeMessageEnd()
1017
    self._oprot.trans.flush()
1018
 
1019
  def recv_getPermissionsForRoleName(self, ):
1020
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1021
    if mtype == TMessageType.EXCEPTION:
1022
      x = TApplicationException()
1023
      x.read(self._iprot)
1024
      self._iprot.readMessageEnd()
1025
      raise x
1026
    result = getPermissionsForRoleName_result()
1027
    result.read(self._iprot)
1028
    self._iprot.readMessageEnd()
1029
    if result.success is not None:
1030
      return result.success
1031
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
1032
 
1033
 
3376 rajveer 1034
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
349 ashish 1035
  def __init__(self, handler):
3376 rajveer 1036
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1395 varun.gupt 1037
    self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
1422 varun.gupt 1038
    self._processMap["getEmailsToBeSent"] = Processor.process_getEmailsToBeSent
1039
    self._processMap["markEmailAsSent"] = Processor.process_markEmailAsSent
349 ashish 1040
    self._processMap["sendMail"] = Processor.process_sendMail
1041
    self._processMap["sendText"] = Processor.process_sendText
1042
    self._processMap["addMessage"] = Processor.process_addMessage
1043
    self._processMap["updateMessage"] = Processor.process_updateMessage
1044
    self._processMap["getMessage"] = Processor.process_getMessage
1045
    self._processMap["getSubstitutedMessage"] = Processor.process_getSubstitutedMessage
494 rajveer 1046
    self._processMap["addUser"] = Processor.process_addUser
1047
    self._processMap["deleteUser"] = Processor.process_deleteUser
2447 chandransh 1048
    self._processMap["authenticateDashboardUser"] = Processor.process_authenticateDashboardUser
494 rajveer 1049
    self._processMap["updatePassword"] = Processor.process_updatePassword
759 chandransh 1050
    self._processMap["authenticateLogisticsUser"] = Processor.process_authenticateLogisticsUser
1610 ankur.sing 1051
    self._processMap["authenticateStatisticsUser"] = Processor.process_authenticateStatisticsUser
1891 ankur.sing 1052
    self._processMap["authenticateReportUser"] = Processor.process_authenticateReportUser
1053
    self._processMap["getReports"] = Processor.process_getReports
2025 ankur.sing 1054
    self._processMap["authenticateCatalogUser"] = Processor.process_authenticateCatalogUser
4544 varun.gupt 1055
    self._processMap["shareEntities"] = Processor.process_shareEntities
4691 mandeep.dh 1056
    self._processMap["getAgents"] = Processor.process_getAgents
1057
    self._processMap["validateLogIn"] = Processor.process_validateLogIn
1058
    self._processMap["updatePasswordForAgent"] = Processor.process_updatePasswordForAgent
1059
    self._processMap["getRoleNamesForAgent"] = Processor.process_getRoleNamesForAgent
1060
    self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
349 ashish 1061
 
1062
  def process(self, iprot, oprot):
1063
    (name, type, seqid) = iprot.readMessageBegin()
1064
    if name not in self._processMap:
1065
      iprot.skip(TType.STRUCT)
1066
      iprot.readMessageEnd()
1067
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
1068
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
1069
      x.write(oprot)
1070
      oprot.writeMessageEnd()
1071
      oprot.trans.flush()
1072
      return
1073
    else:
1074
      self._processMap[name](self, seqid, iprot, oprot)
1075
    return True
1076
 
1395 varun.gupt 1077
  def process_saveUserEmailForSending(self, seqid, iprot, oprot):
1078
    args = saveUserEmailForSending_args()
1079
    args.read(iprot)
1080
    iprot.readMessageEnd()
1081
    result = saveUserEmailForSending_result()
1082
    try:
3206 mandeep.dh 1083
      result.success = self._handler.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType)
1395 varun.gupt 1084
    except HelperServiceException, se:
1085
      result.se = se
1086
    oprot.writeMessageBegin("saveUserEmailForSending", TMessageType.REPLY, seqid)
1087
    result.write(oprot)
1088
    oprot.writeMessageEnd()
1089
    oprot.trans.flush()
1090
 
1422 varun.gupt 1091
  def process_getEmailsToBeSent(self, seqid, iprot, oprot):
1092
    args = getEmailsToBeSent_args()
1093
    args.read(iprot)
1094
    iprot.readMessageEnd()
1095
    result = getEmailsToBeSent_result()
1096
    try:
3086 rajveer 1097
      result.success = self._handler.getEmailsToBeSent()
1422 varun.gupt 1098
    except HelperServiceException, se:
1099
      result.se = se
1100
    oprot.writeMessageBegin("getEmailsToBeSent", TMessageType.REPLY, seqid)
1101
    result.write(oprot)
1102
    oprot.writeMessageEnd()
1103
    oprot.trans.flush()
1104
 
1105
  def process_markEmailAsSent(self, seqid, iprot, oprot):
1106
    args = markEmailAsSent_args()
1107
    args.read(iprot)
1108
    iprot.readMessageEnd()
1109
    result = markEmailAsSent_result()
1110
    try:
1111
      self._handler.markEmailAsSent(args.emailId)
1112
    except HelperServiceException, se:
1113
      result.se = se
1114
    oprot.writeMessageBegin("markEmailAsSent", TMessageType.REPLY, seqid)
1115
    result.write(oprot)
1116
    oprot.writeMessageEnd()
1117
    oprot.trans.flush()
1118
 
349 ashish 1119
  def process_sendMail(self, seqid, iprot, oprot):
1120
    args = sendMail_args()
1121
    args.read(iprot)
1122
    iprot.readMessageEnd()
1123
    result = sendMail_result()
1124
    try:
1125
      self._handler.sendMail(args.mail)
1126
    except HelperServiceException, se:
1127
      result.se = se
1128
    oprot.writeMessageBegin("sendMail", TMessageType.REPLY, seqid)
1129
    result.write(oprot)
1130
    oprot.writeMessageEnd()
1131
    oprot.trans.flush()
1132
 
1133
  def process_sendText(self, seqid, iprot, oprot):
1134
    args = sendText_args()
1135
    args.read(iprot)
1136
    iprot.readMessageEnd()
1137
    result = sendText_result()
1138
    try:
1139
      self._handler.sendText(args.message)
1140
    except HelperServiceException, se:
1141
      result.se = se
1142
    oprot.writeMessageBegin("sendText", TMessageType.REPLY, seqid)
1143
    result.write(oprot)
1144
    oprot.writeMessageEnd()
1145
    oprot.trans.flush()
1146
 
1147
  def process_addMessage(self, seqid, iprot, oprot):
1148
    args = addMessage_args()
1149
    args.read(iprot)
1150
    iprot.readMessageEnd()
1151
    result = addMessage_result()
1152
    try:
1153
      self._handler.addMessage(args.message)
1154
    except HelperServiceException, se:
1155
      result.se = se
1156
    oprot.writeMessageBegin("addMessage", TMessageType.REPLY, seqid)
1157
    result.write(oprot)
1158
    oprot.writeMessageEnd()
1159
    oprot.trans.flush()
1160
 
1161
  def process_updateMessage(self, seqid, iprot, oprot):
1162
    args = updateMessage_args()
1163
    args.read(iprot)
1164
    iprot.readMessageEnd()
1165
    result = updateMessage_result()
1166
    try:
1167
      self._handler.updateMessage(args.id, args.message)
1168
    except HelperServiceException, se:
1169
      result.se = se
1170
    oprot.writeMessageBegin("updateMessage", TMessageType.REPLY, seqid)
1171
    result.write(oprot)
1172
    oprot.writeMessageEnd()
1173
    oprot.trans.flush()
1174
 
1175
  def process_getMessage(self, seqid, iprot, oprot):
1176
    args = getMessage_args()
1177
    args.read(iprot)
1178
    iprot.readMessageEnd()
1179
    result = getMessage_result()
1180
    try:
353 ashish 1181
      result.success = self._handler.getMessage(args.id)
349 ashish 1182
    except HelperServiceException, se:
1183
      result.se = se
1184
    oprot.writeMessageBegin("getMessage", TMessageType.REPLY, seqid)
1185
    result.write(oprot)
1186
    oprot.writeMessageEnd()
1187
    oprot.trans.flush()
1188
 
1189
  def process_getSubstitutedMessage(self, seqid, iprot, oprot):
1190
    args = getSubstitutedMessage_args()
1191
    args.read(iprot)
1192
    iprot.readMessageEnd()
1193
    result = getSubstitutedMessage_result()
1194
    try:
353 ashish 1195
      result.success = self._handler.getSubstitutedMessage(args.id, args.params)
349 ashish 1196
    except HelperServiceException, se:
1197
      result.se = se
1198
    oprot.writeMessageBegin("getSubstitutedMessage", TMessageType.REPLY, seqid)
1199
    result.write(oprot)
1200
    oprot.writeMessageEnd()
1201
    oprot.trans.flush()
1202
 
494 rajveer 1203
  def process_addUser(self, seqid, iprot, oprot):
1204
    args = addUser_args()
1205
    args.read(iprot)
1206
    iprot.readMessageEnd()
1207
    result = addUser_result()
1208
    try:
1209
      result.success = self._handler.addUser(args.username, args.password, args.warehouseId)
1210
    except HelperServiceException, se:
1211
      result.se = se
1212
    oprot.writeMessageBegin("addUser", TMessageType.REPLY, seqid)
1213
    result.write(oprot)
1214
    oprot.writeMessageEnd()
1215
    oprot.trans.flush()
349 ashish 1216
 
494 rajveer 1217
  def process_deleteUser(self, seqid, iprot, oprot):
1218
    args = deleteUser_args()
1219
    args.read(iprot)
1220
    iprot.readMessageEnd()
1221
    result = deleteUser_result()
1222
    try:
1223
      result.success = self._handler.deleteUser(args.username)
1224
    except HelperServiceException, se:
1225
      result.se = se
1226
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
1227
    result.write(oprot)
1228
    oprot.writeMessageEnd()
1229
    oprot.trans.flush()
1230
 
2447 chandransh 1231
  def process_authenticateDashboardUser(self, seqid, iprot, oprot):
1232
    args = authenticateDashboardUser_args()
494 rajveer 1233
    args.read(iprot)
1234
    iprot.readMessageEnd()
2447 chandransh 1235
    result = authenticateDashboardUser_result()
494 rajveer 1236
    try:
2447 chandransh 1237
      result.success = self._handler.authenticateDashboardUser(args.username, args.password)
494 rajveer 1238
    except HelperServiceException, se:
1239
      result.se = se
2447 chandransh 1240
    oprot.writeMessageBegin("authenticateDashboardUser", TMessageType.REPLY, seqid)
494 rajveer 1241
    result.write(oprot)
1242
    oprot.writeMessageEnd()
1243
    oprot.trans.flush()
1244
 
1245
  def process_updatePassword(self, seqid, iprot, oprot):
1246
    args = updatePassword_args()
1247
    args.read(iprot)
1248
    iprot.readMessageEnd()
1249
    result = updatePassword_result()
1250
    try:
1251
      result.success = self._handler.updatePassword(args.username, args.oldPassword, args.newPassword)
1252
    except HelperServiceException, se:
1253
      result.se = se
1254
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
1255
    result.write(oprot)
1256
    oprot.writeMessageEnd()
1257
    oprot.trans.flush()
1258
 
759 chandransh 1259
  def process_authenticateLogisticsUser(self, seqid, iprot, oprot):
1260
    args = authenticateLogisticsUser_args()
1261
    args.read(iprot)
1262
    iprot.readMessageEnd()
1263
    result = authenticateLogisticsUser_result()
1264
    try:
1265
      result.success = self._handler.authenticateLogisticsUser(args.username, args.password)
1266
    except HelperServiceException, hse:
1267
      result.hse = hse
1268
    oprot.writeMessageBegin("authenticateLogisticsUser", TMessageType.REPLY, seqid)
1269
    result.write(oprot)
1270
    oprot.writeMessageEnd()
1271
    oprot.trans.flush()
494 rajveer 1272
 
1610 ankur.sing 1273
  def process_authenticateStatisticsUser(self, seqid, iprot, oprot):
1274
    args = authenticateStatisticsUser_args()
1275
    args.read(iprot)
1276
    iprot.readMessageEnd()
1277
    result = authenticateStatisticsUser_result()
1278
    try:
1279
      result.success = self._handler.authenticateStatisticsUser(args.username, args.password)
1280
    except HelperServiceException, hse:
1281
      result.hse = hse
1282
    oprot.writeMessageBegin("authenticateStatisticsUser", TMessageType.REPLY, seqid)
1283
    result.write(oprot)
1284
    oprot.writeMessageEnd()
1285
    oprot.trans.flush()
759 chandransh 1286
 
1891 ankur.sing 1287
  def process_authenticateReportUser(self, seqid, iprot, oprot):
1288
    args = authenticateReportUser_args()
1289
    args.read(iprot)
1290
    iprot.readMessageEnd()
1291
    result = authenticateReportUser_result()
1292
    try:
1293
      result.success = self._handler.authenticateReportUser(args.username, args.password)
1294
    except HelperServiceException, hse:
1295
      result.hse = hse
1296
    oprot.writeMessageBegin("authenticateReportUser", TMessageType.REPLY, seqid)
1297
    result.write(oprot)
1298
    oprot.writeMessageEnd()
1299
    oprot.trans.flush()
1610 ankur.sing 1300
 
1891 ankur.sing 1301
  def process_getReports(self, seqid, iprot, oprot):
1302
    args = getReports_args()
1303
    args.read(iprot)
1304
    iprot.readMessageEnd()
1305
    result = getReports_result()
1306
    result.success = self._handler.getReports(args.role)
1307
    oprot.writeMessageBegin("getReports", TMessageType.REPLY, seqid)
1308
    result.write(oprot)
1309
    oprot.writeMessageEnd()
1310
    oprot.trans.flush()
1311
 
2025 ankur.sing 1312
  def process_authenticateCatalogUser(self, seqid, iprot, oprot):
1313
    args = authenticateCatalogUser_args()
1314
    args.read(iprot)
1315
    iprot.readMessageEnd()
1316
    result = authenticateCatalogUser_result()
1317
    try:
2358 ankur.sing 1318
      result.success = self._handler.authenticateCatalogUser(args.username, args.password, args.role)
2025 ankur.sing 1319
    except HelperServiceException, hse:
1320
      result.hse = hse
1321
    oprot.writeMessageBegin("authenticateCatalogUser", TMessageType.REPLY, seqid)
1322
    result.write(oprot)
1323
    oprot.writeMessageEnd()
1324
    oprot.trans.flush()
1891 ankur.sing 1325
 
4544 varun.gupt 1326
  def process_shareEntities(self, seqid, iprot, oprot):
1327
    args = shareEntities_args()
1328
    args.read(iprot)
1329
    iprot.readMessageEnd()
1330
    result = shareEntities_result()
1331
    try:
1332
      self._handler.shareEntities(args.entityIds, args.email)
1333
    except HelperServiceException, hse:
1334
      result.hse = hse
1335
    oprot.writeMessageBegin("shareEntities", TMessageType.REPLY, seqid)
1336
    result.write(oprot)
1337
    oprot.writeMessageEnd()
1338
    oprot.trans.flush()
2025 ankur.sing 1339
 
4691 mandeep.dh 1340
  def process_getAgents(self, seqid, iprot, oprot):
1341
    args = getAgents_args()
1342
    args.read(iprot)
1343
    iprot.readMessageEnd()
1344
    result = getAgents_result()
1345
    result.success = self._handler.getAgents()
1346
    oprot.writeMessageBegin("getAgents", TMessageType.REPLY, seqid)
1347
    result.write(oprot)
1348
    oprot.writeMessageEnd()
1349
    oprot.trans.flush()
4544 varun.gupt 1350
 
4691 mandeep.dh 1351
  def process_validateLogIn(self, seqid, iprot, oprot):
1352
    args = validateLogIn_args()
1353
    args.read(iprot)
1354
    iprot.readMessageEnd()
1355
    result = validateLogIn_result()
1356
    result.success = self._handler.validateLogIn(args.emailId, args.password)
1357
    oprot.writeMessageBegin("validateLogIn", TMessageType.REPLY, seqid)
1358
    result.write(oprot)
1359
    oprot.writeMessageEnd()
1360
    oprot.trans.flush()
1361
 
1362
  def process_updatePasswordForAgent(self, seqid, iprot, oprot):
1363
    args = updatePasswordForAgent_args()
1364
    args.read(iprot)
1365
    iprot.readMessageEnd()
1366
    result = updatePasswordForAgent_result()
1367
    self._handler.updatePasswordForAgent(args.agentEmailId, args.password)
1368
    oprot.writeMessageBegin("updatePasswordForAgent", TMessageType.REPLY, seqid)
1369
    result.write(oprot)
1370
    oprot.writeMessageEnd()
1371
    oprot.trans.flush()
1372
 
1373
  def process_getRoleNamesForAgent(self, seqid, iprot, oprot):
1374
    args = getRoleNamesForAgent_args()
1375
    args.read(iprot)
1376
    iprot.readMessageEnd()
1377
    result = getRoleNamesForAgent_result()
1378
    result.success = self._handler.getRoleNamesForAgent(args.agentEmailId)
1379
    oprot.writeMessageBegin("getRoleNamesForAgent", TMessageType.REPLY, seqid)
1380
    result.write(oprot)
1381
    oprot.writeMessageEnd()
1382
    oprot.trans.flush()
1383
 
1384
  def process_getPermissionsForRoleName(self, seqid, iprot, oprot):
1385
    args = getPermissionsForRoleName_args()
1386
    args.read(iprot)
1387
    iprot.readMessageEnd()
1388
    result = getPermissionsForRoleName_result()
1389
    result.success = self._handler.getPermissionsForRoleName(args.roleName)
1390
    oprot.writeMessageBegin("getPermissionsForRoleName", TMessageType.REPLY, seqid)
1391
    result.write(oprot)
1392
    oprot.writeMessageEnd()
1393
    oprot.trans.flush()
1394
 
1395
 
349 ashish 1396
# HELPER FUNCTIONS AND STRUCTURES
1397
 
1395 varun.gupt 1398
class saveUserEmailForSending_args:
1399
  """
1400
  Attributes:
1401
   - emailTo
1402
   - emailFrom
1403
   - subject
1404
   - body
1405
   - source
1406
   - emailType
1407
  """
1408
 
1409
  thrift_spec = (
1410
    None, # 0
1411
    (1, TType.STRING, 'emailTo', None, None, ), # 1
1412
    (2, TType.STRING, 'emailFrom', None, None, ), # 2
1413
    (3, TType.STRING, 'subject', None, None, ), # 3
1414
    (4, TType.STRING, 'body', None, None, ), # 4
1415
    (5, TType.STRING, 'source', None, None, ), # 5
1416
    (6, TType.STRING, 'emailType', None, None, ), # 6
1417
  )
1418
 
1419
  def __init__(self, emailTo=None, emailFrom=None, subject=None, body=None, source=None, emailType=None,):
1420
    self.emailTo = emailTo
1421
    self.emailFrom = emailFrom
1422
    self.subject = subject
1423
    self.body = body
1424
    self.source = source
1425
    self.emailType = emailType
1426
 
1427
  def read(self, iprot):
1428
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1429
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1430
      return
1431
    iprot.readStructBegin()
1432
    while True:
1433
      (fname, ftype, fid) = iprot.readFieldBegin()
1434
      if ftype == TType.STOP:
1435
        break
1436
      if fid == 1:
1437
        if ftype == TType.STRING:
1438
          self.emailTo = iprot.readString();
1439
        else:
1440
          iprot.skip(ftype)
1441
      elif fid == 2:
1442
        if ftype == TType.STRING:
1443
          self.emailFrom = iprot.readString();
1444
        else:
1445
          iprot.skip(ftype)
1446
      elif fid == 3:
1447
        if ftype == TType.STRING:
1448
          self.subject = iprot.readString();
1449
        else:
1450
          iprot.skip(ftype)
1451
      elif fid == 4:
1452
        if ftype == TType.STRING:
1453
          self.body = iprot.readString();
1454
        else:
1455
          iprot.skip(ftype)
1456
      elif fid == 5:
1457
        if ftype == TType.STRING:
1458
          self.source = iprot.readString();
1459
        else:
1460
          iprot.skip(ftype)
1461
      elif fid == 6:
1462
        if ftype == TType.STRING:
1463
          self.emailType = iprot.readString();
1464
        else:
1465
          iprot.skip(ftype)
1466
      else:
1467
        iprot.skip(ftype)
1468
      iprot.readFieldEnd()
1469
    iprot.readStructEnd()
1470
 
1471
  def write(self, oprot):
1472
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1473
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1474
      return
1475
    oprot.writeStructBegin('saveUserEmailForSending_args')
3431 rajveer 1476
    if self.emailTo is not None:
1395 varun.gupt 1477
      oprot.writeFieldBegin('emailTo', TType.STRING, 1)
1478
      oprot.writeString(self.emailTo)
1479
      oprot.writeFieldEnd()
3431 rajveer 1480
    if self.emailFrom is not None:
1395 varun.gupt 1481
      oprot.writeFieldBegin('emailFrom', TType.STRING, 2)
1482
      oprot.writeString(self.emailFrom)
1483
      oprot.writeFieldEnd()
3431 rajveer 1484
    if self.subject is not None:
1395 varun.gupt 1485
      oprot.writeFieldBegin('subject', TType.STRING, 3)
1486
      oprot.writeString(self.subject)
1487
      oprot.writeFieldEnd()
3431 rajveer 1488
    if self.body is not None:
1395 varun.gupt 1489
      oprot.writeFieldBegin('body', TType.STRING, 4)
1490
      oprot.writeString(self.body)
1491
      oprot.writeFieldEnd()
3431 rajveer 1492
    if self.source is not None:
1395 varun.gupt 1493
      oprot.writeFieldBegin('source', TType.STRING, 5)
1494
      oprot.writeString(self.source)
1495
      oprot.writeFieldEnd()
3431 rajveer 1496
    if self.emailType is not None:
1395 varun.gupt 1497
      oprot.writeFieldBegin('emailType', TType.STRING, 6)
1498
      oprot.writeString(self.emailType)
1499
      oprot.writeFieldEnd()
1500
    oprot.writeFieldStop()
1501
    oprot.writeStructEnd()
1502
 
3431 rajveer 1503
  def validate(self):
1504
    return
1505
 
1506
 
1395 varun.gupt 1507
  def __repr__(self):
1508
    L = ['%s=%r' % (key, value)
1509
      for key, value in self.__dict__.iteritems()]
1510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1511
 
1512
  def __eq__(self, other):
1513
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1514
 
1515
  def __ne__(self, other):
1516
    return not (self == other)
1517
 
1518
class saveUserEmailForSending_result:
1519
  """
1520
  Attributes:
3206 mandeep.dh 1521
   - success
1395 varun.gupt 1522
   - se
1523
  """
1524
 
1525
  thrift_spec = (
3206 mandeep.dh 1526
    (0, TType.I64, 'success', None, None, ), # 0
1395 varun.gupt 1527
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
1528
  )
1529
 
3206 mandeep.dh 1530
  def __init__(self, success=None, se=None,):
1531
    self.success = success
1395 varun.gupt 1532
    self.se = se
1533
 
1534
  def read(self, iprot):
1535
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1536
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1537
      return
1538
    iprot.readStructBegin()
1539
    while True:
1540
      (fname, ftype, fid) = iprot.readFieldBegin()
1541
      if ftype == TType.STOP:
1542
        break
3206 mandeep.dh 1543
      if fid == 0:
1544
        if ftype == TType.I64:
1545
          self.success = iprot.readI64();
1546
        else:
1547
          iprot.skip(ftype)
1548
      elif fid == 1:
1395 varun.gupt 1549
        if ftype == TType.STRUCT:
1550
          self.se = HelperServiceException()
1551
          self.se.read(iprot)
1552
        else:
1553
          iprot.skip(ftype)
1554
      else:
1555
        iprot.skip(ftype)
1556
      iprot.readFieldEnd()
1557
    iprot.readStructEnd()
1558
 
1559
  def write(self, oprot):
1560
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1561
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1562
      return
1563
    oprot.writeStructBegin('saveUserEmailForSending_result')
3431 rajveer 1564
    if self.success is not None:
3206 mandeep.dh 1565
      oprot.writeFieldBegin('success', TType.I64, 0)
1566
      oprot.writeI64(self.success)
1567
      oprot.writeFieldEnd()
3431 rajveer 1568
    if self.se is not None:
1395 varun.gupt 1569
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1570
      self.se.write(oprot)
1571
      oprot.writeFieldEnd()
1572
    oprot.writeFieldStop()
1573
    oprot.writeStructEnd()
1574
 
3431 rajveer 1575
  def validate(self):
1576
    return
1577
 
1578
 
1395 varun.gupt 1579
  def __repr__(self):
1580
    L = ['%s=%r' % (key, value)
1581
      for key, value in self.__dict__.iteritems()]
1582
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1583
 
1584
  def __eq__(self, other):
1585
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1586
 
1587
  def __ne__(self, other):
1588
    return not (self == other)
1589
 
1422 varun.gupt 1590
class getEmailsToBeSent_args:
1591
 
1592
  thrift_spec = (
1593
  )
1594
 
1595
  def read(self, iprot):
1596
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1597
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1598
      return
1599
    iprot.readStructBegin()
1600
    while True:
1601
      (fname, ftype, fid) = iprot.readFieldBegin()
1602
      if ftype == TType.STOP:
1603
        break
1604
      else:
1605
        iprot.skip(ftype)
1606
      iprot.readFieldEnd()
1607
    iprot.readStructEnd()
1608
 
1609
  def write(self, oprot):
1610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1612
      return
1613
    oprot.writeStructBegin('getEmailsToBeSent_args')
1614
    oprot.writeFieldStop()
1615
    oprot.writeStructEnd()
1616
 
3431 rajveer 1617
  def validate(self):
1618
    return
1619
 
1620
 
1422 varun.gupt 1621
  def __repr__(self):
1622
    L = ['%s=%r' % (key, value)
1623
      for key, value in self.__dict__.iteritems()]
1624
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1625
 
1626
  def __eq__(self, other):
1627
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1628
 
1629
  def __ne__(self, other):
1630
    return not (self == other)
1631
 
1632
class getEmailsToBeSent_result:
1633
  """
1634
  Attributes:
1635
   - success
1636
   - se
1637
  """
1638
 
1639
  thrift_spec = (
1640
    (0, TType.LIST, 'success', (TType.STRUCT,(UserEmail, UserEmail.thrift_spec)), None, ), # 0
1641
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
1642
  )
1643
 
1644
  def __init__(self, success=None, se=None,):
1645
    self.success = success
1646
    self.se = se
1647
 
1648
  def read(self, iprot):
1649
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1650
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1651
      return
1652
    iprot.readStructBegin()
1653
    while True:
1654
      (fname, ftype, fid) = iprot.readFieldBegin()
1655
      if ftype == TType.STOP:
1656
        break
1657
      if fid == 0:
1658
        if ftype == TType.LIST:
1659
          self.success = []
1660
          (_etype17, _size14) = iprot.readListBegin()
1661
          for _i18 in xrange(_size14):
1662
            _elem19 = UserEmail()
1663
            _elem19.read(iprot)
1664
            self.success.append(_elem19)
1665
          iprot.readListEnd()
1666
        else:
1667
          iprot.skip(ftype)
1668
      elif fid == 1:
1669
        if ftype == TType.STRUCT:
1670
          self.se = HelperServiceException()
1671
          self.se.read(iprot)
1672
        else:
1673
          iprot.skip(ftype)
1674
      else:
1675
        iprot.skip(ftype)
1676
      iprot.readFieldEnd()
1677
    iprot.readStructEnd()
1678
 
1679
  def write(self, oprot):
1680
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1681
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1682
      return
1683
    oprot.writeStructBegin('getEmailsToBeSent_result')
3431 rajveer 1684
    if self.success is not None:
1422 varun.gupt 1685
      oprot.writeFieldBegin('success', TType.LIST, 0)
1686
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1687
      for iter20 in self.success:
1688
        iter20.write(oprot)
1689
      oprot.writeListEnd()
1690
      oprot.writeFieldEnd()
3431 rajveer 1691
    if self.se is not None:
1422 varun.gupt 1692
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1693
      self.se.write(oprot)
1694
      oprot.writeFieldEnd()
1695
    oprot.writeFieldStop()
1696
    oprot.writeStructEnd()
1697
 
3431 rajveer 1698
  def validate(self):
1699
    return
1700
 
1701
 
1422 varun.gupt 1702
  def __repr__(self):
1703
    L = ['%s=%r' % (key, value)
1704
      for key, value in self.__dict__.iteritems()]
1705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1706
 
1707
  def __eq__(self, other):
1708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1709
 
1710
  def __ne__(self, other):
1711
    return not (self == other)
1712
 
1713
class markEmailAsSent_args:
1714
  """
1715
  Attributes:
1716
   - emailId
1717
  """
1718
 
1719
  thrift_spec = (
1720
    None, # 0
1721
    (1, TType.I64, 'emailId', None, None, ), # 1
1722
  )
1723
 
1724
  def __init__(self, emailId=None,):
1725
    self.emailId = emailId
1726
 
1727
  def read(self, iprot):
1728
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1729
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1730
      return
1731
    iprot.readStructBegin()
1732
    while True:
1733
      (fname, ftype, fid) = iprot.readFieldBegin()
1734
      if ftype == TType.STOP:
1735
        break
1736
      if fid == 1:
1737
        if ftype == TType.I64:
1738
          self.emailId = iprot.readI64();
1739
        else:
1740
          iprot.skip(ftype)
1741
      else:
1742
        iprot.skip(ftype)
1743
      iprot.readFieldEnd()
1744
    iprot.readStructEnd()
1745
 
1746
  def write(self, oprot):
1747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1749
      return
1750
    oprot.writeStructBegin('markEmailAsSent_args')
3431 rajveer 1751
    if self.emailId is not None:
1422 varun.gupt 1752
      oprot.writeFieldBegin('emailId', TType.I64, 1)
1753
      oprot.writeI64(self.emailId)
1754
      oprot.writeFieldEnd()
1755
    oprot.writeFieldStop()
1756
    oprot.writeStructEnd()
1757
 
3431 rajveer 1758
  def validate(self):
1759
    return
1760
 
1761
 
1422 varun.gupt 1762
  def __repr__(self):
1763
    L = ['%s=%r' % (key, value)
1764
      for key, value in self.__dict__.iteritems()]
1765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1766
 
1767
  def __eq__(self, other):
1768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1769
 
1770
  def __ne__(self, other):
1771
    return not (self == other)
1772
 
1773
class markEmailAsSent_result:
1774
  """
1775
  Attributes:
1776
   - se
1777
  """
1778
 
1779
  thrift_spec = (
1780
    None, # 0
1781
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
1782
  )
1783
 
1784
  def __init__(self, se=None,):
1785
    self.se = se
1786
 
1787
  def read(self, iprot):
1788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1790
      return
1791
    iprot.readStructBegin()
1792
    while True:
1793
      (fname, ftype, fid) = iprot.readFieldBegin()
1794
      if ftype == TType.STOP:
1795
        break
1796
      if fid == 1:
1797
        if ftype == TType.STRUCT:
1798
          self.se = HelperServiceException()
1799
          self.se.read(iprot)
1800
        else:
1801
          iprot.skip(ftype)
1802
      else:
1803
        iprot.skip(ftype)
1804
      iprot.readFieldEnd()
1805
    iprot.readStructEnd()
1806
 
1807
  def write(self, oprot):
1808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1810
      return
1811
    oprot.writeStructBegin('markEmailAsSent_result')
3431 rajveer 1812
    if self.se is not None:
1422 varun.gupt 1813
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1814
      self.se.write(oprot)
1815
      oprot.writeFieldEnd()
1816
    oprot.writeFieldStop()
1817
    oprot.writeStructEnd()
1818
 
3431 rajveer 1819
  def validate(self):
1820
    return
1821
 
1822
 
1422 varun.gupt 1823
  def __repr__(self):
1824
    L = ['%s=%r' % (key, value)
1825
      for key, value in self.__dict__.iteritems()]
1826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1827
 
1828
  def __eq__(self, other):
1829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1830
 
1831
  def __ne__(self, other):
1832
    return not (self == other)
1833
 
349 ashish 1834
class sendMail_args:
1835
  """
1836
  Attributes:
1837
   - mail
1838
  """
1839
 
1840
  thrift_spec = (
1841
    None, # 0
1842
    (1, TType.STRUCT, 'mail', (Mail, Mail.thrift_spec), None, ), # 1
1843
  )
1844
 
1845
  def __init__(self, mail=None,):
1846
    self.mail = mail
1847
 
1848
  def read(self, iprot):
1849
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1850
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1851
      return
1852
    iprot.readStructBegin()
1853
    while True:
1854
      (fname, ftype, fid) = iprot.readFieldBegin()
1855
      if ftype == TType.STOP:
1856
        break
1857
      if fid == 1:
1858
        if ftype == TType.STRUCT:
1859
          self.mail = Mail()
1860
          self.mail.read(iprot)
1861
        else:
1862
          iprot.skip(ftype)
1863
      else:
1864
        iprot.skip(ftype)
1865
      iprot.readFieldEnd()
1866
    iprot.readStructEnd()
1867
 
1868
  def write(self, oprot):
1869
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1870
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1871
      return
1872
    oprot.writeStructBegin('sendMail_args')
3431 rajveer 1873
    if self.mail is not None:
349 ashish 1874
      oprot.writeFieldBegin('mail', TType.STRUCT, 1)
1875
      self.mail.write(oprot)
1876
      oprot.writeFieldEnd()
1877
    oprot.writeFieldStop()
1878
    oprot.writeStructEnd()
1879
 
3431 rajveer 1880
  def validate(self):
1881
    return
1882
 
1883
 
349 ashish 1884
  def __repr__(self):
1885
    L = ['%s=%r' % (key, value)
1886
      for key, value in self.__dict__.iteritems()]
1887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1888
 
1889
  def __eq__(self, other):
1890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1891
 
1892
  def __ne__(self, other):
1893
    return not (self == other)
1894
 
1895
class sendMail_result:
1896
  """
1897
  Attributes:
1898
   - se
1899
  """
1900
 
1901
  thrift_spec = (
1902
    None, # 0
1903
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
1904
  )
1905
 
1906
  def __init__(self, se=None,):
1907
    self.se = se
1908
 
1909
  def read(self, iprot):
1910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1912
      return
1913
    iprot.readStructBegin()
1914
    while True:
1915
      (fname, ftype, fid) = iprot.readFieldBegin()
1916
      if ftype == TType.STOP:
1917
        break
1918
      if fid == 1:
1919
        if ftype == TType.STRUCT:
1920
          self.se = HelperServiceException()
1921
          self.se.read(iprot)
1922
        else:
1923
          iprot.skip(ftype)
1924
      else:
1925
        iprot.skip(ftype)
1926
      iprot.readFieldEnd()
1927
    iprot.readStructEnd()
1928
 
1929
  def write(self, oprot):
1930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1932
      return
1933
    oprot.writeStructBegin('sendMail_result')
3431 rajveer 1934
    if self.se is not None:
349 ashish 1935
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1936
      self.se.write(oprot)
1937
      oprot.writeFieldEnd()
1938
    oprot.writeFieldStop()
1939
    oprot.writeStructEnd()
1940
 
3431 rajveer 1941
  def validate(self):
1942
    return
1943
 
1944
 
349 ashish 1945
  def __repr__(self):
1946
    L = ['%s=%r' % (key, value)
1947
      for key, value in self.__dict__.iteritems()]
1948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1949
 
1950
  def __eq__(self, other):
1951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1952
 
1953
  def __ne__(self, other):
1954
    return not (self == other)
1955
 
1956
class sendText_args:
1957
  """
1958
  Attributes:
1959
   - message
1960
  """
1961
 
1962
  thrift_spec = (
1963
    None, # 0
1964
    (1, TType.STRUCT, 'message', (TextMessage, TextMessage.thrift_spec), None, ), # 1
1965
  )
1966
 
1967
  def __init__(self, message=None,):
1968
    self.message = message
1969
 
1970
  def read(self, iprot):
1971
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1972
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1973
      return
1974
    iprot.readStructBegin()
1975
    while True:
1976
      (fname, ftype, fid) = iprot.readFieldBegin()
1977
      if ftype == TType.STOP:
1978
        break
1979
      if fid == 1:
1980
        if ftype == TType.STRUCT:
1981
          self.message = TextMessage()
1982
          self.message.read(iprot)
1983
        else:
1984
          iprot.skip(ftype)
1985
      else:
1986
        iprot.skip(ftype)
1987
      iprot.readFieldEnd()
1988
    iprot.readStructEnd()
1989
 
1990
  def write(self, oprot):
1991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1993
      return
1994
    oprot.writeStructBegin('sendText_args')
3431 rajveer 1995
    if self.message is not None:
349 ashish 1996
      oprot.writeFieldBegin('message', TType.STRUCT, 1)
1997
      self.message.write(oprot)
1998
      oprot.writeFieldEnd()
1999
    oprot.writeFieldStop()
2000
    oprot.writeStructEnd()
2001
 
3431 rajveer 2002
  def validate(self):
2003
    return
2004
 
2005
 
349 ashish 2006
  def __repr__(self):
2007
    L = ['%s=%r' % (key, value)
2008
      for key, value in self.__dict__.iteritems()]
2009
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2010
 
2011
  def __eq__(self, other):
2012
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2013
 
2014
  def __ne__(self, other):
2015
    return not (self == other)
2016
 
2017
class sendText_result:
2018
  """
2019
  Attributes:
2020
   - se
2021
  """
2022
 
2023
  thrift_spec = (
2024
    None, # 0
2025
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2026
  )
2027
 
2028
  def __init__(self, se=None,):
2029
    self.se = se
2030
 
2031
  def read(self, iprot):
2032
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2033
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2034
      return
2035
    iprot.readStructBegin()
2036
    while True:
2037
      (fname, ftype, fid) = iprot.readFieldBegin()
2038
      if ftype == TType.STOP:
2039
        break
2040
      if fid == 1:
2041
        if ftype == TType.STRUCT:
2042
          self.se = HelperServiceException()
2043
          self.se.read(iprot)
2044
        else:
2045
          iprot.skip(ftype)
2046
      else:
2047
        iprot.skip(ftype)
2048
      iprot.readFieldEnd()
2049
    iprot.readStructEnd()
2050
 
2051
  def write(self, oprot):
2052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2054
      return
2055
    oprot.writeStructBegin('sendText_result')
3431 rajveer 2056
    if self.se is not None:
349 ashish 2057
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2058
      self.se.write(oprot)
2059
      oprot.writeFieldEnd()
2060
    oprot.writeFieldStop()
2061
    oprot.writeStructEnd()
2062
 
3431 rajveer 2063
  def validate(self):
2064
    return
2065
 
2066
 
349 ashish 2067
  def __repr__(self):
2068
    L = ['%s=%r' % (key, value)
2069
      for key, value in self.__dict__.iteritems()]
2070
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2071
 
2072
  def __eq__(self, other):
2073
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2074
 
2075
  def __ne__(self, other):
2076
    return not (self == other)
2077
 
2078
class addMessage_args:
2079
  """
2080
  Attributes:
2081
   - message
2082
  """
2083
 
2084
  thrift_spec = (
2085
    None, # 0
2086
    (1, TType.STRUCT, 'message', (Message, Message.thrift_spec), None, ), # 1
2087
  )
2088
 
2089
  def __init__(self, message=None,):
2090
    self.message = message
2091
 
2092
  def read(self, iprot):
2093
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2094
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2095
      return
2096
    iprot.readStructBegin()
2097
    while True:
2098
      (fname, ftype, fid) = iprot.readFieldBegin()
2099
      if ftype == TType.STOP:
2100
        break
2101
      if fid == 1:
2102
        if ftype == TType.STRUCT:
2103
          self.message = Message()
2104
          self.message.read(iprot)
2105
        else:
2106
          iprot.skip(ftype)
2107
      else:
2108
        iprot.skip(ftype)
2109
      iprot.readFieldEnd()
2110
    iprot.readStructEnd()
2111
 
2112
  def write(self, oprot):
2113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2115
      return
2116
    oprot.writeStructBegin('addMessage_args')
3431 rajveer 2117
    if self.message is not None:
349 ashish 2118
      oprot.writeFieldBegin('message', TType.STRUCT, 1)
2119
      self.message.write(oprot)
2120
      oprot.writeFieldEnd()
2121
    oprot.writeFieldStop()
2122
    oprot.writeStructEnd()
2123
 
3431 rajveer 2124
  def validate(self):
2125
    return
2126
 
2127
 
349 ashish 2128
  def __repr__(self):
2129
    L = ['%s=%r' % (key, value)
2130
      for key, value in self.__dict__.iteritems()]
2131
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2132
 
2133
  def __eq__(self, other):
2134
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2135
 
2136
  def __ne__(self, other):
2137
    return not (self == other)
2138
 
2139
class addMessage_result:
2140
  """
2141
  Attributes:
2142
   - se
2143
  """
2144
 
2145
  thrift_spec = (
2146
    None, # 0
2147
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2148
  )
2149
 
2150
  def __init__(self, se=None,):
2151
    self.se = se
2152
 
2153
  def read(self, iprot):
2154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2156
      return
2157
    iprot.readStructBegin()
2158
    while True:
2159
      (fname, ftype, fid) = iprot.readFieldBegin()
2160
      if ftype == TType.STOP:
2161
        break
2162
      if fid == 1:
2163
        if ftype == TType.STRUCT:
2164
          self.se = HelperServiceException()
2165
          self.se.read(iprot)
2166
        else:
2167
          iprot.skip(ftype)
2168
      else:
2169
        iprot.skip(ftype)
2170
      iprot.readFieldEnd()
2171
    iprot.readStructEnd()
2172
 
2173
  def write(self, oprot):
2174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2176
      return
2177
    oprot.writeStructBegin('addMessage_result')
3431 rajveer 2178
    if self.se is not None:
349 ashish 2179
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2180
      self.se.write(oprot)
2181
      oprot.writeFieldEnd()
2182
    oprot.writeFieldStop()
2183
    oprot.writeStructEnd()
2184
 
3431 rajveer 2185
  def validate(self):
2186
    return
2187
 
2188
 
349 ashish 2189
  def __repr__(self):
2190
    L = ['%s=%r' % (key, value)
2191
      for key, value in self.__dict__.iteritems()]
2192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2193
 
2194
  def __eq__(self, other):
2195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2196
 
2197
  def __ne__(self, other):
2198
    return not (self == other)
2199
 
2200
class updateMessage_args:
2201
  """
2202
  Attributes:
2203
   - id
2204
   - message
2205
  """
2206
 
2207
  thrift_spec = (
2208
    None, # 0
2209
    (1, TType.I64, 'id', None, None, ), # 1
2210
    (2, TType.STRING, 'message', None, None, ), # 2
2211
  )
2212
 
2213
  def __init__(self, id=None, message=None,):
2214
    self.id = id
2215
    self.message = message
2216
 
2217
  def read(self, iprot):
2218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2220
      return
2221
    iprot.readStructBegin()
2222
    while True:
2223
      (fname, ftype, fid) = iprot.readFieldBegin()
2224
      if ftype == TType.STOP:
2225
        break
2226
      if fid == 1:
2227
        if ftype == TType.I64:
2228
          self.id = iprot.readI64();
2229
        else:
2230
          iprot.skip(ftype)
2231
      elif fid == 2:
2232
        if ftype == TType.STRING:
2233
          self.message = iprot.readString();
2234
        else:
2235
          iprot.skip(ftype)
2236
      else:
2237
        iprot.skip(ftype)
2238
      iprot.readFieldEnd()
2239
    iprot.readStructEnd()
2240
 
2241
  def write(self, oprot):
2242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2244
      return
2245
    oprot.writeStructBegin('updateMessage_args')
3431 rajveer 2246
    if self.id is not None:
349 ashish 2247
      oprot.writeFieldBegin('id', TType.I64, 1)
2248
      oprot.writeI64(self.id)
2249
      oprot.writeFieldEnd()
3431 rajveer 2250
    if self.message is not None:
349 ashish 2251
      oprot.writeFieldBegin('message', TType.STRING, 2)
2252
      oprot.writeString(self.message)
2253
      oprot.writeFieldEnd()
2254
    oprot.writeFieldStop()
2255
    oprot.writeStructEnd()
2256
 
3431 rajveer 2257
  def validate(self):
2258
    return
2259
 
2260
 
349 ashish 2261
  def __repr__(self):
2262
    L = ['%s=%r' % (key, value)
2263
      for key, value in self.__dict__.iteritems()]
2264
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2265
 
2266
  def __eq__(self, other):
2267
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2268
 
2269
  def __ne__(self, other):
2270
    return not (self == other)
2271
 
2272
class updateMessage_result:
2273
  """
2274
  Attributes:
2275
   - se
2276
  """
2277
 
2278
  thrift_spec = (
2279
    None, # 0
2280
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2281
  )
2282
 
2283
  def __init__(self, se=None,):
2284
    self.se = se
2285
 
2286
  def read(self, iprot):
2287
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2288
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2289
      return
2290
    iprot.readStructBegin()
2291
    while True:
2292
      (fname, ftype, fid) = iprot.readFieldBegin()
2293
      if ftype == TType.STOP:
2294
        break
2295
      if fid == 1:
2296
        if ftype == TType.STRUCT:
2297
          self.se = HelperServiceException()
2298
          self.se.read(iprot)
2299
        else:
2300
          iprot.skip(ftype)
2301
      else:
2302
        iprot.skip(ftype)
2303
      iprot.readFieldEnd()
2304
    iprot.readStructEnd()
2305
 
2306
  def write(self, oprot):
2307
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2308
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2309
      return
2310
    oprot.writeStructBegin('updateMessage_result')
3431 rajveer 2311
    if self.se is not None:
349 ashish 2312
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2313
      self.se.write(oprot)
2314
      oprot.writeFieldEnd()
2315
    oprot.writeFieldStop()
2316
    oprot.writeStructEnd()
2317
 
3431 rajveer 2318
  def validate(self):
2319
    return
2320
 
2321
 
349 ashish 2322
  def __repr__(self):
2323
    L = ['%s=%r' % (key, value)
2324
      for key, value in self.__dict__.iteritems()]
2325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2326
 
2327
  def __eq__(self, other):
2328
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2329
 
2330
  def __ne__(self, other):
2331
    return not (self == other)
2332
 
2333
class getMessage_args:
2334
  """
2335
  Attributes:
2336
   - id
2337
  """
2338
 
2339
  thrift_spec = (
2340
    None, # 0
2341
    (1, TType.I64, 'id', None, None, ), # 1
2342
  )
2343
 
2344
  def __init__(self, id=None,):
2345
    self.id = id
2346
 
2347
  def read(self, iprot):
2348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2350
      return
2351
    iprot.readStructBegin()
2352
    while True:
2353
      (fname, ftype, fid) = iprot.readFieldBegin()
2354
      if ftype == TType.STOP:
2355
        break
2356
      if fid == 1:
2357
        if ftype == TType.I64:
2358
          self.id = iprot.readI64();
2359
        else:
2360
          iprot.skip(ftype)
2361
      else:
2362
        iprot.skip(ftype)
2363
      iprot.readFieldEnd()
2364
    iprot.readStructEnd()
2365
 
2366
  def write(self, oprot):
2367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2369
      return
2370
    oprot.writeStructBegin('getMessage_args')
3431 rajveer 2371
    if self.id is not None:
349 ashish 2372
      oprot.writeFieldBegin('id', TType.I64, 1)
2373
      oprot.writeI64(self.id)
2374
      oprot.writeFieldEnd()
2375
    oprot.writeFieldStop()
2376
    oprot.writeStructEnd()
2377
 
3431 rajveer 2378
  def validate(self):
2379
    return
2380
 
2381
 
349 ashish 2382
  def __repr__(self):
2383
    L = ['%s=%r' % (key, value)
2384
      for key, value in self.__dict__.iteritems()]
2385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2386
 
2387
  def __eq__(self, other):
2388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2389
 
2390
  def __ne__(self, other):
2391
    return not (self == other)
2392
 
2393
class getMessage_result:
2394
  """
2395
  Attributes:
353 ashish 2396
   - success
349 ashish 2397
   - se
2398
  """
2399
 
2400
  thrift_spec = (
353 ashish 2401
    (0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0
349 ashish 2402
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2403
  )
2404
 
353 ashish 2405
  def __init__(self, success=None, se=None,):
2406
    self.success = success
349 ashish 2407
    self.se = se
2408
 
2409
  def read(self, iprot):
2410
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2411
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2412
      return
2413
    iprot.readStructBegin()
2414
    while True:
2415
      (fname, ftype, fid) = iprot.readFieldBegin()
2416
      if ftype == TType.STOP:
2417
        break
353 ashish 2418
      if fid == 0:
349 ashish 2419
        if ftype == TType.STRUCT:
353 ashish 2420
          self.success = Message()
2421
          self.success.read(iprot)
2422
        else:
2423
          iprot.skip(ftype)
2424
      elif fid == 1:
2425
        if ftype == TType.STRUCT:
349 ashish 2426
          self.se = HelperServiceException()
2427
          self.se.read(iprot)
2428
        else:
2429
          iprot.skip(ftype)
2430
      else:
2431
        iprot.skip(ftype)
2432
      iprot.readFieldEnd()
2433
    iprot.readStructEnd()
2434
 
2435
  def write(self, oprot):
2436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2438
      return
2439
    oprot.writeStructBegin('getMessage_result')
3431 rajveer 2440
    if self.success is not None:
353 ashish 2441
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2442
      self.success.write(oprot)
2443
      oprot.writeFieldEnd()
3431 rajveer 2444
    if self.se is not None:
349 ashish 2445
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2446
      self.se.write(oprot)
2447
      oprot.writeFieldEnd()
2448
    oprot.writeFieldStop()
2449
    oprot.writeStructEnd()
2450
 
3431 rajveer 2451
  def validate(self):
2452
    return
2453
 
2454
 
349 ashish 2455
  def __repr__(self):
2456
    L = ['%s=%r' % (key, value)
2457
      for key, value in self.__dict__.iteritems()]
2458
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2459
 
2460
  def __eq__(self, other):
2461
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2462
 
2463
  def __ne__(self, other):
2464
    return not (self == other)
2465
 
2466
class getSubstitutedMessage_args:
2467
  """
2468
  Attributes:
2469
   - id
2470
   - params
2471
  """
2472
 
2473
  thrift_spec = (
2474
    None, # 0
2475
    (1, TType.I64, 'id', None, None, ), # 1
2476
    (2, TType.MAP, 'params', (TType.STRING,None,TType.STRING,None), None, ), # 2
2477
  )
2478
 
2479
  def __init__(self, id=None, params=None,):
2480
    self.id = id
2481
    self.params = params
2482
 
2483
  def read(self, iprot):
2484
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2485
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2486
      return
2487
    iprot.readStructBegin()
2488
    while True:
2489
      (fname, ftype, fid) = iprot.readFieldBegin()
2490
      if ftype == TType.STOP:
2491
        break
2492
      if fid == 1:
2493
        if ftype == TType.I64:
2494
          self.id = iprot.readI64();
2495
        else:
2496
          iprot.skip(ftype)
2497
      elif fid == 2:
2498
        if ftype == TType.MAP:
2499
          self.params = {}
1422 varun.gupt 2500
          (_ktype22, _vtype23, _size21 ) = iprot.readMapBegin() 
2501
          for _i25 in xrange(_size21):
2502
            _key26 = iprot.readString();
2503
            _val27 = iprot.readString();
2504
            self.params[_key26] = _val27
349 ashish 2505
          iprot.readMapEnd()
2506
        else:
2507
          iprot.skip(ftype)
2508
      else:
2509
        iprot.skip(ftype)
2510
      iprot.readFieldEnd()
2511
    iprot.readStructEnd()
2512
 
2513
  def write(self, oprot):
2514
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2515
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2516
      return
2517
    oprot.writeStructBegin('getSubstitutedMessage_args')
3431 rajveer 2518
    if self.id is not None:
349 ashish 2519
      oprot.writeFieldBegin('id', TType.I64, 1)
2520
      oprot.writeI64(self.id)
2521
      oprot.writeFieldEnd()
3431 rajveer 2522
    if self.params is not None:
349 ashish 2523
      oprot.writeFieldBegin('params', TType.MAP, 2)
2524
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.params))
1422 varun.gupt 2525
      for kiter28,viter29 in self.params.items():
2526
        oprot.writeString(kiter28)
2527
        oprot.writeString(viter29)
349 ashish 2528
      oprot.writeMapEnd()
2529
      oprot.writeFieldEnd()
2530
    oprot.writeFieldStop()
2531
    oprot.writeStructEnd()
2532
 
3431 rajveer 2533
  def validate(self):
2534
    return
2535
 
2536
 
349 ashish 2537
  def __repr__(self):
2538
    L = ['%s=%r' % (key, value)
2539
      for key, value in self.__dict__.iteritems()]
2540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2541
 
2542
  def __eq__(self, other):
2543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2544
 
2545
  def __ne__(self, other):
2546
    return not (self == other)
2547
 
2548
class getSubstitutedMessage_result:
2549
  """
2550
  Attributes:
353 ashish 2551
   - success
349 ashish 2552
   - se
2553
  """
2554
 
2555
  thrift_spec = (
353 ashish 2556
    (0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0
349 ashish 2557
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2558
  )
2559
 
353 ashish 2560
  def __init__(self, success=None, se=None,):
2561
    self.success = success
349 ashish 2562
    self.se = se
2563
 
2564
  def read(self, iprot):
2565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2567
      return
2568
    iprot.readStructBegin()
2569
    while True:
2570
      (fname, ftype, fid) = iprot.readFieldBegin()
2571
      if ftype == TType.STOP:
2572
        break
353 ashish 2573
      if fid == 0:
349 ashish 2574
        if ftype == TType.STRUCT:
353 ashish 2575
          self.success = Message()
2576
          self.success.read(iprot)
2577
        else:
2578
          iprot.skip(ftype)
2579
      elif fid == 1:
2580
        if ftype == TType.STRUCT:
349 ashish 2581
          self.se = HelperServiceException()
2582
          self.se.read(iprot)
2583
        else:
2584
          iprot.skip(ftype)
2585
      else:
2586
        iprot.skip(ftype)
2587
      iprot.readFieldEnd()
2588
    iprot.readStructEnd()
2589
 
2590
  def write(self, oprot):
2591
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2592
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2593
      return
2594
    oprot.writeStructBegin('getSubstitutedMessage_result')
3431 rajveer 2595
    if self.success is not None:
353 ashish 2596
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2597
      self.success.write(oprot)
2598
      oprot.writeFieldEnd()
3431 rajveer 2599
    if self.se is not None:
349 ashish 2600
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2601
      self.se.write(oprot)
2602
      oprot.writeFieldEnd()
2603
    oprot.writeFieldStop()
2604
    oprot.writeStructEnd()
2605
 
3431 rajveer 2606
  def validate(self):
2607
    return
2608
 
2609
 
349 ashish 2610
  def __repr__(self):
2611
    L = ['%s=%r' % (key, value)
2612
      for key, value in self.__dict__.iteritems()]
2613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2614
 
2615
  def __eq__(self, other):
2616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2617
 
2618
  def __ne__(self, other):
2619
    return not (self == other)
2620
 
494 rajveer 2621
class addUser_args:
2622
  """
2623
  Attributes:
2624
   - username
2625
   - password
2626
   - warehouseId
2627
  """
349 ashish 2628
 
494 rajveer 2629
  thrift_spec = (
2630
    None, # 0
2631
    (1, TType.STRING, 'username', None, None, ), # 1
2632
    (2, TType.STRING, 'password', None, None, ), # 2
2633
    (3, TType.I64, 'warehouseId', None, None, ), # 3
2634
  )
2635
 
2636
  def __init__(self, username=None, password=None, warehouseId=None,):
2637
    self.username = username
2638
    self.password = password
2639
    self.warehouseId = warehouseId
2640
 
2641
  def read(self, iprot):
2642
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2643
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2644
      return
2645
    iprot.readStructBegin()
2646
    while True:
2647
      (fname, ftype, fid) = iprot.readFieldBegin()
2648
      if ftype == TType.STOP:
2649
        break
2650
      if fid == 1:
2651
        if ftype == TType.STRING:
2652
          self.username = iprot.readString();
2653
        else:
2654
          iprot.skip(ftype)
2655
      elif fid == 2:
2656
        if ftype == TType.STRING:
2657
          self.password = iprot.readString();
2658
        else:
2659
          iprot.skip(ftype)
2660
      elif fid == 3:
2661
        if ftype == TType.I64:
2662
          self.warehouseId = iprot.readI64();
2663
        else:
2664
          iprot.skip(ftype)
2665
      else:
2666
        iprot.skip(ftype)
2667
      iprot.readFieldEnd()
2668
    iprot.readStructEnd()
2669
 
2670
  def write(self, oprot):
2671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2673
      return
2674
    oprot.writeStructBegin('addUser_args')
3431 rajveer 2675
    if self.username is not None:
494 rajveer 2676
      oprot.writeFieldBegin('username', TType.STRING, 1)
2677
      oprot.writeString(self.username)
2678
      oprot.writeFieldEnd()
3431 rajveer 2679
    if self.password is not None:
494 rajveer 2680
      oprot.writeFieldBegin('password', TType.STRING, 2)
2681
      oprot.writeString(self.password)
2682
      oprot.writeFieldEnd()
3431 rajveer 2683
    if self.warehouseId is not None:
494 rajveer 2684
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
2685
      oprot.writeI64(self.warehouseId)
2686
      oprot.writeFieldEnd()
2687
    oprot.writeFieldStop()
2688
    oprot.writeStructEnd()
2689
 
3431 rajveer 2690
  def validate(self):
2691
    return
2692
 
2693
 
494 rajveer 2694
  def __repr__(self):
2695
    L = ['%s=%r' % (key, value)
2696
      for key, value in self.__dict__.iteritems()]
2697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2698
 
2699
  def __eq__(self, other):
2700
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2701
 
2702
  def __ne__(self, other):
2703
    return not (self == other)
2704
 
2705
class addUser_result:
2706
  """
2707
  Attributes:
2708
   - success
2709
   - se
2710
  """
2711
 
2712
  thrift_spec = (
2713
    (0, TType.BOOL, 'success', None, None, ), # 0
2714
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2715
  )
2716
 
2717
  def __init__(self, success=None, se=None,):
2718
    self.success = success
2719
    self.se = se
2720
 
2721
  def read(self, iprot):
2722
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2723
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2724
      return
2725
    iprot.readStructBegin()
2726
    while True:
2727
      (fname, ftype, fid) = iprot.readFieldBegin()
2728
      if ftype == TType.STOP:
2729
        break
2730
      if fid == 0:
2731
        if ftype == TType.BOOL:
2732
          self.success = iprot.readBool();
2733
        else:
2734
          iprot.skip(ftype)
2735
      elif fid == 1:
2736
        if ftype == TType.STRUCT:
2737
          self.se = HelperServiceException()
2738
          self.se.read(iprot)
2739
        else:
2740
          iprot.skip(ftype)
2741
      else:
2742
        iprot.skip(ftype)
2743
      iprot.readFieldEnd()
2744
    iprot.readStructEnd()
2745
 
2746
  def write(self, oprot):
2747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2749
      return
2750
    oprot.writeStructBegin('addUser_result')
3431 rajveer 2751
    if self.success is not None:
494 rajveer 2752
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2753
      oprot.writeBool(self.success)
2754
      oprot.writeFieldEnd()
3431 rajveer 2755
    if self.se is not None:
494 rajveer 2756
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2757
      self.se.write(oprot)
2758
      oprot.writeFieldEnd()
2759
    oprot.writeFieldStop()
2760
    oprot.writeStructEnd()
2761
 
3431 rajveer 2762
  def validate(self):
2763
    return
2764
 
2765
 
494 rajveer 2766
  def __repr__(self):
2767
    L = ['%s=%r' % (key, value)
2768
      for key, value in self.__dict__.iteritems()]
2769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2770
 
2771
  def __eq__(self, other):
2772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2773
 
2774
  def __ne__(self, other):
2775
    return not (self == other)
2776
 
2777
class deleteUser_args:
2778
  """
2779
  Attributes:
2780
   - username
2781
  """
2782
 
2783
  thrift_spec = (
2784
    None, # 0
2785
    (1, TType.STRING, 'username', None, None, ), # 1
2786
  )
2787
 
2788
  def __init__(self, username=None,):
2789
    self.username = username
2790
 
2791
  def read(self, iprot):
2792
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2793
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2794
      return
2795
    iprot.readStructBegin()
2796
    while True:
2797
      (fname, ftype, fid) = iprot.readFieldBegin()
2798
      if ftype == TType.STOP:
2799
        break
2800
      if fid == 1:
2801
        if ftype == TType.STRING:
2802
          self.username = iprot.readString();
2803
        else:
2804
          iprot.skip(ftype)
2805
      else:
2806
        iprot.skip(ftype)
2807
      iprot.readFieldEnd()
2808
    iprot.readStructEnd()
2809
 
2810
  def write(self, oprot):
2811
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2812
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2813
      return
2814
    oprot.writeStructBegin('deleteUser_args')
3431 rajveer 2815
    if self.username is not None:
494 rajveer 2816
      oprot.writeFieldBegin('username', TType.STRING, 1)
2817
      oprot.writeString(self.username)
2818
      oprot.writeFieldEnd()
2819
    oprot.writeFieldStop()
2820
    oprot.writeStructEnd()
2821
 
3431 rajveer 2822
  def validate(self):
2823
    return
2824
 
2825
 
494 rajveer 2826
  def __repr__(self):
2827
    L = ['%s=%r' % (key, value)
2828
      for key, value in self.__dict__.iteritems()]
2829
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2830
 
2831
  def __eq__(self, other):
2832
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2833
 
2834
  def __ne__(self, other):
2835
    return not (self == other)
2836
 
2837
class deleteUser_result:
2838
  """
2839
  Attributes:
2840
   - success
2841
   - se
2842
  """
2843
 
2844
  thrift_spec = (
2845
    (0, TType.BOOL, 'success', None, None, ), # 0
2846
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2847
  )
2848
 
2849
  def __init__(self, success=None, se=None,):
2850
    self.success = success
2851
    self.se = se
2852
 
2853
  def read(self, iprot):
2854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2856
      return
2857
    iprot.readStructBegin()
2858
    while True:
2859
      (fname, ftype, fid) = iprot.readFieldBegin()
2860
      if ftype == TType.STOP:
2861
        break
2862
      if fid == 0:
2863
        if ftype == TType.BOOL:
2864
          self.success = iprot.readBool();
2865
        else:
2866
          iprot.skip(ftype)
2867
      elif fid == 1:
2868
        if ftype == TType.STRUCT:
2869
          self.se = HelperServiceException()
2870
          self.se.read(iprot)
2871
        else:
2872
          iprot.skip(ftype)
2873
      else:
2874
        iprot.skip(ftype)
2875
      iprot.readFieldEnd()
2876
    iprot.readStructEnd()
2877
 
2878
  def write(self, oprot):
2879
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2880
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2881
      return
2882
    oprot.writeStructBegin('deleteUser_result')
3431 rajveer 2883
    if self.success is not None:
494 rajveer 2884
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2885
      oprot.writeBool(self.success)
2886
      oprot.writeFieldEnd()
3431 rajveer 2887
    if self.se is not None:
494 rajveer 2888
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2889
      self.se.write(oprot)
2890
      oprot.writeFieldEnd()
2891
    oprot.writeFieldStop()
2892
    oprot.writeStructEnd()
2893
 
3431 rajveer 2894
  def validate(self):
2895
    return
2896
 
2897
 
494 rajveer 2898
  def __repr__(self):
2899
    L = ['%s=%r' % (key, value)
2900
      for key, value in self.__dict__.iteritems()]
2901
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2902
 
2903
  def __eq__(self, other):
2904
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2905
 
2906
  def __ne__(self, other):
2907
    return not (self == other)
2908
 
2447 chandransh 2909
class authenticateDashboardUser_args:
494 rajveer 2910
  """
2911
  Attributes:
2912
   - username
2913
   - password
2914
  """
2915
 
2916
  thrift_spec = (
2917
    None, # 0
2918
    (1, TType.STRING, 'username', None, None, ), # 1
2919
    (2, TType.STRING, 'password', None, None, ), # 2
2920
  )
2921
 
2922
  def __init__(self, username=None, password=None,):
2923
    self.username = username
2924
    self.password = password
2925
 
2926
  def read(self, iprot):
2927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2929
      return
2930
    iprot.readStructBegin()
2931
    while True:
2932
      (fname, ftype, fid) = iprot.readFieldBegin()
2933
      if ftype == TType.STOP:
2934
        break
2935
      if fid == 1:
2936
        if ftype == TType.STRING:
2937
          self.username = iprot.readString();
2938
        else:
2939
          iprot.skip(ftype)
2940
      elif fid == 2:
2941
        if ftype == TType.STRING:
2942
          self.password = iprot.readString();
2943
        else:
2944
          iprot.skip(ftype)
2945
      else:
2946
        iprot.skip(ftype)
2947
      iprot.readFieldEnd()
2948
    iprot.readStructEnd()
2949
 
2950
  def write(self, oprot):
2951
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2952
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2953
      return
2447 chandransh 2954
    oprot.writeStructBegin('authenticateDashboardUser_args')
3431 rajveer 2955
    if self.username is not None:
494 rajveer 2956
      oprot.writeFieldBegin('username', TType.STRING, 1)
2957
      oprot.writeString(self.username)
2958
      oprot.writeFieldEnd()
3431 rajveer 2959
    if self.password is not None:
494 rajveer 2960
      oprot.writeFieldBegin('password', TType.STRING, 2)
2961
      oprot.writeString(self.password)
2962
      oprot.writeFieldEnd()
2963
    oprot.writeFieldStop()
2964
    oprot.writeStructEnd()
2965
 
3431 rajveer 2966
  def validate(self):
2967
    return
2968
 
2969
 
494 rajveer 2970
  def __repr__(self):
2971
    L = ['%s=%r' % (key, value)
2972
      for key, value in self.__dict__.iteritems()]
2973
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2974
 
2975
  def __eq__(self, other):
2976
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2977
 
2978
  def __ne__(self, other):
2979
    return not (self == other)
2980
 
2447 chandransh 2981
class authenticateDashboardUser_result:
494 rajveer 2982
  """
2983
  Attributes:
2984
   - success
2985
   - se
2986
  """
2987
 
2988
  thrift_spec = (
2447 chandransh 2989
    (0, TType.STRUCT, 'success', (DashboardUser, DashboardUser.thrift_spec), None, ), # 0
494 rajveer 2990
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2991
  )
2992
 
2993
  def __init__(self, success=None, se=None,):
2994
    self.success = success
2995
    self.se = se
2996
 
2997
  def read(self, iprot):
2998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3000
      return
3001
    iprot.readStructBegin()
3002
    while True:
3003
      (fname, ftype, fid) = iprot.readFieldBegin()
3004
      if ftype == TType.STOP:
3005
        break
3006
      if fid == 0:
2447 chandransh 3007
        if ftype == TType.STRUCT:
3008
          self.success = DashboardUser()
3009
          self.success.read(iprot)
494 rajveer 3010
        else:
3011
          iprot.skip(ftype)
3012
      elif fid == 1:
3013
        if ftype == TType.STRUCT:
3014
          self.se = HelperServiceException()
3015
          self.se.read(iprot)
3016
        else:
3017
          iprot.skip(ftype)
3018
      else:
3019
        iprot.skip(ftype)
3020
      iprot.readFieldEnd()
3021
    iprot.readStructEnd()
3022
 
3023
  def write(self, oprot):
3024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3026
      return
2447 chandransh 3027
    oprot.writeStructBegin('authenticateDashboardUser_result')
3431 rajveer 3028
    if self.success is not None:
2447 chandransh 3029
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3030
      self.success.write(oprot)
494 rajveer 3031
      oprot.writeFieldEnd()
3431 rajveer 3032
    if self.se is not None:
494 rajveer 3033
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
3034
      self.se.write(oprot)
3035
      oprot.writeFieldEnd()
3036
    oprot.writeFieldStop()
3037
    oprot.writeStructEnd()
3038
 
3431 rajveer 3039
  def validate(self):
3040
    return
3041
 
3042
 
494 rajveer 3043
  def __repr__(self):
3044
    L = ['%s=%r' % (key, value)
3045
      for key, value in self.__dict__.iteritems()]
3046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3047
 
3048
  def __eq__(self, other):
3049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3050
 
3051
  def __ne__(self, other):
3052
    return not (self == other)
3053
 
3054
class updatePassword_args:
3055
  """
3056
  Attributes:
3057
   - username
3058
   - oldPassword
3059
   - newPassword
3060
  """
3061
 
3062
  thrift_spec = (
3063
    None, # 0
3064
    (1, TType.STRING, 'username', None, None, ), # 1
3065
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
3066
    (3, TType.STRING, 'newPassword', None, None, ), # 3
3067
  )
3068
 
3069
  def __init__(self, username=None, oldPassword=None, newPassword=None,):
3070
    self.username = username
3071
    self.oldPassword = oldPassword
3072
    self.newPassword = newPassword
3073
 
3074
  def read(self, iprot):
3075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3077
      return
3078
    iprot.readStructBegin()
3079
    while True:
3080
      (fname, ftype, fid) = iprot.readFieldBegin()
3081
      if ftype == TType.STOP:
3082
        break
3083
      if fid == 1:
3084
        if ftype == TType.STRING:
3085
          self.username = iprot.readString();
3086
        else:
3087
          iprot.skip(ftype)
3088
      elif fid == 2:
3089
        if ftype == TType.STRING:
3090
          self.oldPassword = iprot.readString();
3091
        else:
3092
          iprot.skip(ftype)
3093
      elif fid == 3:
3094
        if ftype == TType.STRING:
3095
          self.newPassword = iprot.readString();
3096
        else:
3097
          iprot.skip(ftype)
3098
      else:
3099
        iprot.skip(ftype)
3100
      iprot.readFieldEnd()
3101
    iprot.readStructEnd()
3102
 
3103
  def write(self, oprot):
3104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3106
      return
3107
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 3108
    if self.username is not None:
494 rajveer 3109
      oprot.writeFieldBegin('username', TType.STRING, 1)
3110
      oprot.writeString(self.username)
3111
      oprot.writeFieldEnd()
3431 rajveer 3112
    if self.oldPassword is not None:
494 rajveer 3113
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
3114
      oprot.writeString(self.oldPassword)
3115
      oprot.writeFieldEnd()
3431 rajveer 3116
    if self.newPassword is not None:
494 rajveer 3117
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
3118
      oprot.writeString(self.newPassword)
3119
      oprot.writeFieldEnd()
3120
    oprot.writeFieldStop()
3121
    oprot.writeStructEnd()
3122
 
3431 rajveer 3123
  def validate(self):
3124
    return
3125
 
3126
 
494 rajveer 3127
  def __repr__(self):
3128
    L = ['%s=%r' % (key, value)
3129
      for key, value in self.__dict__.iteritems()]
3130
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3131
 
3132
  def __eq__(self, other):
3133
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3134
 
3135
  def __ne__(self, other):
3136
    return not (self == other)
3137
 
3138
class updatePassword_result:
3139
  """
3140
  Attributes:
3141
   - success
3142
   - se
3143
  """
3144
 
3145
  thrift_spec = (
3146
    (0, TType.BOOL, 'success', None, None, ), # 0
3147
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3148
  )
3149
 
3150
  def __init__(self, success=None, se=None,):
3151
    self.success = success
3152
    self.se = se
3153
 
3154
  def read(self, iprot):
3155
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3156
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3157
      return
3158
    iprot.readStructBegin()
3159
    while True:
3160
      (fname, ftype, fid) = iprot.readFieldBegin()
3161
      if ftype == TType.STOP:
3162
        break
3163
      if fid == 0:
3164
        if ftype == TType.BOOL:
3165
          self.success = iprot.readBool();
3166
        else:
3167
          iprot.skip(ftype)
3168
      elif fid == 1:
3169
        if ftype == TType.STRUCT:
3170
          self.se = HelperServiceException()
3171
          self.se.read(iprot)
3172
        else:
3173
          iprot.skip(ftype)
3174
      else:
3175
        iprot.skip(ftype)
3176
      iprot.readFieldEnd()
3177
    iprot.readStructEnd()
3178
 
3179
  def write(self, oprot):
3180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3182
      return
3183
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 3184
    if self.success is not None:
494 rajveer 3185
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3186
      oprot.writeBool(self.success)
3187
      oprot.writeFieldEnd()
3431 rajveer 3188
    if self.se is not None:
494 rajveer 3189
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
3190
      self.se.write(oprot)
3191
      oprot.writeFieldEnd()
3192
    oprot.writeFieldStop()
3193
    oprot.writeStructEnd()
3194
 
3431 rajveer 3195
  def validate(self):
3196
    return
3197
 
3198
 
494 rajveer 3199
  def __repr__(self):
3200
    L = ['%s=%r' % (key, value)
3201
      for key, value in self.__dict__.iteritems()]
3202
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3203
 
3204
  def __eq__(self, other):
3205
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3206
 
3207
  def __ne__(self, other):
3208
    return not (self == other)
3209
 
759 chandransh 3210
class authenticateLogisticsUser_args:
3211
  """
3212
  Attributes:
3213
   - username
3214
   - password
3215
  """
494 rajveer 3216
 
759 chandransh 3217
  thrift_spec = (
3218
    None, # 0
3219
    (1, TType.STRING, 'username', None, None, ), # 1
3220
    (2, TType.STRING, 'password', None, None, ), # 2
3221
  )
3222
 
3223
  def __init__(self, username=None, password=None,):
3224
    self.username = username
3225
    self.password = password
3226
 
3227
  def read(self, iprot):
3228
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3229
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3230
      return
3231
    iprot.readStructBegin()
3232
    while True:
3233
      (fname, ftype, fid) = iprot.readFieldBegin()
3234
      if ftype == TType.STOP:
3235
        break
3236
      if fid == 1:
3237
        if ftype == TType.STRING:
3238
          self.username = iprot.readString();
3239
        else:
3240
          iprot.skip(ftype)
3241
      elif fid == 2:
3242
        if ftype == TType.STRING:
3243
          self.password = iprot.readString();
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('authenticateLogisticsUser_args')
3431 rajveer 3256
    if self.username is not None:
759 chandransh 3257
      oprot.writeFieldBegin('username', TType.STRING, 1)
3258
      oprot.writeString(self.username)
3259
      oprot.writeFieldEnd()
3431 rajveer 3260
    if self.password is not None:
759 chandransh 3261
      oprot.writeFieldBegin('password', TType.STRING, 2)
3262
      oprot.writeString(self.password)
3263
      oprot.writeFieldEnd()
3264
    oprot.writeFieldStop()
3265
    oprot.writeStructEnd()
3266
 
3431 rajveer 3267
  def validate(self):
3268
    return
3269
 
3270
 
759 chandransh 3271
  def __repr__(self):
3272
    L = ['%s=%r' % (key, value)
3273
      for key, value in self.__dict__.iteritems()]
3274
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3275
 
3276
  def __eq__(self, other):
3277
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3278
 
3279
  def __ne__(self, other):
3280
    return not (self == other)
3281
 
3282
class authenticateLogisticsUser_result:
3283
  """
3284
  Attributes:
3285
   - success
3286
   - hse
3287
  """
3288
 
3289
  thrift_spec = (
3290
    (0, TType.STRUCT, 'success', (LogisticsUser, LogisticsUser.thrift_spec), None, ), # 0
3291
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3292
  )
3293
 
3294
  def __init__(self, success=None, hse=None,):
3295
    self.success = success
3296
    self.hse = hse
3297
 
3298
  def read(self, iprot):
3299
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3300
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3301
      return
3302
    iprot.readStructBegin()
3303
    while True:
3304
      (fname, ftype, fid) = iprot.readFieldBegin()
3305
      if ftype == TType.STOP:
3306
        break
3307
      if fid == 0:
3308
        if ftype == TType.STRUCT:
3309
          self.success = LogisticsUser()
3310
          self.success.read(iprot)
3311
        else:
3312
          iprot.skip(ftype)
3313
      elif fid == 1:
3314
        if ftype == TType.STRUCT:
3315
          self.hse = HelperServiceException()
3316
          self.hse.read(iprot)
3317
        else:
3318
          iprot.skip(ftype)
3319
      else:
3320
        iprot.skip(ftype)
3321
      iprot.readFieldEnd()
3322
    iprot.readStructEnd()
3323
 
3324
  def write(self, oprot):
3325
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3326
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3327
      return
3328
    oprot.writeStructBegin('authenticateLogisticsUser_result')
3431 rajveer 3329
    if self.success is not None:
759 chandransh 3330
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3331
      self.success.write(oprot)
3332
      oprot.writeFieldEnd()
3431 rajveer 3333
    if self.hse is not None:
759 chandransh 3334
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3335
      self.hse.write(oprot)
3336
      oprot.writeFieldEnd()
3337
    oprot.writeFieldStop()
3338
    oprot.writeStructEnd()
3339
 
3431 rajveer 3340
  def validate(self):
3341
    return
3342
 
3343
 
759 chandransh 3344
  def __repr__(self):
3345
    L = ['%s=%r' % (key, value)
3346
      for key, value in self.__dict__.iteritems()]
3347
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3348
 
3349
  def __eq__(self, other):
3350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3351
 
3352
  def __ne__(self, other):
3353
    return not (self == other)
3354
 
1610 ankur.sing 3355
class authenticateStatisticsUser_args:
3356
  """
3357
  Attributes:
3358
   - username
3359
   - password
3360
  """
759 chandransh 3361
 
1610 ankur.sing 3362
  thrift_spec = (
3363
    None, # 0
3364
    (1, TType.STRING, 'username', None, None, ), # 1
3365
    (2, TType.STRING, 'password', None, None, ), # 2
3366
  )
3367
 
3368
  def __init__(self, username=None, password=None,):
3369
    self.username = username
3370
    self.password = password
3371
 
3372
  def read(self, iprot):
3373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3375
      return
3376
    iprot.readStructBegin()
3377
    while True:
3378
      (fname, ftype, fid) = iprot.readFieldBegin()
3379
      if ftype == TType.STOP:
3380
        break
3381
      if fid == 1:
3382
        if ftype == TType.STRING:
3383
          self.username = iprot.readString();
3384
        else:
3385
          iprot.skip(ftype)
3386
      elif fid == 2:
3387
        if ftype == TType.STRING:
3388
          self.password = iprot.readString();
3389
        else:
3390
          iprot.skip(ftype)
3391
      else:
3392
        iprot.skip(ftype)
3393
      iprot.readFieldEnd()
3394
    iprot.readStructEnd()
3395
 
3396
  def write(self, oprot):
3397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3399
      return
3400
    oprot.writeStructBegin('authenticateStatisticsUser_args')
3431 rajveer 3401
    if self.username is not None:
1610 ankur.sing 3402
      oprot.writeFieldBegin('username', TType.STRING, 1)
3403
      oprot.writeString(self.username)
3404
      oprot.writeFieldEnd()
3431 rajveer 3405
    if self.password is not None:
1610 ankur.sing 3406
      oprot.writeFieldBegin('password', TType.STRING, 2)
3407
      oprot.writeString(self.password)
3408
      oprot.writeFieldEnd()
3409
    oprot.writeFieldStop()
3410
    oprot.writeStructEnd()
3411
 
3431 rajveer 3412
  def validate(self):
3413
    return
3414
 
3415
 
1610 ankur.sing 3416
  def __repr__(self):
3417
    L = ['%s=%r' % (key, value)
3418
      for key, value in self.__dict__.iteritems()]
3419
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3420
 
3421
  def __eq__(self, other):
3422
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3423
 
3424
  def __ne__(self, other):
3425
    return not (self == other)
3426
 
3427
class authenticateStatisticsUser_result:
3428
  """
3429
  Attributes:
3430
   - success
3431
   - hse
3432
  """
3433
 
3434
  thrift_spec = (
3435
    (0, TType.STRUCT, 'success', (StatisticsUser, StatisticsUser.thrift_spec), None, ), # 0
3436
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3437
  )
3438
 
3439
  def __init__(self, success=None, hse=None,):
3440
    self.success = success
3441
    self.hse = hse
3442
 
3443
  def read(self, iprot):
3444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3446
      return
3447
    iprot.readStructBegin()
3448
    while True:
3449
      (fname, ftype, fid) = iprot.readFieldBegin()
3450
      if ftype == TType.STOP:
3451
        break
3452
      if fid == 0:
3453
        if ftype == TType.STRUCT:
3454
          self.success = StatisticsUser()
3455
          self.success.read(iprot)
3456
        else:
3457
          iprot.skip(ftype)
3458
      elif fid == 1:
3459
        if ftype == TType.STRUCT:
3460
          self.hse = HelperServiceException()
3461
          self.hse.read(iprot)
3462
        else:
3463
          iprot.skip(ftype)
3464
      else:
3465
        iprot.skip(ftype)
3466
      iprot.readFieldEnd()
3467
    iprot.readStructEnd()
3468
 
3469
  def write(self, oprot):
3470
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3471
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3472
      return
3473
    oprot.writeStructBegin('authenticateStatisticsUser_result')
3431 rajveer 3474
    if self.success is not None:
1610 ankur.sing 3475
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3476
      self.success.write(oprot)
3477
      oprot.writeFieldEnd()
3431 rajveer 3478
    if self.hse is not None:
1610 ankur.sing 3479
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3480
      self.hse.write(oprot)
3481
      oprot.writeFieldEnd()
3482
    oprot.writeFieldStop()
3483
    oprot.writeStructEnd()
3484
 
3431 rajveer 3485
  def validate(self):
3486
    return
3487
 
3488
 
1610 ankur.sing 3489
  def __repr__(self):
3490
    L = ['%s=%r' % (key, value)
3491
      for key, value in self.__dict__.iteritems()]
3492
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3493
 
3494
  def __eq__(self, other):
3495
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3496
 
3497
  def __ne__(self, other):
3498
    return not (self == other)
3499
 
1891 ankur.sing 3500
class authenticateReportUser_args:
3501
  """
3502
  Attributes:
3503
   - username
3504
   - password
3505
  """
1610 ankur.sing 3506
 
1891 ankur.sing 3507
  thrift_spec = (
3508
    None, # 0
3509
    (1, TType.STRING, 'username', None, None, ), # 1
3510
    (2, TType.STRING, 'password', None, None, ), # 2
3511
  )
3512
 
3513
  def __init__(self, username=None, password=None,):
3514
    self.username = username
3515
    self.password = password
3516
 
3517
  def read(self, iprot):
3518
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3519
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3520
      return
3521
    iprot.readStructBegin()
3522
    while True:
3523
      (fname, ftype, fid) = iprot.readFieldBegin()
3524
      if ftype == TType.STOP:
3525
        break
3526
      if fid == 1:
3527
        if ftype == TType.STRING:
3528
          self.username = iprot.readString();
3529
        else:
3530
          iprot.skip(ftype)
3531
      elif fid == 2:
3532
        if ftype == TType.STRING:
3533
          self.password = iprot.readString();
3534
        else:
3535
          iprot.skip(ftype)
3536
      else:
3537
        iprot.skip(ftype)
3538
      iprot.readFieldEnd()
3539
    iprot.readStructEnd()
3540
 
3541
  def write(self, oprot):
3542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3544
      return
3545
    oprot.writeStructBegin('authenticateReportUser_args')
3431 rajveer 3546
    if self.username is not None:
1891 ankur.sing 3547
      oprot.writeFieldBegin('username', TType.STRING, 1)
3548
      oprot.writeString(self.username)
3549
      oprot.writeFieldEnd()
3431 rajveer 3550
    if self.password is not None:
1891 ankur.sing 3551
      oprot.writeFieldBegin('password', TType.STRING, 2)
3552
      oprot.writeString(self.password)
3553
      oprot.writeFieldEnd()
3554
    oprot.writeFieldStop()
3555
    oprot.writeStructEnd()
3556
 
3431 rajveer 3557
  def validate(self):
3558
    return
3559
 
3560
 
1891 ankur.sing 3561
  def __repr__(self):
3562
    L = ['%s=%r' % (key, value)
3563
      for key, value in self.__dict__.iteritems()]
3564
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3565
 
3566
  def __eq__(self, other):
3567
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3568
 
3569
  def __ne__(self, other):
3570
    return not (self == other)
3571
 
3572
class authenticateReportUser_result:
3573
  """
3574
  Attributes:
3575
   - success
3576
   - hse
3577
  """
3578
 
3579
  thrift_spec = (
3580
    (0, TType.STRUCT, 'success', (ReportUser, ReportUser.thrift_spec), None, ), # 0
3581
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3582
  )
3583
 
3584
  def __init__(self, success=None, hse=None,):
3585
    self.success = success
3586
    self.hse = hse
3587
 
3588
  def read(self, iprot):
3589
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3590
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3591
      return
3592
    iprot.readStructBegin()
3593
    while True:
3594
      (fname, ftype, fid) = iprot.readFieldBegin()
3595
      if ftype == TType.STOP:
3596
        break
3597
      if fid == 0:
3598
        if ftype == TType.STRUCT:
3599
          self.success = ReportUser()
3600
          self.success.read(iprot)
3601
        else:
3602
          iprot.skip(ftype)
3603
      elif fid == 1:
3604
        if ftype == TType.STRUCT:
3605
          self.hse = HelperServiceException()
3606
          self.hse.read(iprot)
3607
        else:
3608
          iprot.skip(ftype)
3609
      else:
3610
        iprot.skip(ftype)
3611
      iprot.readFieldEnd()
3612
    iprot.readStructEnd()
3613
 
3614
  def write(self, oprot):
3615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3617
      return
3618
    oprot.writeStructBegin('authenticateReportUser_result')
3431 rajveer 3619
    if self.success is not None:
1891 ankur.sing 3620
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3621
      self.success.write(oprot)
3622
      oprot.writeFieldEnd()
3431 rajveer 3623
    if self.hse is not None:
1891 ankur.sing 3624
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3625
      self.hse.write(oprot)
3626
      oprot.writeFieldEnd()
3627
    oprot.writeFieldStop()
3628
    oprot.writeStructEnd()
3629
 
3431 rajveer 3630
  def validate(self):
3631
    return
3632
 
3633
 
1891 ankur.sing 3634
  def __repr__(self):
3635
    L = ['%s=%r' % (key, value)
3636
      for key, value in self.__dict__.iteritems()]
3637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3638
 
3639
  def __eq__(self, other):
3640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3641
 
3642
  def __ne__(self, other):
3643
    return not (self == other)
3644
 
3645
class getReports_args:
3646
  """
3647
  Attributes:
3648
   - role
3649
  """
3650
 
3651
  thrift_spec = (
3652
    None, # 0
3653
    (1, TType.I64, 'role', None, None, ), # 1
3654
  )
3655
 
3656
  def __init__(self, role=None,):
3657
    self.role = role
3658
 
3659
  def read(self, iprot):
3660
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3661
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3662
      return
3663
    iprot.readStructBegin()
3664
    while True:
3665
      (fname, ftype, fid) = iprot.readFieldBegin()
3666
      if ftype == TType.STOP:
3667
        break
3668
      if fid == 1:
3669
        if ftype == TType.I64:
3670
          self.role = iprot.readI64();
3671
        else:
3672
          iprot.skip(ftype)
3673
      else:
3674
        iprot.skip(ftype)
3675
      iprot.readFieldEnd()
3676
    iprot.readStructEnd()
3677
 
3678
  def write(self, oprot):
3679
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3680
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3681
      return
3682
    oprot.writeStructBegin('getReports_args')
3431 rajveer 3683
    if self.role is not None:
1891 ankur.sing 3684
      oprot.writeFieldBegin('role', TType.I64, 1)
3685
      oprot.writeI64(self.role)
3686
      oprot.writeFieldEnd()
3687
    oprot.writeFieldStop()
3688
    oprot.writeStructEnd()
3689
 
3431 rajveer 3690
  def validate(self):
3691
    return
3692
 
3693
 
1891 ankur.sing 3694
  def __repr__(self):
3695
    L = ['%s=%r' % (key, value)
3696
      for key, value in self.__dict__.iteritems()]
3697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3698
 
3699
  def __eq__(self, other):
3700
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3701
 
3702
  def __ne__(self, other):
3703
    return not (self == other)
3704
 
3705
class getReports_result:
3706
  """
3707
  Attributes:
3708
   - success
3709
  """
3710
 
3711
  thrift_spec = (
3712
    (0, TType.LIST, 'success', (TType.STRUCT,(Report, Report.thrift_spec)), None, ), # 0
3713
  )
3714
 
3715
  def __init__(self, success=None,):
3716
    self.success = success
3717
 
3718
  def read(self, iprot):
3719
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3720
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3721
      return
3722
    iprot.readStructBegin()
3723
    while True:
3724
      (fname, ftype, fid) = iprot.readFieldBegin()
3725
      if ftype == TType.STOP:
3726
        break
3727
      if fid == 0:
3728
        if ftype == TType.LIST:
3729
          self.success = []
3730
          (_etype33, _size30) = iprot.readListBegin()
3731
          for _i34 in xrange(_size30):
3732
            _elem35 = Report()
3733
            _elem35.read(iprot)
3734
            self.success.append(_elem35)
3735
          iprot.readListEnd()
3736
        else:
3737
          iprot.skip(ftype)
3738
      else:
3739
        iprot.skip(ftype)
3740
      iprot.readFieldEnd()
3741
    iprot.readStructEnd()
3742
 
3743
  def write(self, oprot):
3744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3746
      return
3747
    oprot.writeStructBegin('getReports_result')
3431 rajveer 3748
    if self.success is not None:
1891 ankur.sing 3749
      oprot.writeFieldBegin('success', TType.LIST, 0)
3750
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3751
      for iter36 in self.success:
3752
        iter36.write(oprot)
3753
      oprot.writeListEnd()
3754
      oprot.writeFieldEnd()
3755
    oprot.writeFieldStop()
3756
    oprot.writeStructEnd()
3757
 
3431 rajveer 3758
  def validate(self):
3759
    return
3760
 
3761
 
1891 ankur.sing 3762
  def __repr__(self):
3763
    L = ['%s=%r' % (key, value)
3764
      for key, value in self.__dict__.iteritems()]
3765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3766
 
3767
  def __eq__(self, other):
3768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3769
 
3770
  def __ne__(self, other):
3771
    return not (self == other)
3772
 
2025 ankur.sing 3773
class authenticateCatalogUser_args:
3774
  """
3775
  Attributes:
3776
   - username
3777
   - password
2358 ankur.sing 3778
   - role
2025 ankur.sing 3779
  """
1891 ankur.sing 3780
 
2025 ankur.sing 3781
  thrift_spec = (
3782
    None, # 0
3783
    (1, TType.STRING, 'username', None, None, ), # 1
3784
    (2, TType.STRING, 'password', None, None, ), # 2
2358 ankur.sing 3785
    (3, TType.I64, 'role', None, None, ), # 3
2025 ankur.sing 3786
  )
3787
 
2358 ankur.sing 3788
  def __init__(self, username=None, password=None, role=None,):
2025 ankur.sing 3789
    self.username = username
3790
    self.password = password
2358 ankur.sing 3791
    self.role = role
2025 ankur.sing 3792
 
3793
  def read(self, iprot):
3794
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3795
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3796
      return
3797
    iprot.readStructBegin()
3798
    while True:
3799
      (fname, ftype, fid) = iprot.readFieldBegin()
3800
      if ftype == TType.STOP:
3801
        break
3802
      if fid == 1:
3803
        if ftype == TType.STRING:
3804
          self.username = iprot.readString();
3805
        else:
3806
          iprot.skip(ftype)
3807
      elif fid == 2:
3808
        if ftype == TType.STRING:
3809
          self.password = iprot.readString();
3810
        else:
3811
          iprot.skip(ftype)
2358 ankur.sing 3812
      elif fid == 3:
3813
        if ftype == TType.I64:
3814
          self.role = iprot.readI64();
3815
        else:
3816
          iprot.skip(ftype)
2025 ankur.sing 3817
      else:
3818
        iprot.skip(ftype)
3819
      iprot.readFieldEnd()
3820
    iprot.readStructEnd()
3821
 
3822
  def write(self, oprot):
3823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3825
      return
3826
    oprot.writeStructBegin('authenticateCatalogUser_args')
3431 rajveer 3827
    if self.username is not None:
2025 ankur.sing 3828
      oprot.writeFieldBegin('username', TType.STRING, 1)
3829
      oprot.writeString(self.username)
3830
      oprot.writeFieldEnd()
3431 rajveer 3831
    if self.password is not None:
2025 ankur.sing 3832
      oprot.writeFieldBegin('password', TType.STRING, 2)
3833
      oprot.writeString(self.password)
3834
      oprot.writeFieldEnd()
3431 rajveer 3835
    if self.role is not None:
2358 ankur.sing 3836
      oprot.writeFieldBegin('role', TType.I64, 3)
3837
      oprot.writeI64(self.role)
3838
      oprot.writeFieldEnd()
2025 ankur.sing 3839
    oprot.writeFieldStop()
3840
    oprot.writeStructEnd()
3841
 
3431 rajveer 3842
  def validate(self):
3843
    return
3844
 
3845
 
2025 ankur.sing 3846
  def __repr__(self):
3847
    L = ['%s=%r' % (key, value)
3848
      for key, value in self.__dict__.iteritems()]
3849
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3850
 
3851
  def __eq__(self, other):
3852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3853
 
3854
  def __ne__(self, other):
3855
    return not (self == other)
3856
 
3857
class authenticateCatalogUser_result:
3858
  """
3859
  Attributes:
3860
   - success
3861
   - hse
3862
  """
3863
 
3864
  thrift_spec = (
3865
    (0, TType.STRUCT, 'success', (CatalogDashboardUser, CatalogDashboardUser.thrift_spec), None, ), # 0
3866
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3867
  )
3868
 
3869
  def __init__(self, success=None, hse=None,):
3870
    self.success = success
3871
    self.hse = hse
3872
 
3873
  def read(self, iprot):
3874
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3875
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3876
      return
3877
    iprot.readStructBegin()
3878
    while True:
3879
      (fname, ftype, fid) = iprot.readFieldBegin()
3880
      if ftype == TType.STOP:
3881
        break
3882
      if fid == 0:
3883
        if ftype == TType.STRUCT:
3884
          self.success = CatalogDashboardUser()
3885
          self.success.read(iprot)
3886
        else:
3887
          iprot.skip(ftype)
3888
      elif fid == 1:
3889
        if ftype == TType.STRUCT:
3890
          self.hse = HelperServiceException()
3891
          self.hse.read(iprot)
3892
        else:
3893
          iprot.skip(ftype)
3894
      else:
3895
        iprot.skip(ftype)
3896
      iprot.readFieldEnd()
3897
    iprot.readStructEnd()
3898
 
3899
  def write(self, oprot):
3900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3902
      return
3903
    oprot.writeStructBegin('authenticateCatalogUser_result')
3431 rajveer 3904
    if self.success is not None:
2025 ankur.sing 3905
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3906
      self.success.write(oprot)
3907
      oprot.writeFieldEnd()
3431 rajveer 3908
    if self.hse is not None:
2025 ankur.sing 3909
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3910
      self.hse.write(oprot)
3911
      oprot.writeFieldEnd()
3912
    oprot.writeFieldStop()
3913
    oprot.writeStructEnd()
3914
 
3431 rajveer 3915
  def validate(self):
3916
    return
3917
 
3918
 
2025 ankur.sing 3919
  def __repr__(self):
3920
    L = ['%s=%r' % (key, value)
3921
      for key, value in self.__dict__.iteritems()]
3922
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3923
 
3924
  def __eq__(self, other):
3925
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3926
 
3927
  def __ne__(self, other):
3928
    return not (self == other)
4544 varun.gupt 3929
 
3930
class shareEntities_args:
3931
  """
3932
  Attributes:
3933
   - entityIds
3934
   - email
3935
  """
3936
 
3937
  thrift_spec = (
3938
    None, # 0
3939
    (1, TType.LIST, 'entityIds', (TType.I64,None), None, ), # 1
3940
    (2, TType.STRING, 'email', None, None, ), # 2
3941
  )
3942
 
3943
  def __init__(self, entityIds=None, email=None,):
3944
    self.entityIds = entityIds
3945
    self.email = email
3946
 
3947
  def read(self, iprot):
3948
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3949
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3950
      return
3951
    iprot.readStructBegin()
3952
    while True:
3953
      (fname, ftype, fid) = iprot.readFieldBegin()
3954
      if ftype == TType.STOP:
3955
        break
3956
      if fid == 1:
3957
        if ftype == TType.LIST:
3958
          self.entityIds = []
3959
          (_etype40, _size37) = iprot.readListBegin()
3960
          for _i41 in xrange(_size37):
3961
            _elem42 = iprot.readI64();
3962
            self.entityIds.append(_elem42)
3963
          iprot.readListEnd()
3964
        else:
3965
          iprot.skip(ftype)
3966
      elif fid == 2:
3967
        if ftype == TType.STRING:
3968
          self.email = iprot.readString();
3969
        else:
3970
          iprot.skip(ftype)
3971
      else:
3972
        iprot.skip(ftype)
3973
      iprot.readFieldEnd()
3974
    iprot.readStructEnd()
3975
 
3976
  def write(self, oprot):
3977
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3978
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3979
      return
3980
    oprot.writeStructBegin('shareEntities_args')
3981
    if self.entityIds is not None:
3982
      oprot.writeFieldBegin('entityIds', TType.LIST, 1)
3983
      oprot.writeListBegin(TType.I64, len(self.entityIds))
3984
      for iter43 in self.entityIds:
3985
        oprot.writeI64(iter43)
3986
      oprot.writeListEnd()
3987
      oprot.writeFieldEnd()
3988
    if self.email is not None:
3989
      oprot.writeFieldBegin('email', TType.STRING, 2)
3990
      oprot.writeString(self.email)
3991
      oprot.writeFieldEnd()
3992
    oprot.writeFieldStop()
3993
    oprot.writeStructEnd()
3994
 
3995
  def validate(self):
3996
    return
3997
 
3998
 
3999
  def __repr__(self):
4000
    L = ['%s=%r' % (key, value)
4001
      for key, value in self.__dict__.iteritems()]
4002
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4003
 
4004
  def __eq__(self, other):
4005
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4006
 
4007
  def __ne__(self, other):
4008
    return not (self == other)
4009
 
4010
class shareEntities_result:
4011
  """
4012
  Attributes:
4013
   - hse
4014
  """
4015
 
4016
  thrift_spec = (
4017
    None, # 0
4018
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
4019
  )
4020
 
4021
  def __init__(self, hse=None,):
4022
    self.hse = hse
4023
 
4024
  def read(self, iprot):
4025
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4026
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4027
      return
4028
    iprot.readStructBegin()
4029
    while True:
4030
      (fname, ftype, fid) = iprot.readFieldBegin()
4031
      if ftype == TType.STOP:
4032
        break
4033
      if fid == 1:
4034
        if ftype == TType.STRUCT:
4035
          self.hse = HelperServiceException()
4036
          self.hse.read(iprot)
4037
        else:
4038
          iprot.skip(ftype)
4039
      else:
4040
        iprot.skip(ftype)
4041
      iprot.readFieldEnd()
4042
    iprot.readStructEnd()
4043
 
4044
  def write(self, oprot):
4045
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4046
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4047
      return
4048
    oprot.writeStructBegin('shareEntities_result')
4049
    if self.hse is not None:
4050
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
4051
      self.hse.write(oprot)
4052
      oprot.writeFieldEnd()
4053
    oprot.writeFieldStop()
4054
    oprot.writeStructEnd()
4055
 
4056
  def validate(self):
4057
    return
4058
 
4059
 
4060
  def __repr__(self):
4061
    L = ['%s=%r' % (key, value)
4062
      for key, value in self.__dict__.iteritems()]
4063
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4064
 
4065
  def __eq__(self, other):
4066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4067
 
4068
  def __ne__(self, other):
4069
    return not (self == other)
4691 mandeep.dh 4070
 
4071
class getAgents_args:
4072
 
4073
  thrift_spec = (
4074
  )
4075
 
4076
  def read(self, iprot):
4077
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4078
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4079
      return
4080
    iprot.readStructBegin()
4081
    while True:
4082
      (fname, ftype, fid) = iprot.readFieldBegin()
4083
      if ftype == TType.STOP:
4084
        break
4085
      else:
4086
        iprot.skip(ftype)
4087
      iprot.readFieldEnd()
4088
    iprot.readStructEnd()
4089
 
4090
  def write(self, oprot):
4091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4093
      return
4094
    oprot.writeStructBegin('getAgents_args')
4095
    oprot.writeFieldStop()
4096
    oprot.writeStructEnd()
4097
 
4098
  def validate(self):
4099
    return
4100
 
4101
 
4102
  def __repr__(self):
4103
    L = ['%s=%r' % (key, value)
4104
      for key, value in self.__dict__.iteritems()]
4105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4106
 
4107
  def __eq__(self, other):
4108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4109
 
4110
  def __ne__(self, other):
4111
    return not (self == other)
4112
 
4113
class getAgents_result:
4114
  """
4115
  Attributes:
4116
   - success
4117
  """
4118
 
4119
  thrift_spec = (
4120
    (0, TType.LIST, 'success', (TType.STRUCT,(Agent, Agent.thrift_spec)), None, ), # 0
4121
  )
4122
 
4123
  def __init__(self, success=None,):
4124
    self.success = success
4125
 
4126
  def read(self, iprot):
4127
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4128
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4129
      return
4130
    iprot.readStructBegin()
4131
    while True:
4132
      (fname, ftype, fid) = iprot.readFieldBegin()
4133
      if ftype == TType.STOP:
4134
        break
4135
      if fid == 0:
4136
        if ftype == TType.LIST:
4137
          self.success = []
4138
          (_etype47, _size44) = iprot.readListBegin()
4139
          for _i48 in xrange(_size44):
4140
            _elem49 = Agent()
4141
            _elem49.read(iprot)
4142
            self.success.append(_elem49)
4143
          iprot.readListEnd()
4144
        else:
4145
          iprot.skip(ftype)
4146
      else:
4147
        iprot.skip(ftype)
4148
      iprot.readFieldEnd()
4149
    iprot.readStructEnd()
4150
 
4151
  def write(self, oprot):
4152
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4153
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4154
      return
4155
    oprot.writeStructBegin('getAgents_result')
4156
    if self.success is not None:
4157
      oprot.writeFieldBegin('success', TType.LIST, 0)
4158
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4159
      for iter50 in self.success:
4160
        iter50.write(oprot)
4161
      oprot.writeListEnd()
4162
      oprot.writeFieldEnd()
4163
    oprot.writeFieldStop()
4164
    oprot.writeStructEnd()
4165
 
4166
  def validate(self):
4167
    return
4168
 
4169
 
4170
  def __repr__(self):
4171
    L = ['%s=%r' % (key, value)
4172
      for key, value in self.__dict__.iteritems()]
4173
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4174
 
4175
  def __eq__(self, other):
4176
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4177
 
4178
  def __ne__(self, other):
4179
    return not (self == other)
4180
 
4181
class validateLogIn_args:
4182
  """
4183
  Attributes:
4184
   - emailId
4185
   - password
4186
  """
4187
 
4188
  thrift_spec = (
4189
    None, # 0
4190
    (1, TType.STRING, 'emailId', None, None, ), # 1
4191
    (2, TType.STRING, 'password', None, None, ), # 2
4192
  )
4193
 
4194
  def __init__(self, emailId=None, password=None,):
4195
    self.emailId = emailId
4196
    self.password = password
4197
 
4198
  def read(self, iprot):
4199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4201
      return
4202
    iprot.readStructBegin()
4203
    while True:
4204
      (fname, ftype, fid) = iprot.readFieldBegin()
4205
      if ftype == TType.STOP:
4206
        break
4207
      if fid == 1:
4208
        if ftype == TType.STRING:
4209
          self.emailId = iprot.readString();
4210
        else:
4211
          iprot.skip(ftype)
4212
      elif fid == 2:
4213
        if ftype == TType.STRING:
4214
          self.password = iprot.readString();
4215
        else:
4216
          iprot.skip(ftype)
4217
      else:
4218
        iprot.skip(ftype)
4219
      iprot.readFieldEnd()
4220
    iprot.readStructEnd()
4221
 
4222
  def write(self, oprot):
4223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4225
      return
4226
    oprot.writeStructBegin('validateLogIn_args')
4227
    if self.emailId is not None:
4228
      oprot.writeFieldBegin('emailId', TType.STRING, 1)
4229
      oprot.writeString(self.emailId)
4230
      oprot.writeFieldEnd()
4231
    if self.password is not None:
4232
      oprot.writeFieldBegin('password', TType.STRING, 2)
4233
      oprot.writeString(self.password)
4234
      oprot.writeFieldEnd()
4235
    oprot.writeFieldStop()
4236
    oprot.writeStructEnd()
4237
 
4238
  def validate(self):
4239
    return
4240
 
4241
 
4242
  def __repr__(self):
4243
    L = ['%s=%r' % (key, value)
4244
      for key, value in self.__dict__.iteritems()]
4245
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4246
 
4247
  def __eq__(self, other):
4248
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4249
 
4250
  def __ne__(self, other):
4251
    return not (self == other)
4252
 
4253
class validateLogIn_result:
4254
  """
4255
  Attributes:
4256
   - success
4257
  """
4258
 
4259
  thrift_spec = (
4260
    (0, TType.BOOL, 'success', None, None, ), # 0
4261
  )
4262
 
4263
  def __init__(self, success=None,):
4264
    self.success = success
4265
 
4266
  def read(self, iprot):
4267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4269
      return
4270
    iprot.readStructBegin()
4271
    while True:
4272
      (fname, ftype, fid) = iprot.readFieldBegin()
4273
      if ftype == TType.STOP:
4274
        break
4275
      if fid == 0:
4276
        if ftype == TType.BOOL:
4277
          self.success = iprot.readBool();
4278
        else:
4279
          iprot.skip(ftype)
4280
      else:
4281
        iprot.skip(ftype)
4282
      iprot.readFieldEnd()
4283
    iprot.readStructEnd()
4284
 
4285
  def write(self, oprot):
4286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4288
      return
4289
    oprot.writeStructBegin('validateLogIn_result')
4290
    if self.success is not None:
4291
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4292
      oprot.writeBool(self.success)
4293
      oprot.writeFieldEnd()
4294
    oprot.writeFieldStop()
4295
    oprot.writeStructEnd()
4296
 
4297
  def validate(self):
4298
    return
4299
 
4300
 
4301
  def __repr__(self):
4302
    L = ['%s=%r' % (key, value)
4303
      for key, value in self.__dict__.iteritems()]
4304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4305
 
4306
  def __eq__(self, other):
4307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4308
 
4309
  def __ne__(self, other):
4310
    return not (self == other)
4311
 
4312
class updatePasswordForAgent_args:
4313
  """
4314
  Attributes:
4315
   - agentEmailId
4316
   - password
4317
  """
4318
 
4319
  thrift_spec = (
4320
    None, # 0
4321
    (1, TType.STRING, 'agentEmailId', None, None, ), # 1
4322
    (2, TType.STRING, 'password', None, None, ), # 2
4323
  )
4324
 
4325
  def __init__(self, agentEmailId=None, password=None,):
4326
    self.agentEmailId = agentEmailId
4327
    self.password = password
4328
 
4329
  def read(self, iprot):
4330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4332
      return
4333
    iprot.readStructBegin()
4334
    while True:
4335
      (fname, ftype, fid) = iprot.readFieldBegin()
4336
      if ftype == TType.STOP:
4337
        break
4338
      if fid == 1:
4339
        if ftype == TType.STRING:
4340
          self.agentEmailId = iprot.readString();
4341
        else:
4342
          iprot.skip(ftype)
4343
      elif fid == 2:
4344
        if ftype == TType.STRING:
4345
          self.password = iprot.readString();
4346
        else:
4347
          iprot.skip(ftype)
4348
      else:
4349
        iprot.skip(ftype)
4350
      iprot.readFieldEnd()
4351
    iprot.readStructEnd()
4352
 
4353
  def write(self, oprot):
4354
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4355
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4356
      return
4357
    oprot.writeStructBegin('updatePasswordForAgent_args')
4358
    if self.agentEmailId is not None:
4359
      oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
4360
      oprot.writeString(self.agentEmailId)
4361
      oprot.writeFieldEnd()
4362
    if self.password is not None:
4363
      oprot.writeFieldBegin('password', TType.STRING, 2)
4364
      oprot.writeString(self.password)
4365
      oprot.writeFieldEnd()
4366
    oprot.writeFieldStop()
4367
    oprot.writeStructEnd()
4368
 
4369
  def validate(self):
4370
    return
4371
 
4372
 
4373
  def __repr__(self):
4374
    L = ['%s=%r' % (key, value)
4375
      for key, value in self.__dict__.iteritems()]
4376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4377
 
4378
  def __eq__(self, other):
4379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4380
 
4381
  def __ne__(self, other):
4382
    return not (self == other)
4383
 
4384
class updatePasswordForAgent_result:
4385
 
4386
  thrift_spec = (
4387
  )
4388
 
4389
  def read(self, iprot):
4390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4392
      return
4393
    iprot.readStructBegin()
4394
    while True:
4395
      (fname, ftype, fid) = iprot.readFieldBegin()
4396
      if ftype == TType.STOP:
4397
        break
4398
      else:
4399
        iprot.skip(ftype)
4400
      iprot.readFieldEnd()
4401
    iprot.readStructEnd()
4402
 
4403
  def write(self, oprot):
4404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4406
      return
4407
    oprot.writeStructBegin('updatePasswordForAgent_result')
4408
    oprot.writeFieldStop()
4409
    oprot.writeStructEnd()
4410
 
4411
  def validate(self):
4412
    return
4413
 
4414
 
4415
  def __repr__(self):
4416
    L = ['%s=%r' % (key, value)
4417
      for key, value in self.__dict__.iteritems()]
4418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4419
 
4420
  def __eq__(self, other):
4421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4422
 
4423
  def __ne__(self, other):
4424
    return not (self == other)
4425
 
4426
class getRoleNamesForAgent_args:
4427
  """
4428
  Attributes:
4429
   - agentEmailId
4430
  """
4431
 
4432
  thrift_spec = (
4433
    None, # 0
4434
    (1, TType.STRING, 'agentEmailId', None, None, ), # 1
4435
  )
4436
 
4437
  def __init__(self, agentEmailId=None,):
4438
    self.agentEmailId = agentEmailId
4439
 
4440
  def read(self, iprot):
4441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4443
      return
4444
    iprot.readStructBegin()
4445
    while True:
4446
      (fname, ftype, fid) = iprot.readFieldBegin()
4447
      if ftype == TType.STOP:
4448
        break
4449
      if fid == 1:
4450
        if ftype == TType.STRING:
4451
          self.agentEmailId = iprot.readString();
4452
        else:
4453
          iprot.skip(ftype)
4454
      else:
4455
        iprot.skip(ftype)
4456
      iprot.readFieldEnd()
4457
    iprot.readStructEnd()
4458
 
4459
  def write(self, oprot):
4460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4462
      return
4463
    oprot.writeStructBegin('getRoleNamesForAgent_args')
4464
    if self.agentEmailId is not None:
4465
      oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
4466
      oprot.writeString(self.agentEmailId)
4467
      oprot.writeFieldEnd()
4468
    oprot.writeFieldStop()
4469
    oprot.writeStructEnd()
4470
 
4471
  def validate(self):
4472
    return
4473
 
4474
 
4475
  def __repr__(self):
4476
    L = ['%s=%r' % (key, value)
4477
      for key, value in self.__dict__.iteritems()]
4478
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4479
 
4480
  def __eq__(self, other):
4481
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4482
 
4483
  def __ne__(self, other):
4484
    return not (self == other)
4485
 
4486
class getRoleNamesForAgent_result:
4487
  """
4488
  Attributes:
4489
   - success
4490
  """
4491
 
4492
  thrift_spec = (
4493
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
4494
  )
4495
 
4496
  def __init__(self, success=None,):
4497
    self.success = success
4498
 
4499
  def read(self, iprot):
4500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4502
      return
4503
    iprot.readStructBegin()
4504
    while True:
4505
      (fname, ftype, fid) = iprot.readFieldBegin()
4506
      if ftype == TType.STOP:
4507
        break
4508
      if fid == 0:
4509
        if ftype == TType.LIST:
4510
          self.success = []
4511
          (_etype54, _size51) = iprot.readListBegin()
4512
          for _i55 in xrange(_size51):
4513
            _elem56 = iprot.readString();
4514
            self.success.append(_elem56)
4515
          iprot.readListEnd()
4516
        else:
4517
          iprot.skip(ftype)
4518
      else:
4519
        iprot.skip(ftype)
4520
      iprot.readFieldEnd()
4521
    iprot.readStructEnd()
4522
 
4523
  def write(self, oprot):
4524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4526
      return
4527
    oprot.writeStructBegin('getRoleNamesForAgent_result')
4528
    if self.success is not None:
4529
      oprot.writeFieldBegin('success', TType.LIST, 0)
4530
      oprot.writeListBegin(TType.STRING, len(self.success))
4531
      for iter57 in self.success:
4532
        oprot.writeString(iter57)
4533
      oprot.writeListEnd()
4534
      oprot.writeFieldEnd()
4535
    oprot.writeFieldStop()
4536
    oprot.writeStructEnd()
4537
 
4538
  def validate(self):
4539
    return
4540
 
4541
 
4542
  def __repr__(self):
4543
    L = ['%s=%r' % (key, value)
4544
      for key, value in self.__dict__.iteritems()]
4545
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4546
 
4547
  def __eq__(self, other):
4548
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4549
 
4550
  def __ne__(self, other):
4551
    return not (self == other)
4552
 
4553
class getPermissionsForRoleName_args:
4554
  """
4555
  Attributes:
4556
   - roleName
4557
  """
4558
 
4559
  thrift_spec = (
4560
    None, # 0
4561
    (1, TType.STRING, 'roleName', None, None, ), # 1
4562
  )
4563
 
4564
  def __init__(self, roleName=None,):
4565
    self.roleName = roleName
4566
 
4567
  def read(self, iprot):
4568
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4569
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4570
      return
4571
    iprot.readStructBegin()
4572
    while True:
4573
      (fname, ftype, fid) = iprot.readFieldBegin()
4574
      if ftype == TType.STOP:
4575
        break
4576
      if fid == 1:
4577
        if ftype == TType.STRING:
4578
          self.roleName = iprot.readString();
4579
        else:
4580
          iprot.skip(ftype)
4581
      else:
4582
        iprot.skip(ftype)
4583
      iprot.readFieldEnd()
4584
    iprot.readStructEnd()
4585
 
4586
  def write(self, oprot):
4587
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4588
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4589
      return
4590
    oprot.writeStructBegin('getPermissionsForRoleName_args')
4591
    if self.roleName is not None:
4592
      oprot.writeFieldBegin('roleName', TType.STRING, 1)
4593
      oprot.writeString(self.roleName)
4594
      oprot.writeFieldEnd()
4595
    oprot.writeFieldStop()
4596
    oprot.writeStructEnd()
4597
 
4598
  def validate(self):
4599
    return
4600
 
4601
 
4602
  def __repr__(self):
4603
    L = ['%s=%r' % (key, value)
4604
      for key, value in self.__dict__.iteritems()]
4605
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4606
 
4607
  def __eq__(self, other):
4608
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4609
 
4610
  def __ne__(self, other):
4611
    return not (self == other)
4612
 
4613
class getPermissionsForRoleName_result:
4614
  """
4615
  Attributes:
4616
   - success
4617
  """
4618
 
4619
  thrift_spec = (
4620
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
4621
  )
4622
 
4623
  def __init__(self, success=None,):
4624
    self.success = success
4625
 
4626
  def read(self, iprot):
4627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4629
      return
4630
    iprot.readStructBegin()
4631
    while True:
4632
      (fname, ftype, fid) = iprot.readFieldBegin()
4633
      if ftype == TType.STOP:
4634
        break
4635
      if fid == 0:
4636
        if ftype == TType.LIST:
4637
          self.success = []
4638
          (_etype61, _size58) = iprot.readListBegin()
4639
          for _i62 in xrange(_size58):
4640
            _elem63 = iprot.readString();
4641
            self.success.append(_elem63)
4642
          iprot.readListEnd()
4643
        else:
4644
          iprot.skip(ftype)
4645
      else:
4646
        iprot.skip(ftype)
4647
      iprot.readFieldEnd()
4648
    iprot.readStructEnd()
4649
 
4650
  def write(self, oprot):
4651
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4652
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4653
      return
4654
    oprot.writeStructBegin('getPermissionsForRoleName_result')
4655
    if self.success is not None:
4656
      oprot.writeFieldBegin('success', TType.LIST, 0)
4657
      oprot.writeListBegin(TType.STRING, len(self.success))
4658
      for iter64 in self.success:
4659
        oprot.writeString(iter64)
4660
      oprot.writeListEnd()
4661
      oprot.writeFieldEnd()
4662
    oprot.writeFieldStop()
4663
    oprot.writeStructEnd()
4664
 
4665
  def validate(self):
4666
    return
4667
 
4668
 
4669
  def __repr__(self):
4670
    L = ['%s=%r' % (key, value)
4671
      for key, value in self.__dict__.iteritems()]
4672
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4673
 
4674
  def __eq__(self, other):
4675
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4676
 
4677
  def __ne__(self, other):
4678
    return not (self == other)