Subversion Repositories SmartDukaan

Rev

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