Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
3131 rajveer 1
#
2
# Autogenerated by Thrift
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
3131 rajveer 9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol
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):
3131 rajveer 20
  def getTickets(self, customerId):
21
    """
22
    Parameters:
23
     - customerId
24
    """
25
    pass
26
 
27
  def getAssignedTickets(self, agentId):
28
    """
29
    Parameters:
30
     - agentId
31
    """
32
    pass
33
 
3376 rajveer 34
  def getUnassignedTickets(self, ):
3131 rajveer 35
    pass
36
 
3376 rajveer 37
  def getAllTickets(self, agentId):
38
    """
39
    Parameters:
40
     - agentId
41
    """
42
    pass
43
 
3131 rajveer 44
  def getTicket(self, ticketId):
45
    """
46
    Parameters:
47
     - ticketId
48
    """
49
    pass
50
 
3376 rajveer 51
  def updateTicket(self, ticket, activity):
3131 rajveer 52
    """
53
    Parameters:
54
     - ticket
3376 rajveer 55
     - activity
3131 rajveer 56
    """
57
    pass
58
 
3376 rajveer 59
  def insertTicket(self, ticket, activity):
3131 rajveer 60
    """
61
    Parameters:
62
     - ticket
3376 rajveer 63
     - activity
3131 rajveer 64
    """
65
    pass
66
 
67
  def getActivities(self, customerId):
68
    """
69
    Parameters:
70
     - customerId
71
    """
72
    pass
73
 
3376 rajveer 74
  def getActivitiesByCreator(self, creatorId):
75
    """
76
    Parameters:
77
     - creatorId
78
    """
79
    pass
80
 
3131 rajveer 81
  def getActivitiesForTicket(self, ticketId):
82
    """
83
    Parameters:
84
     - ticketId
85
    """
86
    pass
87
 
88
  def getActivity(self, activityId):
89
    """
90
    Parameters:
91
     - activityId
92
    """
93
    pass
94
 
95
  def getLastActivity(self, ticketId):
96
    """
97
    Parameters:
98
     - ticketId
99
    """
100
    pass
101
 
102
  def insertActivity(self, activity):
103
    """
104
    Parameters:
105
     - activity
106
    """
107
    pass
108
 
109
  def getAllAgents(self, ):
110
    pass
111
 
112
  def getAgent(self, agentId):
113
    """
114
    Parameters:
115
     - agentId
116
    """
117
    pass
118
 
119
  def getAgentByEmailId(self, agentEmailId):
120
    """
121
    Parameters:
122
     - agentEmailId
123
    """
124
    pass
125
 
126
  def updatePasswordForAgent(self, agentEmailId, password):
127
    """
128
    Parameters:
129
     - agentEmailId
130
     - password
131
    """
132
    pass
133
 
134
  def getRoleNamesForAgent(self, agentEmailId):
135
    """
136
    Parameters:
137
     - agentEmailId
138
    """
139
    pass
140
 
141
  def getPermissionsForRoleName(self, roleName):
142
    """
143
    Parameters:
144
     - roleName
145
    """
146
    pass
147
 
3376 rajveer 148
  def getLastEmailProcessedTimestamp(self, ):
149
    pass
3131 rajveer 150
 
3376 rajveer 151
  def updateLastEmailProcessedTimestamp(self, timestamp):
152
    """
153
    Parameters:
154
     - timestamp
155
    """
156
    pass
157
 
158
 
159
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
3131 rajveer 160
  def __init__(self, iprot, oprot=None):
3376 rajveer 161
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
3131 rajveer 162
 
163
  def getTickets(self, customerId):
164
    """
165
    Parameters:
166
     - customerId
167
    """
168
    self.send_getTickets(customerId)
169
    return self.recv_getTickets()
170
 
171
  def send_getTickets(self, customerId):
172
    self._oprot.writeMessageBegin('getTickets', TMessageType.CALL, self._seqid)
173
    args = getTickets_args()
174
    args.customerId = customerId
175
    args.write(self._oprot)
176
    self._oprot.writeMessageEnd()
177
    self._oprot.trans.flush()
178
 
179
  def recv_getTickets(self, ):
180
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
181
    if mtype == TMessageType.EXCEPTION:
182
      x = TApplicationException()
183
      x.read(self._iprot)
184
      self._iprot.readMessageEnd()
185
      raise x
186
    result = getTickets_result()
187
    result.read(self._iprot)
188
    self._iprot.readMessageEnd()
189
    if result.success != None:
190
      return result.success
191
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");
192
 
193
  def getAssignedTickets(self, agentId):
194
    """
195
    Parameters:
196
     - agentId
197
    """
198
    self.send_getAssignedTickets(agentId)
199
    return self.recv_getAssignedTickets()
200
 
201
  def send_getAssignedTickets(self, agentId):
202
    self._oprot.writeMessageBegin('getAssignedTickets', TMessageType.CALL, self._seqid)
203
    args = getAssignedTickets_args()
204
    args.agentId = agentId
205
    args.write(self._oprot)
206
    self._oprot.writeMessageEnd()
207
    self._oprot.trans.flush()
208
 
209
  def recv_getAssignedTickets(self, ):
210
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
211
    if mtype == TMessageType.EXCEPTION:
212
      x = TApplicationException()
213
      x.read(self._iprot)
214
      self._iprot.readMessageEnd()
215
      raise x
216
    result = getAssignedTickets_result()
217
    result.read(self._iprot)
218
    self._iprot.readMessageEnd()
219
    if result.success != None:
220
      return result.success
221
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAssignedTickets failed: unknown result");
222
 
3376 rajveer 223
  def getUnassignedTickets(self, ):
224
    self.send_getUnassignedTickets()
225
    return self.recv_getUnassignedTickets()
3131 rajveer 226
 
3376 rajveer 227
  def send_getUnassignedTickets(self, ):
228
    self._oprot.writeMessageBegin('getUnassignedTickets', TMessageType.CALL, self._seqid)
229
    args = getUnassignedTickets_args()
3131 rajveer 230
    args.write(self._oprot)
231
    self._oprot.writeMessageEnd()
232
    self._oprot.trans.flush()
233
 
3376 rajveer 234
  def recv_getUnassignedTickets(self, ):
3131 rajveer 235
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
236
    if mtype == TMessageType.EXCEPTION:
237
      x = TApplicationException()
238
      x.read(self._iprot)
239
      self._iprot.readMessageEnd()
240
      raise x
3376 rajveer 241
    result = getUnassignedTickets_result()
3131 rajveer 242
    result.read(self._iprot)
243
    self._iprot.readMessageEnd()
244
    if result.success != None:
245
      return result.success
3376 rajveer 246
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUnassignedTickets failed: unknown result");
3131 rajveer 247
 
3376 rajveer 248
  def getAllTickets(self, agentId):
249
    """
250
    Parameters:
251
     - agentId
252
    """
253
    self.send_getAllTickets(agentId)
254
    return self.recv_getAllTickets()
255
 
256
  def send_getAllTickets(self, agentId):
257
    self._oprot.writeMessageBegin('getAllTickets', TMessageType.CALL, self._seqid)
258
    args = getAllTickets_args()
259
    args.agentId = agentId
260
    args.write(self._oprot)
261
    self._oprot.writeMessageEnd()
262
    self._oprot.trans.flush()
263
 
264
  def recv_getAllTickets(self, ):
265
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
266
    if mtype == TMessageType.EXCEPTION:
267
      x = TApplicationException()
268
      x.read(self._iprot)
269
      self._iprot.readMessageEnd()
270
      raise x
271
    result = getAllTickets_result()
272
    result.read(self._iprot)
273
    self._iprot.readMessageEnd()
274
    if result.success != None:
275
      return result.success
276
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTickets failed: unknown result");
277
 
3131 rajveer 278
  def getTicket(self, ticketId):
279
    """
280
    Parameters:
281
     - ticketId
282
    """
283
    self.send_getTicket(ticketId)
284
    return self.recv_getTicket()
285
 
286
  def send_getTicket(self, ticketId):
287
    self._oprot.writeMessageBegin('getTicket', TMessageType.CALL, self._seqid)
288
    args = getTicket_args()
289
    args.ticketId = ticketId
290
    args.write(self._oprot)
291
    self._oprot.writeMessageEnd()
292
    self._oprot.trans.flush()
293
 
294
  def recv_getTicket(self, ):
295
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
296
    if mtype == TMessageType.EXCEPTION:
297
      x = TApplicationException()
298
      x.read(self._iprot)
299
      self._iprot.readMessageEnd()
300
      raise x
301
    result = getTicket_result()
302
    result.read(self._iprot)
303
    self._iprot.readMessageEnd()
304
    if result.success != None:
305
      return result.success
306
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTicket failed: unknown result");
307
 
3376 rajveer 308
  def updateTicket(self, ticket, activity):
3131 rajveer 309
    """
310
    Parameters:
311
     - ticket
3376 rajveer 312
     - activity
3131 rajveer 313
    """
3376 rajveer 314
    self.send_updateTicket(ticket, activity)
3131 rajveer 315
    self.recv_updateTicket()
316
 
3376 rajveer 317
  def send_updateTicket(self, ticket, activity):
3131 rajveer 318
    self._oprot.writeMessageBegin('updateTicket', TMessageType.CALL, self._seqid)
319
    args = updateTicket_args()
320
    args.ticket = ticket
3376 rajveer 321
    args.activity = activity
3131 rajveer 322
    args.write(self._oprot)
323
    self._oprot.writeMessageEnd()
324
    self._oprot.trans.flush()
325
 
326
  def recv_updateTicket(self, ):
327
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
328
    if mtype == TMessageType.EXCEPTION:
329
      x = TApplicationException()
330
      x.read(self._iprot)
331
      self._iprot.readMessageEnd()
332
      raise x
333
    result = updateTicket_result()
334
    result.read(self._iprot)
335
    self._iprot.readMessageEnd()
336
    return
337
 
3376 rajveer 338
  def insertTicket(self, ticket, activity):
3131 rajveer 339
    """
340
    Parameters:
341
     - ticket
3376 rajveer 342
     - activity
3131 rajveer 343
    """
3376 rajveer 344
    self.send_insertTicket(ticket, activity)
3131 rajveer 345
    return self.recv_insertTicket()
346
 
3376 rajveer 347
  def send_insertTicket(self, ticket, activity):
3131 rajveer 348
    self._oprot.writeMessageBegin('insertTicket', TMessageType.CALL, self._seqid)
349
    args = insertTicket_args()
350
    args.ticket = ticket
3376 rajveer 351
    args.activity = activity
3131 rajveer 352
    args.write(self._oprot)
353
    self._oprot.writeMessageEnd()
354
    self._oprot.trans.flush()
355
 
356
  def recv_insertTicket(self, ):
357
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
358
    if mtype == TMessageType.EXCEPTION:
359
      x = TApplicationException()
360
      x.read(self._iprot)
361
      self._iprot.readMessageEnd()
362
      raise x
363
    result = insertTicket_result()
364
    result.read(self._iprot)
365
    self._iprot.readMessageEnd()
366
    if result.success != None:
367
      return result.success
368
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");
369
 
370
  def getActivities(self, customerId):
371
    """
372
    Parameters:
373
     - customerId
374
    """
375
    self.send_getActivities(customerId)
376
    return self.recv_getActivities()
377
 
378
  def send_getActivities(self, customerId):
379
    self._oprot.writeMessageBegin('getActivities', TMessageType.CALL, self._seqid)
380
    args = getActivities_args()
381
    args.customerId = customerId
382
    args.write(self._oprot)
383
    self._oprot.writeMessageEnd()
384
    self._oprot.trans.flush()
385
 
386
  def recv_getActivities(self, ):
387
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
388
    if mtype == TMessageType.EXCEPTION:
389
      x = TApplicationException()
390
      x.read(self._iprot)
391
      self._iprot.readMessageEnd()
392
      raise x
393
    result = getActivities_result()
394
    result.read(self._iprot)
395
    self._iprot.readMessageEnd()
396
    if result.success != None:
397
      return result.success
398
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");
399
 
3376 rajveer 400
  def getActivitiesByCreator(self, creatorId):
401
    """
402
    Parameters:
403
     - creatorId
404
    """
405
    self.send_getActivitiesByCreator(creatorId)
406
    return self.recv_getActivitiesByCreator()
407
 
408
  def send_getActivitiesByCreator(self, creatorId):
409
    self._oprot.writeMessageBegin('getActivitiesByCreator', TMessageType.CALL, self._seqid)
410
    args = getActivitiesByCreator_args()
411
    args.creatorId = creatorId
412
    args.write(self._oprot)
413
    self._oprot.writeMessageEnd()
414
    self._oprot.trans.flush()
415
 
416
  def recv_getActivitiesByCreator(self, ):
417
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
418
    if mtype == TMessageType.EXCEPTION:
419
      x = TApplicationException()
420
      x.read(self._iprot)
421
      self._iprot.readMessageEnd()
422
      raise x
423
    result = getActivitiesByCreator_result()
424
    result.read(self._iprot)
425
    self._iprot.readMessageEnd()
426
    if result.success != None:
427
      return result.success
428
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivitiesByCreator failed: unknown result");
429
 
3131 rajveer 430
  def getActivitiesForTicket(self, ticketId):
431
    """
432
    Parameters:
433
     - ticketId
434
    """
435
    self.send_getActivitiesForTicket(ticketId)
436
    return self.recv_getActivitiesForTicket()
437
 
438
  def send_getActivitiesForTicket(self, ticketId):
439
    self._oprot.writeMessageBegin('getActivitiesForTicket', TMessageType.CALL, self._seqid)
440
    args = getActivitiesForTicket_args()
441
    args.ticketId = ticketId
442
    args.write(self._oprot)
443
    self._oprot.writeMessageEnd()
444
    self._oprot.trans.flush()
445
 
446
  def recv_getActivitiesForTicket(self, ):
447
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
448
    if mtype == TMessageType.EXCEPTION:
449
      x = TApplicationException()
450
      x.read(self._iprot)
451
      self._iprot.readMessageEnd()
452
      raise x
453
    result = getActivitiesForTicket_result()
454
    result.read(self._iprot)
455
    self._iprot.readMessageEnd()
456
    if result.success != None:
457
      return result.success
458
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivitiesForTicket failed: unknown result");
459
 
460
  def getActivity(self, activityId):
461
    """
462
    Parameters:
463
     - activityId
464
    """
465
    self.send_getActivity(activityId)
466
    return self.recv_getActivity()
467
 
468
  def send_getActivity(self, activityId):
469
    self._oprot.writeMessageBegin('getActivity', TMessageType.CALL, self._seqid)
470
    args = getActivity_args()
471
    args.activityId = activityId
472
    args.write(self._oprot)
473
    self._oprot.writeMessageEnd()
474
    self._oprot.trans.flush()
475
 
476
  def recv_getActivity(self, ):
477
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
478
    if mtype == TMessageType.EXCEPTION:
479
      x = TApplicationException()
480
      x.read(self._iprot)
481
      self._iprot.readMessageEnd()
482
      raise x
483
    result = getActivity_result()
484
    result.read(self._iprot)
485
    self._iprot.readMessageEnd()
486
    if result.success != None:
487
      return result.success
488
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActivity failed: unknown result");
489
 
490
  def getLastActivity(self, ticketId):
491
    """
492
    Parameters:
493
     - ticketId
494
    """
495
    self.send_getLastActivity(ticketId)
496
    return self.recv_getLastActivity()
497
 
498
  def send_getLastActivity(self, ticketId):
499
    self._oprot.writeMessageBegin('getLastActivity', TMessageType.CALL, self._seqid)
500
    args = getLastActivity_args()
501
    args.ticketId = ticketId
502
    args.write(self._oprot)
503
    self._oprot.writeMessageEnd()
504
    self._oprot.trans.flush()
505
 
506
  def recv_getLastActivity(self, ):
507
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
508
    if mtype == TMessageType.EXCEPTION:
509
      x = TApplicationException()
510
      x.read(self._iprot)
511
      self._iprot.readMessageEnd()
512
      raise x
513
    result = getLastActivity_result()
514
    result.read(self._iprot)
515
    self._iprot.readMessageEnd()
516
    if result.success != None:
517
      return result.success
518
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastActivity failed: unknown result");
519
 
520
  def insertActivity(self, activity):
521
    """
522
    Parameters:
523
     - activity
524
    """
525
    self.send_insertActivity(activity)
526
    self.recv_insertActivity()
527
 
528
  def send_insertActivity(self, activity):
529
    self._oprot.writeMessageBegin('insertActivity', TMessageType.CALL, self._seqid)
530
    args = insertActivity_args()
531
    args.activity = activity
532
    args.write(self._oprot)
533
    self._oprot.writeMessageEnd()
534
    self._oprot.trans.flush()
535
 
536
  def recv_insertActivity(self, ):
537
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
538
    if mtype == TMessageType.EXCEPTION:
539
      x = TApplicationException()
540
      x.read(self._iprot)
541
      self._iprot.readMessageEnd()
542
      raise x
543
    result = insertActivity_result()
544
    result.read(self._iprot)
545
    self._iprot.readMessageEnd()
546
    return
547
 
548
  def getAllAgents(self, ):
549
    self.send_getAllAgents()
550
    return self.recv_getAllAgents()
551
 
552
  def send_getAllAgents(self, ):
553
    self._oprot.writeMessageBegin('getAllAgents', TMessageType.CALL, self._seqid)
554
    args = getAllAgents_args()
555
    args.write(self._oprot)
556
    self._oprot.writeMessageEnd()
557
    self._oprot.trans.flush()
558
 
559
  def recv_getAllAgents(self, ):
560
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
561
    if mtype == TMessageType.EXCEPTION:
562
      x = TApplicationException()
563
      x.read(self._iprot)
564
      self._iprot.readMessageEnd()
565
      raise x
566
    result = getAllAgents_result()
567
    result.read(self._iprot)
568
    self._iprot.readMessageEnd()
569
    if result.success != None:
570
      return result.success
571
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAgents failed: unknown result");
572
 
573
  def getAgent(self, agentId):
574
    """
575
    Parameters:
576
     - agentId
577
    """
578
    self.send_getAgent(agentId)
579
    return self.recv_getAgent()
580
 
581
  def send_getAgent(self, agentId):
582
    self._oprot.writeMessageBegin('getAgent', TMessageType.CALL, self._seqid)
583
    args = getAgent_args()
584
    args.agentId = agentId
585
    args.write(self._oprot)
586
    self._oprot.writeMessageEnd()
587
    self._oprot.trans.flush()
588
 
589
  def recv_getAgent(self, ):
590
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
591
    if mtype == TMessageType.EXCEPTION:
592
      x = TApplicationException()
593
      x.read(self._iprot)
594
      self._iprot.readMessageEnd()
595
      raise x
596
    result = getAgent_result()
597
    result.read(self._iprot)
598
    self._iprot.readMessageEnd()
599
    if result.success != None:
600
      return result.success
601
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAgent failed: unknown result");
602
 
603
  def getAgentByEmailId(self, agentEmailId):
604
    """
605
    Parameters:
606
     - agentEmailId
607
    """
608
    self.send_getAgentByEmailId(agentEmailId)
609
    return self.recv_getAgentByEmailId()
610
 
611
  def send_getAgentByEmailId(self, agentEmailId):
612
    self._oprot.writeMessageBegin('getAgentByEmailId', TMessageType.CALL, self._seqid)
613
    args = getAgentByEmailId_args()
614
    args.agentEmailId = agentEmailId
615
    args.write(self._oprot)
616
    self._oprot.writeMessageEnd()
617
    self._oprot.trans.flush()
618
 
619
  def recv_getAgentByEmailId(self, ):
620
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
621
    if mtype == TMessageType.EXCEPTION:
622
      x = TApplicationException()
623
      x.read(self._iprot)
624
      self._iprot.readMessageEnd()
625
      raise x
626
    result = getAgentByEmailId_result()
627
    result.read(self._iprot)
628
    self._iprot.readMessageEnd()
629
    if result.success != None:
630
      return result.success
631
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAgentByEmailId failed: unknown result");
632
 
633
  def updatePasswordForAgent(self, agentEmailId, password):
634
    """
635
    Parameters:
636
     - agentEmailId
637
     - password
638
    """
639
    self.send_updatePasswordForAgent(agentEmailId, password)
640
    self.recv_updatePasswordForAgent()
641
 
642
  def send_updatePasswordForAgent(self, agentEmailId, password):
643
    self._oprot.writeMessageBegin('updatePasswordForAgent', TMessageType.CALL, self._seqid)
644
    args = updatePasswordForAgent_args()
645
    args.agentEmailId = agentEmailId
646
    args.password = password
647
    args.write(self._oprot)
648
    self._oprot.writeMessageEnd()
649
    self._oprot.trans.flush()
650
 
651
  def recv_updatePasswordForAgent(self, ):
652
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
653
    if mtype == TMessageType.EXCEPTION:
654
      x = TApplicationException()
655
      x.read(self._iprot)
656
      self._iprot.readMessageEnd()
657
      raise x
658
    result = updatePasswordForAgent_result()
659
    result.read(self._iprot)
660
    self._iprot.readMessageEnd()
661
    return
662
 
663
  def getRoleNamesForAgent(self, agentEmailId):
664
    """
665
    Parameters:
666
     - agentEmailId
667
    """
668
    self.send_getRoleNamesForAgent(agentEmailId)
669
    return self.recv_getRoleNamesForAgent()
670
 
671
  def send_getRoleNamesForAgent(self, agentEmailId):
672
    self._oprot.writeMessageBegin('getRoleNamesForAgent', TMessageType.CALL, self._seqid)
673
    args = getRoleNamesForAgent_args()
674
    args.agentEmailId = agentEmailId
675
    args.write(self._oprot)
676
    self._oprot.writeMessageEnd()
677
    self._oprot.trans.flush()
678
 
679
  def recv_getRoleNamesForAgent(self, ):
680
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
681
    if mtype == TMessageType.EXCEPTION:
682
      x = TApplicationException()
683
      x.read(self._iprot)
684
      self._iprot.readMessageEnd()
685
      raise x
686
    result = getRoleNamesForAgent_result()
687
    result.read(self._iprot)
688
    self._iprot.readMessageEnd()
689
    if result.success != None:
690
      return result.success
691
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
692
 
693
  def getPermissionsForRoleName(self, roleName):
694
    """
695
    Parameters:
696
     - roleName
697
    """
698
    self.send_getPermissionsForRoleName(roleName)
699
    return self.recv_getPermissionsForRoleName()
700
 
701
  def send_getPermissionsForRoleName(self, roleName):
702
    self._oprot.writeMessageBegin('getPermissionsForRoleName', TMessageType.CALL, self._seqid)
703
    args = getPermissionsForRoleName_args()
704
    args.roleName = roleName
705
    args.write(self._oprot)
706
    self._oprot.writeMessageEnd()
707
    self._oprot.trans.flush()
708
 
709
  def recv_getPermissionsForRoleName(self, ):
710
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
711
    if mtype == TMessageType.EXCEPTION:
712
      x = TApplicationException()
713
      x.read(self._iprot)
714
      self._iprot.readMessageEnd()
715
      raise x
716
    result = getPermissionsForRoleName_result()
717
    result.read(self._iprot)
718
    self._iprot.readMessageEnd()
719
    if result.success != None:
720
      return result.success
721
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
722
 
3376 rajveer 723
  def getLastEmailProcessedTimestamp(self, ):
724
    self.send_getLastEmailProcessedTimestamp()
725
    return self.recv_getLastEmailProcessedTimestamp()
3131 rajveer 726
 
3376 rajveer 727
  def send_getLastEmailProcessedTimestamp(self, ):
728
    self._oprot.writeMessageBegin('getLastEmailProcessedTimestamp', TMessageType.CALL, self._seqid)
729
    args = getLastEmailProcessedTimestamp_args()
730
    args.write(self._oprot)
731
    self._oprot.writeMessageEnd()
732
    self._oprot.trans.flush()
733
 
734
  def recv_getLastEmailProcessedTimestamp(self, ):
735
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
736
    if mtype == TMessageType.EXCEPTION:
737
      x = TApplicationException()
738
      x.read(self._iprot)
739
      self._iprot.readMessageEnd()
740
      raise x
741
    result = getLastEmailProcessedTimestamp_result()
742
    result.read(self._iprot)
743
    self._iprot.readMessageEnd()
744
    if result.success != None:
745
      return result.success
746
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastEmailProcessedTimestamp failed: unknown result");
747
 
748
  def updateLastEmailProcessedTimestamp(self, timestamp):
749
    """
750
    Parameters:
751
     - timestamp
752
    """
753
    self.send_updateLastEmailProcessedTimestamp(timestamp)
754
    self.recv_updateLastEmailProcessedTimestamp()
755
 
756
  def send_updateLastEmailProcessedTimestamp(self, timestamp):
757
    self._oprot.writeMessageBegin('updateLastEmailProcessedTimestamp', TMessageType.CALL, self._seqid)
758
    args = updateLastEmailProcessedTimestamp_args()
759
    args.timestamp = timestamp
760
    args.write(self._oprot)
761
    self._oprot.writeMessageEnd()
762
    self._oprot.trans.flush()
763
 
764
  def recv_updateLastEmailProcessedTimestamp(self, ):
765
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
766
    if mtype == TMessageType.EXCEPTION:
767
      x = TApplicationException()
768
      x.read(self._iprot)
769
      self._iprot.readMessageEnd()
770
      raise x
771
    result = updateLastEmailProcessedTimestamp_result()
772
    result.read(self._iprot)
773
    self._iprot.readMessageEnd()
774
    return
775
 
776
 
777
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3131 rajveer 778
  def __init__(self, handler):
3376 rajveer 779
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3131 rajveer 780
    self._processMap["getTickets"] = Processor.process_getTickets
781
    self._processMap["getAssignedTickets"] = Processor.process_getAssignedTickets
3376 rajveer 782
    self._processMap["getUnassignedTickets"] = Processor.process_getUnassignedTickets
783
    self._processMap["getAllTickets"] = Processor.process_getAllTickets
3131 rajveer 784
    self._processMap["getTicket"] = Processor.process_getTicket
785
    self._processMap["updateTicket"] = Processor.process_updateTicket
786
    self._processMap["insertTicket"] = Processor.process_insertTicket
787
    self._processMap["getActivities"] = Processor.process_getActivities
3376 rajveer 788
    self._processMap["getActivitiesByCreator"] = Processor.process_getActivitiesByCreator
3131 rajveer 789
    self._processMap["getActivitiesForTicket"] = Processor.process_getActivitiesForTicket
790
    self._processMap["getActivity"] = Processor.process_getActivity
791
    self._processMap["getLastActivity"] = Processor.process_getLastActivity
792
    self._processMap["insertActivity"] = Processor.process_insertActivity
793
    self._processMap["getAllAgents"] = Processor.process_getAllAgents
794
    self._processMap["getAgent"] = Processor.process_getAgent
795
    self._processMap["getAgentByEmailId"] = Processor.process_getAgentByEmailId
796
    self._processMap["updatePasswordForAgent"] = Processor.process_updatePasswordForAgent
797
    self._processMap["getRoleNamesForAgent"] = Processor.process_getRoleNamesForAgent
798
    self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
3376 rajveer 799
    self._processMap["getLastEmailProcessedTimestamp"] = Processor.process_getLastEmailProcessedTimestamp
800
    self._processMap["updateLastEmailProcessedTimestamp"] = Processor.process_updateLastEmailProcessedTimestamp
3131 rajveer 801
 
802
  def process(self, iprot, oprot):
803
    (name, type, seqid) = iprot.readMessageBegin()
804
    if name not in self._processMap:
805
      iprot.skip(TType.STRUCT)
806
      iprot.readMessageEnd()
807
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
808
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
809
      x.write(oprot)
810
      oprot.writeMessageEnd()
811
      oprot.trans.flush()
812
      return
813
    else:
814
      self._processMap[name](self, seqid, iprot, oprot)
815
    return True
816
 
817
  def process_getTickets(self, seqid, iprot, oprot):
818
    args = getTickets_args()
819
    args.read(iprot)
820
    iprot.readMessageEnd()
821
    result = getTickets_result()
822
    result.success = self._handler.getTickets(args.customerId)
823
    oprot.writeMessageBegin("getTickets", TMessageType.REPLY, seqid)
824
    result.write(oprot)
825
    oprot.writeMessageEnd()
826
    oprot.trans.flush()
827
 
828
  def process_getAssignedTickets(self, seqid, iprot, oprot):
829
    args = getAssignedTickets_args()
830
    args.read(iprot)
831
    iprot.readMessageEnd()
832
    result = getAssignedTickets_result()
833
    result.success = self._handler.getAssignedTickets(args.agentId)
834
    oprot.writeMessageBegin("getAssignedTickets", TMessageType.REPLY, seqid)
835
    result.write(oprot)
836
    oprot.writeMessageEnd()
837
    oprot.trans.flush()
838
 
3376 rajveer 839
  def process_getUnassignedTickets(self, seqid, iprot, oprot):
840
    args = getUnassignedTickets_args()
3131 rajveer 841
    args.read(iprot)
842
    iprot.readMessageEnd()
3376 rajveer 843
    result = getUnassignedTickets_result()
844
    result.success = self._handler.getUnassignedTickets()
845
    oprot.writeMessageBegin("getUnassignedTickets", TMessageType.REPLY, seqid)
3131 rajveer 846
    result.write(oprot)
847
    oprot.writeMessageEnd()
848
    oprot.trans.flush()
849
 
3376 rajveer 850
  def process_getAllTickets(self, seqid, iprot, oprot):
851
    args = getAllTickets_args()
852
    args.read(iprot)
853
    iprot.readMessageEnd()
854
    result = getAllTickets_result()
855
    result.success = self._handler.getAllTickets(args.agentId)
856
    oprot.writeMessageBegin("getAllTickets", TMessageType.REPLY, seqid)
857
    result.write(oprot)
858
    oprot.writeMessageEnd()
859
    oprot.trans.flush()
860
 
3131 rajveer 861
  def process_getTicket(self, seqid, iprot, oprot):
862
    args = getTicket_args()
863
    args.read(iprot)
864
    iprot.readMessageEnd()
865
    result = getTicket_result()
866
    result.success = self._handler.getTicket(args.ticketId)
867
    oprot.writeMessageBegin("getTicket", TMessageType.REPLY, seqid)
868
    result.write(oprot)
869
    oprot.writeMessageEnd()
870
    oprot.trans.flush()
871
 
872
  def process_updateTicket(self, seqid, iprot, oprot):
873
    args = updateTicket_args()
874
    args.read(iprot)
875
    iprot.readMessageEnd()
876
    result = updateTicket_result()
3376 rajveer 877
    self._handler.updateTicket(args.ticket, args.activity)
3131 rajveer 878
    oprot.writeMessageBegin("updateTicket", TMessageType.REPLY, seqid)
879
    result.write(oprot)
880
    oprot.writeMessageEnd()
881
    oprot.trans.flush()
882
 
883
  def process_insertTicket(self, seqid, iprot, oprot):
884
    args = insertTicket_args()
885
    args.read(iprot)
886
    iprot.readMessageEnd()
887
    result = insertTicket_result()
3376 rajveer 888
    result.success = self._handler.insertTicket(args.ticket, args.activity)
3131 rajveer 889
    oprot.writeMessageBegin("insertTicket", TMessageType.REPLY, seqid)
890
    result.write(oprot)
891
    oprot.writeMessageEnd()
892
    oprot.trans.flush()
893
 
894
  def process_getActivities(self, seqid, iprot, oprot):
895
    args = getActivities_args()
896
    args.read(iprot)
897
    iprot.readMessageEnd()
898
    result = getActivities_result()
899
    result.success = self._handler.getActivities(args.customerId)
900
    oprot.writeMessageBegin("getActivities", TMessageType.REPLY, seqid)
901
    result.write(oprot)
902
    oprot.writeMessageEnd()
903
    oprot.trans.flush()
904
 
3376 rajveer 905
  def process_getActivitiesByCreator(self, seqid, iprot, oprot):
906
    args = getActivitiesByCreator_args()
907
    args.read(iprot)
908
    iprot.readMessageEnd()
909
    result = getActivitiesByCreator_result()
910
    result.success = self._handler.getActivitiesByCreator(args.creatorId)
911
    oprot.writeMessageBegin("getActivitiesByCreator", TMessageType.REPLY, seqid)
912
    result.write(oprot)
913
    oprot.writeMessageEnd()
914
    oprot.trans.flush()
915
 
3131 rajveer 916
  def process_getActivitiesForTicket(self, seqid, iprot, oprot):
917
    args = getActivitiesForTicket_args()
918
    args.read(iprot)
919
    iprot.readMessageEnd()
920
    result = getActivitiesForTicket_result()
921
    result.success = self._handler.getActivitiesForTicket(args.ticketId)
922
    oprot.writeMessageBegin("getActivitiesForTicket", TMessageType.REPLY, seqid)
923
    result.write(oprot)
924
    oprot.writeMessageEnd()
925
    oprot.trans.flush()
926
 
927
  def process_getActivity(self, seqid, iprot, oprot):
928
    args = getActivity_args()
929
    args.read(iprot)
930
    iprot.readMessageEnd()
931
    result = getActivity_result()
932
    result.success = self._handler.getActivity(args.activityId)
933
    oprot.writeMessageBegin("getActivity", TMessageType.REPLY, seqid)
934
    result.write(oprot)
935
    oprot.writeMessageEnd()
936
    oprot.trans.flush()
937
 
938
  def process_getLastActivity(self, seqid, iprot, oprot):
939
    args = getLastActivity_args()
940
    args.read(iprot)
941
    iprot.readMessageEnd()
942
    result = getLastActivity_result()
943
    result.success = self._handler.getLastActivity(args.ticketId)
944
    oprot.writeMessageBegin("getLastActivity", TMessageType.REPLY, seqid)
945
    result.write(oprot)
946
    oprot.writeMessageEnd()
947
    oprot.trans.flush()
948
 
949
  def process_insertActivity(self, seqid, iprot, oprot):
950
    args = insertActivity_args()
951
    args.read(iprot)
952
    iprot.readMessageEnd()
953
    result = insertActivity_result()
954
    self._handler.insertActivity(args.activity)
955
    oprot.writeMessageBegin("insertActivity", TMessageType.REPLY, seqid)
956
    result.write(oprot)
957
    oprot.writeMessageEnd()
958
    oprot.trans.flush()
959
 
960
  def process_getAllAgents(self, seqid, iprot, oprot):
961
    args = getAllAgents_args()
962
    args.read(iprot)
963
    iprot.readMessageEnd()
964
    result = getAllAgents_result()
965
    result.success = self._handler.getAllAgents()
966
    oprot.writeMessageBegin("getAllAgents", TMessageType.REPLY, seqid)
967
    result.write(oprot)
968
    oprot.writeMessageEnd()
969
    oprot.trans.flush()
970
 
971
  def process_getAgent(self, seqid, iprot, oprot):
972
    args = getAgent_args()
973
    args.read(iprot)
974
    iprot.readMessageEnd()
975
    result = getAgent_result()
976
    result.success = self._handler.getAgent(args.agentId)
977
    oprot.writeMessageBegin("getAgent", TMessageType.REPLY, seqid)
978
    result.write(oprot)
979
    oprot.writeMessageEnd()
980
    oprot.trans.flush()
981
 
982
  def process_getAgentByEmailId(self, seqid, iprot, oprot):
983
    args = getAgentByEmailId_args()
984
    args.read(iprot)
985
    iprot.readMessageEnd()
986
    result = getAgentByEmailId_result()
987
    result.success = self._handler.getAgentByEmailId(args.agentEmailId)
988
    oprot.writeMessageBegin("getAgentByEmailId", TMessageType.REPLY, seqid)
989
    result.write(oprot)
990
    oprot.writeMessageEnd()
991
    oprot.trans.flush()
992
 
993
  def process_updatePasswordForAgent(self, seqid, iprot, oprot):
994
    args = updatePasswordForAgent_args()
995
    args.read(iprot)
996
    iprot.readMessageEnd()
997
    result = updatePasswordForAgent_result()
998
    self._handler.updatePasswordForAgent(args.agentEmailId, args.password)
999
    oprot.writeMessageBegin("updatePasswordForAgent", TMessageType.REPLY, seqid)
1000
    result.write(oprot)
1001
    oprot.writeMessageEnd()
1002
    oprot.trans.flush()
1003
 
1004
  def process_getRoleNamesForAgent(self, seqid, iprot, oprot):
1005
    args = getRoleNamesForAgent_args()
1006
    args.read(iprot)
1007
    iprot.readMessageEnd()
1008
    result = getRoleNamesForAgent_result()
1009
    result.success = self._handler.getRoleNamesForAgent(args.agentEmailId)
1010
    oprot.writeMessageBegin("getRoleNamesForAgent", TMessageType.REPLY, seqid)
1011
    result.write(oprot)
1012
    oprot.writeMessageEnd()
1013
    oprot.trans.flush()
1014
 
1015
  def process_getPermissionsForRoleName(self, seqid, iprot, oprot):
1016
    args = getPermissionsForRoleName_args()
1017
    args.read(iprot)
1018
    iprot.readMessageEnd()
1019
    result = getPermissionsForRoleName_result()
1020
    result.success = self._handler.getPermissionsForRoleName(args.roleName)
1021
    oprot.writeMessageBegin("getPermissionsForRoleName", TMessageType.REPLY, seqid)
1022
    result.write(oprot)
1023
    oprot.writeMessageEnd()
1024
    oprot.trans.flush()
1025
 
3376 rajveer 1026
  def process_getLastEmailProcessedTimestamp(self, seqid, iprot, oprot):
1027
    args = getLastEmailProcessedTimestamp_args()
1028
    args.read(iprot)
1029
    iprot.readMessageEnd()
1030
    result = getLastEmailProcessedTimestamp_result()
1031
    result.success = self._handler.getLastEmailProcessedTimestamp()
1032
    oprot.writeMessageBegin("getLastEmailProcessedTimestamp", TMessageType.REPLY, seqid)
1033
    result.write(oprot)
1034
    oprot.writeMessageEnd()
1035
    oprot.trans.flush()
3131 rajveer 1036
 
3376 rajveer 1037
  def process_updateLastEmailProcessedTimestamp(self, seqid, iprot, oprot):
1038
    args = updateLastEmailProcessedTimestamp_args()
1039
    args.read(iprot)
1040
    iprot.readMessageEnd()
1041
    result = updateLastEmailProcessedTimestamp_result()
1042
    self._handler.updateLastEmailProcessedTimestamp(args.timestamp)
1043
    oprot.writeMessageBegin("updateLastEmailProcessedTimestamp", TMessageType.REPLY, seqid)
1044
    result.write(oprot)
1045
    oprot.writeMessageEnd()
1046
    oprot.trans.flush()
1047
 
1048
 
3131 rajveer 1049
# HELPER FUNCTIONS AND STRUCTURES
1050
 
1051
class getTickets_args:
1052
  """
1053
  Attributes:
1054
   - customerId
1055
  """
1056
 
1057
  thrift_spec = (
1058
    None, # 0
1059
    (1, TType.I64, 'customerId', None, None, ), # 1
1060
  )
1061
 
1062
  def __init__(self, customerId=None,):
1063
    self.customerId = customerId
1064
 
1065
  def read(self, iprot):
1066
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1067
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1068
      return
1069
    iprot.readStructBegin()
1070
    while True:
1071
      (fname, ftype, fid) = iprot.readFieldBegin()
1072
      if ftype == TType.STOP:
1073
        break
1074
      if fid == 1:
1075
        if ftype == TType.I64:
1076
          self.customerId = iprot.readI64();
1077
        else:
1078
          iprot.skip(ftype)
1079
      else:
1080
        iprot.skip(ftype)
1081
      iprot.readFieldEnd()
1082
    iprot.readStructEnd()
1083
 
1084
  def write(self, oprot):
1085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1087
      return
1088
    oprot.writeStructBegin('getTickets_args')
1089
    if self.customerId != None:
1090
      oprot.writeFieldBegin('customerId', TType.I64, 1)
1091
      oprot.writeI64(self.customerId)
1092
      oprot.writeFieldEnd()
1093
    oprot.writeFieldStop()
1094
    oprot.writeStructEnd()
1095
 
1096
  def __repr__(self):
1097
    L = ['%s=%r' % (key, value)
1098
      for key, value in self.__dict__.iteritems()]
1099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1100
 
1101
  def __eq__(self, other):
1102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1103
 
1104
  def __ne__(self, other):
1105
    return not (self == other)
1106
 
1107
class getTickets_result:
1108
  """
1109
  Attributes:
1110
   - success
1111
  """
1112
 
1113
  thrift_spec = (
1114
    (0, TType.LIST, 'success', (TType.STRUCT,(Ticket, Ticket.thrift_spec)), None, ), # 0
1115
  )
1116
 
1117
  def __init__(self, success=None,):
1118
    self.success = success
1119
 
1120
  def read(self, iprot):
1121
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1122
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1123
      return
1124
    iprot.readStructBegin()
1125
    while True:
1126
      (fname, ftype, fid) = iprot.readFieldBegin()
1127
      if ftype == TType.STOP:
1128
        break
1129
      if fid == 0:
1130
        if ftype == TType.LIST:
1131
          self.success = []
1132
          (_etype3, _size0) = iprot.readListBegin()
1133
          for _i4 in xrange(_size0):
1134
            _elem5 = Ticket()
1135
            _elem5.read(iprot)
1136
            self.success.append(_elem5)
1137
          iprot.readListEnd()
1138
        else:
1139
          iprot.skip(ftype)
1140
      else:
1141
        iprot.skip(ftype)
1142
      iprot.readFieldEnd()
1143
    iprot.readStructEnd()
1144
 
1145
  def write(self, oprot):
1146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1148
      return
1149
    oprot.writeStructBegin('getTickets_result')
1150
    if self.success != None:
1151
      oprot.writeFieldBegin('success', TType.LIST, 0)
1152
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1153
      for iter6 in self.success:
1154
        iter6.write(oprot)
1155
      oprot.writeListEnd()
1156
      oprot.writeFieldEnd()
1157
    oprot.writeFieldStop()
1158
    oprot.writeStructEnd()
1159
 
1160
  def __repr__(self):
1161
    L = ['%s=%r' % (key, value)
1162
      for key, value in self.__dict__.iteritems()]
1163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1164
 
1165
  def __eq__(self, other):
1166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1167
 
1168
  def __ne__(self, other):
1169
    return not (self == other)
1170
 
1171
class getAssignedTickets_args:
1172
  """
1173
  Attributes:
1174
   - agentId
1175
  """
1176
 
1177
  thrift_spec = (
1178
    None, # 0
1179
    (1, TType.I64, 'agentId', None, None, ), # 1
1180
  )
1181
 
1182
  def __init__(self, agentId=None,):
1183
    self.agentId = agentId
1184
 
1185
  def read(self, iprot):
1186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1188
      return
1189
    iprot.readStructBegin()
1190
    while True:
1191
      (fname, ftype, fid) = iprot.readFieldBegin()
1192
      if ftype == TType.STOP:
1193
        break
1194
      if fid == 1:
1195
        if ftype == TType.I64:
1196
          self.agentId = iprot.readI64();
1197
        else:
1198
          iprot.skip(ftype)
1199
      else:
1200
        iprot.skip(ftype)
1201
      iprot.readFieldEnd()
1202
    iprot.readStructEnd()
1203
 
1204
  def write(self, oprot):
1205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1207
      return
1208
    oprot.writeStructBegin('getAssignedTickets_args')
1209
    if self.agentId != None:
1210
      oprot.writeFieldBegin('agentId', TType.I64, 1)
1211
      oprot.writeI64(self.agentId)
1212
      oprot.writeFieldEnd()
1213
    oprot.writeFieldStop()
1214
    oprot.writeStructEnd()
1215
 
1216
  def __repr__(self):
1217
    L = ['%s=%r' % (key, value)
1218
      for key, value in self.__dict__.iteritems()]
1219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1220
 
1221
  def __eq__(self, other):
1222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1223
 
1224
  def __ne__(self, other):
1225
    return not (self == other)
1226
 
1227
class getAssignedTickets_result:
1228
  """
1229
  Attributes:
1230
   - success
1231
  """
1232
 
1233
  thrift_spec = (
1234
    (0, TType.LIST, 'success', (TType.STRUCT,(Ticket, Ticket.thrift_spec)), None, ), # 0
1235
  )
1236
 
1237
  def __init__(self, success=None,):
1238
    self.success = success
1239
 
1240
  def read(self, iprot):
1241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1243
      return
1244
    iprot.readStructBegin()
1245
    while True:
1246
      (fname, ftype, fid) = iprot.readFieldBegin()
1247
      if ftype == TType.STOP:
1248
        break
1249
      if fid == 0:
1250
        if ftype == TType.LIST:
1251
          self.success = []
1252
          (_etype10, _size7) = iprot.readListBegin()
1253
          for _i11 in xrange(_size7):
1254
            _elem12 = Ticket()
1255
            _elem12.read(iprot)
1256
            self.success.append(_elem12)
1257
          iprot.readListEnd()
1258
        else:
1259
          iprot.skip(ftype)
1260
      else:
1261
        iprot.skip(ftype)
1262
      iprot.readFieldEnd()
1263
    iprot.readStructEnd()
1264
 
1265
  def write(self, oprot):
1266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1268
      return
1269
    oprot.writeStructBegin('getAssignedTickets_result')
1270
    if self.success != None:
1271
      oprot.writeFieldBegin('success', TType.LIST, 0)
1272
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1273
      for iter13 in self.success:
1274
        iter13.write(oprot)
1275
      oprot.writeListEnd()
1276
      oprot.writeFieldEnd()
1277
    oprot.writeFieldStop()
1278
    oprot.writeStructEnd()
1279
 
1280
  def __repr__(self):
1281
    L = ['%s=%r' % (key, value)
1282
      for key, value in self.__dict__.iteritems()]
1283
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1284
 
1285
  def __eq__(self, other):
1286
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1287
 
1288
  def __ne__(self, other):
1289
    return not (self == other)
1290
 
3376 rajveer 1291
class getUnassignedTickets_args:
3131 rajveer 1292
 
1293
  thrift_spec = (
1294
  )
1295
 
1296
  def read(self, iprot):
1297
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1298
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1299
      return
1300
    iprot.readStructBegin()
1301
    while True:
1302
      (fname, ftype, fid) = iprot.readFieldBegin()
1303
      if ftype == TType.STOP:
1304
        break
1305
      else:
1306
        iprot.skip(ftype)
1307
      iprot.readFieldEnd()
1308
    iprot.readStructEnd()
1309
 
1310
  def write(self, oprot):
1311
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1312
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1313
      return
3376 rajveer 1314
    oprot.writeStructBegin('getUnassignedTickets_args')
3131 rajveer 1315
    oprot.writeFieldStop()
1316
    oprot.writeStructEnd()
1317
 
1318
  def __repr__(self):
1319
    L = ['%s=%r' % (key, value)
1320
      for key, value in self.__dict__.iteritems()]
1321
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1322
 
1323
  def __eq__(self, other):
1324
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1325
 
1326
  def __ne__(self, other):
1327
    return not (self == other)
1328
 
3376 rajveer 1329
class getUnassignedTickets_result:
3131 rajveer 1330
  """
1331
  Attributes:
1332
   - success
1333
  """
1334
 
1335
  thrift_spec = (
1336
    (0, TType.LIST, 'success', (TType.STRUCT,(Ticket, Ticket.thrift_spec)), None, ), # 0
1337
  )
1338
 
1339
  def __init__(self, success=None,):
1340
    self.success = success
1341
 
1342
  def read(self, iprot):
1343
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1344
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1345
      return
1346
    iprot.readStructBegin()
1347
    while True:
1348
      (fname, ftype, fid) = iprot.readFieldBegin()
1349
      if ftype == TType.STOP:
1350
        break
1351
      if fid == 0:
1352
        if ftype == TType.LIST:
1353
          self.success = []
1354
          (_etype17, _size14) = iprot.readListBegin()
1355
          for _i18 in xrange(_size14):
1356
            _elem19 = Ticket()
1357
            _elem19.read(iprot)
1358
            self.success.append(_elem19)
1359
          iprot.readListEnd()
1360
        else:
1361
          iprot.skip(ftype)
1362
      else:
1363
        iprot.skip(ftype)
1364
      iprot.readFieldEnd()
1365
    iprot.readStructEnd()
1366
 
1367
  def write(self, oprot):
1368
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1369
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1370
      return
3376 rajveer 1371
    oprot.writeStructBegin('getUnassignedTickets_result')
3131 rajveer 1372
    if self.success != None:
1373
      oprot.writeFieldBegin('success', TType.LIST, 0)
1374
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1375
      for iter20 in self.success:
1376
        iter20.write(oprot)
1377
      oprot.writeListEnd()
1378
      oprot.writeFieldEnd()
1379
    oprot.writeFieldStop()
1380
    oprot.writeStructEnd()
1381
 
1382
  def __repr__(self):
1383
    L = ['%s=%r' % (key, value)
1384
      for key, value in self.__dict__.iteritems()]
1385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1386
 
1387
  def __eq__(self, other):
1388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1389
 
1390
  def __ne__(self, other):
1391
    return not (self == other)
1392
 
3376 rajveer 1393
class getAllTickets_args:
1394
  """
1395
  Attributes:
1396
   - agentId
1397
  """
1398
 
1399
  thrift_spec = (
1400
    None, # 0
1401
    (1, TType.I64, 'agentId', None, None, ), # 1
1402
  )
1403
 
1404
  def __init__(self, agentId=None,):
1405
    self.agentId = agentId
1406
 
1407
  def read(self, iprot):
1408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1410
      return
1411
    iprot.readStructBegin()
1412
    while True:
1413
      (fname, ftype, fid) = iprot.readFieldBegin()
1414
      if ftype == TType.STOP:
1415
        break
1416
      if fid == 1:
1417
        if ftype == TType.I64:
1418
          self.agentId = iprot.readI64();
1419
        else:
1420
          iprot.skip(ftype)
1421
      else:
1422
        iprot.skip(ftype)
1423
      iprot.readFieldEnd()
1424
    iprot.readStructEnd()
1425
 
1426
  def write(self, oprot):
1427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1429
      return
1430
    oprot.writeStructBegin('getAllTickets_args')
1431
    if self.agentId != None:
1432
      oprot.writeFieldBegin('agentId', TType.I64, 1)
1433
      oprot.writeI64(self.agentId)
1434
      oprot.writeFieldEnd()
1435
    oprot.writeFieldStop()
1436
    oprot.writeStructEnd()
1437
 
1438
  def __repr__(self):
1439
    L = ['%s=%r' % (key, value)
1440
      for key, value in self.__dict__.iteritems()]
1441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1442
 
1443
  def __eq__(self, other):
1444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1445
 
1446
  def __ne__(self, other):
1447
    return not (self == other)
1448
 
1449
class getAllTickets_result:
1450
  """
1451
  Attributes:
1452
   - success
1453
  """
1454
 
1455
  thrift_spec = (
1456
    (0, TType.LIST, 'success', (TType.STRUCT,(Ticket, Ticket.thrift_spec)), None, ), # 0
1457
  )
1458
 
1459
  def __init__(self, success=None,):
1460
    self.success = success
1461
 
1462
  def read(self, iprot):
1463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1465
      return
1466
    iprot.readStructBegin()
1467
    while True:
1468
      (fname, ftype, fid) = iprot.readFieldBegin()
1469
      if ftype == TType.STOP:
1470
        break
1471
      if fid == 0:
1472
        if ftype == TType.LIST:
1473
          self.success = []
1474
          (_etype24, _size21) = iprot.readListBegin()
1475
          for _i25 in xrange(_size21):
1476
            _elem26 = Ticket()
1477
            _elem26.read(iprot)
1478
            self.success.append(_elem26)
1479
          iprot.readListEnd()
1480
        else:
1481
          iprot.skip(ftype)
1482
      else:
1483
        iprot.skip(ftype)
1484
      iprot.readFieldEnd()
1485
    iprot.readStructEnd()
1486
 
1487
  def write(self, oprot):
1488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1490
      return
1491
    oprot.writeStructBegin('getAllTickets_result')
1492
    if self.success != None:
1493
      oprot.writeFieldBegin('success', TType.LIST, 0)
1494
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1495
      for iter27 in self.success:
1496
        iter27.write(oprot)
1497
      oprot.writeListEnd()
1498
      oprot.writeFieldEnd()
1499
    oprot.writeFieldStop()
1500
    oprot.writeStructEnd()
1501
 
1502
  def __repr__(self):
1503
    L = ['%s=%r' % (key, value)
1504
      for key, value in self.__dict__.iteritems()]
1505
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1506
 
1507
  def __eq__(self, other):
1508
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1509
 
1510
  def __ne__(self, other):
1511
    return not (self == other)
1512
 
3131 rajveer 1513
class getTicket_args:
1514
  """
1515
  Attributes:
1516
   - ticketId
1517
  """
1518
 
1519
  thrift_spec = (
1520
    None, # 0
1521
    (1, TType.I64, 'ticketId', None, None, ), # 1
1522
  )
1523
 
1524
  def __init__(self, ticketId=None,):
1525
    self.ticketId = ticketId
1526
 
1527
  def read(self, iprot):
1528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1530
      return
1531
    iprot.readStructBegin()
1532
    while True:
1533
      (fname, ftype, fid) = iprot.readFieldBegin()
1534
      if ftype == TType.STOP:
1535
        break
1536
      if fid == 1:
1537
        if ftype == TType.I64:
1538
          self.ticketId = iprot.readI64();
1539
        else:
1540
          iprot.skip(ftype)
1541
      else:
1542
        iprot.skip(ftype)
1543
      iprot.readFieldEnd()
1544
    iprot.readStructEnd()
1545
 
1546
  def write(self, oprot):
1547
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1548
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1549
      return
1550
    oprot.writeStructBegin('getTicket_args')
1551
    if self.ticketId != None:
1552
      oprot.writeFieldBegin('ticketId', TType.I64, 1)
1553
      oprot.writeI64(self.ticketId)
1554
      oprot.writeFieldEnd()
1555
    oprot.writeFieldStop()
1556
    oprot.writeStructEnd()
1557
 
1558
  def __repr__(self):
1559
    L = ['%s=%r' % (key, value)
1560
      for key, value in self.__dict__.iteritems()]
1561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1562
 
1563
  def __eq__(self, other):
1564
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1565
 
1566
  def __ne__(self, other):
1567
    return not (self == other)
1568
 
1569
class getTicket_result:
1570
  """
1571
  Attributes:
1572
   - success
1573
  """
1574
 
1575
  thrift_spec = (
1576
    (0, TType.STRUCT, 'success', (Ticket, Ticket.thrift_spec), None, ), # 0
1577
  )
1578
 
1579
  def __init__(self, success=None,):
1580
    self.success = success
1581
 
1582
  def read(self, iprot):
1583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1585
      return
1586
    iprot.readStructBegin()
1587
    while True:
1588
      (fname, ftype, fid) = iprot.readFieldBegin()
1589
      if ftype == TType.STOP:
1590
        break
1591
      if fid == 0:
1592
        if ftype == TType.STRUCT:
1593
          self.success = Ticket()
1594
          self.success.read(iprot)
1595
        else:
1596
          iprot.skip(ftype)
1597
      else:
1598
        iprot.skip(ftype)
1599
      iprot.readFieldEnd()
1600
    iprot.readStructEnd()
1601
 
1602
  def write(self, oprot):
1603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1605
      return
1606
    oprot.writeStructBegin('getTicket_result')
1607
    if self.success != None:
1608
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1609
      self.success.write(oprot)
1610
      oprot.writeFieldEnd()
1611
    oprot.writeFieldStop()
1612
    oprot.writeStructEnd()
1613
 
1614
  def __repr__(self):
1615
    L = ['%s=%r' % (key, value)
1616
      for key, value in self.__dict__.iteritems()]
1617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1618
 
1619
  def __eq__(self, other):
1620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1621
 
1622
  def __ne__(self, other):
1623
    return not (self == other)
1624
 
1625
class updateTicket_args:
1626
  """
1627
  Attributes:
1628
   - ticket
3376 rajveer 1629
   - activity
3131 rajveer 1630
  """
1631
 
1632
  thrift_spec = (
1633
    None, # 0
1634
    (1, TType.STRUCT, 'ticket', (Ticket, Ticket.thrift_spec), None, ), # 1
3376 rajveer 1635
    (2, TType.STRUCT, 'activity', (Activity, Activity.thrift_spec), None, ), # 2
3131 rajveer 1636
  )
1637
 
3376 rajveer 1638
  def __init__(self, ticket=None, activity=None,):
3131 rajveer 1639
    self.ticket = ticket
3376 rajveer 1640
    self.activity = activity
3131 rajveer 1641
 
1642
  def read(self, iprot):
1643
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1644
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1645
      return
1646
    iprot.readStructBegin()
1647
    while True:
1648
      (fname, ftype, fid) = iprot.readFieldBegin()
1649
      if ftype == TType.STOP:
1650
        break
1651
      if fid == 1:
1652
        if ftype == TType.STRUCT:
1653
          self.ticket = Ticket()
1654
          self.ticket.read(iprot)
1655
        else:
1656
          iprot.skip(ftype)
3376 rajveer 1657
      elif fid == 2:
1658
        if ftype == TType.STRUCT:
1659
          self.activity = Activity()
1660
          self.activity.read(iprot)
1661
        else:
1662
          iprot.skip(ftype)
3131 rajveer 1663
      else:
1664
        iprot.skip(ftype)
1665
      iprot.readFieldEnd()
1666
    iprot.readStructEnd()
1667
 
1668
  def write(self, oprot):
1669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1671
      return
1672
    oprot.writeStructBegin('updateTicket_args')
1673
    if self.ticket != None:
1674
      oprot.writeFieldBegin('ticket', TType.STRUCT, 1)
1675
      self.ticket.write(oprot)
1676
      oprot.writeFieldEnd()
3376 rajveer 1677
    if self.activity != None:
1678
      oprot.writeFieldBegin('activity', TType.STRUCT, 2)
1679
      self.activity.write(oprot)
1680
      oprot.writeFieldEnd()
3131 rajveer 1681
    oprot.writeFieldStop()
1682
    oprot.writeStructEnd()
1683
 
1684
  def __repr__(self):
1685
    L = ['%s=%r' % (key, value)
1686
      for key, value in self.__dict__.iteritems()]
1687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1688
 
1689
  def __eq__(self, other):
1690
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1691
 
1692
  def __ne__(self, other):
1693
    return not (self == other)
1694
 
1695
class updateTicket_result:
1696
 
1697
  thrift_spec = (
1698
  )
1699
 
1700
  def read(self, iprot):
1701
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1702
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1703
      return
1704
    iprot.readStructBegin()
1705
    while True:
1706
      (fname, ftype, fid) = iprot.readFieldBegin()
1707
      if ftype == TType.STOP:
1708
        break
1709
      else:
1710
        iprot.skip(ftype)
1711
      iprot.readFieldEnd()
1712
    iprot.readStructEnd()
1713
 
1714
  def write(self, oprot):
1715
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1716
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1717
      return
1718
    oprot.writeStructBegin('updateTicket_result')
1719
    oprot.writeFieldStop()
1720
    oprot.writeStructEnd()
1721
 
1722
  def __repr__(self):
1723
    L = ['%s=%r' % (key, value)
1724
      for key, value in self.__dict__.iteritems()]
1725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1726
 
1727
  def __eq__(self, other):
1728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1729
 
1730
  def __ne__(self, other):
1731
    return not (self == other)
1732
 
1733
class insertTicket_args:
1734
  """
1735
  Attributes:
1736
   - ticket
3376 rajveer 1737
   - activity
3131 rajveer 1738
  """
1739
 
1740
  thrift_spec = (
1741
    None, # 0
1742
    (1, TType.STRUCT, 'ticket', (Ticket, Ticket.thrift_spec), None, ), # 1
3376 rajveer 1743
    (2, TType.STRUCT, 'activity', (Activity, Activity.thrift_spec), None, ), # 2
3131 rajveer 1744
  )
1745
 
3376 rajveer 1746
  def __init__(self, ticket=None, activity=None,):
3131 rajveer 1747
    self.ticket = ticket
3376 rajveer 1748
    self.activity = activity
3131 rajveer 1749
 
1750
  def read(self, iprot):
1751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1753
      return
1754
    iprot.readStructBegin()
1755
    while True:
1756
      (fname, ftype, fid) = iprot.readFieldBegin()
1757
      if ftype == TType.STOP:
1758
        break
1759
      if fid == 1:
1760
        if ftype == TType.STRUCT:
1761
          self.ticket = Ticket()
1762
          self.ticket.read(iprot)
1763
        else:
1764
          iprot.skip(ftype)
3376 rajveer 1765
      elif fid == 2:
1766
        if ftype == TType.STRUCT:
1767
          self.activity = Activity()
1768
          self.activity.read(iprot)
1769
        else:
1770
          iprot.skip(ftype)
3131 rajveer 1771
      else:
1772
        iprot.skip(ftype)
1773
      iprot.readFieldEnd()
1774
    iprot.readStructEnd()
1775
 
1776
  def write(self, oprot):
1777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1779
      return
1780
    oprot.writeStructBegin('insertTicket_args')
1781
    if self.ticket != None:
1782
      oprot.writeFieldBegin('ticket', TType.STRUCT, 1)
1783
      self.ticket.write(oprot)
1784
      oprot.writeFieldEnd()
3376 rajveer 1785
    if self.activity != None:
1786
      oprot.writeFieldBegin('activity', TType.STRUCT, 2)
1787
      self.activity.write(oprot)
1788
      oprot.writeFieldEnd()
3131 rajveer 1789
    oprot.writeFieldStop()
1790
    oprot.writeStructEnd()
1791
 
1792
  def __repr__(self):
1793
    L = ['%s=%r' % (key, value)
1794
      for key, value in self.__dict__.iteritems()]
1795
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1796
 
1797
  def __eq__(self, other):
1798
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1799
 
1800
  def __ne__(self, other):
1801
    return not (self == other)
1802
 
1803
class insertTicket_result:
1804
  """
1805
  Attributes:
1806
   - success
1807
  """
1808
 
1809
  thrift_spec = (
1810
    (0, TType.I64, 'success', None, None, ), # 0
1811
  )
1812
 
1813
  def __init__(self, success=None,):
1814
    self.success = success
1815
 
1816
  def read(self, iprot):
1817
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1818
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1819
      return
1820
    iprot.readStructBegin()
1821
    while True:
1822
      (fname, ftype, fid) = iprot.readFieldBegin()
1823
      if ftype == TType.STOP:
1824
        break
1825
      if fid == 0:
1826
        if ftype == TType.I64:
1827
          self.success = iprot.readI64();
1828
        else:
1829
          iprot.skip(ftype)
1830
      else:
1831
        iprot.skip(ftype)
1832
      iprot.readFieldEnd()
1833
    iprot.readStructEnd()
1834
 
1835
  def write(self, oprot):
1836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1838
      return
1839
    oprot.writeStructBegin('insertTicket_result')
1840
    if self.success != None:
1841
      oprot.writeFieldBegin('success', TType.I64, 0)
1842
      oprot.writeI64(self.success)
1843
      oprot.writeFieldEnd()
1844
    oprot.writeFieldStop()
1845
    oprot.writeStructEnd()
1846
 
1847
  def __repr__(self):
1848
    L = ['%s=%r' % (key, value)
1849
      for key, value in self.__dict__.iteritems()]
1850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1851
 
1852
  def __eq__(self, other):
1853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1854
 
1855
  def __ne__(self, other):
1856
    return not (self == other)
1857
 
1858
class getActivities_args:
1859
  """
1860
  Attributes:
1861
   - customerId
1862
  """
1863
 
1864
  thrift_spec = (
1865
    None, # 0
1866
    (1, TType.I64, 'customerId', None, None, ), # 1
1867
  )
1868
 
1869
  def __init__(self, customerId=None,):
1870
    self.customerId = customerId
1871
 
1872
  def read(self, iprot):
1873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1875
      return
1876
    iprot.readStructBegin()
1877
    while True:
1878
      (fname, ftype, fid) = iprot.readFieldBegin()
1879
      if ftype == TType.STOP:
1880
        break
1881
      if fid == 1:
1882
        if ftype == TType.I64:
1883
          self.customerId = iprot.readI64();
1884
        else:
1885
          iprot.skip(ftype)
1886
      else:
1887
        iprot.skip(ftype)
1888
      iprot.readFieldEnd()
1889
    iprot.readStructEnd()
1890
 
1891
  def write(self, oprot):
1892
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1893
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1894
      return
1895
    oprot.writeStructBegin('getActivities_args')
1896
    if self.customerId != None:
1897
      oprot.writeFieldBegin('customerId', TType.I64, 1)
1898
      oprot.writeI64(self.customerId)
1899
      oprot.writeFieldEnd()
1900
    oprot.writeFieldStop()
1901
    oprot.writeStructEnd()
1902
 
1903
  def __repr__(self):
1904
    L = ['%s=%r' % (key, value)
1905
      for key, value in self.__dict__.iteritems()]
1906
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1907
 
1908
  def __eq__(self, other):
1909
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1910
 
1911
  def __ne__(self, other):
1912
    return not (self == other)
1913
 
1914
class getActivities_result:
1915
  """
1916
  Attributes:
1917
   - success
1918
  """
1919
 
1920
  thrift_spec = (
1921
    (0, TType.LIST, 'success', (TType.STRUCT,(Activity, Activity.thrift_spec)), None, ), # 0
1922
  )
1923
 
1924
  def __init__(self, success=None,):
1925
    self.success = success
1926
 
1927
  def read(self, iprot):
1928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1930
      return
1931
    iprot.readStructBegin()
1932
    while True:
1933
      (fname, ftype, fid) = iprot.readFieldBegin()
1934
      if ftype == TType.STOP:
1935
        break
1936
      if fid == 0:
1937
        if ftype == TType.LIST:
1938
          self.success = []
3376 rajveer 1939
          (_etype31, _size28) = iprot.readListBegin()
1940
          for _i32 in xrange(_size28):
1941
            _elem33 = Activity()
1942
            _elem33.read(iprot)
1943
            self.success.append(_elem33)
3131 rajveer 1944
          iprot.readListEnd()
1945
        else:
1946
          iprot.skip(ftype)
1947
      else:
1948
        iprot.skip(ftype)
1949
      iprot.readFieldEnd()
1950
    iprot.readStructEnd()
1951
 
1952
  def write(self, oprot):
1953
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1954
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1955
      return
1956
    oprot.writeStructBegin('getActivities_result')
1957
    if self.success != None:
1958
      oprot.writeFieldBegin('success', TType.LIST, 0)
1959
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3376 rajveer 1960
      for iter34 in self.success:
1961
        iter34.write(oprot)
3131 rajveer 1962
      oprot.writeListEnd()
1963
      oprot.writeFieldEnd()
1964
    oprot.writeFieldStop()
1965
    oprot.writeStructEnd()
1966
 
1967
  def __repr__(self):
1968
    L = ['%s=%r' % (key, value)
1969
      for key, value in self.__dict__.iteritems()]
1970
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1971
 
1972
  def __eq__(self, other):
1973
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1974
 
1975
  def __ne__(self, other):
1976
    return not (self == other)
1977
 
3376 rajveer 1978
class getActivitiesByCreator_args:
1979
  """
1980
  Attributes:
1981
   - creatorId
1982
  """
1983
 
1984
  thrift_spec = (
1985
    None, # 0
1986
    (1, TType.I64, 'creatorId', None, None, ), # 1
1987
  )
1988
 
1989
  def __init__(self, creatorId=None,):
1990
    self.creatorId = creatorId
1991
 
1992
  def read(self, iprot):
1993
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1994
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1995
      return
1996
    iprot.readStructBegin()
1997
    while True:
1998
      (fname, ftype, fid) = iprot.readFieldBegin()
1999
      if ftype == TType.STOP:
2000
        break
2001
      if fid == 1:
2002
        if ftype == TType.I64:
2003
          self.creatorId = iprot.readI64();
2004
        else:
2005
          iprot.skip(ftype)
2006
      else:
2007
        iprot.skip(ftype)
2008
      iprot.readFieldEnd()
2009
    iprot.readStructEnd()
2010
 
2011
  def write(self, oprot):
2012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2014
      return
2015
    oprot.writeStructBegin('getActivitiesByCreator_args')
2016
    if self.creatorId != None:
2017
      oprot.writeFieldBegin('creatorId', TType.I64, 1)
2018
      oprot.writeI64(self.creatorId)
2019
      oprot.writeFieldEnd()
2020
    oprot.writeFieldStop()
2021
    oprot.writeStructEnd()
2022
 
2023
  def __repr__(self):
2024
    L = ['%s=%r' % (key, value)
2025
      for key, value in self.__dict__.iteritems()]
2026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2027
 
2028
  def __eq__(self, other):
2029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2030
 
2031
  def __ne__(self, other):
2032
    return not (self == other)
2033
 
2034
class getActivitiesByCreator_result:
2035
  """
2036
  Attributes:
2037
   - success
2038
  """
2039
 
2040
  thrift_spec = (
2041
    (0, TType.LIST, 'success', (TType.STRUCT,(Activity, Activity.thrift_spec)), None, ), # 0
2042
  )
2043
 
2044
  def __init__(self, success=None,):
2045
    self.success = success
2046
 
2047
  def read(self, iprot):
2048
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2049
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2050
      return
2051
    iprot.readStructBegin()
2052
    while True:
2053
      (fname, ftype, fid) = iprot.readFieldBegin()
2054
      if ftype == TType.STOP:
2055
        break
2056
      if fid == 0:
2057
        if ftype == TType.LIST:
2058
          self.success = []
2059
          (_etype38, _size35) = iprot.readListBegin()
2060
          for _i39 in xrange(_size35):
2061
            _elem40 = Activity()
2062
            _elem40.read(iprot)
2063
            self.success.append(_elem40)
2064
          iprot.readListEnd()
2065
        else:
2066
          iprot.skip(ftype)
2067
      else:
2068
        iprot.skip(ftype)
2069
      iprot.readFieldEnd()
2070
    iprot.readStructEnd()
2071
 
2072
  def write(self, oprot):
2073
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2074
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2075
      return
2076
    oprot.writeStructBegin('getActivitiesByCreator_result')
2077
    if self.success != None:
2078
      oprot.writeFieldBegin('success', TType.LIST, 0)
2079
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2080
      for iter41 in self.success:
2081
        iter41.write(oprot)
2082
      oprot.writeListEnd()
2083
      oprot.writeFieldEnd()
2084
    oprot.writeFieldStop()
2085
    oprot.writeStructEnd()
2086
 
2087
  def __repr__(self):
2088
    L = ['%s=%r' % (key, value)
2089
      for key, value in self.__dict__.iteritems()]
2090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2091
 
2092
  def __eq__(self, other):
2093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2094
 
2095
  def __ne__(self, other):
2096
    return not (self == other)
2097
 
3131 rajveer 2098
class getActivitiesForTicket_args:
2099
  """
2100
  Attributes:
2101
   - ticketId
2102
  """
2103
 
2104
  thrift_spec = (
2105
    None, # 0
2106
    (1, TType.I64, 'ticketId', None, None, ), # 1
2107
  )
2108
 
2109
  def __init__(self, ticketId=None,):
2110
    self.ticketId = ticketId
2111
 
2112
  def read(self, iprot):
2113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2115
      return
2116
    iprot.readStructBegin()
2117
    while True:
2118
      (fname, ftype, fid) = iprot.readFieldBegin()
2119
      if ftype == TType.STOP:
2120
        break
2121
      if fid == 1:
2122
        if ftype == TType.I64:
2123
          self.ticketId = iprot.readI64();
2124
        else:
2125
          iprot.skip(ftype)
2126
      else:
2127
        iprot.skip(ftype)
2128
      iprot.readFieldEnd()
2129
    iprot.readStructEnd()
2130
 
2131
  def write(self, oprot):
2132
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2133
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2134
      return
2135
    oprot.writeStructBegin('getActivitiesForTicket_args')
2136
    if self.ticketId != None:
2137
      oprot.writeFieldBegin('ticketId', TType.I64, 1)
2138
      oprot.writeI64(self.ticketId)
2139
      oprot.writeFieldEnd()
2140
    oprot.writeFieldStop()
2141
    oprot.writeStructEnd()
2142
 
2143
  def __repr__(self):
2144
    L = ['%s=%r' % (key, value)
2145
      for key, value in self.__dict__.iteritems()]
2146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2147
 
2148
  def __eq__(self, other):
2149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2150
 
2151
  def __ne__(self, other):
2152
    return not (self == other)
2153
 
2154
class getActivitiesForTicket_result:
2155
  """
2156
  Attributes:
2157
   - success
2158
  """
2159
 
2160
  thrift_spec = (
2161
    (0, TType.LIST, 'success', (TType.STRUCT,(Activity, Activity.thrift_spec)), None, ), # 0
2162
  )
2163
 
2164
  def __init__(self, success=None,):
2165
    self.success = success
2166
 
2167
  def read(self, iprot):
2168
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2169
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2170
      return
2171
    iprot.readStructBegin()
2172
    while True:
2173
      (fname, ftype, fid) = iprot.readFieldBegin()
2174
      if ftype == TType.STOP:
2175
        break
2176
      if fid == 0:
2177
        if ftype == TType.LIST:
2178
          self.success = []
3376 rajveer 2179
          (_etype45, _size42) = iprot.readListBegin()
2180
          for _i46 in xrange(_size42):
2181
            _elem47 = Activity()
2182
            _elem47.read(iprot)
2183
            self.success.append(_elem47)
3131 rajveer 2184
          iprot.readListEnd()
2185
        else:
2186
          iprot.skip(ftype)
2187
      else:
2188
        iprot.skip(ftype)
2189
      iprot.readFieldEnd()
2190
    iprot.readStructEnd()
2191
 
2192
  def write(self, oprot):
2193
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2194
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2195
      return
2196
    oprot.writeStructBegin('getActivitiesForTicket_result')
2197
    if self.success != None:
2198
      oprot.writeFieldBegin('success', TType.LIST, 0)
2199
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3376 rajveer 2200
      for iter48 in self.success:
2201
        iter48.write(oprot)
3131 rajveer 2202
      oprot.writeListEnd()
2203
      oprot.writeFieldEnd()
2204
    oprot.writeFieldStop()
2205
    oprot.writeStructEnd()
2206
 
2207
  def __repr__(self):
2208
    L = ['%s=%r' % (key, value)
2209
      for key, value in self.__dict__.iteritems()]
2210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2211
 
2212
  def __eq__(self, other):
2213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2214
 
2215
  def __ne__(self, other):
2216
    return not (self == other)
2217
 
2218
class getActivity_args:
2219
  """
2220
  Attributes:
2221
   - activityId
2222
  """
2223
 
2224
  thrift_spec = (
2225
    None, # 0
2226
    (1, TType.I64, 'activityId', None, None, ), # 1
2227
  )
2228
 
2229
  def __init__(self, activityId=None,):
2230
    self.activityId = activityId
2231
 
2232
  def read(self, iprot):
2233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2235
      return
2236
    iprot.readStructBegin()
2237
    while True:
2238
      (fname, ftype, fid) = iprot.readFieldBegin()
2239
      if ftype == TType.STOP:
2240
        break
2241
      if fid == 1:
2242
        if ftype == TType.I64:
2243
          self.activityId = iprot.readI64();
2244
        else:
2245
          iprot.skip(ftype)
2246
      else:
2247
        iprot.skip(ftype)
2248
      iprot.readFieldEnd()
2249
    iprot.readStructEnd()
2250
 
2251
  def write(self, oprot):
2252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2254
      return
2255
    oprot.writeStructBegin('getActivity_args')
2256
    if self.activityId != None:
2257
      oprot.writeFieldBegin('activityId', TType.I64, 1)
2258
      oprot.writeI64(self.activityId)
2259
      oprot.writeFieldEnd()
2260
    oprot.writeFieldStop()
2261
    oprot.writeStructEnd()
2262
 
2263
  def __repr__(self):
2264
    L = ['%s=%r' % (key, value)
2265
      for key, value in self.__dict__.iteritems()]
2266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2267
 
2268
  def __eq__(self, other):
2269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2270
 
2271
  def __ne__(self, other):
2272
    return not (self == other)
2273
 
2274
class getActivity_result:
2275
  """
2276
  Attributes:
2277
   - success
2278
  """
2279
 
2280
  thrift_spec = (
2281
    (0, TType.STRUCT, 'success', (Activity, Activity.thrift_spec), None, ), # 0
2282
  )
2283
 
2284
  def __init__(self, success=None,):
2285
    self.success = success
2286
 
2287
  def read(self, iprot):
2288
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2289
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2290
      return
2291
    iprot.readStructBegin()
2292
    while True:
2293
      (fname, ftype, fid) = iprot.readFieldBegin()
2294
      if ftype == TType.STOP:
2295
        break
2296
      if fid == 0:
2297
        if ftype == TType.STRUCT:
2298
          self.success = Activity()
2299
          self.success.read(iprot)
2300
        else:
2301
          iprot.skip(ftype)
2302
      else:
2303
        iprot.skip(ftype)
2304
      iprot.readFieldEnd()
2305
    iprot.readStructEnd()
2306
 
2307
  def write(self, oprot):
2308
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2309
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2310
      return
2311
    oprot.writeStructBegin('getActivity_result')
2312
    if self.success != None:
2313
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2314
      self.success.write(oprot)
2315
      oprot.writeFieldEnd()
2316
    oprot.writeFieldStop()
2317
    oprot.writeStructEnd()
2318
 
2319
  def __repr__(self):
2320
    L = ['%s=%r' % (key, value)
2321
      for key, value in self.__dict__.iteritems()]
2322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2323
 
2324
  def __eq__(self, other):
2325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2326
 
2327
  def __ne__(self, other):
2328
    return not (self == other)
2329
 
2330
class getLastActivity_args:
2331
  """
2332
  Attributes:
2333
   - ticketId
2334
  """
2335
 
2336
  thrift_spec = (
2337
    None, # 0
2338
    (1, TType.I64, 'ticketId', None, None, ), # 1
2339
  )
2340
 
2341
  def __init__(self, ticketId=None,):
2342
    self.ticketId = ticketId
2343
 
2344
  def read(self, iprot):
2345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2347
      return
2348
    iprot.readStructBegin()
2349
    while True:
2350
      (fname, ftype, fid) = iprot.readFieldBegin()
2351
      if ftype == TType.STOP:
2352
        break
2353
      if fid == 1:
2354
        if ftype == TType.I64:
2355
          self.ticketId = iprot.readI64();
2356
        else:
2357
          iprot.skip(ftype)
2358
      else:
2359
        iprot.skip(ftype)
2360
      iprot.readFieldEnd()
2361
    iprot.readStructEnd()
2362
 
2363
  def write(self, oprot):
2364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2366
      return
2367
    oprot.writeStructBegin('getLastActivity_args')
2368
    if self.ticketId != None:
2369
      oprot.writeFieldBegin('ticketId', TType.I64, 1)
2370
      oprot.writeI64(self.ticketId)
2371
      oprot.writeFieldEnd()
2372
    oprot.writeFieldStop()
2373
    oprot.writeStructEnd()
2374
 
2375
  def __repr__(self):
2376
    L = ['%s=%r' % (key, value)
2377
      for key, value in self.__dict__.iteritems()]
2378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2379
 
2380
  def __eq__(self, other):
2381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2382
 
2383
  def __ne__(self, other):
2384
    return not (self == other)
2385
 
2386
class getLastActivity_result:
2387
  """
2388
  Attributes:
2389
   - success
2390
  """
2391
 
2392
  thrift_spec = (
2393
    (0, TType.STRUCT, 'success', (Activity, Activity.thrift_spec), None, ), # 0
2394
  )
2395
 
2396
  def __init__(self, success=None,):
2397
    self.success = success
2398
 
2399
  def read(self, iprot):
2400
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2401
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2402
      return
2403
    iprot.readStructBegin()
2404
    while True:
2405
      (fname, ftype, fid) = iprot.readFieldBegin()
2406
      if ftype == TType.STOP:
2407
        break
2408
      if fid == 0:
2409
        if ftype == TType.STRUCT:
2410
          self.success = Activity()
2411
          self.success.read(iprot)
2412
        else:
2413
          iprot.skip(ftype)
2414
      else:
2415
        iprot.skip(ftype)
2416
      iprot.readFieldEnd()
2417
    iprot.readStructEnd()
2418
 
2419
  def write(self, oprot):
2420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2422
      return
2423
    oprot.writeStructBegin('getLastActivity_result')
2424
    if self.success != None:
2425
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2426
      self.success.write(oprot)
2427
      oprot.writeFieldEnd()
2428
    oprot.writeFieldStop()
2429
    oprot.writeStructEnd()
2430
 
2431
  def __repr__(self):
2432
    L = ['%s=%r' % (key, value)
2433
      for key, value in self.__dict__.iteritems()]
2434
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2435
 
2436
  def __eq__(self, other):
2437
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2438
 
2439
  def __ne__(self, other):
2440
    return not (self == other)
2441
 
2442
class insertActivity_args:
2443
  """
2444
  Attributes:
2445
   - activity
2446
  """
2447
 
2448
  thrift_spec = (
2449
    None, # 0
2450
    (1, TType.STRUCT, 'activity', (Activity, Activity.thrift_spec), None, ), # 1
2451
  )
2452
 
2453
  def __init__(self, activity=None,):
2454
    self.activity = activity
2455
 
2456
  def read(self, iprot):
2457
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2458
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2459
      return
2460
    iprot.readStructBegin()
2461
    while True:
2462
      (fname, ftype, fid) = iprot.readFieldBegin()
2463
      if ftype == TType.STOP:
2464
        break
2465
      if fid == 1:
2466
        if ftype == TType.STRUCT:
2467
          self.activity = Activity()
2468
          self.activity.read(iprot)
2469
        else:
2470
          iprot.skip(ftype)
2471
      else:
2472
        iprot.skip(ftype)
2473
      iprot.readFieldEnd()
2474
    iprot.readStructEnd()
2475
 
2476
  def write(self, oprot):
2477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2479
      return
2480
    oprot.writeStructBegin('insertActivity_args')
2481
    if self.activity != None:
2482
      oprot.writeFieldBegin('activity', TType.STRUCT, 1)
2483
      self.activity.write(oprot)
2484
      oprot.writeFieldEnd()
2485
    oprot.writeFieldStop()
2486
    oprot.writeStructEnd()
2487
 
2488
  def __repr__(self):
2489
    L = ['%s=%r' % (key, value)
2490
      for key, value in self.__dict__.iteritems()]
2491
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2492
 
2493
  def __eq__(self, other):
2494
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2495
 
2496
  def __ne__(self, other):
2497
    return not (self == other)
2498
 
2499
class insertActivity_result:
2500
 
2501
  thrift_spec = (
2502
  )
2503
 
2504
  def read(self, iprot):
2505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2507
      return
2508
    iprot.readStructBegin()
2509
    while True:
2510
      (fname, ftype, fid) = iprot.readFieldBegin()
2511
      if ftype == TType.STOP:
2512
        break
2513
      else:
2514
        iprot.skip(ftype)
2515
      iprot.readFieldEnd()
2516
    iprot.readStructEnd()
2517
 
2518
  def write(self, oprot):
2519
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2520
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2521
      return
2522
    oprot.writeStructBegin('insertActivity_result')
2523
    oprot.writeFieldStop()
2524
    oprot.writeStructEnd()
2525
 
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 getAllAgents_args:
2538
 
2539
  thrift_spec = (
2540
  )
2541
 
2542
  def read(self, iprot):
2543
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2544
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2545
      return
2546
    iprot.readStructBegin()
2547
    while True:
2548
      (fname, ftype, fid) = iprot.readFieldBegin()
2549
      if ftype == TType.STOP:
2550
        break
2551
      else:
2552
        iprot.skip(ftype)
2553
      iprot.readFieldEnd()
2554
    iprot.readStructEnd()
2555
 
2556
  def write(self, oprot):
2557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2559
      return
2560
    oprot.writeStructBegin('getAllAgents_args')
2561
    oprot.writeFieldStop()
2562
    oprot.writeStructEnd()
2563
 
2564
  def __repr__(self):
2565
    L = ['%s=%r' % (key, value)
2566
      for key, value in self.__dict__.iteritems()]
2567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2568
 
2569
  def __eq__(self, other):
2570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2571
 
2572
  def __ne__(self, other):
2573
    return not (self == other)
2574
 
2575
class getAllAgents_result:
2576
  """
2577
  Attributes:
2578
   - success
2579
  """
2580
 
2581
  thrift_spec = (
2582
    (0, TType.LIST, 'success', (TType.STRUCT,(Agent, Agent.thrift_spec)), None, ), # 0
2583
  )
2584
 
2585
  def __init__(self, success=None,):
2586
    self.success = success
2587
 
2588
  def read(self, iprot):
2589
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2590
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2591
      return
2592
    iprot.readStructBegin()
2593
    while True:
2594
      (fname, ftype, fid) = iprot.readFieldBegin()
2595
      if ftype == TType.STOP:
2596
        break
2597
      if fid == 0:
2598
        if ftype == TType.LIST:
2599
          self.success = []
3376 rajveer 2600
          (_etype52, _size49) = iprot.readListBegin()
2601
          for _i53 in xrange(_size49):
2602
            _elem54 = Agent()
2603
            _elem54.read(iprot)
2604
            self.success.append(_elem54)
3131 rajveer 2605
          iprot.readListEnd()
2606
        else:
2607
          iprot.skip(ftype)
2608
      else:
2609
        iprot.skip(ftype)
2610
      iprot.readFieldEnd()
2611
    iprot.readStructEnd()
2612
 
2613
  def write(self, oprot):
2614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2616
      return
2617
    oprot.writeStructBegin('getAllAgents_result')
2618
    if self.success != None:
2619
      oprot.writeFieldBegin('success', TType.LIST, 0)
2620
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3376 rajveer 2621
      for iter55 in self.success:
2622
        iter55.write(oprot)
3131 rajveer 2623
      oprot.writeListEnd()
2624
      oprot.writeFieldEnd()
2625
    oprot.writeFieldStop()
2626
    oprot.writeStructEnd()
2627
 
2628
  def __repr__(self):
2629
    L = ['%s=%r' % (key, value)
2630
      for key, value in self.__dict__.iteritems()]
2631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2632
 
2633
  def __eq__(self, other):
2634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2635
 
2636
  def __ne__(self, other):
2637
    return not (self == other)
2638
 
2639
class getAgent_args:
2640
  """
2641
  Attributes:
2642
   - agentId
2643
  """
2644
 
2645
  thrift_spec = (
2646
    None, # 0
2647
    (1, TType.I64, 'agentId', None, None, ), # 1
2648
  )
2649
 
2650
  def __init__(self, agentId=None,):
2651
    self.agentId = agentId
2652
 
2653
  def read(self, iprot):
2654
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2655
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2656
      return
2657
    iprot.readStructBegin()
2658
    while True:
2659
      (fname, ftype, fid) = iprot.readFieldBegin()
2660
      if ftype == TType.STOP:
2661
        break
2662
      if fid == 1:
2663
        if ftype == TType.I64:
2664
          self.agentId = iprot.readI64();
2665
        else:
2666
          iprot.skip(ftype)
2667
      else:
2668
        iprot.skip(ftype)
2669
      iprot.readFieldEnd()
2670
    iprot.readStructEnd()
2671
 
2672
  def write(self, oprot):
2673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2675
      return
2676
    oprot.writeStructBegin('getAgent_args')
2677
    if self.agentId != None:
2678
      oprot.writeFieldBegin('agentId', TType.I64, 1)
2679
      oprot.writeI64(self.agentId)
2680
      oprot.writeFieldEnd()
2681
    oprot.writeFieldStop()
2682
    oprot.writeStructEnd()
2683
 
2684
  def __repr__(self):
2685
    L = ['%s=%r' % (key, value)
2686
      for key, value in self.__dict__.iteritems()]
2687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2688
 
2689
  def __eq__(self, other):
2690
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2691
 
2692
  def __ne__(self, other):
2693
    return not (self == other)
2694
 
2695
class getAgent_result:
2696
  """
2697
  Attributes:
2698
   - success
2699
  """
2700
 
2701
  thrift_spec = (
2702
    (0, TType.STRUCT, 'success', (Agent, Agent.thrift_spec), None, ), # 0
2703
  )
2704
 
2705
  def __init__(self, success=None,):
2706
    self.success = success
2707
 
2708
  def read(self, iprot):
2709
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2710
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2711
      return
2712
    iprot.readStructBegin()
2713
    while True:
2714
      (fname, ftype, fid) = iprot.readFieldBegin()
2715
      if ftype == TType.STOP:
2716
        break
2717
      if fid == 0:
2718
        if ftype == TType.STRUCT:
2719
          self.success = Agent()
2720
          self.success.read(iprot)
2721
        else:
2722
          iprot.skip(ftype)
2723
      else:
2724
        iprot.skip(ftype)
2725
      iprot.readFieldEnd()
2726
    iprot.readStructEnd()
2727
 
2728
  def write(self, oprot):
2729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2731
      return
2732
    oprot.writeStructBegin('getAgent_result')
2733
    if self.success != None:
2734
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2735
      self.success.write(oprot)
2736
      oprot.writeFieldEnd()
2737
    oprot.writeFieldStop()
2738
    oprot.writeStructEnd()
2739
 
2740
  def __repr__(self):
2741
    L = ['%s=%r' % (key, value)
2742
      for key, value in self.__dict__.iteritems()]
2743
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2744
 
2745
  def __eq__(self, other):
2746
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2747
 
2748
  def __ne__(self, other):
2749
    return not (self == other)
2750
 
2751
class getAgentByEmailId_args:
2752
  """
2753
  Attributes:
2754
   - agentEmailId
2755
  """
2756
 
2757
  thrift_spec = (
2758
    None, # 0
2759
    (1, TType.STRING, 'agentEmailId', None, None, ), # 1
2760
  )
2761
 
2762
  def __init__(self, agentEmailId=None,):
2763
    self.agentEmailId = agentEmailId
2764
 
2765
  def read(self, iprot):
2766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2768
      return
2769
    iprot.readStructBegin()
2770
    while True:
2771
      (fname, ftype, fid) = iprot.readFieldBegin()
2772
      if ftype == TType.STOP:
2773
        break
2774
      if fid == 1:
2775
        if ftype == TType.STRING:
2776
          self.agentEmailId = iprot.readString();
2777
        else:
2778
          iprot.skip(ftype)
2779
      else:
2780
        iprot.skip(ftype)
2781
      iprot.readFieldEnd()
2782
    iprot.readStructEnd()
2783
 
2784
  def write(self, oprot):
2785
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2786
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2787
      return
2788
    oprot.writeStructBegin('getAgentByEmailId_args')
2789
    if self.agentEmailId != None:
2790
      oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
2791
      oprot.writeString(self.agentEmailId)
2792
      oprot.writeFieldEnd()
2793
    oprot.writeFieldStop()
2794
    oprot.writeStructEnd()
2795
 
2796
  def __repr__(self):
2797
    L = ['%s=%r' % (key, value)
2798
      for key, value in self.__dict__.iteritems()]
2799
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2800
 
2801
  def __eq__(self, other):
2802
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2803
 
2804
  def __ne__(self, other):
2805
    return not (self == other)
2806
 
2807
class getAgentByEmailId_result:
2808
  """
2809
  Attributes:
2810
   - success
2811
  """
2812
 
2813
  thrift_spec = (
2814
    (0, TType.STRUCT, 'success', (Agent, Agent.thrift_spec), None, ), # 0
2815
  )
2816
 
2817
  def __init__(self, success=None,):
2818
    self.success = success
2819
 
2820
  def read(self, iprot):
2821
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2822
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2823
      return
2824
    iprot.readStructBegin()
2825
    while True:
2826
      (fname, ftype, fid) = iprot.readFieldBegin()
2827
      if ftype == TType.STOP:
2828
        break
2829
      if fid == 0:
2830
        if ftype == TType.STRUCT:
2831
          self.success = Agent()
2832
          self.success.read(iprot)
2833
        else:
2834
          iprot.skip(ftype)
2835
      else:
2836
        iprot.skip(ftype)
2837
      iprot.readFieldEnd()
2838
    iprot.readStructEnd()
2839
 
2840
  def write(self, oprot):
2841
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2842
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2843
      return
2844
    oprot.writeStructBegin('getAgentByEmailId_result')
2845
    if self.success != None:
2846
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2847
      self.success.write(oprot)
2848
      oprot.writeFieldEnd()
2849
    oprot.writeFieldStop()
2850
    oprot.writeStructEnd()
2851
 
2852
  def __repr__(self):
2853
    L = ['%s=%r' % (key, value)
2854
      for key, value in self.__dict__.iteritems()]
2855
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2856
 
2857
  def __eq__(self, other):
2858
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2859
 
2860
  def __ne__(self, other):
2861
    return not (self == other)
2862
 
2863
class updatePasswordForAgent_args:
2864
  """
2865
  Attributes:
2866
   - agentEmailId
2867
   - password
2868
  """
2869
 
2870
  thrift_spec = (
2871
    None, # 0
2872
    (1, TType.STRING, 'agentEmailId', None, None, ), # 1
2873
    (2, TType.STRING, 'password', None, None, ), # 2
2874
  )
2875
 
2876
  def __init__(self, agentEmailId=None, password=None,):
2877
    self.agentEmailId = agentEmailId
2878
    self.password = password
2879
 
2880
  def read(self, iprot):
2881
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2882
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2883
      return
2884
    iprot.readStructBegin()
2885
    while True:
2886
      (fname, ftype, fid) = iprot.readFieldBegin()
2887
      if ftype == TType.STOP:
2888
        break
2889
      if fid == 1:
2890
        if ftype == TType.STRING:
2891
          self.agentEmailId = iprot.readString();
2892
        else:
2893
          iprot.skip(ftype)
2894
      elif fid == 2:
2895
        if ftype == TType.STRING:
2896
          self.password = iprot.readString();
2897
        else:
2898
          iprot.skip(ftype)
2899
      else:
2900
        iprot.skip(ftype)
2901
      iprot.readFieldEnd()
2902
    iprot.readStructEnd()
2903
 
2904
  def write(self, oprot):
2905
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2906
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2907
      return
2908
    oprot.writeStructBegin('updatePasswordForAgent_args')
2909
    if self.agentEmailId != None:
2910
      oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
2911
      oprot.writeString(self.agentEmailId)
2912
      oprot.writeFieldEnd()
2913
    if self.password != None:
2914
      oprot.writeFieldBegin('password', TType.STRING, 2)
2915
      oprot.writeString(self.password)
2916
      oprot.writeFieldEnd()
2917
    oprot.writeFieldStop()
2918
    oprot.writeStructEnd()
2919
 
2920
  def __repr__(self):
2921
    L = ['%s=%r' % (key, value)
2922
      for key, value in self.__dict__.iteritems()]
2923
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2924
 
2925
  def __eq__(self, other):
2926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2927
 
2928
  def __ne__(self, other):
2929
    return not (self == other)
2930
 
2931
class updatePasswordForAgent_result:
2932
 
2933
  thrift_spec = (
2934
  )
2935
 
2936
  def read(self, iprot):
2937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2939
      return
2940
    iprot.readStructBegin()
2941
    while True:
2942
      (fname, ftype, fid) = iprot.readFieldBegin()
2943
      if ftype == TType.STOP:
2944
        break
2945
      else:
2946
        iprot.skip(ftype)
2947
      iprot.readFieldEnd()
2948
    iprot.readStructEnd()
2949
 
2950
  def write(self, oprot):
2951
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2952
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2953
      return
2954
    oprot.writeStructBegin('updatePasswordForAgent_result')
2955
    oprot.writeFieldStop()
2956
    oprot.writeStructEnd()
2957
 
2958
  def __repr__(self):
2959
    L = ['%s=%r' % (key, value)
2960
      for key, value in self.__dict__.iteritems()]
2961
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2962
 
2963
  def __eq__(self, other):
2964
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2965
 
2966
  def __ne__(self, other):
2967
    return not (self == other)
2968
 
2969
class getRoleNamesForAgent_args:
2970
  """
2971
  Attributes:
2972
   - agentEmailId
2973
  """
2974
 
2975
  thrift_spec = (
2976
    None, # 0
2977
    (1, TType.STRING, 'agentEmailId', None, None, ), # 1
2978
  )
2979
 
2980
  def __init__(self, agentEmailId=None,):
2981
    self.agentEmailId = agentEmailId
2982
 
2983
  def read(self, iprot):
2984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2986
      return
2987
    iprot.readStructBegin()
2988
    while True:
2989
      (fname, ftype, fid) = iprot.readFieldBegin()
2990
      if ftype == TType.STOP:
2991
        break
2992
      if fid == 1:
2993
        if ftype == TType.STRING:
2994
          self.agentEmailId = iprot.readString();
2995
        else:
2996
          iprot.skip(ftype)
2997
      else:
2998
        iprot.skip(ftype)
2999
      iprot.readFieldEnd()
3000
    iprot.readStructEnd()
3001
 
3002
  def write(self, oprot):
3003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3005
      return
3006
    oprot.writeStructBegin('getRoleNamesForAgent_args')
3007
    if self.agentEmailId != None:
3008
      oprot.writeFieldBegin('agentEmailId', TType.STRING, 1)
3009
      oprot.writeString(self.agentEmailId)
3010
      oprot.writeFieldEnd()
3011
    oprot.writeFieldStop()
3012
    oprot.writeStructEnd()
3013
 
3014
  def __repr__(self):
3015
    L = ['%s=%r' % (key, value)
3016
      for key, value in self.__dict__.iteritems()]
3017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3018
 
3019
  def __eq__(self, other):
3020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3021
 
3022
  def __ne__(self, other):
3023
    return not (self == other)
3024
 
3025
class getRoleNamesForAgent_result:
3026
  """
3027
  Attributes:
3028
   - success
3029
  """
3030
 
3031
  thrift_spec = (
3032
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
3033
  )
3034
 
3035
  def __init__(self, success=None,):
3036
    self.success = success
3037
 
3038
  def read(self, iprot):
3039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3041
      return
3042
    iprot.readStructBegin()
3043
    while True:
3044
      (fname, ftype, fid) = iprot.readFieldBegin()
3045
      if ftype == TType.STOP:
3046
        break
3047
      if fid == 0:
3048
        if ftype == TType.LIST:
3049
          self.success = []
3376 rajveer 3050
          (_etype59, _size56) = iprot.readListBegin()
3051
          for _i60 in xrange(_size56):
3052
            _elem61 = iprot.readString();
3053
            self.success.append(_elem61)
3131 rajveer 3054
          iprot.readListEnd()
3055
        else:
3056
          iprot.skip(ftype)
3057
      else:
3058
        iprot.skip(ftype)
3059
      iprot.readFieldEnd()
3060
    iprot.readStructEnd()
3061
 
3062
  def write(self, oprot):
3063
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3064
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3065
      return
3066
    oprot.writeStructBegin('getRoleNamesForAgent_result')
3067
    if self.success != None:
3068
      oprot.writeFieldBegin('success', TType.LIST, 0)
3069
      oprot.writeListBegin(TType.STRING, len(self.success))
3376 rajveer 3070
      for iter62 in self.success:
3071
        oprot.writeString(iter62)
3131 rajveer 3072
      oprot.writeListEnd()
3073
      oprot.writeFieldEnd()
3074
    oprot.writeFieldStop()
3075
    oprot.writeStructEnd()
3076
 
3077
  def __repr__(self):
3078
    L = ['%s=%r' % (key, value)
3079
      for key, value in self.__dict__.iteritems()]
3080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3081
 
3082
  def __eq__(self, other):
3083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3084
 
3085
  def __ne__(self, other):
3086
    return not (self == other)
3087
 
3088
class getPermissionsForRoleName_args:
3089
  """
3090
  Attributes:
3091
   - roleName
3092
  """
3093
 
3094
  thrift_spec = (
3095
    None, # 0
3096
    (1, TType.STRING, 'roleName', None, None, ), # 1
3097
  )
3098
 
3099
  def __init__(self, roleName=None,):
3100
    self.roleName = roleName
3101
 
3102
  def read(self, iprot):
3103
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3104
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3105
      return
3106
    iprot.readStructBegin()
3107
    while True:
3108
      (fname, ftype, fid) = iprot.readFieldBegin()
3109
      if ftype == TType.STOP:
3110
        break
3111
      if fid == 1:
3112
        if ftype == TType.STRING:
3113
          self.roleName = iprot.readString();
3114
        else:
3115
          iprot.skip(ftype)
3116
      else:
3117
        iprot.skip(ftype)
3118
      iprot.readFieldEnd()
3119
    iprot.readStructEnd()
3120
 
3121
  def write(self, oprot):
3122
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3123
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3124
      return
3125
    oprot.writeStructBegin('getPermissionsForRoleName_args')
3126
    if self.roleName != None:
3127
      oprot.writeFieldBegin('roleName', TType.STRING, 1)
3128
      oprot.writeString(self.roleName)
3129
      oprot.writeFieldEnd()
3130
    oprot.writeFieldStop()
3131
    oprot.writeStructEnd()
3132
 
3133
  def __repr__(self):
3134
    L = ['%s=%r' % (key, value)
3135
      for key, value in self.__dict__.iteritems()]
3136
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3137
 
3138
  def __eq__(self, other):
3139
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3140
 
3141
  def __ne__(self, other):
3142
    return not (self == other)
3143
 
3144
class getPermissionsForRoleName_result:
3145
  """
3146
  Attributes:
3147
   - success
3148
  """
3149
 
3150
  thrift_spec = (
3151
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
3152
  )
3153
 
3154
  def __init__(self, success=None,):
3155
    self.success = success
3156
 
3157
  def read(self, iprot):
3158
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3159
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3160
      return
3161
    iprot.readStructBegin()
3162
    while True:
3163
      (fname, ftype, fid) = iprot.readFieldBegin()
3164
      if ftype == TType.STOP:
3165
        break
3166
      if fid == 0:
3167
        if ftype == TType.LIST:
3168
          self.success = []
3376 rajveer 3169
          (_etype66, _size63) = iprot.readListBegin()
3170
          for _i67 in xrange(_size63):
3171
            _elem68 = iprot.readString();
3172
            self.success.append(_elem68)
3131 rajveer 3173
          iprot.readListEnd()
3174
        else:
3175
          iprot.skip(ftype)
3176
      else:
3177
        iprot.skip(ftype)
3178
      iprot.readFieldEnd()
3179
    iprot.readStructEnd()
3180
 
3181
  def write(self, oprot):
3182
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3183
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3184
      return
3185
    oprot.writeStructBegin('getPermissionsForRoleName_result')
3186
    if self.success != None:
3187
      oprot.writeFieldBegin('success', TType.LIST, 0)
3188
      oprot.writeListBegin(TType.STRING, len(self.success))
3376 rajveer 3189
      for iter69 in self.success:
3190
        oprot.writeString(iter69)
3131 rajveer 3191
      oprot.writeListEnd()
3192
      oprot.writeFieldEnd()
3193
    oprot.writeFieldStop()
3194
    oprot.writeStructEnd()
3195
 
3196
  def __repr__(self):
3197
    L = ['%s=%r' % (key, value)
3198
      for key, value in self.__dict__.iteritems()]
3199
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3200
 
3201
  def __eq__(self, other):
3202
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3203
 
3204
  def __ne__(self, other):
3205
    return not (self == other)
3206
 
3376 rajveer 3207
class getLastEmailProcessedTimestamp_args:
3131 rajveer 3208
 
3376 rajveer 3209
  thrift_spec = (
3210
  )
3211
 
3212
  def read(self, iprot):
3213
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3214
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3215
      return
3216
    iprot.readStructBegin()
3217
    while True:
3218
      (fname, ftype, fid) = iprot.readFieldBegin()
3219
      if ftype == TType.STOP:
3220
        break
3221
      else:
3222
        iprot.skip(ftype)
3223
      iprot.readFieldEnd()
3224
    iprot.readStructEnd()
3225
 
3226
  def write(self, oprot):
3227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3229
      return
3230
    oprot.writeStructBegin('getLastEmailProcessedTimestamp_args')
3231
    oprot.writeFieldStop()
3232
    oprot.writeStructEnd()
3233
 
3234
  def __repr__(self):
3235
    L = ['%s=%r' % (key, value)
3236
      for key, value in self.__dict__.iteritems()]
3237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3238
 
3239
  def __eq__(self, other):
3240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3241
 
3242
  def __ne__(self, other):
3243
    return not (self == other)
3244
 
3245
class getLastEmailProcessedTimestamp_result:
3246
  """
3247
  Attributes:
3248
   - success
3249
  """
3250
 
3251
  thrift_spec = (
3252
    (0, TType.I64, 'success', None, None, ), # 0
3253
  )
3254
 
3255
  def __init__(self, success=None,):
3256
    self.success = success
3257
 
3258
  def read(self, iprot):
3259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3261
      return
3262
    iprot.readStructBegin()
3263
    while True:
3264
      (fname, ftype, fid) = iprot.readFieldBegin()
3265
      if ftype == TType.STOP:
3266
        break
3267
      if fid == 0:
3268
        if ftype == TType.I64:
3269
          self.success = iprot.readI64();
3270
        else:
3271
          iprot.skip(ftype)
3272
      else:
3273
        iprot.skip(ftype)
3274
      iprot.readFieldEnd()
3275
    iprot.readStructEnd()
3276
 
3277
  def write(self, oprot):
3278
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3279
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3280
      return
3281
    oprot.writeStructBegin('getLastEmailProcessedTimestamp_result')
3282
    if self.success != None:
3283
      oprot.writeFieldBegin('success', TType.I64, 0)
3284
      oprot.writeI64(self.success)
3285
      oprot.writeFieldEnd()
3286
    oprot.writeFieldStop()
3287
    oprot.writeStructEnd()
3288
 
3289
  def __repr__(self):
3290
    L = ['%s=%r' % (key, value)
3291
      for key, value in self.__dict__.iteritems()]
3292
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3293
 
3294
  def __eq__(self, other):
3295
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3296
 
3297
  def __ne__(self, other):
3298
    return not (self == other)
3299
 
3300
class updateLastEmailProcessedTimestamp_args:
3301
  """
3302
  Attributes:
3303
   - timestamp
3304
  """
3305
 
3306
  thrift_spec = (
3307
    None, # 0
3308
    (1, TType.I64, 'timestamp', None, None, ), # 1
3309
  )
3310
 
3311
  def __init__(self, timestamp=None,):
3312
    self.timestamp = timestamp
3313
 
3314
  def read(self, iprot):
3315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3317
      return
3318
    iprot.readStructBegin()
3319
    while True:
3320
      (fname, ftype, fid) = iprot.readFieldBegin()
3321
      if ftype == TType.STOP:
3322
        break
3323
      if fid == 1:
3324
        if ftype == TType.I64:
3325
          self.timestamp = iprot.readI64();
3326
        else:
3327
          iprot.skip(ftype)
3328
      else:
3329
        iprot.skip(ftype)
3330
      iprot.readFieldEnd()
3331
    iprot.readStructEnd()
3332
 
3333
  def write(self, oprot):
3334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3336
      return
3337
    oprot.writeStructBegin('updateLastEmailProcessedTimestamp_args')
3338
    if self.timestamp != None:
3339
      oprot.writeFieldBegin('timestamp', TType.I64, 1)
3340
      oprot.writeI64(self.timestamp)
3341
      oprot.writeFieldEnd()
3342
    oprot.writeFieldStop()
3343
    oprot.writeStructEnd()
3344
 
3345
  def __repr__(self):
3346
    L = ['%s=%r' % (key, value)
3347
      for key, value in self.__dict__.iteritems()]
3348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3349
 
3350
  def __eq__(self, other):
3351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3352
 
3353
  def __ne__(self, other):
3354
    return not (self == other)
3355
 
3356
class updateLastEmailProcessedTimestamp_result:
3357
 
3358
  thrift_spec = (
3359
  )
3360
 
3361
  def read(self, iprot):
3362
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3363
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3364
      return
3365
    iprot.readStructBegin()
3366
    while True:
3367
      (fname, ftype, fid) = iprot.readFieldBegin()
3368
      if ftype == TType.STOP:
3369
        break
3370
      else:
3371
        iprot.skip(ftype)
3372
      iprot.readFieldEnd()
3373
    iprot.readStructEnd()
3374
 
3375
  def write(self, oprot):
3376
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3377
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3378
      return
3379
    oprot.writeStructBegin('updateLastEmailProcessedTimestamp_result')
3380
    oprot.writeFieldStop()
3381
    oprot.writeStructEnd()
3382
 
3383
  def __repr__(self):
3384
    L = ['%s=%r' % (key, value)
3385
      for key, value in self.__dict__.iteritems()]
3386
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3387
 
3388
  def __eq__(self, other):
3389
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3390
 
3391
  def __ne__(self, other):
3392
    return not (self == other)
3393
 
3394