Subversion Repositories SmartDukaan

Rev

Rev 8020 | Rev 12696 | 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):
8020 rajveer 20
  def saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId):
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
8020 rajveer 33
     - sourceId
1395 varun.gupt 34
    """
35
    pass
36
 
3086 rajveer 37
  def getEmailsToBeSent(self, ):
1422 varun.gupt 38
    """
2783 chandransh 39
    Retreives all the emails pending for dispatch
1422 varun.gupt 40
    """
41
    pass
42
 
43
  def markEmailAsSent(self, emailId):
44
    """
2783 chandransh 45
    Marks email as sent after successful dispatch
3431 rajveer 46
 
1422 varun.gupt 47
    Parameters:
48
     - emailId
49
    """
50
    pass
51
 
349 ashish 52
  def sendMail(self, mail):
53
    """
54
    Parameters:
55
     - mail
56
    """
57
    pass
58
 
59
  def sendText(self, message):
60
    """
61
    Parameters:
62
     - message
63
    """
64
    pass
65
 
66
  def addMessage(self, message):
67
    """
68
    Parameters:
69
     - message
70
    """
71
    pass
72
 
73
  def updateMessage(self, id, message):
74
    """
75
    Parameters:
76
     - id
77
     - message
78
    """
79
    pass
80
 
81
  def getMessage(self, id):
82
    """
83
    Parameters:
84
     - id
85
    """
86
    pass
87
 
88
  def getSubstitutedMessage(self, id, params):
89
    """
90
    Parameters:
91
     - id
92
     - params
93
    """
94
    pass
95
 
494 rajveer 96
  def addUser(self, username, password, warehouseId):
97
    """
98
    Parameters:
99
     - username
100
     - password
101
     - warehouseId
102
    """
103
    pass
349 ashish 104
 
494 rajveer 105
  def deleteUser(self, username):
106
    """
107
    Parameters:
108
     - username
109
    """
110
    pass
111
 
2447 chandransh 112
  def authenticateDashboardUser(self, username, password):
494 rajveer 113
    """
2447 chandransh 114
    Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
115
    The loggedOn timestamp for the dashboard user is updated .
3431 rajveer 116
 
494 rajveer 117
    Parameters:
118
     - username
119
     - password
120
    """
121
    pass
122
 
123
  def updatePassword(self, username, oldPassword, newPassword):
124
    """
2447 chandransh 125
    Update the password of the dashboard user. Currently, there is no place where this method is called.
3431 rajveer 126
 
494 rajveer 127
    Parameters:
128
     - username
129
     - oldPassword
130
     - newPassword
131
    """
132
    pass
133
 
759 chandransh 134
  def authenticateLogisticsUser(self, username, password):
135
    """
136
    Returns the LogisticsUser struct associated with the given username and password if they match.
137
    Throws an exception otherwise.
3431 rajveer 138
 
759 chandransh 139
    Parameters:
140
     - username
141
     - password
142
    """
143
    pass
494 rajveer 144
 
1610 ankur.sing 145
  def authenticateStatisticsUser(self, username, password):
146
    """
147
    Returns the StatisticsUser struct associated with the given username and password if they match.
148
    Throws an exception otherwise.
3431 rajveer 149
 
1610 ankur.sing 150
    Parameters:
151
     - username
152
     - password
153
    """
154
    pass
759 chandransh 155
 
1891 ankur.sing 156
  def authenticateReportUser(self, username, password):
157
    """
158
    Returns the ReportUser struct associated with the given username and password if they match.
159
    Throws an exception otherwise.
3431 rajveer 160
 
1891 ankur.sing 161
    Parameters:
162
     - username
163
     - password
164
    """
165
    pass
1610 ankur.sing 166
 
1891 ankur.sing 167
  def getReports(self, role):
168
    """
169
    Returns list of reports which are configured for the given role.
3431 rajveer 170
 
1891 ankur.sing 171
    Parameters:
172
     - role
173
    """
174
    pass
175
 
6788 rajveer 176
  def authenticateCatalogUser(self, username, password):
2025 ankur.sing 177
    """
2358 ankur.sing 178
    Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2025 ankur.sing 179
    Throws an exception otherwise.
3431 rajveer 180
 
2025 ankur.sing 181
    Parameters:
182
     - username
183
     - password
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
 
7221 kshitij.so 267
  def getOrderDeliveryMail(self, orderId):
268
    """
269
    Parameters:
270
     - orderId
271
    """
272
    pass
6322 amar.kumar 273
 
7410 amar.kumar 274
  def getWarehouseIdsForAgent(self, agentEmailId):
275
    """
276
    Parameters:
277
     - agentEmailId
278
    """
279
    pass
7221 kshitij.so 280
 
12691 manish.sha 281
  def saveUserSmsForSending(self, userId, mobileNo, text, type):
282
    """
283
    Parameters:
284
     - userId
285
     - mobileNo
286
     - text
287
     - type
288
    """
289
    pass
7410 amar.kumar 290
 
12691 manish.sha 291
  def getSmsToBeSent(self, ):
292
    pass
293
 
294
  def addUserSmsInfo(self, userSmsInfo):
295
    """
296
    Parameters:
297
     - userSmsInfo
298
    """
299
    pass
300
 
301
  def updateUserSmsInfo(self, userSmsInfo):
302
    """
303
    Parameters:
304
     - userSmsInfo
305
    """
306
    pass
307
 
308
  def getUserSmsInfo(self, userId):
309
    """
310
    Parameters:
311
     - userId
312
    """
313
    pass
314
 
315
  def getAllUsersSmsInfo(self, dndStatus, smsSubscribed):
316
    """
317
    Parameters:
318
     - dndStatus
319
     - smsSubscribed
320
    """
321
    pass
322
 
323
  def listSmsToGetDeliveryInfo(self, ):
324
    pass
325
 
326
  def markMessagesAsSentToOperator(self, userSmsList):
327
    """
328
    Parameters:
329
     - userSmsList
330
    """
331
    pass
332
 
333
  def markMessagesAsSubmittedToSmsc(self, userSmsList):
334
    """
335
    Parameters:
336
     - userSmsList
337
    """
338
    pass
339
 
340
  def markMessagesAsSent(self, userSmsList):
341
    """
342
    Parameters:
343
     - userSmsList
344
    """
345
    pass
346
 
347
  def markMessagesAsRetry(self, userSmsList):
348
    """
349
    Parameters:
350
     - userSmsList
351
    """
352
    pass
353
 
354
 
3376 rajveer 355
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
349 ashish 356
  def __init__(self, iprot, oprot=None):
3376 rajveer 357
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
349 ashish 358
 
8020 rajveer 359
  def saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId):
1395 varun.gupt 360
    """
3206 mandeep.dh 361
    Save email details, to be sent later; Also returns its identifier.
3431 rajveer 362
 
1395 varun.gupt 363
    Parameters:
364
     - emailTo
365
     - emailFrom
366
     - subject
367
     - body
368
     - source
369
     - emailType
5864 rajveer 370
     - cc
371
     - bcc
8020 rajveer 372
     - sourceId
1395 varun.gupt 373
    """
8020 rajveer 374
    self.send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId)
3206 mandeep.dh 375
    return self.recv_saveUserEmailForSending()
1395 varun.gupt 376
 
8020 rajveer 377
  def send_saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId):
1395 varun.gupt 378
    self._oprot.writeMessageBegin('saveUserEmailForSending', TMessageType.CALL, self._seqid)
379
    args = saveUserEmailForSending_args()
380
    args.emailTo = emailTo
381
    args.emailFrom = emailFrom
382
    args.subject = subject
383
    args.body = body
384
    args.source = source
385
    args.emailType = emailType
5864 rajveer 386
    args.cc = cc
387
    args.bcc = bcc
8020 rajveer 388
    args.sourceId = sourceId
1395 varun.gupt 389
    args.write(self._oprot)
390
    self._oprot.writeMessageEnd()
391
    self._oprot.trans.flush()
392
 
393
  def recv_saveUserEmailForSending(self, ):
394
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
395
    if mtype == TMessageType.EXCEPTION:
396
      x = TApplicationException()
397
      x.read(self._iprot)
398
      self._iprot.readMessageEnd()
399
      raise x
400
    result = saveUserEmailForSending_result()
401
    result.read(self._iprot)
402
    self._iprot.readMessageEnd()
3431 rajveer 403
    if result.success is not None:
3206 mandeep.dh 404
      return result.success
3431 rajveer 405
    if result.se is not None:
1395 varun.gupt 406
      raise result.se
3206 mandeep.dh 407
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 408
 
3086 rajveer 409
  def getEmailsToBeSent(self, ):
1422 varun.gupt 410
    """
2783 chandransh 411
    Retreives all the emails pending for dispatch
1422 varun.gupt 412
    """
3086 rajveer 413
    self.send_getEmailsToBeSent()
1422 varun.gupt 414
    return self.recv_getEmailsToBeSent()
415
 
3086 rajveer 416
  def send_getEmailsToBeSent(self, ):
1422 varun.gupt 417
    self._oprot.writeMessageBegin('getEmailsToBeSent', TMessageType.CALL, self._seqid)
418
    args = getEmailsToBeSent_args()
419
    args.write(self._oprot)
420
    self._oprot.writeMessageEnd()
421
    self._oprot.trans.flush()
422
 
423
  def recv_getEmailsToBeSent(self, ):
424
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
425
    if mtype == TMessageType.EXCEPTION:
426
      x = TApplicationException()
427
      x.read(self._iprot)
428
      self._iprot.readMessageEnd()
429
      raise x
430
    result = getEmailsToBeSent_result()
431
    result.read(self._iprot)
432
    self._iprot.readMessageEnd()
3431 rajveer 433
    if result.success is not None:
1422 varun.gupt 434
      return result.success
3431 rajveer 435
    if result.se is not None:
1422 varun.gupt 436
      raise result.se
437
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
438
 
439
  def markEmailAsSent(self, emailId):
440
    """
2783 chandransh 441
    Marks email as sent after successful dispatch
3431 rajveer 442
 
1422 varun.gupt 443
    Parameters:
444
     - emailId
445
    """
446
    self.send_markEmailAsSent(emailId)
447
    self.recv_markEmailAsSent()
448
 
449
  def send_markEmailAsSent(self, emailId):
450
    self._oprot.writeMessageBegin('markEmailAsSent', TMessageType.CALL, self._seqid)
451
    args = markEmailAsSent_args()
452
    args.emailId = emailId
453
    args.write(self._oprot)
454
    self._oprot.writeMessageEnd()
455
    self._oprot.trans.flush()
456
 
457
  def recv_markEmailAsSent(self, ):
458
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
459
    if mtype == TMessageType.EXCEPTION:
460
      x = TApplicationException()
461
      x.read(self._iprot)
462
      self._iprot.readMessageEnd()
463
      raise x
464
    result = markEmailAsSent_result()
465
    result.read(self._iprot)
466
    self._iprot.readMessageEnd()
3431 rajveer 467
    if result.se is not None:
1422 varun.gupt 468
      raise result.se
469
    return
470
 
349 ashish 471
  def sendMail(self, mail):
472
    """
473
    Parameters:
474
     - mail
475
    """
476
    self.send_sendMail(mail)
477
    self.recv_sendMail()
478
 
479
  def send_sendMail(self, mail):
480
    self._oprot.writeMessageBegin('sendMail', TMessageType.CALL, self._seqid)
481
    args = sendMail_args()
482
    args.mail = mail
483
    args.write(self._oprot)
484
    self._oprot.writeMessageEnd()
485
    self._oprot.trans.flush()
486
 
487
  def recv_sendMail(self, ):
488
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
489
    if mtype == TMessageType.EXCEPTION:
490
      x = TApplicationException()
491
      x.read(self._iprot)
492
      self._iprot.readMessageEnd()
493
      raise x
494
    result = sendMail_result()
495
    result.read(self._iprot)
496
    self._iprot.readMessageEnd()
3431 rajveer 497
    if result.se is not None:
349 ashish 498
      raise result.se
499
    return
500
 
501
  def sendText(self, message):
502
    """
503
    Parameters:
504
     - message
505
    """
506
    self.send_sendText(message)
507
    self.recv_sendText()
508
 
509
  def send_sendText(self, message):
510
    self._oprot.writeMessageBegin('sendText', TMessageType.CALL, self._seqid)
511
    args = sendText_args()
512
    args.message = message
513
    args.write(self._oprot)
514
    self._oprot.writeMessageEnd()
515
    self._oprot.trans.flush()
516
 
517
  def recv_sendText(self, ):
518
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
519
    if mtype == TMessageType.EXCEPTION:
520
      x = TApplicationException()
521
      x.read(self._iprot)
522
      self._iprot.readMessageEnd()
523
      raise x
524
    result = sendText_result()
525
    result.read(self._iprot)
526
    self._iprot.readMessageEnd()
3431 rajveer 527
    if result.se is not None:
349 ashish 528
      raise result.se
529
    return
530
 
531
  def addMessage(self, message):
532
    """
533
    Parameters:
534
     - message
535
    """
536
    self.send_addMessage(message)
537
    self.recv_addMessage()
538
 
539
  def send_addMessage(self, message):
540
    self._oprot.writeMessageBegin('addMessage', TMessageType.CALL, self._seqid)
541
    args = addMessage_args()
542
    args.message = message
543
    args.write(self._oprot)
544
    self._oprot.writeMessageEnd()
545
    self._oprot.trans.flush()
546
 
547
  def recv_addMessage(self, ):
548
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
549
    if mtype == TMessageType.EXCEPTION:
550
      x = TApplicationException()
551
      x.read(self._iprot)
552
      self._iprot.readMessageEnd()
553
      raise x
554
    result = addMessage_result()
555
    result.read(self._iprot)
556
    self._iprot.readMessageEnd()
3431 rajveer 557
    if result.se is not None:
349 ashish 558
      raise result.se
559
    return
560
 
561
  def updateMessage(self, id, message):
562
    """
563
    Parameters:
564
     - id
565
     - message
566
    """
567
    self.send_updateMessage(id, message)
568
    self.recv_updateMessage()
569
 
570
  def send_updateMessage(self, id, message):
571
    self._oprot.writeMessageBegin('updateMessage', TMessageType.CALL, self._seqid)
572
    args = updateMessage_args()
573
    args.id = id
574
    args.message = message
575
    args.write(self._oprot)
576
    self._oprot.writeMessageEnd()
577
    self._oprot.trans.flush()
578
 
579
  def recv_updateMessage(self, ):
580
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
581
    if mtype == TMessageType.EXCEPTION:
582
      x = TApplicationException()
583
      x.read(self._iprot)
584
      self._iprot.readMessageEnd()
585
      raise x
586
    result = updateMessage_result()
587
    result.read(self._iprot)
588
    self._iprot.readMessageEnd()
3431 rajveer 589
    if result.se is not None:
349 ashish 590
      raise result.se
591
    return
592
 
593
  def getMessage(self, id):
594
    """
595
    Parameters:
596
     - id
597
    """
598
    self.send_getMessage(id)
353 ashish 599
    return self.recv_getMessage()
349 ashish 600
 
601
  def send_getMessage(self, id):
602
    self._oprot.writeMessageBegin('getMessage', TMessageType.CALL, self._seqid)
603
    args = getMessage_args()
604
    args.id = id
605
    args.write(self._oprot)
606
    self._oprot.writeMessageEnd()
607
    self._oprot.trans.flush()
608
 
609
  def recv_getMessage(self, ):
610
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
611
    if mtype == TMessageType.EXCEPTION:
612
      x = TApplicationException()
613
      x.read(self._iprot)
614
      self._iprot.readMessageEnd()
615
      raise x
616
    result = getMessage_result()
617
    result.read(self._iprot)
618
    self._iprot.readMessageEnd()
3431 rajveer 619
    if result.success is not None:
353 ashish 620
      return result.success
3431 rajveer 621
    if result.se is not None:
349 ashish 622
      raise result.se
353 ashish 623
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
349 ashish 624
 
625
  def getSubstitutedMessage(self, id, params):
626
    """
627
    Parameters:
628
     - id
629
     - params
630
    """
631
    self.send_getSubstitutedMessage(id, params)
353 ashish 632
    return self.recv_getSubstitutedMessage()
349 ashish 633
 
634
  def send_getSubstitutedMessage(self, id, params):
635
    self._oprot.writeMessageBegin('getSubstitutedMessage', TMessageType.CALL, self._seqid)
636
    args = getSubstitutedMessage_args()
637
    args.id = id
638
    args.params = params
639
    args.write(self._oprot)
640
    self._oprot.writeMessageEnd()
641
    self._oprot.trans.flush()
642
 
643
  def recv_getSubstitutedMessage(self, ):
644
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
645
    if mtype == TMessageType.EXCEPTION:
646
      x = TApplicationException()
647
      x.read(self._iprot)
648
      self._iprot.readMessageEnd()
649
      raise x
650
    result = getSubstitutedMessage_result()
651
    result.read(self._iprot)
652
    self._iprot.readMessageEnd()
3431 rajveer 653
    if result.success is not None:
353 ashish 654
      return result.success
3431 rajveer 655
    if result.se is not None:
349 ashish 656
      raise result.se
353 ashish 657
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
349 ashish 658
 
494 rajveer 659
  def addUser(self, username, password, warehouseId):
660
    """
661
    Parameters:
662
     - username
663
     - password
664
     - warehouseId
665
    """
666
    self.send_addUser(username, password, warehouseId)
667
    return self.recv_addUser()
349 ashish 668
 
494 rajveer 669
  def send_addUser(self, username, password, warehouseId):
670
    self._oprot.writeMessageBegin('addUser', TMessageType.CALL, self._seqid)
671
    args = addUser_args()
672
    args.username = username
673
    args.password = password
674
    args.warehouseId = warehouseId
675
    args.write(self._oprot)
676
    self._oprot.writeMessageEnd()
677
    self._oprot.trans.flush()
678
 
679
  def recv_addUser(self, ):
680
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
681
    if mtype == TMessageType.EXCEPTION:
682
      x = TApplicationException()
683
      x.read(self._iprot)
684
      self._iprot.readMessageEnd()
685
      raise x
686
    result = addUser_result()
687
    result.read(self._iprot)
688
    self._iprot.readMessageEnd()
3431 rajveer 689
    if result.success is not None:
494 rajveer 690
      return result.success
3431 rajveer 691
    if result.se is not None:
494 rajveer 692
      raise result.se
693
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
694
 
695
  def deleteUser(self, username):
696
    """
697
    Parameters:
698
     - username
699
    """
700
    self.send_deleteUser(username)
701
    return self.recv_deleteUser()
702
 
703
  def send_deleteUser(self, username):
704
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
705
    args = deleteUser_args()
706
    args.username = username
707
    args.write(self._oprot)
708
    self._oprot.writeMessageEnd()
709
    self._oprot.trans.flush()
710
 
711
  def recv_deleteUser(self, ):
712
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
713
    if mtype == TMessageType.EXCEPTION:
714
      x = TApplicationException()
715
      x.read(self._iprot)
716
      self._iprot.readMessageEnd()
717
      raise x
718
    result = deleteUser_result()
719
    result.read(self._iprot)
720
    self._iprot.readMessageEnd()
3431 rajveer 721
    if result.success is not None:
494 rajveer 722
      return result.success
3431 rajveer 723
    if result.se is not None:
494 rajveer 724
      raise result.se
725
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
726
 
2447 chandransh 727
  def authenticateDashboardUser(self, username, password):
494 rajveer 728
    """
2447 chandransh 729
    Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
730
    The loggedOn timestamp for the dashboard user is updated .
3431 rajveer 731
 
494 rajveer 732
    Parameters:
733
     - username
734
     - password
735
    """
2447 chandransh 736
    self.send_authenticateDashboardUser(username, password)
737
    return self.recv_authenticateDashboardUser()
494 rajveer 738
 
2447 chandransh 739
  def send_authenticateDashboardUser(self, username, password):
740
    self._oprot.writeMessageBegin('authenticateDashboardUser', TMessageType.CALL, self._seqid)
741
    args = authenticateDashboardUser_args()
494 rajveer 742
    args.username = username
743
    args.password = password
744
    args.write(self._oprot)
745
    self._oprot.writeMessageEnd()
746
    self._oprot.trans.flush()
747
 
2447 chandransh 748
  def recv_authenticateDashboardUser(self, ):
494 rajveer 749
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
750
    if mtype == TMessageType.EXCEPTION:
751
      x = TApplicationException()
752
      x.read(self._iprot)
753
      self._iprot.readMessageEnd()
754
      raise x
2447 chandransh 755
    result = authenticateDashboardUser_result()
494 rajveer 756
    result.read(self._iprot)
757
    self._iprot.readMessageEnd()
3431 rajveer 758
    if result.success is not None:
494 rajveer 759
      return result.success
3431 rajveer 760
    if result.se is not None:
494 rajveer 761
      raise result.se
2447 chandransh 762
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
494 rajveer 763
 
764
  def updatePassword(self, username, oldPassword, newPassword):
765
    """
2447 chandransh 766
    Update the password of the dashboard user. Currently, there is no place where this method is called.
3431 rajveer 767
 
494 rajveer 768
    Parameters:
769
     - username
770
     - oldPassword
771
     - newPassword
772
    """
773
    self.send_updatePassword(username, oldPassword, newPassword)
774
    return self.recv_updatePassword()
775
 
776
  def send_updatePassword(self, username, oldPassword, newPassword):
777
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
778
    args = updatePassword_args()
779
    args.username = username
780
    args.oldPassword = oldPassword
781
    args.newPassword = newPassword
782
    args.write(self._oprot)
783
    self._oprot.writeMessageEnd()
784
    self._oprot.trans.flush()
785
 
786
  def recv_updatePassword(self, ):
787
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
788
    if mtype == TMessageType.EXCEPTION:
789
      x = TApplicationException()
790
      x.read(self._iprot)
791
      self._iprot.readMessageEnd()
792
      raise x
793
    result = updatePassword_result()
794
    result.read(self._iprot)
795
    self._iprot.readMessageEnd()
3431 rajveer 796
    if result.success is not None:
494 rajveer 797
      return result.success
3431 rajveer 798
    if result.se is not None:
494 rajveer 799
      raise result.se
800
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
801
 
759 chandransh 802
  def authenticateLogisticsUser(self, username, password):
803
    """
804
    Returns the LogisticsUser struct associated with the given username and password if they match.
805
    Throws an exception otherwise.
3431 rajveer 806
 
759 chandransh 807
    Parameters:
808
     - username
809
     - password
810
    """
811
    self.send_authenticateLogisticsUser(username, password)
812
    return self.recv_authenticateLogisticsUser()
494 rajveer 813
 
759 chandransh 814
  def send_authenticateLogisticsUser(self, username, password):
815
    self._oprot.writeMessageBegin('authenticateLogisticsUser', TMessageType.CALL, self._seqid)
816
    args = authenticateLogisticsUser_args()
817
    args.username = username
818
    args.password = password
819
    args.write(self._oprot)
820
    self._oprot.writeMessageEnd()
821
    self._oprot.trans.flush()
822
 
823
  def recv_authenticateLogisticsUser(self, ):
824
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
825
    if mtype == TMessageType.EXCEPTION:
826
      x = TApplicationException()
827
      x.read(self._iprot)
828
      self._iprot.readMessageEnd()
829
      raise x
830
    result = authenticateLogisticsUser_result()
831
    result.read(self._iprot)
832
    self._iprot.readMessageEnd()
3431 rajveer 833
    if result.success is not None:
759 chandransh 834
      return result.success
3431 rajveer 835
    if result.hse is not None:
759 chandransh 836
      raise result.hse
837
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
838
 
1610 ankur.sing 839
  def authenticateStatisticsUser(self, username, password):
840
    """
841
    Returns the StatisticsUser struct associated with the given username and password if they match.
842
    Throws an exception otherwise.
3431 rajveer 843
 
1610 ankur.sing 844
    Parameters:
845
     - username
846
     - password
847
    """
848
    self.send_authenticateStatisticsUser(username, password)
849
    return self.recv_authenticateStatisticsUser()
759 chandransh 850
 
1610 ankur.sing 851
  def send_authenticateStatisticsUser(self, username, password):
852
    self._oprot.writeMessageBegin('authenticateStatisticsUser', TMessageType.CALL, self._seqid)
853
    args = authenticateStatisticsUser_args()
854
    args.username = username
855
    args.password = password
856
    args.write(self._oprot)
857
    self._oprot.writeMessageEnd()
858
    self._oprot.trans.flush()
859
 
860
  def recv_authenticateStatisticsUser(self, ):
861
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
862
    if mtype == TMessageType.EXCEPTION:
863
      x = TApplicationException()
864
      x.read(self._iprot)
865
      self._iprot.readMessageEnd()
866
      raise x
867
    result = authenticateStatisticsUser_result()
868
    result.read(self._iprot)
869
    self._iprot.readMessageEnd()
3431 rajveer 870
    if result.success is not None:
1610 ankur.sing 871
      return result.success
3431 rajveer 872
    if result.hse is not None:
1610 ankur.sing 873
      raise result.hse
874
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
875
 
1891 ankur.sing 876
  def authenticateReportUser(self, username, password):
877
    """
878
    Returns the ReportUser struct associated with the given username and password if they match.
879
    Throws an exception otherwise.
3431 rajveer 880
 
1891 ankur.sing 881
    Parameters:
882
     - username
883
     - password
884
    """
885
    self.send_authenticateReportUser(username, password)
886
    return self.recv_authenticateReportUser()
1610 ankur.sing 887
 
1891 ankur.sing 888
  def send_authenticateReportUser(self, username, password):
889
    self._oprot.writeMessageBegin('authenticateReportUser', TMessageType.CALL, self._seqid)
890
    args = authenticateReportUser_args()
891
    args.username = username
892
    args.password = password
893
    args.write(self._oprot)
894
    self._oprot.writeMessageEnd()
895
    self._oprot.trans.flush()
896
 
897
  def recv_authenticateReportUser(self, ):
898
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
899
    if mtype == TMessageType.EXCEPTION:
900
      x = TApplicationException()
901
      x.read(self._iprot)
902
      self._iprot.readMessageEnd()
903
      raise x
904
    result = authenticateReportUser_result()
905
    result.read(self._iprot)
906
    self._iprot.readMessageEnd()
3431 rajveer 907
    if result.success is not None:
1891 ankur.sing 908
      return result.success
3431 rajveer 909
    if result.hse is not None:
1891 ankur.sing 910
      raise result.hse
911
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
912
 
913
  def getReports(self, role):
914
    """
915
    Returns list of reports which are configured for the given role.
3431 rajveer 916
 
1891 ankur.sing 917
    Parameters:
918
     - role
919
    """
920
    self.send_getReports(role)
921
    return self.recv_getReports()
922
 
923
  def send_getReports(self, role):
924
    self._oprot.writeMessageBegin('getReports', TMessageType.CALL, self._seqid)
925
    args = getReports_args()
926
    args.role = role
927
    args.write(self._oprot)
928
    self._oprot.writeMessageEnd()
929
    self._oprot.trans.flush()
930
 
931
  def recv_getReports(self, ):
932
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
933
    if mtype == TMessageType.EXCEPTION:
934
      x = TApplicationException()
935
      x.read(self._iprot)
936
      self._iprot.readMessageEnd()
937
      raise x
938
    result = getReports_result()
939
    result.read(self._iprot)
940
    self._iprot.readMessageEnd()
3431 rajveer 941
    if result.success is not None:
1891 ankur.sing 942
      return result.success
943
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
944
 
6788 rajveer 945
  def authenticateCatalogUser(self, username, password):
2025 ankur.sing 946
    """
2358 ankur.sing 947
    Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2025 ankur.sing 948
    Throws an exception otherwise.
3431 rajveer 949
 
2025 ankur.sing 950
    Parameters:
951
     - username
952
     - password
953
    """
6788 rajveer 954
    self.send_authenticateCatalogUser(username, password)
2025 ankur.sing 955
    return self.recv_authenticateCatalogUser()
1891 ankur.sing 956
 
6788 rajveer 957
  def send_authenticateCatalogUser(self, username, password):
2025 ankur.sing 958
    self._oprot.writeMessageBegin('authenticateCatalogUser', TMessageType.CALL, self._seqid)
959
    args = authenticateCatalogUser_args()
960
    args.username = username
961
    args.password = password
962
    args.write(self._oprot)
963
    self._oprot.writeMessageEnd()
964
    self._oprot.trans.flush()
965
 
966
  def recv_authenticateCatalogUser(self, ):
967
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
968
    if mtype == TMessageType.EXCEPTION:
969
      x = TApplicationException()
970
      x.read(self._iprot)
971
      self._iprot.readMessageEnd()
972
      raise x
973
    result = authenticateCatalogUser_result()
974
    result.read(self._iprot)
975
    self._iprot.readMessageEnd()
3431 rajveer 976
    if result.success is not None:
2025 ankur.sing 977
      return result.success
3431 rajveer 978
    if result.hse is not None:
2025 ankur.sing 979
      raise result.hse
980
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
981
 
4544 varun.gupt 982
  def shareEntities(self, entityIds, email):
983
    """
984
    Saves the list of entity Ids to be shared with an email address
2025 ankur.sing 985
 
4544 varun.gupt 986
    Parameters:
987
     - entityIds
988
     - email
989
    """
990
    self.send_shareEntities(entityIds, email)
991
    self.recv_shareEntities()
992
 
993
  def send_shareEntities(self, entityIds, email):
994
    self._oprot.writeMessageBegin('shareEntities', TMessageType.CALL, self._seqid)
995
    args = shareEntities_args()
996
    args.entityIds = entityIds
997
    args.email = email
998
    args.write(self._oprot)
999
    self._oprot.writeMessageEnd()
1000
    self._oprot.trans.flush()
1001
 
1002
  def recv_shareEntities(self, ):
1003
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1004
    if mtype == TMessageType.EXCEPTION:
1005
      x = TApplicationException()
1006
      x.read(self._iprot)
1007
      self._iprot.readMessageEnd()
1008
      raise x
1009
    result = shareEntities_result()
1010
    result.read(self._iprot)
1011
    self._iprot.readMessageEnd()
1012
    if result.hse is not None:
1013
      raise result.hse
1014
    return
1015
 
4691 mandeep.dh 1016
  def getAgents(self, ):
1017
    self.send_getAgents()
1018
    return self.recv_getAgents()
4544 varun.gupt 1019
 
4691 mandeep.dh 1020
  def send_getAgents(self, ):
1021
    self._oprot.writeMessageBegin('getAgents', TMessageType.CALL, self._seqid)
1022
    args = getAgents_args()
1023
    args.write(self._oprot)
1024
    self._oprot.writeMessageEnd()
1025
    self._oprot.trans.flush()
1026
 
1027
  def recv_getAgents(self, ):
1028
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1029
    if mtype == TMessageType.EXCEPTION:
1030
      x = TApplicationException()
1031
      x.read(self._iprot)
1032
      self._iprot.readMessageEnd()
1033
      raise x
1034
    result = getAgents_result()
1035
    result.read(self._iprot)
1036
    self._iprot.readMessageEnd()
1037
    if result.success is not None:
1038
      return result.success
1039
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
1040
 
1041
  def validateLogIn(self, emailId, password):
1042
    """
1043
    Parameters:
1044
     - emailId
1045
     - password
1046
    """
1047
    self.send_validateLogIn(emailId, password)
1048
    return self.recv_validateLogIn()
1049
 
1050
  def send_validateLogIn(self, emailId, password):
1051
    self._oprot.writeMessageBegin('validateLogIn', TMessageType.CALL, self._seqid)
1052
    args = validateLogIn_args()
1053
    args.emailId = emailId
1054
    args.password = password
1055
    args.write(self._oprot)
1056
    self._oprot.writeMessageEnd()
1057
    self._oprot.trans.flush()
1058
 
1059
  def recv_validateLogIn(self, ):
1060
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1061
    if mtype == TMessageType.EXCEPTION:
1062
      x = TApplicationException()
1063
      x.read(self._iprot)
1064
      self._iprot.readMessageEnd()
1065
      raise x
1066
    result = validateLogIn_result()
1067
    result.read(self._iprot)
1068
    self._iprot.readMessageEnd()
1069
    if result.success is not None:
1070
      return result.success
1071
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
1072
 
1073
  def updatePasswordForAgent(self, agentEmailId, password):
1074
    """
1075
    Parameters:
1076
     - agentEmailId
1077
     - password
1078
    """
1079
    self.send_updatePasswordForAgent(agentEmailId, password)
1080
    self.recv_updatePasswordForAgent()
1081
 
1082
  def send_updatePasswordForAgent(self, agentEmailId, password):
1083
    self._oprot.writeMessageBegin('updatePasswordForAgent', TMessageType.CALL, self._seqid)
1084
    args = updatePasswordForAgent_args()
1085
    args.agentEmailId = agentEmailId
1086
    args.password = password
1087
    args.write(self._oprot)
1088
    self._oprot.writeMessageEnd()
1089
    self._oprot.trans.flush()
1090
 
1091
  def recv_updatePasswordForAgent(self, ):
1092
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1093
    if mtype == TMessageType.EXCEPTION:
1094
      x = TApplicationException()
1095
      x.read(self._iprot)
1096
      self._iprot.readMessageEnd()
1097
      raise x
1098
    result = updatePasswordForAgent_result()
1099
    result.read(self._iprot)
1100
    self._iprot.readMessageEnd()
1101
    return
1102
 
1103
  def getRoleNamesForAgent(self, agentEmailId):
1104
    """
1105
    Parameters:
1106
     - agentEmailId
1107
    """
1108
    self.send_getRoleNamesForAgent(agentEmailId)
1109
    return self.recv_getRoleNamesForAgent()
1110
 
1111
  def send_getRoleNamesForAgent(self, agentEmailId):
1112
    self._oprot.writeMessageBegin('getRoleNamesForAgent', TMessageType.CALL, self._seqid)
1113
    args = getRoleNamesForAgent_args()
1114
    args.agentEmailId = agentEmailId
1115
    args.write(self._oprot)
1116
    self._oprot.writeMessageEnd()
1117
    self._oprot.trans.flush()
1118
 
1119
  def recv_getRoleNamesForAgent(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 = getRoleNamesForAgent_result()
1127
    result.read(self._iprot)
1128
    self._iprot.readMessageEnd()
1129
    if result.success is not None:
1130
      return result.success
1131
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
1132
 
1133
  def getPermissionsForRoleName(self, roleName):
1134
    """
1135
    Parameters:
1136
     - roleName
1137
    """
1138
    self.send_getPermissionsForRoleName(roleName)
1139
    return self.recv_getPermissionsForRoleName()
1140
 
1141
  def send_getPermissionsForRoleName(self, roleName):
1142
    self._oprot.writeMessageBegin('getPermissionsForRoleName', TMessageType.CALL, self._seqid)
1143
    args = getPermissionsForRoleName_args()
1144
    args.roleName = roleName
1145
    args.write(self._oprot)
1146
    self._oprot.writeMessageEnd()
1147
    self._oprot.trans.flush()
1148
 
1149
  def recv_getPermissionsForRoleName(self, ):
1150
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1151
    if mtype == TMessageType.EXCEPTION:
1152
      x = TApplicationException()
1153
      x.read(self._iprot)
1154
      self._iprot.readMessageEnd()
1155
      raise x
1156
    result = getPermissionsForRoleName_result()
1157
    result.read(self._iprot)
1158
    self._iprot.readMessageEnd()
1159
    if result.success is not None:
1160
      return result.success
1161
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
1162
 
4806 varun.gupt 1163
  def saveQuickLink(self, url, text):
1164
    """
1165
    Parameters:
1166
     - url
1167
     - text
1168
    """
1169
    self.send_saveQuickLink(url, text)
1170
    self.recv_saveQuickLink()
4691 mandeep.dh 1171
 
4806 varun.gupt 1172
  def send_saveQuickLink(self, url, text):
1173
    self._oprot.writeMessageBegin('saveQuickLink', TMessageType.CALL, self._seqid)
1174
    args = saveQuickLink_args()
1175
    args.url = url
1176
    args.text = text
1177
    args.write(self._oprot)
1178
    self._oprot.writeMessageEnd()
1179
    self._oprot.trans.flush()
1180
 
1181
  def recv_saveQuickLink(self, ):
1182
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1183
    if mtype == TMessageType.EXCEPTION:
1184
      x = TApplicationException()
1185
      x.read(self._iprot)
1186
      self._iprot.readMessageEnd()
1187
      raise x
1188
    result = saveQuickLink_result()
1189
    result.read(self._iprot)
1190
    self._iprot.readMessageEnd()
1191
    if result.hse is not None:
1192
      raise result.hse
1193
    return
1194
 
1195
  def getQuickLinks(self, ):
1196
    self.send_getQuickLinks()
1197
    return self.recv_getQuickLinks()
1198
 
1199
  def send_getQuickLinks(self, ):
1200
    self._oprot.writeMessageBegin('getQuickLinks', TMessageType.CALL, self._seqid)
1201
    args = getQuickLinks_args()
1202
    args.write(self._oprot)
1203
    self._oprot.writeMessageEnd()
1204
    self._oprot.trans.flush()
1205
 
1206
  def recv_getQuickLinks(self, ):
1207
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1208
    if mtype == TMessageType.EXCEPTION:
1209
      x = TApplicationException()
1210
      x.read(self._iprot)
1211
      self._iprot.readMessageEnd()
1212
      raise x
1213
    result = getQuickLinks_result()
1214
    result.read(self._iprot)
1215
    self._iprot.readMessageEnd()
1216
    if result.success is not None:
1217
      return result.success
1218
    if result.hse is not None:
1219
      raise result.hse
1220
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
1221
 
4996 varun.gupt 1222
  def updateQuickLink(self, id, url, text):
1223
    """
1224
    Parameters:
1225
     - id
1226
     - url
1227
     - text
1228
    """
1229
    self.send_updateQuickLink(id, url, text)
1230
    self.recv_updateQuickLink()
4806 varun.gupt 1231
 
4996 varun.gupt 1232
  def send_updateQuickLink(self, id, url, text):
1233
    self._oprot.writeMessageBegin('updateQuickLink', TMessageType.CALL, self._seqid)
1234
    args = updateQuickLink_args()
1235
    args.id = id
1236
    args.url = url
1237
    args.text = text
1238
    args.write(self._oprot)
1239
    self._oprot.writeMessageEnd()
1240
    self._oprot.trans.flush()
1241
 
1242
  def recv_updateQuickLink(self, ):
1243
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1244
    if mtype == TMessageType.EXCEPTION:
1245
      x = TApplicationException()
1246
      x.read(self._iprot)
1247
      self._iprot.readMessageEnd()
1248
      raise x
1249
    result = updateQuickLink_result()
1250
    result.read(self._iprot)
1251
    self._iprot.readMessageEnd()
1252
    if result.hse is not None:
1253
      raise result.hse
1254
    return
1255
 
5055 varun.gupt 1256
  def getEmailsForNotificationsSent(self, startDatetime, endDatetime):
1257
    """
1258
    Returns a list of emails to which product notifications have been sent in a given date range
4996 varun.gupt 1259
 
5055 varun.gupt 1260
    Parameters:
1261
     - startDatetime
1262
     - endDatetime
1263
    """
1264
    self.send_getEmailsForNotificationsSent(startDatetime, endDatetime)
1265
    return self.recv_getEmailsForNotificationsSent()
1266
 
1267
  def send_getEmailsForNotificationsSent(self, startDatetime, endDatetime):
1268
    self._oprot.writeMessageBegin('getEmailsForNotificationsSent', TMessageType.CALL, self._seqid)
1269
    args = getEmailsForNotificationsSent_args()
1270
    args.startDatetime = startDatetime
1271
    args.endDatetime = endDatetime
1272
    args.write(self._oprot)
1273
    self._oprot.writeMessageEnd()
1274
    self._oprot.trans.flush()
1275
 
1276
  def recv_getEmailsForNotificationsSent(self, ):
1277
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1278
    if mtype == TMessageType.EXCEPTION:
1279
      x = TApplicationException()
1280
      x.read(self._iprot)
1281
      self._iprot.readMessageEnd()
1282
      raise x
1283
    result = getEmailsForNotificationsSent_result()
1284
    result.read(self._iprot)
1285
    self._iprot.readMessageEnd()
1286
    if result.success is not None:
1287
      return result.success
1288
    if result.hse is not None:
1289
      raise result.hse
1290
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
1291
 
6322 amar.kumar 1292
  def getOrderConfirmationMail(self, orderId):
1293
    """
1294
    Parameters:
1295
     - orderId
1296
    """
1297
    self.send_getOrderConfirmationMail(orderId)
1298
    return self.recv_getOrderConfirmationMail()
5055 varun.gupt 1299
 
6322 amar.kumar 1300
  def send_getOrderConfirmationMail(self, orderId):
1301
    self._oprot.writeMessageBegin('getOrderConfirmationMail', TMessageType.CALL, self._seqid)
1302
    args = getOrderConfirmationMail_args()
1303
    args.orderId = orderId
1304
    args.write(self._oprot)
1305
    self._oprot.writeMessageEnd()
1306
    self._oprot.trans.flush()
1307
 
1308
  def recv_getOrderConfirmationMail(self, ):
1309
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1310
    if mtype == TMessageType.EXCEPTION:
1311
      x = TApplicationException()
1312
      x.read(self._iprot)
1313
      self._iprot.readMessageEnd()
1314
      raise x
1315
    result = getOrderConfirmationMail_result()
1316
    result.read(self._iprot)
1317
    self._iprot.readMessageEnd()
1318
    if result.success is not None:
1319
      return result.success
1320
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
1321
 
7221 kshitij.so 1322
  def getOrderDeliveryMail(self, orderId):
1323
    """
1324
    Parameters:
1325
     - orderId
1326
    """
1327
    self.send_getOrderDeliveryMail(orderId)
1328
    return self.recv_getOrderDeliveryMail()
6322 amar.kumar 1329
 
7221 kshitij.so 1330
  def send_getOrderDeliveryMail(self, orderId):
1331
    self._oprot.writeMessageBegin('getOrderDeliveryMail', TMessageType.CALL, self._seqid)
1332
    args = getOrderDeliveryMail_args()
1333
    args.orderId = orderId
1334
    args.write(self._oprot)
1335
    self._oprot.writeMessageEnd()
1336
    self._oprot.trans.flush()
1337
 
1338
  def recv_getOrderDeliveryMail(self, ):
1339
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1340
    if mtype == TMessageType.EXCEPTION:
1341
      x = TApplicationException()
1342
      x.read(self._iprot)
1343
      self._iprot.readMessageEnd()
1344
      raise x
1345
    result = getOrderDeliveryMail_result()
1346
    result.read(self._iprot)
1347
    self._iprot.readMessageEnd()
1348
    if result.success is not None:
1349
      return result.success
1350
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");
1351
 
7410 amar.kumar 1352
  def getWarehouseIdsForAgent(self, agentEmailId):
1353
    """
1354
    Parameters:
1355
     - agentEmailId
1356
    """
1357
    self.send_getWarehouseIdsForAgent(agentEmailId)
1358
    return self.recv_getWarehouseIdsForAgent()
7221 kshitij.so 1359
 
7410 amar.kumar 1360
  def send_getWarehouseIdsForAgent(self, agentEmailId):
1361
    self._oprot.writeMessageBegin('getWarehouseIdsForAgent', TMessageType.CALL, self._seqid)
1362
    args = getWarehouseIdsForAgent_args()
1363
    args.agentEmailId = agentEmailId
1364
    args.write(self._oprot)
1365
    self._oprot.writeMessageEnd()
1366
    self._oprot.trans.flush()
1367
 
1368
  def recv_getWarehouseIdsForAgent(self, ):
1369
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1370
    if mtype == TMessageType.EXCEPTION:
1371
      x = TApplicationException()
1372
      x.read(self._iprot)
1373
      self._iprot.readMessageEnd()
1374
      raise x
1375
    result = getWarehouseIdsForAgent_result()
1376
    result.read(self._iprot)
1377
    self._iprot.readMessageEnd()
1378
    if result.success is not None:
1379
      return result.success
1380
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseIdsForAgent failed: unknown result");
1381
 
12691 manish.sha 1382
  def saveUserSmsForSending(self, userId, mobileNo, text, type):
1383
    """
1384
    Parameters:
1385
     - userId
1386
     - mobileNo
1387
     - text
1388
     - type
1389
    """
1390
    self.send_saveUserSmsForSending(userId, mobileNo, text, type)
1391
    return self.recv_saveUserSmsForSending()
7410 amar.kumar 1392
 
12691 manish.sha 1393
  def send_saveUserSmsForSending(self, userId, mobileNo, text, type):
1394
    self._oprot.writeMessageBegin('saveUserSmsForSending', TMessageType.CALL, self._seqid)
1395
    args = saveUserSmsForSending_args()
1396
    args.userId = userId
1397
    args.mobileNo = mobileNo
1398
    args.text = text
1399
    args.type = type
1400
    args.write(self._oprot)
1401
    self._oprot.writeMessageEnd()
1402
    self._oprot.trans.flush()
1403
 
1404
  def recv_saveUserSmsForSending(self, ):
1405
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1406
    if mtype == TMessageType.EXCEPTION:
1407
      x = TApplicationException()
1408
      x.read(self._iprot)
1409
      self._iprot.readMessageEnd()
1410
      raise x
1411
    result = saveUserSmsForSending_result()
1412
    result.read(self._iprot)
1413
    self._iprot.readMessageEnd()
1414
    if result.success is not None:
1415
      return result.success
1416
    if result.se is not None:
1417
      raise result.se
1418
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserSmsForSending failed: unknown result");
1419
 
1420
  def getSmsToBeSent(self, ):
1421
    self.send_getSmsToBeSent()
1422
    return self.recv_getSmsToBeSent()
1423
 
1424
  def send_getSmsToBeSent(self, ):
1425
    self._oprot.writeMessageBegin('getSmsToBeSent', TMessageType.CALL, self._seqid)
1426
    args = getSmsToBeSent_args()
1427
    args.write(self._oprot)
1428
    self._oprot.writeMessageEnd()
1429
    self._oprot.trans.flush()
1430
 
1431
  def recv_getSmsToBeSent(self, ):
1432
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1433
    if mtype == TMessageType.EXCEPTION:
1434
      x = TApplicationException()
1435
      x.read(self._iprot)
1436
      self._iprot.readMessageEnd()
1437
      raise x
1438
    result = getSmsToBeSent_result()
1439
    result.read(self._iprot)
1440
    self._iprot.readMessageEnd()
1441
    if result.success is not None:
1442
      return result.success
1443
    if result.se is not None:
1444
      raise result.se
1445
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSmsToBeSent failed: unknown result");
1446
 
1447
  def addUserSmsInfo(self, userSmsInfo):
1448
    """
1449
    Parameters:
1450
     - userSmsInfo
1451
    """
1452
    self.send_addUserSmsInfo(userSmsInfo)
1453
    self.recv_addUserSmsInfo()
1454
 
1455
  def send_addUserSmsInfo(self, userSmsInfo):
1456
    self._oprot.writeMessageBegin('addUserSmsInfo', TMessageType.CALL, self._seqid)
1457
    args = addUserSmsInfo_args()
1458
    args.userSmsInfo = userSmsInfo
1459
    args.write(self._oprot)
1460
    self._oprot.writeMessageEnd()
1461
    self._oprot.trans.flush()
1462
 
1463
  def recv_addUserSmsInfo(self, ):
1464
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1465
    if mtype == TMessageType.EXCEPTION:
1466
      x = TApplicationException()
1467
      x.read(self._iprot)
1468
      self._iprot.readMessageEnd()
1469
      raise x
1470
    result = addUserSmsInfo_result()
1471
    result.read(self._iprot)
1472
    self._iprot.readMessageEnd()
1473
    if result.se is not None:
1474
      raise result.se
1475
    return
1476
 
1477
  def updateUserSmsInfo(self, userSmsInfo):
1478
    """
1479
    Parameters:
1480
     - userSmsInfo
1481
    """
1482
    self.send_updateUserSmsInfo(userSmsInfo)
1483
    return self.recv_updateUserSmsInfo()
1484
 
1485
  def send_updateUserSmsInfo(self, userSmsInfo):
1486
    self._oprot.writeMessageBegin('updateUserSmsInfo', TMessageType.CALL, self._seqid)
1487
    args = updateUserSmsInfo_args()
1488
    args.userSmsInfo = userSmsInfo
1489
    args.write(self._oprot)
1490
    self._oprot.writeMessageEnd()
1491
    self._oprot.trans.flush()
1492
 
1493
  def recv_updateUserSmsInfo(self, ):
1494
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1495
    if mtype == TMessageType.EXCEPTION:
1496
      x = TApplicationException()
1497
      x.read(self._iprot)
1498
      self._iprot.readMessageEnd()
1499
      raise x
1500
    result = updateUserSmsInfo_result()
1501
    result.read(self._iprot)
1502
    self._iprot.readMessageEnd()
1503
    if result.success is not None:
1504
      return result.success
1505
    if result.se is not None:
1506
      raise result.se
1507
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUserSmsInfo failed: unknown result");
1508
 
1509
  def getUserSmsInfo(self, userId):
1510
    """
1511
    Parameters:
1512
     - userId
1513
    """
1514
    self.send_getUserSmsInfo(userId)
1515
    return self.recv_getUserSmsInfo()
1516
 
1517
  def send_getUserSmsInfo(self, userId):
1518
    self._oprot.writeMessageBegin('getUserSmsInfo', TMessageType.CALL, self._seqid)
1519
    args = getUserSmsInfo_args()
1520
    args.userId = userId
1521
    args.write(self._oprot)
1522
    self._oprot.writeMessageEnd()
1523
    self._oprot.trans.flush()
1524
 
1525
  def recv_getUserSmsInfo(self, ):
1526
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1527
    if mtype == TMessageType.EXCEPTION:
1528
      x = TApplicationException()
1529
      x.read(self._iprot)
1530
      self._iprot.readMessageEnd()
1531
      raise x
1532
    result = getUserSmsInfo_result()
1533
    result.read(self._iprot)
1534
    self._iprot.readMessageEnd()
1535
    if result.success is not None:
1536
      return result.success
1537
    if result.se is not None:
1538
      raise result.se
1539
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserSmsInfo failed: unknown result");
1540
 
1541
  def getAllUsersSmsInfo(self, dndStatus, smsSubscribed):
1542
    """
1543
    Parameters:
1544
     - dndStatus
1545
     - smsSubscribed
1546
    """
1547
    self.send_getAllUsersSmsInfo(dndStatus, smsSubscribed)
1548
    return self.recv_getAllUsersSmsInfo()
1549
 
1550
  def send_getAllUsersSmsInfo(self, dndStatus, smsSubscribed):
1551
    self._oprot.writeMessageBegin('getAllUsersSmsInfo', TMessageType.CALL, self._seqid)
1552
    args = getAllUsersSmsInfo_args()
1553
    args.dndStatus = dndStatus
1554
    args.smsSubscribed = smsSubscribed
1555
    args.write(self._oprot)
1556
    self._oprot.writeMessageEnd()
1557
    self._oprot.trans.flush()
1558
 
1559
  def recv_getAllUsersSmsInfo(self, ):
1560
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1561
    if mtype == TMessageType.EXCEPTION:
1562
      x = TApplicationException()
1563
      x.read(self._iprot)
1564
      self._iprot.readMessageEnd()
1565
      raise x
1566
    result = getAllUsersSmsInfo_result()
1567
    result.read(self._iprot)
1568
    self._iprot.readMessageEnd()
1569
    if result.success is not None:
1570
      return result.success
1571
    if result.se is not None:
1572
      raise result.se
1573
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsersSmsInfo failed: unknown result");
1574
 
1575
  def listSmsToGetDeliveryInfo(self, ):
1576
    self.send_listSmsToGetDeliveryInfo()
1577
    return self.recv_listSmsToGetDeliveryInfo()
1578
 
1579
  def send_listSmsToGetDeliveryInfo(self, ):
1580
    self._oprot.writeMessageBegin('listSmsToGetDeliveryInfo', TMessageType.CALL, self._seqid)
1581
    args = listSmsToGetDeliveryInfo_args()
1582
    args.write(self._oprot)
1583
    self._oprot.writeMessageEnd()
1584
    self._oprot.trans.flush()
1585
 
1586
  def recv_listSmsToGetDeliveryInfo(self, ):
1587
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1588
    if mtype == TMessageType.EXCEPTION:
1589
      x = TApplicationException()
1590
      x.read(self._iprot)
1591
      self._iprot.readMessageEnd()
1592
      raise x
1593
    result = listSmsToGetDeliveryInfo_result()
1594
    result.read(self._iprot)
1595
    self._iprot.readMessageEnd()
1596
    if result.success is not None:
1597
      return result.success
1598
    if result.se is not None:
1599
      raise result.se
1600
    raise TApplicationException(TApplicationException.MISSING_RESULT, "listSmsToGetDeliveryInfo failed: unknown result");
1601
 
1602
  def markMessagesAsSentToOperator(self, userSmsList):
1603
    """
1604
    Parameters:
1605
     - userSmsList
1606
    """
1607
    self.send_markMessagesAsSentToOperator(userSmsList)
1608
    return self.recv_markMessagesAsSentToOperator()
1609
 
1610
  def send_markMessagesAsSentToOperator(self, userSmsList):
1611
    self._oprot.writeMessageBegin('markMessagesAsSentToOperator', TMessageType.CALL, self._seqid)
1612
    args = markMessagesAsSentToOperator_args()
1613
    args.userSmsList = userSmsList
1614
    args.write(self._oprot)
1615
    self._oprot.writeMessageEnd()
1616
    self._oprot.trans.flush()
1617
 
1618
  def recv_markMessagesAsSentToOperator(self, ):
1619
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1620
    if mtype == TMessageType.EXCEPTION:
1621
      x = TApplicationException()
1622
      x.read(self._iprot)
1623
      self._iprot.readMessageEnd()
1624
      raise x
1625
    result = markMessagesAsSentToOperator_result()
1626
    result.read(self._iprot)
1627
    self._iprot.readMessageEnd()
1628
    if result.success is not None:
1629
      return result.success
1630
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markMessagesAsSentToOperator failed: unknown result");
1631
 
1632
  def markMessagesAsSubmittedToSmsc(self, userSmsList):
1633
    """
1634
    Parameters:
1635
     - userSmsList
1636
    """
1637
    self.send_markMessagesAsSubmittedToSmsc(userSmsList)
1638
    return self.recv_markMessagesAsSubmittedToSmsc()
1639
 
1640
  def send_markMessagesAsSubmittedToSmsc(self, userSmsList):
1641
    self._oprot.writeMessageBegin('markMessagesAsSubmittedToSmsc', TMessageType.CALL, self._seqid)
1642
    args = markMessagesAsSubmittedToSmsc_args()
1643
    args.userSmsList = userSmsList
1644
    args.write(self._oprot)
1645
    self._oprot.writeMessageEnd()
1646
    self._oprot.trans.flush()
1647
 
1648
  def recv_markMessagesAsSubmittedToSmsc(self, ):
1649
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1650
    if mtype == TMessageType.EXCEPTION:
1651
      x = TApplicationException()
1652
      x.read(self._iprot)
1653
      self._iprot.readMessageEnd()
1654
      raise x
1655
    result = markMessagesAsSubmittedToSmsc_result()
1656
    result.read(self._iprot)
1657
    self._iprot.readMessageEnd()
1658
    if result.success is not None:
1659
      return result.success
1660
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markMessagesAsSubmittedToSmsc failed: unknown result");
1661
 
1662
  def markMessagesAsSent(self, userSmsList):
1663
    """
1664
    Parameters:
1665
     - userSmsList
1666
    """
1667
    self.send_markMessagesAsSent(userSmsList)
1668
    return self.recv_markMessagesAsSent()
1669
 
1670
  def send_markMessagesAsSent(self, userSmsList):
1671
    self._oprot.writeMessageBegin('markMessagesAsSent', TMessageType.CALL, self._seqid)
1672
    args = markMessagesAsSent_args()
1673
    args.userSmsList = userSmsList
1674
    args.write(self._oprot)
1675
    self._oprot.writeMessageEnd()
1676
    self._oprot.trans.flush()
1677
 
1678
  def recv_markMessagesAsSent(self, ):
1679
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1680
    if mtype == TMessageType.EXCEPTION:
1681
      x = TApplicationException()
1682
      x.read(self._iprot)
1683
      self._iprot.readMessageEnd()
1684
      raise x
1685
    result = markMessagesAsSent_result()
1686
    result.read(self._iprot)
1687
    self._iprot.readMessageEnd()
1688
    if result.success is not None:
1689
      return result.success
1690
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markMessagesAsSent failed: unknown result");
1691
 
1692
  def markMessagesAsRetry(self, userSmsList):
1693
    """
1694
    Parameters:
1695
     - userSmsList
1696
    """
1697
    self.send_markMessagesAsRetry(userSmsList)
1698
    return self.recv_markMessagesAsRetry()
1699
 
1700
  def send_markMessagesAsRetry(self, userSmsList):
1701
    self._oprot.writeMessageBegin('markMessagesAsRetry', TMessageType.CALL, self._seqid)
1702
    args = markMessagesAsRetry_args()
1703
    args.userSmsList = userSmsList
1704
    args.write(self._oprot)
1705
    self._oprot.writeMessageEnd()
1706
    self._oprot.trans.flush()
1707
 
1708
  def recv_markMessagesAsRetry(self, ):
1709
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1710
    if mtype == TMessageType.EXCEPTION:
1711
      x = TApplicationException()
1712
      x.read(self._iprot)
1713
      self._iprot.readMessageEnd()
1714
      raise x
1715
    result = markMessagesAsRetry_result()
1716
    result.read(self._iprot)
1717
    self._iprot.readMessageEnd()
1718
    if result.success is not None:
1719
      return result.success
1720
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markMessagesAsRetry failed: unknown result");
1721
 
1722
 
3376 rajveer 1723
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
349 ashish 1724
  def __init__(self, handler):
3376 rajveer 1725
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1395 varun.gupt 1726
    self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
1422 varun.gupt 1727
    self._processMap["getEmailsToBeSent"] = Processor.process_getEmailsToBeSent
1728
    self._processMap["markEmailAsSent"] = Processor.process_markEmailAsSent
349 ashish 1729
    self._processMap["sendMail"] = Processor.process_sendMail
1730
    self._processMap["sendText"] = Processor.process_sendText
1731
    self._processMap["addMessage"] = Processor.process_addMessage
1732
    self._processMap["updateMessage"] = Processor.process_updateMessage
1733
    self._processMap["getMessage"] = Processor.process_getMessage
1734
    self._processMap["getSubstitutedMessage"] = Processor.process_getSubstitutedMessage
494 rajveer 1735
    self._processMap["addUser"] = Processor.process_addUser
1736
    self._processMap["deleteUser"] = Processor.process_deleteUser
2447 chandransh 1737
    self._processMap["authenticateDashboardUser"] = Processor.process_authenticateDashboardUser
494 rajveer 1738
    self._processMap["updatePassword"] = Processor.process_updatePassword
759 chandransh 1739
    self._processMap["authenticateLogisticsUser"] = Processor.process_authenticateLogisticsUser
1610 ankur.sing 1740
    self._processMap["authenticateStatisticsUser"] = Processor.process_authenticateStatisticsUser
1891 ankur.sing 1741
    self._processMap["authenticateReportUser"] = Processor.process_authenticateReportUser
1742
    self._processMap["getReports"] = Processor.process_getReports
2025 ankur.sing 1743
    self._processMap["authenticateCatalogUser"] = Processor.process_authenticateCatalogUser
4544 varun.gupt 1744
    self._processMap["shareEntities"] = Processor.process_shareEntities
4691 mandeep.dh 1745
    self._processMap["getAgents"] = Processor.process_getAgents
1746
    self._processMap["validateLogIn"] = Processor.process_validateLogIn
1747
    self._processMap["updatePasswordForAgent"] = Processor.process_updatePasswordForAgent
1748
    self._processMap["getRoleNamesForAgent"] = Processor.process_getRoleNamesForAgent
1749
    self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
4806 varun.gupt 1750
    self._processMap["saveQuickLink"] = Processor.process_saveQuickLink
1751
    self._processMap["getQuickLinks"] = Processor.process_getQuickLinks
4996 varun.gupt 1752
    self._processMap["updateQuickLink"] = Processor.process_updateQuickLink
5055 varun.gupt 1753
    self._processMap["getEmailsForNotificationsSent"] = Processor.process_getEmailsForNotificationsSent
6322 amar.kumar 1754
    self._processMap["getOrderConfirmationMail"] = Processor.process_getOrderConfirmationMail
7221 kshitij.so 1755
    self._processMap["getOrderDeliveryMail"] = Processor.process_getOrderDeliveryMail
7410 amar.kumar 1756
    self._processMap["getWarehouseIdsForAgent"] = Processor.process_getWarehouseIdsForAgent
12691 manish.sha 1757
    self._processMap["saveUserSmsForSending"] = Processor.process_saveUserSmsForSending
1758
    self._processMap["getSmsToBeSent"] = Processor.process_getSmsToBeSent
1759
    self._processMap["addUserSmsInfo"] = Processor.process_addUserSmsInfo
1760
    self._processMap["updateUserSmsInfo"] = Processor.process_updateUserSmsInfo
1761
    self._processMap["getUserSmsInfo"] = Processor.process_getUserSmsInfo
1762
    self._processMap["getAllUsersSmsInfo"] = Processor.process_getAllUsersSmsInfo
1763
    self._processMap["listSmsToGetDeliveryInfo"] = Processor.process_listSmsToGetDeliveryInfo
1764
    self._processMap["markMessagesAsSentToOperator"] = Processor.process_markMessagesAsSentToOperator
1765
    self._processMap["markMessagesAsSubmittedToSmsc"] = Processor.process_markMessagesAsSubmittedToSmsc
1766
    self._processMap["markMessagesAsSent"] = Processor.process_markMessagesAsSent
1767
    self._processMap["markMessagesAsRetry"] = Processor.process_markMessagesAsRetry
349 ashish 1768
 
1769
  def process(self, iprot, oprot):
1770
    (name, type, seqid) = iprot.readMessageBegin()
1771
    if name not in self._processMap:
1772
      iprot.skip(TType.STRUCT)
1773
      iprot.readMessageEnd()
1774
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
1775
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
1776
      x.write(oprot)
1777
      oprot.writeMessageEnd()
1778
      oprot.trans.flush()
1779
      return
1780
    else:
1781
      self._processMap[name](self, seqid, iprot, oprot)
1782
    return True
1783
 
1395 varun.gupt 1784
  def process_saveUserEmailForSending(self, seqid, iprot, oprot):
1785
    args = saveUserEmailForSending_args()
1786
    args.read(iprot)
1787
    iprot.readMessageEnd()
1788
    result = saveUserEmailForSending_result()
1789
    try:
8020 rajveer 1790
      result.success = self._handler.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType, args.cc, args.bcc, args.sourceId)
1395 varun.gupt 1791
    except HelperServiceException, se:
1792
      result.se = se
1793
    oprot.writeMessageBegin("saveUserEmailForSending", TMessageType.REPLY, seqid)
1794
    result.write(oprot)
1795
    oprot.writeMessageEnd()
1796
    oprot.trans.flush()
1797
 
1422 varun.gupt 1798
  def process_getEmailsToBeSent(self, seqid, iprot, oprot):
1799
    args = getEmailsToBeSent_args()
1800
    args.read(iprot)
1801
    iprot.readMessageEnd()
1802
    result = getEmailsToBeSent_result()
1803
    try:
3086 rajveer 1804
      result.success = self._handler.getEmailsToBeSent()
1422 varun.gupt 1805
    except HelperServiceException, se:
1806
      result.se = se
1807
    oprot.writeMessageBegin("getEmailsToBeSent", TMessageType.REPLY, seqid)
1808
    result.write(oprot)
1809
    oprot.writeMessageEnd()
1810
    oprot.trans.flush()
1811
 
1812
  def process_markEmailAsSent(self, seqid, iprot, oprot):
1813
    args = markEmailAsSent_args()
1814
    args.read(iprot)
1815
    iprot.readMessageEnd()
1816
    result = markEmailAsSent_result()
1817
    try:
1818
      self._handler.markEmailAsSent(args.emailId)
1819
    except HelperServiceException, se:
1820
      result.se = se
1821
    oprot.writeMessageBegin("markEmailAsSent", TMessageType.REPLY, seqid)
1822
    result.write(oprot)
1823
    oprot.writeMessageEnd()
1824
    oprot.trans.flush()
1825
 
349 ashish 1826
  def process_sendMail(self, seqid, iprot, oprot):
1827
    args = sendMail_args()
1828
    args.read(iprot)
1829
    iprot.readMessageEnd()
1830
    result = sendMail_result()
1831
    try:
1832
      self._handler.sendMail(args.mail)
1833
    except HelperServiceException, se:
1834
      result.se = se
1835
    oprot.writeMessageBegin("sendMail", TMessageType.REPLY, seqid)
1836
    result.write(oprot)
1837
    oprot.writeMessageEnd()
1838
    oprot.trans.flush()
1839
 
1840
  def process_sendText(self, seqid, iprot, oprot):
1841
    args = sendText_args()
1842
    args.read(iprot)
1843
    iprot.readMessageEnd()
1844
    result = sendText_result()
1845
    try:
1846
      self._handler.sendText(args.message)
1847
    except HelperServiceException, se:
1848
      result.se = se
1849
    oprot.writeMessageBegin("sendText", TMessageType.REPLY, seqid)
1850
    result.write(oprot)
1851
    oprot.writeMessageEnd()
1852
    oprot.trans.flush()
1853
 
1854
  def process_addMessage(self, seqid, iprot, oprot):
1855
    args = addMessage_args()
1856
    args.read(iprot)
1857
    iprot.readMessageEnd()
1858
    result = addMessage_result()
1859
    try:
1860
      self._handler.addMessage(args.message)
1861
    except HelperServiceException, se:
1862
      result.se = se
1863
    oprot.writeMessageBegin("addMessage", TMessageType.REPLY, seqid)
1864
    result.write(oprot)
1865
    oprot.writeMessageEnd()
1866
    oprot.trans.flush()
1867
 
1868
  def process_updateMessage(self, seqid, iprot, oprot):
1869
    args = updateMessage_args()
1870
    args.read(iprot)
1871
    iprot.readMessageEnd()
1872
    result = updateMessage_result()
1873
    try:
1874
      self._handler.updateMessage(args.id, args.message)
1875
    except HelperServiceException, se:
1876
      result.se = se
1877
    oprot.writeMessageBegin("updateMessage", TMessageType.REPLY, seqid)
1878
    result.write(oprot)
1879
    oprot.writeMessageEnd()
1880
    oprot.trans.flush()
1881
 
1882
  def process_getMessage(self, seqid, iprot, oprot):
1883
    args = getMessage_args()
1884
    args.read(iprot)
1885
    iprot.readMessageEnd()
1886
    result = getMessage_result()
1887
    try:
353 ashish 1888
      result.success = self._handler.getMessage(args.id)
349 ashish 1889
    except HelperServiceException, se:
1890
      result.se = se
1891
    oprot.writeMessageBegin("getMessage", TMessageType.REPLY, seqid)
1892
    result.write(oprot)
1893
    oprot.writeMessageEnd()
1894
    oprot.trans.flush()
1895
 
1896
  def process_getSubstitutedMessage(self, seqid, iprot, oprot):
1897
    args = getSubstitutedMessage_args()
1898
    args.read(iprot)
1899
    iprot.readMessageEnd()
1900
    result = getSubstitutedMessage_result()
1901
    try:
353 ashish 1902
      result.success = self._handler.getSubstitutedMessage(args.id, args.params)
349 ashish 1903
    except HelperServiceException, se:
1904
      result.se = se
1905
    oprot.writeMessageBegin("getSubstitutedMessage", TMessageType.REPLY, seqid)
1906
    result.write(oprot)
1907
    oprot.writeMessageEnd()
1908
    oprot.trans.flush()
1909
 
494 rajveer 1910
  def process_addUser(self, seqid, iprot, oprot):
1911
    args = addUser_args()
1912
    args.read(iprot)
1913
    iprot.readMessageEnd()
1914
    result = addUser_result()
1915
    try:
1916
      result.success = self._handler.addUser(args.username, args.password, args.warehouseId)
1917
    except HelperServiceException, se:
1918
      result.se = se
1919
    oprot.writeMessageBegin("addUser", TMessageType.REPLY, seqid)
1920
    result.write(oprot)
1921
    oprot.writeMessageEnd()
1922
    oprot.trans.flush()
349 ashish 1923
 
494 rajveer 1924
  def process_deleteUser(self, seqid, iprot, oprot):
1925
    args = deleteUser_args()
1926
    args.read(iprot)
1927
    iprot.readMessageEnd()
1928
    result = deleteUser_result()
1929
    try:
1930
      result.success = self._handler.deleteUser(args.username)
1931
    except HelperServiceException, se:
1932
      result.se = se
1933
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
1934
    result.write(oprot)
1935
    oprot.writeMessageEnd()
1936
    oprot.trans.flush()
1937
 
2447 chandransh 1938
  def process_authenticateDashboardUser(self, seqid, iprot, oprot):
1939
    args = authenticateDashboardUser_args()
494 rajveer 1940
    args.read(iprot)
1941
    iprot.readMessageEnd()
2447 chandransh 1942
    result = authenticateDashboardUser_result()
494 rajveer 1943
    try:
2447 chandransh 1944
      result.success = self._handler.authenticateDashboardUser(args.username, args.password)
494 rajveer 1945
    except HelperServiceException, se:
1946
      result.se = se
2447 chandransh 1947
    oprot.writeMessageBegin("authenticateDashboardUser", TMessageType.REPLY, seqid)
494 rajveer 1948
    result.write(oprot)
1949
    oprot.writeMessageEnd()
1950
    oprot.trans.flush()
1951
 
1952
  def process_updatePassword(self, seqid, iprot, oprot):
1953
    args = updatePassword_args()
1954
    args.read(iprot)
1955
    iprot.readMessageEnd()
1956
    result = updatePassword_result()
1957
    try:
1958
      result.success = self._handler.updatePassword(args.username, args.oldPassword, args.newPassword)
1959
    except HelperServiceException, se:
1960
      result.se = se
1961
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
1962
    result.write(oprot)
1963
    oprot.writeMessageEnd()
1964
    oprot.trans.flush()
1965
 
759 chandransh 1966
  def process_authenticateLogisticsUser(self, seqid, iprot, oprot):
1967
    args = authenticateLogisticsUser_args()
1968
    args.read(iprot)
1969
    iprot.readMessageEnd()
1970
    result = authenticateLogisticsUser_result()
1971
    try:
1972
      result.success = self._handler.authenticateLogisticsUser(args.username, args.password)
1973
    except HelperServiceException, hse:
1974
      result.hse = hse
1975
    oprot.writeMessageBegin("authenticateLogisticsUser", TMessageType.REPLY, seqid)
1976
    result.write(oprot)
1977
    oprot.writeMessageEnd()
1978
    oprot.trans.flush()
494 rajveer 1979
 
1610 ankur.sing 1980
  def process_authenticateStatisticsUser(self, seqid, iprot, oprot):
1981
    args = authenticateStatisticsUser_args()
1982
    args.read(iprot)
1983
    iprot.readMessageEnd()
1984
    result = authenticateStatisticsUser_result()
1985
    try:
1986
      result.success = self._handler.authenticateStatisticsUser(args.username, args.password)
1987
    except HelperServiceException, hse:
1988
      result.hse = hse
1989
    oprot.writeMessageBegin("authenticateStatisticsUser", TMessageType.REPLY, seqid)
1990
    result.write(oprot)
1991
    oprot.writeMessageEnd()
1992
    oprot.trans.flush()
759 chandransh 1993
 
1891 ankur.sing 1994
  def process_authenticateReportUser(self, seqid, iprot, oprot):
1995
    args = authenticateReportUser_args()
1996
    args.read(iprot)
1997
    iprot.readMessageEnd()
1998
    result = authenticateReportUser_result()
1999
    try:
2000
      result.success = self._handler.authenticateReportUser(args.username, args.password)
2001
    except HelperServiceException, hse:
2002
      result.hse = hse
2003
    oprot.writeMessageBegin("authenticateReportUser", TMessageType.REPLY, seqid)
2004
    result.write(oprot)
2005
    oprot.writeMessageEnd()
2006
    oprot.trans.flush()
1610 ankur.sing 2007
 
1891 ankur.sing 2008
  def process_getReports(self, seqid, iprot, oprot):
2009
    args = getReports_args()
2010
    args.read(iprot)
2011
    iprot.readMessageEnd()
2012
    result = getReports_result()
2013
    result.success = self._handler.getReports(args.role)
2014
    oprot.writeMessageBegin("getReports", TMessageType.REPLY, seqid)
2015
    result.write(oprot)
2016
    oprot.writeMessageEnd()
2017
    oprot.trans.flush()
2018
 
2025 ankur.sing 2019
  def process_authenticateCatalogUser(self, seqid, iprot, oprot):
2020
    args = authenticateCatalogUser_args()
2021
    args.read(iprot)
2022
    iprot.readMessageEnd()
2023
    result = authenticateCatalogUser_result()
2024
    try:
6788 rajveer 2025
      result.success = self._handler.authenticateCatalogUser(args.username, args.password)
2025 ankur.sing 2026
    except HelperServiceException, hse:
2027
      result.hse = hse
2028
    oprot.writeMessageBegin("authenticateCatalogUser", TMessageType.REPLY, seqid)
2029
    result.write(oprot)
2030
    oprot.writeMessageEnd()
2031
    oprot.trans.flush()
1891 ankur.sing 2032
 
4544 varun.gupt 2033
  def process_shareEntities(self, seqid, iprot, oprot):
2034
    args = shareEntities_args()
2035
    args.read(iprot)
2036
    iprot.readMessageEnd()
2037
    result = shareEntities_result()
2038
    try:
2039
      self._handler.shareEntities(args.entityIds, args.email)
2040
    except HelperServiceException, hse:
2041
      result.hse = hse
2042
    oprot.writeMessageBegin("shareEntities", TMessageType.REPLY, seqid)
2043
    result.write(oprot)
2044
    oprot.writeMessageEnd()
2045
    oprot.trans.flush()
2025 ankur.sing 2046
 
4691 mandeep.dh 2047
  def process_getAgents(self, seqid, iprot, oprot):
2048
    args = getAgents_args()
2049
    args.read(iprot)
2050
    iprot.readMessageEnd()
2051
    result = getAgents_result()
2052
    result.success = self._handler.getAgents()
2053
    oprot.writeMessageBegin("getAgents", TMessageType.REPLY, seqid)
2054
    result.write(oprot)
2055
    oprot.writeMessageEnd()
2056
    oprot.trans.flush()
4544 varun.gupt 2057
 
4691 mandeep.dh 2058
  def process_validateLogIn(self, seqid, iprot, oprot):
2059
    args = validateLogIn_args()
2060
    args.read(iprot)
2061
    iprot.readMessageEnd()
2062
    result = validateLogIn_result()
2063
    result.success = self._handler.validateLogIn(args.emailId, args.password)
2064
    oprot.writeMessageBegin("validateLogIn", TMessageType.REPLY, seqid)
2065
    result.write(oprot)
2066
    oprot.writeMessageEnd()
2067
    oprot.trans.flush()
2068
 
2069
  def process_updatePasswordForAgent(self, seqid, iprot, oprot):
2070
    args = updatePasswordForAgent_args()
2071
    args.read(iprot)
2072
    iprot.readMessageEnd()
2073
    result = updatePasswordForAgent_result()
2074
    self._handler.updatePasswordForAgent(args.agentEmailId, args.password)
2075
    oprot.writeMessageBegin("updatePasswordForAgent", TMessageType.REPLY, seqid)
2076
    result.write(oprot)
2077
    oprot.writeMessageEnd()
2078
    oprot.trans.flush()
2079
 
2080
  def process_getRoleNamesForAgent(self, seqid, iprot, oprot):
2081
    args = getRoleNamesForAgent_args()
2082
    args.read(iprot)
2083
    iprot.readMessageEnd()
2084
    result = getRoleNamesForAgent_result()
2085
    result.success = self._handler.getRoleNamesForAgent(args.agentEmailId)
2086
    oprot.writeMessageBegin("getRoleNamesForAgent", TMessageType.REPLY, seqid)
2087
    result.write(oprot)
2088
    oprot.writeMessageEnd()
2089
    oprot.trans.flush()
2090
 
2091
  def process_getPermissionsForRoleName(self, seqid, iprot, oprot):
2092
    args = getPermissionsForRoleName_args()
2093
    args.read(iprot)
2094
    iprot.readMessageEnd()
2095
    result = getPermissionsForRoleName_result()
2096
    result.success = self._handler.getPermissionsForRoleName(args.roleName)
2097
    oprot.writeMessageBegin("getPermissionsForRoleName", TMessageType.REPLY, seqid)
2098
    result.write(oprot)
2099
    oprot.writeMessageEnd()
2100
    oprot.trans.flush()
2101
 
4806 varun.gupt 2102
  def process_saveQuickLink(self, seqid, iprot, oprot):
2103
    args = saveQuickLink_args()
2104
    args.read(iprot)
2105
    iprot.readMessageEnd()
2106
    result = saveQuickLink_result()
2107
    try:
2108
      self._handler.saveQuickLink(args.url, args.text)
2109
    except HelperServiceException, hse:
2110
      result.hse = hse
2111
    oprot.writeMessageBegin("saveQuickLink", TMessageType.REPLY, seqid)
2112
    result.write(oprot)
2113
    oprot.writeMessageEnd()
2114
    oprot.trans.flush()
4691 mandeep.dh 2115
 
4806 varun.gupt 2116
  def process_getQuickLinks(self, seqid, iprot, oprot):
2117
    args = getQuickLinks_args()
2118
    args.read(iprot)
2119
    iprot.readMessageEnd()
2120
    result = getQuickLinks_result()
2121
    try:
2122
      result.success = self._handler.getQuickLinks()
2123
    except HelperServiceException, hse:
2124
      result.hse = hse
2125
    oprot.writeMessageBegin("getQuickLinks", TMessageType.REPLY, seqid)
2126
    result.write(oprot)
2127
    oprot.writeMessageEnd()
2128
    oprot.trans.flush()
2129
 
4996 varun.gupt 2130
  def process_updateQuickLink(self, seqid, iprot, oprot):
2131
    args = updateQuickLink_args()
2132
    args.read(iprot)
2133
    iprot.readMessageEnd()
2134
    result = updateQuickLink_result()
2135
    try:
2136
      self._handler.updateQuickLink(args.id, args.url, args.text)
2137
    except HelperServiceException, hse:
2138
      result.hse = hse
2139
    oprot.writeMessageBegin("updateQuickLink", TMessageType.REPLY, seqid)
2140
    result.write(oprot)
2141
    oprot.writeMessageEnd()
2142
    oprot.trans.flush()
4806 varun.gupt 2143
 
5055 varun.gupt 2144
  def process_getEmailsForNotificationsSent(self, seqid, iprot, oprot):
2145
    args = getEmailsForNotificationsSent_args()
2146
    args.read(iprot)
2147
    iprot.readMessageEnd()
2148
    result = getEmailsForNotificationsSent_result()
2149
    try:
2150
      result.success = self._handler.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime)
2151
    except HelperServiceException, hse:
2152
      result.hse = hse
2153
    oprot.writeMessageBegin("getEmailsForNotificationsSent", TMessageType.REPLY, seqid)
2154
    result.write(oprot)
2155
    oprot.writeMessageEnd()
2156
    oprot.trans.flush()
4996 varun.gupt 2157
 
6322 amar.kumar 2158
  def process_getOrderConfirmationMail(self, seqid, iprot, oprot):
2159
    args = getOrderConfirmationMail_args()
2160
    args.read(iprot)
2161
    iprot.readMessageEnd()
2162
    result = getOrderConfirmationMail_result()
2163
    result.success = self._handler.getOrderConfirmationMail(args.orderId)
2164
    oprot.writeMessageBegin("getOrderConfirmationMail", TMessageType.REPLY, seqid)
2165
    result.write(oprot)
2166
    oprot.writeMessageEnd()
2167
    oprot.trans.flush()
5055 varun.gupt 2168
 
7221 kshitij.so 2169
  def process_getOrderDeliveryMail(self, seqid, iprot, oprot):
2170
    args = getOrderDeliveryMail_args()
2171
    args.read(iprot)
2172
    iprot.readMessageEnd()
2173
    result = getOrderDeliveryMail_result()
2174
    result.success = self._handler.getOrderDeliveryMail(args.orderId)
2175
    oprot.writeMessageBegin("getOrderDeliveryMail", TMessageType.REPLY, seqid)
2176
    result.write(oprot)
2177
    oprot.writeMessageEnd()
2178
    oprot.trans.flush()
6322 amar.kumar 2179
 
7410 amar.kumar 2180
  def process_getWarehouseIdsForAgent(self, seqid, iprot, oprot):
2181
    args = getWarehouseIdsForAgent_args()
2182
    args.read(iprot)
2183
    iprot.readMessageEnd()
2184
    result = getWarehouseIdsForAgent_result()
2185
    result.success = self._handler.getWarehouseIdsForAgent(args.agentEmailId)
2186
    oprot.writeMessageBegin("getWarehouseIdsForAgent", TMessageType.REPLY, seqid)
2187
    result.write(oprot)
2188
    oprot.writeMessageEnd()
2189
    oprot.trans.flush()
7221 kshitij.so 2190
 
12691 manish.sha 2191
  def process_saveUserSmsForSending(self, seqid, iprot, oprot):
2192
    args = saveUserSmsForSending_args()
2193
    args.read(iprot)
2194
    iprot.readMessageEnd()
2195
    result = saveUserSmsForSending_result()
2196
    try:
2197
      result.success = self._handler.saveUserSmsForSending(args.userId, args.mobileNo, args.text, args.type)
2198
    except HelperServiceException, se:
2199
      result.se = se
2200
    oprot.writeMessageBegin("saveUserSmsForSending", TMessageType.REPLY, seqid)
2201
    result.write(oprot)
2202
    oprot.writeMessageEnd()
2203
    oprot.trans.flush()
7410 amar.kumar 2204
 
12691 manish.sha 2205
  def process_getSmsToBeSent(self, seqid, iprot, oprot):
2206
    args = getSmsToBeSent_args()
2207
    args.read(iprot)
2208
    iprot.readMessageEnd()
2209
    result = getSmsToBeSent_result()
2210
    try:
2211
      result.success = self._handler.getSmsToBeSent()
2212
    except HelperServiceException, se:
2213
      result.se = se
2214
    oprot.writeMessageBegin("getSmsToBeSent", TMessageType.REPLY, seqid)
2215
    result.write(oprot)
2216
    oprot.writeMessageEnd()
2217
    oprot.trans.flush()
2218
 
2219
  def process_addUserSmsInfo(self, seqid, iprot, oprot):
2220
    args = addUserSmsInfo_args()
2221
    args.read(iprot)
2222
    iprot.readMessageEnd()
2223
    result = addUserSmsInfo_result()
2224
    try:
2225
      self._handler.addUserSmsInfo(args.userSmsInfo)
2226
    except HelperServiceException, se:
2227
      result.se = se
2228
    oprot.writeMessageBegin("addUserSmsInfo", TMessageType.REPLY, seqid)
2229
    result.write(oprot)
2230
    oprot.writeMessageEnd()
2231
    oprot.trans.flush()
2232
 
2233
  def process_updateUserSmsInfo(self, seqid, iprot, oprot):
2234
    args = updateUserSmsInfo_args()
2235
    args.read(iprot)
2236
    iprot.readMessageEnd()
2237
    result = updateUserSmsInfo_result()
2238
    try:
2239
      result.success = self._handler.updateUserSmsInfo(args.userSmsInfo)
2240
    except HelperServiceException, se:
2241
      result.se = se
2242
    oprot.writeMessageBegin("updateUserSmsInfo", TMessageType.REPLY, seqid)
2243
    result.write(oprot)
2244
    oprot.writeMessageEnd()
2245
    oprot.trans.flush()
2246
 
2247
  def process_getUserSmsInfo(self, seqid, iprot, oprot):
2248
    args = getUserSmsInfo_args()
2249
    args.read(iprot)
2250
    iprot.readMessageEnd()
2251
    result = getUserSmsInfo_result()
2252
    try:
2253
      result.success = self._handler.getUserSmsInfo(args.userId)
2254
    except HelperServiceException, se:
2255
      result.se = se
2256
    oprot.writeMessageBegin("getUserSmsInfo", TMessageType.REPLY, seqid)
2257
    result.write(oprot)
2258
    oprot.writeMessageEnd()
2259
    oprot.trans.flush()
2260
 
2261
  def process_getAllUsersSmsInfo(self, seqid, iprot, oprot):
2262
    args = getAllUsersSmsInfo_args()
2263
    args.read(iprot)
2264
    iprot.readMessageEnd()
2265
    result = getAllUsersSmsInfo_result()
2266
    try:
2267
      result.success = self._handler.getAllUsersSmsInfo(args.dndStatus, args.smsSubscribed)
2268
    except HelperServiceException, se:
2269
      result.se = se
2270
    oprot.writeMessageBegin("getAllUsersSmsInfo", TMessageType.REPLY, seqid)
2271
    result.write(oprot)
2272
    oprot.writeMessageEnd()
2273
    oprot.trans.flush()
2274
 
2275
  def process_listSmsToGetDeliveryInfo(self, seqid, iprot, oprot):
2276
    args = listSmsToGetDeliveryInfo_args()
2277
    args.read(iprot)
2278
    iprot.readMessageEnd()
2279
    result = listSmsToGetDeliveryInfo_result()
2280
    try:
2281
      result.success = self._handler.listSmsToGetDeliveryInfo()
2282
    except HelperServiceException, se:
2283
      result.se = se
2284
    oprot.writeMessageBegin("listSmsToGetDeliveryInfo", TMessageType.REPLY, seqid)
2285
    result.write(oprot)
2286
    oprot.writeMessageEnd()
2287
    oprot.trans.flush()
2288
 
2289
  def process_markMessagesAsSentToOperator(self, seqid, iprot, oprot):
2290
    args = markMessagesAsSentToOperator_args()
2291
    args.read(iprot)
2292
    iprot.readMessageEnd()
2293
    result = markMessagesAsSentToOperator_result()
2294
    result.success = self._handler.markMessagesAsSentToOperator(args.userSmsList)
2295
    oprot.writeMessageBegin("markMessagesAsSentToOperator", TMessageType.REPLY, seqid)
2296
    result.write(oprot)
2297
    oprot.writeMessageEnd()
2298
    oprot.trans.flush()
2299
 
2300
  def process_markMessagesAsSubmittedToSmsc(self, seqid, iprot, oprot):
2301
    args = markMessagesAsSubmittedToSmsc_args()
2302
    args.read(iprot)
2303
    iprot.readMessageEnd()
2304
    result = markMessagesAsSubmittedToSmsc_result()
2305
    result.success = self._handler.markMessagesAsSubmittedToSmsc(args.userSmsList)
2306
    oprot.writeMessageBegin("markMessagesAsSubmittedToSmsc", TMessageType.REPLY, seqid)
2307
    result.write(oprot)
2308
    oprot.writeMessageEnd()
2309
    oprot.trans.flush()
2310
 
2311
  def process_markMessagesAsSent(self, seqid, iprot, oprot):
2312
    args = markMessagesAsSent_args()
2313
    args.read(iprot)
2314
    iprot.readMessageEnd()
2315
    result = markMessagesAsSent_result()
2316
    result.success = self._handler.markMessagesAsSent(args.userSmsList)
2317
    oprot.writeMessageBegin("markMessagesAsSent", TMessageType.REPLY, seqid)
2318
    result.write(oprot)
2319
    oprot.writeMessageEnd()
2320
    oprot.trans.flush()
2321
 
2322
  def process_markMessagesAsRetry(self, seqid, iprot, oprot):
2323
    args = markMessagesAsRetry_args()
2324
    args.read(iprot)
2325
    iprot.readMessageEnd()
2326
    result = markMessagesAsRetry_result()
2327
    result.success = self._handler.markMessagesAsRetry(args.userSmsList)
2328
    oprot.writeMessageBegin("markMessagesAsRetry", TMessageType.REPLY, seqid)
2329
    result.write(oprot)
2330
    oprot.writeMessageEnd()
2331
    oprot.trans.flush()
2332
 
2333
 
349 ashish 2334
# HELPER FUNCTIONS AND STRUCTURES
2335
 
1395 varun.gupt 2336
class saveUserEmailForSending_args:
2337
  """
2338
  Attributes:
2339
   - emailTo
2340
   - emailFrom
2341
   - subject
2342
   - body
2343
   - source
2344
   - emailType
5864 rajveer 2345
   - cc
2346
   - bcc
8020 rajveer 2347
   - sourceId
1395 varun.gupt 2348
  """
2349
 
2350
  thrift_spec = (
2351
    None, # 0
5864 rajveer 2352
    (1, TType.LIST, 'emailTo', (TType.STRING,None), None, ), # 1
1395 varun.gupt 2353
    (2, TType.STRING, 'emailFrom', None, None, ), # 2
2354
    (3, TType.STRING, 'subject', None, None, ), # 3
2355
    (4, TType.STRING, 'body', None, None, ), # 4
2356
    (5, TType.STRING, 'source', None, None, ), # 5
2357
    (6, TType.STRING, 'emailType', None, None, ), # 6
5864 rajveer 2358
    (7, TType.LIST, 'cc', (TType.STRING,None), None, ), # 7
2359
    (8, TType.LIST, 'bcc', (TType.STRING,None), None, ), # 8
8020 rajveer 2360
    (9, TType.I64, 'sourceId', None, None, ), # 9
1395 varun.gupt 2361
  )
2362
 
8020 rajveer 2363
  def __init__(self, emailTo=None, emailFrom=None, subject=None, body=None, source=None, emailType=None, cc=None, bcc=None, sourceId=None,):
1395 varun.gupt 2364
    self.emailTo = emailTo
2365
    self.emailFrom = emailFrom
2366
    self.subject = subject
2367
    self.body = body
2368
    self.source = source
2369
    self.emailType = emailType
5864 rajveer 2370
    self.cc = cc
2371
    self.bcc = bcc
8020 rajveer 2372
    self.sourceId = sourceId
1395 varun.gupt 2373
 
2374
  def read(self, iprot):
2375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2377
      return
2378
    iprot.readStructBegin()
2379
    while True:
2380
      (fname, ftype, fid) = iprot.readFieldBegin()
2381
      if ftype == TType.STOP:
2382
        break
2383
      if fid == 1:
5864 rajveer 2384
        if ftype == TType.LIST:
2385
          self.emailTo = []
2386
          (_etype38, _size35) = iprot.readListBegin()
2387
          for _i39 in xrange(_size35):
2388
            _elem40 = iprot.readString();
2389
            self.emailTo.append(_elem40)
2390
          iprot.readListEnd()
1395 varun.gupt 2391
        else:
2392
          iprot.skip(ftype)
2393
      elif fid == 2:
2394
        if ftype == TType.STRING:
2395
          self.emailFrom = iprot.readString();
2396
        else:
2397
          iprot.skip(ftype)
2398
      elif fid == 3:
2399
        if ftype == TType.STRING:
2400
          self.subject = iprot.readString();
2401
        else:
2402
          iprot.skip(ftype)
2403
      elif fid == 4:
2404
        if ftype == TType.STRING:
2405
          self.body = iprot.readString();
2406
        else:
2407
          iprot.skip(ftype)
2408
      elif fid == 5:
2409
        if ftype == TType.STRING:
2410
          self.source = iprot.readString();
2411
        else:
2412
          iprot.skip(ftype)
2413
      elif fid == 6:
2414
        if ftype == TType.STRING:
2415
          self.emailType = iprot.readString();
2416
        else:
2417
          iprot.skip(ftype)
5864 rajveer 2418
      elif fid == 7:
2419
        if ftype == TType.LIST:
2420
          self.cc = []
2421
          (_etype44, _size41) = iprot.readListBegin()
2422
          for _i45 in xrange(_size41):
2423
            _elem46 = iprot.readString();
2424
            self.cc.append(_elem46)
2425
          iprot.readListEnd()
2426
        else:
2427
          iprot.skip(ftype)
2428
      elif fid == 8:
2429
        if ftype == TType.LIST:
2430
          self.bcc = []
2431
          (_etype50, _size47) = iprot.readListBegin()
2432
          for _i51 in xrange(_size47):
2433
            _elem52 = iprot.readString();
2434
            self.bcc.append(_elem52)
2435
          iprot.readListEnd()
2436
        else:
2437
          iprot.skip(ftype)
8020 rajveer 2438
      elif fid == 9:
2439
        if ftype == TType.I64:
2440
          self.sourceId = iprot.readI64();
2441
        else:
2442
          iprot.skip(ftype)
1395 varun.gupt 2443
      else:
2444
        iprot.skip(ftype)
2445
      iprot.readFieldEnd()
2446
    iprot.readStructEnd()
2447
 
2448
  def write(self, oprot):
2449
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2450
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2451
      return
2452
    oprot.writeStructBegin('saveUserEmailForSending_args')
3431 rajveer 2453
    if self.emailTo is not None:
5864 rajveer 2454
      oprot.writeFieldBegin('emailTo', TType.LIST, 1)
2455
      oprot.writeListBegin(TType.STRING, len(self.emailTo))
2456
      for iter53 in self.emailTo:
2457
        oprot.writeString(iter53)
2458
      oprot.writeListEnd()
1395 varun.gupt 2459
      oprot.writeFieldEnd()
3431 rajveer 2460
    if self.emailFrom is not None:
1395 varun.gupt 2461
      oprot.writeFieldBegin('emailFrom', TType.STRING, 2)
2462
      oprot.writeString(self.emailFrom)
2463
      oprot.writeFieldEnd()
3431 rajveer 2464
    if self.subject is not None:
1395 varun.gupt 2465
      oprot.writeFieldBegin('subject', TType.STRING, 3)
2466
      oprot.writeString(self.subject)
2467
      oprot.writeFieldEnd()
3431 rajveer 2468
    if self.body is not None:
1395 varun.gupt 2469
      oprot.writeFieldBegin('body', TType.STRING, 4)
2470
      oprot.writeString(self.body)
2471
      oprot.writeFieldEnd()
3431 rajveer 2472
    if self.source is not None:
1395 varun.gupt 2473
      oprot.writeFieldBegin('source', TType.STRING, 5)
2474
      oprot.writeString(self.source)
2475
      oprot.writeFieldEnd()
3431 rajveer 2476
    if self.emailType is not None:
1395 varun.gupt 2477
      oprot.writeFieldBegin('emailType', TType.STRING, 6)
2478
      oprot.writeString(self.emailType)
2479
      oprot.writeFieldEnd()
5864 rajveer 2480
    if self.cc is not None:
2481
      oprot.writeFieldBegin('cc', TType.LIST, 7)
2482
      oprot.writeListBegin(TType.STRING, len(self.cc))
2483
      for iter54 in self.cc:
2484
        oprot.writeString(iter54)
2485
      oprot.writeListEnd()
2486
      oprot.writeFieldEnd()
2487
    if self.bcc is not None:
2488
      oprot.writeFieldBegin('bcc', TType.LIST, 8)
2489
      oprot.writeListBegin(TType.STRING, len(self.bcc))
2490
      for iter55 in self.bcc:
2491
        oprot.writeString(iter55)
2492
      oprot.writeListEnd()
2493
      oprot.writeFieldEnd()
8020 rajveer 2494
    if self.sourceId is not None:
2495
      oprot.writeFieldBegin('sourceId', TType.I64, 9)
2496
      oprot.writeI64(self.sourceId)
2497
      oprot.writeFieldEnd()
1395 varun.gupt 2498
    oprot.writeFieldStop()
2499
    oprot.writeStructEnd()
2500
 
3431 rajveer 2501
  def validate(self):
2502
    return
2503
 
2504
 
1395 varun.gupt 2505
  def __repr__(self):
2506
    L = ['%s=%r' % (key, value)
2507
      for key, value in self.__dict__.iteritems()]
2508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2509
 
2510
  def __eq__(self, other):
2511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2512
 
2513
  def __ne__(self, other):
2514
    return not (self == other)
2515
 
2516
class saveUserEmailForSending_result:
2517
  """
2518
  Attributes:
3206 mandeep.dh 2519
   - success
1395 varun.gupt 2520
   - se
2521
  """
2522
 
2523
  thrift_spec = (
3206 mandeep.dh 2524
    (0, TType.I64, 'success', None, None, ), # 0
1395 varun.gupt 2525
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2526
  )
2527
 
3206 mandeep.dh 2528
  def __init__(self, success=None, se=None,):
2529
    self.success = success
1395 varun.gupt 2530
    self.se = se
2531
 
2532
  def read(self, iprot):
2533
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2534
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2535
      return
2536
    iprot.readStructBegin()
2537
    while True:
2538
      (fname, ftype, fid) = iprot.readFieldBegin()
2539
      if ftype == TType.STOP:
2540
        break
3206 mandeep.dh 2541
      if fid == 0:
2542
        if ftype == TType.I64:
2543
          self.success = iprot.readI64();
2544
        else:
2545
          iprot.skip(ftype)
2546
      elif fid == 1:
1395 varun.gupt 2547
        if ftype == TType.STRUCT:
2548
          self.se = HelperServiceException()
2549
          self.se.read(iprot)
2550
        else:
2551
          iprot.skip(ftype)
2552
      else:
2553
        iprot.skip(ftype)
2554
      iprot.readFieldEnd()
2555
    iprot.readStructEnd()
2556
 
2557
  def write(self, oprot):
2558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2560
      return
2561
    oprot.writeStructBegin('saveUserEmailForSending_result')
3431 rajveer 2562
    if self.success is not None:
3206 mandeep.dh 2563
      oprot.writeFieldBegin('success', TType.I64, 0)
2564
      oprot.writeI64(self.success)
2565
      oprot.writeFieldEnd()
3431 rajveer 2566
    if self.se is not None:
1395 varun.gupt 2567
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2568
      self.se.write(oprot)
2569
      oprot.writeFieldEnd()
2570
    oprot.writeFieldStop()
2571
    oprot.writeStructEnd()
2572
 
3431 rajveer 2573
  def validate(self):
2574
    return
2575
 
2576
 
1395 varun.gupt 2577
  def __repr__(self):
2578
    L = ['%s=%r' % (key, value)
2579
      for key, value in self.__dict__.iteritems()]
2580
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2581
 
2582
  def __eq__(self, other):
2583
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2584
 
2585
  def __ne__(self, other):
2586
    return not (self == other)
2587
 
1422 varun.gupt 2588
class getEmailsToBeSent_args:
2589
 
2590
  thrift_spec = (
2591
  )
2592
 
2593
  def read(self, iprot):
2594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2596
      return
2597
    iprot.readStructBegin()
2598
    while True:
2599
      (fname, ftype, fid) = iprot.readFieldBegin()
2600
      if ftype == TType.STOP:
2601
        break
2602
      else:
2603
        iprot.skip(ftype)
2604
      iprot.readFieldEnd()
2605
    iprot.readStructEnd()
2606
 
2607
  def write(self, oprot):
2608
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2609
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2610
      return
2611
    oprot.writeStructBegin('getEmailsToBeSent_args')
2612
    oprot.writeFieldStop()
2613
    oprot.writeStructEnd()
2614
 
3431 rajveer 2615
  def validate(self):
2616
    return
2617
 
2618
 
1422 varun.gupt 2619
  def __repr__(self):
2620
    L = ['%s=%r' % (key, value)
2621
      for key, value in self.__dict__.iteritems()]
2622
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2623
 
2624
  def __eq__(self, other):
2625
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2626
 
2627
  def __ne__(self, other):
2628
    return not (self == other)
2629
 
2630
class getEmailsToBeSent_result:
2631
  """
2632
  Attributes:
2633
   - success
2634
   - se
2635
  """
2636
 
2637
  thrift_spec = (
2638
    (0, TType.LIST, 'success', (TType.STRUCT,(UserEmail, UserEmail.thrift_spec)), None, ), # 0
2639
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2640
  )
2641
 
2642
  def __init__(self, success=None, se=None,):
2643
    self.success = success
2644
    self.se = se
2645
 
2646
  def read(self, iprot):
2647
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2648
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2649
      return
2650
    iprot.readStructBegin()
2651
    while True:
2652
      (fname, ftype, fid) = iprot.readFieldBegin()
2653
      if ftype == TType.STOP:
2654
        break
2655
      if fid == 0:
2656
        if ftype == TType.LIST:
2657
          self.success = []
5864 rajveer 2658
          (_etype59, _size56) = iprot.readListBegin()
2659
          for _i60 in xrange(_size56):
2660
            _elem61 = UserEmail()
2661
            _elem61.read(iprot)
2662
            self.success.append(_elem61)
1422 varun.gupt 2663
          iprot.readListEnd()
2664
        else:
2665
          iprot.skip(ftype)
2666
      elif fid == 1:
2667
        if ftype == TType.STRUCT:
2668
          self.se = HelperServiceException()
2669
          self.se.read(iprot)
2670
        else:
2671
          iprot.skip(ftype)
2672
      else:
2673
        iprot.skip(ftype)
2674
      iprot.readFieldEnd()
2675
    iprot.readStructEnd()
2676
 
2677
  def write(self, oprot):
2678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2680
      return
2681
    oprot.writeStructBegin('getEmailsToBeSent_result')
3431 rajveer 2682
    if self.success is not None:
1422 varun.gupt 2683
      oprot.writeFieldBegin('success', TType.LIST, 0)
2684
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5864 rajveer 2685
      for iter62 in self.success:
2686
        iter62.write(oprot)
1422 varun.gupt 2687
      oprot.writeListEnd()
2688
      oprot.writeFieldEnd()
3431 rajveer 2689
    if self.se is not None:
1422 varun.gupt 2690
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2691
      self.se.write(oprot)
2692
      oprot.writeFieldEnd()
2693
    oprot.writeFieldStop()
2694
    oprot.writeStructEnd()
2695
 
3431 rajveer 2696
  def validate(self):
2697
    return
2698
 
2699
 
1422 varun.gupt 2700
  def __repr__(self):
2701
    L = ['%s=%r' % (key, value)
2702
      for key, value in self.__dict__.iteritems()]
2703
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2704
 
2705
  def __eq__(self, other):
2706
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2707
 
2708
  def __ne__(self, other):
2709
    return not (self == other)
2710
 
2711
class markEmailAsSent_args:
2712
  """
2713
  Attributes:
2714
   - emailId
2715
  """
2716
 
2717
  thrift_spec = (
2718
    None, # 0
2719
    (1, TType.I64, 'emailId', None, None, ), # 1
2720
  )
2721
 
2722
  def __init__(self, emailId=None,):
2723
    self.emailId = emailId
2724
 
2725
  def read(self, iprot):
2726
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2727
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2728
      return
2729
    iprot.readStructBegin()
2730
    while True:
2731
      (fname, ftype, fid) = iprot.readFieldBegin()
2732
      if ftype == TType.STOP:
2733
        break
2734
      if fid == 1:
2735
        if ftype == TType.I64:
2736
          self.emailId = iprot.readI64();
2737
        else:
2738
          iprot.skip(ftype)
2739
      else:
2740
        iprot.skip(ftype)
2741
      iprot.readFieldEnd()
2742
    iprot.readStructEnd()
2743
 
2744
  def write(self, oprot):
2745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2747
      return
2748
    oprot.writeStructBegin('markEmailAsSent_args')
3431 rajveer 2749
    if self.emailId is not None:
1422 varun.gupt 2750
      oprot.writeFieldBegin('emailId', TType.I64, 1)
2751
      oprot.writeI64(self.emailId)
2752
      oprot.writeFieldEnd()
2753
    oprot.writeFieldStop()
2754
    oprot.writeStructEnd()
2755
 
3431 rajveer 2756
  def validate(self):
2757
    return
2758
 
2759
 
1422 varun.gupt 2760
  def __repr__(self):
2761
    L = ['%s=%r' % (key, value)
2762
      for key, value in self.__dict__.iteritems()]
2763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2764
 
2765
  def __eq__(self, other):
2766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2767
 
2768
  def __ne__(self, other):
2769
    return not (self == other)
2770
 
2771
class markEmailAsSent_result:
2772
  """
2773
  Attributes:
2774
   - se
2775
  """
2776
 
2777
  thrift_spec = (
2778
    None, # 0
2779
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2780
  )
2781
 
2782
  def __init__(self, se=None,):
2783
    self.se = se
2784
 
2785
  def read(self, iprot):
2786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2788
      return
2789
    iprot.readStructBegin()
2790
    while True:
2791
      (fname, ftype, fid) = iprot.readFieldBegin()
2792
      if ftype == TType.STOP:
2793
        break
2794
      if fid == 1:
2795
        if ftype == TType.STRUCT:
2796
          self.se = HelperServiceException()
2797
          self.se.read(iprot)
2798
        else:
2799
          iprot.skip(ftype)
2800
      else:
2801
        iprot.skip(ftype)
2802
      iprot.readFieldEnd()
2803
    iprot.readStructEnd()
2804
 
2805
  def write(self, oprot):
2806
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2807
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2808
      return
2809
    oprot.writeStructBegin('markEmailAsSent_result')
3431 rajveer 2810
    if self.se is not None:
1422 varun.gupt 2811
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2812
      self.se.write(oprot)
2813
      oprot.writeFieldEnd()
2814
    oprot.writeFieldStop()
2815
    oprot.writeStructEnd()
2816
 
3431 rajveer 2817
  def validate(self):
2818
    return
2819
 
2820
 
1422 varun.gupt 2821
  def __repr__(self):
2822
    L = ['%s=%r' % (key, value)
2823
      for key, value in self.__dict__.iteritems()]
2824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2825
 
2826
  def __eq__(self, other):
2827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2828
 
2829
  def __ne__(self, other):
2830
    return not (self == other)
2831
 
349 ashish 2832
class sendMail_args:
2833
  """
2834
  Attributes:
2835
   - mail
2836
  """
2837
 
2838
  thrift_spec = (
2839
    None, # 0
2840
    (1, TType.STRUCT, 'mail', (Mail, Mail.thrift_spec), None, ), # 1
2841
  )
2842
 
2843
  def __init__(self, mail=None,):
2844
    self.mail = mail
2845
 
2846
  def read(self, iprot):
2847
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2848
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2849
      return
2850
    iprot.readStructBegin()
2851
    while True:
2852
      (fname, ftype, fid) = iprot.readFieldBegin()
2853
      if ftype == TType.STOP:
2854
        break
2855
      if fid == 1:
2856
        if ftype == TType.STRUCT:
2857
          self.mail = Mail()
2858
          self.mail.read(iprot)
2859
        else:
2860
          iprot.skip(ftype)
2861
      else:
2862
        iprot.skip(ftype)
2863
      iprot.readFieldEnd()
2864
    iprot.readStructEnd()
2865
 
2866
  def write(self, oprot):
2867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2869
      return
2870
    oprot.writeStructBegin('sendMail_args')
3431 rajveer 2871
    if self.mail is not None:
349 ashish 2872
      oprot.writeFieldBegin('mail', TType.STRUCT, 1)
2873
      self.mail.write(oprot)
2874
      oprot.writeFieldEnd()
2875
    oprot.writeFieldStop()
2876
    oprot.writeStructEnd()
2877
 
3431 rajveer 2878
  def validate(self):
2879
    return
2880
 
2881
 
349 ashish 2882
  def __repr__(self):
2883
    L = ['%s=%r' % (key, value)
2884
      for key, value in self.__dict__.iteritems()]
2885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2886
 
2887
  def __eq__(self, other):
2888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2889
 
2890
  def __ne__(self, other):
2891
    return not (self == other)
2892
 
2893
class sendMail_result:
2894
  """
2895
  Attributes:
2896
   - se
2897
  """
2898
 
2899
  thrift_spec = (
2900
    None, # 0
2901
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2902
  )
2903
 
2904
  def __init__(self, se=None,):
2905
    self.se = se
2906
 
2907
  def read(self, iprot):
2908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2910
      return
2911
    iprot.readStructBegin()
2912
    while True:
2913
      (fname, ftype, fid) = iprot.readFieldBegin()
2914
      if ftype == TType.STOP:
2915
        break
2916
      if fid == 1:
2917
        if ftype == TType.STRUCT:
2918
          self.se = HelperServiceException()
2919
          self.se.read(iprot)
2920
        else:
2921
          iprot.skip(ftype)
2922
      else:
2923
        iprot.skip(ftype)
2924
      iprot.readFieldEnd()
2925
    iprot.readStructEnd()
2926
 
2927
  def write(self, oprot):
2928
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2929
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2930
      return
2931
    oprot.writeStructBegin('sendMail_result')
3431 rajveer 2932
    if self.se is not None:
349 ashish 2933
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2934
      self.se.write(oprot)
2935
      oprot.writeFieldEnd()
2936
    oprot.writeFieldStop()
2937
    oprot.writeStructEnd()
2938
 
3431 rajveer 2939
  def validate(self):
2940
    return
2941
 
2942
 
349 ashish 2943
  def __repr__(self):
2944
    L = ['%s=%r' % (key, value)
2945
      for key, value in self.__dict__.iteritems()]
2946
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2947
 
2948
  def __eq__(self, other):
2949
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2950
 
2951
  def __ne__(self, other):
2952
    return not (self == other)
2953
 
2954
class sendText_args:
2955
  """
2956
  Attributes:
2957
   - message
2958
  """
2959
 
2960
  thrift_spec = (
2961
    None, # 0
2962
    (1, TType.STRUCT, 'message', (TextMessage, TextMessage.thrift_spec), None, ), # 1
2963
  )
2964
 
2965
  def __init__(self, message=None,):
2966
    self.message = message
2967
 
2968
  def read(self, iprot):
2969
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2970
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2971
      return
2972
    iprot.readStructBegin()
2973
    while True:
2974
      (fname, ftype, fid) = iprot.readFieldBegin()
2975
      if ftype == TType.STOP:
2976
        break
2977
      if fid == 1:
2978
        if ftype == TType.STRUCT:
2979
          self.message = TextMessage()
2980
          self.message.read(iprot)
2981
        else:
2982
          iprot.skip(ftype)
2983
      else:
2984
        iprot.skip(ftype)
2985
      iprot.readFieldEnd()
2986
    iprot.readStructEnd()
2987
 
2988
  def write(self, oprot):
2989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2991
      return
2992
    oprot.writeStructBegin('sendText_args')
3431 rajveer 2993
    if self.message is not None:
349 ashish 2994
      oprot.writeFieldBegin('message', TType.STRUCT, 1)
2995
      self.message.write(oprot)
2996
      oprot.writeFieldEnd()
2997
    oprot.writeFieldStop()
2998
    oprot.writeStructEnd()
2999
 
3431 rajveer 3000
  def validate(self):
3001
    return
3002
 
3003
 
349 ashish 3004
  def __repr__(self):
3005
    L = ['%s=%r' % (key, value)
3006
      for key, value in self.__dict__.iteritems()]
3007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3008
 
3009
  def __eq__(self, other):
3010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3011
 
3012
  def __ne__(self, other):
3013
    return not (self == other)
3014
 
3015
class sendText_result:
3016
  """
3017
  Attributes:
3018
   - se
3019
  """
3020
 
3021
  thrift_spec = (
3022
    None, # 0
3023
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3024
  )
3025
 
3026
  def __init__(self, se=None,):
3027
    self.se = se
3028
 
3029
  def read(self, iprot):
3030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3032
      return
3033
    iprot.readStructBegin()
3034
    while True:
3035
      (fname, ftype, fid) = iprot.readFieldBegin()
3036
      if ftype == TType.STOP:
3037
        break
3038
      if fid == 1:
3039
        if ftype == TType.STRUCT:
3040
          self.se = HelperServiceException()
3041
          self.se.read(iprot)
3042
        else:
3043
          iprot.skip(ftype)
3044
      else:
3045
        iprot.skip(ftype)
3046
      iprot.readFieldEnd()
3047
    iprot.readStructEnd()
3048
 
3049
  def write(self, oprot):
3050
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3051
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3052
      return
3053
    oprot.writeStructBegin('sendText_result')
3431 rajveer 3054
    if self.se is not None:
349 ashish 3055
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
3056
      self.se.write(oprot)
3057
      oprot.writeFieldEnd()
3058
    oprot.writeFieldStop()
3059
    oprot.writeStructEnd()
3060
 
3431 rajveer 3061
  def validate(self):
3062
    return
3063
 
3064
 
349 ashish 3065
  def __repr__(self):
3066
    L = ['%s=%r' % (key, value)
3067
      for key, value in self.__dict__.iteritems()]
3068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3069
 
3070
  def __eq__(self, other):
3071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3072
 
3073
  def __ne__(self, other):
3074
    return not (self == other)
3075
 
3076
class addMessage_args:
3077
  """
3078
  Attributes:
3079
   - message
3080
  """
3081
 
3082
  thrift_spec = (
3083
    None, # 0
3084
    (1, TType.STRUCT, 'message', (Message, Message.thrift_spec), None, ), # 1
3085
  )
3086
 
3087
  def __init__(self, message=None,):
3088
    self.message = message
3089
 
3090
  def read(self, iprot):
3091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3092
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3093
      return
3094
    iprot.readStructBegin()
3095
    while True:
3096
      (fname, ftype, fid) = iprot.readFieldBegin()
3097
      if ftype == TType.STOP:
3098
        break
3099
      if fid == 1:
3100
        if ftype == TType.STRUCT:
3101
          self.message = Message()
3102
          self.message.read(iprot)
3103
        else:
3104
          iprot.skip(ftype)
3105
      else:
3106
        iprot.skip(ftype)
3107
      iprot.readFieldEnd()
3108
    iprot.readStructEnd()
3109
 
3110
  def write(self, oprot):
3111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3113
      return
3114
    oprot.writeStructBegin('addMessage_args')
3431 rajveer 3115
    if self.message is not None:
349 ashish 3116
      oprot.writeFieldBegin('message', TType.STRUCT, 1)
3117
      self.message.write(oprot)
3118
      oprot.writeFieldEnd()
3119
    oprot.writeFieldStop()
3120
    oprot.writeStructEnd()
3121
 
3431 rajveer 3122
  def validate(self):
3123
    return
3124
 
3125
 
349 ashish 3126
  def __repr__(self):
3127
    L = ['%s=%r' % (key, value)
3128
      for key, value in self.__dict__.iteritems()]
3129
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3130
 
3131
  def __eq__(self, other):
3132
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3133
 
3134
  def __ne__(self, other):
3135
    return not (self == other)
3136
 
3137
class addMessage_result:
3138
  """
3139
  Attributes:
3140
   - se
3141
  """
3142
 
3143
  thrift_spec = (
3144
    None, # 0
3145
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3146
  )
3147
 
3148
  def __init__(self, se=None,):
3149
    self.se = se
3150
 
3151
  def read(self, iprot):
3152
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3153
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3154
      return
3155
    iprot.readStructBegin()
3156
    while True:
3157
      (fname, ftype, fid) = iprot.readFieldBegin()
3158
      if ftype == TType.STOP:
3159
        break
3160
      if fid == 1:
3161
        if ftype == TType.STRUCT:
3162
          self.se = HelperServiceException()
3163
          self.se.read(iprot)
3164
        else:
3165
          iprot.skip(ftype)
3166
      else:
3167
        iprot.skip(ftype)
3168
      iprot.readFieldEnd()
3169
    iprot.readStructEnd()
3170
 
3171
  def write(self, oprot):
3172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3174
      return
3175
    oprot.writeStructBegin('addMessage_result')
3431 rajveer 3176
    if self.se is not None:
349 ashish 3177
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
3178
      self.se.write(oprot)
3179
      oprot.writeFieldEnd()
3180
    oprot.writeFieldStop()
3181
    oprot.writeStructEnd()
3182
 
3431 rajveer 3183
  def validate(self):
3184
    return
3185
 
3186
 
349 ashish 3187
  def __repr__(self):
3188
    L = ['%s=%r' % (key, value)
3189
      for key, value in self.__dict__.iteritems()]
3190
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3191
 
3192
  def __eq__(self, other):
3193
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3194
 
3195
  def __ne__(self, other):
3196
    return not (self == other)
3197
 
3198
class updateMessage_args:
3199
  """
3200
  Attributes:
3201
   - id
3202
   - message
3203
  """
3204
 
3205
  thrift_spec = (
3206
    None, # 0
3207
    (1, TType.I64, 'id', None, None, ), # 1
3208
    (2, TType.STRING, 'message', None, None, ), # 2
3209
  )
3210
 
3211
  def __init__(self, id=None, message=None,):
3212
    self.id = id
3213
    self.message = message
3214
 
3215
  def read(self, iprot):
3216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3218
      return
3219
    iprot.readStructBegin()
3220
    while True:
3221
      (fname, ftype, fid) = iprot.readFieldBegin()
3222
      if ftype == TType.STOP:
3223
        break
3224
      if fid == 1:
3225
        if ftype == TType.I64:
3226
          self.id = iprot.readI64();
3227
        else:
3228
          iprot.skip(ftype)
3229
      elif fid == 2:
3230
        if ftype == TType.STRING:
3231
          self.message = iprot.readString();
3232
        else:
3233
          iprot.skip(ftype)
3234
      else:
3235
        iprot.skip(ftype)
3236
      iprot.readFieldEnd()
3237
    iprot.readStructEnd()
3238
 
3239
  def write(self, oprot):
3240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3242
      return
3243
    oprot.writeStructBegin('updateMessage_args')
3431 rajveer 3244
    if self.id is not None:
349 ashish 3245
      oprot.writeFieldBegin('id', TType.I64, 1)
3246
      oprot.writeI64(self.id)
3247
      oprot.writeFieldEnd()
3431 rajveer 3248
    if self.message is not None:
349 ashish 3249
      oprot.writeFieldBegin('message', TType.STRING, 2)
3250
      oprot.writeString(self.message)
3251
      oprot.writeFieldEnd()
3252
    oprot.writeFieldStop()
3253
    oprot.writeStructEnd()
3254
 
3431 rajveer 3255
  def validate(self):
3256
    return
3257
 
3258
 
349 ashish 3259
  def __repr__(self):
3260
    L = ['%s=%r' % (key, value)
3261
      for key, value in self.__dict__.iteritems()]
3262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3263
 
3264
  def __eq__(self, other):
3265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3266
 
3267
  def __ne__(self, other):
3268
    return not (self == other)
3269
 
3270
class updateMessage_result:
3271
  """
3272
  Attributes:
3273
   - se
3274
  """
3275
 
3276
  thrift_spec = (
3277
    None, # 0
3278
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3279
  )
3280
 
3281
  def __init__(self, se=None,):
3282
    self.se = se
3283
 
3284
  def read(self, iprot):
3285
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3286
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3287
      return
3288
    iprot.readStructBegin()
3289
    while True:
3290
      (fname, ftype, fid) = iprot.readFieldBegin()
3291
      if ftype == TType.STOP:
3292
        break
3293
      if fid == 1:
3294
        if ftype == TType.STRUCT:
3295
          self.se = HelperServiceException()
3296
          self.se.read(iprot)
3297
        else:
3298
          iprot.skip(ftype)
3299
      else:
3300
        iprot.skip(ftype)
3301
      iprot.readFieldEnd()
3302
    iprot.readStructEnd()
3303
 
3304
  def write(self, oprot):
3305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3307
      return
3308
    oprot.writeStructBegin('updateMessage_result')
3431 rajveer 3309
    if self.se is not None:
349 ashish 3310
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
3311
      self.se.write(oprot)
3312
      oprot.writeFieldEnd()
3313
    oprot.writeFieldStop()
3314
    oprot.writeStructEnd()
3315
 
3431 rajveer 3316
  def validate(self):
3317
    return
3318
 
3319
 
349 ashish 3320
  def __repr__(self):
3321
    L = ['%s=%r' % (key, value)
3322
      for key, value in self.__dict__.iteritems()]
3323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3324
 
3325
  def __eq__(self, other):
3326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3327
 
3328
  def __ne__(self, other):
3329
    return not (self == other)
3330
 
3331
class getMessage_args:
3332
  """
3333
  Attributes:
3334
   - id
3335
  """
3336
 
3337
  thrift_spec = (
3338
    None, # 0
3339
    (1, TType.I64, 'id', None, None, ), # 1
3340
  )
3341
 
3342
  def __init__(self, id=None,):
3343
    self.id = id
3344
 
3345
  def read(self, iprot):
3346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3348
      return
3349
    iprot.readStructBegin()
3350
    while True:
3351
      (fname, ftype, fid) = iprot.readFieldBegin()
3352
      if ftype == TType.STOP:
3353
        break
3354
      if fid == 1:
3355
        if ftype == TType.I64:
3356
          self.id = iprot.readI64();
3357
        else:
3358
          iprot.skip(ftype)
3359
      else:
3360
        iprot.skip(ftype)
3361
      iprot.readFieldEnd()
3362
    iprot.readStructEnd()
3363
 
3364
  def write(self, oprot):
3365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3367
      return
3368
    oprot.writeStructBegin('getMessage_args')
3431 rajveer 3369
    if self.id is not None:
349 ashish 3370
      oprot.writeFieldBegin('id', TType.I64, 1)
3371
      oprot.writeI64(self.id)
3372
      oprot.writeFieldEnd()
3373
    oprot.writeFieldStop()
3374
    oprot.writeStructEnd()
3375
 
3431 rajveer 3376
  def validate(self):
3377
    return
3378
 
3379
 
349 ashish 3380
  def __repr__(self):
3381
    L = ['%s=%r' % (key, value)
3382
      for key, value in self.__dict__.iteritems()]
3383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3384
 
3385
  def __eq__(self, other):
3386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3387
 
3388
  def __ne__(self, other):
3389
    return not (self == other)
3390
 
3391
class getMessage_result:
3392
  """
3393
  Attributes:
353 ashish 3394
   - success
349 ashish 3395
   - se
3396
  """
3397
 
3398
  thrift_spec = (
353 ashish 3399
    (0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0
349 ashish 3400
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3401
  )
3402
 
353 ashish 3403
  def __init__(self, success=None, se=None,):
3404
    self.success = success
349 ashish 3405
    self.se = se
3406
 
3407
  def read(self, iprot):
3408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3410
      return
3411
    iprot.readStructBegin()
3412
    while True:
3413
      (fname, ftype, fid) = iprot.readFieldBegin()
3414
      if ftype == TType.STOP:
3415
        break
353 ashish 3416
      if fid == 0:
349 ashish 3417
        if ftype == TType.STRUCT:
353 ashish 3418
          self.success = Message()
3419
          self.success.read(iprot)
3420
        else:
3421
          iprot.skip(ftype)
3422
      elif fid == 1:
3423
        if ftype == TType.STRUCT:
349 ashish 3424
          self.se = HelperServiceException()
3425
          self.se.read(iprot)
3426
        else:
3427
          iprot.skip(ftype)
3428
      else:
3429
        iprot.skip(ftype)
3430
      iprot.readFieldEnd()
3431
    iprot.readStructEnd()
3432
 
3433
  def write(self, oprot):
3434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3436
      return
3437
    oprot.writeStructBegin('getMessage_result')
3431 rajveer 3438
    if self.success is not None:
353 ashish 3439
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3440
      self.success.write(oprot)
3441
      oprot.writeFieldEnd()
3431 rajveer 3442
    if self.se is not None:
349 ashish 3443
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
3444
      self.se.write(oprot)
3445
      oprot.writeFieldEnd()
3446
    oprot.writeFieldStop()
3447
    oprot.writeStructEnd()
3448
 
3431 rajveer 3449
  def validate(self):
3450
    return
3451
 
3452
 
349 ashish 3453
  def __repr__(self):
3454
    L = ['%s=%r' % (key, value)
3455
      for key, value in self.__dict__.iteritems()]
3456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3457
 
3458
  def __eq__(self, other):
3459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3460
 
3461
  def __ne__(self, other):
3462
    return not (self == other)
3463
 
3464
class getSubstitutedMessage_args:
3465
  """
3466
  Attributes:
3467
   - id
3468
   - params
3469
  """
3470
 
3471
  thrift_spec = (
3472
    None, # 0
3473
    (1, TType.I64, 'id', None, None, ), # 1
3474
    (2, TType.MAP, 'params', (TType.STRING,None,TType.STRING,None), None, ), # 2
3475
  )
3476
 
3477
  def __init__(self, id=None, params=None,):
3478
    self.id = id
3479
    self.params = params
3480
 
3481
  def read(self, iprot):
3482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3484
      return
3485
    iprot.readStructBegin()
3486
    while True:
3487
      (fname, ftype, fid) = iprot.readFieldBegin()
3488
      if ftype == TType.STOP:
3489
        break
3490
      if fid == 1:
3491
        if ftype == TType.I64:
3492
          self.id = iprot.readI64();
3493
        else:
3494
          iprot.skip(ftype)
3495
      elif fid == 2:
3496
        if ftype == TType.MAP:
3497
          self.params = {}
5864 rajveer 3498
          (_ktype64, _vtype65, _size63 ) = iprot.readMapBegin() 
3499
          for _i67 in xrange(_size63):
3500
            _key68 = iprot.readString();
3501
            _val69 = iprot.readString();
3502
            self.params[_key68] = _val69
349 ashish 3503
          iprot.readMapEnd()
3504
        else:
3505
          iprot.skip(ftype)
3506
      else:
3507
        iprot.skip(ftype)
3508
      iprot.readFieldEnd()
3509
    iprot.readStructEnd()
3510
 
3511
  def write(self, oprot):
3512
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3513
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3514
      return
3515
    oprot.writeStructBegin('getSubstitutedMessage_args')
3431 rajveer 3516
    if self.id is not None:
349 ashish 3517
      oprot.writeFieldBegin('id', TType.I64, 1)
3518
      oprot.writeI64(self.id)
3519
      oprot.writeFieldEnd()
3431 rajveer 3520
    if self.params is not None:
349 ashish 3521
      oprot.writeFieldBegin('params', TType.MAP, 2)
3522
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.params))
5864 rajveer 3523
      for kiter70,viter71 in self.params.items():
3524
        oprot.writeString(kiter70)
3525
        oprot.writeString(viter71)
349 ashish 3526
      oprot.writeMapEnd()
3527
      oprot.writeFieldEnd()
3528
    oprot.writeFieldStop()
3529
    oprot.writeStructEnd()
3530
 
3431 rajveer 3531
  def validate(self):
3532
    return
3533
 
3534
 
349 ashish 3535
  def __repr__(self):
3536
    L = ['%s=%r' % (key, value)
3537
      for key, value in self.__dict__.iteritems()]
3538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3539
 
3540
  def __eq__(self, other):
3541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3542
 
3543
  def __ne__(self, other):
3544
    return not (self == other)
3545
 
3546
class getSubstitutedMessage_result:
3547
  """
3548
  Attributes:
353 ashish 3549
   - success
349 ashish 3550
   - se
3551
  """
3552
 
3553
  thrift_spec = (
353 ashish 3554
    (0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0
349 ashish 3555
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3556
  )
3557
 
353 ashish 3558
  def __init__(self, success=None, se=None,):
3559
    self.success = success
349 ashish 3560
    self.se = se
3561
 
3562
  def read(self, iprot):
3563
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3564
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3565
      return
3566
    iprot.readStructBegin()
3567
    while True:
3568
      (fname, ftype, fid) = iprot.readFieldBegin()
3569
      if ftype == TType.STOP:
3570
        break
353 ashish 3571
      if fid == 0:
349 ashish 3572
        if ftype == TType.STRUCT:
353 ashish 3573
          self.success = Message()
3574
          self.success.read(iprot)
3575
        else:
3576
          iprot.skip(ftype)
3577
      elif fid == 1:
3578
        if ftype == TType.STRUCT:
349 ashish 3579
          self.se = HelperServiceException()
3580
          self.se.read(iprot)
3581
        else:
3582
          iprot.skip(ftype)
3583
      else:
3584
        iprot.skip(ftype)
3585
      iprot.readFieldEnd()
3586
    iprot.readStructEnd()
3587
 
3588
  def write(self, oprot):
3589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3591
      return
3592
    oprot.writeStructBegin('getSubstitutedMessage_result')
3431 rajveer 3593
    if self.success is not None:
353 ashish 3594
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3595
      self.success.write(oprot)
3596
      oprot.writeFieldEnd()
3431 rajveer 3597
    if self.se is not None:
349 ashish 3598
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
3599
      self.se.write(oprot)
3600
      oprot.writeFieldEnd()
3601
    oprot.writeFieldStop()
3602
    oprot.writeStructEnd()
3603
 
3431 rajveer 3604
  def validate(self):
3605
    return
3606
 
3607
 
349 ashish 3608
  def __repr__(self):
3609
    L = ['%s=%r' % (key, value)
3610
      for key, value in self.__dict__.iteritems()]
3611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3612
 
3613
  def __eq__(self, other):
3614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3615
 
3616
  def __ne__(self, other):
3617
    return not (self == other)
3618
 
494 rajveer 3619
class addUser_args:
3620
  """
3621
  Attributes:
3622
   - username
3623
   - password
3624
   - warehouseId
3625
  """
349 ashish 3626
 
494 rajveer 3627
  thrift_spec = (
3628
    None, # 0
3629
    (1, TType.STRING, 'username', None, None, ), # 1
3630
    (2, TType.STRING, 'password', None, None, ), # 2
3631
    (3, TType.I64, 'warehouseId', None, None, ), # 3
3632
  )
3633
 
3634
  def __init__(self, username=None, password=None, warehouseId=None,):
3635
    self.username = username
3636
    self.password = password
3637
    self.warehouseId = warehouseId
3638
 
3639
  def read(self, iprot):
3640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3642
      return
3643
    iprot.readStructBegin()
3644
    while True:
3645
      (fname, ftype, fid) = iprot.readFieldBegin()
3646
      if ftype == TType.STOP:
3647
        break
3648
      if fid == 1:
3649
        if ftype == TType.STRING:
3650
          self.username = iprot.readString();
3651
        else:
3652
          iprot.skip(ftype)
3653
      elif fid == 2:
3654
        if ftype == TType.STRING:
3655
          self.password = iprot.readString();
3656
        else:
3657
          iprot.skip(ftype)
3658
      elif fid == 3:
3659
        if ftype == TType.I64:
3660
          self.warehouseId = iprot.readI64();
3661
        else:
3662
          iprot.skip(ftype)
3663
      else:
3664
        iprot.skip(ftype)
3665
      iprot.readFieldEnd()
3666
    iprot.readStructEnd()
3667
 
3668
  def write(self, oprot):
3669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3671
      return
3672
    oprot.writeStructBegin('addUser_args')
3431 rajveer 3673
    if self.username is not None:
494 rajveer 3674
      oprot.writeFieldBegin('username', TType.STRING, 1)
3675
      oprot.writeString(self.username)
3676
      oprot.writeFieldEnd()
3431 rajveer 3677
    if self.password is not None:
494 rajveer 3678
      oprot.writeFieldBegin('password', TType.STRING, 2)
3679
      oprot.writeString(self.password)
3680
      oprot.writeFieldEnd()
3431 rajveer 3681
    if self.warehouseId is not None:
494 rajveer 3682
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
3683
      oprot.writeI64(self.warehouseId)
3684
      oprot.writeFieldEnd()
3685
    oprot.writeFieldStop()
3686
    oprot.writeStructEnd()
3687
 
3431 rajveer 3688
  def validate(self):
3689
    return
3690
 
3691
 
494 rajveer 3692
  def __repr__(self):
3693
    L = ['%s=%r' % (key, value)
3694
      for key, value in self.__dict__.iteritems()]
3695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3696
 
3697
  def __eq__(self, other):
3698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3699
 
3700
  def __ne__(self, other):
3701
    return not (self == other)
3702
 
3703
class addUser_result:
3704
  """
3705
  Attributes:
3706
   - success
3707
   - se
3708
  """
3709
 
3710
  thrift_spec = (
3711
    (0, TType.BOOL, 'success', None, None, ), # 0
3712
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3713
  )
3714
 
3715
  def __init__(self, success=None, se=None,):
3716
    self.success = success
3717
    self.se = se
3718
 
3719
  def read(self, iprot):
3720
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3721
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3722
      return
3723
    iprot.readStructBegin()
3724
    while True:
3725
      (fname, ftype, fid) = iprot.readFieldBegin()
3726
      if ftype == TType.STOP:
3727
        break
3728
      if fid == 0:
3729
        if ftype == TType.BOOL:
3730
          self.success = iprot.readBool();
3731
        else:
3732
          iprot.skip(ftype)
3733
      elif fid == 1:
3734
        if ftype == TType.STRUCT:
3735
          self.se = HelperServiceException()
3736
          self.se.read(iprot)
3737
        else:
3738
          iprot.skip(ftype)
3739
      else:
3740
        iprot.skip(ftype)
3741
      iprot.readFieldEnd()
3742
    iprot.readStructEnd()
3743
 
3744
  def write(self, oprot):
3745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3747
      return
3748
    oprot.writeStructBegin('addUser_result')
3431 rajveer 3749
    if self.success is not None:
494 rajveer 3750
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3751
      oprot.writeBool(self.success)
3752
      oprot.writeFieldEnd()
3431 rajveer 3753
    if self.se is not None:
494 rajveer 3754
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
3755
      self.se.write(oprot)
3756
      oprot.writeFieldEnd()
3757
    oprot.writeFieldStop()
3758
    oprot.writeStructEnd()
3759
 
3431 rajveer 3760
  def validate(self):
3761
    return
3762
 
3763
 
494 rajveer 3764
  def __repr__(self):
3765
    L = ['%s=%r' % (key, value)
3766
      for key, value in self.__dict__.iteritems()]
3767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3768
 
3769
  def __eq__(self, other):
3770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3771
 
3772
  def __ne__(self, other):
3773
    return not (self == other)
3774
 
3775
class deleteUser_args:
3776
  """
3777
  Attributes:
3778
   - username
3779
  """
3780
 
3781
  thrift_spec = (
3782
    None, # 0
3783
    (1, TType.STRING, 'username', None, None, ), # 1
3784
  )
3785
 
3786
  def __init__(self, username=None,):
3787
    self.username = username
3788
 
3789
  def read(self, iprot):
3790
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3791
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3792
      return
3793
    iprot.readStructBegin()
3794
    while True:
3795
      (fname, ftype, fid) = iprot.readFieldBegin()
3796
      if ftype == TType.STOP:
3797
        break
3798
      if fid == 1:
3799
        if ftype == TType.STRING:
3800
          self.username = iprot.readString();
3801
        else:
3802
          iprot.skip(ftype)
3803
      else:
3804
        iprot.skip(ftype)
3805
      iprot.readFieldEnd()
3806
    iprot.readStructEnd()
3807
 
3808
  def write(self, oprot):
3809
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3810
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3811
      return
3812
    oprot.writeStructBegin('deleteUser_args')
3431 rajveer 3813
    if self.username is not None:
494 rajveer 3814
      oprot.writeFieldBegin('username', TType.STRING, 1)
3815
      oprot.writeString(self.username)
3816
      oprot.writeFieldEnd()
3817
    oprot.writeFieldStop()
3818
    oprot.writeStructEnd()
3819
 
3431 rajveer 3820
  def validate(self):
3821
    return
3822
 
3823
 
494 rajveer 3824
  def __repr__(self):
3825
    L = ['%s=%r' % (key, value)
3826
      for key, value in self.__dict__.iteritems()]
3827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3828
 
3829
  def __eq__(self, other):
3830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3831
 
3832
  def __ne__(self, other):
3833
    return not (self == other)
3834
 
3835
class deleteUser_result:
3836
  """
3837
  Attributes:
3838
   - success
3839
   - se
3840
  """
3841
 
3842
  thrift_spec = (
3843
    (0, TType.BOOL, 'success', None, None, ), # 0
3844
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3845
  )
3846
 
3847
  def __init__(self, success=None, se=None,):
3848
    self.success = success
3849
    self.se = se
3850
 
3851
  def read(self, iprot):
3852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3854
      return
3855
    iprot.readStructBegin()
3856
    while True:
3857
      (fname, ftype, fid) = iprot.readFieldBegin()
3858
      if ftype == TType.STOP:
3859
        break
3860
      if fid == 0:
3861
        if ftype == TType.BOOL:
3862
          self.success = iprot.readBool();
3863
        else:
3864
          iprot.skip(ftype)
3865
      elif fid == 1:
3866
        if ftype == TType.STRUCT:
3867
          self.se = HelperServiceException()
3868
          self.se.read(iprot)
3869
        else:
3870
          iprot.skip(ftype)
3871
      else:
3872
        iprot.skip(ftype)
3873
      iprot.readFieldEnd()
3874
    iprot.readStructEnd()
3875
 
3876
  def write(self, oprot):
3877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3879
      return
3880
    oprot.writeStructBegin('deleteUser_result')
3431 rajveer 3881
    if self.success is not None:
494 rajveer 3882
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3883
      oprot.writeBool(self.success)
3884
      oprot.writeFieldEnd()
3431 rajveer 3885
    if self.se is not None:
494 rajveer 3886
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
3887
      self.se.write(oprot)
3888
      oprot.writeFieldEnd()
3889
    oprot.writeFieldStop()
3890
    oprot.writeStructEnd()
3891
 
3431 rajveer 3892
  def validate(self):
3893
    return
3894
 
3895
 
494 rajveer 3896
  def __repr__(self):
3897
    L = ['%s=%r' % (key, value)
3898
      for key, value in self.__dict__.iteritems()]
3899
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3900
 
3901
  def __eq__(self, other):
3902
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3903
 
3904
  def __ne__(self, other):
3905
    return not (self == other)
3906
 
2447 chandransh 3907
class authenticateDashboardUser_args:
494 rajveer 3908
  """
3909
  Attributes:
3910
   - username
3911
   - password
3912
  """
3913
 
3914
  thrift_spec = (
3915
    None, # 0
3916
    (1, TType.STRING, 'username', None, None, ), # 1
3917
    (2, TType.STRING, 'password', None, None, ), # 2
3918
  )
3919
 
3920
  def __init__(self, username=None, password=None,):
3921
    self.username = username
3922
    self.password = password
3923
 
3924
  def read(self, iprot):
3925
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3926
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3927
      return
3928
    iprot.readStructBegin()
3929
    while True:
3930
      (fname, ftype, fid) = iprot.readFieldBegin()
3931
      if ftype == TType.STOP:
3932
        break
3933
      if fid == 1:
3934
        if ftype == TType.STRING:
3935
          self.username = iprot.readString();
3936
        else:
3937
          iprot.skip(ftype)
3938
      elif fid == 2:
3939
        if ftype == TType.STRING:
3940
          self.password = iprot.readString();
3941
        else:
3942
          iprot.skip(ftype)
3943
      else:
3944
        iprot.skip(ftype)
3945
      iprot.readFieldEnd()
3946
    iprot.readStructEnd()
3947
 
3948
  def write(self, oprot):
3949
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3950
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3951
      return
2447 chandransh 3952
    oprot.writeStructBegin('authenticateDashboardUser_args')
3431 rajveer 3953
    if self.username is not None:
494 rajveer 3954
      oprot.writeFieldBegin('username', TType.STRING, 1)
3955
      oprot.writeString(self.username)
3956
      oprot.writeFieldEnd()
3431 rajveer 3957
    if self.password is not None:
494 rajveer 3958
      oprot.writeFieldBegin('password', TType.STRING, 2)
3959
      oprot.writeString(self.password)
3960
      oprot.writeFieldEnd()
3961
    oprot.writeFieldStop()
3962
    oprot.writeStructEnd()
3963
 
3431 rajveer 3964
  def validate(self):
3965
    return
3966
 
3967
 
494 rajveer 3968
  def __repr__(self):
3969
    L = ['%s=%r' % (key, value)
3970
      for key, value in self.__dict__.iteritems()]
3971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3972
 
3973
  def __eq__(self, other):
3974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3975
 
3976
  def __ne__(self, other):
3977
    return not (self == other)
3978
 
2447 chandransh 3979
class authenticateDashboardUser_result:
494 rajveer 3980
  """
3981
  Attributes:
3982
   - success
3983
   - se
3984
  """
3985
 
3986
  thrift_spec = (
2447 chandransh 3987
    (0, TType.STRUCT, 'success', (DashboardUser, DashboardUser.thrift_spec), None, ), # 0
494 rajveer 3988
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3989
  )
3990
 
3991
  def __init__(self, success=None, se=None,):
3992
    self.success = success
3993
    self.se = se
3994
 
3995
  def read(self, iprot):
3996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3998
      return
3999
    iprot.readStructBegin()
4000
    while True:
4001
      (fname, ftype, fid) = iprot.readFieldBegin()
4002
      if ftype == TType.STOP:
4003
        break
4004
      if fid == 0:
2447 chandransh 4005
        if ftype == TType.STRUCT:
4006
          self.success = DashboardUser()
4007
          self.success.read(iprot)
494 rajveer 4008
        else:
4009
          iprot.skip(ftype)
4010
      elif fid == 1:
4011
        if ftype == TType.STRUCT:
4012
          self.se = HelperServiceException()
4013
          self.se.read(iprot)
4014
        else:
4015
          iprot.skip(ftype)
4016
      else:
4017
        iprot.skip(ftype)
4018
      iprot.readFieldEnd()
4019
    iprot.readStructEnd()
4020
 
4021
  def write(self, oprot):
4022
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4023
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4024
      return
2447 chandransh 4025
    oprot.writeStructBegin('authenticateDashboardUser_result')
3431 rajveer 4026
    if self.success is not None:
2447 chandransh 4027
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4028
      self.success.write(oprot)
494 rajveer 4029
      oprot.writeFieldEnd()
3431 rajveer 4030
    if self.se is not None:
494 rajveer 4031
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
4032
      self.se.write(oprot)
4033
      oprot.writeFieldEnd()
4034
    oprot.writeFieldStop()
4035
    oprot.writeStructEnd()
4036
 
3431 rajveer 4037
  def validate(self):
4038
    return
4039
 
4040
 
494 rajveer 4041
  def __repr__(self):
4042
    L = ['%s=%r' % (key, value)
4043
      for key, value in self.__dict__.iteritems()]
4044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4045
 
4046
  def __eq__(self, other):
4047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4048
 
4049
  def __ne__(self, other):
4050
    return not (self == other)
4051
 
4052
class updatePassword_args:
4053
  """
4054
  Attributes:
4055
   - username
4056
   - oldPassword
4057
   - newPassword
4058
  """
4059
 
4060
  thrift_spec = (
4061
    None, # 0
4062
    (1, TType.STRING, 'username', None, None, ), # 1
4063
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
4064
    (3, TType.STRING, 'newPassword', None, None, ), # 3
4065
  )
4066
 
4067
  def __init__(self, username=None, oldPassword=None, newPassword=None,):
4068
    self.username = username
4069
    self.oldPassword = oldPassword
4070
    self.newPassword = newPassword
4071
 
4072
  def read(self, iprot):
4073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4075
      return
4076
    iprot.readStructBegin()
4077
    while True:
4078
      (fname, ftype, fid) = iprot.readFieldBegin()
4079
      if ftype == TType.STOP:
4080
        break
4081
      if fid == 1:
4082
        if ftype == TType.STRING:
4083
          self.username = iprot.readString();
4084
        else:
4085
          iprot.skip(ftype)
4086
      elif fid == 2:
4087
        if ftype == TType.STRING:
4088
          self.oldPassword = iprot.readString();
4089
        else:
4090
          iprot.skip(ftype)
4091
      elif fid == 3:
4092
        if ftype == TType.STRING:
4093
          self.newPassword = iprot.readString();
4094
        else:
4095
          iprot.skip(ftype)
4096
      else:
4097
        iprot.skip(ftype)
4098
      iprot.readFieldEnd()
4099
    iprot.readStructEnd()
4100
 
4101
  def write(self, oprot):
4102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4104
      return
4105
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 4106
    if self.username is not None:
494 rajveer 4107
      oprot.writeFieldBegin('username', TType.STRING, 1)
4108
      oprot.writeString(self.username)
4109
      oprot.writeFieldEnd()
3431 rajveer 4110
    if self.oldPassword is not None:
494 rajveer 4111
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
4112
      oprot.writeString(self.oldPassword)
4113
      oprot.writeFieldEnd()
3431 rajveer 4114
    if self.newPassword is not None:
494 rajveer 4115
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
4116
      oprot.writeString(self.newPassword)
4117
      oprot.writeFieldEnd()
4118
    oprot.writeFieldStop()
4119
    oprot.writeStructEnd()
4120
 
3431 rajveer 4121
  def validate(self):
4122
    return
4123
 
4124
 
494 rajveer 4125
  def __repr__(self):
4126
    L = ['%s=%r' % (key, value)
4127
      for key, value in self.__dict__.iteritems()]
4128
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4129
 
4130
  def __eq__(self, other):
4131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4132
 
4133
  def __ne__(self, other):
4134
    return not (self == other)
4135
 
4136
class updatePassword_result:
4137
  """
4138
  Attributes:
4139
   - success
4140
   - se
4141
  """
4142
 
4143
  thrift_spec = (
4144
    (0, TType.BOOL, 'success', None, None, ), # 0
4145
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
4146
  )
4147
 
4148
  def __init__(self, success=None, se=None,):
4149
    self.success = success
4150
    self.se = se
4151
 
4152
  def read(self, iprot):
4153
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4154
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4155
      return
4156
    iprot.readStructBegin()
4157
    while True:
4158
      (fname, ftype, fid) = iprot.readFieldBegin()
4159
      if ftype == TType.STOP:
4160
        break
4161
      if fid == 0:
4162
        if ftype == TType.BOOL:
4163
          self.success = iprot.readBool();
4164
        else:
4165
          iprot.skip(ftype)
4166
      elif fid == 1:
4167
        if ftype == TType.STRUCT:
4168
          self.se = HelperServiceException()
4169
          self.se.read(iprot)
4170
        else:
4171
          iprot.skip(ftype)
4172
      else:
4173
        iprot.skip(ftype)
4174
      iprot.readFieldEnd()
4175
    iprot.readStructEnd()
4176
 
4177
  def write(self, oprot):
4178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4180
      return
4181
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 4182
    if self.success is not None:
494 rajveer 4183
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4184
      oprot.writeBool(self.success)
4185
      oprot.writeFieldEnd()
3431 rajveer 4186
    if self.se is not None:
494 rajveer 4187
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
4188
      self.se.write(oprot)
4189
      oprot.writeFieldEnd()
4190
    oprot.writeFieldStop()
4191
    oprot.writeStructEnd()
4192
 
3431 rajveer 4193
  def validate(self):
4194
    return
4195
 
4196
 
494 rajveer 4197
  def __repr__(self):
4198
    L = ['%s=%r' % (key, value)
4199
      for key, value in self.__dict__.iteritems()]
4200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4201
 
4202
  def __eq__(self, other):
4203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4204
 
4205
  def __ne__(self, other):
4206
    return not (self == other)
4207
 
759 chandransh 4208
class authenticateLogisticsUser_args:
4209
  """
4210
  Attributes:
4211
   - username
4212
   - password
4213
  """
494 rajveer 4214
 
759 chandransh 4215
  thrift_spec = (
4216
    None, # 0
4217
    (1, TType.STRING, 'username', None, None, ), # 1
4218
    (2, TType.STRING, 'password', None, None, ), # 2
4219
  )
4220
 
4221
  def __init__(self, username=None, password=None,):
4222
    self.username = username
4223
    self.password = password
4224
 
4225
  def read(self, iprot):
4226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4228
      return
4229
    iprot.readStructBegin()
4230
    while True:
4231
      (fname, ftype, fid) = iprot.readFieldBegin()
4232
      if ftype == TType.STOP:
4233
        break
4234
      if fid == 1:
4235
        if ftype == TType.STRING:
4236
          self.username = iprot.readString();
4237
        else:
4238
          iprot.skip(ftype)
4239
      elif fid == 2:
4240
        if ftype == TType.STRING:
4241
          self.password = iprot.readString();
4242
        else:
4243
          iprot.skip(ftype)
4244
      else:
4245
        iprot.skip(ftype)
4246
      iprot.readFieldEnd()
4247
    iprot.readStructEnd()
4248
 
4249
  def write(self, oprot):
4250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4252
      return
4253
    oprot.writeStructBegin('authenticateLogisticsUser_args')
3431 rajveer 4254
    if self.username is not None:
759 chandransh 4255
      oprot.writeFieldBegin('username', TType.STRING, 1)
4256
      oprot.writeString(self.username)
4257
      oprot.writeFieldEnd()
3431 rajveer 4258
    if self.password is not None:
759 chandransh 4259
      oprot.writeFieldBegin('password', TType.STRING, 2)
4260
      oprot.writeString(self.password)
4261
      oprot.writeFieldEnd()
4262
    oprot.writeFieldStop()
4263
    oprot.writeStructEnd()
4264
 
3431 rajveer 4265
  def validate(self):
4266
    return
4267
 
4268
 
759 chandransh 4269
  def __repr__(self):
4270
    L = ['%s=%r' % (key, value)
4271
      for key, value in self.__dict__.iteritems()]
4272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4273
 
4274
  def __eq__(self, other):
4275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4276
 
4277
  def __ne__(self, other):
4278
    return not (self == other)
4279
 
4280
class authenticateLogisticsUser_result:
4281
  """
4282
  Attributes:
4283
   - success
4284
   - hse
4285
  """
4286
 
4287
  thrift_spec = (
4288
    (0, TType.STRUCT, 'success', (LogisticsUser, LogisticsUser.thrift_spec), None, ), # 0
4289
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
4290
  )
4291
 
4292
  def __init__(self, success=None, hse=None,):
4293
    self.success = success
4294
    self.hse = hse
4295
 
4296
  def read(self, iprot):
4297
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4298
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4299
      return
4300
    iprot.readStructBegin()
4301
    while True:
4302
      (fname, ftype, fid) = iprot.readFieldBegin()
4303
      if ftype == TType.STOP:
4304
        break
4305
      if fid == 0:
4306
        if ftype == TType.STRUCT:
4307
          self.success = LogisticsUser()
4308
          self.success.read(iprot)
4309
        else:
4310
          iprot.skip(ftype)
4311
      elif fid == 1:
4312
        if ftype == TType.STRUCT:
4313
          self.hse = HelperServiceException()
4314
          self.hse.read(iprot)
4315
        else:
4316
          iprot.skip(ftype)
4317
      else:
4318
        iprot.skip(ftype)
4319
      iprot.readFieldEnd()
4320
    iprot.readStructEnd()
4321
 
4322
  def write(self, oprot):
4323
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4324
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4325
      return
4326
    oprot.writeStructBegin('authenticateLogisticsUser_result')
3431 rajveer 4327
    if self.success is not None:
759 chandransh 4328
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4329
      self.success.write(oprot)
4330
      oprot.writeFieldEnd()
3431 rajveer 4331
    if self.hse is not None:
759 chandransh 4332
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
4333
      self.hse.write(oprot)
4334
      oprot.writeFieldEnd()
4335
    oprot.writeFieldStop()
4336
    oprot.writeStructEnd()
4337
 
3431 rajveer 4338
  def validate(self):
4339
    return
4340
 
4341
 
759 chandransh 4342
  def __repr__(self):
4343
    L = ['%s=%r' % (key, value)
4344
      for key, value in self.__dict__.iteritems()]
4345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4346
 
4347
  def __eq__(self, other):
4348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4349
 
4350
  def __ne__(self, other):
4351
    return not (self == other)
4352
 
1610 ankur.sing 4353
class authenticateStatisticsUser_args:
4354
  """
4355
  Attributes:
4356
   - username
4357
   - password
4358
  """
759 chandransh 4359
 
1610 ankur.sing 4360
  thrift_spec = (
4361
    None, # 0
4362
    (1, TType.STRING, 'username', None, None, ), # 1
4363
    (2, TType.STRING, 'password', None, None, ), # 2
4364
  )
4365
 
4366
  def __init__(self, username=None, password=None,):
4367
    self.username = username
4368
    self.password = password
4369
 
4370
  def read(self, iprot):
4371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4373
      return
4374
    iprot.readStructBegin()
4375
    while True:
4376
      (fname, ftype, fid) = iprot.readFieldBegin()
4377
      if ftype == TType.STOP:
4378
        break
4379
      if fid == 1:
4380
        if ftype == TType.STRING:
4381
          self.username = iprot.readString();
4382
        else:
4383
          iprot.skip(ftype)
4384
      elif fid == 2:
4385
        if ftype == TType.STRING:
4386
          self.password = iprot.readString();
4387
        else:
4388
          iprot.skip(ftype)
4389
      else:
4390
        iprot.skip(ftype)
4391
      iprot.readFieldEnd()
4392
    iprot.readStructEnd()
4393
 
4394
  def write(self, oprot):
4395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4397
      return
4398
    oprot.writeStructBegin('authenticateStatisticsUser_args')
3431 rajveer 4399
    if self.username is not None:
1610 ankur.sing 4400
      oprot.writeFieldBegin('username', TType.STRING, 1)
4401
      oprot.writeString(self.username)
4402
      oprot.writeFieldEnd()
3431 rajveer 4403
    if self.password is not None:
1610 ankur.sing 4404
      oprot.writeFieldBegin('password', TType.STRING, 2)
4405
      oprot.writeString(self.password)
4406
      oprot.writeFieldEnd()
4407
    oprot.writeFieldStop()
4408
    oprot.writeStructEnd()
4409
 
3431 rajveer 4410
  def validate(self):
4411
    return
4412
 
4413
 
1610 ankur.sing 4414
  def __repr__(self):
4415
    L = ['%s=%r' % (key, value)
4416
      for key, value in self.__dict__.iteritems()]
4417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4418
 
4419
  def __eq__(self, other):
4420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4421
 
4422
  def __ne__(self, other):
4423
    return not (self == other)
4424
 
4425
class authenticateStatisticsUser_result:
4426
  """
4427
  Attributes:
4428
   - success
4429
   - hse
4430
  """
4431
 
4432
  thrift_spec = (
4433
    (0, TType.STRUCT, 'success', (StatisticsUser, StatisticsUser.thrift_spec), None, ), # 0
4434
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
4435
  )
4436
 
4437
  def __init__(self, success=None, hse=None,):
4438
    self.success = success
4439
    self.hse = hse
4440
 
4441
  def read(self, iprot):
4442
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4443
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4444
      return
4445
    iprot.readStructBegin()
4446
    while True:
4447
      (fname, ftype, fid) = iprot.readFieldBegin()
4448
      if ftype == TType.STOP:
4449
        break
4450
      if fid == 0:
4451
        if ftype == TType.STRUCT:
4452
          self.success = StatisticsUser()
4453
          self.success.read(iprot)
4454
        else:
4455
          iprot.skip(ftype)
4456
      elif fid == 1:
4457
        if ftype == TType.STRUCT:
4458
          self.hse = HelperServiceException()
4459
          self.hse.read(iprot)
4460
        else:
4461
          iprot.skip(ftype)
4462
      else:
4463
        iprot.skip(ftype)
4464
      iprot.readFieldEnd()
4465
    iprot.readStructEnd()
4466
 
4467
  def write(self, oprot):
4468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4470
      return
4471
    oprot.writeStructBegin('authenticateStatisticsUser_result')
3431 rajveer 4472
    if self.success is not None:
1610 ankur.sing 4473
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4474
      self.success.write(oprot)
4475
      oprot.writeFieldEnd()
3431 rajveer 4476
    if self.hse is not None:
1610 ankur.sing 4477
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
4478
      self.hse.write(oprot)
4479
      oprot.writeFieldEnd()
4480
    oprot.writeFieldStop()
4481
    oprot.writeStructEnd()
4482
 
3431 rajveer 4483
  def validate(self):
4484
    return
4485
 
4486
 
1610 ankur.sing 4487
  def __repr__(self):
4488
    L = ['%s=%r' % (key, value)
4489
      for key, value in self.__dict__.iteritems()]
4490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4491
 
4492
  def __eq__(self, other):
4493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4494
 
4495
  def __ne__(self, other):
4496
    return not (self == other)
4497
 
1891 ankur.sing 4498
class authenticateReportUser_args:
4499
  """
4500
  Attributes:
4501
   - username
4502
   - password
4503
  """
1610 ankur.sing 4504
 
1891 ankur.sing 4505
  thrift_spec = (
4506
    None, # 0
4507
    (1, TType.STRING, 'username', None, None, ), # 1
4508
    (2, TType.STRING, 'password', None, None, ), # 2
4509
  )
4510
 
4511
  def __init__(self, username=None, password=None,):
4512
    self.username = username
4513
    self.password = password
4514
 
4515
  def read(self, iprot):
4516
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4517
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4518
      return
4519
    iprot.readStructBegin()
4520
    while True:
4521
      (fname, ftype, fid) = iprot.readFieldBegin()
4522
      if ftype == TType.STOP:
4523
        break
4524
      if fid == 1:
4525
        if ftype == TType.STRING:
4526
          self.username = iprot.readString();
4527
        else:
4528
          iprot.skip(ftype)
4529
      elif fid == 2:
4530
        if ftype == TType.STRING:
4531
          self.password = iprot.readString();
4532
        else:
4533
          iprot.skip(ftype)
4534
      else:
4535
        iprot.skip(ftype)
4536
      iprot.readFieldEnd()
4537
    iprot.readStructEnd()
4538
 
4539
  def write(self, oprot):
4540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4542
      return
4543
    oprot.writeStructBegin('authenticateReportUser_args')
3431 rajveer 4544
    if self.username is not None:
1891 ankur.sing 4545
      oprot.writeFieldBegin('username', TType.STRING, 1)
4546
      oprot.writeString(self.username)
4547
      oprot.writeFieldEnd()
3431 rajveer 4548
    if self.password is not None:
1891 ankur.sing 4549
      oprot.writeFieldBegin('password', TType.STRING, 2)
4550
      oprot.writeString(self.password)
4551
      oprot.writeFieldEnd()
4552
    oprot.writeFieldStop()
4553
    oprot.writeStructEnd()
4554
 
3431 rajveer 4555
  def validate(self):
4556
    return
4557
 
4558
 
1891 ankur.sing 4559
  def __repr__(self):
4560
    L = ['%s=%r' % (key, value)
4561
      for key, value in self.__dict__.iteritems()]
4562
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4563
 
4564
  def __eq__(self, other):
4565
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4566
 
4567
  def __ne__(self, other):
4568
    return not (self == other)
4569
 
4570
class authenticateReportUser_result:
4571
  """
4572
  Attributes:
4573
   - success
4574
   - hse
4575
  """
4576
 
4577
  thrift_spec = (
4578
    (0, TType.STRUCT, 'success', (ReportUser, ReportUser.thrift_spec), None, ), # 0
4579
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
4580
  )
4581
 
4582
  def __init__(self, success=None, hse=None,):
4583
    self.success = success
4584
    self.hse = hse
4585
 
4586
  def read(self, iprot):
4587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4589
      return
4590
    iprot.readStructBegin()
4591
    while True:
4592
      (fname, ftype, fid) = iprot.readFieldBegin()
4593
      if ftype == TType.STOP:
4594
        break
4595
      if fid == 0:
4596
        if ftype == TType.STRUCT:
4597
          self.success = ReportUser()
4598
          self.success.read(iprot)
4599
        else:
4600
          iprot.skip(ftype)
4601
      elif fid == 1:
4602
        if ftype == TType.STRUCT:
4603
          self.hse = HelperServiceException()
4604
          self.hse.read(iprot)
4605
        else:
4606
          iprot.skip(ftype)
4607
      else:
4608
        iprot.skip(ftype)
4609
      iprot.readFieldEnd()
4610
    iprot.readStructEnd()
4611
 
4612
  def write(self, oprot):
4613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4615
      return
4616
    oprot.writeStructBegin('authenticateReportUser_result')
3431 rajveer 4617
    if self.success is not None:
1891 ankur.sing 4618
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4619
      self.success.write(oprot)
4620
      oprot.writeFieldEnd()
3431 rajveer 4621
    if self.hse is not None:
1891 ankur.sing 4622
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
4623
      self.hse.write(oprot)
4624
      oprot.writeFieldEnd()
4625
    oprot.writeFieldStop()
4626
    oprot.writeStructEnd()
4627
 
3431 rajveer 4628
  def validate(self):
4629
    return
4630
 
4631
 
1891 ankur.sing 4632
  def __repr__(self):
4633
    L = ['%s=%r' % (key, value)
4634
      for key, value in self.__dict__.iteritems()]
4635
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4636
 
4637
  def __eq__(self, other):
4638
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4639
 
4640
  def __ne__(self, other):
4641
    return not (self == other)
4642
 
4643
class getReports_args:
4644
  """
4645
  Attributes:
4646
   - role
4647
  """
4648
 
4649
  thrift_spec = (
4650
    None, # 0
4651
    (1, TType.I64, 'role', None, None, ), # 1
4652
  )
4653
 
4654
  def __init__(self, role=None,):
4655
    self.role = role
4656
 
4657
  def read(self, iprot):
4658
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4659
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4660
      return
4661
    iprot.readStructBegin()
4662
    while True:
4663
      (fname, ftype, fid) = iprot.readFieldBegin()
4664
      if ftype == TType.STOP:
4665
        break
4666
      if fid == 1:
4667
        if ftype == TType.I64:
4668
          self.role = iprot.readI64();
4669
        else:
4670
          iprot.skip(ftype)
4671
      else:
4672
        iprot.skip(ftype)
4673
      iprot.readFieldEnd()
4674
    iprot.readStructEnd()
4675
 
4676
  def write(self, oprot):
4677
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4678
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4679
      return
4680
    oprot.writeStructBegin('getReports_args')
3431 rajveer 4681
    if self.role is not None:
1891 ankur.sing 4682
      oprot.writeFieldBegin('role', TType.I64, 1)
4683
      oprot.writeI64(self.role)
4684
      oprot.writeFieldEnd()
4685
    oprot.writeFieldStop()
4686
    oprot.writeStructEnd()
4687
 
3431 rajveer 4688
  def validate(self):
4689
    return
4690
 
4691
 
1891 ankur.sing 4692
  def __repr__(self):
4693
    L = ['%s=%r' % (key, value)
4694
      for key, value in self.__dict__.iteritems()]
4695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4696
 
4697
  def __eq__(self, other):
4698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4699
 
4700
  def __ne__(self, other):
4701
    return not (self == other)
4702
 
4703
class getReports_result:
4704
  """
4705
  Attributes:
4706
   - success
4707
  """
4708
 
4709
  thrift_spec = (
4710
    (0, TType.LIST, 'success', (TType.STRUCT,(Report, Report.thrift_spec)), None, ), # 0
4711
  )
4712
 
4713
  def __init__(self, success=None,):
4714
    self.success = success
4715
 
4716
  def read(self, iprot):
4717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4719
      return
4720
    iprot.readStructBegin()
4721
    while True:
4722
      (fname, ftype, fid) = iprot.readFieldBegin()
4723
      if ftype == TType.STOP:
4724
        break
4725
      if fid == 0:
4726
        if ftype == TType.LIST:
4727
          self.success = []
5864 rajveer 4728
          (_etype75, _size72) = iprot.readListBegin()
4729
          for _i76 in xrange(_size72):
4730
            _elem77 = Report()
4731
            _elem77.read(iprot)
4732
            self.success.append(_elem77)
1891 ankur.sing 4733
          iprot.readListEnd()
4734
        else:
4735
          iprot.skip(ftype)
4736
      else:
4737
        iprot.skip(ftype)
4738
      iprot.readFieldEnd()
4739
    iprot.readStructEnd()
4740
 
4741
  def write(self, oprot):
4742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4744
      return
4745
    oprot.writeStructBegin('getReports_result')
3431 rajveer 4746
    if self.success is not None:
1891 ankur.sing 4747
      oprot.writeFieldBegin('success', TType.LIST, 0)
4748
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5864 rajveer 4749
      for iter78 in self.success:
4750
        iter78.write(oprot)
1891 ankur.sing 4751
      oprot.writeListEnd()
4752
      oprot.writeFieldEnd()
4753
    oprot.writeFieldStop()
4754
    oprot.writeStructEnd()
4755
 
3431 rajveer 4756
  def validate(self):
4757
    return
4758
 
4759
 
1891 ankur.sing 4760
  def __repr__(self):
4761
    L = ['%s=%r' % (key, value)
4762
      for key, value in self.__dict__.iteritems()]
4763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4764
 
4765
  def __eq__(self, other):
4766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4767
 
4768
  def __ne__(self, other):
4769
    return not (self == other)
4770
 
2025 ankur.sing 4771
class authenticateCatalogUser_args:
4772
  """
4773
  Attributes:
4774
   - username
4775
   - password
4776
  """
1891 ankur.sing 4777
 
2025 ankur.sing 4778
  thrift_spec = (
4779
    None, # 0
4780
    (1, TType.STRING, 'username', None, None, ), # 1
4781
    (2, TType.STRING, 'password', None, None, ), # 2
4782
  )
4783
 
6788 rajveer 4784
  def __init__(self, username=None, password=None,):
2025 ankur.sing 4785
    self.username = username
4786
    self.password = password
4787
 
4788
  def read(self, iprot):
4789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4791
      return
4792
    iprot.readStructBegin()
4793
    while True:
4794
      (fname, ftype, fid) = iprot.readFieldBegin()
4795
      if ftype == TType.STOP:
4796
        break
4797
      if fid == 1:
4798
        if ftype == TType.STRING:
4799
          self.username = iprot.readString();
4800
        else:
4801
          iprot.skip(ftype)
4802
      elif fid == 2:
4803
        if ftype == TType.STRING:
4804
          self.password = iprot.readString();
4805
        else:
4806
          iprot.skip(ftype)
4807
      else:
4808
        iprot.skip(ftype)
4809
      iprot.readFieldEnd()
4810
    iprot.readStructEnd()
4811
 
4812
  def write(self, oprot):
4813
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4814
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4815
      return
4816
    oprot.writeStructBegin('authenticateCatalogUser_args')
3431 rajveer 4817
    if self.username is not None:
2025 ankur.sing 4818
      oprot.writeFieldBegin('username', TType.STRING, 1)
4819
      oprot.writeString(self.username)
4820
      oprot.writeFieldEnd()
3431 rajveer 4821
    if self.password is not None:
2025 ankur.sing 4822
      oprot.writeFieldBegin('password', TType.STRING, 2)
4823
      oprot.writeString(self.password)
4824
      oprot.writeFieldEnd()
4825
    oprot.writeFieldStop()
4826
    oprot.writeStructEnd()
4827
 
3431 rajveer 4828
  def validate(self):
4829
    return
4830
 
4831
 
2025 ankur.sing 4832
  def __repr__(self):
4833
    L = ['%s=%r' % (key, value)
4834
      for key, value in self.__dict__.iteritems()]
4835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4836
 
4837
  def __eq__(self, other):
4838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4839
 
4840
  def __ne__(self, other):
4841
    return not (self == other)
4842
 
4843
class authenticateCatalogUser_result:
4844
  """
4845
  Attributes:
4846
   - success
4847
   - hse
4848
  """
4849
 
4850
  thrift_spec = (
4851
    (0, TType.STRUCT, 'success', (CatalogDashboardUser, CatalogDashboardUser.thrift_spec), None, ), # 0
4852
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
4853
  )
4854
 
4855
  def __init__(self, success=None, hse=None,):
4856
    self.success = success
4857
    self.hse = hse
4858
 
4859
  def read(self, iprot):
4860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4862
      return
4863
    iprot.readStructBegin()
4864
    while True:
4865
      (fname, ftype, fid) = iprot.readFieldBegin()
4866
      if ftype == TType.STOP:
4867
        break
4868
      if fid == 0:
4869
        if ftype == TType.STRUCT:
4870
          self.success = CatalogDashboardUser()
4871
          self.success.read(iprot)
4872
        else:
4873
          iprot.skip(ftype)
4874
      elif fid == 1:
4875
        if ftype == TType.STRUCT:
4876
          self.hse = HelperServiceException()
4877
          self.hse.read(iprot)
4878
        else:
4879
          iprot.skip(ftype)
4880
      else:
4881
        iprot.skip(ftype)
4882
      iprot.readFieldEnd()
4883
    iprot.readStructEnd()
4884
 
4885
  def write(self, oprot):
4886
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4887
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4888
      return
4889
    oprot.writeStructBegin('authenticateCatalogUser_result')
3431 rajveer 4890
    if self.success is not None:
2025 ankur.sing 4891
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4892
      self.success.write(oprot)
4893
      oprot.writeFieldEnd()
3431 rajveer 4894
    if self.hse is not None:
2025 ankur.sing 4895
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
4896
      self.hse.write(oprot)
4897
      oprot.writeFieldEnd()
4898
    oprot.writeFieldStop()
4899
    oprot.writeStructEnd()
4900
 
3431 rajveer 4901
  def validate(self):
4902
    return
4903
 
4904
 
2025 ankur.sing 4905
  def __repr__(self):
4906
    L = ['%s=%r' % (key, value)
4907
      for key, value in self.__dict__.iteritems()]
4908
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4909
 
4910
  def __eq__(self, other):
4911
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4912
 
4913
  def __ne__(self, other):
4914
    return not (self == other)
4544 varun.gupt 4915
 
4916
class shareEntities_args:
4917
  """
4918
  Attributes:
4919
   - entityIds
4920
   - email
4921
  """
4922
 
4923
  thrift_spec = (
4924
    None, # 0
4925
    (1, TType.LIST, 'entityIds', (TType.I64,None), None, ), # 1
4926
    (2, TType.STRING, 'email', None, None, ), # 2
4927
  )
4928
 
4929
  def __init__(self, entityIds=None, email=None,):
4930
    self.entityIds = entityIds
4931
    self.email = email
4932
 
4933
  def read(self, iprot):
4934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4936
      return
4937
    iprot.readStructBegin()
4938
    while True:
4939
      (fname, ftype, fid) = iprot.readFieldBegin()
4940
      if ftype == TType.STOP:
4941
        break
4942
      if fid == 1:
4943
        if ftype == TType.LIST:
4944
          self.entityIds = []
5864 rajveer 4945
          (_etype82, _size79) = iprot.readListBegin()
4946
          for _i83 in xrange(_size79):
4947
            _elem84 = iprot.readI64();
4948
            self.entityIds.append(_elem84)
4544 varun.gupt 4949
          iprot.readListEnd()
4950
        else:
4951
          iprot.skip(ftype)
4952
      elif fid == 2:
4953
        if ftype == TType.STRING:
4954
          self.email = iprot.readString();
4955
        else:
4956
          iprot.skip(ftype)
4957
      else:
4958
        iprot.skip(ftype)
4959
      iprot.readFieldEnd()
4960
    iprot.readStructEnd()
4961
 
4962
  def write(self, oprot):
4963
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4964
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4965
      return
4966
    oprot.writeStructBegin('shareEntities_args')
4967
    if self.entityIds is not None:
4968
      oprot.writeFieldBegin('entityIds', TType.LIST, 1)
4969
      oprot.writeListBegin(TType.I64, len(self.entityIds))
5864 rajveer 4970
      for iter85 in self.entityIds:
4971
        oprot.writeI64(iter85)
4544 varun.gupt 4972
      oprot.writeListEnd()
4973
      oprot.writeFieldEnd()
4974
    if self.email is not None:
4975
      oprot.writeFieldBegin('email', TType.STRING, 2)
4976
      oprot.writeString(self.email)
4977
      oprot.writeFieldEnd()
4978
    oprot.writeFieldStop()
4979
    oprot.writeStructEnd()
4980
 
4981
  def validate(self):
4982
    return
4983
 
4984
 
4985
  def __repr__(self):
4986
    L = ['%s=%r' % (key, value)
4987
      for key, value in self.__dict__.iteritems()]
4988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4989
 
4990
  def __eq__(self, other):
4991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4992
 
4993
  def __ne__(self, other):
4994
    return not (self == other)
4995
 
4996
class shareEntities_result:
4997
  """
4998
  Attributes:
4999
   - hse
5000
  """
5001
 
5002
  thrift_spec = (
5003
    None, # 0
5004
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
5005
  )
5006
 
5007
  def __init__(self, hse=None,):
5008
    self.hse = hse
5009
 
5010
  def read(self, iprot):
5011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5013
      return
5014
    iprot.readStructBegin()
5015
    while True:
5016
      (fname, ftype, fid) = iprot.readFieldBegin()
5017
      if ftype == TType.STOP:
5018
        break
5019
      if fid == 1:
5020
        if ftype == TType.STRUCT:
5021
          self.hse = HelperServiceException()
5022
          self.hse.read(iprot)
5023
        else:
5024
          iprot.skip(ftype)
5025
      else:
5026
        iprot.skip(ftype)
5027
      iprot.readFieldEnd()
5028
    iprot.readStructEnd()
5029
 
5030
  def write(self, oprot):
5031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5033
      return
5034
    oprot.writeStructBegin('shareEntities_result')
5035
    if self.hse is not None:
5036
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
5037
      self.hse.write(oprot)
5038
      oprot.writeFieldEnd()
5039
    oprot.writeFieldStop()
5040
    oprot.writeStructEnd()
5041
 
5042
  def validate(self):
5043
    return
5044
 
5045
 
5046
  def __repr__(self):
5047
    L = ['%s=%r' % (key, value)
5048
      for key, value in self.__dict__.iteritems()]
5049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5050
 
5051
  def __eq__(self, other):
5052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5053
 
5054
  def __ne__(self, other):
5055
    return not (self == other)
4691 mandeep.dh 5056
 
5057
class getAgents_args:
5058
 
5059
  thrift_spec = (
5060
  )
5061
 
5062
  def read(self, iprot):
5063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5065
      return
5066
    iprot.readStructBegin()
5067
    while True:
5068
      (fname, ftype, fid) = iprot.readFieldBegin()
5069
      if ftype == TType.STOP:
5070
        break
5071
      else:
5072
        iprot.skip(ftype)
5073
      iprot.readFieldEnd()
5074
    iprot.readStructEnd()
5075
 
5076
  def write(self, oprot):
5077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5079
      return
5080
    oprot.writeStructBegin('getAgents_args')
5081
    oprot.writeFieldStop()
5082
    oprot.writeStructEnd()
5083
 
5084
  def validate(self):
5085
    return
5086
 
5087
 
5088
  def __repr__(self):
5089
    L = ['%s=%r' % (key, value)
5090
      for key, value in self.__dict__.iteritems()]
5091
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5092
 
5093
  def __eq__(self, other):
5094
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5095
 
5096
  def __ne__(self, other):
5097
    return not (self == other)
5098
 
5099
class getAgents_result:
5100
  """
5101
  Attributes:
5102
   - success
5103
  """
5104
 
5105
  thrift_spec = (
5106
    (0, TType.LIST, 'success', (TType.STRUCT,(Agent, Agent.thrift_spec)), None, ), # 0
5107
  )
5108
 
5109
  def __init__(self, success=None,):
5110
    self.success = success
5111
 
5112
  def read(self, iprot):
5113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5115
      return
5116
    iprot.readStructBegin()
5117
    while True:
5118
      (fname, ftype, fid) = iprot.readFieldBegin()
5119
      if ftype == TType.STOP:
5120
        break
5121
      if fid == 0:
5122
        if ftype == TType.LIST:
5123
          self.success = []
5864 rajveer 5124
          (_etype89, _size86) = iprot.readListBegin()
5125
          for _i90 in xrange(_size86):
5126
            _elem91 = Agent()
5127
            _elem91.read(iprot)
5128
            self.success.append(_elem91)
4691 mandeep.dh 5129
          iprot.readListEnd()
5130
        else:
5131
          iprot.skip(ftype)
5132
      else:
5133
        iprot.skip(ftype)
5134
      iprot.readFieldEnd()
5135
    iprot.readStructEnd()
5136
 
5137
  def write(self, oprot):
5138
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5139
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5140
      return
5141
    oprot.writeStructBegin('getAgents_result')
5142
    if self.success is not None:
5143
      oprot.writeFieldBegin('success', TType.LIST, 0)
5144
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5864 rajveer 5145
      for iter92 in self.success:
5146
        iter92.write(oprot)
4691 mandeep.dh 5147
      oprot.writeListEnd()
5148
      oprot.writeFieldEnd()
5149
    oprot.writeFieldStop()
5150
    oprot.writeStructEnd()
5151
 
5152
  def validate(self):
5153
    return
5154
 
5155
 
5156
  def __repr__(self):
5157
    L = ['%s=%r' % (key, value)
5158
      for key, value in self.__dict__.iteritems()]
5159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5160
 
5161
  def __eq__(self, other):
5162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5163
 
5164
  def __ne__(self, other):
5165
    return not (self == other)
5166
 
5167
class validateLogIn_args:
5168
  """
5169
  Attributes:
5170
   - emailId
5171
   - password
5172
  """
5173
 
5174
  thrift_spec = (
5175
    None, # 0
5176
    (1, TType.STRING, 'emailId', None, None, ), # 1
5177
    (2, TType.STRING, 'password', None, None, ), # 2
5178
  )
5179
 
5180
  def __init__(self, emailId=None, password=None,):
5181
    self.emailId = emailId
5182
    self.password = password
5183
 
5184
  def read(self, iprot):
5185
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5186
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5187
      return
5188
    iprot.readStructBegin()
5189
    while True:
5190
      (fname, ftype, fid) = iprot.readFieldBegin()
5191
      if ftype == TType.STOP:
5192
        break
5193
      if fid == 1:
5194
        if ftype == TType.STRING:
5195
          self.emailId = iprot.readString();
5196
        else:
5197
          iprot.skip(ftype)
5198
      elif fid == 2:
5199
        if ftype == TType.STRING:
5200
          self.password = iprot.readString();
5201
        else:
5202
          iprot.skip(ftype)
5203
      else:
5204
        iprot.skip(ftype)
5205
      iprot.readFieldEnd()
5206
    iprot.readStructEnd()
5207
 
5208
  def write(self, oprot):
5209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5211
      return
5212
    oprot.writeStructBegin('validateLogIn_args')
5213
    if self.emailId is not None:
5214
      oprot.writeFieldBegin('emailId', TType.STRING, 1)
5215
      oprot.writeString(self.emailId)
5216
      oprot.writeFieldEnd()
5217
    if self.password is not None:
5218
      oprot.writeFieldBegin('password', TType.STRING, 2)
5219
      oprot.writeString(self.password)
5220
      oprot.writeFieldEnd()
5221
    oprot.writeFieldStop()
5222
    oprot.writeStructEnd()
5223
 
5224
  def validate(self):
5225
    return
5226
 
5227
 
5228
  def __repr__(self):
5229
    L = ['%s=%r' % (key, value)
5230
      for key, value in self.__dict__.iteritems()]
5231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5232
 
5233
  def __eq__(self, other):
5234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5235
 
5236
  def __ne__(self, other):
5237
    return not (self == other)
5238
 
5239
class validateLogIn_result:
5240
  """
5241
  Attributes:
5242
   - success
5243
  """
5244
 
5245
  thrift_spec = (
5246
    (0, TType.BOOL, 'success', None, None, ), # 0
5247
  )
5248
 
5249
  def __init__(self, success=None,):
5250
    self.success = success
5251
 
5252
  def read(self, iprot):
5253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5255
      return
5256
    iprot.readStructBegin()
5257
    while True:
5258
      (fname, ftype, fid) = iprot.readFieldBegin()
5259
      if ftype == TType.STOP:
5260
        break
5261
      if fid == 0:
5262
        if ftype == TType.BOOL:
5263
          self.success = iprot.readBool();
5264
        else:
5265
          iprot.skip(ftype)
5266
      else:
5267
        iprot.skip(ftype)
5268
      iprot.readFieldEnd()
5269
    iprot.readStructEnd()
5270
 
5271
  def write(self, oprot):
5272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5274
      return
5275
    oprot.writeStructBegin('validateLogIn_result')
5276
    if self.success is not None:
5277
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5278
      oprot.writeBool(self.success)
5279
      oprot.writeFieldEnd()
5280
    oprot.writeFieldStop()
5281
    oprot.writeStructEnd()
5282
 
5283
  def validate(self):
5284
    return
5285
 
5286
 
5287
  def __repr__(self):
5288
    L = ['%s=%r' % (key, value)
5289
      for key, value in self.__dict__.iteritems()]
5290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5291
 
5292
  def __eq__(self, other):
5293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5294
 
5295
  def __ne__(self, other):
5296
    return not (self == other)
5297
 
5298
class updatePasswordForAgent_args:
5299
  """
5300
  Attributes:
5301
   - agentEmailId
5302
   - password
5303
  """
5304
 
5305
  thrift_spec = (
5306
    None, # 0
5307
    (1, TType.STRING, 'agentEmailId', None, None, ), # 1
5308
    (2, TType.STRING, 'password', None, None, ), # 2
5309
  )
5310
 
5311
  def __init__(self, agentEmailId=None, password=None,):
5312
    self.agentEmailId = agentEmailId
5313
    self.password = password
5314
 
5315
  def read(self, iprot):
5316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5318
      return
5319
    iprot.readStructBegin()
5320
    while True:
5321
      (fname, ftype, fid) = iprot.readFieldBegin()
5322
      if ftype == TType.STOP:
5323
        break
5324
      if fid == 1:
5325
        if ftype == TType.STRING:
5326
          self.agentEmailId = iprot.readString();
5327
        else:
5328
          iprot.skip(ftype)
5329
      elif fid == 2:
5330
        if ftype == TType.STRING:
5331
          self.password = iprot.readString();
5332
        else:
5333
          iprot.skip(ftype)
5334
      else:
5335
        iprot.skip(ftype)
5336
      iprot.readFieldEnd()
5337
    iprot.readStructEnd()
5338
 
5339
  def write(self, oprot):
5340
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5341
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5342
      return
5343
    oprot.writeStructBegin('updatePasswordForAgent_args')
5344
    if self.agentEmailId is not None:
5345
      oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
5346
      oprot.writeString(self.agentEmailId)
5347
      oprot.writeFieldEnd()
5348
    if self.password is not None:
5349
      oprot.writeFieldBegin('password', TType.STRING, 2)
5350
      oprot.writeString(self.password)
5351
      oprot.writeFieldEnd()
5352
    oprot.writeFieldStop()
5353
    oprot.writeStructEnd()
5354
 
5355
  def validate(self):
5356
    return
5357
 
5358
 
5359
  def __repr__(self):
5360
    L = ['%s=%r' % (key, value)
5361
      for key, value in self.__dict__.iteritems()]
5362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5363
 
5364
  def __eq__(self, other):
5365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5366
 
5367
  def __ne__(self, other):
5368
    return not (self == other)
5369
 
5370
class updatePasswordForAgent_result:
5371
 
5372
  thrift_spec = (
5373
  )
5374
 
5375
  def read(self, iprot):
5376
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5377
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5378
      return
5379
    iprot.readStructBegin()
5380
    while True:
5381
      (fname, ftype, fid) = iprot.readFieldBegin()
5382
      if ftype == TType.STOP:
5383
        break
5384
      else:
5385
        iprot.skip(ftype)
5386
      iprot.readFieldEnd()
5387
    iprot.readStructEnd()
5388
 
5389
  def write(self, oprot):
5390
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5391
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5392
      return
5393
    oprot.writeStructBegin('updatePasswordForAgent_result')
5394
    oprot.writeFieldStop()
5395
    oprot.writeStructEnd()
5396
 
5397
  def validate(self):
5398
    return
5399
 
5400
 
5401
  def __repr__(self):
5402
    L = ['%s=%r' % (key, value)
5403
      for key, value in self.__dict__.iteritems()]
5404
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5405
 
5406
  def __eq__(self, other):
5407
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5408
 
5409
  def __ne__(self, other):
5410
    return not (self == other)
5411
 
5412
class getRoleNamesForAgent_args:
5413
  """
5414
  Attributes:
5415
   - agentEmailId
5416
  """
5417
 
5418
  thrift_spec = (
5419
    None, # 0
5420
    (1, TType.STRING, 'agentEmailId', None, None, ), # 1
5421
  )
5422
 
5423
  def __init__(self, agentEmailId=None,):
5424
    self.agentEmailId = agentEmailId
5425
 
5426
  def read(self, iprot):
5427
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5428
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5429
      return
5430
    iprot.readStructBegin()
5431
    while True:
5432
      (fname, ftype, fid) = iprot.readFieldBegin()
5433
      if ftype == TType.STOP:
5434
        break
5435
      if fid == 1:
5436
        if ftype == TType.STRING:
5437
          self.agentEmailId = iprot.readString();
5438
        else:
5439
          iprot.skip(ftype)
5440
      else:
5441
        iprot.skip(ftype)
5442
      iprot.readFieldEnd()
5443
    iprot.readStructEnd()
5444
 
5445
  def write(self, oprot):
5446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5448
      return
5449
    oprot.writeStructBegin('getRoleNamesForAgent_args')
5450
    if self.agentEmailId is not None:
5451
      oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
5452
      oprot.writeString(self.agentEmailId)
5453
      oprot.writeFieldEnd()
5454
    oprot.writeFieldStop()
5455
    oprot.writeStructEnd()
5456
 
5457
  def validate(self):
5458
    return
5459
 
5460
 
5461
  def __repr__(self):
5462
    L = ['%s=%r' % (key, value)
5463
      for key, value in self.__dict__.iteritems()]
5464
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5465
 
5466
  def __eq__(self, other):
5467
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5468
 
5469
  def __ne__(self, other):
5470
    return not (self == other)
5471
 
5472
class getRoleNamesForAgent_result:
5473
  """
5474
  Attributes:
5475
   - success
5476
  """
5477
 
5478
  thrift_spec = (
5479
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
5480
  )
5481
 
5482
  def __init__(self, success=None,):
5483
    self.success = success
5484
 
5485
  def read(self, iprot):
5486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5488
      return
5489
    iprot.readStructBegin()
5490
    while True:
5491
      (fname, ftype, fid) = iprot.readFieldBegin()
5492
      if ftype == TType.STOP:
5493
        break
5494
      if fid == 0:
5495
        if ftype == TType.LIST:
5496
          self.success = []
5864 rajveer 5497
          (_etype96, _size93) = iprot.readListBegin()
5498
          for _i97 in xrange(_size93):
5499
            _elem98 = iprot.readString();
5500
            self.success.append(_elem98)
4691 mandeep.dh 5501
          iprot.readListEnd()
5502
        else:
5503
          iprot.skip(ftype)
5504
      else:
5505
        iprot.skip(ftype)
5506
      iprot.readFieldEnd()
5507
    iprot.readStructEnd()
5508
 
5509
  def write(self, oprot):
5510
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5511
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5512
      return
5513
    oprot.writeStructBegin('getRoleNamesForAgent_result')
5514
    if self.success is not None:
5515
      oprot.writeFieldBegin('success', TType.LIST, 0)
5516
      oprot.writeListBegin(TType.STRING, len(self.success))
5864 rajveer 5517
      for iter99 in self.success:
5518
        oprot.writeString(iter99)
4691 mandeep.dh 5519
      oprot.writeListEnd()
5520
      oprot.writeFieldEnd()
5521
    oprot.writeFieldStop()
5522
    oprot.writeStructEnd()
5523
 
5524
  def validate(self):
5525
    return
5526
 
5527
 
5528
  def __repr__(self):
5529
    L = ['%s=%r' % (key, value)
5530
      for key, value in self.__dict__.iteritems()]
5531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5532
 
5533
  def __eq__(self, other):
5534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5535
 
5536
  def __ne__(self, other):
5537
    return not (self == other)
5538
 
5539
class getPermissionsForRoleName_args:
5540
  """
5541
  Attributes:
5542
   - roleName
5543
  """
5544
 
5545
  thrift_spec = (
5546
    None, # 0
5547
    (1, TType.STRING, 'roleName', None, None, ), # 1
5548
  )
5549
 
5550
  def __init__(self, roleName=None,):
5551
    self.roleName = roleName
5552
 
5553
  def read(self, iprot):
5554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5556
      return
5557
    iprot.readStructBegin()
5558
    while True:
5559
      (fname, ftype, fid) = iprot.readFieldBegin()
5560
      if ftype == TType.STOP:
5561
        break
5562
      if fid == 1:
5563
        if ftype == TType.STRING:
5564
          self.roleName = iprot.readString();
5565
        else:
5566
          iprot.skip(ftype)
5567
      else:
5568
        iprot.skip(ftype)
5569
      iprot.readFieldEnd()
5570
    iprot.readStructEnd()
5571
 
5572
  def write(self, oprot):
5573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5575
      return
5576
    oprot.writeStructBegin('getPermissionsForRoleName_args')
5577
    if self.roleName is not None:
5578
      oprot.writeFieldBegin('roleName', TType.STRING, 1)
5579
      oprot.writeString(self.roleName)
5580
      oprot.writeFieldEnd()
5581
    oprot.writeFieldStop()
5582
    oprot.writeStructEnd()
5583
 
5584
  def validate(self):
5585
    return
5586
 
5587
 
5588
  def __repr__(self):
5589
    L = ['%s=%r' % (key, value)
5590
      for key, value in self.__dict__.iteritems()]
5591
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5592
 
5593
  def __eq__(self, other):
5594
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5595
 
5596
  def __ne__(self, other):
5597
    return not (self == other)
5598
 
5599
class getPermissionsForRoleName_result:
5600
  """
5601
  Attributes:
5602
   - success
5603
  """
5604
 
5605
  thrift_spec = (
5606
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
5607
  )
5608
 
5609
  def __init__(self, success=None,):
5610
    self.success = success
5611
 
5612
  def read(self, iprot):
5613
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5614
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5615
      return
5616
    iprot.readStructBegin()
5617
    while True:
5618
      (fname, ftype, fid) = iprot.readFieldBegin()
5619
      if ftype == TType.STOP:
5620
        break
5621
      if fid == 0:
5622
        if ftype == TType.LIST:
5623
          self.success = []
5864 rajveer 5624
          (_etype103, _size100) = iprot.readListBegin()
5625
          for _i104 in xrange(_size100):
5626
            _elem105 = iprot.readString();
5627
            self.success.append(_elem105)
4691 mandeep.dh 5628
          iprot.readListEnd()
5629
        else:
5630
          iprot.skip(ftype)
5631
      else:
5632
        iprot.skip(ftype)
5633
      iprot.readFieldEnd()
5634
    iprot.readStructEnd()
5635
 
5636
  def write(self, oprot):
5637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5639
      return
5640
    oprot.writeStructBegin('getPermissionsForRoleName_result')
5641
    if self.success is not None:
5642
      oprot.writeFieldBegin('success', TType.LIST, 0)
5643
      oprot.writeListBegin(TType.STRING, len(self.success))
5864 rajveer 5644
      for iter106 in self.success:
5645
        oprot.writeString(iter106)
4691 mandeep.dh 5646
      oprot.writeListEnd()
5647
      oprot.writeFieldEnd()
5648
    oprot.writeFieldStop()
5649
    oprot.writeStructEnd()
5650
 
5651
  def validate(self):
5652
    return
5653
 
5654
 
5655
  def __repr__(self):
5656
    L = ['%s=%r' % (key, value)
5657
      for key, value in self.__dict__.iteritems()]
5658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5659
 
5660
  def __eq__(self, other):
5661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5662
 
5663
  def __ne__(self, other):
5664
    return not (self == other)
4806 varun.gupt 5665
 
5666
class saveQuickLink_args:
5667
  """
5668
  Attributes:
5669
   - url
5670
   - text
5671
  """
5672
 
5673
  thrift_spec = (
5674
    None, # 0
5675
    (1, TType.STRING, 'url', None, None, ), # 1
5676
    (2, TType.STRING, 'text', None, None, ), # 2
5677
  )
5678
 
5679
  def __init__(self, url=None, text=None,):
5680
    self.url = url
5681
    self.text = text
5682
 
5683
  def read(self, iprot):
5684
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5685
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5686
      return
5687
    iprot.readStructBegin()
5688
    while True:
5689
      (fname, ftype, fid) = iprot.readFieldBegin()
5690
      if ftype == TType.STOP:
5691
        break
5692
      if fid == 1:
5693
        if ftype == TType.STRING:
5694
          self.url = iprot.readString();
5695
        else:
5696
          iprot.skip(ftype)
5697
      elif fid == 2:
5698
        if ftype == TType.STRING:
5699
          self.text = iprot.readString();
5700
        else:
5701
          iprot.skip(ftype)
5702
      else:
5703
        iprot.skip(ftype)
5704
      iprot.readFieldEnd()
5705
    iprot.readStructEnd()
5706
 
5707
  def write(self, oprot):
5708
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5709
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5710
      return
5711
    oprot.writeStructBegin('saveQuickLink_args')
5712
    if self.url is not None:
5713
      oprot.writeFieldBegin('url', TType.STRING, 1)
5714
      oprot.writeString(self.url)
5715
      oprot.writeFieldEnd()
5716
    if self.text is not None:
5717
      oprot.writeFieldBegin('text', TType.STRING, 2)
5718
      oprot.writeString(self.text)
5719
      oprot.writeFieldEnd()
5720
    oprot.writeFieldStop()
5721
    oprot.writeStructEnd()
5722
 
5723
  def validate(self):
5724
    return
5725
 
5726
 
5727
  def __repr__(self):
5728
    L = ['%s=%r' % (key, value)
5729
      for key, value in self.__dict__.iteritems()]
5730
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5731
 
5732
  def __eq__(self, other):
5733
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5734
 
5735
  def __ne__(self, other):
5736
    return not (self == other)
5737
 
5738
class saveQuickLink_result:
5739
  """
5740
  Attributes:
5741
   - hse
5742
  """
5743
 
5744
  thrift_spec = (
5745
    None, # 0
5746
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
5747
  )
5748
 
5749
  def __init__(self, hse=None,):
5750
    self.hse = hse
5751
 
5752
  def read(self, iprot):
5753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5755
      return
5756
    iprot.readStructBegin()
5757
    while True:
5758
      (fname, ftype, fid) = iprot.readFieldBegin()
5759
      if ftype == TType.STOP:
5760
        break
5761
      if fid == 1:
5762
        if ftype == TType.STRUCT:
5763
          self.hse = HelperServiceException()
5764
          self.hse.read(iprot)
5765
        else:
5766
          iprot.skip(ftype)
5767
      else:
5768
        iprot.skip(ftype)
5769
      iprot.readFieldEnd()
5770
    iprot.readStructEnd()
5771
 
5772
  def write(self, oprot):
5773
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5774
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5775
      return
5776
    oprot.writeStructBegin('saveQuickLink_result')
5777
    if self.hse is not None:
5778
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
5779
      self.hse.write(oprot)
5780
      oprot.writeFieldEnd()
5781
    oprot.writeFieldStop()
5782
    oprot.writeStructEnd()
5783
 
5784
  def validate(self):
5785
    return
5786
 
5787
 
5788
  def __repr__(self):
5789
    L = ['%s=%r' % (key, value)
5790
      for key, value in self.__dict__.iteritems()]
5791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5792
 
5793
  def __eq__(self, other):
5794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5795
 
5796
  def __ne__(self, other):
5797
    return not (self == other)
5798
 
5799
class getQuickLinks_args:
5800
 
5801
  thrift_spec = (
5802
  )
5803
 
5804
  def read(self, iprot):
5805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5807
      return
5808
    iprot.readStructBegin()
5809
    while True:
5810
      (fname, ftype, fid) = iprot.readFieldBegin()
5811
      if ftype == TType.STOP:
5812
        break
5813
      else:
5814
        iprot.skip(ftype)
5815
      iprot.readFieldEnd()
5816
    iprot.readStructEnd()
5817
 
5818
  def write(self, oprot):
5819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5821
      return
5822
    oprot.writeStructBegin('getQuickLinks_args')
5823
    oprot.writeFieldStop()
5824
    oprot.writeStructEnd()
5825
 
5826
  def validate(self):
5827
    return
5828
 
5829
 
5830
  def __repr__(self):
5831
    L = ['%s=%r' % (key, value)
5832
      for key, value in self.__dict__.iteritems()]
5833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5834
 
5835
  def __eq__(self, other):
5836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5837
 
5838
  def __ne__(self, other):
5839
    return not (self == other)
5840
 
5841
class getQuickLinks_result:
5842
  """
5843
  Attributes:
5844
   - success
5845
   - hse
5846
  """
5847
 
5848
  thrift_spec = (
5849
    (0, TType.LIST, 'success', (TType.STRUCT,(QuickLink, QuickLink.thrift_spec)), None, ), # 0
5850
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
5851
  )
5852
 
5853
  def __init__(self, success=None, hse=None,):
5854
    self.success = success
5855
    self.hse = hse
5856
 
5857
  def read(self, iprot):
5858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5860
      return
5861
    iprot.readStructBegin()
5862
    while True:
5863
      (fname, ftype, fid) = iprot.readFieldBegin()
5864
      if ftype == TType.STOP:
5865
        break
5866
      if fid == 0:
5867
        if ftype == TType.LIST:
5868
          self.success = []
5864 rajveer 5869
          (_etype110, _size107) = iprot.readListBegin()
5870
          for _i111 in xrange(_size107):
5871
            _elem112 = QuickLink()
5872
            _elem112.read(iprot)
5873
            self.success.append(_elem112)
4806 varun.gupt 5874
          iprot.readListEnd()
5875
        else:
5876
          iprot.skip(ftype)
5877
      elif fid == 1:
5878
        if ftype == TType.STRUCT:
5879
          self.hse = HelperServiceException()
5880
          self.hse.read(iprot)
5881
        else:
5882
          iprot.skip(ftype)
5883
      else:
5884
        iprot.skip(ftype)
5885
      iprot.readFieldEnd()
5886
    iprot.readStructEnd()
5887
 
5888
  def write(self, oprot):
5889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5891
      return
5892
    oprot.writeStructBegin('getQuickLinks_result')
5893
    if self.success is not None:
5894
      oprot.writeFieldBegin('success', TType.LIST, 0)
5895
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5864 rajveer 5896
      for iter113 in self.success:
5897
        iter113.write(oprot)
4806 varun.gupt 5898
      oprot.writeListEnd()
5899
      oprot.writeFieldEnd()
5900
    if self.hse is not None:
5901
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
5902
      self.hse.write(oprot)
5903
      oprot.writeFieldEnd()
5904
    oprot.writeFieldStop()
5905
    oprot.writeStructEnd()
5906
 
5907
  def validate(self):
5908
    return
5909
 
5910
 
5911
  def __repr__(self):
5912
    L = ['%s=%r' % (key, value)
5913
      for key, value in self.__dict__.iteritems()]
5914
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5915
 
5916
  def __eq__(self, other):
5917
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5918
 
5919
  def __ne__(self, other):
5920
    return not (self == other)
4996 varun.gupt 5921
 
5922
class updateQuickLink_args:
5923
  """
5924
  Attributes:
5925
   - id
5926
   - url
5927
   - text
5928
  """
5929
 
5930
  thrift_spec = (
5931
    None, # 0
5932
    (1, TType.I64, 'id', None, None, ), # 1
5933
    (2, TType.STRING, 'url', None, None, ), # 2
5934
    (3, TType.STRING, 'text', None, None, ), # 3
5935
  )
5936
 
5937
  def __init__(self, id=None, url=None, text=None,):
5938
    self.id = id
5939
    self.url = url
5940
    self.text = text
5941
 
5942
  def read(self, iprot):
5943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5945
      return
5946
    iprot.readStructBegin()
5947
    while True:
5948
      (fname, ftype, fid) = iprot.readFieldBegin()
5949
      if ftype == TType.STOP:
5950
        break
5951
      if fid == 1:
5952
        if ftype == TType.I64:
5953
          self.id = iprot.readI64();
5954
        else:
5955
          iprot.skip(ftype)
5956
      elif fid == 2:
5957
        if ftype == TType.STRING:
5958
          self.url = iprot.readString();
5959
        else:
5960
          iprot.skip(ftype)
5961
      elif fid == 3:
5962
        if ftype == TType.STRING:
5963
          self.text = iprot.readString();
5964
        else:
5965
          iprot.skip(ftype)
5966
      else:
5967
        iprot.skip(ftype)
5968
      iprot.readFieldEnd()
5969
    iprot.readStructEnd()
5970
 
5971
  def write(self, oprot):
5972
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5973
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5974
      return
5975
    oprot.writeStructBegin('updateQuickLink_args')
5976
    if self.id is not None:
5977
      oprot.writeFieldBegin('id', TType.I64, 1)
5978
      oprot.writeI64(self.id)
5979
      oprot.writeFieldEnd()
5980
    if self.url is not None:
5981
      oprot.writeFieldBegin('url', TType.STRING, 2)
5982
      oprot.writeString(self.url)
5983
      oprot.writeFieldEnd()
5984
    if self.text is not None:
5985
      oprot.writeFieldBegin('text', TType.STRING, 3)
5986
      oprot.writeString(self.text)
5987
      oprot.writeFieldEnd()
5988
    oprot.writeFieldStop()
5989
    oprot.writeStructEnd()
5990
 
5991
  def validate(self):
5992
    return
5993
 
5994
 
5995
  def __repr__(self):
5996
    L = ['%s=%r' % (key, value)
5997
      for key, value in self.__dict__.iteritems()]
5998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5999
 
6000
  def __eq__(self, other):
6001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6002
 
6003
  def __ne__(self, other):
6004
    return not (self == other)
6005
 
6006
class updateQuickLink_result:
6007
  """
6008
  Attributes:
6009
   - hse
6010
  """
6011
 
6012
  thrift_spec = (
6013
    None, # 0
6014
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
6015
  )
6016
 
6017
  def __init__(self, hse=None,):
6018
    self.hse = hse
6019
 
6020
  def read(self, iprot):
6021
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6022
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6023
      return
6024
    iprot.readStructBegin()
6025
    while True:
6026
      (fname, ftype, fid) = iprot.readFieldBegin()
6027
      if ftype == TType.STOP:
6028
        break
6029
      if fid == 1:
6030
        if ftype == TType.STRUCT:
6031
          self.hse = HelperServiceException()
6032
          self.hse.read(iprot)
6033
        else:
6034
          iprot.skip(ftype)
6035
      else:
6036
        iprot.skip(ftype)
6037
      iprot.readFieldEnd()
6038
    iprot.readStructEnd()
6039
 
6040
  def write(self, oprot):
6041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6043
      return
6044
    oprot.writeStructBegin('updateQuickLink_result')
6045
    if self.hse is not None:
6046
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
6047
      self.hse.write(oprot)
6048
      oprot.writeFieldEnd()
6049
    oprot.writeFieldStop()
6050
    oprot.writeStructEnd()
6051
 
6052
  def validate(self):
6053
    return
6054
 
6055
 
6056
  def __repr__(self):
6057
    L = ['%s=%r' % (key, value)
6058
      for key, value in self.__dict__.iteritems()]
6059
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6060
 
6061
  def __eq__(self, other):
6062
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6063
 
6064
  def __ne__(self, other):
6065
    return not (self == other)
5055 varun.gupt 6066
 
6067
class getEmailsForNotificationsSent_args:
6068
  """
6069
  Attributes:
6070
   - startDatetime
6071
   - endDatetime
6072
  """
6073
 
6074
  thrift_spec = (
6075
    None, # 0
6076
    (1, TType.I64, 'startDatetime', None, None, ), # 1
6077
    (2, TType.I64, 'endDatetime', None, None, ), # 2
6078
  )
6079
 
6080
  def __init__(self, startDatetime=None, endDatetime=None,):
6081
    self.startDatetime = startDatetime
6082
    self.endDatetime = endDatetime
6083
 
6084
  def read(self, iprot):
6085
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6086
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6087
      return
6088
    iprot.readStructBegin()
6089
    while True:
6090
      (fname, ftype, fid) = iprot.readFieldBegin()
6091
      if ftype == TType.STOP:
6092
        break
6093
      if fid == 1:
6094
        if ftype == TType.I64:
6095
          self.startDatetime = iprot.readI64();
6096
        else:
6097
          iprot.skip(ftype)
6098
      elif fid == 2:
6099
        if ftype == TType.I64:
6100
          self.endDatetime = iprot.readI64();
6101
        else:
6102
          iprot.skip(ftype)
6103
      else:
6104
        iprot.skip(ftype)
6105
      iprot.readFieldEnd()
6106
    iprot.readStructEnd()
6107
 
6108
  def write(self, oprot):
6109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6111
      return
6112
    oprot.writeStructBegin('getEmailsForNotificationsSent_args')
6113
    if self.startDatetime is not None:
6114
      oprot.writeFieldBegin('startDatetime', TType.I64, 1)
6115
      oprot.writeI64(self.startDatetime)
6116
      oprot.writeFieldEnd()
6117
    if self.endDatetime is not None:
6118
      oprot.writeFieldBegin('endDatetime', TType.I64, 2)
6119
      oprot.writeI64(self.endDatetime)
6120
      oprot.writeFieldEnd()
6121
    oprot.writeFieldStop()
6122
    oprot.writeStructEnd()
6123
 
6124
  def validate(self):
6125
    return
6126
 
6127
 
6128
  def __repr__(self):
6129
    L = ['%s=%r' % (key, value)
6130
      for key, value in self.__dict__.iteritems()]
6131
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6132
 
6133
  def __eq__(self, other):
6134
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6135
 
6136
  def __ne__(self, other):
6137
    return not (self == other)
6138
 
6139
class getEmailsForNotificationsSent_result:
6140
  """
6141
  Attributes:
6142
   - success
6143
   - hse
6144
  """
6145
 
6146
  thrift_spec = (
6147
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
6148
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
6149
  )
6150
 
6151
  def __init__(self, success=None, hse=None,):
6152
    self.success = success
6153
    self.hse = hse
6154
 
6155
  def read(self, iprot):
6156
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6157
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6158
      return
6159
    iprot.readStructBegin()
6160
    while True:
6161
      (fname, ftype, fid) = iprot.readFieldBegin()
6162
      if ftype == TType.STOP:
6163
        break
6164
      if fid == 0:
6165
        if ftype == TType.LIST:
6166
          self.success = []
5864 rajveer 6167
          (_etype117, _size114) = iprot.readListBegin()
6168
          for _i118 in xrange(_size114):
6169
            _elem119 = iprot.readString();
6170
            self.success.append(_elem119)
5055 varun.gupt 6171
          iprot.readListEnd()
6172
        else:
6173
          iprot.skip(ftype)
6174
      elif fid == 1:
6175
        if ftype == TType.STRUCT:
6176
          self.hse = HelperServiceException()
6177
          self.hse.read(iprot)
6178
        else:
6179
          iprot.skip(ftype)
6180
      else:
6181
        iprot.skip(ftype)
6182
      iprot.readFieldEnd()
6183
    iprot.readStructEnd()
6184
 
6185
  def write(self, oprot):
6186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6188
      return
6189
    oprot.writeStructBegin('getEmailsForNotificationsSent_result')
6190
    if self.success is not None:
6191
      oprot.writeFieldBegin('success', TType.LIST, 0)
6192
      oprot.writeListBegin(TType.STRING, len(self.success))
5864 rajveer 6193
      for iter120 in self.success:
6194
        oprot.writeString(iter120)
5055 varun.gupt 6195
      oprot.writeListEnd()
6196
      oprot.writeFieldEnd()
6197
    if self.hse is not None:
6198
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
6199
      self.hse.write(oprot)
6200
      oprot.writeFieldEnd()
6201
    oprot.writeFieldStop()
6202
    oprot.writeStructEnd()
6203
 
6204
  def validate(self):
6205
    return
6206
 
6207
 
6208
  def __repr__(self):
6209
    L = ['%s=%r' % (key, value)
6210
      for key, value in self.__dict__.iteritems()]
6211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6212
 
6213
  def __eq__(self, other):
6214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6215
 
6216
  def __ne__(self, other):
6217
    return not (self == other)
6322 amar.kumar 6218
 
6219
class getOrderConfirmationMail_args:
6220
  """
6221
  Attributes:
6222
   - orderId
6223
  """
6224
 
6225
  thrift_spec = (
6226
    None, # 0
6227
    (1, TType.I64, 'orderId', None, None, ), # 1
6228
  )
6229
 
6230
  def __init__(self, orderId=None,):
6231
    self.orderId = orderId
6232
 
6233
  def read(self, iprot):
6234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6236
      return
6237
    iprot.readStructBegin()
6238
    while True:
6239
      (fname, ftype, fid) = iprot.readFieldBegin()
6240
      if ftype == TType.STOP:
6241
        break
6242
      if fid == 1:
6243
        if ftype == TType.I64:
6244
          self.orderId = iprot.readI64();
6245
        else:
6246
          iprot.skip(ftype)
6247
      else:
6248
        iprot.skip(ftype)
6249
      iprot.readFieldEnd()
6250
    iprot.readStructEnd()
6251
 
6252
  def write(self, oprot):
6253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6255
      return
6256
    oprot.writeStructBegin('getOrderConfirmationMail_args')
6257
    if self.orderId is not None:
6258
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6259
      oprot.writeI64(self.orderId)
6260
      oprot.writeFieldEnd()
6261
    oprot.writeFieldStop()
6262
    oprot.writeStructEnd()
6263
 
6264
  def validate(self):
6265
    return
6266
 
6267
 
6268
  def __repr__(self):
6269
    L = ['%s=%r' % (key, value)
6270
      for key, value in self.__dict__.iteritems()]
6271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6272
 
6273
  def __eq__(self, other):
6274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6275
 
6276
  def __ne__(self, other):
6277
    return not (self == other)
6278
 
6279
class getOrderConfirmationMail_result:
6280
  """
6281
  Attributes:
6282
   - success
6283
  """
6284
 
6285
  thrift_spec = (
6286
    (0, TType.STRING, 'success', None, None, ), # 0
6287
  )
6288
 
6289
  def __init__(self, success=None,):
6290
    self.success = success
6291
 
6292
  def read(self, iprot):
6293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6295
      return
6296
    iprot.readStructBegin()
6297
    while True:
6298
      (fname, ftype, fid) = iprot.readFieldBegin()
6299
      if ftype == TType.STOP:
6300
        break
6301
      if fid == 0:
6302
        if ftype == TType.STRING:
6303
          self.success = iprot.readString();
6304
        else:
6305
          iprot.skip(ftype)
6306
      else:
6307
        iprot.skip(ftype)
6308
      iprot.readFieldEnd()
6309
    iprot.readStructEnd()
6310
 
6311
  def write(self, oprot):
6312
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6313
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6314
      return
6315
    oprot.writeStructBegin('getOrderConfirmationMail_result')
6316
    if self.success is not None:
6317
      oprot.writeFieldBegin('success', TType.STRING, 0)
6318
      oprot.writeString(self.success)
6319
      oprot.writeFieldEnd()
6320
    oprot.writeFieldStop()
6321
    oprot.writeStructEnd()
6322
 
6323
  def validate(self):
6324
    return
6325
 
6326
 
6327
  def __repr__(self):
6328
    L = ['%s=%r' % (key, value)
6329
      for key, value in self.__dict__.iteritems()]
6330
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6331
 
6332
  def __eq__(self, other):
6333
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6334
 
6335
  def __ne__(self, other):
6336
    return not (self == other)
7221 kshitij.so 6337
 
6338
class getOrderDeliveryMail_args:
6339
  """
6340
  Attributes:
6341
   - orderId
6342
  """
6343
 
6344
  thrift_spec = (
6345
    None, # 0
6346
    (1, TType.I64, 'orderId', None, None, ), # 1
6347
  )
6348
 
6349
  def __init__(self, orderId=None,):
6350
    self.orderId = orderId
6351
 
6352
  def read(self, iprot):
6353
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6354
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6355
      return
6356
    iprot.readStructBegin()
6357
    while True:
6358
      (fname, ftype, fid) = iprot.readFieldBegin()
6359
      if ftype == TType.STOP:
6360
        break
6361
      if fid == 1:
6362
        if ftype == TType.I64:
6363
          self.orderId = iprot.readI64();
6364
        else:
6365
          iprot.skip(ftype)
6366
      else:
6367
        iprot.skip(ftype)
6368
      iprot.readFieldEnd()
6369
    iprot.readStructEnd()
6370
 
6371
  def write(self, oprot):
6372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6374
      return
6375
    oprot.writeStructBegin('getOrderDeliveryMail_args')
6376
    if self.orderId is not None:
6377
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6378
      oprot.writeI64(self.orderId)
6379
      oprot.writeFieldEnd()
6380
    oprot.writeFieldStop()
6381
    oprot.writeStructEnd()
6382
 
6383
  def validate(self):
6384
    return
6385
 
6386
 
6387
  def __repr__(self):
6388
    L = ['%s=%r' % (key, value)
6389
      for key, value in self.__dict__.iteritems()]
6390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6391
 
6392
  def __eq__(self, other):
6393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6394
 
6395
  def __ne__(self, other):
6396
    return not (self == other)
6397
 
6398
class getOrderDeliveryMail_result:
6399
  """
6400
  Attributes:
6401
   - success
6402
  """
6403
 
6404
  thrift_spec = (
6405
    (0, TType.STRING, 'success', None, None, ), # 0
6406
  )
6407
 
6408
  def __init__(self, success=None,):
6409
    self.success = success
6410
 
6411
  def read(self, iprot):
6412
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6413
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6414
      return
6415
    iprot.readStructBegin()
6416
    while True:
6417
      (fname, ftype, fid) = iprot.readFieldBegin()
6418
      if ftype == TType.STOP:
6419
        break
6420
      if fid == 0:
6421
        if ftype == TType.STRING:
6422
          self.success = iprot.readString();
6423
        else:
6424
          iprot.skip(ftype)
6425
      else:
6426
        iprot.skip(ftype)
6427
      iprot.readFieldEnd()
6428
    iprot.readStructEnd()
6429
 
6430
  def write(self, oprot):
6431
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6432
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6433
      return
6434
    oprot.writeStructBegin('getOrderDeliveryMail_result')
6435
    if self.success is not None:
6436
      oprot.writeFieldBegin('success', TType.STRING, 0)
6437
      oprot.writeString(self.success)
6438
      oprot.writeFieldEnd()
6439
    oprot.writeFieldStop()
6440
    oprot.writeStructEnd()
6441
 
6442
  def validate(self):
6443
    return
6444
 
6445
 
6446
  def __repr__(self):
6447
    L = ['%s=%r' % (key, value)
6448
      for key, value in self.__dict__.iteritems()]
6449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6450
 
6451
  def __eq__(self, other):
6452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6453
 
6454
  def __ne__(self, other):
6455
    return not (self == other)
7410 amar.kumar 6456
 
6457
class getWarehouseIdsForAgent_args:
6458
  """
6459
  Attributes:
6460
   - agentEmailId
6461
  """
6462
 
6463
  thrift_spec = (
6464
    None, # 0
6465
    (1, TType.STRING, 'agentEmailId', None, None, ), # 1
6466
  )
6467
 
6468
  def __init__(self, agentEmailId=None,):
6469
    self.agentEmailId = agentEmailId
6470
 
6471
  def read(self, iprot):
6472
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6473
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6474
      return
6475
    iprot.readStructBegin()
6476
    while True:
6477
      (fname, ftype, fid) = iprot.readFieldBegin()
6478
      if ftype == TType.STOP:
6479
        break
6480
      if fid == 1:
6481
        if ftype == TType.STRING:
6482
          self.agentEmailId = iprot.readString();
6483
        else:
6484
          iprot.skip(ftype)
6485
      else:
6486
        iprot.skip(ftype)
6487
      iprot.readFieldEnd()
6488
    iprot.readStructEnd()
6489
 
6490
  def write(self, oprot):
6491
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6492
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6493
      return
6494
    oprot.writeStructBegin('getWarehouseIdsForAgent_args')
6495
    if self.agentEmailId is not None:
6496
      oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
6497
      oprot.writeString(self.agentEmailId)
6498
      oprot.writeFieldEnd()
6499
    oprot.writeFieldStop()
6500
    oprot.writeStructEnd()
6501
 
6502
  def validate(self):
6503
    return
6504
 
6505
 
6506
  def __repr__(self):
6507
    L = ['%s=%r' % (key, value)
6508
      for key, value in self.__dict__.iteritems()]
6509
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6510
 
6511
  def __eq__(self, other):
6512
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6513
 
6514
  def __ne__(self, other):
6515
    return not (self == other)
6516
 
6517
class getWarehouseIdsForAgent_result:
6518
  """
6519
  Attributes:
6520
   - success
6521
  """
6522
 
6523
  thrift_spec = (
6524
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6525
  )
6526
 
6527
  def __init__(self, success=None,):
6528
    self.success = success
6529
 
6530
  def read(self, iprot):
6531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6533
      return
6534
    iprot.readStructBegin()
6535
    while True:
6536
      (fname, ftype, fid) = iprot.readFieldBegin()
6537
      if ftype == TType.STOP:
6538
        break
6539
      if fid == 0:
6540
        if ftype == TType.LIST:
6541
          self.success = []
6542
          (_etype124, _size121) = iprot.readListBegin()
6543
          for _i125 in xrange(_size121):
6544
            _elem126 = iprot.readI64();
6545
            self.success.append(_elem126)
6546
          iprot.readListEnd()
6547
        else:
6548
          iprot.skip(ftype)
6549
      else:
6550
        iprot.skip(ftype)
6551
      iprot.readFieldEnd()
6552
    iprot.readStructEnd()
6553
 
6554
  def write(self, oprot):
6555
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6556
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6557
      return
6558
    oprot.writeStructBegin('getWarehouseIdsForAgent_result')
6559
    if self.success is not None:
6560
      oprot.writeFieldBegin('success', TType.LIST, 0)
6561
      oprot.writeListBegin(TType.I64, len(self.success))
6562
      for iter127 in self.success:
6563
        oprot.writeI64(iter127)
6564
      oprot.writeListEnd()
6565
      oprot.writeFieldEnd()
6566
    oprot.writeFieldStop()
6567
    oprot.writeStructEnd()
6568
 
6569
  def validate(self):
6570
    return
6571
 
6572
 
6573
  def __repr__(self):
6574
    L = ['%s=%r' % (key, value)
6575
      for key, value in self.__dict__.iteritems()]
6576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6577
 
6578
  def __eq__(self, other):
6579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6580
 
6581
  def __ne__(self, other):
6582
    return not (self == other)
12691 manish.sha 6583
 
6584
class saveUserSmsForSending_args:
6585
  """
6586
  Attributes:
6587
   - userId
6588
   - mobileNo
6589
   - text
6590
   - type
6591
  """
6592
 
6593
  thrift_spec = (
6594
    None, # 0
6595
    (1, TType.I64, 'userId', None, None, ), # 1
6596
    (2, TType.STRING, 'mobileNo', None, None, ), # 2
6597
    (3, TType.STRING, 'text', None, None, ), # 3
6598
    (4, TType.I32, 'type', None, None, ), # 4
6599
  )
6600
 
6601
  def __init__(self, userId=None, mobileNo=None, text=None, type=None,):
6602
    self.userId = userId
6603
    self.mobileNo = mobileNo
6604
    self.text = text
6605
    self.type = type
6606
 
6607
  def read(self, iprot):
6608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6610
      return
6611
    iprot.readStructBegin()
6612
    while True:
6613
      (fname, ftype, fid) = iprot.readFieldBegin()
6614
      if ftype == TType.STOP:
6615
        break
6616
      if fid == 1:
6617
        if ftype == TType.I64:
6618
          self.userId = iprot.readI64();
6619
        else:
6620
          iprot.skip(ftype)
6621
      elif fid == 2:
6622
        if ftype == TType.STRING:
6623
          self.mobileNo = iprot.readString();
6624
        else:
6625
          iprot.skip(ftype)
6626
      elif fid == 3:
6627
        if ftype == TType.STRING:
6628
          self.text = iprot.readString();
6629
        else:
6630
          iprot.skip(ftype)
6631
      elif fid == 4:
6632
        if ftype == TType.I32:
6633
          self.type = iprot.readI32();
6634
        else:
6635
          iprot.skip(ftype)
6636
      else:
6637
        iprot.skip(ftype)
6638
      iprot.readFieldEnd()
6639
    iprot.readStructEnd()
6640
 
6641
  def write(self, oprot):
6642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6644
      return
6645
    oprot.writeStructBegin('saveUserSmsForSending_args')
6646
    if self.userId is not None:
6647
      oprot.writeFieldBegin('userId', TType.I64, 1)
6648
      oprot.writeI64(self.userId)
6649
      oprot.writeFieldEnd()
6650
    if self.mobileNo is not None:
6651
      oprot.writeFieldBegin('mobileNo', TType.STRING, 2)
6652
      oprot.writeString(self.mobileNo)
6653
      oprot.writeFieldEnd()
6654
    if self.text is not None:
6655
      oprot.writeFieldBegin('text', TType.STRING, 3)
6656
      oprot.writeString(self.text)
6657
      oprot.writeFieldEnd()
6658
    if self.type is not None:
6659
      oprot.writeFieldBegin('type', TType.I32, 4)
6660
      oprot.writeI32(self.type)
6661
      oprot.writeFieldEnd()
6662
    oprot.writeFieldStop()
6663
    oprot.writeStructEnd()
6664
 
6665
  def validate(self):
6666
    return
6667
 
6668
 
6669
  def __repr__(self):
6670
    L = ['%s=%r' % (key, value)
6671
      for key, value in self.__dict__.iteritems()]
6672
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6673
 
6674
  def __eq__(self, other):
6675
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6676
 
6677
  def __ne__(self, other):
6678
    return not (self == other)
6679
 
6680
class saveUserSmsForSending_result:
6681
  """
6682
  Attributes:
6683
   - success
6684
   - se
6685
  """
6686
 
6687
  thrift_spec = (
6688
    (0, TType.I64, 'success', None, None, ), # 0
6689
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
6690
  )
6691
 
6692
  def __init__(self, success=None, se=None,):
6693
    self.success = success
6694
    self.se = se
6695
 
6696
  def read(self, iprot):
6697
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6698
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6699
      return
6700
    iprot.readStructBegin()
6701
    while True:
6702
      (fname, ftype, fid) = iprot.readFieldBegin()
6703
      if ftype == TType.STOP:
6704
        break
6705
      if fid == 0:
6706
        if ftype == TType.I64:
6707
          self.success = iprot.readI64();
6708
        else:
6709
          iprot.skip(ftype)
6710
      elif fid == 1:
6711
        if ftype == TType.STRUCT:
6712
          self.se = HelperServiceException()
6713
          self.se.read(iprot)
6714
        else:
6715
          iprot.skip(ftype)
6716
      else:
6717
        iprot.skip(ftype)
6718
      iprot.readFieldEnd()
6719
    iprot.readStructEnd()
6720
 
6721
  def write(self, oprot):
6722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6724
      return
6725
    oprot.writeStructBegin('saveUserSmsForSending_result')
6726
    if self.success is not None:
6727
      oprot.writeFieldBegin('success', TType.I64, 0)
6728
      oprot.writeI64(self.success)
6729
      oprot.writeFieldEnd()
6730
    if self.se is not None:
6731
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
6732
      self.se.write(oprot)
6733
      oprot.writeFieldEnd()
6734
    oprot.writeFieldStop()
6735
    oprot.writeStructEnd()
6736
 
6737
  def validate(self):
6738
    return
6739
 
6740
 
6741
  def __repr__(self):
6742
    L = ['%s=%r' % (key, value)
6743
      for key, value in self.__dict__.iteritems()]
6744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6745
 
6746
  def __eq__(self, other):
6747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6748
 
6749
  def __ne__(self, other):
6750
    return not (self == other)
6751
 
6752
class getSmsToBeSent_args:
6753
 
6754
  thrift_spec = (
6755
  )
6756
 
6757
  def read(self, iprot):
6758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6760
      return
6761
    iprot.readStructBegin()
6762
    while True:
6763
      (fname, ftype, fid) = iprot.readFieldBegin()
6764
      if ftype == TType.STOP:
6765
        break
6766
      else:
6767
        iprot.skip(ftype)
6768
      iprot.readFieldEnd()
6769
    iprot.readStructEnd()
6770
 
6771
  def write(self, oprot):
6772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6774
      return
6775
    oprot.writeStructBegin('getSmsToBeSent_args')
6776
    oprot.writeFieldStop()
6777
    oprot.writeStructEnd()
6778
 
6779
  def validate(self):
6780
    return
6781
 
6782
 
6783
  def __repr__(self):
6784
    L = ['%s=%r' % (key, value)
6785
      for key, value in self.__dict__.iteritems()]
6786
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6787
 
6788
  def __eq__(self, other):
6789
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6790
 
6791
  def __ne__(self, other):
6792
    return not (self == other)
6793
 
6794
class getSmsToBeSent_result:
6795
  """
6796
  Attributes:
6797
   - success
6798
   - se
6799
  """
6800
 
6801
  thrift_spec = (
6802
    (0, TType.LIST, 'success', (TType.STRUCT,(UserSms, UserSms.thrift_spec)), None, ), # 0
6803
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
6804
  )
6805
 
6806
  def __init__(self, success=None, se=None,):
6807
    self.success = success
6808
    self.se = se
6809
 
6810
  def read(self, iprot):
6811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6813
      return
6814
    iprot.readStructBegin()
6815
    while True:
6816
      (fname, ftype, fid) = iprot.readFieldBegin()
6817
      if ftype == TType.STOP:
6818
        break
6819
      if fid == 0:
6820
        if ftype == TType.LIST:
6821
          self.success = []
6822
          (_etype131, _size128) = iprot.readListBegin()
6823
          for _i132 in xrange(_size128):
6824
            _elem133 = UserSms()
6825
            _elem133.read(iprot)
6826
            self.success.append(_elem133)
6827
          iprot.readListEnd()
6828
        else:
6829
          iprot.skip(ftype)
6830
      elif fid == 1:
6831
        if ftype == TType.STRUCT:
6832
          self.se = HelperServiceException()
6833
          self.se.read(iprot)
6834
        else:
6835
          iprot.skip(ftype)
6836
      else:
6837
        iprot.skip(ftype)
6838
      iprot.readFieldEnd()
6839
    iprot.readStructEnd()
6840
 
6841
  def write(self, oprot):
6842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6844
      return
6845
    oprot.writeStructBegin('getSmsToBeSent_result')
6846
    if self.success is not None:
6847
      oprot.writeFieldBegin('success', TType.LIST, 0)
6848
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6849
      for iter134 in self.success:
6850
        iter134.write(oprot)
6851
      oprot.writeListEnd()
6852
      oprot.writeFieldEnd()
6853
    if self.se is not None:
6854
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
6855
      self.se.write(oprot)
6856
      oprot.writeFieldEnd()
6857
    oprot.writeFieldStop()
6858
    oprot.writeStructEnd()
6859
 
6860
  def validate(self):
6861
    return
6862
 
6863
 
6864
  def __repr__(self):
6865
    L = ['%s=%r' % (key, value)
6866
      for key, value in self.__dict__.iteritems()]
6867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6868
 
6869
  def __eq__(self, other):
6870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6871
 
6872
  def __ne__(self, other):
6873
    return not (self == other)
6874
 
6875
class addUserSmsInfo_args:
6876
  """
6877
  Attributes:
6878
   - userSmsInfo
6879
  """
6880
 
6881
  thrift_spec = (
6882
    None, # 0
6883
    (1, TType.STRUCT, 'userSmsInfo', (UserSmsInfo, UserSmsInfo.thrift_spec), None, ), # 1
6884
  )
6885
 
6886
  def __init__(self, userSmsInfo=None,):
6887
    self.userSmsInfo = userSmsInfo
6888
 
6889
  def read(self, iprot):
6890
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6891
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6892
      return
6893
    iprot.readStructBegin()
6894
    while True:
6895
      (fname, ftype, fid) = iprot.readFieldBegin()
6896
      if ftype == TType.STOP:
6897
        break
6898
      if fid == 1:
6899
        if ftype == TType.STRUCT:
6900
          self.userSmsInfo = UserSmsInfo()
6901
          self.userSmsInfo.read(iprot)
6902
        else:
6903
          iprot.skip(ftype)
6904
      else:
6905
        iprot.skip(ftype)
6906
      iprot.readFieldEnd()
6907
    iprot.readStructEnd()
6908
 
6909
  def write(self, oprot):
6910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6912
      return
6913
    oprot.writeStructBegin('addUserSmsInfo_args')
6914
    if self.userSmsInfo is not None:
6915
      oprot.writeFieldBegin('userSmsInfo', TType.STRUCT, 1)
6916
      self.userSmsInfo.write(oprot)
6917
      oprot.writeFieldEnd()
6918
    oprot.writeFieldStop()
6919
    oprot.writeStructEnd()
6920
 
6921
  def validate(self):
6922
    return
6923
 
6924
 
6925
  def __repr__(self):
6926
    L = ['%s=%r' % (key, value)
6927
      for key, value in self.__dict__.iteritems()]
6928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6929
 
6930
  def __eq__(self, other):
6931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6932
 
6933
  def __ne__(self, other):
6934
    return not (self == other)
6935
 
6936
class addUserSmsInfo_result:
6937
  """
6938
  Attributes:
6939
   - se
6940
  """
6941
 
6942
  thrift_spec = (
6943
    None, # 0
6944
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
6945
  )
6946
 
6947
  def __init__(self, se=None,):
6948
    self.se = se
6949
 
6950
  def read(self, iprot):
6951
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6952
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6953
      return
6954
    iprot.readStructBegin()
6955
    while True:
6956
      (fname, ftype, fid) = iprot.readFieldBegin()
6957
      if ftype == TType.STOP:
6958
        break
6959
      if fid == 1:
6960
        if ftype == TType.STRUCT:
6961
          self.se = HelperServiceException()
6962
          self.se.read(iprot)
6963
        else:
6964
          iprot.skip(ftype)
6965
      else:
6966
        iprot.skip(ftype)
6967
      iprot.readFieldEnd()
6968
    iprot.readStructEnd()
6969
 
6970
  def write(self, oprot):
6971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6973
      return
6974
    oprot.writeStructBegin('addUserSmsInfo_result')
6975
    if self.se is not None:
6976
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
6977
      self.se.write(oprot)
6978
      oprot.writeFieldEnd()
6979
    oprot.writeFieldStop()
6980
    oprot.writeStructEnd()
6981
 
6982
  def validate(self):
6983
    return
6984
 
6985
 
6986
  def __repr__(self):
6987
    L = ['%s=%r' % (key, value)
6988
      for key, value in self.__dict__.iteritems()]
6989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6990
 
6991
  def __eq__(self, other):
6992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6993
 
6994
  def __ne__(self, other):
6995
    return not (self == other)
6996
 
6997
class updateUserSmsInfo_args:
6998
  """
6999
  Attributes:
7000
   - userSmsInfo
7001
  """
7002
 
7003
  thrift_spec = (
7004
    None, # 0
7005
    (1, TType.STRUCT, 'userSmsInfo', (UserSmsInfo, UserSmsInfo.thrift_spec), None, ), # 1
7006
  )
7007
 
7008
  def __init__(self, userSmsInfo=None,):
7009
    self.userSmsInfo = userSmsInfo
7010
 
7011
  def read(self, iprot):
7012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7014
      return
7015
    iprot.readStructBegin()
7016
    while True:
7017
      (fname, ftype, fid) = iprot.readFieldBegin()
7018
      if ftype == TType.STOP:
7019
        break
7020
      if fid == 1:
7021
        if ftype == TType.STRUCT:
7022
          self.userSmsInfo = UserSmsInfo()
7023
          self.userSmsInfo.read(iprot)
7024
        else:
7025
          iprot.skip(ftype)
7026
      else:
7027
        iprot.skip(ftype)
7028
      iprot.readFieldEnd()
7029
    iprot.readStructEnd()
7030
 
7031
  def write(self, oprot):
7032
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7033
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7034
      return
7035
    oprot.writeStructBegin('updateUserSmsInfo_args')
7036
    if self.userSmsInfo is not None:
7037
      oprot.writeFieldBegin('userSmsInfo', TType.STRUCT, 1)
7038
      self.userSmsInfo.write(oprot)
7039
      oprot.writeFieldEnd()
7040
    oprot.writeFieldStop()
7041
    oprot.writeStructEnd()
7042
 
7043
  def validate(self):
7044
    return
7045
 
7046
 
7047
  def __repr__(self):
7048
    L = ['%s=%r' % (key, value)
7049
      for key, value in self.__dict__.iteritems()]
7050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7051
 
7052
  def __eq__(self, other):
7053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7054
 
7055
  def __ne__(self, other):
7056
    return not (self == other)
7057
 
7058
class updateUserSmsInfo_result:
7059
  """
7060
  Attributes:
7061
   - success
7062
   - se
7063
  """
7064
 
7065
  thrift_spec = (
7066
    (0, TType.BOOL, 'success', None, None, ), # 0
7067
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
7068
  )
7069
 
7070
  def __init__(self, success=None, se=None,):
7071
    self.success = success
7072
    self.se = se
7073
 
7074
  def read(self, iprot):
7075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7077
      return
7078
    iprot.readStructBegin()
7079
    while True:
7080
      (fname, ftype, fid) = iprot.readFieldBegin()
7081
      if ftype == TType.STOP:
7082
        break
7083
      if fid == 0:
7084
        if ftype == TType.BOOL:
7085
          self.success = iprot.readBool();
7086
        else:
7087
          iprot.skip(ftype)
7088
      elif fid == 1:
7089
        if ftype == TType.STRUCT:
7090
          self.se = HelperServiceException()
7091
          self.se.read(iprot)
7092
        else:
7093
          iprot.skip(ftype)
7094
      else:
7095
        iprot.skip(ftype)
7096
      iprot.readFieldEnd()
7097
    iprot.readStructEnd()
7098
 
7099
  def write(self, oprot):
7100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7102
      return
7103
    oprot.writeStructBegin('updateUserSmsInfo_result')
7104
    if self.success is not None:
7105
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7106
      oprot.writeBool(self.success)
7107
      oprot.writeFieldEnd()
7108
    if self.se is not None:
7109
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
7110
      self.se.write(oprot)
7111
      oprot.writeFieldEnd()
7112
    oprot.writeFieldStop()
7113
    oprot.writeStructEnd()
7114
 
7115
  def validate(self):
7116
    return
7117
 
7118
 
7119
  def __repr__(self):
7120
    L = ['%s=%r' % (key, value)
7121
      for key, value in self.__dict__.iteritems()]
7122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7123
 
7124
  def __eq__(self, other):
7125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7126
 
7127
  def __ne__(self, other):
7128
    return not (self == other)
7129
 
7130
class getUserSmsInfo_args:
7131
  """
7132
  Attributes:
7133
   - userId
7134
  """
7135
 
7136
  thrift_spec = (
7137
    None, # 0
7138
    (1, TType.I64, 'userId', None, None, ), # 1
7139
  )
7140
 
7141
  def __init__(self, userId=None,):
7142
    self.userId = userId
7143
 
7144
  def read(self, iprot):
7145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7147
      return
7148
    iprot.readStructBegin()
7149
    while True:
7150
      (fname, ftype, fid) = iprot.readFieldBegin()
7151
      if ftype == TType.STOP:
7152
        break
7153
      if fid == 1:
7154
        if ftype == TType.I64:
7155
          self.userId = iprot.readI64();
7156
        else:
7157
          iprot.skip(ftype)
7158
      else:
7159
        iprot.skip(ftype)
7160
      iprot.readFieldEnd()
7161
    iprot.readStructEnd()
7162
 
7163
  def write(self, oprot):
7164
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7165
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7166
      return
7167
    oprot.writeStructBegin('getUserSmsInfo_args')
7168
    if self.userId is not None:
7169
      oprot.writeFieldBegin('userId', TType.I64, 1)
7170
      oprot.writeI64(self.userId)
7171
      oprot.writeFieldEnd()
7172
    oprot.writeFieldStop()
7173
    oprot.writeStructEnd()
7174
 
7175
  def validate(self):
7176
    return
7177
 
7178
 
7179
  def __repr__(self):
7180
    L = ['%s=%r' % (key, value)
7181
      for key, value in self.__dict__.iteritems()]
7182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7183
 
7184
  def __eq__(self, other):
7185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7186
 
7187
  def __ne__(self, other):
7188
    return not (self == other)
7189
 
7190
class getUserSmsInfo_result:
7191
  """
7192
  Attributes:
7193
   - success
7194
   - se
7195
  """
7196
 
7197
  thrift_spec = (
7198
    (0, TType.STRUCT, 'success', (UserSmsInfo, UserSmsInfo.thrift_spec), None, ), # 0
7199
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
7200
  )
7201
 
7202
  def __init__(self, success=None, se=None,):
7203
    self.success = success
7204
    self.se = se
7205
 
7206
  def read(self, iprot):
7207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7209
      return
7210
    iprot.readStructBegin()
7211
    while True:
7212
      (fname, ftype, fid) = iprot.readFieldBegin()
7213
      if ftype == TType.STOP:
7214
        break
7215
      if fid == 0:
7216
        if ftype == TType.STRUCT:
7217
          self.success = UserSmsInfo()
7218
          self.success.read(iprot)
7219
        else:
7220
          iprot.skip(ftype)
7221
      elif fid == 1:
7222
        if ftype == TType.STRUCT:
7223
          self.se = HelperServiceException()
7224
          self.se.read(iprot)
7225
        else:
7226
          iprot.skip(ftype)
7227
      else:
7228
        iprot.skip(ftype)
7229
      iprot.readFieldEnd()
7230
    iprot.readStructEnd()
7231
 
7232
  def write(self, oprot):
7233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7235
      return
7236
    oprot.writeStructBegin('getUserSmsInfo_result')
7237
    if self.success is not None:
7238
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7239
      self.success.write(oprot)
7240
      oprot.writeFieldEnd()
7241
    if self.se is not None:
7242
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
7243
      self.se.write(oprot)
7244
      oprot.writeFieldEnd()
7245
    oprot.writeFieldStop()
7246
    oprot.writeStructEnd()
7247
 
7248
  def validate(self):
7249
    return
7250
 
7251
 
7252
  def __repr__(self):
7253
    L = ['%s=%r' % (key, value)
7254
      for key, value in self.__dict__.iteritems()]
7255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7256
 
7257
  def __eq__(self, other):
7258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7259
 
7260
  def __ne__(self, other):
7261
    return not (self == other)
7262
 
7263
class getAllUsersSmsInfo_args:
7264
  """
7265
  Attributes:
7266
   - dndStatus
7267
   - smsSubscribed
7268
  """
7269
 
7270
  thrift_spec = (
7271
    None, # 0
7272
    (1, TType.BOOL, 'dndStatus', None, None, ), # 1
7273
    (2, TType.BOOL, 'smsSubscribed', None, None, ), # 2
7274
  )
7275
 
7276
  def __init__(self, dndStatus=None, smsSubscribed=None,):
7277
    self.dndStatus = dndStatus
7278
    self.smsSubscribed = smsSubscribed
7279
 
7280
  def read(self, iprot):
7281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7283
      return
7284
    iprot.readStructBegin()
7285
    while True:
7286
      (fname, ftype, fid) = iprot.readFieldBegin()
7287
      if ftype == TType.STOP:
7288
        break
7289
      if fid == 1:
7290
        if ftype == TType.BOOL:
7291
          self.dndStatus = iprot.readBool();
7292
        else:
7293
          iprot.skip(ftype)
7294
      elif fid == 2:
7295
        if ftype == TType.BOOL:
7296
          self.smsSubscribed = iprot.readBool();
7297
        else:
7298
          iprot.skip(ftype)
7299
      else:
7300
        iprot.skip(ftype)
7301
      iprot.readFieldEnd()
7302
    iprot.readStructEnd()
7303
 
7304
  def write(self, oprot):
7305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7307
      return
7308
    oprot.writeStructBegin('getAllUsersSmsInfo_args')
7309
    if self.dndStatus is not None:
7310
      oprot.writeFieldBegin('dndStatus', TType.BOOL, 1)
7311
      oprot.writeBool(self.dndStatus)
7312
      oprot.writeFieldEnd()
7313
    if self.smsSubscribed is not None:
7314
      oprot.writeFieldBegin('smsSubscribed', TType.BOOL, 2)
7315
      oprot.writeBool(self.smsSubscribed)
7316
      oprot.writeFieldEnd()
7317
    oprot.writeFieldStop()
7318
    oprot.writeStructEnd()
7319
 
7320
  def validate(self):
7321
    return
7322
 
7323
 
7324
  def __repr__(self):
7325
    L = ['%s=%r' % (key, value)
7326
      for key, value in self.__dict__.iteritems()]
7327
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7328
 
7329
  def __eq__(self, other):
7330
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7331
 
7332
  def __ne__(self, other):
7333
    return not (self == other)
7334
 
7335
class getAllUsersSmsInfo_result:
7336
  """
7337
  Attributes:
7338
   - success
7339
   - se
7340
  """
7341
 
7342
  thrift_spec = (
7343
    (0, TType.LIST, 'success', (TType.STRUCT,(UserSmsInfo, UserSmsInfo.thrift_spec)), None, ), # 0
7344
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
7345
  )
7346
 
7347
  def __init__(self, success=None, se=None,):
7348
    self.success = success
7349
    self.se = se
7350
 
7351
  def read(self, iprot):
7352
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7353
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7354
      return
7355
    iprot.readStructBegin()
7356
    while True:
7357
      (fname, ftype, fid) = iprot.readFieldBegin()
7358
      if ftype == TType.STOP:
7359
        break
7360
      if fid == 0:
7361
        if ftype == TType.LIST:
7362
          self.success = []
7363
          (_etype138, _size135) = iprot.readListBegin()
7364
          for _i139 in xrange(_size135):
7365
            _elem140 = UserSmsInfo()
7366
            _elem140.read(iprot)
7367
            self.success.append(_elem140)
7368
          iprot.readListEnd()
7369
        else:
7370
          iprot.skip(ftype)
7371
      elif fid == 1:
7372
        if ftype == TType.STRUCT:
7373
          self.se = HelperServiceException()
7374
          self.se.read(iprot)
7375
        else:
7376
          iprot.skip(ftype)
7377
      else:
7378
        iprot.skip(ftype)
7379
      iprot.readFieldEnd()
7380
    iprot.readStructEnd()
7381
 
7382
  def write(self, oprot):
7383
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7384
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7385
      return
7386
    oprot.writeStructBegin('getAllUsersSmsInfo_result')
7387
    if self.success is not None:
7388
      oprot.writeFieldBegin('success', TType.LIST, 0)
7389
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7390
      for iter141 in self.success:
7391
        iter141.write(oprot)
7392
      oprot.writeListEnd()
7393
      oprot.writeFieldEnd()
7394
    if self.se is not None:
7395
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
7396
      self.se.write(oprot)
7397
      oprot.writeFieldEnd()
7398
    oprot.writeFieldStop()
7399
    oprot.writeStructEnd()
7400
 
7401
  def validate(self):
7402
    return
7403
 
7404
 
7405
  def __repr__(self):
7406
    L = ['%s=%r' % (key, value)
7407
      for key, value in self.__dict__.iteritems()]
7408
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7409
 
7410
  def __eq__(self, other):
7411
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7412
 
7413
  def __ne__(self, other):
7414
    return not (self == other)
7415
 
7416
class listSmsToGetDeliveryInfo_args:
7417
 
7418
  thrift_spec = (
7419
  )
7420
 
7421
  def read(self, iprot):
7422
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7423
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7424
      return
7425
    iprot.readStructBegin()
7426
    while True:
7427
      (fname, ftype, fid) = iprot.readFieldBegin()
7428
      if ftype == TType.STOP:
7429
        break
7430
      else:
7431
        iprot.skip(ftype)
7432
      iprot.readFieldEnd()
7433
    iprot.readStructEnd()
7434
 
7435
  def write(self, oprot):
7436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7438
      return
7439
    oprot.writeStructBegin('listSmsToGetDeliveryInfo_args')
7440
    oprot.writeFieldStop()
7441
    oprot.writeStructEnd()
7442
 
7443
  def validate(self):
7444
    return
7445
 
7446
 
7447
  def __repr__(self):
7448
    L = ['%s=%r' % (key, value)
7449
      for key, value in self.__dict__.iteritems()]
7450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7451
 
7452
  def __eq__(self, other):
7453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7454
 
7455
  def __ne__(self, other):
7456
    return not (self == other)
7457
 
7458
class listSmsToGetDeliveryInfo_result:
7459
  """
7460
  Attributes:
7461
   - success
7462
   - se
7463
  """
7464
 
7465
  thrift_spec = (
7466
    (0, TType.LIST, 'success', (TType.STRUCT,(UserSms, UserSms.thrift_spec)), None, ), # 0
7467
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
7468
  )
7469
 
7470
  def __init__(self, success=None, se=None,):
7471
    self.success = success
7472
    self.se = se
7473
 
7474
  def read(self, iprot):
7475
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7476
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7477
      return
7478
    iprot.readStructBegin()
7479
    while True:
7480
      (fname, ftype, fid) = iprot.readFieldBegin()
7481
      if ftype == TType.STOP:
7482
        break
7483
      if fid == 0:
7484
        if ftype == TType.LIST:
7485
          self.success = []
7486
          (_etype145, _size142) = iprot.readListBegin()
7487
          for _i146 in xrange(_size142):
7488
            _elem147 = UserSms()
7489
            _elem147.read(iprot)
7490
            self.success.append(_elem147)
7491
          iprot.readListEnd()
7492
        else:
7493
          iprot.skip(ftype)
7494
      elif fid == 1:
7495
        if ftype == TType.STRUCT:
7496
          self.se = HelperServiceException()
7497
          self.se.read(iprot)
7498
        else:
7499
          iprot.skip(ftype)
7500
      else:
7501
        iprot.skip(ftype)
7502
      iprot.readFieldEnd()
7503
    iprot.readStructEnd()
7504
 
7505
  def write(self, oprot):
7506
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7507
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7508
      return
7509
    oprot.writeStructBegin('listSmsToGetDeliveryInfo_result')
7510
    if self.success is not None:
7511
      oprot.writeFieldBegin('success', TType.LIST, 0)
7512
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7513
      for iter148 in self.success:
7514
        iter148.write(oprot)
7515
      oprot.writeListEnd()
7516
      oprot.writeFieldEnd()
7517
    if self.se is not None:
7518
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
7519
      self.se.write(oprot)
7520
      oprot.writeFieldEnd()
7521
    oprot.writeFieldStop()
7522
    oprot.writeStructEnd()
7523
 
7524
  def validate(self):
7525
    return
7526
 
7527
 
7528
  def __repr__(self):
7529
    L = ['%s=%r' % (key, value)
7530
      for key, value in self.__dict__.iteritems()]
7531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7532
 
7533
  def __eq__(self, other):
7534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7535
 
7536
  def __ne__(self, other):
7537
    return not (self == other)
7538
 
7539
class markMessagesAsSentToOperator_args:
7540
  """
7541
  Attributes:
7542
   - userSmsList
7543
  """
7544
 
7545
  thrift_spec = None
7546
  def __init__(self, userSmsList=None,):
7547
    self.userSmsList = userSmsList
7548
 
7549
  def read(self, iprot):
7550
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7551
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7552
      return
7553
    iprot.readStructBegin()
7554
    while True:
7555
      (fname, ftype, fid) = iprot.readFieldBegin()
7556
      if ftype == TType.STOP:
7557
        break
7558
      if fid == -1:
7559
        if ftype == TType.LIST:
7560
          self.userSmsList = []
7561
          (_etype152, _size149) = iprot.readListBegin()
7562
          for _i153 in xrange(_size149):
7563
            _elem154 = UserSms()
7564
            _elem154.read(iprot)
7565
            self.userSmsList.append(_elem154)
7566
          iprot.readListEnd()
7567
        else:
7568
          iprot.skip(ftype)
7569
      else:
7570
        iprot.skip(ftype)
7571
      iprot.readFieldEnd()
7572
    iprot.readStructEnd()
7573
 
7574
  def write(self, oprot):
7575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7577
      return
7578
    oprot.writeStructBegin('markMessagesAsSentToOperator_args')
7579
    if self.userSmsList is not None:
7580
      oprot.writeFieldBegin('userSmsList', TType.LIST, -1)
7581
      oprot.writeListBegin(TType.STRUCT, len(self.userSmsList))
7582
      for iter155 in self.userSmsList:
7583
        iter155.write(oprot)
7584
      oprot.writeListEnd()
7585
      oprot.writeFieldEnd()
7586
    oprot.writeFieldStop()
7587
    oprot.writeStructEnd()
7588
 
7589
  def validate(self):
7590
    return
7591
 
7592
 
7593
  def __repr__(self):
7594
    L = ['%s=%r' % (key, value)
7595
      for key, value in self.__dict__.iteritems()]
7596
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7597
 
7598
  def __eq__(self, other):
7599
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7600
 
7601
  def __ne__(self, other):
7602
    return not (self == other)
7603
 
7604
class markMessagesAsSentToOperator_result:
7605
  """
7606
  Attributes:
7607
   - success
7608
  """
7609
 
7610
  thrift_spec = (
7611
    (0, TType.BOOL, 'success', None, None, ), # 0
7612
  )
7613
 
7614
  def __init__(self, success=None,):
7615
    self.success = success
7616
 
7617
  def read(self, iprot):
7618
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7619
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7620
      return
7621
    iprot.readStructBegin()
7622
    while True:
7623
      (fname, ftype, fid) = iprot.readFieldBegin()
7624
      if ftype == TType.STOP:
7625
        break
7626
      if fid == 0:
7627
        if ftype == TType.BOOL:
7628
          self.success = iprot.readBool();
7629
        else:
7630
          iprot.skip(ftype)
7631
      else:
7632
        iprot.skip(ftype)
7633
      iprot.readFieldEnd()
7634
    iprot.readStructEnd()
7635
 
7636
  def write(self, oprot):
7637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7639
      return
7640
    oprot.writeStructBegin('markMessagesAsSentToOperator_result')
7641
    if self.success is not None:
7642
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7643
      oprot.writeBool(self.success)
7644
      oprot.writeFieldEnd()
7645
    oprot.writeFieldStop()
7646
    oprot.writeStructEnd()
7647
 
7648
  def validate(self):
7649
    return
7650
 
7651
 
7652
  def __repr__(self):
7653
    L = ['%s=%r' % (key, value)
7654
      for key, value in self.__dict__.iteritems()]
7655
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7656
 
7657
  def __eq__(self, other):
7658
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7659
 
7660
  def __ne__(self, other):
7661
    return not (self == other)
7662
 
7663
class markMessagesAsSubmittedToSmsc_args:
7664
  """
7665
  Attributes:
7666
   - userSmsList
7667
  """
7668
 
7669
  thrift_spec = None
7670
  def __init__(self, userSmsList=None,):
7671
    self.userSmsList = userSmsList
7672
 
7673
  def read(self, iprot):
7674
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7675
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7676
      return
7677
    iprot.readStructBegin()
7678
    while True:
7679
      (fname, ftype, fid) = iprot.readFieldBegin()
7680
      if ftype == TType.STOP:
7681
        break
7682
      if fid == -1:
7683
        if ftype == TType.LIST:
7684
          self.userSmsList = []
7685
          (_etype159, _size156) = iprot.readListBegin()
7686
          for _i160 in xrange(_size156):
7687
            _elem161 = UserSms()
7688
            _elem161.read(iprot)
7689
            self.userSmsList.append(_elem161)
7690
          iprot.readListEnd()
7691
        else:
7692
          iprot.skip(ftype)
7693
      else:
7694
        iprot.skip(ftype)
7695
      iprot.readFieldEnd()
7696
    iprot.readStructEnd()
7697
 
7698
  def write(self, oprot):
7699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7701
      return
7702
    oprot.writeStructBegin('markMessagesAsSubmittedToSmsc_args')
7703
    if self.userSmsList is not None:
7704
      oprot.writeFieldBegin('userSmsList', TType.LIST, -1)
7705
      oprot.writeListBegin(TType.STRUCT, len(self.userSmsList))
7706
      for iter162 in self.userSmsList:
7707
        iter162.write(oprot)
7708
      oprot.writeListEnd()
7709
      oprot.writeFieldEnd()
7710
    oprot.writeFieldStop()
7711
    oprot.writeStructEnd()
7712
 
7713
  def validate(self):
7714
    return
7715
 
7716
 
7717
  def __repr__(self):
7718
    L = ['%s=%r' % (key, value)
7719
      for key, value in self.__dict__.iteritems()]
7720
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7721
 
7722
  def __eq__(self, other):
7723
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7724
 
7725
  def __ne__(self, other):
7726
    return not (self == other)
7727
 
7728
class markMessagesAsSubmittedToSmsc_result:
7729
  """
7730
  Attributes:
7731
   - success
7732
  """
7733
 
7734
  thrift_spec = (
7735
    (0, TType.BOOL, 'success', None, None, ), # 0
7736
  )
7737
 
7738
  def __init__(self, success=None,):
7739
    self.success = success
7740
 
7741
  def read(self, iprot):
7742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7744
      return
7745
    iprot.readStructBegin()
7746
    while True:
7747
      (fname, ftype, fid) = iprot.readFieldBegin()
7748
      if ftype == TType.STOP:
7749
        break
7750
      if fid == 0:
7751
        if ftype == TType.BOOL:
7752
          self.success = iprot.readBool();
7753
        else:
7754
          iprot.skip(ftype)
7755
      else:
7756
        iprot.skip(ftype)
7757
      iprot.readFieldEnd()
7758
    iprot.readStructEnd()
7759
 
7760
  def write(self, oprot):
7761
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7762
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7763
      return
7764
    oprot.writeStructBegin('markMessagesAsSubmittedToSmsc_result')
7765
    if self.success is not None:
7766
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7767
      oprot.writeBool(self.success)
7768
      oprot.writeFieldEnd()
7769
    oprot.writeFieldStop()
7770
    oprot.writeStructEnd()
7771
 
7772
  def validate(self):
7773
    return
7774
 
7775
 
7776
  def __repr__(self):
7777
    L = ['%s=%r' % (key, value)
7778
      for key, value in self.__dict__.iteritems()]
7779
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7780
 
7781
  def __eq__(self, other):
7782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7783
 
7784
  def __ne__(self, other):
7785
    return not (self == other)
7786
 
7787
class markMessagesAsSent_args:
7788
  """
7789
  Attributes:
7790
   - userSmsList
7791
  """
7792
 
7793
  thrift_spec = None
7794
  def __init__(self, userSmsList=None,):
7795
    self.userSmsList = userSmsList
7796
 
7797
  def read(self, iprot):
7798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7800
      return
7801
    iprot.readStructBegin()
7802
    while True:
7803
      (fname, ftype, fid) = iprot.readFieldBegin()
7804
      if ftype == TType.STOP:
7805
        break
7806
      if fid == -1:
7807
        if ftype == TType.LIST:
7808
          self.userSmsList = []
7809
          (_etype166, _size163) = iprot.readListBegin()
7810
          for _i167 in xrange(_size163):
7811
            _elem168 = UserSms()
7812
            _elem168.read(iprot)
7813
            self.userSmsList.append(_elem168)
7814
          iprot.readListEnd()
7815
        else:
7816
          iprot.skip(ftype)
7817
      else:
7818
        iprot.skip(ftype)
7819
      iprot.readFieldEnd()
7820
    iprot.readStructEnd()
7821
 
7822
  def write(self, oprot):
7823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7825
      return
7826
    oprot.writeStructBegin('markMessagesAsSent_args')
7827
    if self.userSmsList is not None:
7828
      oprot.writeFieldBegin('userSmsList', TType.LIST, -1)
7829
      oprot.writeListBegin(TType.STRUCT, len(self.userSmsList))
7830
      for iter169 in self.userSmsList:
7831
        iter169.write(oprot)
7832
      oprot.writeListEnd()
7833
      oprot.writeFieldEnd()
7834
    oprot.writeFieldStop()
7835
    oprot.writeStructEnd()
7836
 
7837
  def validate(self):
7838
    return
7839
 
7840
 
7841
  def __repr__(self):
7842
    L = ['%s=%r' % (key, value)
7843
      for key, value in self.__dict__.iteritems()]
7844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7845
 
7846
  def __eq__(self, other):
7847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7848
 
7849
  def __ne__(self, other):
7850
    return not (self == other)
7851
 
7852
class markMessagesAsSent_result:
7853
  """
7854
  Attributes:
7855
   - success
7856
  """
7857
 
7858
  thrift_spec = (
7859
    (0, TType.BOOL, 'success', None, None, ), # 0
7860
  )
7861
 
7862
  def __init__(self, success=None,):
7863
    self.success = success
7864
 
7865
  def read(self, iprot):
7866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7868
      return
7869
    iprot.readStructBegin()
7870
    while True:
7871
      (fname, ftype, fid) = iprot.readFieldBegin()
7872
      if ftype == TType.STOP:
7873
        break
7874
      if fid == 0:
7875
        if ftype == TType.BOOL:
7876
          self.success = iprot.readBool();
7877
        else:
7878
          iprot.skip(ftype)
7879
      else:
7880
        iprot.skip(ftype)
7881
      iprot.readFieldEnd()
7882
    iprot.readStructEnd()
7883
 
7884
  def write(self, oprot):
7885
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7886
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7887
      return
7888
    oprot.writeStructBegin('markMessagesAsSent_result')
7889
    if self.success is not None:
7890
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7891
      oprot.writeBool(self.success)
7892
      oprot.writeFieldEnd()
7893
    oprot.writeFieldStop()
7894
    oprot.writeStructEnd()
7895
 
7896
  def validate(self):
7897
    return
7898
 
7899
 
7900
  def __repr__(self):
7901
    L = ['%s=%r' % (key, value)
7902
      for key, value in self.__dict__.iteritems()]
7903
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7904
 
7905
  def __eq__(self, other):
7906
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7907
 
7908
  def __ne__(self, other):
7909
    return not (self == other)
7910
 
7911
class markMessagesAsRetry_args:
7912
  """
7913
  Attributes:
7914
   - userSmsList
7915
  """
7916
 
7917
  thrift_spec = None
7918
  def __init__(self, userSmsList=None,):
7919
    self.userSmsList = userSmsList
7920
 
7921
  def read(self, iprot):
7922
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7923
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7924
      return
7925
    iprot.readStructBegin()
7926
    while True:
7927
      (fname, ftype, fid) = iprot.readFieldBegin()
7928
      if ftype == TType.STOP:
7929
        break
7930
      if fid == -1:
7931
        if ftype == TType.LIST:
7932
          self.userSmsList = []
7933
          (_etype173, _size170) = iprot.readListBegin()
7934
          for _i174 in xrange(_size170):
7935
            _elem175 = UserSms()
7936
            _elem175.read(iprot)
7937
            self.userSmsList.append(_elem175)
7938
          iprot.readListEnd()
7939
        else:
7940
          iprot.skip(ftype)
7941
      else:
7942
        iprot.skip(ftype)
7943
      iprot.readFieldEnd()
7944
    iprot.readStructEnd()
7945
 
7946
  def write(self, oprot):
7947
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7948
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7949
      return
7950
    oprot.writeStructBegin('markMessagesAsRetry_args')
7951
    if self.userSmsList is not None:
7952
      oprot.writeFieldBegin('userSmsList', TType.LIST, -1)
7953
      oprot.writeListBegin(TType.STRUCT, len(self.userSmsList))
7954
      for iter176 in self.userSmsList:
7955
        iter176.write(oprot)
7956
      oprot.writeListEnd()
7957
      oprot.writeFieldEnd()
7958
    oprot.writeFieldStop()
7959
    oprot.writeStructEnd()
7960
 
7961
  def validate(self):
7962
    return
7963
 
7964
 
7965
  def __repr__(self):
7966
    L = ['%s=%r' % (key, value)
7967
      for key, value in self.__dict__.iteritems()]
7968
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7969
 
7970
  def __eq__(self, other):
7971
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7972
 
7973
  def __ne__(self, other):
7974
    return not (self == other)
7975
 
7976
class markMessagesAsRetry_result:
7977
  """
7978
  Attributes:
7979
   - success
7980
  """
7981
 
7982
  thrift_spec = (
7983
    (0, TType.BOOL, 'success', None, None, ), # 0
7984
  )
7985
 
7986
  def __init__(self, success=None,):
7987
    self.success = success
7988
 
7989
  def read(self, iprot):
7990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7992
      return
7993
    iprot.readStructBegin()
7994
    while True:
7995
      (fname, ftype, fid) = iprot.readFieldBegin()
7996
      if ftype == TType.STOP:
7997
        break
7998
      if fid == 0:
7999
        if ftype == TType.BOOL:
8000
          self.success = iprot.readBool();
8001
        else:
8002
          iprot.skip(ftype)
8003
      else:
8004
        iprot.skip(ftype)
8005
      iprot.readFieldEnd()
8006
    iprot.readStructEnd()
8007
 
8008
  def write(self, oprot):
8009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8011
      return
8012
    oprot.writeStructBegin('markMessagesAsRetry_result')
8013
    if self.success is not None:
8014
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8015
      oprot.writeBool(self.success)
8016
      oprot.writeFieldEnd()
8017
    oprot.writeFieldStop()
8018
    oprot.writeStructEnd()
8019
 
8020
  def validate(self):
8021
    return
8022
 
8023
 
8024
  def __repr__(self):
8025
    L = ['%s=%r' % (key, value)
8026
      for key, value in self.__dict__.iteritems()]
8027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8028
 
8029
  def __eq__(self, other):
8030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8031
 
8032
  def __ne__(self, other):
8033
    return not (self == other)