Subversion Repositories SmartDukaan

Rev

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