Subversion Repositories SmartDukaan

Rev

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

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