Subversion Repositories SmartDukaan

Rev

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