Subversion Repositories SmartDukaan

Rev

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