Subversion Repositories SmartDukaan

Rev

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