Subversion Repositories SmartDukaan

Rev

Rev 12691 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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