Subversion Repositories SmartDukaan

Rev

Rev 3431 | Rev 4691 | 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):
1395 varun.gupt 20
  def saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType):
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
31
    """
32
    pass
33
 
3086 rajveer 34
  def getEmailsToBeSent(self, ):
1422 varun.gupt 35
    """
2783 chandransh 36
    Retreives all the emails pending for dispatch
1422 varun.gupt 37
    """
38
    pass
39
 
40
  def markEmailAsSent(self, emailId):
41
    """
2783 chandransh 42
    Marks email as sent after successful dispatch
3431 rajveer 43
 
1422 varun.gupt 44
    Parameters:
45
     - emailId
46
    """
47
    pass
48
 
349 ashish 49
  def sendMail(self, mail):
50
    """
51
    Parameters:
52
     - mail
53
    """
54
    pass
55
 
56
  def sendText(self, message):
57
    """
58
    Parameters:
59
     - message
60
    """
61
    pass
62
 
63
  def addMessage(self, message):
64
    """
65
    Parameters:
66
     - message
67
    """
68
    pass
69
 
70
  def updateMessage(self, id, message):
71
    """
72
    Parameters:
73
     - id
74
     - message
75
    """
76
    pass
77
 
78
  def getMessage(self, id):
79
    """
80
    Parameters:
81
     - id
82
    """
83
    pass
84
 
85
  def getSubstitutedMessage(self, id, params):
86
    """
87
    Parameters:
88
     - id
89
     - params
90
    """
91
    pass
92
 
494 rajveer 93
  def addUser(self, username, password, warehouseId):
94
    """
95
    Parameters:
96
     - username
97
     - password
98
     - warehouseId
99
    """
100
    pass
349 ashish 101
 
494 rajveer 102
  def deleteUser(self, username):
103
    """
104
    Parameters:
105
     - username
106
    """
107
    pass
108
 
2447 chandransh 109
  def authenticateDashboardUser(self, username, password):
494 rajveer 110
    """
2447 chandransh 111
    Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
112
    The loggedOn timestamp for the dashboard user is updated .
3431 rajveer 113
 
494 rajveer 114
    Parameters:
115
     - username
116
     - password
117
    """
118
    pass
119
 
120
  def updatePassword(self, username, oldPassword, newPassword):
121
    """
2447 chandransh 122
    Update the password of the dashboard user. Currently, there is no place where this method is called.
3431 rajveer 123
 
494 rajveer 124
    Parameters:
125
     - username
126
     - oldPassword
127
     - newPassword
128
    """
129
    pass
130
 
759 chandransh 131
  def authenticateLogisticsUser(self, username, password):
132
    """
133
    Returns the LogisticsUser struct associated with the given username and password if they match.
134
    Throws an exception otherwise.
3431 rajveer 135
 
759 chandransh 136
    Parameters:
137
     - username
138
     - password
139
    """
140
    pass
494 rajveer 141
 
1610 ankur.sing 142
  def authenticateStatisticsUser(self, username, password):
143
    """
144
    Returns the StatisticsUser struct associated with the given username and password if they match.
145
    Throws an exception otherwise.
3431 rajveer 146
 
1610 ankur.sing 147
    Parameters:
148
     - username
149
     - password
150
    """
151
    pass
759 chandransh 152
 
1891 ankur.sing 153
  def authenticateReportUser(self, username, password):
154
    """
155
    Returns the ReportUser struct associated with the given username and password if they match.
156
    Throws an exception otherwise.
3431 rajveer 157
 
1891 ankur.sing 158
    Parameters:
159
     - username
160
     - password
161
    """
162
    pass
1610 ankur.sing 163
 
1891 ankur.sing 164
  def getReports(self, role):
165
    """
166
    Returns list of reports which are configured for the given role.
3431 rajveer 167
 
1891 ankur.sing 168
    Parameters:
169
     - role
170
    """
171
    pass
172
 
2358 ankur.sing 173
  def authenticateCatalogUser(self, username, password, role):
2025 ankur.sing 174
    """
2358 ankur.sing 175
    Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2025 ankur.sing 176
    Throws an exception otherwise.
3431 rajveer 177
 
2025 ankur.sing 178
    Parameters:
179
     - username
180
     - password
2358 ankur.sing 181
     - role
2025 ankur.sing 182
    """
183
    pass
1891 ankur.sing 184
 
4544 varun.gupt 185
  def shareEntities(self, entityIds, email):
186
    """
187
    Saves the list of entity Ids to be shared with an email address
2025 ankur.sing 188
 
4544 varun.gupt 189
    Parameters:
190
     - entityIds
191
     - email
192
    """
193
    pass
194
 
195
 
3376 rajveer 196
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
349 ashish 197
  def __init__(self, iprot, oprot=None):
3376 rajveer 198
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
349 ashish 199
 
1395 varun.gupt 200
  def saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType):
201
    """
3206 mandeep.dh 202
    Save email details, to be sent later; Also returns its identifier.
3431 rajveer 203
 
1395 varun.gupt 204
    Parameters:
205
     - emailTo
206
     - emailFrom
207
     - subject
208
     - body
209
     - source
210
     - emailType
211
    """
212
    self.send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType)
3206 mandeep.dh 213
    return self.recv_saveUserEmailForSending()
1395 varun.gupt 214
 
215
  def send_saveUserEmailForSending(self, emailTo, emailFrom, subject, body, source, emailType):
216
    self._oprot.writeMessageBegin('saveUserEmailForSending', TMessageType.CALL, self._seqid)
217
    args = saveUserEmailForSending_args()
218
    args.emailTo = emailTo
219
    args.emailFrom = emailFrom
220
    args.subject = subject
221
    args.body = body
222
    args.source = source
223
    args.emailType = emailType
224
    args.write(self._oprot)
225
    self._oprot.writeMessageEnd()
226
    self._oprot.trans.flush()
227
 
228
  def recv_saveUserEmailForSending(self, ):
229
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
230
    if mtype == TMessageType.EXCEPTION:
231
      x = TApplicationException()
232
      x.read(self._iprot)
233
      self._iprot.readMessageEnd()
234
      raise x
235
    result = saveUserEmailForSending_result()
236
    result.read(self._iprot)
237
    self._iprot.readMessageEnd()
3431 rajveer 238
    if result.success is not None:
3206 mandeep.dh 239
      return result.success
3431 rajveer 240
    if result.se is not None:
1395 varun.gupt 241
      raise result.se
3206 mandeep.dh 242
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 243
 
3086 rajveer 244
  def getEmailsToBeSent(self, ):
1422 varun.gupt 245
    """
2783 chandransh 246
    Retreives all the emails pending for dispatch
1422 varun.gupt 247
    """
3086 rajveer 248
    self.send_getEmailsToBeSent()
1422 varun.gupt 249
    return self.recv_getEmailsToBeSent()
250
 
3086 rajveer 251
  def send_getEmailsToBeSent(self, ):
1422 varun.gupt 252
    self._oprot.writeMessageBegin('getEmailsToBeSent', TMessageType.CALL, self._seqid)
253
    args = getEmailsToBeSent_args()
254
    args.write(self._oprot)
255
    self._oprot.writeMessageEnd()
256
    self._oprot.trans.flush()
257
 
258
  def recv_getEmailsToBeSent(self, ):
259
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
260
    if mtype == TMessageType.EXCEPTION:
261
      x = TApplicationException()
262
      x.read(self._iprot)
263
      self._iprot.readMessageEnd()
264
      raise x
265
    result = getEmailsToBeSent_result()
266
    result.read(self._iprot)
267
    self._iprot.readMessageEnd()
3431 rajveer 268
    if result.success is not None:
1422 varun.gupt 269
      return result.success
3431 rajveer 270
    if result.se is not None:
1422 varun.gupt 271
      raise result.se
272
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
273
 
274
  def markEmailAsSent(self, emailId):
275
    """
2783 chandransh 276
    Marks email as sent after successful dispatch
3431 rajveer 277
 
1422 varun.gupt 278
    Parameters:
279
     - emailId
280
    """
281
    self.send_markEmailAsSent(emailId)
282
    self.recv_markEmailAsSent()
283
 
284
  def send_markEmailAsSent(self, emailId):
285
    self._oprot.writeMessageBegin('markEmailAsSent', TMessageType.CALL, self._seqid)
286
    args = markEmailAsSent_args()
287
    args.emailId = emailId
288
    args.write(self._oprot)
289
    self._oprot.writeMessageEnd()
290
    self._oprot.trans.flush()
291
 
292
  def recv_markEmailAsSent(self, ):
293
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
294
    if mtype == TMessageType.EXCEPTION:
295
      x = TApplicationException()
296
      x.read(self._iprot)
297
      self._iprot.readMessageEnd()
298
      raise x
299
    result = markEmailAsSent_result()
300
    result.read(self._iprot)
301
    self._iprot.readMessageEnd()
3431 rajveer 302
    if result.se is not None:
1422 varun.gupt 303
      raise result.se
304
    return
305
 
349 ashish 306
  def sendMail(self, mail):
307
    """
308
    Parameters:
309
     - mail
310
    """
311
    self.send_sendMail(mail)
312
    self.recv_sendMail()
313
 
314
  def send_sendMail(self, mail):
315
    self._oprot.writeMessageBegin('sendMail', TMessageType.CALL, self._seqid)
316
    args = sendMail_args()
317
    args.mail = mail
318
    args.write(self._oprot)
319
    self._oprot.writeMessageEnd()
320
    self._oprot.trans.flush()
321
 
322
  def recv_sendMail(self, ):
323
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
324
    if mtype == TMessageType.EXCEPTION:
325
      x = TApplicationException()
326
      x.read(self._iprot)
327
      self._iprot.readMessageEnd()
328
      raise x
329
    result = sendMail_result()
330
    result.read(self._iprot)
331
    self._iprot.readMessageEnd()
3431 rajveer 332
    if result.se is not None:
349 ashish 333
      raise result.se
334
    return
335
 
336
  def sendText(self, message):
337
    """
338
    Parameters:
339
     - message
340
    """
341
    self.send_sendText(message)
342
    self.recv_sendText()
343
 
344
  def send_sendText(self, message):
345
    self._oprot.writeMessageBegin('sendText', TMessageType.CALL, self._seqid)
346
    args = sendText_args()
347
    args.message = message
348
    args.write(self._oprot)
349
    self._oprot.writeMessageEnd()
350
    self._oprot.trans.flush()
351
 
352
  def recv_sendText(self, ):
353
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
354
    if mtype == TMessageType.EXCEPTION:
355
      x = TApplicationException()
356
      x.read(self._iprot)
357
      self._iprot.readMessageEnd()
358
      raise x
359
    result = sendText_result()
360
    result.read(self._iprot)
361
    self._iprot.readMessageEnd()
3431 rajveer 362
    if result.se is not None:
349 ashish 363
      raise result.se
364
    return
365
 
366
  def addMessage(self, message):
367
    """
368
    Parameters:
369
     - message
370
    """
371
    self.send_addMessage(message)
372
    self.recv_addMessage()
373
 
374
  def send_addMessage(self, message):
375
    self._oprot.writeMessageBegin('addMessage', TMessageType.CALL, self._seqid)
376
    args = addMessage_args()
377
    args.message = message
378
    args.write(self._oprot)
379
    self._oprot.writeMessageEnd()
380
    self._oprot.trans.flush()
381
 
382
  def recv_addMessage(self, ):
383
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
384
    if mtype == TMessageType.EXCEPTION:
385
      x = TApplicationException()
386
      x.read(self._iprot)
387
      self._iprot.readMessageEnd()
388
      raise x
389
    result = addMessage_result()
390
    result.read(self._iprot)
391
    self._iprot.readMessageEnd()
3431 rajveer 392
    if result.se is not None:
349 ashish 393
      raise result.se
394
    return
395
 
396
  def updateMessage(self, id, message):
397
    """
398
    Parameters:
399
     - id
400
     - message
401
    """
402
    self.send_updateMessage(id, message)
403
    self.recv_updateMessage()
404
 
405
  def send_updateMessage(self, id, message):
406
    self._oprot.writeMessageBegin('updateMessage', TMessageType.CALL, self._seqid)
407
    args = updateMessage_args()
408
    args.id = id
409
    args.message = message
410
    args.write(self._oprot)
411
    self._oprot.writeMessageEnd()
412
    self._oprot.trans.flush()
413
 
414
  def recv_updateMessage(self, ):
415
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
416
    if mtype == TMessageType.EXCEPTION:
417
      x = TApplicationException()
418
      x.read(self._iprot)
419
      self._iprot.readMessageEnd()
420
      raise x
421
    result = updateMessage_result()
422
    result.read(self._iprot)
423
    self._iprot.readMessageEnd()
3431 rajveer 424
    if result.se is not None:
349 ashish 425
      raise result.se
426
    return
427
 
428
  def getMessage(self, id):
429
    """
430
    Parameters:
431
     - id
432
    """
433
    self.send_getMessage(id)
353 ashish 434
    return self.recv_getMessage()
349 ashish 435
 
436
  def send_getMessage(self, id):
437
    self._oprot.writeMessageBegin('getMessage', TMessageType.CALL, self._seqid)
438
    args = getMessage_args()
439
    args.id = id
440
    args.write(self._oprot)
441
    self._oprot.writeMessageEnd()
442
    self._oprot.trans.flush()
443
 
444
  def recv_getMessage(self, ):
445
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
446
    if mtype == TMessageType.EXCEPTION:
447
      x = TApplicationException()
448
      x.read(self._iprot)
449
      self._iprot.readMessageEnd()
450
      raise x
451
    result = getMessage_result()
452
    result.read(self._iprot)
453
    self._iprot.readMessageEnd()
3431 rajveer 454
    if result.success is not None:
353 ashish 455
      return result.success
3431 rajveer 456
    if result.se is not None:
349 ashish 457
      raise result.se
353 ashish 458
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
349 ashish 459
 
460
  def getSubstitutedMessage(self, id, params):
461
    """
462
    Parameters:
463
     - id
464
     - params
465
    """
466
    self.send_getSubstitutedMessage(id, params)
353 ashish 467
    return self.recv_getSubstitutedMessage()
349 ashish 468
 
469
  def send_getSubstitutedMessage(self, id, params):
470
    self._oprot.writeMessageBegin('getSubstitutedMessage', TMessageType.CALL, self._seqid)
471
    args = getSubstitutedMessage_args()
472
    args.id = id
473
    args.params = params
474
    args.write(self._oprot)
475
    self._oprot.writeMessageEnd()
476
    self._oprot.trans.flush()
477
 
478
  def recv_getSubstitutedMessage(self, ):
479
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
480
    if mtype == TMessageType.EXCEPTION:
481
      x = TApplicationException()
482
      x.read(self._iprot)
483
      self._iprot.readMessageEnd()
484
      raise x
485
    result = getSubstitutedMessage_result()
486
    result.read(self._iprot)
487
    self._iprot.readMessageEnd()
3431 rajveer 488
    if result.success is not None:
353 ashish 489
      return result.success
3431 rajveer 490
    if result.se is not None:
349 ashish 491
      raise result.se
353 ashish 492
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
349 ashish 493
 
494 rajveer 494
  def addUser(self, username, password, warehouseId):
495
    """
496
    Parameters:
497
     - username
498
     - password
499
     - warehouseId
500
    """
501
    self.send_addUser(username, password, warehouseId)
502
    return self.recv_addUser()
349 ashish 503
 
494 rajveer 504
  def send_addUser(self, username, password, warehouseId):
505
    self._oprot.writeMessageBegin('addUser', TMessageType.CALL, self._seqid)
506
    args = addUser_args()
507
    args.username = username
508
    args.password = password
509
    args.warehouseId = warehouseId
510
    args.write(self._oprot)
511
    self._oprot.writeMessageEnd()
512
    self._oprot.trans.flush()
513
 
514
  def recv_addUser(self, ):
515
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
516
    if mtype == TMessageType.EXCEPTION:
517
      x = TApplicationException()
518
      x.read(self._iprot)
519
      self._iprot.readMessageEnd()
520
      raise x
521
    result = addUser_result()
522
    result.read(self._iprot)
523
    self._iprot.readMessageEnd()
3431 rajveer 524
    if result.success is not None:
494 rajveer 525
      return result.success
3431 rajveer 526
    if result.se is not None:
494 rajveer 527
      raise result.se
528
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
529
 
530
  def deleteUser(self, username):
531
    """
532
    Parameters:
533
     - username
534
    """
535
    self.send_deleteUser(username)
536
    return self.recv_deleteUser()
537
 
538
  def send_deleteUser(self, username):
539
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
540
    args = deleteUser_args()
541
    args.username = username
542
    args.write(self._oprot)
543
    self._oprot.writeMessageEnd()
544
    self._oprot.trans.flush()
545
 
546
  def recv_deleteUser(self, ):
547
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
548
    if mtype == TMessageType.EXCEPTION:
549
      x = TApplicationException()
550
      x.read(self._iprot)
551
      self._iprot.readMessageEnd()
552
      raise x
553
    result = deleteUser_result()
554
    result.read(self._iprot)
555
    self._iprot.readMessageEnd()
3431 rajveer 556
    if result.success is not None:
494 rajveer 557
      return result.success
3431 rajveer 558
    if result.se is not None:
494 rajveer 559
      raise result.se
560
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
561
 
2447 chandransh 562
  def authenticateDashboardUser(self, username, password):
494 rajveer 563
    """
2447 chandransh 564
    Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
565
    The loggedOn timestamp for the dashboard user is updated .
3431 rajveer 566
 
494 rajveer 567
    Parameters:
568
     - username
569
     - password
570
    """
2447 chandransh 571
    self.send_authenticateDashboardUser(username, password)
572
    return self.recv_authenticateDashboardUser()
494 rajveer 573
 
2447 chandransh 574
  def send_authenticateDashboardUser(self, username, password):
575
    self._oprot.writeMessageBegin('authenticateDashboardUser', TMessageType.CALL, self._seqid)
576
    args = authenticateDashboardUser_args()
494 rajveer 577
    args.username = username
578
    args.password = password
579
    args.write(self._oprot)
580
    self._oprot.writeMessageEnd()
581
    self._oprot.trans.flush()
582
 
2447 chandransh 583
  def recv_authenticateDashboardUser(self, ):
494 rajveer 584
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
585
    if mtype == TMessageType.EXCEPTION:
586
      x = TApplicationException()
587
      x.read(self._iprot)
588
      self._iprot.readMessageEnd()
589
      raise x
2447 chandransh 590
    result = authenticateDashboardUser_result()
494 rajveer 591
    result.read(self._iprot)
592
    self._iprot.readMessageEnd()
3431 rajveer 593
    if result.success is not None:
494 rajveer 594
      return result.success
3431 rajveer 595
    if result.se is not None:
494 rajveer 596
      raise result.se
2447 chandransh 597
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
494 rajveer 598
 
599
  def updatePassword(self, username, oldPassword, newPassword):
600
    """
2447 chandransh 601
    Update the password of the dashboard user. Currently, there is no place where this method is called.
3431 rajveer 602
 
494 rajveer 603
    Parameters:
604
     - username
605
     - oldPassword
606
     - newPassword
607
    """
608
    self.send_updatePassword(username, oldPassword, newPassword)
609
    return self.recv_updatePassword()
610
 
611
  def send_updatePassword(self, username, oldPassword, newPassword):
612
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
613
    args = updatePassword_args()
614
    args.username = username
615
    args.oldPassword = oldPassword
616
    args.newPassword = newPassword
617
    args.write(self._oprot)
618
    self._oprot.writeMessageEnd()
619
    self._oprot.trans.flush()
620
 
621
  def recv_updatePassword(self, ):
622
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
623
    if mtype == TMessageType.EXCEPTION:
624
      x = TApplicationException()
625
      x.read(self._iprot)
626
      self._iprot.readMessageEnd()
627
      raise x
628
    result = updatePassword_result()
629
    result.read(self._iprot)
630
    self._iprot.readMessageEnd()
3431 rajveer 631
    if result.success is not None:
494 rajveer 632
      return result.success
3431 rajveer 633
    if result.se is not None:
494 rajveer 634
      raise result.se
635
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
636
 
759 chandransh 637
  def authenticateLogisticsUser(self, username, password):
638
    """
639
    Returns the LogisticsUser struct associated with the given username and password if they match.
640
    Throws an exception otherwise.
3431 rajveer 641
 
759 chandransh 642
    Parameters:
643
     - username
644
     - password
645
    """
646
    self.send_authenticateLogisticsUser(username, password)
647
    return self.recv_authenticateLogisticsUser()
494 rajveer 648
 
759 chandransh 649
  def send_authenticateLogisticsUser(self, username, password):
650
    self._oprot.writeMessageBegin('authenticateLogisticsUser', TMessageType.CALL, self._seqid)
651
    args = authenticateLogisticsUser_args()
652
    args.username = username
653
    args.password = password
654
    args.write(self._oprot)
655
    self._oprot.writeMessageEnd()
656
    self._oprot.trans.flush()
657
 
658
  def recv_authenticateLogisticsUser(self, ):
659
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
660
    if mtype == TMessageType.EXCEPTION:
661
      x = TApplicationException()
662
      x.read(self._iprot)
663
      self._iprot.readMessageEnd()
664
      raise x
665
    result = authenticateLogisticsUser_result()
666
    result.read(self._iprot)
667
    self._iprot.readMessageEnd()
3431 rajveer 668
    if result.success is not None:
759 chandransh 669
      return result.success
3431 rajveer 670
    if result.hse is not None:
759 chandransh 671
      raise result.hse
672
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
673
 
1610 ankur.sing 674
  def authenticateStatisticsUser(self, username, password):
675
    """
676
    Returns the StatisticsUser struct associated with the given username and password if they match.
677
    Throws an exception otherwise.
3431 rajveer 678
 
1610 ankur.sing 679
    Parameters:
680
     - username
681
     - password
682
    """
683
    self.send_authenticateStatisticsUser(username, password)
684
    return self.recv_authenticateStatisticsUser()
759 chandransh 685
 
1610 ankur.sing 686
  def send_authenticateStatisticsUser(self, username, password):
687
    self._oprot.writeMessageBegin('authenticateStatisticsUser', TMessageType.CALL, self._seqid)
688
    args = authenticateStatisticsUser_args()
689
    args.username = username
690
    args.password = password
691
    args.write(self._oprot)
692
    self._oprot.writeMessageEnd()
693
    self._oprot.trans.flush()
694
 
695
  def recv_authenticateStatisticsUser(self, ):
696
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
697
    if mtype == TMessageType.EXCEPTION:
698
      x = TApplicationException()
699
      x.read(self._iprot)
700
      self._iprot.readMessageEnd()
701
      raise x
702
    result = authenticateStatisticsUser_result()
703
    result.read(self._iprot)
704
    self._iprot.readMessageEnd()
3431 rajveer 705
    if result.success is not None:
1610 ankur.sing 706
      return result.success
3431 rajveer 707
    if result.hse is not None:
1610 ankur.sing 708
      raise result.hse
709
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
710
 
1891 ankur.sing 711
  def authenticateReportUser(self, username, password):
712
    """
713
    Returns the ReportUser struct associated with the given username and password if they match.
714
    Throws an exception otherwise.
3431 rajveer 715
 
1891 ankur.sing 716
    Parameters:
717
     - username
718
     - password
719
    """
720
    self.send_authenticateReportUser(username, password)
721
    return self.recv_authenticateReportUser()
1610 ankur.sing 722
 
1891 ankur.sing 723
  def send_authenticateReportUser(self, username, password):
724
    self._oprot.writeMessageBegin('authenticateReportUser', TMessageType.CALL, self._seqid)
725
    args = authenticateReportUser_args()
726
    args.username = username
727
    args.password = password
728
    args.write(self._oprot)
729
    self._oprot.writeMessageEnd()
730
    self._oprot.trans.flush()
731
 
732
  def recv_authenticateReportUser(self, ):
733
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
734
    if mtype == TMessageType.EXCEPTION:
735
      x = TApplicationException()
736
      x.read(self._iprot)
737
      self._iprot.readMessageEnd()
738
      raise x
739
    result = authenticateReportUser_result()
740
    result.read(self._iprot)
741
    self._iprot.readMessageEnd()
3431 rajveer 742
    if result.success is not None:
1891 ankur.sing 743
      return result.success
3431 rajveer 744
    if result.hse is not None:
1891 ankur.sing 745
      raise result.hse
746
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
747
 
748
  def getReports(self, role):
749
    """
750
    Returns list of reports which are configured for the given role.
3431 rajveer 751
 
1891 ankur.sing 752
    Parameters:
753
     - role
754
    """
755
    self.send_getReports(role)
756
    return self.recv_getReports()
757
 
758
  def send_getReports(self, role):
759
    self._oprot.writeMessageBegin('getReports', TMessageType.CALL, self._seqid)
760
    args = getReports_args()
761
    args.role = role
762
    args.write(self._oprot)
763
    self._oprot.writeMessageEnd()
764
    self._oprot.trans.flush()
765
 
766
  def recv_getReports(self, ):
767
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
768
    if mtype == TMessageType.EXCEPTION:
769
      x = TApplicationException()
770
      x.read(self._iprot)
771
      self._iprot.readMessageEnd()
772
      raise x
773
    result = getReports_result()
774
    result.read(self._iprot)
775
    self._iprot.readMessageEnd()
3431 rajveer 776
    if result.success is not None:
1891 ankur.sing 777
      return result.success
778
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
779
 
2358 ankur.sing 780
  def authenticateCatalogUser(self, username, password, role):
2025 ankur.sing 781
    """
2358 ankur.sing 782
    Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2025 ankur.sing 783
    Throws an exception otherwise.
3431 rajveer 784
 
2025 ankur.sing 785
    Parameters:
786
     - username
787
     - password
2358 ankur.sing 788
     - role
2025 ankur.sing 789
    """
2358 ankur.sing 790
    self.send_authenticateCatalogUser(username, password, role)
2025 ankur.sing 791
    return self.recv_authenticateCatalogUser()
1891 ankur.sing 792
 
2358 ankur.sing 793
  def send_authenticateCatalogUser(self, username, password, role):
2025 ankur.sing 794
    self._oprot.writeMessageBegin('authenticateCatalogUser', TMessageType.CALL, self._seqid)
795
    args = authenticateCatalogUser_args()
796
    args.username = username
797
    args.password = password
2358 ankur.sing 798
    args.role = role
2025 ankur.sing 799
    args.write(self._oprot)
800
    self._oprot.writeMessageEnd()
801
    self._oprot.trans.flush()
802
 
803
  def recv_authenticateCatalogUser(self, ):
804
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
805
    if mtype == TMessageType.EXCEPTION:
806
      x = TApplicationException()
807
      x.read(self._iprot)
808
      self._iprot.readMessageEnd()
809
      raise x
810
    result = authenticateCatalogUser_result()
811
    result.read(self._iprot)
812
    self._iprot.readMessageEnd()
3431 rajveer 813
    if result.success is not None:
2025 ankur.sing 814
      return result.success
3431 rajveer 815
    if result.hse is not None:
2025 ankur.sing 816
      raise result.hse
817
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
818
 
4544 varun.gupt 819
  def shareEntities(self, entityIds, email):
820
    """
821
    Saves the list of entity Ids to be shared with an email address
2025 ankur.sing 822
 
4544 varun.gupt 823
    Parameters:
824
     - entityIds
825
     - email
826
    """
827
    self.send_shareEntities(entityIds, email)
828
    self.recv_shareEntities()
829
 
830
  def send_shareEntities(self, entityIds, email):
831
    self._oprot.writeMessageBegin('shareEntities', TMessageType.CALL, self._seqid)
832
    args = shareEntities_args()
833
    args.entityIds = entityIds
834
    args.email = email
835
    args.write(self._oprot)
836
    self._oprot.writeMessageEnd()
837
    self._oprot.trans.flush()
838
 
839
  def recv_shareEntities(self, ):
840
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
841
    if mtype == TMessageType.EXCEPTION:
842
      x = TApplicationException()
843
      x.read(self._iprot)
844
      self._iprot.readMessageEnd()
845
      raise x
846
    result = shareEntities_result()
847
    result.read(self._iprot)
848
    self._iprot.readMessageEnd()
849
    if result.hse is not None:
850
      raise result.hse
851
    return
852
 
853
 
3376 rajveer 854
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
349 ashish 855
  def __init__(self, handler):
3376 rajveer 856
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1395 varun.gupt 857
    self._processMap["saveUserEmailForSending"] = Processor.process_saveUserEmailForSending
1422 varun.gupt 858
    self._processMap["getEmailsToBeSent"] = Processor.process_getEmailsToBeSent
859
    self._processMap["markEmailAsSent"] = Processor.process_markEmailAsSent
349 ashish 860
    self._processMap["sendMail"] = Processor.process_sendMail
861
    self._processMap["sendText"] = Processor.process_sendText
862
    self._processMap["addMessage"] = Processor.process_addMessage
863
    self._processMap["updateMessage"] = Processor.process_updateMessage
864
    self._processMap["getMessage"] = Processor.process_getMessage
865
    self._processMap["getSubstitutedMessage"] = Processor.process_getSubstitutedMessage
494 rajveer 866
    self._processMap["addUser"] = Processor.process_addUser
867
    self._processMap["deleteUser"] = Processor.process_deleteUser
2447 chandransh 868
    self._processMap["authenticateDashboardUser"] = Processor.process_authenticateDashboardUser
494 rajveer 869
    self._processMap["updatePassword"] = Processor.process_updatePassword
759 chandransh 870
    self._processMap["authenticateLogisticsUser"] = Processor.process_authenticateLogisticsUser
1610 ankur.sing 871
    self._processMap["authenticateStatisticsUser"] = Processor.process_authenticateStatisticsUser
1891 ankur.sing 872
    self._processMap["authenticateReportUser"] = Processor.process_authenticateReportUser
873
    self._processMap["getReports"] = Processor.process_getReports
2025 ankur.sing 874
    self._processMap["authenticateCatalogUser"] = Processor.process_authenticateCatalogUser
4544 varun.gupt 875
    self._processMap["shareEntities"] = Processor.process_shareEntities
349 ashish 876
 
877
  def process(self, iprot, oprot):
878
    (name, type, seqid) = iprot.readMessageBegin()
879
    if name not in self._processMap:
880
      iprot.skip(TType.STRUCT)
881
      iprot.readMessageEnd()
882
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
883
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
884
      x.write(oprot)
885
      oprot.writeMessageEnd()
886
      oprot.trans.flush()
887
      return
888
    else:
889
      self._processMap[name](self, seqid, iprot, oprot)
890
    return True
891
 
1395 varun.gupt 892
  def process_saveUserEmailForSending(self, seqid, iprot, oprot):
893
    args = saveUserEmailForSending_args()
894
    args.read(iprot)
895
    iprot.readMessageEnd()
896
    result = saveUserEmailForSending_result()
897
    try:
3206 mandeep.dh 898
      result.success = self._handler.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType)
1395 varun.gupt 899
    except HelperServiceException, se:
900
      result.se = se
901
    oprot.writeMessageBegin("saveUserEmailForSending", TMessageType.REPLY, seqid)
902
    result.write(oprot)
903
    oprot.writeMessageEnd()
904
    oprot.trans.flush()
905
 
1422 varun.gupt 906
  def process_getEmailsToBeSent(self, seqid, iprot, oprot):
907
    args = getEmailsToBeSent_args()
908
    args.read(iprot)
909
    iprot.readMessageEnd()
910
    result = getEmailsToBeSent_result()
911
    try:
3086 rajveer 912
      result.success = self._handler.getEmailsToBeSent()
1422 varun.gupt 913
    except HelperServiceException, se:
914
      result.se = se
915
    oprot.writeMessageBegin("getEmailsToBeSent", TMessageType.REPLY, seqid)
916
    result.write(oprot)
917
    oprot.writeMessageEnd()
918
    oprot.trans.flush()
919
 
920
  def process_markEmailAsSent(self, seqid, iprot, oprot):
921
    args = markEmailAsSent_args()
922
    args.read(iprot)
923
    iprot.readMessageEnd()
924
    result = markEmailAsSent_result()
925
    try:
926
      self._handler.markEmailAsSent(args.emailId)
927
    except HelperServiceException, se:
928
      result.se = se
929
    oprot.writeMessageBegin("markEmailAsSent", TMessageType.REPLY, seqid)
930
    result.write(oprot)
931
    oprot.writeMessageEnd()
932
    oprot.trans.flush()
933
 
349 ashish 934
  def process_sendMail(self, seqid, iprot, oprot):
935
    args = sendMail_args()
936
    args.read(iprot)
937
    iprot.readMessageEnd()
938
    result = sendMail_result()
939
    try:
940
      self._handler.sendMail(args.mail)
941
    except HelperServiceException, se:
942
      result.se = se
943
    oprot.writeMessageBegin("sendMail", TMessageType.REPLY, seqid)
944
    result.write(oprot)
945
    oprot.writeMessageEnd()
946
    oprot.trans.flush()
947
 
948
  def process_sendText(self, seqid, iprot, oprot):
949
    args = sendText_args()
950
    args.read(iprot)
951
    iprot.readMessageEnd()
952
    result = sendText_result()
953
    try:
954
      self._handler.sendText(args.message)
955
    except HelperServiceException, se:
956
      result.se = se
957
    oprot.writeMessageBegin("sendText", TMessageType.REPLY, seqid)
958
    result.write(oprot)
959
    oprot.writeMessageEnd()
960
    oprot.trans.flush()
961
 
962
  def process_addMessage(self, seqid, iprot, oprot):
963
    args = addMessage_args()
964
    args.read(iprot)
965
    iprot.readMessageEnd()
966
    result = addMessage_result()
967
    try:
968
      self._handler.addMessage(args.message)
969
    except HelperServiceException, se:
970
      result.se = se
971
    oprot.writeMessageBegin("addMessage", TMessageType.REPLY, seqid)
972
    result.write(oprot)
973
    oprot.writeMessageEnd()
974
    oprot.trans.flush()
975
 
976
  def process_updateMessage(self, seqid, iprot, oprot):
977
    args = updateMessage_args()
978
    args.read(iprot)
979
    iprot.readMessageEnd()
980
    result = updateMessage_result()
981
    try:
982
      self._handler.updateMessage(args.id, args.message)
983
    except HelperServiceException, se:
984
      result.se = se
985
    oprot.writeMessageBegin("updateMessage", TMessageType.REPLY, seqid)
986
    result.write(oprot)
987
    oprot.writeMessageEnd()
988
    oprot.trans.flush()
989
 
990
  def process_getMessage(self, seqid, iprot, oprot):
991
    args = getMessage_args()
992
    args.read(iprot)
993
    iprot.readMessageEnd()
994
    result = getMessage_result()
995
    try:
353 ashish 996
      result.success = self._handler.getMessage(args.id)
349 ashish 997
    except HelperServiceException, se:
998
      result.se = se
999
    oprot.writeMessageBegin("getMessage", TMessageType.REPLY, seqid)
1000
    result.write(oprot)
1001
    oprot.writeMessageEnd()
1002
    oprot.trans.flush()
1003
 
1004
  def process_getSubstitutedMessage(self, seqid, iprot, oprot):
1005
    args = getSubstitutedMessage_args()
1006
    args.read(iprot)
1007
    iprot.readMessageEnd()
1008
    result = getSubstitutedMessage_result()
1009
    try:
353 ashish 1010
      result.success = self._handler.getSubstitutedMessage(args.id, args.params)
349 ashish 1011
    except HelperServiceException, se:
1012
      result.se = se
1013
    oprot.writeMessageBegin("getSubstitutedMessage", TMessageType.REPLY, seqid)
1014
    result.write(oprot)
1015
    oprot.writeMessageEnd()
1016
    oprot.trans.flush()
1017
 
494 rajveer 1018
  def process_addUser(self, seqid, iprot, oprot):
1019
    args = addUser_args()
1020
    args.read(iprot)
1021
    iprot.readMessageEnd()
1022
    result = addUser_result()
1023
    try:
1024
      result.success = self._handler.addUser(args.username, args.password, args.warehouseId)
1025
    except HelperServiceException, se:
1026
      result.se = se
1027
    oprot.writeMessageBegin("addUser", TMessageType.REPLY, seqid)
1028
    result.write(oprot)
1029
    oprot.writeMessageEnd()
1030
    oprot.trans.flush()
349 ashish 1031
 
494 rajveer 1032
  def process_deleteUser(self, seqid, iprot, oprot):
1033
    args = deleteUser_args()
1034
    args.read(iprot)
1035
    iprot.readMessageEnd()
1036
    result = deleteUser_result()
1037
    try:
1038
      result.success = self._handler.deleteUser(args.username)
1039
    except HelperServiceException, se:
1040
      result.se = se
1041
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
1042
    result.write(oprot)
1043
    oprot.writeMessageEnd()
1044
    oprot.trans.flush()
1045
 
2447 chandransh 1046
  def process_authenticateDashboardUser(self, seqid, iprot, oprot):
1047
    args = authenticateDashboardUser_args()
494 rajveer 1048
    args.read(iprot)
1049
    iprot.readMessageEnd()
2447 chandransh 1050
    result = authenticateDashboardUser_result()
494 rajveer 1051
    try:
2447 chandransh 1052
      result.success = self._handler.authenticateDashboardUser(args.username, args.password)
494 rajveer 1053
    except HelperServiceException, se:
1054
      result.se = se
2447 chandransh 1055
    oprot.writeMessageBegin("authenticateDashboardUser", TMessageType.REPLY, seqid)
494 rajveer 1056
    result.write(oprot)
1057
    oprot.writeMessageEnd()
1058
    oprot.trans.flush()
1059
 
1060
  def process_updatePassword(self, seqid, iprot, oprot):
1061
    args = updatePassword_args()
1062
    args.read(iprot)
1063
    iprot.readMessageEnd()
1064
    result = updatePassword_result()
1065
    try:
1066
      result.success = self._handler.updatePassword(args.username, args.oldPassword, args.newPassword)
1067
    except HelperServiceException, se:
1068
      result.se = se
1069
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
1070
    result.write(oprot)
1071
    oprot.writeMessageEnd()
1072
    oprot.trans.flush()
1073
 
759 chandransh 1074
  def process_authenticateLogisticsUser(self, seqid, iprot, oprot):
1075
    args = authenticateLogisticsUser_args()
1076
    args.read(iprot)
1077
    iprot.readMessageEnd()
1078
    result = authenticateLogisticsUser_result()
1079
    try:
1080
      result.success = self._handler.authenticateLogisticsUser(args.username, args.password)
1081
    except HelperServiceException, hse:
1082
      result.hse = hse
1083
    oprot.writeMessageBegin("authenticateLogisticsUser", TMessageType.REPLY, seqid)
1084
    result.write(oprot)
1085
    oprot.writeMessageEnd()
1086
    oprot.trans.flush()
494 rajveer 1087
 
1610 ankur.sing 1088
  def process_authenticateStatisticsUser(self, seqid, iprot, oprot):
1089
    args = authenticateStatisticsUser_args()
1090
    args.read(iprot)
1091
    iprot.readMessageEnd()
1092
    result = authenticateStatisticsUser_result()
1093
    try:
1094
      result.success = self._handler.authenticateStatisticsUser(args.username, args.password)
1095
    except HelperServiceException, hse:
1096
      result.hse = hse
1097
    oprot.writeMessageBegin("authenticateStatisticsUser", TMessageType.REPLY, seqid)
1098
    result.write(oprot)
1099
    oprot.writeMessageEnd()
1100
    oprot.trans.flush()
759 chandransh 1101
 
1891 ankur.sing 1102
  def process_authenticateReportUser(self, seqid, iprot, oprot):
1103
    args = authenticateReportUser_args()
1104
    args.read(iprot)
1105
    iprot.readMessageEnd()
1106
    result = authenticateReportUser_result()
1107
    try:
1108
      result.success = self._handler.authenticateReportUser(args.username, args.password)
1109
    except HelperServiceException, hse:
1110
      result.hse = hse
1111
    oprot.writeMessageBegin("authenticateReportUser", TMessageType.REPLY, seqid)
1112
    result.write(oprot)
1113
    oprot.writeMessageEnd()
1114
    oprot.trans.flush()
1610 ankur.sing 1115
 
1891 ankur.sing 1116
  def process_getReports(self, seqid, iprot, oprot):
1117
    args = getReports_args()
1118
    args.read(iprot)
1119
    iprot.readMessageEnd()
1120
    result = getReports_result()
1121
    result.success = self._handler.getReports(args.role)
1122
    oprot.writeMessageBegin("getReports", TMessageType.REPLY, seqid)
1123
    result.write(oprot)
1124
    oprot.writeMessageEnd()
1125
    oprot.trans.flush()
1126
 
2025 ankur.sing 1127
  def process_authenticateCatalogUser(self, seqid, iprot, oprot):
1128
    args = authenticateCatalogUser_args()
1129
    args.read(iprot)
1130
    iprot.readMessageEnd()
1131
    result = authenticateCatalogUser_result()
1132
    try:
2358 ankur.sing 1133
      result.success = self._handler.authenticateCatalogUser(args.username, args.password, args.role)
2025 ankur.sing 1134
    except HelperServiceException, hse:
1135
      result.hse = hse
1136
    oprot.writeMessageBegin("authenticateCatalogUser", TMessageType.REPLY, seqid)
1137
    result.write(oprot)
1138
    oprot.writeMessageEnd()
1139
    oprot.trans.flush()
1891 ankur.sing 1140
 
4544 varun.gupt 1141
  def process_shareEntities(self, seqid, iprot, oprot):
1142
    args = shareEntities_args()
1143
    args.read(iprot)
1144
    iprot.readMessageEnd()
1145
    result = shareEntities_result()
1146
    try:
1147
      self._handler.shareEntities(args.entityIds, args.email)
1148
    except HelperServiceException, hse:
1149
      result.hse = hse
1150
    oprot.writeMessageBegin("shareEntities", TMessageType.REPLY, seqid)
1151
    result.write(oprot)
1152
    oprot.writeMessageEnd()
1153
    oprot.trans.flush()
2025 ankur.sing 1154
 
4544 varun.gupt 1155
 
349 ashish 1156
# HELPER FUNCTIONS AND STRUCTURES
1157
 
1395 varun.gupt 1158
class saveUserEmailForSending_args:
1159
  """
1160
  Attributes:
1161
   - emailTo
1162
   - emailFrom
1163
   - subject
1164
   - body
1165
   - source
1166
   - emailType
1167
  """
1168
 
1169
  thrift_spec = (
1170
    None, # 0
1171
    (1, TType.STRING, 'emailTo', None, None, ), # 1
1172
    (2, TType.STRING, 'emailFrom', None, None, ), # 2
1173
    (3, TType.STRING, 'subject', None, None, ), # 3
1174
    (4, TType.STRING, 'body', None, None, ), # 4
1175
    (5, TType.STRING, 'source', None, None, ), # 5
1176
    (6, TType.STRING, 'emailType', None, None, ), # 6
1177
  )
1178
 
1179
  def __init__(self, emailTo=None, emailFrom=None, subject=None, body=None, source=None, emailType=None,):
1180
    self.emailTo = emailTo
1181
    self.emailFrom = emailFrom
1182
    self.subject = subject
1183
    self.body = body
1184
    self.source = source
1185
    self.emailType = emailType
1186
 
1187
  def read(self, iprot):
1188
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1189
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1190
      return
1191
    iprot.readStructBegin()
1192
    while True:
1193
      (fname, ftype, fid) = iprot.readFieldBegin()
1194
      if ftype == TType.STOP:
1195
        break
1196
      if fid == 1:
1197
        if ftype == TType.STRING:
1198
          self.emailTo = iprot.readString();
1199
        else:
1200
          iprot.skip(ftype)
1201
      elif fid == 2:
1202
        if ftype == TType.STRING:
1203
          self.emailFrom = iprot.readString();
1204
        else:
1205
          iprot.skip(ftype)
1206
      elif fid == 3:
1207
        if ftype == TType.STRING:
1208
          self.subject = iprot.readString();
1209
        else:
1210
          iprot.skip(ftype)
1211
      elif fid == 4:
1212
        if ftype == TType.STRING:
1213
          self.body = iprot.readString();
1214
        else:
1215
          iprot.skip(ftype)
1216
      elif fid == 5:
1217
        if ftype == TType.STRING:
1218
          self.source = iprot.readString();
1219
        else:
1220
          iprot.skip(ftype)
1221
      elif fid == 6:
1222
        if ftype == TType.STRING:
1223
          self.emailType = iprot.readString();
1224
        else:
1225
          iprot.skip(ftype)
1226
      else:
1227
        iprot.skip(ftype)
1228
      iprot.readFieldEnd()
1229
    iprot.readStructEnd()
1230
 
1231
  def write(self, oprot):
1232
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1233
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1234
      return
1235
    oprot.writeStructBegin('saveUserEmailForSending_args')
3431 rajveer 1236
    if self.emailTo is not None:
1395 varun.gupt 1237
      oprot.writeFieldBegin('emailTo', TType.STRING, 1)
1238
      oprot.writeString(self.emailTo)
1239
      oprot.writeFieldEnd()
3431 rajveer 1240
    if self.emailFrom is not None:
1395 varun.gupt 1241
      oprot.writeFieldBegin('emailFrom', TType.STRING, 2)
1242
      oprot.writeString(self.emailFrom)
1243
      oprot.writeFieldEnd()
3431 rajveer 1244
    if self.subject is not None:
1395 varun.gupt 1245
      oprot.writeFieldBegin('subject', TType.STRING, 3)
1246
      oprot.writeString(self.subject)
1247
      oprot.writeFieldEnd()
3431 rajveer 1248
    if self.body is not None:
1395 varun.gupt 1249
      oprot.writeFieldBegin('body', TType.STRING, 4)
1250
      oprot.writeString(self.body)
1251
      oprot.writeFieldEnd()
3431 rajveer 1252
    if self.source is not None:
1395 varun.gupt 1253
      oprot.writeFieldBegin('source', TType.STRING, 5)
1254
      oprot.writeString(self.source)
1255
      oprot.writeFieldEnd()
3431 rajveer 1256
    if self.emailType is not None:
1395 varun.gupt 1257
      oprot.writeFieldBegin('emailType', TType.STRING, 6)
1258
      oprot.writeString(self.emailType)
1259
      oprot.writeFieldEnd()
1260
    oprot.writeFieldStop()
1261
    oprot.writeStructEnd()
1262
 
3431 rajveer 1263
  def validate(self):
1264
    return
1265
 
1266
 
1395 varun.gupt 1267
  def __repr__(self):
1268
    L = ['%s=%r' % (key, value)
1269
      for key, value in self.__dict__.iteritems()]
1270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1271
 
1272
  def __eq__(self, other):
1273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1274
 
1275
  def __ne__(self, other):
1276
    return not (self == other)
1277
 
1278
class saveUserEmailForSending_result:
1279
  """
1280
  Attributes:
3206 mandeep.dh 1281
   - success
1395 varun.gupt 1282
   - se
1283
  """
1284
 
1285
  thrift_spec = (
3206 mandeep.dh 1286
    (0, TType.I64, 'success', None, None, ), # 0
1395 varun.gupt 1287
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
1288
  )
1289
 
3206 mandeep.dh 1290
  def __init__(self, success=None, se=None,):
1291
    self.success = success
1395 varun.gupt 1292
    self.se = se
1293
 
1294
  def read(self, iprot):
1295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1297
      return
1298
    iprot.readStructBegin()
1299
    while True:
1300
      (fname, ftype, fid) = iprot.readFieldBegin()
1301
      if ftype == TType.STOP:
1302
        break
3206 mandeep.dh 1303
      if fid == 0:
1304
        if ftype == TType.I64:
1305
          self.success = iprot.readI64();
1306
        else:
1307
          iprot.skip(ftype)
1308
      elif fid == 1:
1395 varun.gupt 1309
        if ftype == TType.STRUCT:
1310
          self.se = HelperServiceException()
1311
          self.se.read(iprot)
1312
        else:
1313
          iprot.skip(ftype)
1314
      else:
1315
        iprot.skip(ftype)
1316
      iprot.readFieldEnd()
1317
    iprot.readStructEnd()
1318
 
1319
  def write(self, oprot):
1320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1322
      return
1323
    oprot.writeStructBegin('saveUserEmailForSending_result')
3431 rajveer 1324
    if self.success is not None:
3206 mandeep.dh 1325
      oprot.writeFieldBegin('success', TType.I64, 0)
1326
      oprot.writeI64(self.success)
1327
      oprot.writeFieldEnd()
3431 rajveer 1328
    if self.se is not None:
1395 varun.gupt 1329
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1330
      self.se.write(oprot)
1331
      oprot.writeFieldEnd()
1332
    oprot.writeFieldStop()
1333
    oprot.writeStructEnd()
1334
 
3431 rajveer 1335
  def validate(self):
1336
    return
1337
 
1338
 
1395 varun.gupt 1339
  def __repr__(self):
1340
    L = ['%s=%r' % (key, value)
1341
      for key, value in self.__dict__.iteritems()]
1342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1343
 
1344
  def __eq__(self, other):
1345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1346
 
1347
  def __ne__(self, other):
1348
    return not (self == other)
1349
 
1422 varun.gupt 1350
class getEmailsToBeSent_args:
1351
 
1352
  thrift_spec = (
1353
  )
1354
 
1355
  def read(self, iprot):
1356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1358
      return
1359
    iprot.readStructBegin()
1360
    while True:
1361
      (fname, ftype, fid) = iprot.readFieldBegin()
1362
      if ftype == TType.STOP:
1363
        break
1364
      else:
1365
        iprot.skip(ftype)
1366
      iprot.readFieldEnd()
1367
    iprot.readStructEnd()
1368
 
1369
  def write(self, oprot):
1370
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1371
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1372
      return
1373
    oprot.writeStructBegin('getEmailsToBeSent_args')
1374
    oprot.writeFieldStop()
1375
    oprot.writeStructEnd()
1376
 
3431 rajveer 1377
  def validate(self):
1378
    return
1379
 
1380
 
1422 varun.gupt 1381
  def __repr__(self):
1382
    L = ['%s=%r' % (key, value)
1383
      for key, value in self.__dict__.iteritems()]
1384
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1385
 
1386
  def __eq__(self, other):
1387
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1388
 
1389
  def __ne__(self, other):
1390
    return not (self == other)
1391
 
1392
class getEmailsToBeSent_result:
1393
  """
1394
  Attributes:
1395
   - success
1396
   - se
1397
  """
1398
 
1399
  thrift_spec = (
1400
    (0, TType.LIST, 'success', (TType.STRUCT,(UserEmail, UserEmail.thrift_spec)), None, ), # 0
1401
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
1402
  )
1403
 
1404
  def __init__(self, success=None, se=None,):
1405
    self.success = success
1406
    self.se = se
1407
 
1408
  def read(self, iprot):
1409
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1410
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1411
      return
1412
    iprot.readStructBegin()
1413
    while True:
1414
      (fname, ftype, fid) = iprot.readFieldBegin()
1415
      if ftype == TType.STOP:
1416
        break
1417
      if fid == 0:
1418
        if ftype == TType.LIST:
1419
          self.success = []
1420
          (_etype17, _size14) = iprot.readListBegin()
1421
          for _i18 in xrange(_size14):
1422
            _elem19 = UserEmail()
1423
            _elem19.read(iprot)
1424
            self.success.append(_elem19)
1425
          iprot.readListEnd()
1426
        else:
1427
          iprot.skip(ftype)
1428
      elif fid == 1:
1429
        if ftype == TType.STRUCT:
1430
          self.se = HelperServiceException()
1431
          self.se.read(iprot)
1432
        else:
1433
          iprot.skip(ftype)
1434
      else:
1435
        iprot.skip(ftype)
1436
      iprot.readFieldEnd()
1437
    iprot.readStructEnd()
1438
 
1439
  def write(self, oprot):
1440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1442
      return
1443
    oprot.writeStructBegin('getEmailsToBeSent_result')
3431 rajveer 1444
    if self.success is not None:
1422 varun.gupt 1445
      oprot.writeFieldBegin('success', TType.LIST, 0)
1446
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1447
      for iter20 in self.success:
1448
        iter20.write(oprot)
1449
      oprot.writeListEnd()
1450
      oprot.writeFieldEnd()
3431 rajveer 1451
    if self.se is not None:
1422 varun.gupt 1452
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1453
      self.se.write(oprot)
1454
      oprot.writeFieldEnd()
1455
    oprot.writeFieldStop()
1456
    oprot.writeStructEnd()
1457
 
3431 rajveer 1458
  def validate(self):
1459
    return
1460
 
1461
 
1422 varun.gupt 1462
  def __repr__(self):
1463
    L = ['%s=%r' % (key, value)
1464
      for key, value in self.__dict__.iteritems()]
1465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1466
 
1467
  def __eq__(self, other):
1468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1469
 
1470
  def __ne__(self, other):
1471
    return not (self == other)
1472
 
1473
class markEmailAsSent_args:
1474
  """
1475
  Attributes:
1476
   - emailId
1477
  """
1478
 
1479
  thrift_spec = (
1480
    None, # 0
1481
    (1, TType.I64, 'emailId', None, None, ), # 1
1482
  )
1483
 
1484
  def __init__(self, emailId=None,):
1485
    self.emailId = emailId
1486
 
1487
  def read(self, iprot):
1488
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1489
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1490
      return
1491
    iprot.readStructBegin()
1492
    while True:
1493
      (fname, ftype, fid) = iprot.readFieldBegin()
1494
      if ftype == TType.STOP:
1495
        break
1496
      if fid == 1:
1497
        if ftype == TType.I64:
1498
          self.emailId = iprot.readI64();
1499
        else:
1500
          iprot.skip(ftype)
1501
      else:
1502
        iprot.skip(ftype)
1503
      iprot.readFieldEnd()
1504
    iprot.readStructEnd()
1505
 
1506
  def write(self, oprot):
1507
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1508
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1509
      return
1510
    oprot.writeStructBegin('markEmailAsSent_args')
3431 rajveer 1511
    if self.emailId is not None:
1422 varun.gupt 1512
      oprot.writeFieldBegin('emailId', TType.I64, 1)
1513
      oprot.writeI64(self.emailId)
1514
      oprot.writeFieldEnd()
1515
    oprot.writeFieldStop()
1516
    oprot.writeStructEnd()
1517
 
3431 rajveer 1518
  def validate(self):
1519
    return
1520
 
1521
 
1422 varun.gupt 1522
  def __repr__(self):
1523
    L = ['%s=%r' % (key, value)
1524
      for key, value in self.__dict__.iteritems()]
1525
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1526
 
1527
  def __eq__(self, other):
1528
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1529
 
1530
  def __ne__(self, other):
1531
    return not (self == other)
1532
 
1533
class markEmailAsSent_result:
1534
  """
1535
  Attributes:
1536
   - se
1537
  """
1538
 
1539
  thrift_spec = (
1540
    None, # 0
1541
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
1542
  )
1543
 
1544
  def __init__(self, se=None,):
1545
    self.se = se
1546
 
1547
  def read(self, iprot):
1548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1550
      return
1551
    iprot.readStructBegin()
1552
    while True:
1553
      (fname, ftype, fid) = iprot.readFieldBegin()
1554
      if ftype == TType.STOP:
1555
        break
1556
      if fid == 1:
1557
        if ftype == TType.STRUCT:
1558
          self.se = HelperServiceException()
1559
          self.se.read(iprot)
1560
        else:
1561
          iprot.skip(ftype)
1562
      else:
1563
        iprot.skip(ftype)
1564
      iprot.readFieldEnd()
1565
    iprot.readStructEnd()
1566
 
1567
  def write(self, oprot):
1568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1570
      return
1571
    oprot.writeStructBegin('markEmailAsSent_result')
3431 rajveer 1572
    if self.se is not None:
1422 varun.gupt 1573
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1574
      self.se.write(oprot)
1575
      oprot.writeFieldEnd()
1576
    oprot.writeFieldStop()
1577
    oprot.writeStructEnd()
1578
 
3431 rajveer 1579
  def validate(self):
1580
    return
1581
 
1582
 
1422 varun.gupt 1583
  def __repr__(self):
1584
    L = ['%s=%r' % (key, value)
1585
      for key, value in self.__dict__.iteritems()]
1586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1587
 
1588
  def __eq__(self, other):
1589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1590
 
1591
  def __ne__(self, other):
1592
    return not (self == other)
1593
 
349 ashish 1594
class sendMail_args:
1595
  """
1596
  Attributes:
1597
   - mail
1598
  """
1599
 
1600
  thrift_spec = (
1601
    None, # 0
1602
    (1, TType.STRUCT, 'mail', (Mail, Mail.thrift_spec), None, ), # 1
1603
  )
1604
 
1605
  def __init__(self, mail=None,):
1606
    self.mail = mail
1607
 
1608
  def read(self, iprot):
1609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1611
      return
1612
    iprot.readStructBegin()
1613
    while True:
1614
      (fname, ftype, fid) = iprot.readFieldBegin()
1615
      if ftype == TType.STOP:
1616
        break
1617
      if fid == 1:
1618
        if ftype == TType.STRUCT:
1619
          self.mail = Mail()
1620
          self.mail.read(iprot)
1621
        else:
1622
          iprot.skip(ftype)
1623
      else:
1624
        iprot.skip(ftype)
1625
      iprot.readFieldEnd()
1626
    iprot.readStructEnd()
1627
 
1628
  def write(self, oprot):
1629
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1630
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1631
      return
1632
    oprot.writeStructBegin('sendMail_args')
3431 rajveer 1633
    if self.mail is not None:
349 ashish 1634
      oprot.writeFieldBegin('mail', TType.STRUCT, 1)
1635
      self.mail.write(oprot)
1636
      oprot.writeFieldEnd()
1637
    oprot.writeFieldStop()
1638
    oprot.writeStructEnd()
1639
 
3431 rajveer 1640
  def validate(self):
1641
    return
1642
 
1643
 
349 ashish 1644
  def __repr__(self):
1645
    L = ['%s=%r' % (key, value)
1646
      for key, value in self.__dict__.iteritems()]
1647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1648
 
1649
  def __eq__(self, other):
1650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1651
 
1652
  def __ne__(self, other):
1653
    return not (self == other)
1654
 
1655
class sendMail_result:
1656
  """
1657
  Attributes:
1658
   - se
1659
  """
1660
 
1661
  thrift_spec = (
1662
    None, # 0
1663
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
1664
  )
1665
 
1666
  def __init__(self, se=None,):
1667
    self.se = se
1668
 
1669
  def read(self, iprot):
1670
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1671
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1672
      return
1673
    iprot.readStructBegin()
1674
    while True:
1675
      (fname, ftype, fid) = iprot.readFieldBegin()
1676
      if ftype == TType.STOP:
1677
        break
1678
      if fid == 1:
1679
        if ftype == TType.STRUCT:
1680
          self.se = HelperServiceException()
1681
          self.se.read(iprot)
1682
        else:
1683
          iprot.skip(ftype)
1684
      else:
1685
        iprot.skip(ftype)
1686
      iprot.readFieldEnd()
1687
    iprot.readStructEnd()
1688
 
1689
  def write(self, oprot):
1690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1692
      return
1693
    oprot.writeStructBegin('sendMail_result')
3431 rajveer 1694
    if self.se is not None:
349 ashish 1695
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1696
      self.se.write(oprot)
1697
      oprot.writeFieldEnd()
1698
    oprot.writeFieldStop()
1699
    oprot.writeStructEnd()
1700
 
3431 rajveer 1701
  def validate(self):
1702
    return
1703
 
1704
 
349 ashish 1705
  def __repr__(self):
1706
    L = ['%s=%r' % (key, value)
1707
      for key, value in self.__dict__.iteritems()]
1708
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1709
 
1710
  def __eq__(self, other):
1711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1712
 
1713
  def __ne__(self, other):
1714
    return not (self == other)
1715
 
1716
class sendText_args:
1717
  """
1718
  Attributes:
1719
   - message
1720
  """
1721
 
1722
  thrift_spec = (
1723
    None, # 0
1724
    (1, TType.STRUCT, 'message', (TextMessage, TextMessage.thrift_spec), None, ), # 1
1725
  )
1726
 
1727
  def __init__(self, message=None,):
1728
    self.message = message
1729
 
1730
  def read(self, iprot):
1731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1733
      return
1734
    iprot.readStructBegin()
1735
    while True:
1736
      (fname, ftype, fid) = iprot.readFieldBegin()
1737
      if ftype == TType.STOP:
1738
        break
1739
      if fid == 1:
1740
        if ftype == TType.STRUCT:
1741
          self.message = TextMessage()
1742
          self.message.read(iprot)
1743
        else:
1744
          iprot.skip(ftype)
1745
      else:
1746
        iprot.skip(ftype)
1747
      iprot.readFieldEnd()
1748
    iprot.readStructEnd()
1749
 
1750
  def write(self, oprot):
1751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1753
      return
1754
    oprot.writeStructBegin('sendText_args')
3431 rajveer 1755
    if self.message is not None:
349 ashish 1756
      oprot.writeFieldBegin('message', TType.STRUCT, 1)
1757
      self.message.write(oprot)
1758
      oprot.writeFieldEnd()
1759
    oprot.writeFieldStop()
1760
    oprot.writeStructEnd()
1761
 
3431 rajveer 1762
  def validate(self):
1763
    return
1764
 
1765
 
349 ashish 1766
  def __repr__(self):
1767
    L = ['%s=%r' % (key, value)
1768
      for key, value in self.__dict__.iteritems()]
1769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1770
 
1771
  def __eq__(self, other):
1772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1773
 
1774
  def __ne__(self, other):
1775
    return not (self == other)
1776
 
1777
class sendText_result:
1778
  """
1779
  Attributes:
1780
   - se
1781
  """
1782
 
1783
  thrift_spec = (
1784
    None, # 0
1785
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
1786
  )
1787
 
1788
  def __init__(self, se=None,):
1789
    self.se = se
1790
 
1791
  def read(self, iprot):
1792
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1793
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1794
      return
1795
    iprot.readStructBegin()
1796
    while True:
1797
      (fname, ftype, fid) = iprot.readFieldBegin()
1798
      if ftype == TType.STOP:
1799
        break
1800
      if fid == 1:
1801
        if ftype == TType.STRUCT:
1802
          self.se = HelperServiceException()
1803
          self.se.read(iprot)
1804
        else:
1805
          iprot.skip(ftype)
1806
      else:
1807
        iprot.skip(ftype)
1808
      iprot.readFieldEnd()
1809
    iprot.readStructEnd()
1810
 
1811
  def write(self, oprot):
1812
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1813
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1814
      return
1815
    oprot.writeStructBegin('sendText_result')
3431 rajveer 1816
    if self.se is not None:
349 ashish 1817
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1818
      self.se.write(oprot)
1819
      oprot.writeFieldEnd()
1820
    oprot.writeFieldStop()
1821
    oprot.writeStructEnd()
1822
 
3431 rajveer 1823
  def validate(self):
1824
    return
1825
 
1826
 
349 ashish 1827
  def __repr__(self):
1828
    L = ['%s=%r' % (key, value)
1829
      for key, value in self.__dict__.iteritems()]
1830
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1831
 
1832
  def __eq__(self, other):
1833
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1834
 
1835
  def __ne__(self, other):
1836
    return not (self == other)
1837
 
1838
class addMessage_args:
1839
  """
1840
  Attributes:
1841
   - message
1842
  """
1843
 
1844
  thrift_spec = (
1845
    None, # 0
1846
    (1, TType.STRUCT, 'message', (Message, Message.thrift_spec), None, ), # 1
1847
  )
1848
 
1849
  def __init__(self, message=None,):
1850
    self.message = message
1851
 
1852
  def read(self, iprot):
1853
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1854
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1855
      return
1856
    iprot.readStructBegin()
1857
    while True:
1858
      (fname, ftype, fid) = iprot.readFieldBegin()
1859
      if ftype == TType.STOP:
1860
        break
1861
      if fid == 1:
1862
        if ftype == TType.STRUCT:
1863
          self.message = Message()
1864
          self.message.read(iprot)
1865
        else:
1866
          iprot.skip(ftype)
1867
      else:
1868
        iprot.skip(ftype)
1869
      iprot.readFieldEnd()
1870
    iprot.readStructEnd()
1871
 
1872
  def write(self, oprot):
1873
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1874
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1875
      return
1876
    oprot.writeStructBegin('addMessage_args')
3431 rajveer 1877
    if self.message is not None:
349 ashish 1878
      oprot.writeFieldBegin('message', TType.STRUCT, 1)
1879
      self.message.write(oprot)
1880
      oprot.writeFieldEnd()
1881
    oprot.writeFieldStop()
1882
    oprot.writeStructEnd()
1883
 
3431 rajveer 1884
  def validate(self):
1885
    return
1886
 
1887
 
349 ashish 1888
  def __repr__(self):
1889
    L = ['%s=%r' % (key, value)
1890
      for key, value in self.__dict__.iteritems()]
1891
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1892
 
1893
  def __eq__(self, other):
1894
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1895
 
1896
  def __ne__(self, other):
1897
    return not (self == other)
1898
 
1899
class addMessage_result:
1900
  """
1901
  Attributes:
1902
   - se
1903
  """
1904
 
1905
  thrift_spec = (
1906
    None, # 0
1907
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
1908
  )
1909
 
1910
  def __init__(self, se=None,):
1911
    self.se = se
1912
 
1913
  def read(self, iprot):
1914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1916
      return
1917
    iprot.readStructBegin()
1918
    while True:
1919
      (fname, ftype, fid) = iprot.readFieldBegin()
1920
      if ftype == TType.STOP:
1921
        break
1922
      if fid == 1:
1923
        if ftype == TType.STRUCT:
1924
          self.se = HelperServiceException()
1925
          self.se.read(iprot)
1926
        else:
1927
          iprot.skip(ftype)
1928
      else:
1929
        iprot.skip(ftype)
1930
      iprot.readFieldEnd()
1931
    iprot.readStructEnd()
1932
 
1933
  def write(self, oprot):
1934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1936
      return
1937
    oprot.writeStructBegin('addMessage_result')
3431 rajveer 1938
    if self.se is not None:
349 ashish 1939
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1940
      self.se.write(oprot)
1941
      oprot.writeFieldEnd()
1942
    oprot.writeFieldStop()
1943
    oprot.writeStructEnd()
1944
 
3431 rajveer 1945
  def validate(self):
1946
    return
1947
 
1948
 
349 ashish 1949
  def __repr__(self):
1950
    L = ['%s=%r' % (key, value)
1951
      for key, value in self.__dict__.iteritems()]
1952
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1953
 
1954
  def __eq__(self, other):
1955
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1956
 
1957
  def __ne__(self, other):
1958
    return not (self == other)
1959
 
1960
class updateMessage_args:
1961
  """
1962
  Attributes:
1963
   - id
1964
   - message
1965
  """
1966
 
1967
  thrift_spec = (
1968
    None, # 0
1969
    (1, TType.I64, 'id', None, None, ), # 1
1970
    (2, TType.STRING, 'message', None, None, ), # 2
1971
  )
1972
 
1973
  def __init__(self, id=None, message=None,):
1974
    self.id = id
1975
    self.message = message
1976
 
1977
  def read(self, iprot):
1978
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1979
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1980
      return
1981
    iprot.readStructBegin()
1982
    while True:
1983
      (fname, ftype, fid) = iprot.readFieldBegin()
1984
      if ftype == TType.STOP:
1985
        break
1986
      if fid == 1:
1987
        if ftype == TType.I64:
1988
          self.id = iprot.readI64();
1989
        else:
1990
          iprot.skip(ftype)
1991
      elif fid == 2:
1992
        if ftype == TType.STRING:
1993
          self.message = iprot.readString();
1994
        else:
1995
          iprot.skip(ftype)
1996
      else:
1997
        iprot.skip(ftype)
1998
      iprot.readFieldEnd()
1999
    iprot.readStructEnd()
2000
 
2001
  def write(self, oprot):
2002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2004
      return
2005
    oprot.writeStructBegin('updateMessage_args')
3431 rajveer 2006
    if self.id is not None:
349 ashish 2007
      oprot.writeFieldBegin('id', TType.I64, 1)
2008
      oprot.writeI64(self.id)
2009
      oprot.writeFieldEnd()
3431 rajveer 2010
    if self.message is not None:
349 ashish 2011
      oprot.writeFieldBegin('message', TType.STRING, 2)
2012
      oprot.writeString(self.message)
2013
      oprot.writeFieldEnd()
2014
    oprot.writeFieldStop()
2015
    oprot.writeStructEnd()
2016
 
3431 rajveer 2017
  def validate(self):
2018
    return
2019
 
2020
 
349 ashish 2021
  def __repr__(self):
2022
    L = ['%s=%r' % (key, value)
2023
      for key, value in self.__dict__.iteritems()]
2024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2025
 
2026
  def __eq__(self, other):
2027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2028
 
2029
  def __ne__(self, other):
2030
    return not (self == other)
2031
 
2032
class updateMessage_result:
2033
  """
2034
  Attributes:
2035
   - se
2036
  """
2037
 
2038
  thrift_spec = (
2039
    None, # 0
2040
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2041
  )
2042
 
2043
  def __init__(self, se=None,):
2044
    self.se = se
2045
 
2046
  def read(self, iprot):
2047
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2048
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2049
      return
2050
    iprot.readStructBegin()
2051
    while True:
2052
      (fname, ftype, fid) = iprot.readFieldBegin()
2053
      if ftype == TType.STOP:
2054
        break
2055
      if fid == 1:
2056
        if ftype == TType.STRUCT:
2057
          self.se = HelperServiceException()
2058
          self.se.read(iprot)
2059
        else:
2060
          iprot.skip(ftype)
2061
      else:
2062
        iprot.skip(ftype)
2063
      iprot.readFieldEnd()
2064
    iprot.readStructEnd()
2065
 
2066
  def write(self, oprot):
2067
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2068
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2069
      return
2070
    oprot.writeStructBegin('updateMessage_result')
3431 rajveer 2071
    if self.se is not None:
349 ashish 2072
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2073
      self.se.write(oprot)
2074
      oprot.writeFieldEnd()
2075
    oprot.writeFieldStop()
2076
    oprot.writeStructEnd()
2077
 
3431 rajveer 2078
  def validate(self):
2079
    return
2080
 
2081
 
349 ashish 2082
  def __repr__(self):
2083
    L = ['%s=%r' % (key, value)
2084
      for key, value in self.__dict__.iteritems()]
2085
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2086
 
2087
  def __eq__(self, other):
2088
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2089
 
2090
  def __ne__(self, other):
2091
    return not (self == other)
2092
 
2093
class getMessage_args:
2094
  """
2095
  Attributes:
2096
   - id
2097
  """
2098
 
2099
  thrift_spec = (
2100
    None, # 0
2101
    (1, TType.I64, 'id', None, None, ), # 1
2102
  )
2103
 
2104
  def __init__(self, id=None,):
2105
    self.id = id
2106
 
2107
  def read(self, iprot):
2108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2110
      return
2111
    iprot.readStructBegin()
2112
    while True:
2113
      (fname, ftype, fid) = iprot.readFieldBegin()
2114
      if ftype == TType.STOP:
2115
        break
2116
      if fid == 1:
2117
        if ftype == TType.I64:
2118
          self.id = iprot.readI64();
2119
        else:
2120
          iprot.skip(ftype)
2121
      else:
2122
        iprot.skip(ftype)
2123
      iprot.readFieldEnd()
2124
    iprot.readStructEnd()
2125
 
2126
  def write(self, oprot):
2127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2129
      return
2130
    oprot.writeStructBegin('getMessage_args')
3431 rajveer 2131
    if self.id is not None:
349 ashish 2132
      oprot.writeFieldBegin('id', TType.I64, 1)
2133
      oprot.writeI64(self.id)
2134
      oprot.writeFieldEnd()
2135
    oprot.writeFieldStop()
2136
    oprot.writeStructEnd()
2137
 
3431 rajveer 2138
  def validate(self):
2139
    return
2140
 
2141
 
349 ashish 2142
  def __repr__(self):
2143
    L = ['%s=%r' % (key, value)
2144
      for key, value in self.__dict__.iteritems()]
2145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2146
 
2147
  def __eq__(self, other):
2148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2149
 
2150
  def __ne__(self, other):
2151
    return not (self == other)
2152
 
2153
class getMessage_result:
2154
  """
2155
  Attributes:
353 ashish 2156
   - success
349 ashish 2157
   - se
2158
  """
2159
 
2160
  thrift_spec = (
353 ashish 2161
    (0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0
349 ashish 2162
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2163
  )
2164
 
353 ashish 2165
  def __init__(self, success=None, se=None,):
2166
    self.success = success
349 ashish 2167
    self.se = se
2168
 
2169
  def read(self, iprot):
2170
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2171
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2172
      return
2173
    iprot.readStructBegin()
2174
    while True:
2175
      (fname, ftype, fid) = iprot.readFieldBegin()
2176
      if ftype == TType.STOP:
2177
        break
353 ashish 2178
      if fid == 0:
349 ashish 2179
        if ftype == TType.STRUCT:
353 ashish 2180
          self.success = Message()
2181
          self.success.read(iprot)
2182
        else:
2183
          iprot.skip(ftype)
2184
      elif fid == 1:
2185
        if ftype == TType.STRUCT:
349 ashish 2186
          self.se = HelperServiceException()
2187
          self.se.read(iprot)
2188
        else:
2189
          iprot.skip(ftype)
2190
      else:
2191
        iprot.skip(ftype)
2192
      iprot.readFieldEnd()
2193
    iprot.readStructEnd()
2194
 
2195
  def write(self, oprot):
2196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2198
      return
2199
    oprot.writeStructBegin('getMessage_result')
3431 rajveer 2200
    if self.success is not None:
353 ashish 2201
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2202
      self.success.write(oprot)
2203
      oprot.writeFieldEnd()
3431 rajveer 2204
    if self.se is not None:
349 ashish 2205
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2206
      self.se.write(oprot)
2207
      oprot.writeFieldEnd()
2208
    oprot.writeFieldStop()
2209
    oprot.writeStructEnd()
2210
 
3431 rajveer 2211
  def validate(self):
2212
    return
2213
 
2214
 
349 ashish 2215
  def __repr__(self):
2216
    L = ['%s=%r' % (key, value)
2217
      for key, value in self.__dict__.iteritems()]
2218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2219
 
2220
  def __eq__(self, other):
2221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2222
 
2223
  def __ne__(self, other):
2224
    return not (self == other)
2225
 
2226
class getSubstitutedMessage_args:
2227
  """
2228
  Attributes:
2229
   - id
2230
   - params
2231
  """
2232
 
2233
  thrift_spec = (
2234
    None, # 0
2235
    (1, TType.I64, 'id', None, None, ), # 1
2236
    (2, TType.MAP, 'params', (TType.STRING,None,TType.STRING,None), None, ), # 2
2237
  )
2238
 
2239
  def __init__(self, id=None, params=None,):
2240
    self.id = id
2241
    self.params = params
2242
 
2243
  def read(self, iprot):
2244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2246
      return
2247
    iprot.readStructBegin()
2248
    while True:
2249
      (fname, ftype, fid) = iprot.readFieldBegin()
2250
      if ftype == TType.STOP:
2251
        break
2252
      if fid == 1:
2253
        if ftype == TType.I64:
2254
          self.id = iprot.readI64();
2255
        else:
2256
          iprot.skip(ftype)
2257
      elif fid == 2:
2258
        if ftype == TType.MAP:
2259
          self.params = {}
1422 varun.gupt 2260
          (_ktype22, _vtype23, _size21 ) = iprot.readMapBegin() 
2261
          for _i25 in xrange(_size21):
2262
            _key26 = iprot.readString();
2263
            _val27 = iprot.readString();
2264
            self.params[_key26] = _val27
349 ashish 2265
          iprot.readMapEnd()
2266
        else:
2267
          iprot.skip(ftype)
2268
      else:
2269
        iprot.skip(ftype)
2270
      iprot.readFieldEnd()
2271
    iprot.readStructEnd()
2272
 
2273
  def write(self, oprot):
2274
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2275
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2276
      return
2277
    oprot.writeStructBegin('getSubstitutedMessage_args')
3431 rajveer 2278
    if self.id is not None:
349 ashish 2279
      oprot.writeFieldBegin('id', TType.I64, 1)
2280
      oprot.writeI64(self.id)
2281
      oprot.writeFieldEnd()
3431 rajveer 2282
    if self.params is not None:
349 ashish 2283
      oprot.writeFieldBegin('params', TType.MAP, 2)
2284
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.params))
1422 varun.gupt 2285
      for kiter28,viter29 in self.params.items():
2286
        oprot.writeString(kiter28)
2287
        oprot.writeString(viter29)
349 ashish 2288
      oprot.writeMapEnd()
2289
      oprot.writeFieldEnd()
2290
    oprot.writeFieldStop()
2291
    oprot.writeStructEnd()
2292
 
3431 rajveer 2293
  def validate(self):
2294
    return
2295
 
2296
 
349 ashish 2297
  def __repr__(self):
2298
    L = ['%s=%r' % (key, value)
2299
      for key, value in self.__dict__.iteritems()]
2300
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2301
 
2302
  def __eq__(self, other):
2303
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2304
 
2305
  def __ne__(self, other):
2306
    return not (self == other)
2307
 
2308
class getSubstitutedMessage_result:
2309
  """
2310
  Attributes:
353 ashish 2311
   - success
349 ashish 2312
   - se
2313
  """
2314
 
2315
  thrift_spec = (
353 ashish 2316
    (0, TType.STRUCT, 'success', (Message, Message.thrift_spec), None, ), # 0
349 ashish 2317
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2318
  )
2319
 
353 ashish 2320
  def __init__(self, success=None, se=None,):
2321
    self.success = success
349 ashish 2322
    self.se = se
2323
 
2324
  def read(self, iprot):
2325
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2326
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2327
      return
2328
    iprot.readStructBegin()
2329
    while True:
2330
      (fname, ftype, fid) = iprot.readFieldBegin()
2331
      if ftype == TType.STOP:
2332
        break
353 ashish 2333
      if fid == 0:
349 ashish 2334
        if ftype == TType.STRUCT:
353 ashish 2335
          self.success = Message()
2336
          self.success.read(iprot)
2337
        else:
2338
          iprot.skip(ftype)
2339
      elif fid == 1:
2340
        if ftype == TType.STRUCT:
349 ashish 2341
          self.se = HelperServiceException()
2342
          self.se.read(iprot)
2343
        else:
2344
          iprot.skip(ftype)
2345
      else:
2346
        iprot.skip(ftype)
2347
      iprot.readFieldEnd()
2348
    iprot.readStructEnd()
2349
 
2350
  def write(self, oprot):
2351
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2352
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2353
      return
2354
    oprot.writeStructBegin('getSubstitutedMessage_result')
3431 rajveer 2355
    if self.success is not None:
353 ashish 2356
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2357
      self.success.write(oprot)
2358
      oprot.writeFieldEnd()
3431 rajveer 2359
    if self.se is not None:
349 ashish 2360
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2361
      self.se.write(oprot)
2362
      oprot.writeFieldEnd()
2363
    oprot.writeFieldStop()
2364
    oprot.writeStructEnd()
2365
 
3431 rajveer 2366
  def validate(self):
2367
    return
2368
 
2369
 
349 ashish 2370
  def __repr__(self):
2371
    L = ['%s=%r' % (key, value)
2372
      for key, value in self.__dict__.iteritems()]
2373
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2374
 
2375
  def __eq__(self, other):
2376
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2377
 
2378
  def __ne__(self, other):
2379
    return not (self == other)
2380
 
494 rajveer 2381
class addUser_args:
2382
  """
2383
  Attributes:
2384
   - username
2385
   - password
2386
   - warehouseId
2387
  """
349 ashish 2388
 
494 rajveer 2389
  thrift_spec = (
2390
    None, # 0
2391
    (1, TType.STRING, 'username', None, None, ), # 1
2392
    (2, TType.STRING, 'password', None, None, ), # 2
2393
    (3, TType.I64, 'warehouseId', None, None, ), # 3
2394
  )
2395
 
2396
  def __init__(self, username=None, password=None, warehouseId=None,):
2397
    self.username = username
2398
    self.password = password
2399
    self.warehouseId = warehouseId
2400
 
2401
  def read(self, iprot):
2402
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2403
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2404
      return
2405
    iprot.readStructBegin()
2406
    while True:
2407
      (fname, ftype, fid) = iprot.readFieldBegin()
2408
      if ftype == TType.STOP:
2409
        break
2410
      if fid == 1:
2411
        if ftype == TType.STRING:
2412
          self.username = iprot.readString();
2413
        else:
2414
          iprot.skip(ftype)
2415
      elif fid == 2:
2416
        if ftype == TType.STRING:
2417
          self.password = iprot.readString();
2418
        else:
2419
          iprot.skip(ftype)
2420
      elif fid == 3:
2421
        if ftype == TType.I64:
2422
          self.warehouseId = iprot.readI64();
2423
        else:
2424
          iprot.skip(ftype)
2425
      else:
2426
        iprot.skip(ftype)
2427
      iprot.readFieldEnd()
2428
    iprot.readStructEnd()
2429
 
2430
  def write(self, oprot):
2431
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2432
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2433
      return
2434
    oprot.writeStructBegin('addUser_args')
3431 rajveer 2435
    if self.username is not None:
494 rajveer 2436
      oprot.writeFieldBegin('username', TType.STRING, 1)
2437
      oprot.writeString(self.username)
2438
      oprot.writeFieldEnd()
3431 rajveer 2439
    if self.password is not None:
494 rajveer 2440
      oprot.writeFieldBegin('password', TType.STRING, 2)
2441
      oprot.writeString(self.password)
2442
      oprot.writeFieldEnd()
3431 rajveer 2443
    if self.warehouseId is not None:
494 rajveer 2444
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
2445
      oprot.writeI64(self.warehouseId)
2446
      oprot.writeFieldEnd()
2447
    oprot.writeFieldStop()
2448
    oprot.writeStructEnd()
2449
 
3431 rajveer 2450
  def validate(self):
2451
    return
2452
 
2453
 
494 rajveer 2454
  def __repr__(self):
2455
    L = ['%s=%r' % (key, value)
2456
      for key, value in self.__dict__.iteritems()]
2457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2458
 
2459
  def __eq__(self, other):
2460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2461
 
2462
  def __ne__(self, other):
2463
    return not (self == other)
2464
 
2465
class addUser_result:
2466
  """
2467
  Attributes:
2468
   - success
2469
   - se
2470
  """
2471
 
2472
  thrift_spec = (
2473
    (0, TType.BOOL, 'success', None, None, ), # 0
2474
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2475
  )
2476
 
2477
  def __init__(self, success=None, se=None,):
2478
    self.success = success
2479
    self.se = se
2480
 
2481
  def read(self, iprot):
2482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2484
      return
2485
    iprot.readStructBegin()
2486
    while True:
2487
      (fname, ftype, fid) = iprot.readFieldBegin()
2488
      if ftype == TType.STOP:
2489
        break
2490
      if fid == 0:
2491
        if ftype == TType.BOOL:
2492
          self.success = iprot.readBool();
2493
        else:
2494
          iprot.skip(ftype)
2495
      elif fid == 1:
2496
        if ftype == TType.STRUCT:
2497
          self.se = HelperServiceException()
2498
          self.se.read(iprot)
2499
        else:
2500
          iprot.skip(ftype)
2501
      else:
2502
        iprot.skip(ftype)
2503
      iprot.readFieldEnd()
2504
    iprot.readStructEnd()
2505
 
2506
  def write(self, oprot):
2507
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2508
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2509
      return
2510
    oprot.writeStructBegin('addUser_result')
3431 rajveer 2511
    if self.success is not None:
494 rajveer 2512
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2513
      oprot.writeBool(self.success)
2514
      oprot.writeFieldEnd()
3431 rajveer 2515
    if self.se is not None:
494 rajveer 2516
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2517
      self.se.write(oprot)
2518
      oprot.writeFieldEnd()
2519
    oprot.writeFieldStop()
2520
    oprot.writeStructEnd()
2521
 
3431 rajveer 2522
  def validate(self):
2523
    return
2524
 
2525
 
494 rajveer 2526
  def __repr__(self):
2527
    L = ['%s=%r' % (key, value)
2528
      for key, value in self.__dict__.iteritems()]
2529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2530
 
2531
  def __eq__(self, other):
2532
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2533
 
2534
  def __ne__(self, other):
2535
    return not (self == other)
2536
 
2537
class deleteUser_args:
2538
  """
2539
  Attributes:
2540
   - username
2541
  """
2542
 
2543
  thrift_spec = (
2544
    None, # 0
2545
    (1, TType.STRING, 'username', None, None, ), # 1
2546
  )
2547
 
2548
  def __init__(self, username=None,):
2549
    self.username = username
2550
 
2551
  def read(self, iprot):
2552
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2553
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2554
      return
2555
    iprot.readStructBegin()
2556
    while True:
2557
      (fname, ftype, fid) = iprot.readFieldBegin()
2558
      if ftype == TType.STOP:
2559
        break
2560
      if fid == 1:
2561
        if ftype == TType.STRING:
2562
          self.username = iprot.readString();
2563
        else:
2564
          iprot.skip(ftype)
2565
      else:
2566
        iprot.skip(ftype)
2567
      iprot.readFieldEnd()
2568
    iprot.readStructEnd()
2569
 
2570
  def write(self, oprot):
2571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2573
      return
2574
    oprot.writeStructBegin('deleteUser_args')
3431 rajveer 2575
    if self.username is not None:
494 rajveer 2576
      oprot.writeFieldBegin('username', TType.STRING, 1)
2577
      oprot.writeString(self.username)
2578
      oprot.writeFieldEnd()
2579
    oprot.writeFieldStop()
2580
    oprot.writeStructEnd()
2581
 
3431 rajveer 2582
  def validate(self):
2583
    return
2584
 
2585
 
494 rajveer 2586
  def __repr__(self):
2587
    L = ['%s=%r' % (key, value)
2588
      for key, value in self.__dict__.iteritems()]
2589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2590
 
2591
  def __eq__(self, other):
2592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2593
 
2594
  def __ne__(self, other):
2595
    return not (self == other)
2596
 
2597
class deleteUser_result:
2598
  """
2599
  Attributes:
2600
   - success
2601
   - se
2602
  """
2603
 
2604
  thrift_spec = (
2605
    (0, TType.BOOL, 'success', None, None, ), # 0
2606
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2607
  )
2608
 
2609
  def __init__(self, success=None, se=None,):
2610
    self.success = success
2611
    self.se = se
2612
 
2613
  def read(self, iprot):
2614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2616
      return
2617
    iprot.readStructBegin()
2618
    while True:
2619
      (fname, ftype, fid) = iprot.readFieldBegin()
2620
      if ftype == TType.STOP:
2621
        break
2622
      if fid == 0:
2623
        if ftype == TType.BOOL:
2624
          self.success = iprot.readBool();
2625
        else:
2626
          iprot.skip(ftype)
2627
      elif fid == 1:
2628
        if ftype == TType.STRUCT:
2629
          self.se = HelperServiceException()
2630
          self.se.read(iprot)
2631
        else:
2632
          iprot.skip(ftype)
2633
      else:
2634
        iprot.skip(ftype)
2635
      iprot.readFieldEnd()
2636
    iprot.readStructEnd()
2637
 
2638
  def write(self, oprot):
2639
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2640
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2641
      return
2642
    oprot.writeStructBegin('deleteUser_result')
3431 rajveer 2643
    if self.success is not None:
494 rajveer 2644
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2645
      oprot.writeBool(self.success)
2646
      oprot.writeFieldEnd()
3431 rajveer 2647
    if self.se is not None:
494 rajveer 2648
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2649
      self.se.write(oprot)
2650
      oprot.writeFieldEnd()
2651
    oprot.writeFieldStop()
2652
    oprot.writeStructEnd()
2653
 
3431 rajveer 2654
  def validate(self):
2655
    return
2656
 
2657
 
494 rajveer 2658
  def __repr__(self):
2659
    L = ['%s=%r' % (key, value)
2660
      for key, value in self.__dict__.iteritems()]
2661
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2662
 
2663
  def __eq__(self, other):
2664
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2665
 
2666
  def __ne__(self, other):
2667
    return not (self == other)
2668
 
2447 chandransh 2669
class authenticateDashboardUser_args:
494 rajveer 2670
  """
2671
  Attributes:
2672
   - username
2673
   - password
2674
  """
2675
 
2676
  thrift_spec = (
2677
    None, # 0
2678
    (1, TType.STRING, 'username', None, None, ), # 1
2679
    (2, TType.STRING, 'password', None, None, ), # 2
2680
  )
2681
 
2682
  def __init__(self, username=None, password=None,):
2683
    self.username = username
2684
    self.password = password
2685
 
2686
  def read(self, iprot):
2687
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2688
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2689
      return
2690
    iprot.readStructBegin()
2691
    while True:
2692
      (fname, ftype, fid) = iprot.readFieldBegin()
2693
      if ftype == TType.STOP:
2694
        break
2695
      if fid == 1:
2696
        if ftype == TType.STRING:
2697
          self.username = iprot.readString();
2698
        else:
2699
          iprot.skip(ftype)
2700
      elif fid == 2:
2701
        if ftype == TType.STRING:
2702
          self.password = iprot.readString();
2703
        else:
2704
          iprot.skip(ftype)
2705
      else:
2706
        iprot.skip(ftype)
2707
      iprot.readFieldEnd()
2708
    iprot.readStructEnd()
2709
 
2710
  def write(self, oprot):
2711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2713
      return
2447 chandransh 2714
    oprot.writeStructBegin('authenticateDashboardUser_args')
3431 rajveer 2715
    if self.username is not None:
494 rajveer 2716
      oprot.writeFieldBegin('username', TType.STRING, 1)
2717
      oprot.writeString(self.username)
2718
      oprot.writeFieldEnd()
3431 rajveer 2719
    if self.password is not None:
494 rajveer 2720
      oprot.writeFieldBegin('password', TType.STRING, 2)
2721
      oprot.writeString(self.password)
2722
      oprot.writeFieldEnd()
2723
    oprot.writeFieldStop()
2724
    oprot.writeStructEnd()
2725
 
3431 rajveer 2726
  def validate(self):
2727
    return
2728
 
2729
 
494 rajveer 2730
  def __repr__(self):
2731
    L = ['%s=%r' % (key, value)
2732
      for key, value in self.__dict__.iteritems()]
2733
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2734
 
2735
  def __eq__(self, other):
2736
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2737
 
2738
  def __ne__(self, other):
2739
    return not (self == other)
2740
 
2447 chandransh 2741
class authenticateDashboardUser_result:
494 rajveer 2742
  """
2743
  Attributes:
2744
   - success
2745
   - se
2746
  """
2747
 
2748
  thrift_spec = (
2447 chandransh 2749
    (0, TType.STRUCT, 'success', (DashboardUser, DashboardUser.thrift_spec), None, ), # 0
494 rajveer 2750
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2751
  )
2752
 
2753
  def __init__(self, success=None, se=None,):
2754
    self.success = success
2755
    self.se = se
2756
 
2757
  def read(self, iprot):
2758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2760
      return
2761
    iprot.readStructBegin()
2762
    while True:
2763
      (fname, ftype, fid) = iprot.readFieldBegin()
2764
      if ftype == TType.STOP:
2765
        break
2766
      if fid == 0:
2447 chandransh 2767
        if ftype == TType.STRUCT:
2768
          self.success = DashboardUser()
2769
          self.success.read(iprot)
494 rajveer 2770
        else:
2771
          iprot.skip(ftype)
2772
      elif fid == 1:
2773
        if ftype == TType.STRUCT:
2774
          self.se = HelperServiceException()
2775
          self.se.read(iprot)
2776
        else:
2777
          iprot.skip(ftype)
2778
      else:
2779
        iprot.skip(ftype)
2780
      iprot.readFieldEnd()
2781
    iprot.readStructEnd()
2782
 
2783
  def write(self, oprot):
2784
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2785
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2786
      return
2447 chandransh 2787
    oprot.writeStructBegin('authenticateDashboardUser_result')
3431 rajveer 2788
    if self.success is not None:
2447 chandransh 2789
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2790
      self.success.write(oprot)
494 rajveer 2791
      oprot.writeFieldEnd()
3431 rajveer 2792
    if self.se is not None:
494 rajveer 2793
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2794
      self.se.write(oprot)
2795
      oprot.writeFieldEnd()
2796
    oprot.writeFieldStop()
2797
    oprot.writeStructEnd()
2798
 
3431 rajveer 2799
  def validate(self):
2800
    return
2801
 
2802
 
494 rajveer 2803
  def __repr__(self):
2804
    L = ['%s=%r' % (key, value)
2805
      for key, value in self.__dict__.iteritems()]
2806
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2807
 
2808
  def __eq__(self, other):
2809
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2810
 
2811
  def __ne__(self, other):
2812
    return not (self == other)
2813
 
2814
class updatePassword_args:
2815
  """
2816
  Attributes:
2817
   - username
2818
   - oldPassword
2819
   - newPassword
2820
  """
2821
 
2822
  thrift_spec = (
2823
    None, # 0
2824
    (1, TType.STRING, 'username', None, None, ), # 1
2825
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
2826
    (3, TType.STRING, 'newPassword', None, None, ), # 3
2827
  )
2828
 
2829
  def __init__(self, username=None, oldPassword=None, newPassword=None,):
2830
    self.username = username
2831
    self.oldPassword = oldPassword
2832
    self.newPassword = newPassword
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.STRING:
2845
          self.username = iprot.readString();
2846
        else:
2847
          iprot.skip(ftype)
2848
      elif fid == 2:
2849
        if ftype == TType.STRING:
2850
          self.oldPassword = iprot.readString();
2851
        else:
2852
          iprot.skip(ftype)
2853
      elif fid == 3:
2854
        if ftype == TType.STRING:
2855
          self.newPassword = iprot.readString();
2856
        else:
2857
          iprot.skip(ftype)
2858
      else:
2859
        iprot.skip(ftype)
2860
      iprot.readFieldEnd()
2861
    iprot.readStructEnd()
2862
 
2863
  def write(self, oprot):
2864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2866
      return
2867
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 2868
    if self.username is not None:
494 rajveer 2869
      oprot.writeFieldBegin('username', TType.STRING, 1)
2870
      oprot.writeString(self.username)
2871
      oprot.writeFieldEnd()
3431 rajveer 2872
    if self.oldPassword is not None:
494 rajveer 2873
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
2874
      oprot.writeString(self.oldPassword)
2875
      oprot.writeFieldEnd()
3431 rajveer 2876
    if self.newPassword is not None:
494 rajveer 2877
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
2878
      oprot.writeString(self.newPassword)
2879
      oprot.writeFieldEnd()
2880
    oprot.writeFieldStop()
2881
    oprot.writeStructEnd()
2882
 
3431 rajveer 2883
  def validate(self):
2884
    return
2885
 
2886
 
494 rajveer 2887
  def __repr__(self):
2888
    L = ['%s=%r' % (key, value)
2889
      for key, value in self.__dict__.iteritems()]
2890
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2891
 
2892
  def __eq__(self, other):
2893
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2894
 
2895
  def __ne__(self, other):
2896
    return not (self == other)
2897
 
2898
class updatePassword_result:
2899
  """
2900
  Attributes:
2901
   - success
2902
   - se
2903
  """
2904
 
2905
  thrift_spec = (
2906
    (0, TType.BOOL, 'success', None, None, ), # 0
2907
    (1, TType.STRUCT, 'se', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
2908
  )
2909
 
2910
  def __init__(self, success=None, se=None,):
2911
    self.success = success
2912
    self.se = se
2913
 
2914
  def read(self, iprot):
2915
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2916
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2917
      return
2918
    iprot.readStructBegin()
2919
    while True:
2920
      (fname, ftype, fid) = iprot.readFieldBegin()
2921
      if ftype == TType.STOP:
2922
        break
2923
      if fid == 0:
2924
        if ftype == TType.BOOL:
2925
          self.success = iprot.readBool();
2926
        else:
2927
          iprot.skip(ftype)
2928
      elif fid == 1:
2929
        if ftype == TType.STRUCT:
2930
          self.se = HelperServiceException()
2931
          self.se.read(iprot)
2932
        else:
2933
          iprot.skip(ftype)
2934
      else:
2935
        iprot.skip(ftype)
2936
      iprot.readFieldEnd()
2937
    iprot.readStructEnd()
2938
 
2939
  def write(self, oprot):
2940
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2941
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2942
      return
2943
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 2944
    if self.success is not None:
494 rajveer 2945
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2946
      oprot.writeBool(self.success)
2947
      oprot.writeFieldEnd()
3431 rajveer 2948
    if self.se is not None:
494 rajveer 2949
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2950
      self.se.write(oprot)
2951
      oprot.writeFieldEnd()
2952
    oprot.writeFieldStop()
2953
    oprot.writeStructEnd()
2954
 
3431 rajveer 2955
  def validate(self):
2956
    return
2957
 
2958
 
494 rajveer 2959
  def __repr__(self):
2960
    L = ['%s=%r' % (key, value)
2961
      for key, value in self.__dict__.iteritems()]
2962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2963
 
2964
  def __eq__(self, other):
2965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2966
 
2967
  def __ne__(self, other):
2968
    return not (self == other)
2969
 
759 chandransh 2970
class authenticateLogisticsUser_args:
2971
  """
2972
  Attributes:
2973
   - username
2974
   - password
2975
  """
494 rajveer 2976
 
759 chandransh 2977
  thrift_spec = (
2978
    None, # 0
2979
    (1, TType.STRING, 'username', None, None, ), # 1
2980
    (2, TType.STRING, 'password', None, None, ), # 2
2981
  )
2982
 
2983
  def __init__(self, username=None, password=None,):
2984
    self.username = username
2985
    self.password = password
2986
 
2987
  def read(self, iprot):
2988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2990
      return
2991
    iprot.readStructBegin()
2992
    while True:
2993
      (fname, ftype, fid) = iprot.readFieldBegin()
2994
      if ftype == TType.STOP:
2995
        break
2996
      if fid == 1:
2997
        if ftype == TType.STRING:
2998
          self.username = iprot.readString();
2999
        else:
3000
          iprot.skip(ftype)
3001
      elif fid == 2:
3002
        if ftype == TType.STRING:
3003
          self.password = iprot.readString();
3004
        else:
3005
          iprot.skip(ftype)
3006
      else:
3007
        iprot.skip(ftype)
3008
      iprot.readFieldEnd()
3009
    iprot.readStructEnd()
3010
 
3011
  def write(self, oprot):
3012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3014
      return
3015
    oprot.writeStructBegin('authenticateLogisticsUser_args')
3431 rajveer 3016
    if self.username is not None:
759 chandransh 3017
      oprot.writeFieldBegin('username', TType.STRING, 1)
3018
      oprot.writeString(self.username)
3019
      oprot.writeFieldEnd()
3431 rajveer 3020
    if self.password is not None:
759 chandransh 3021
      oprot.writeFieldBegin('password', TType.STRING, 2)
3022
      oprot.writeString(self.password)
3023
      oprot.writeFieldEnd()
3024
    oprot.writeFieldStop()
3025
    oprot.writeStructEnd()
3026
 
3431 rajveer 3027
  def validate(self):
3028
    return
3029
 
3030
 
759 chandransh 3031
  def __repr__(self):
3032
    L = ['%s=%r' % (key, value)
3033
      for key, value in self.__dict__.iteritems()]
3034
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3035
 
3036
  def __eq__(self, other):
3037
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3038
 
3039
  def __ne__(self, other):
3040
    return not (self == other)
3041
 
3042
class authenticateLogisticsUser_result:
3043
  """
3044
  Attributes:
3045
   - success
3046
   - hse
3047
  """
3048
 
3049
  thrift_spec = (
3050
    (0, TType.STRUCT, 'success', (LogisticsUser, LogisticsUser.thrift_spec), None, ), # 0
3051
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3052
  )
3053
 
3054
  def __init__(self, success=None, hse=None,):
3055
    self.success = success
3056
    self.hse = hse
3057
 
3058
  def read(self, iprot):
3059
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3060
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3061
      return
3062
    iprot.readStructBegin()
3063
    while True:
3064
      (fname, ftype, fid) = iprot.readFieldBegin()
3065
      if ftype == TType.STOP:
3066
        break
3067
      if fid == 0:
3068
        if ftype == TType.STRUCT:
3069
          self.success = LogisticsUser()
3070
          self.success.read(iprot)
3071
        else:
3072
          iprot.skip(ftype)
3073
      elif fid == 1:
3074
        if ftype == TType.STRUCT:
3075
          self.hse = HelperServiceException()
3076
          self.hse.read(iprot)
3077
        else:
3078
          iprot.skip(ftype)
3079
      else:
3080
        iprot.skip(ftype)
3081
      iprot.readFieldEnd()
3082
    iprot.readStructEnd()
3083
 
3084
  def write(self, oprot):
3085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3087
      return
3088
    oprot.writeStructBegin('authenticateLogisticsUser_result')
3431 rajveer 3089
    if self.success is not None:
759 chandransh 3090
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3091
      self.success.write(oprot)
3092
      oprot.writeFieldEnd()
3431 rajveer 3093
    if self.hse is not None:
759 chandransh 3094
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3095
      self.hse.write(oprot)
3096
      oprot.writeFieldEnd()
3097
    oprot.writeFieldStop()
3098
    oprot.writeStructEnd()
3099
 
3431 rajveer 3100
  def validate(self):
3101
    return
3102
 
3103
 
759 chandransh 3104
  def __repr__(self):
3105
    L = ['%s=%r' % (key, value)
3106
      for key, value in self.__dict__.iteritems()]
3107
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3108
 
3109
  def __eq__(self, other):
3110
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3111
 
3112
  def __ne__(self, other):
3113
    return not (self == other)
3114
 
1610 ankur.sing 3115
class authenticateStatisticsUser_args:
3116
  """
3117
  Attributes:
3118
   - username
3119
   - password
3120
  """
759 chandransh 3121
 
1610 ankur.sing 3122
  thrift_spec = (
3123
    None, # 0
3124
    (1, TType.STRING, 'username', None, None, ), # 1
3125
    (2, TType.STRING, 'password', None, None, ), # 2
3126
  )
3127
 
3128
  def __init__(self, username=None, password=None,):
3129
    self.username = username
3130
    self.password = password
3131
 
3132
  def read(self, iprot):
3133
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3134
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3135
      return
3136
    iprot.readStructBegin()
3137
    while True:
3138
      (fname, ftype, fid) = iprot.readFieldBegin()
3139
      if ftype == TType.STOP:
3140
        break
3141
      if fid == 1:
3142
        if ftype == TType.STRING:
3143
          self.username = iprot.readString();
3144
        else:
3145
          iprot.skip(ftype)
3146
      elif fid == 2:
3147
        if ftype == TType.STRING:
3148
          self.password = iprot.readString();
3149
        else:
3150
          iprot.skip(ftype)
3151
      else:
3152
        iprot.skip(ftype)
3153
      iprot.readFieldEnd()
3154
    iprot.readStructEnd()
3155
 
3156
  def write(self, oprot):
3157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3159
      return
3160
    oprot.writeStructBegin('authenticateStatisticsUser_args')
3431 rajveer 3161
    if self.username is not None:
1610 ankur.sing 3162
      oprot.writeFieldBegin('username', TType.STRING, 1)
3163
      oprot.writeString(self.username)
3164
      oprot.writeFieldEnd()
3431 rajveer 3165
    if self.password is not None:
1610 ankur.sing 3166
      oprot.writeFieldBegin('password', TType.STRING, 2)
3167
      oprot.writeString(self.password)
3168
      oprot.writeFieldEnd()
3169
    oprot.writeFieldStop()
3170
    oprot.writeStructEnd()
3171
 
3431 rajveer 3172
  def validate(self):
3173
    return
3174
 
3175
 
1610 ankur.sing 3176
  def __repr__(self):
3177
    L = ['%s=%r' % (key, value)
3178
      for key, value in self.__dict__.iteritems()]
3179
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3180
 
3181
  def __eq__(self, other):
3182
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3183
 
3184
  def __ne__(self, other):
3185
    return not (self == other)
3186
 
3187
class authenticateStatisticsUser_result:
3188
  """
3189
  Attributes:
3190
   - success
3191
   - hse
3192
  """
3193
 
3194
  thrift_spec = (
3195
    (0, TType.STRUCT, 'success', (StatisticsUser, StatisticsUser.thrift_spec), None, ), # 0
3196
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3197
  )
3198
 
3199
  def __init__(self, success=None, hse=None,):
3200
    self.success = success
3201
    self.hse = hse
3202
 
3203
  def read(self, iprot):
3204
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3205
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3206
      return
3207
    iprot.readStructBegin()
3208
    while True:
3209
      (fname, ftype, fid) = iprot.readFieldBegin()
3210
      if ftype == TType.STOP:
3211
        break
3212
      if fid == 0:
3213
        if ftype == TType.STRUCT:
3214
          self.success = StatisticsUser()
3215
          self.success.read(iprot)
3216
        else:
3217
          iprot.skip(ftype)
3218
      elif fid == 1:
3219
        if ftype == TType.STRUCT:
3220
          self.hse = HelperServiceException()
3221
          self.hse.read(iprot)
3222
        else:
3223
          iprot.skip(ftype)
3224
      else:
3225
        iprot.skip(ftype)
3226
      iprot.readFieldEnd()
3227
    iprot.readStructEnd()
3228
 
3229
  def write(self, oprot):
3230
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3231
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3232
      return
3233
    oprot.writeStructBegin('authenticateStatisticsUser_result')
3431 rajveer 3234
    if self.success is not None:
1610 ankur.sing 3235
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3236
      self.success.write(oprot)
3237
      oprot.writeFieldEnd()
3431 rajveer 3238
    if self.hse is not None:
1610 ankur.sing 3239
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3240
      self.hse.write(oprot)
3241
      oprot.writeFieldEnd()
3242
    oprot.writeFieldStop()
3243
    oprot.writeStructEnd()
3244
 
3431 rajveer 3245
  def validate(self):
3246
    return
3247
 
3248
 
1610 ankur.sing 3249
  def __repr__(self):
3250
    L = ['%s=%r' % (key, value)
3251
      for key, value in self.__dict__.iteritems()]
3252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3253
 
3254
  def __eq__(self, other):
3255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3256
 
3257
  def __ne__(self, other):
3258
    return not (self == other)
3259
 
1891 ankur.sing 3260
class authenticateReportUser_args:
3261
  """
3262
  Attributes:
3263
   - username
3264
   - password
3265
  """
1610 ankur.sing 3266
 
1891 ankur.sing 3267
  thrift_spec = (
3268
    None, # 0
3269
    (1, TType.STRING, 'username', None, None, ), # 1
3270
    (2, TType.STRING, 'password', None, None, ), # 2
3271
  )
3272
 
3273
  def __init__(self, username=None, password=None,):
3274
    self.username = username
3275
    self.password = password
3276
 
3277
  def read(self, iprot):
3278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3280
      return
3281
    iprot.readStructBegin()
3282
    while True:
3283
      (fname, ftype, fid) = iprot.readFieldBegin()
3284
      if ftype == TType.STOP:
3285
        break
3286
      if fid == 1:
3287
        if ftype == TType.STRING:
3288
          self.username = iprot.readString();
3289
        else:
3290
          iprot.skip(ftype)
3291
      elif fid == 2:
3292
        if ftype == TType.STRING:
3293
          self.password = iprot.readString();
3294
        else:
3295
          iprot.skip(ftype)
3296
      else:
3297
        iprot.skip(ftype)
3298
      iprot.readFieldEnd()
3299
    iprot.readStructEnd()
3300
 
3301
  def write(self, oprot):
3302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3304
      return
3305
    oprot.writeStructBegin('authenticateReportUser_args')
3431 rajveer 3306
    if self.username is not None:
1891 ankur.sing 3307
      oprot.writeFieldBegin('username', TType.STRING, 1)
3308
      oprot.writeString(self.username)
3309
      oprot.writeFieldEnd()
3431 rajveer 3310
    if self.password is not None:
1891 ankur.sing 3311
      oprot.writeFieldBegin('password', TType.STRING, 2)
3312
      oprot.writeString(self.password)
3313
      oprot.writeFieldEnd()
3314
    oprot.writeFieldStop()
3315
    oprot.writeStructEnd()
3316
 
3431 rajveer 3317
  def validate(self):
3318
    return
3319
 
3320
 
1891 ankur.sing 3321
  def __repr__(self):
3322
    L = ['%s=%r' % (key, value)
3323
      for key, value in self.__dict__.iteritems()]
3324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3325
 
3326
  def __eq__(self, other):
3327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3328
 
3329
  def __ne__(self, other):
3330
    return not (self == other)
3331
 
3332
class authenticateReportUser_result:
3333
  """
3334
  Attributes:
3335
   - success
3336
   - hse
3337
  """
3338
 
3339
  thrift_spec = (
3340
    (0, TType.STRUCT, 'success', (ReportUser, ReportUser.thrift_spec), None, ), # 0
3341
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3342
  )
3343
 
3344
  def __init__(self, success=None, hse=None,):
3345
    self.success = success
3346
    self.hse = hse
3347
 
3348
  def read(self, iprot):
3349
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3350
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3351
      return
3352
    iprot.readStructBegin()
3353
    while True:
3354
      (fname, ftype, fid) = iprot.readFieldBegin()
3355
      if ftype == TType.STOP:
3356
        break
3357
      if fid == 0:
3358
        if ftype == TType.STRUCT:
3359
          self.success = ReportUser()
3360
          self.success.read(iprot)
3361
        else:
3362
          iprot.skip(ftype)
3363
      elif fid == 1:
3364
        if ftype == TType.STRUCT:
3365
          self.hse = HelperServiceException()
3366
          self.hse.read(iprot)
3367
        else:
3368
          iprot.skip(ftype)
3369
      else:
3370
        iprot.skip(ftype)
3371
      iprot.readFieldEnd()
3372
    iprot.readStructEnd()
3373
 
3374
  def write(self, oprot):
3375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3377
      return
3378
    oprot.writeStructBegin('authenticateReportUser_result')
3431 rajveer 3379
    if self.success is not None:
1891 ankur.sing 3380
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3381
      self.success.write(oprot)
3382
      oprot.writeFieldEnd()
3431 rajveer 3383
    if self.hse is not None:
1891 ankur.sing 3384
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3385
      self.hse.write(oprot)
3386
      oprot.writeFieldEnd()
3387
    oprot.writeFieldStop()
3388
    oprot.writeStructEnd()
3389
 
3431 rajveer 3390
  def validate(self):
3391
    return
3392
 
3393
 
1891 ankur.sing 3394
  def __repr__(self):
3395
    L = ['%s=%r' % (key, value)
3396
      for key, value in self.__dict__.iteritems()]
3397
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3398
 
3399
  def __eq__(self, other):
3400
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3401
 
3402
  def __ne__(self, other):
3403
    return not (self == other)
3404
 
3405
class getReports_args:
3406
  """
3407
  Attributes:
3408
   - role
3409
  """
3410
 
3411
  thrift_spec = (
3412
    None, # 0
3413
    (1, TType.I64, 'role', None, None, ), # 1
3414
  )
3415
 
3416
  def __init__(self, role=None,):
3417
    self.role = role
3418
 
3419
  def read(self, iprot):
3420
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3421
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3422
      return
3423
    iprot.readStructBegin()
3424
    while True:
3425
      (fname, ftype, fid) = iprot.readFieldBegin()
3426
      if ftype == TType.STOP:
3427
        break
3428
      if fid == 1:
3429
        if ftype == TType.I64:
3430
          self.role = iprot.readI64();
3431
        else:
3432
          iprot.skip(ftype)
3433
      else:
3434
        iprot.skip(ftype)
3435
      iprot.readFieldEnd()
3436
    iprot.readStructEnd()
3437
 
3438
  def write(self, oprot):
3439
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3440
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3441
      return
3442
    oprot.writeStructBegin('getReports_args')
3431 rajveer 3443
    if self.role is not None:
1891 ankur.sing 3444
      oprot.writeFieldBegin('role', TType.I64, 1)
3445
      oprot.writeI64(self.role)
3446
      oprot.writeFieldEnd()
3447
    oprot.writeFieldStop()
3448
    oprot.writeStructEnd()
3449
 
3431 rajveer 3450
  def validate(self):
3451
    return
3452
 
3453
 
1891 ankur.sing 3454
  def __repr__(self):
3455
    L = ['%s=%r' % (key, value)
3456
      for key, value in self.__dict__.iteritems()]
3457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3458
 
3459
  def __eq__(self, other):
3460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3461
 
3462
  def __ne__(self, other):
3463
    return not (self == other)
3464
 
3465
class getReports_result:
3466
  """
3467
  Attributes:
3468
   - success
3469
  """
3470
 
3471
  thrift_spec = (
3472
    (0, TType.LIST, 'success', (TType.STRUCT,(Report, Report.thrift_spec)), None, ), # 0
3473
  )
3474
 
3475
  def __init__(self, success=None,):
3476
    self.success = success
3477
 
3478
  def read(self, iprot):
3479
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3480
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3481
      return
3482
    iprot.readStructBegin()
3483
    while True:
3484
      (fname, ftype, fid) = iprot.readFieldBegin()
3485
      if ftype == TType.STOP:
3486
        break
3487
      if fid == 0:
3488
        if ftype == TType.LIST:
3489
          self.success = []
3490
          (_etype33, _size30) = iprot.readListBegin()
3491
          for _i34 in xrange(_size30):
3492
            _elem35 = Report()
3493
            _elem35.read(iprot)
3494
            self.success.append(_elem35)
3495
          iprot.readListEnd()
3496
        else:
3497
          iprot.skip(ftype)
3498
      else:
3499
        iprot.skip(ftype)
3500
      iprot.readFieldEnd()
3501
    iprot.readStructEnd()
3502
 
3503
  def write(self, oprot):
3504
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3505
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3506
      return
3507
    oprot.writeStructBegin('getReports_result')
3431 rajveer 3508
    if self.success is not None:
1891 ankur.sing 3509
      oprot.writeFieldBegin('success', TType.LIST, 0)
3510
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3511
      for iter36 in self.success:
3512
        iter36.write(oprot)
3513
      oprot.writeListEnd()
3514
      oprot.writeFieldEnd()
3515
    oprot.writeFieldStop()
3516
    oprot.writeStructEnd()
3517
 
3431 rajveer 3518
  def validate(self):
3519
    return
3520
 
3521
 
1891 ankur.sing 3522
  def __repr__(self):
3523
    L = ['%s=%r' % (key, value)
3524
      for key, value in self.__dict__.iteritems()]
3525
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3526
 
3527
  def __eq__(self, other):
3528
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3529
 
3530
  def __ne__(self, other):
3531
    return not (self == other)
3532
 
2025 ankur.sing 3533
class authenticateCatalogUser_args:
3534
  """
3535
  Attributes:
3536
   - username
3537
   - password
2358 ankur.sing 3538
   - role
2025 ankur.sing 3539
  """
1891 ankur.sing 3540
 
2025 ankur.sing 3541
  thrift_spec = (
3542
    None, # 0
3543
    (1, TType.STRING, 'username', None, None, ), # 1
3544
    (2, TType.STRING, 'password', None, None, ), # 2
2358 ankur.sing 3545
    (3, TType.I64, 'role', None, None, ), # 3
2025 ankur.sing 3546
  )
3547
 
2358 ankur.sing 3548
  def __init__(self, username=None, password=None, role=None,):
2025 ankur.sing 3549
    self.username = username
3550
    self.password = password
2358 ankur.sing 3551
    self.role = role
2025 ankur.sing 3552
 
3553
  def read(self, iprot):
3554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3556
      return
3557
    iprot.readStructBegin()
3558
    while True:
3559
      (fname, ftype, fid) = iprot.readFieldBegin()
3560
      if ftype == TType.STOP:
3561
        break
3562
      if fid == 1:
3563
        if ftype == TType.STRING:
3564
          self.username = iprot.readString();
3565
        else:
3566
          iprot.skip(ftype)
3567
      elif fid == 2:
3568
        if ftype == TType.STRING:
3569
          self.password = iprot.readString();
3570
        else:
3571
          iprot.skip(ftype)
2358 ankur.sing 3572
      elif fid == 3:
3573
        if ftype == TType.I64:
3574
          self.role = iprot.readI64();
3575
        else:
3576
          iprot.skip(ftype)
2025 ankur.sing 3577
      else:
3578
        iprot.skip(ftype)
3579
      iprot.readFieldEnd()
3580
    iprot.readStructEnd()
3581
 
3582
  def write(self, oprot):
3583
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3584
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3585
      return
3586
    oprot.writeStructBegin('authenticateCatalogUser_args')
3431 rajveer 3587
    if self.username is not None:
2025 ankur.sing 3588
      oprot.writeFieldBegin('username', TType.STRING, 1)
3589
      oprot.writeString(self.username)
3590
      oprot.writeFieldEnd()
3431 rajveer 3591
    if self.password is not None:
2025 ankur.sing 3592
      oprot.writeFieldBegin('password', TType.STRING, 2)
3593
      oprot.writeString(self.password)
3594
      oprot.writeFieldEnd()
3431 rajveer 3595
    if self.role is not None:
2358 ankur.sing 3596
      oprot.writeFieldBegin('role', TType.I64, 3)
3597
      oprot.writeI64(self.role)
3598
      oprot.writeFieldEnd()
2025 ankur.sing 3599
    oprot.writeFieldStop()
3600
    oprot.writeStructEnd()
3601
 
3431 rajveer 3602
  def validate(self):
3603
    return
3604
 
3605
 
2025 ankur.sing 3606
  def __repr__(self):
3607
    L = ['%s=%r' % (key, value)
3608
      for key, value in self.__dict__.iteritems()]
3609
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3610
 
3611
  def __eq__(self, other):
3612
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3613
 
3614
  def __ne__(self, other):
3615
    return not (self == other)
3616
 
3617
class authenticateCatalogUser_result:
3618
  """
3619
  Attributes:
3620
   - success
3621
   - hse
3622
  """
3623
 
3624
  thrift_spec = (
3625
    (0, TType.STRUCT, 'success', (CatalogDashboardUser, CatalogDashboardUser.thrift_spec), None, ), # 0
3626
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3627
  )
3628
 
3629
  def __init__(self, success=None, hse=None,):
3630
    self.success = success
3631
    self.hse = hse
3632
 
3633
  def read(self, iprot):
3634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3636
      return
3637
    iprot.readStructBegin()
3638
    while True:
3639
      (fname, ftype, fid) = iprot.readFieldBegin()
3640
      if ftype == TType.STOP:
3641
        break
3642
      if fid == 0:
3643
        if ftype == TType.STRUCT:
3644
          self.success = CatalogDashboardUser()
3645
          self.success.read(iprot)
3646
        else:
3647
          iprot.skip(ftype)
3648
      elif fid == 1:
3649
        if ftype == TType.STRUCT:
3650
          self.hse = HelperServiceException()
3651
          self.hse.read(iprot)
3652
        else:
3653
          iprot.skip(ftype)
3654
      else:
3655
        iprot.skip(ftype)
3656
      iprot.readFieldEnd()
3657
    iprot.readStructEnd()
3658
 
3659
  def write(self, oprot):
3660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3662
      return
3663
    oprot.writeStructBegin('authenticateCatalogUser_result')
3431 rajveer 3664
    if self.success is not None:
2025 ankur.sing 3665
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3666
      self.success.write(oprot)
3667
      oprot.writeFieldEnd()
3431 rajveer 3668
    if self.hse is not None:
2025 ankur.sing 3669
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3670
      self.hse.write(oprot)
3671
      oprot.writeFieldEnd()
3672
    oprot.writeFieldStop()
3673
    oprot.writeStructEnd()
3674
 
3431 rajveer 3675
  def validate(self):
3676
    return
3677
 
3678
 
2025 ankur.sing 3679
  def __repr__(self):
3680
    L = ['%s=%r' % (key, value)
3681
      for key, value in self.__dict__.iteritems()]
3682
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3683
 
3684
  def __eq__(self, other):
3685
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3686
 
3687
  def __ne__(self, other):
3688
    return not (self == other)
4544 varun.gupt 3689
 
3690
class shareEntities_args:
3691
  """
3692
  Attributes:
3693
   - entityIds
3694
   - email
3695
  """
3696
 
3697
  thrift_spec = (
3698
    None, # 0
3699
    (1, TType.LIST, 'entityIds', (TType.I64,None), None, ), # 1
3700
    (2, TType.STRING, 'email', None, None, ), # 2
3701
  )
3702
 
3703
  def __init__(self, entityIds=None, email=None,):
3704
    self.entityIds = entityIds
3705
    self.email = email
3706
 
3707
  def read(self, iprot):
3708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3710
      return
3711
    iprot.readStructBegin()
3712
    while True:
3713
      (fname, ftype, fid) = iprot.readFieldBegin()
3714
      if ftype == TType.STOP:
3715
        break
3716
      if fid == 1:
3717
        if ftype == TType.LIST:
3718
          self.entityIds = []
3719
          (_etype40, _size37) = iprot.readListBegin()
3720
          for _i41 in xrange(_size37):
3721
            _elem42 = iprot.readI64();
3722
            self.entityIds.append(_elem42)
3723
          iprot.readListEnd()
3724
        else:
3725
          iprot.skip(ftype)
3726
      elif fid == 2:
3727
        if ftype == TType.STRING:
3728
          self.email = iprot.readString();
3729
        else:
3730
          iprot.skip(ftype)
3731
      else:
3732
        iprot.skip(ftype)
3733
      iprot.readFieldEnd()
3734
    iprot.readStructEnd()
3735
 
3736
  def write(self, oprot):
3737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3739
      return
3740
    oprot.writeStructBegin('shareEntities_args')
3741
    if self.entityIds is not None:
3742
      oprot.writeFieldBegin('entityIds', TType.LIST, 1)
3743
      oprot.writeListBegin(TType.I64, len(self.entityIds))
3744
      for iter43 in self.entityIds:
3745
        oprot.writeI64(iter43)
3746
      oprot.writeListEnd()
3747
      oprot.writeFieldEnd()
3748
    if self.email is not None:
3749
      oprot.writeFieldBegin('email', TType.STRING, 2)
3750
      oprot.writeString(self.email)
3751
      oprot.writeFieldEnd()
3752
    oprot.writeFieldStop()
3753
    oprot.writeStructEnd()
3754
 
3755
  def validate(self):
3756
    return
3757
 
3758
 
3759
  def __repr__(self):
3760
    L = ['%s=%r' % (key, value)
3761
      for key, value in self.__dict__.iteritems()]
3762
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3763
 
3764
  def __eq__(self, other):
3765
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3766
 
3767
  def __ne__(self, other):
3768
    return not (self == other)
3769
 
3770
class shareEntities_result:
3771
  """
3772
  Attributes:
3773
   - hse
3774
  """
3775
 
3776
  thrift_spec = (
3777
    None, # 0
3778
    (1, TType.STRUCT, 'hse', (HelperServiceException, HelperServiceException.thrift_spec), None, ), # 1
3779
  )
3780
 
3781
  def __init__(self, hse=None,):
3782
    self.hse = hse
3783
 
3784
  def read(self, iprot):
3785
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3786
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3787
      return
3788
    iprot.readStructBegin()
3789
    while True:
3790
      (fname, ftype, fid) = iprot.readFieldBegin()
3791
      if ftype == TType.STOP:
3792
        break
3793
      if fid == 1:
3794
        if ftype == TType.STRUCT:
3795
          self.hse = HelperServiceException()
3796
          self.hse.read(iprot)
3797
        else:
3798
          iprot.skip(ftype)
3799
      else:
3800
        iprot.skip(ftype)
3801
      iprot.readFieldEnd()
3802
    iprot.readStructEnd()
3803
 
3804
  def write(self, oprot):
3805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3807
      return
3808
    oprot.writeStructBegin('shareEntities_result')
3809
    if self.hse is not None:
3810
      oprot.writeFieldBegin('hse', TType.STRUCT, 1)
3811
      self.hse.write(oprot)
3812
      oprot.writeFieldEnd()
3813
    oprot.writeFieldStop()
3814
    oprot.writeStructEnd()
3815
 
3816
  def validate(self):
3817
    return
3818
 
3819
 
3820
  def __repr__(self):
3821
    L = ['%s=%r' % (key, value)
3822
      for key, value in self.__dict__.iteritems()]
3823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3824
 
3825
  def __eq__(self, other):
3826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3827
 
3828
  def __ne__(self, other):
3829
    return not (self == other)