Subversion Repositories SmartDukaan

Rev

Rev 3376 | Rev 3499 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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