Subversion Repositories SmartDukaan

Rev

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

Rev 3374 Rev 3390
Line 25... Line 25...
25
 
25
 
26
public class CRMService {
26
public class CRMService {
27
 
27
 
28
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
28
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
29
 
29
 
30
    public List<Ticket> getTickets(long customerId) throws TException;
30
    public List<Ticket> getTickets(SearchFilter searchFilter) throws TException;
31
 
-
 
32
    public List<Ticket> getAssignedTickets(long agentId) throws TException;
-
 
33
 
31
 
34
    public List<Ticket> getUnassignedTickets() throws TException;
32
    public List<Ticket> getUnassignedTickets() throws TException;
35
 
33
 
36
    public List<Ticket> getAllTickets(long agentId) throws TException;
-
 
37
 
-
 
38
    public Ticket getTicket(long ticketId) throws TException;
-
 
39
 
-
 
40
    public void updateTicket(Ticket ticket, Activity activity) throws TException;
34
    public void updateTicket(Ticket ticket, Activity activity) throws TException;
41
 
35
 
42
    public long insertTicket(Ticket ticket, Activity activity) throws TException;
36
    public long insertTicket(Ticket ticket, Activity activity) throws TException;
43
 
37
 
44
    public List<Activity> getActivities(long customerId) throws TException;
-
 
45
 
-
 
46
    public List<Activity> getActivitiesByCreator(long creatorId) throws TException;
-
 
47
 
-
 
48
    public List<Activity> getActivitiesForTicket(long ticketId) throws TException;
38
    public List<Activity> getActivities(SearchFilter searchFilter) throws TException;
49
 
-
 
50
    public Activity getActivity(long activityId) throws TException;
-
 
51
 
-
 
52
    public Activity getLastActivity(long ticketId) throws TException;
-
 
53
 
39
 
54
    public void insertActivity(Activity activity) throws TException;
40
    public void insertActivity(Activity activity) throws TException;
55
 
41
 
56
    public List<Agent> getAllAgents() throws TException;
-
 
57
 
-
 
58
    public Agent getAgent(long agentId) throws TException;
42
    public void markAsRead(long activityId, long agentId) throws TException;
59
 
43
 
60
    public Agent getAgentByEmailId(String agentEmailId) throws TException;
44
    public List<Agent> getAgents(SearchFilter searchFilter) throws TException;
61
 
45
 
62
    public void updatePasswordForAgent(String agentEmailId, String password) throws TException;
46
    public void updatePasswordForAgent(String agentEmailId, String password) throws TException;
63
 
47
 
64
    public List<String> getRoleNamesForAgent(String agentEmailId) throws TException;
48
    public List<String> getRoleNamesForAgent(String agentEmailId) throws TException;
65
 
49
 
Line 80... Line 64...
80
    public Client(TProtocol iprot, TProtocol oprot)
64
    public Client(TProtocol iprot, TProtocol oprot)
81
    {
65
    {
82
      super(iprot, oprot);
66
      super(iprot, oprot);
83
    }
67
    }
84
 
68
 
85
    public List<Ticket> getTickets(long customerId) throws TException
69
    public List<Ticket> getTickets(SearchFilter searchFilter) throws TException
86
    {
70
    {
87
      send_getTickets(customerId);
71
      send_getTickets(searchFilter);
88
      return recv_getTickets();
72
      return recv_getTickets();
89
    }
73
    }
90
 
74
 
91
    public void send_getTickets(long customerId) throws TException
75
    public void send_getTickets(SearchFilter searchFilter) throws TException
92
    {
76
    {
93
      oprot_.writeMessageBegin(new TMessage("getTickets", TMessageType.CALL, seqid_));
77
      oprot_.writeMessageBegin(new TMessage("getTickets", TMessageType.CALL, seqid_));
94
      getTickets_args args = new getTickets_args();
78
      getTickets_args args = new getTickets_args();
95
      args.customerId = customerId;
79
      args.searchFilter = searchFilter;
96
      args.write(oprot_);
80
      args.write(oprot_);
97
      oprot_.writeMessageEnd();
81
      oprot_.writeMessageEnd();
98
      oprot_.getTransport().flush();
82
      oprot_.getTransport().flush();
99
    }
83
    }
100
 
84
 
Line 113... Line 97...
113
        return result.success;
97
        return result.success;
114
      }
98
      }
115
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");
99
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");
116
    }
100
    }
117
 
101
 
118
    public List<Ticket> getAssignedTickets(long agentId) throws TException
-
 
119
    {
-
 
120
      send_getAssignedTickets(agentId);
-
 
121
      return recv_getAssignedTickets();
-
 
122
    }
-
 
123
 
-
 
124
    public void send_getAssignedTickets(long agentId) throws TException
-
 
125
    {
-
 
126
      oprot_.writeMessageBegin(new TMessage("getAssignedTickets", TMessageType.CALL, seqid_));
-
 
127
      getAssignedTickets_args args = new getAssignedTickets_args();
-
 
128
      args.agentId = agentId;
-
 
129
      args.write(oprot_);
-
 
130
      oprot_.writeMessageEnd();
-
 
131
      oprot_.getTransport().flush();
-
 
132
    }
-
 
133
 
-
 
134
    public List<Ticket> recv_getAssignedTickets() throws TException
-
 
135
    {
-
 
136
      TMessage msg = iprot_.readMessageBegin();
-
 
137
      if (msg.type == TMessageType.EXCEPTION) {
-
 
138
        TApplicationException x = TApplicationException.read(iprot_);
-
 
139
        iprot_.readMessageEnd();
-
 
140
        throw x;
-
 
141
      }
-
 
142
      getAssignedTickets_result result = new getAssignedTickets_result();
-
 
143
      result.read(iprot_);
-
 
144
      iprot_.readMessageEnd();
-
 
145
      if (result.isSetSuccess()) {
-
 
146
        return result.success;
-
 
147
      }
-
 
148
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAssignedTickets failed: unknown result");
-
 
149
    }
-
 
150
 
-
 
151
    public List<Ticket> getUnassignedTickets() throws TException
102
    public List<Ticket> getUnassignedTickets() throws TException
152
    {
103
    {
153
      send_getUnassignedTickets();
104
      send_getUnassignedTickets();
154
      return recv_getUnassignedTickets();
105
      return recv_getUnassignedTickets();
155
    }
106
    }
Line 178... Line 129...
178
        return result.success;
129
        return result.success;
179
      }
130
      }
180
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUnassignedTickets failed: unknown result");
131
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUnassignedTickets failed: unknown result");
181
    }
132
    }
182
 
133
 
183
    public List<Ticket> getAllTickets(long agentId) throws TException
-
 
184
    {
-
 
185
      send_getAllTickets(agentId);
-
 
186
      return recv_getAllTickets();
-
 
187
    }
-
 
188
 
-
 
189
    public void send_getAllTickets(long agentId) throws TException
-
 
190
    {
-
 
191
      oprot_.writeMessageBegin(new TMessage("getAllTickets", TMessageType.CALL, seqid_));
-
 
192
      getAllTickets_args args = new getAllTickets_args();
-
 
193
      args.agentId = agentId;
-
 
194
      args.write(oprot_);
-
 
195
      oprot_.writeMessageEnd();
-
 
196
      oprot_.getTransport().flush();
-
 
197
    }
-
 
198
 
-
 
199
    public List<Ticket> recv_getAllTickets() throws TException
-
 
200
    {
-
 
201
      TMessage msg = iprot_.readMessageBegin();
-
 
202
      if (msg.type == TMessageType.EXCEPTION) {
-
 
203
        TApplicationException x = TApplicationException.read(iprot_);
-
 
204
        iprot_.readMessageEnd();
-
 
205
        throw x;
-
 
206
      }
-
 
207
      getAllTickets_result result = new getAllTickets_result();
-
 
208
      result.read(iprot_);
-
 
209
      iprot_.readMessageEnd();
-
 
210
      if (result.isSetSuccess()) {
-
 
211
        return result.success;
-
 
212
      }
-
 
213
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllTickets failed: unknown result");
-
 
214
    }
-
 
215
 
-
 
216
    public Ticket getTicket(long ticketId) throws TException
-
 
217
    {
-
 
218
      send_getTicket(ticketId);
-
 
219
      return recv_getTicket();
-
 
220
    }
-
 
221
 
-
 
222
    public void send_getTicket(long ticketId) throws TException
-
 
223
    {
-
 
224
      oprot_.writeMessageBegin(new TMessage("getTicket", TMessageType.CALL, seqid_));
-
 
225
      getTicket_args args = new getTicket_args();
-
 
226
      args.ticketId = ticketId;
-
 
227
      args.write(oprot_);
-
 
228
      oprot_.writeMessageEnd();
-
 
229
      oprot_.getTransport().flush();
-
 
230
    }
-
 
231
 
-
 
232
    public Ticket recv_getTicket() throws TException
-
 
233
    {
-
 
234
      TMessage msg = iprot_.readMessageBegin();
-
 
235
      if (msg.type == TMessageType.EXCEPTION) {
-
 
236
        TApplicationException x = TApplicationException.read(iprot_);
-
 
237
        iprot_.readMessageEnd();
-
 
238
        throw x;
-
 
239
      }
-
 
240
      getTicket_result result = new getTicket_result();
-
 
241
      result.read(iprot_);
-
 
242
      iprot_.readMessageEnd();
-
 
243
      if (result.isSetSuccess()) {
-
 
244
        return result.success;
-
 
245
      }
-
 
246
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTicket failed: unknown result");
-
 
247
    }
-
 
248
 
-
 
249
    public void updateTicket(Ticket ticket, Activity activity) throws TException
134
    public void updateTicket(Ticket ticket, Activity activity) throws TException
250
    {
135
    {
251
      send_updateTicket(ticket, activity);
136
      send_updateTicket(ticket, activity);
252
      recv_updateTicket();
137
      recv_updateTicket();
253
    }
138
    }
Line 309... Line 194...
309
        return result.success;
194
        return result.success;
310
      }
195
      }
311
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");
196
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");
312
    }
197
    }
313
 
198
 
314
    public List<Activity> getActivities(long customerId) throws TException
199
    public List<Activity> getActivities(SearchFilter searchFilter) throws TException
315
    {
200
    {
316
      send_getActivities(customerId);
201
      send_getActivities(searchFilter);
317
      return recv_getActivities();
202
      return recv_getActivities();
318
    }
203
    }
319
 
204
 
320
    public void send_getActivities(long customerId) throws TException
205
    public void send_getActivities(SearchFilter searchFilter) throws TException
321
    {
206
    {
322
      oprot_.writeMessageBegin(new TMessage("getActivities", TMessageType.CALL, seqid_));
207
      oprot_.writeMessageBegin(new TMessage("getActivities", TMessageType.CALL, seqid_));
323
      getActivities_args args = new getActivities_args();
208
      getActivities_args args = new getActivities_args();
324
      args.customerId = customerId;
209
      args.searchFilter = searchFilter;
325
      args.write(oprot_);
210
      args.write(oprot_);
326
      oprot_.writeMessageEnd();
211
      oprot_.writeMessageEnd();
327
      oprot_.getTransport().flush();
212
      oprot_.getTransport().flush();
328
    }
213
    }
329
 
214
 
Line 342... Line 227...
342
        return result.success;
227
        return result.success;
343
      }
228
      }
344
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");
229
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");
345
    }
230
    }
346
 
231
 
347
    public List<Activity> getActivitiesByCreator(long creatorId) throws TException
-
 
348
    {
-
 
349
      send_getActivitiesByCreator(creatorId);
-
 
350
      return recv_getActivitiesByCreator();
-
 
351
    }
-
 
352
 
-
 
353
    public void send_getActivitiesByCreator(long creatorId) throws TException
-
 
354
    {
-
 
355
      oprot_.writeMessageBegin(new TMessage("getActivitiesByCreator", TMessageType.CALL, seqid_));
-
 
356
      getActivitiesByCreator_args args = new getActivitiesByCreator_args();
-
 
357
      args.creatorId = creatorId;
-
 
358
      args.write(oprot_);
-
 
359
      oprot_.writeMessageEnd();
-
 
360
      oprot_.getTransport().flush();
-
 
361
    }
-
 
362
 
-
 
363
    public List<Activity> recv_getActivitiesByCreator() throws TException
-
 
364
    {
-
 
365
      TMessage msg = iprot_.readMessageBegin();
-
 
366
      if (msg.type == TMessageType.EXCEPTION) {
-
 
367
        TApplicationException x = TApplicationException.read(iprot_);
-
 
368
        iprot_.readMessageEnd();
-
 
369
        throw x;
-
 
370
      }
-
 
371
      getActivitiesByCreator_result result = new getActivitiesByCreator_result();
-
 
372
      result.read(iprot_);
-
 
373
      iprot_.readMessageEnd();
-
 
374
      if (result.isSetSuccess()) {
-
 
375
        return result.success;
-
 
376
      }
-
 
377
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivitiesByCreator failed: unknown result");
-
 
378
    }
-
 
379
 
-
 
380
    public List<Activity> getActivitiesForTicket(long ticketId) throws TException
-
 
381
    {
-
 
382
      send_getActivitiesForTicket(ticketId);
-
 
383
      return recv_getActivitiesForTicket();
-
 
384
    }
-
 
385
 
-
 
386
    public void send_getActivitiesForTicket(long ticketId) throws TException
-
 
387
    {
-
 
388
      oprot_.writeMessageBegin(new TMessage("getActivitiesForTicket", TMessageType.CALL, seqid_));
-
 
389
      getActivitiesForTicket_args args = new getActivitiesForTicket_args();
-
 
390
      args.ticketId = ticketId;
-
 
391
      args.write(oprot_);
-
 
392
      oprot_.writeMessageEnd();
-
 
393
      oprot_.getTransport().flush();
-
 
394
    }
-
 
395
 
-
 
396
    public List<Activity> recv_getActivitiesForTicket() throws TException
-
 
397
    {
-
 
398
      TMessage msg = iprot_.readMessageBegin();
-
 
399
      if (msg.type == TMessageType.EXCEPTION) {
-
 
400
        TApplicationException x = TApplicationException.read(iprot_);
-
 
401
        iprot_.readMessageEnd();
-
 
402
        throw x;
-
 
403
      }
-
 
404
      getActivitiesForTicket_result result = new getActivitiesForTicket_result();
-
 
405
      result.read(iprot_);
-
 
406
      iprot_.readMessageEnd();
-
 
407
      if (result.isSetSuccess()) {
-
 
408
        return result.success;
-
 
409
      }
-
 
410
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivitiesForTicket failed: unknown result");
-
 
411
    }
-
 
412
 
-
 
413
    public Activity getActivity(long activityId) throws TException
-
 
414
    {
-
 
415
      send_getActivity(activityId);
-
 
416
      return recv_getActivity();
-
 
417
    }
-
 
418
 
-
 
419
    public void send_getActivity(long activityId) throws TException
-
 
420
    {
-
 
421
      oprot_.writeMessageBegin(new TMessage("getActivity", TMessageType.CALL, seqid_));
-
 
422
      getActivity_args args = new getActivity_args();
-
 
423
      args.activityId = activityId;
-
 
424
      args.write(oprot_);
-
 
425
      oprot_.writeMessageEnd();
-
 
426
      oprot_.getTransport().flush();
-
 
427
    }
-
 
428
 
-
 
429
    public Activity recv_getActivity() throws TException
-
 
430
    {
-
 
431
      TMessage msg = iprot_.readMessageBegin();
-
 
432
      if (msg.type == TMessageType.EXCEPTION) {
-
 
433
        TApplicationException x = TApplicationException.read(iprot_);
-
 
434
        iprot_.readMessageEnd();
-
 
435
        throw x;
-
 
436
      }
-
 
437
      getActivity_result result = new getActivity_result();
-
 
438
      result.read(iprot_);
-
 
439
      iprot_.readMessageEnd();
-
 
440
      if (result.isSetSuccess()) {
-
 
441
        return result.success;
-
 
442
      }
-
 
443
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivity failed: unknown result");
-
 
444
    }
-
 
445
 
-
 
446
    public Activity getLastActivity(long ticketId) throws TException
-
 
447
    {
-
 
448
      send_getLastActivity(ticketId);
-
 
449
      return recv_getLastActivity();
-
 
450
    }
-
 
451
 
-
 
452
    public void send_getLastActivity(long ticketId) throws TException
-
 
453
    {
-
 
454
      oprot_.writeMessageBegin(new TMessage("getLastActivity", TMessageType.CALL, seqid_));
-
 
455
      getLastActivity_args args = new getLastActivity_args();
-
 
456
      args.ticketId = ticketId;
-
 
457
      args.write(oprot_);
-
 
458
      oprot_.writeMessageEnd();
-
 
459
      oprot_.getTransport().flush();
-
 
460
    }
-
 
461
 
-
 
462
    public Activity recv_getLastActivity() throws TException
-
 
463
    {
-
 
464
      TMessage msg = iprot_.readMessageBegin();
-
 
465
      if (msg.type == TMessageType.EXCEPTION) {
-
 
466
        TApplicationException x = TApplicationException.read(iprot_);
-
 
467
        iprot_.readMessageEnd();
-
 
468
        throw x;
-
 
469
      }
-
 
470
      getLastActivity_result result = new getLastActivity_result();
-
 
471
      result.read(iprot_);
-
 
472
      iprot_.readMessageEnd();
-
 
473
      if (result.isSetSuccess()) {
-
 
474
        return result.success;
-
 
475
      }
-
 
476
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLastActivity failed: unknown result");
-
 
477
    }
-
 
478
 
-
 
479
    public void insertActivity(Activity activity) throws TException
232
    public void insertActivity(Activity activity) throws TException
480
    {
233
    {
481
      send_insertActivity(activity);
234
      send_insertActivity(activity);
482
      recv_insertActivity();
235
      recv_insertActivity();
483
    }
236
    }
Line 504... Line 257...
504
      result.read(iprot_);
257
      result.read(iprot_);
505
      iprot_.readMessageEnd();
258
      iprot_.readMessageEnd();
506
      return;
259
      return;
507
    }
260
    }
508
 
261
 
509
    public List<Agent> getAllAgents() throws TException
-
 
510
    {
-
 
511
      send_getAllAgents();
-
 
512
      return recv_getAllAgents();
-
 
513
    }
-
 
514
 
-
 
515
    public void send_getAllAgents() throws TException
262
    public void markAsRead(long activityId, long agentId) throws TException
516
    {
263
    {
517
      oprot_.writeMessageBegin(new TMessage("getAllAgents", TMessageType.CALL, seqid_));
-
 
518
      getAllAgents_args args = new getAllAgents_args();
264
      send_markAsRead(activityId, agentId);
519
      args.write(oprot_);
-
 
520
      oprot_.writeMessageEnd();
265
      recv_markAsRead();
521
      oprot_.getTransport().flush();
-
 
522
    }
266
    }
523
 
267
 
524
    public List<Agent> recv_getAllAgents() throws TException
268
    public void send_markAsRead(long activityId, long agentId) throws TException
525
    {
269
    {
526
      TMessage msg = iprot_.readMessageBegin();
-
 
527
      if (msg.type == TMessageType.EXCEPTION) {
-
 
528
        TApplicationException x = TApplicationException.read(iprot_);
-
 
529
        iprot_.readMessageEnd();
-
 
530
        throw x;
-
 
531
      }
-
 
532
      getAllAgents_result result = new getAllAgents_result();
-
 
533
      result.read(iprot_);
-
 
534
      iprot_.readMessageEnd();
-
 
535
      if (result.isSetSuccess()) {
-
 
536
        return result.success;
-
 
537
      }
-
 
538
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllAgents failed: unknown result");
-
 
539
    }
-
 
540
 
-
 
541
    public Agent getAgent(long agentId) throws TException
-
 
542
    {
-
 
543
      send_getAgent(agentId);
-
 
544
      return recv_getAgent();
-
 
545
    }
-
 
546
 
-
 
547
    public void send_getAgent(long agentId) throws TException
-
 
548
    {
-
 
549
      oprot_.writeMessageBegin(new TMessage("getAgent", TMessageType.CALL, seqid_));
270
      oprot_.writeMessageBegin(new TMessage("markAsRead", TMessageType.CALL, seqid_));
550
      getAgent_args args = new getAgent_args();
271
      markAsRead_args args = new markAsRead_args();
-
 
272
      args.activityId = activityId;
551
      args.agentId = agentId;
273
      args.agentId = agentId;
552
      args.write(oprot_);
274
      args.write(oprot_);
553
      oprot_.writeMessageEnd();
275
      oprot_.writeMessageEnd();
554
      oprot_.getTransport().flush();
276
      oprot_.getTransport().flush();
555
    }
277
    }
556
 
278
 
557
    public Agent recv_getAgent() throws TException
279
    public void recv_markAsRead() throws TException
558
    {
280
    {
559
      TMessage msg = iprot_.readMessageBegin();
281
      TMessage msg = iprot_.readMessageBegin();
560
      if (msg.type == TMessageType.EXCEPTION) {
282
      if (msg.type == TMessageType.EXCEPTION) {
561
        TApplicationException x = TApplicationException.read(iprot_);
283
        TApplicationException x = TApplicationException.read(iprot_);
562
        iprot_.readMessageEnd();
284
        iprot_.readMessageEnd();
563
        throw x;
285
        throw x;
564
      }
286
      }
565
      getAgent_result result = new getAgent_result();
287
      markAsRead_result result = new markAsRead_result();
566
      result.read(iprot_);
288
      result.read(iprot_);
567
      iprot_.readMessageEnd();
289
      iprot_.readMessageEnd();
568
      if (result.isSetSuccess()) {
-
 
569
        return result.success;
-
 
570
      }
290
      return;
571
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAgent failed: unknown result");
-
 
572
    }
291
    }
573
 
292
 
574
    public Agent getAgentByEmailId(String agentEmailId) throws TException
293
    public List<Agent> getAgents(SearchFilter searchFilter) throws TException
575
    {
294
    {
576
      send_getAgentByEmailId(agentEmailId);
295
      send_getAgents(searchFilter);
577
      return recv_getAgentByEmailId();
296
      return recv_getAgents();
578
    }
297
    }
579
 
298
 
580
    public void send_getAgentByEmailId(String agentEmailId) throws TException
299
    public void send_getAgents(SearchFilter searchFilter) throws TException
581
    {
300
    {
582
      oprot_.writeMessageBegin(new TMessage("getAgentByEmailId", TMessageType.CALL, seqid_));
301
      oprot_.writeMessageBegin(new TMessage("getAgents", TMessageType.CALL, seqid_));
583
      getAgentByEmailId_args args = new getAgentByEmailId_args();
302
      getAgents_args args = new getAgents_args();
584
      args.agentEmailId = agentEmailId;
303
      args.searchFilter = searchFilter;
585
      args.write(oprot_);
304
      args.write(oprot_);
586
      oprot_.writeMessageEnd();
305
      oprot_.writeMessageEnd();
587
      oprot_.getTransport().flush();
306
      oprot_.getTransport().flush();
588
    }
307
    }
589
 
308
 
590
    public Agent recv_getAgentByEmailId() throws TException
309
    public List<Agent> recv_getAgents() throws TException
591
    {
310
    {
592
      TMessage msg = iprot_.readMessageBegin();
311
      TMessage msg = iprot_.readMessageBegin();
593
      if (msg.type == TMessageType.EXCEPTION) {
312
      if (msg.type == TMessageType.EXCEPTION) {
594
        TApplicationException x = TApplicationException.read(iprot_);
313
        TApplicationException x = TApplicationException.read(iprot_);
595
        iprot_.readMessageEnd();
314
        iprot_.readMessageEnd();
596
        throw x;
315
        throw x;
597
      }
316
      }
598
      getAgentByEmailId_result result = new getAgentByEmailId_result();
317
      getAgents_result result = new getAgents_result();
599
      result.read(iprot_);
318
      result.read(iprot_);
600
      iprot_.readMessageEnd();
319
      iprot_.readMessageEnd();
601
      if (result.isSetSuccess()) {
320
      if (result.isSetSuccess()) {
602
        return result.success;
321
        return result.success;
603
      }
322
      }
604
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAgentByEmailId failed: unknown result");
323
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
605
    }
324
    }
606
 
325
 
607
    public void updatePasswordForAgent(String agentEmailId, String password) throws TException
326
    public void updatePasswordForAgent(String agentEmailId, String password) throws TException
608
    {
327
    {
609
      send_updatePasswordForAgent(agentEmailId, password);
328
      send_updatePasswordForAgent(agentEmailId, password);
Line 769... Line 488...
769
    public Processor(Iface iface)
488
    public Processor(Iface iface)
770
    {
489
    {
771
      super(iface);
490
      super(iface);
772
      iface_ = iface;
491
      iface_ = iface;
773
      processMap_.put("getTickets", new getTickets());
492
      processMap_.put("getTickets", new getTickets());
774
      processMap_.put("getAssignedTickets", new getAssignedTickets());
-
 
775
      processMap_.put("getUnassignedTickets", new getUnassignedTickets());
493
      processMap_.put("getUnassignedTickets", new getUnassignedTickets());
776
      processMap_.put("getAllTickets", new getAllTickets());
-
 
777
      processMap_.put("getTicket", new getTicket());
-
 
778
      processMap_.put("updateTicket", new updateTicket());
494
      processMap_.put("updateTicket", new updateTicket());
779
      processMap_.put("insertTicket", new insertTicket());
495
      processMap_.put("insertTicket", new insertTicket());
780
      processMap_.put("getActivities", new getActivities());
496
      processMap_.put("getActivities", new getActivities());
781
      processMap_.put("getActivitiesByCreator", new getActivitiesByCreator());
-
 
782
      processMap_.put("getActivitiesForTicket", new getActivitiesForTicket());
-
 
783
      processMap_.put("getActivity", new getActivity());
-
 
784
      processMap_.put("getLastActivity", new getLastActivity());
-
 
785
      processMap_.put("insertActivity", new insertActivity());
497
      processMap_.put("insertActivity", new insertActivity());
786
      processMap_.put("getAllAgents", new getAllAgents());
498
      processMap_.put("markAsRead", new markAsRead());
787
      processMap_.put("getAgent", new getAgent());
499
      processMap_.put("getAgents", new getAgents());
788
      processMap_.put("getAgentByEmailId", new getAgentByEmailId());
-
 
789
      processMap_.put("updatePasswordForAgent", new updatePasswordForAgent());
500
      processMap_.put("updatePasswordForAgent", new updatePasswordForAgent());
790
      processMap_.put("getRoleNamesForAgent", new getRoleNamesForAgent());
501
      processMap_.put("getRoleNamesForAgent", new getRoleNamesForAgent());
791
      processMap_.put("getPermissionsForRoleName", new getPermissionsForRoleName());
502
      processMap_.put("getPermissionsForRoleName", new getPermissionsForRoleName());
792
      processMap_.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
503
      processMap_.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
793
      processMap_.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
504
      processMap_.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
Line 818... Line 529...
818
      {
529
      {
819
        getTickets_args args = new getTickets_args();
530
        getTickets_args args = new getTickets_args();
820
        args.read(iprot);
531
        args.read(iprot);
821
        iprot.readMessageEnd();
532
        iprot.readMessageEnd();
822
        getTickets_result result = new getTickets_result();
533
        getTickets_result result = new getTickets_result();
823
        result.success = iface_.getTickets(args.customerId);
534
        result.success = iface_.getTickets(args.searchFilter);
824
        oprot.writeMessageBegin(new TMessage("getTickets", TMessageType.REPLY, seqid));
535
        oprot.writeMessageBegin(new TMessage("getTickets", TMessageType.REPLY, seqid));
825
        result.write(oprot);
536
        result.write(oprot);
826
        oprot.writeMessageEnd();
537
        oprot.writeMessageEnd();
827
        oprot.getTransport().flush();
538
        oprot.getTransport().flush();
828
      }
539
      }
829
 
540
 
830
    }
541
    }
831
 
542
 
832
    private class getAssignedTickets implements ProcessFunction {
-
 
833
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
834
      {
-
 
835
        getAssignedTickets_args args = new getAssignedTickets_args();
-
 
836
        args.read(iprot);
-
 
837
        iprot.readMessageEnd();
-
 
838
        getAssignedTickets_result result = new getAssignedTickets_result();
-
 
839
        result.success = iface_.getAssignedTickets(args.agentId);
-
 
840
        oprot.writeMessageBegin(new TMessage("getAssignedTickets", TMessageType.REPLY, seqid));
-
 
841
        result.write(oprot);
-
 
842
        oprot.writeMessageEnd();
-
 
843
        oprot.getTransport().flush();
-
 
844
      }
-
 
845
 
-
 
846
    }
-
 
847
 
-
 
848
    private class getUnassignedTickets implements ProcessFunction {
543
    private class getUnassignedTickets implements ProcessFunction {
849
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
544
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
850
      {
545
      {
851
        getUnassignedTickets_args args = new getUnassignedTickets_args();
546
        getUnassignedTickets_args args = new getUnassignedTickets_args();
852
        args.read(iprot);
547
        args.read(iprot);
Line 859... Line 554...
859
        oprot.getTransport().flush();
554
        oprot.getTransport().flush();
860
      }
555
      }
861
 
556
 
862
    }
557
    }
863
 
558
 
864
    private class getAllTickets implements ProcessFunction {
-
 
865
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
866
      {
-
 
867
        getAllTickets_args args = new getAllTickets_args();
-
 
868
        args.read(iprot);
-
 
869
        iprot.readMessageEnd();
-
 
870
        getAllTickets_result result = new getAllTickets_result();
-
 
871
        result.success = iface_.getAllTickets(args.agentId);
-
 
872
        oprot.writeMessageBegin(new TMessage("getAllTickets", TMessageType.REPLY, seqid));
-
 
873
        result.write(oprot);
-
 
874
        oprot.writeMessageEnd();
-
 
875
        oprot.getTransport().flush();
-
 
876
      }
-
 
877
 
-
 
878
    }
-
 
879
 
-
 
880
    private class getTicket implements ProcessFunction {
-
 
881
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
882
      {
-
 
883
        getTicket_args args = new getTicket_args();
-
 
884
        args.read(iprot);
-
 
885
        iprot.readMessageEnd();
-
 
886
        getTicket_result result = new getTicket_result();
-
 
887
        result.success = iface_.getTicket(args.ticketId);
-
 
888
        oprot.writeMessageBegin(new TMessage("getTicket", TMessageType.REPLY, seqid));
-
 
889
        result.write(oprot);
-
 
890
        oprot.writeMessageEnd();
-
 
891
        oprot.getTransport().flush();
-
 
892
      }
-
 
893
 
-
 
894
    }
-
 
895
 
-
 
896
    private class updateTicket implements ProcessFunction {
559
    private class updateTicket implements ProcessFunction {
897
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
560
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
898
      {
561
      {
899
        updateTicket_args args = new updateTicket_args();
562
        updateTicket_args args = new updateTicket_args();
900
        args.read(iprot);
563
        args.read(iprot);
Line 931... Line 594...
931
      {
594
      {
932
        getActivities_args args = new getActivities_args();
595
        getActivities_args args = new getActivities_args();
933
        args.read(iprot);
596
        args.read(iprot);
934
        iprot.readMessageEnd();
597
        iprot.readMessageEnd();
935
        getActivities_result result = new getActivities_result();
598
        getActivities_result result = new getActivities_result();
936
        result.success = iface_.getActivities(args.customerId);
599
        result.success = iface_.getActivities(args.searchFilter);
937
        oprot.writeMessageBegin(new TMessage("getActivities", TMessageType.REPLY, seqid));
600
        oprot.writeMessageBegin(new TMessage("getActivities", TMessageType.REPLY, seqid));
938
        result.write(oprot);
601
        result.write(oprot);
939
        oprot.writeMessageEnd();
602
        oprot.writeMessageEnd();
940
        oprot.getTransport().flush();
603
        oprot.getTransport().flush();
941
      }
604
      }
942
 
605
 
943
    }
606
    }
944
 
607
 
945
    private class getActivitiesByCreator implements ProcessFunction {
-
 
946
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
947
      {
-
 
948
        getActivitiesByCreator_args args = new getActivitiesByCreator_args();
-
 
949
        args.read(iprot);
-
 
950
        iprot.readMessageEnd();
-
 
951
        getActivitiesByCreator_result result = new getActivitiesByCreator_result();
-
 
952
        result.success = iface_.getActivitiesByCreator(args.creatorId);
-
 
953
        oprot.writeMessageBegin(new TMessage("getActivitiesByCreator", TMessageType.REPLY, seqid));
-
 
954
        result.write(oprot);
-
 
955
        oprot.writeMessageEnd();
-
 
956
        oprot.getTransport().flush();
-
 
957
      }
-
 
958
 
-
 
959
    }
-
 
960
 
-
 
961
    private class getActivitiesForTicket implements ProcessFunction {
-
 
962
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
963
      {
-
 
964
        getActivitiesForTicket_args args = new getActivitiesForTicket_args();
-
 
965
        args.read(iprot);
-
 
966
        iprot.readMessageEnd();
-
 
967
        getActivitiesForTicket_result result = new getActivitiesForTicket_result();
-
 
968
        result.success = iface_.getActivitiesForTicket(args.ticketId);
-
 
969
        oprot.writeMessageBegin(new TMessage("getActivitiesForTicket", TMessageType.REPLY, seqid));
-
 
970
        result.write(oprot);
-
 
971
        oprot.writeMessageEnd();
-
 
972
        oprot.getTransport().flush();
-
 
973
      }
-
 
974
 
-
 
975
    }
-
 
976
 
-
 
977
    private class getActivity implements ProcessFunction {
-
 
978
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
979
      {
-
 
980
        getActivity_args args = new getActivity_args();
-
 
981
        args.read(iprot);
-
 
982
        iprot.readMessageEnd();
-
 
983
        getActivity_result result = new getActivity_result();
-
 
984
        result.success = iface_.getActivity(args.activityId);
-
 
985
        oprot.writeMessageBegin(new TMessage("getActivity", TMessageType.REPLY, seqid));
-
 
986
        result.write(oprot);
-
 
987
        oprot.writeMessageEnd();
-
 
988
        oprot.getTransport().flush();
-
 
989
      }
-
 
990
 
-
 
991
    }
-
 
992
 
-
 
993
    private class getLastActivity implements ProcessFunction {
-
 
994
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
995
      {
-
 
996
        getLastActivity_args args = new getLastActivity_args();
-
 
997
        args.read(iprot);
-
 
998
        iprot.readMessageEnd();
-
 
999
        getLastActivity_result result = new getLastActivity_result();
-
 
1000
        result.success = iface_.getLastActivity(args.ticketId);
-
 
1001
        oprot.writeMessageBegin(new TMessage("getLastActivity", TMessageType.REPLY, seqid));
-
 
1002
        result.write(oprot);
-
 
1003
        oprot.writeMessageEnd();
-
 
1004
        oprot.getTransport().flush();
-
 
1005
      }
-
 
1006
 
-
 
1007
    }
-
 
1008
 
-
 
1009
    private class insertActivity implements ProcessFunction {
608
    private class insertActivity implements ProcessFunction {
1010
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
609
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1011
      {
610
      {
1012
        insertActivity_args args = new insertActivity_args();
611
        insertActivity_args args = new insertActivity_args();
1013
        args.read(iprot);
612
        args.read(iprot);
Line 1020... Line 619...
1020
        oprot.getTransport().flush();
619
        oprot.getTransport().flush();
1021
      }
620
      }
1022
 
621
 
1023
    }
622
    }
1024
 
623
 
1025
    private class getAllAgents implements ProcessFunction {
-
 
1026
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1027
      {
-
 
1028
        getAllAgents_args args = new getAllAgents_args();
-
 
1029
        args.read(iprot);
-
 
1030
        iprot.readMessageEnd();
-
 
1031
        getAllAgents_result result = new getAllAgents_result();
-
 
1032
        result.success = iface_.getAllAgents();
-
 
1033
        oprot.writeMessageBegin(new TMessage("getAllAgents", TMessageType.REPLY, seqid));
-
 
1034
        result.write(oprot);
-
 
1035
        oprot.writeMessageEnd();
-
 
1036
        oprot.getTransport().flush();
-
 
1037
      }
-
 
1038
 
-
 
1039
    }
-
 
1040
 
-
 
1041
    private class getAgent implements ProcessFunction {
624
    private class markAsRead implements ProcessFunction {
1042
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
625
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1043
      {
626
      {
1044
        getAgent_args args = new getAgent_args();
627
        markAsRead_args args = new markAsRead_args();
1045
        args.read(iprot);
628
        args.read(iprot);
1046
        iprot.readMessageEnd();
629
        iprot.readMessageEnd();
1047
        getAgent_result result = new getAgent_result();
630
        markAsRead_result result = new markAsRead_result();
1048
        result.success = iface_.getAgent(args.agentId);
631
        iface_.markAsRead(args.activityId, args.agentId);
1049
        oprot.writeMessageBegin(new TMessage("getAgent", TMessageType.REPLY, seqid));
632
        oprot.writeMessageBegin(new TMessage("markAsRead", TMessageType.REPLY, seqid));
1050
        result.write(oprot);
633
        result.write(oprot);
1051
        oprot.writeMessageEnd();
634
        oprot.writeMessageEnd();
1052
        oprot.getTransport().flush();
635
        oprot.getTransport().flush();
1053
      }
636
      }
1054
 
637
 
1055
    }
638
    }
1056
 
639
 
1057
    private class getAgentByEmailId implements ProcessFunction {
640
    private class getAgents implements ProcessFunction {
1058
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
641
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1059
      {
642
      {
1060
        getAgentByEmailId_args args = new getAgentByEmailId_args();
643
        getAgents_args args = new getAgents_args();
1061
        args.read(iprot);
644
        args.read(iprot);
1062
        iprot.readMessageEnd();
645
        iprot.readMessageEnd();
1063
        getAgentByEmailId_result result = new getAgentByEmailId_result();
646
        getAgents_result result = new getAgents_result();
1064
        result.success = iface_.getAgentByEmailId(args.agentEmailId);
647
        result.success = iface_.getAgents(args.searchFilter);
1065
        oprot.writeMessageBegin(new TMessage("getAgentByEmailId", TMessageType.REPLY, seqid));
648
        oprot.writeMessageBegin(new TMessage("getAgents", TMessageType.REPLY, seqid));
1066
        result.write(oprot);
649
        result.write(oprot);
1067
        oprot.writeMessageEnd();
650
        oprot.writeMessageEnd();
1068
        oprot.getTransport().flush();
651
        oprot.getTransport().flush();
1069
      }
652
      }
1070
 
653
 
Line 1154... Line 737...
1154
  }
737
  }
1155
 
738
 
1156
  public static class getTickets_args implements TBase<getTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTickets_args>   {
739
  public static class getTickets_args implements TBase<getTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTickets_args>   {
1157
    private static final TStruct STRUCT_DESC = new TStruct("getTickets_args");
740
    private static final TStruct STRUCT_DESC = new TStruct("getTickets_args");
1158
 
741
 
1159
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);
742
    private static final TField SEARCH_FILTER_FIELD_DESC = new TField("searchFilter", TType.STRUCT, (short)1);
1160
 
743
 
1161
    private long customerId;
744
    private SearchFilter searchFilter;
1162
 
745
 
1163
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
746
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1164
    public enum _Fields implements TFieldIdEnum {
747
    public enum _Fields implements TFieldIdEnum {
1165
      CUSTOMER_ID((short)1, "customerId");
748
      SEARCH_FILTER((short)1, "searchFilter");
1166
 
749
 
1167
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
750
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
1168
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
751
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1169
 
752
 
1170
      static {
753
      static {
Line 1214... Line 797...
1214
        return _fieldName;
797
        return _fieldName;
1215
      }
798
      }
1216
    }
799
    }
1217
 
800
 
1218
    // isset id assignments
801
    // isset id assignments
1219
    private static final int __CUSTOMERID_ISSET_ID = 0;
-
 
1220
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
1221
 
802
 
1222
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
803
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1223
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
804
      put(_Fields.SEARCH_FILTER, new FieldMetaData("searchFilter", TFieldRequirementType.DEFAULT, 
1224
          new FieldValueMetaData(TType.I64)));
805
          new StructMetaData(TType.STRUCT, SearchFilter.class)));
1225
    }});
806
    }});
1226
 
807
 
1227
    static {
808
    static {
1228
      FieldMetaData.addStructMetaDataMap(getTickets_args.class, metaDataMap);
809
      FieldMetaData.addStructMetaDataMap(getTickets_args.class, metaDataMap);
1229
    }
810
    }
1230
 
811
 
1231
    public getTickets_args() {
812
    public getTickets_args() {
1232
    }
813
    }
1233
 
814
 
1234
    public getTickets_args(
815
    public getTickets_args(
1235
      long customerId)
816
      SearchFilter searchFilter)
1236
    {
817
    {
1237
      this();
818
      this();
1238
      this.customerId = customerId;
819
      this.searchFilter = searchFilter;
1239
      setCustomerIdIsSet(true);
-
 
1240
    }
820
    }
1241
 
821
 
1242
    /**
822
    /**
1243
     * Performs a deep copy on <i>other</i>.
823
     * Performs a deep copy on <i>other</i>.
1244
     */
824
     */
1245
    public getTickets_args(getTickets_args other) {
825
    public getTickets_args(getTickets_args other) {
1246
      __isset_bit_vector.clear();
826
      if (other.isSetSearchFilter()) {
1247
      __isset_bit_vector.or(other.__isset_bit_vector);
827
        this.searchFilter = new SearchFilter(other.searchFilter);
1248
      this.customerId = other.customerId;
828
      }
1249
    }
829
    }
1250
 
830
 
1251
    public getTickets_args deepCopy() {
831
    public getTickets_args deepCopy() {
1252
      return new getTickets_args(this);
832
      return new getTickets_args(this);
1253
    }
833
    }
Line 1255... Line 835...
1255
    @Deprecated
835
    @Deprecated
1256
    public getTickets_args clone() {
836
    public getTickets_args clone() {
1257
      return new getTickets_args(this);
837
      return new getTickets_args(this);
1258
    }
838
    }
1259
 
839
 
1260
    public long getCustomerId() {
840
    public SearchFilter getSearchFilter() {
1261
      return this.customerId;
841
      return this.searchFilter;
1262
    }
842
    }
1263
 
843
 
1264
    public getTickets_args setCustomerId(long customerId) {
844
    public getTickets_args setSearchFilter(SearchFilter searchFilter) {
1265
      this.customerId = customerId;
845
      this.searchFilter = searchFilter;
1266
      setCustomerIdIsSet(true);
-
 
1267
      return this;
846
      return this;
1268
    }
847
    }
1269
 
848
 
1270
    public void unsetCustomerId() {
849
    public void unsetSearchFilter() {
1271
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
850
      this.searchFilter = null;
1272
    }
851
    }
1273
 
852
 
1274
    /** Returns true if field customerId is set (has been asigned a value) and false otherwise */
853
    /** Returns true if field searchFilter is set (has been asigned a value) and false otherwise */
1275
    public boolean isSetCustomerId() {
854
    public boolean isSetSearchFilter() {
1276
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
855
      return this.searchFilter != null;
1277
    }
856
    }
1278
 
857
 
1279
    public void setCustomerIdIsSet(boolean value) {
858
    public void setSearchFilterIsSet(boolean value) {
-
 
859
      if (!value) {
1280
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
860
        this.searchFilter = null;
-
 
861
      }
1281
    }
862
    }
1282
 
863
 
1283
    public void setFieldValue(_Fields field, Object value) {
864
    public void setFieldValue(_Fields field, Object value) {
1284
      switch (field) {
865
      switch (field) {
1285
      case CUSTOMER_ID:
866
      case SEARCH_FILTER:
1286
        if (value == null) {
867
        if (value == null) {
1287
          unsetCustomerId();
868
          unsetSearchFilter();
1288
        } else {
869
        } else {
1289
          setCustomerId((Long)value);
870
          setSearchFilter((SearchFilter)value);
1290
        }
871
        }
1291
        break;
872
        break;
1292
 
873
 
1293
      }
874
      }
1294
    }
875
    }
Line 1297... Line 878...
1297
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
878
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
1298
    }
879
    }
1299
 
880
 
1300
    public Object getFieldValue(_Fields field) {
881
    public Object getFieldValue(_Fields field) {
1301
      switch (field) {
882
      switch (field) {
1302
      case CUSTOMER_ID:
883
      case SEARCH_FILTER:
1303
        return new Long(getCustomerId());
884
        return getSearchFilter();
1304
 
885
 
1305
      }
886
      }
1306
      throw new IllegalStateException();
887
      throw new IllegalStateException();
1307
    }
888
    }
1308
 
889
 
Line 1311... Line 892...
1311
    }
892
    }
1312
 
893
 
1313
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
894
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1314
    public boolean isSet(_Fields field) {
895
    public boolean isSet(_Fields field) {
1315
      switch (field) {
896
      switch (field) {
1316
      case CUSTOMER_ID:
897
      case SEARCH_FILTER:
1317
        return isSetCustomerId();
898
        return isSetSearchFilter();
1318
      }
899
      }
1319
      throw new IllegalStateException();
900
      throw new IllegalStateException();
1320
    }
901
    }
1321
 
902
 
1322
    public boolean isSet(int fieldID) {
903
    public boolean isSet(int fieldID) {
Line 1334... Line 915...
1334
 
915
 
1335
    public boolean equals(getTickets_args that) {
916
    public boolean equals(getTickets_args that) {
1336
      if (that == null)
917
      if (that == null)
1337
        return false;
918
        return false;
1338
 
919
 
1339
      boolean this_present_customerId = true;
920
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
1340
      boolean that_present_customerId = true;
921
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
1341
      if (this_present_customerId || that_present_customerId) {
922
      if (this_present_searchFilter || that_present_searchFilter) {
1342
        if (!(this_present_customerId && that_present_customerId))
923
        if (!(this_present_searchFilter && that_present_searchFilter))
1343
          return false;
924
          return false;
1344
        if (this.customerId != that.customerId)
925
        if (!this.searchFilter.equals(that.searchFilter))
1345
          return false;
926
          return false;
1346
      }
927
      }
1347
 
928
 
1348
      return true;
929
      return true;
1349
    }
930
    }
Line 1359... Line 940...
1359
      }
940
      }
1360
 
941
 
1361
      int lastComparison = 0;
942
      int lastComparison = 0;
1362
      getTickets_args typedOther = (getTickets_args)other;
943
      getTickets_args typedOther = (getTickets_args)other;
1363
 
944
 
1364
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
945
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(isSetSearchFilter());
1365
      if (lastComparison != 0) {
946
      if (lastComparison != 0) {
1366
        return lastComparison;
947
        return lastComparison;
1367
      }
948
      }
1368
      lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
949
      lastComparison = TBaseHelper.compareTo(searchFilter, typedOther.searchFilter);
1369
      if (lastComparison != 0) {
950
      if (lastComparison != 0) {
1370
        return lastComparison;
951
        return lastComparison;
1371
      }
952
      }
1372
      return 0;
953
      return 0;
1373
    }
954
    }
Line 1384... Line 965...
1384
        _Fields fieldId = _Fields.findByThriftId(field.id);
965
        _Fields fieldId = _Fields.findByThriftId(field.id);
1385
        if (fieldId == null) {
966
        if (fieldId == null) {
1386
          TProtocolUtil.skip(iprot, field.type);
967
          TProtocolUtil.skip(iprot, field.type);
1387
        } else {
968
        } else {
1388
          switch (fieldId) {
969
          switch (fieldId) {
1389
            case CUSTOMER_ID:
970
            case SEARCH_FILTER:
1390
              if (field.type == TType.I64) {
971
              if (field.type == TType.STRUCT) {
1391
                this.customerId = iprot.readI64();
972
                this.searchFilter = new SearchFilter();
1392
                setCustomerIdIsSet(true);
973
                this.searchFilter.read(iprot);
1393
              } else { 
974
              } else { 
1394
                TProtocolUtil.skip(iprot, field.type);
975
                TProtocolUtil.skip(iprot, field.type);
1395
              }
976
              }
1396
              break;
977
              break;
1397
          }
978
          }
Line 1404... Line 985...
1404
 
985
 
1405
    public void write(TProtocol oprot) throws TException {
986
    public void write(TProtocol oprot) throws TException {
1406
      validate();
987
      validate();
1407
 
988
 
1408
      oprot.writeStructBegin(STRUCT_DESC);
989
      oprot.writeStructBegin(STRUCT_DESC);
-
 
990
      if (this.searchFilter != null) {
1409
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
991
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
1410
      oprot.writeI64(this.customerId);
992
        this.searchFilter.write(oprot);
1411
      oprot.writeFieldEnd();
993
        oprot.writeFieldEnd();
-
 
994
      }
1412
      oprot.writeFieldStop();
995
      oprot.writeFieldStop();
1413
      oprot.writeStructEnd();
996
      oprot.writeStructEnd();
1414
    }
997
    }
1415
 
998
 
1416
    @Override
999
    @Override
1417
    public String toString() {
1000
    public String toString() {
1418
      StringBuilder sb = new StringBuilder("getTickets_args(");
1001
      StringBuilder sb = new StringBuilder("getTickets_args(");
1419
      boolean first = true;
1002
      boolean first = true;
1420
 
1003
 
1421
      sb.append("customerId:");
1004
      sb.append("searchFilter:");
-
 
1005
      if (this.searchFilter == null) {
-
 
1006
        sb.append("null");
-
 
1007
      } else {
1422
      sb.append(this.customerId);
1008
        sb.append(this.searchFilter);
-
 
1009
      }
1423
      first = false;
1010
      first = false;
1424
      sb.append(")");
1011
      sb.append(")");
1425
      return sb.toString();
1012
      return sb.toString();
1426
    }
1013
    }
1427
 
1014
 
Line 1683... Line 1270...
1683
        } else {
1270
        } else {
1684
          switch (fieldId) {
1271
          switch (fieldId) {
1685
            case SUCCESS:
1272
            case SUCCESS:
1686
              if (field.type == TType.LIST) {
1273
              if (field.type == TType.LIST) {
1687
                {
1274
                {
1688
                  TList _list0 = iprot.readListBegin();
1275
                  TList _list8 = iprot.readListBegin();
1689
                  this.success = new ArrayList<Ticket>(_list0.size);
1276
                  this.success = new ArrayList<Ticket>(_list8.size);
1690
                  for (int _i1 = 0; _i1 < _list0.size; ++_i1)
1277
                  for (int _i9 = 0; _i9 < _list8.size; ++_i9)
1691
                  {
1278
                  {
1692
                    Ticket _elem2;
1279
                    Ticket _elem10;
1693
                    _elem2 = new Ticket();
1280
                    _elem10 = new Ticket();
1694
                    _elem2.read(iprot);
1281
                    _elem10.read(iprot);
1695
                    this.success.add(_elem2);
1282
                    this.success.add(_elem10);
1696
                  }
1283
                  }
1697
                  iprot.readListEnd();
1284
                  iprot.readListEnd();
1698
                }
1285
                }
1699
              } else { 
1286
              } else { 
1700
                TProtocolUtil.skip(iprot, field.type);
1287
                TProtocolUtil.skip(iprot, field.type);
Line 1713... Line 1300...
1713
 
1300
 
1714
      if (this.isSetSuccess()) {
1301
      if (this.isSetSuccess()) {
1715
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1302
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1716
        {
1303
        {
1717
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
1304
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
1718
          for (Ticket _iter3 : this.success)
1305
          for (Ticket _iter11 : this.success)
1719
          {
1306
          {
1720
            _iter3.write(oprot);
1307
            _iter11.write(oprot);
1721
          }
1308
          }
1722
          oprot.writeListEnd();
1309
          oprot.writeListEnd();
1723
        }
1310
        }
1724
        oprot.writeFieldEnd();
1311
        oprot.writeFieldEnd();
1725
      }
1312
      }
Line 1747... Line 1334...
1747
      // check for required fields
1334
      // check for required fields
1748
    }
1335
    }
1749
 
1336
 
1750
  }
1337
  }
1751
 
1338
 
1752
  public static class getAssignedTickets_args implements TBase<getAssignedTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAssignedTickets_args>   {
-
 
1753
    private static final TStruct STRUCT_DESC = new TStruct("getAssignedTickets_args");
-
 
1754
 
-
 
1755
    private static final TField AGENT_ID_FIELD_DESC = new TField("agentId", TType.I64, (short)1);
-
 
1756
 
-
 
1757
    private long agentId;
-
 
1758
 
-
 
1759
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
1760
    public enum _Fields implements TFieldIdEnum {
-
 
1761
      AGENT_ID((short)1, "agentId");
-
 
1762
 
-
 
1763
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1764
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
1765
 
-
 
1766
      static {
-
 
1767
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
1768
          byId.put((int)field._thriftId, field);
-
 
1769
          byName.put(field.getFieldName(), field);
-
 
1770
        }
-
 
1771
      }
-
 
1772
 
-
 
1773
      /**
-
 
1774
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
1775
       */
-
 
1776
      public static _Fields findByThriftId(int fieldId) {
-
 
1777
        return byId.get(fieldId);
-
 
1778
      }
-
 
1779
 
-
 
1780
      /**
-
 
1781
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
1782
       * if it is not found.
-
 
1783
       */
-
 
1784
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
1785
        _Fields fields = findByThriftId(fieldId);
-
 
1786
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
1787
        return fields;
-
 
1788
      }
-
 
1789
 
-
 
1790
      /**
-
 
1791
       * Find the _Fields constant that matches name, or null if its not found.
-
 
1792
       */
-
 
1793
      public static _Fields findByName(String name) {
-
 
1794
        return byName.get(name);
-
 
1795
      }
-
 
1796
 
-
 
1797
      private final short _thriftId;
-
 
1798
      private final String _fieldName;
-
 
1799
 
-
 
1800
      _Fields(short thriftId, String fieldName) {
-
 
1801
        _thriftId = thriftId;
-
 
1802
        _fieldName = fieldName;
-
 
1803
      }
-
 
1804
 
-
 
1805
      public short getThriftFieldId() {
-
 
1806
        return _thriftId;
-
 
1807
      }
-
 
1808
 
-
 
1809
      public String getFieldName() {
-
 
1810
        return _fieldName;
-
 
1811
      }
-
 
1812
    }
-
 
1813
 
-
 
1814
    // isset id assignments
-
 
1815
    private static final int __AGENTID_ISSET_ID = 0;
-
 
1816
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
1817
 
-
 
1818
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
1819
      put(_Fields.AGENT_ID, new FieldMetaData("agentId", TFieldRequirementType.DEFAULT, 
-
 
1820
          new FieldValueMetaData(TType.I64)));
-
 
1821
    }});
-
 
1822
 
-
 
1823
    static {
-
 
1824
      FieldMetaData.addStructMetaDataMap(getAssignedTickets_args.class, metaDataMap);
-
 
1825
    }
-
 
1826
 
-
 
1827
    public getAssignedTickets_args() {
-
 
1828
    }
-
 
1829
 
-
 
1830
    public getAssignedTickets_args(
-
 
1831
      long agentId)
-
 
1832
    {
-
 
1833
      this();
-
 
1834
      this.agentId = agentId;
-
 
1835
      setAgentIdIsSet(true);
-
 
1836
    }
-
 
1837
 
-
 
1838
    /**
-
 
1839
     * Performs a deep copy on <i>other</i>.
-
 
1840
     */
-
 
1841
    public getAssignedTickets_args(getAssignedTickets_args other) {
-
 
1842
      __isset_bit_vector.clear();
-
 
1843
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
1844
      this.agentId = other.agentId;
-
 
1845
    }
-
 
1846
 
-
 
1847
    public getAssignedTickets_args deepCopy() {
-
 
1848
      return new getAssignedTickets_args(this);
-
 
1849
    }
-
 
1850
 
-
 
1851
    @Deprecated
-
 
1852
    public getAssignedTickets_args clone() {
-
 
1853
      return new getAssignedTickets_args(this);
-
 
1854
    }
-
 
1855
 
-
 
1856
    public long getAgentId() {
-
 
1857
      return this.agentId;
-
 
1858
    }
-
 
1859
 
-
 
1860
    public getAssignedTickets_args setAgentId(long agentId) {
-
 
1861
      this.agentId = agentId;
-
 
1862
      setAgentIdIsSet(true);
-
 
1863
      return this;
-
 
1864
    }
-
 
1865
 
-
 
1866
    public void unsetAgentId() {
-
 
1867
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
-
 
1868
    }
-
 
1869
 
-
 
1870
    /** Returns true if field agentId is set (has been asigned a value) and false otherwise */
-
 
1871
    public boolean isSetAgentId() {
-
 
1872
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
-
 
1873
    }
-
 
1874
 
-
 
1875
    public void setAgentIdIsSet(boolean value) {
-
 
1876
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
-
 
1877
    }
-
 
1878
 
-
 
1879
    public void setFieldValue(_Fields field, Object value) {
-
 
1880
      switch (field) {
-
 
1881
      case AGENT_ID:
-
 
1882
        if (value == null) {
-
 
1883
          unsetAgentId();
-
 
1884
        } else {
-
 
1885
          setAgentId((Long)value);
-
 
1886
        }
-
 
1887
        break;
-
 
1888
 
-
 
1889
      }
-
 
1890
    }
-
 
1891
 
-
 
1892
    public void setFieldValue(int fieldID, Object value) {
-
 
1893
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1894
    }
-
 
1895
 
-
 
1896
    public Object getFieldValue(_Fields field) {
-
 
1897
      switch (field) {
-
 
1898
      case AGENT_ID:
-
 
1899
        return new Long(getAgentId());
-
 
1900
 
-
 
1901
      }
-
 
1902
      throw new IllegalStateException();
-
 
1903
    }
-
 
1904
 
-
 
1905
    public Object getFieldValue(int fieldId) {
-
 
1906
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1907
    }
-
 
1908
 
-
 
1909
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
1910
    public boolean isSet(_Fields field) {
-
 
1911
      switch (field) {
-
 
1912
      case AGENT_ID:
-
 
1913
        return isSetAgentId();
-
 
1914
      }
-
 
1915
      throw new IllegalStateException();
-
 
1916
    }
-
 
1917
 
-
 
1918
    public boolean isSet(int fieldID) {
-
 
1919
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1920
    }
-
 
1921
 
-
 
1922
    @Override
-
 
1923
    public boolean equals(Object that) {
-
 
1924
      if (that == null)
-
 
1925
        return false;
-
 
1926
      if (that instanceof getAssignedTickets_args)
-
 
1927
        return this.equals((getAssignedTickets_args)that);
-
 
1928
      return false;
-
 
1929
    }
-
 
1930
 
-
 
1931
    public boolean equals(getAssignedTickets_args that) {
-
 
1932
      if (that == null)
-
 
1933
        return false;
-
 
1934
 
-
 
1935
      boolean this_present_agentId = true;
-
 
1936
      boolean that_present_agentId = true;
-
 
1937
      if (this_present_agentId || that_present_agentId) {
-
 
1938
        if (!(this_present_agentId && that_present_agentId))
-
 
1939
          return false;
-
 
1940
        if (this.agentId != that.agentId)
-
 
1941
          return false;
-
 
1942
      }
-
 
1943
 
-
 
1944
      return true;
-
 
1945
    }
-
 
1946
 
-
 
1947
    @Override
-
 
1948
    public int hashCode() {
-
 
1949
      return 0;
-
 
1950
    }
-
 
1951
 
-
 
1952
    public int compareTo(getAssignedTickets_args other) {
-
 
1953
      if (!getClass().equals(other.getClass())) {
-
 
1954
        return getClass().getName().compareTo(other.getClass().getName());
-
 
1955
      }
-
 
1956
 
-
 
1957
      int lastComparison = 0;
-
 
1958
      getAssignedTickets_args typedOther = (getAssignedTickets_args)other;
-
 
1959
 
-
 
1960
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(isSetAgentId());
-
 
1961
      if (lastComparison != 0) {
-
 
1962
        return lastComparison;
-
 
1963
      }
-
 
1964
      lastComparison = TBaseHelper.compareTo(agentId, typedOther.agentId);
-
 
1965
      if (lastComparison != 0) {
-
 
1966
        return lastComparison;
-
 
1967
      }
-
 
1968
      return 0;
-
 
1969
    }
-
 
1970
 
-
 
1971
    public void read(TProtocol iprot) throws TException {
-
 
1972
      TField field;
-
 
1973
      iprot.readStructBegin();
-
 
1974
      while (true)
-
 
1975
      {
-
 
1976
        field = iprot.readFieldBegin();
-
 
1977
        if (field.type == TType.STOP) { 
-
 
1978
          break;
-
 
1979
        }
-
 
1980
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1981
        if (fieldId == null) {
-
 
1982
          TProtocolUtil.skip(iprot, field.type);
-
 
1983
        } else {
-
 
1984
          switch (fieldId) {
-
 
1985
            case AGENT_ID:
-
 
1986
              if (field.type == TType.I64) {
-
 
1987
                this.agentId = iprot.readI64();
-
 
1988
                setAgentIdIsSet(true);
-
 
1989
              } else { 
-
 
1990
                TProtocolUtil.skip(iprot, field.type);
-
 
1991
              }
-
 
1992
              break;
-
 
1993
          }
-
 
1994
          iprot.readFieldEnd();
-
 
1995
        }
-
 
1996
      }
-
 
1997
      iprot.readStructEnd();
-
 
1998
      validate();
-
 
1999
    }
-
 
2000
 
-
 
2001
    public void write(TProtocol oprot) throws TException {
-
 
2002
      validate();
-
 
2003
 
-
 
2004
      oprot.writeStructBegin(STRUCT_DESC);
-
 
2005
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
-
 
2006
      oprot.writeI64(this.agentId);
-
 
2007
      oprot.writeFieldEnd();
-
 
2008
      oprot.writeFieldStop();
-
 
2009
      oprot.writeStructEnd();
-
 
2010
    }
-
 
2011
 
-
 
2012
    @Override
-
 
2013
    public String toString() {
-
 
2014
      StringBuilder sb = new StringBuilder("getAssignedTickets_args(");
-
 
2015
      boolean first = true;
-
 
2016
 
-
 
2017
      sb.append("agentId:");
-
 
2018
      sb.append(this.agentId);
-
 
2019
      first = false;
-
 
2020
      sb.append(")");
-
 
2021
      return sb.toString();
-
 
2022
    }
-
 
2023
 
-
 
2024
    public void validate() throws TException {
-
 
2025
      // check for required fields
-
 
2026
    }
-
 
2027
 
-
 
2028
  }
-
 
2029
 
-
 
2030
  public static class getAssignedTickets_result implements TBase<getAssignedTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAssignedTickets_result>   {
-
 
2031
    private static final TStruct STRUCT_DESC = new TStruct("getAssignedTickets_result");
-
 
2032
 
-
 
2033
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
2034
 
-
 
2035
    private List<Ticket> success;
-
 
2036
 
-
 
2037
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
2038
    public enum _Fields implements TFieldIdEnum {
-
 
2039
      SUCCESS((short)0, "success");
-
 
2040
 
-
 
2041
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2042
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
2043
 
-
 
2044
      static {
-
 
2045
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
2046
          byId.put((int)field._thriftId, field);
-
 
2047
          byName.put(field.getFieldName(), field);
-
 
2048
        }
-
 
2049
      }
-
 
2050
 
-
 
2051
      /**
-
 
2052
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
2053
       */
-
 
2054
      public static _Fields findByThriftId(int fieldId) {
-
 
2055
        return byId.get(fieldId);
-
 
2056
      }
-
 
2057
 
-
 
2058
      /**
-
 
2059
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
2060
       * if it is not found.
-
 
2061
       */
-
 
2062
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
2063
        _Fields fields = findByThriftId(fieldId);
-
 
2064
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
2065
        return fields;
-
 
2066
      }
-
 
2067
 
-
 
2068
      /**
-
 
2069
       * Find the _Fields constant that matches name, or null if its not found.
-
 
2070
       */
-
 
2071
      public static _Fields findByName(String name) {
-
 
2072
        return byName.get(name);
-
 
2073
      }
-
 
2074
 
-
 
2075
      private final short _thriftId;
-
 
2076
      private final String _fieldName;
-
 
2077
 
-
 
2078
      _Fields(short thriftId, String fieldName) {
-
 
2079
        _thriftId = thriftId;
-
 
2080
        _fieldName = fieldName;
-
 
2081
      }
-
 
2082
 
-
 
2083
      public short getThriftFieldId() {
-
 
2084
        return _thriftId;
-
 
2085
      }
-
 
2086
 
-
 
2087
      public String getFieldName() {
-
 
2088
        return _fieldName;
-
 
2089
      }
-
 
2090
    }
-
 
2091
 
-
 
2092
    // isset id assignments
-
 
2093
 
-
 
2094
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
2095
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
2096
          new ListMetaData(TType.LIST, 
-
 
2097
              new StructMetaData(TType.STRUCT, Ticket.class))));
-
 
2098
    }});
-
 
2099
 
-
 
2100
    static {
-
 
2101
      FieldMetaData.addStructMetaDataMap(getAssignedTickets_result.class, metaDataMap);
-
 
2102
    }
-
 
2103
 
-
 
2104
    public getAssignedTickets_result() {
-
 
2105
    }
-
 
2106
 
-
 
2107
    public getAssignedTickets_result(
-
 
2108
      List<Ticket> success)
-
 
2109
    {
-
 
2110
      this();
-
 
2111
      this.success = success;
-
 
2112
    }
-
 
2113
 
-
 
2114
    /**
-
 
2115
     * Performs a deep copy on <i>other</i>.
-
 
2116
     */
-
 
2117
    public getAssignedTickets_result(getAssignedTickets_result other) {
-
 
2118
      if (other.isSetSuccess()) {
-
 
2119
        List<Ticket> __this__success = new ArrayList<Ticket>();
-
 
2120
        for (Ticket other_element : other.success) {
-
 
2121
          __this__success.add(new Ticket(other_element));
-
 
2122
        }
-
 
2123
        this.success = __this__success;
-
 
2124
      }
-
 
2125
    }
-
 
2126
 
-
 
2127
    public getAssignedTickets_result deepCopy() {
-
 
2128
      return new getAssignedTickets_result(this);
-
 
2129
    }
-
 
2130
 
-
 
2131
    @Deprecated
-
 
2132
    public getAssignedTickets_result clone() {
-
 
2133
      return new getAssignedTickets_result(this);
-
 
2134
    }
-
 
2135
 
-
 
2136
    public int getSuccessSize() {
-
 
2137
      return (this.success == null) ? 0 : this.success.size();
-
 
2138
    }
-
 
2139
 
-
 
2140
    public java.util.Iterator<Ticket> getSuccessIterator() {
-
 
2141
      return (this.success == null) ? null : this.success.iterator();
-
 
2142
    }
-
 
2143
 
-
 
2144
    public void addToSuccess(Ticket elem) {
-
 
2145
      if (this.success == null) {
-
 
2146
        this.success = new ArrayList<Ticket>();
-
 
2147
      }
-
 
2148
      this.success.add(elem);
-
 
2149
    }
-
 
2150
 
-
 
2151
    public List<Ticket> getSuccess() {
-
 
2152
      return this.success;
-
 
2153
    }
-
 
2154
 
-
 
2155
    public getAssignedTickets_result setSuccess(List<Ticket> success) {
-
 
2156
      this.success = success;
-
 
2157
      return this;
-
 
2158
    }
-
 
2159
 
-
 
2160
    public void unsetSuccess() {
-
 
2161
      this.success = null;
-
 
2162
    }
-
 
2163
 
-
 
2164
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
2165
    public boolean isSetSuccess() {
-
 
2166
      return this.success != null;
-
 
2167
    }
-
 
2168
 
-
 
2169
    public void setSuccessIsSet(boolean value) {
-
 
2170
      if (!value) {
-
 
2171
        this.success = null;
-
 
2172
      }
-
 
2173
    }
-
 
2174
 
-
 
2175
    public void setFieldValue(_Fields field, Object value) {
-
 
2176
      switch (field) {
-
 
2177
      case SUCCESS:
-
 
2178
        if (value == null) {
-
 
2179
          unsetSuccess();
-
 
2180
        } else {
-
 
2181
          setSuccess((List<Ticket>)value);
-
 
2182
        }
-
 
2183
        break;
-
 
2184
 
-
 
2185
      }
-
 
2186
    }
-
 
2187
 
-
 
2188
    public void setFieldValue(int fieldID, Object value) {
-
 
2189
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2190
    }
-
 
2191
 
-
 
2192
    public Object getFieldValue(_Fields field) {
-
 
2193
      switch (field) {
-
 
2194
      case SUCCESS:
-
 
2195
        return getSuccess();
-
 
2196
 
-
 
2197
      }
-
 
2198
      throw new IllegalStateException();
-
 
2199
    }
-
 
2200
 
-
 
2201
    public Object getFieldValue(int fieldId) {
-
 
2202
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2203
    }
-
 
2204
 
-
 
2205
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
2206
    public boolean isSet(_Fields field) {
-
 
2207
      switch (field) {
-
 
2208
      case SUCCESS:
-
 
2209
        return isSetSuccess();
-
 
2210
      }
-
 
2211
      throw new IllegalStateException();
-
 
2212
    }
-
 
2213
 
-
 
2214
    public boolean isSet(int fieldID) {
-
 
2215
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2216
    }
-
 
2217
 
-
 
2218
    @Override
-
 
2219
    public boolean equals(Object that) {
-
 
2220
      if (that == null)
-
 
2221
        return false;
-
 
2222
      if (that instanceof getAssignedTickets_result)
-
 
2223
        return this.equals((getAssignedTickets_result)that);
-
 
2224
      return false;
-
 
2225
    }
-
 
2226
 
-
 
2227
    public boolean equals(getAssignedTickets_result that) {
-
 
2228
      if (that == null)
-
 
2229
        return false;
-
 
2230
 
-
 
2231
      boolean this_present_success = true && this.isSetSuccess();
-
 
2232
      boolean that_present_success = true && that.isSetSuccess();
-
 
2233
      if (this_present_success || that_present_success) {
-
 
2234
        if (!(this_present_success && that_present_success))
-
 
2235
          return false;
-
 
2236
        if (!this.success.equals(that.success))
-
 
2237
          return false;
-
 
2238
      }
-
 
2239
 
-
 
2240
      return true;
-
 
2241
    }
-
 
2242
 
-
 
2243
    @Override
-
 
2244
    public int hashCode() {
-
 
2245
      return 0;
-
 
2246
    }
-
 
2247
 
-
 
2248
    public int compareTo(getAssignedTickets_result other) {
-
 
2249
      if (!getClass().equals(other.getClass())) {
-
 
2250
        return getClass().getName().compareTo(other.getClass().getName());
-
 
2251
      }
-
 
2252
 
-
 
2253
      int lastComparison = 0;
-
 
2254
      getAssignedTickets_result typedOther = (getAssignedTickets_result)other;
-
 
2255
 
-
 
2256
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
2257
      if (lastComparison != 0) {
-
 
2258
        return lastComparison;
-
 
2259
      }
-
 
2260
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
2261
      if (lastComparison != 0) {
-
 
2262
        return lastComparison;
-
 
2263
      }
-
 
2264
      return 0;
-
 
2265
    }
-
 
2266
 
-
 
2267
    public void read(TProtocol iprot) throws TException {
-
 
2268
      TField field;
-
 
2269
      iprot.readStructBegin();
-
 
2270
      while (true)
-
 
2271
      {
-
 
2272
        field = iprot.readFieldBegin();
-
 
2273
        if (field.type == TType.STOP) { 
-
 
2274
          break;
-
 
2275
        }
-
 
2276
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2277
        if (fieldId == null) {
-
 
2278
          TProtocolUtil.skip(iprot, field.type);
-
 
2279
        } else {
-
 
2280
          switch (fieldId) {
-
 
2281
            case SUCCESS:
-
 
2282
              if (field.type == TType.LIST) {
-
 
2283
                {
-
 
2284
                  TList _list4 = iprot.readListBegin();
-
 
2285
                  this.success = new ArrayList<Ticket>(_list4.size);
-
 
2286
                  for (int _i5 = 0; _i5 < _list4.size; ++_i5)
-
 
2287
                  {
-
 
2288
                    Ticket _elem6;
-
 
2289
                    _elem6 = new Ticket();
-
 
2290
                    _elem6.read(iprot);
-
 
2291
                    this.success.add(_elem6);
-
 
2292
                  }
-
 
2293
                  iprot.readListEnd();
-
 
2294
                }
-
 
2295
              } else { 
-
 
2296
                TProtocolUtil.skip(iprot, field.type);
-
 
2297
              }
-
 
2298
              break;
-
 
2299
          }
-
 
2300
          iprot.readFieldEnd();
-
 
2301
        }
-
 
2302
      }
-
 
2303
      iprot.readStructEnd();
-
 
2304
      validate();
-
 
2305
    }
-
 
2306
 
-
 
2307
    public void write(TProtocol oprot) throws TException {
-
 
2308
      oprot.writeStructBegin(STRUCT_DESC);
-
 
2309
 
-
 
2310
      if (this.isSetSuccess()) {
-
 
2311
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
2312
        {
-
 
2313
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
2314
          for (Ticket _iter7 : this.success)
-
 
2315
          {
-
 
2316
            _iter7.write(oprot);
-
 
2317
          }
-
 
2318
          oprot.writeListEnd();
-
 
2319
        }
-
 
2320
        oprot.writeFieldEnd();
-
 
2321
      }
-
 
2322
      oprot.writeFieldStop();
-
 
2323
      oprot.writeStructEnd();
-
 
2324
    }
-
 
2325
 
-
 
2326
    @Override
-
 
2327
    public String toString() {
-
 
2328
      StringBuilder sb = new StringBuilder("getAssignedTickets_result(");
-
 
2329
      boolean first = true;
-
 
2330
 
-
 
2331
      sb.append("success:");
-
 
2332
      if (this.success == null) {
-
 
2333
        sb.append("null");
-
 
2334
      } else {
-
 
2335
        sb.append(this.success);
-
 
2336
      }
-
 
2337
      first = false;
-
 
2338
      sb.append(")");
-
 
2339
      return sb.toString();
-
 
2340
    }
-
 
2341
 
-
 
2342
    public void validate() throws TException {
-
 
2343
      // check for required fields
-
 
2344
    }
-
 
2345
 
-
 
2346
  }
-
 
2347
 
-
 
2348
  public static class getUnassignedTickets_args implements TBase<getUnassignedTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUnassignedTickets_args>   {
1339
  public static class getUnassignedTickets_args implements TBase<getUnassignedTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUnassignedTickets_args>   {
2349
    private static final TStruct STRUCT_DESC = new TStruct("getUnassignedTickets_args");
1340
    private static final TStruct STRUCT_DESC = new TStruct("getUnassignedTickets_args");
2350
 
1341
 
2351
 
1342
 
2352
 
1343
 
Line 2788... Line 1779...
2788
        } else {
1779
        } else {
2789
          switch (fieldId) {
1780
          switch (fieldId) {
2790
            case SUCCESS:
1781
            case SUCCESS:
2791
              if (field.type == TType.LIST) {
1782
              if (field.type == TType.LIST) {
2792
                {
1783
                {
2793
                  TList _list8 = iprot.readListBegin();
-
 
2794
                  this.success = new ArrayList<Ticket>(_list8.size);
-
 
2795
                  for (int _i9 = 0; _i9 < _list8.size; ++_i9)
-
 
2796
                  {
-
 
2797
                    Ticket _elem10;
-
 
2798
                    _elem10 = new Ticket();
-
 
2799
                    _elem10.read(iprot);
-
 
2800
                    this.success.add(_elem10);
-
 
2801
                  }
-
 
2802
                  iprot.readListEnd();
-
 
2803
                }
-
 
2804
              } else { 
-
 
2805
                TProtocolUtil.skip(iprot, field.type);
-
 
2806
              }
-
 
2807
              break;
-
 
2808
          }
-
 
2809
          iprot.readFieldEnd();
-
 
2810
        }
-
 
2811
      }
-
 
2812
      iprot.readStructEnd();
-
 
2813
      validate();
-
 
2814
    }
-
 
2815
 
-
 
2816
    public void write(TProtocol oprot) throws TException {
-
 
2817
      oprot.writeStructBegin(STRUCT_DESC);
-
 
2818
 
-
 
2819
      if (this.isSetSuccess()) {
-
 
2820
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
2821
        {
-
 
2822
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
2823
          for (Ticket _iter11 : this.success)
-
 
2824
          {
-
 
2825
            _iter11.write(oprot);
-
 
2826
          }
-
 
2827
          oprot.writeListEnd();
-
 
2828
        }
-
 
2829
        oprot.writeFieldEnd();
-
 
2830
      }
-
 
2831
      oprot.writeFieldStop();
-
 
2832
      oprot.writeStructEnd();
-
 
2833
    }
-
 
2834
 
-
 
2835
    @Override
-
 
2836
    public String toString() {
-
 
2837
      StringBuilder sb = new StringBuilder("getUnassignedTickets_result(");
-
 
2838
      boolean first = true;
-
 
2839
 
-
 
2840
      sb.append("success:");
-
 
2841
      if (this.success == null) {
-
 
2842
        sb.append("null");
-
 
2843
      } else {
-
 
2844
        sb.append(this.success);
-
 
2845
      }
-
 
2846
      first = false;
-
 
2847
      sb.append(")");
-
 
2848
      return sb.toString();
-
 
2849
    }
-
 
2850
 
-
 
2851
    public void validate() throws TException {
-
 
2852
      // check for required fields
-
 
2853
    }
-
 
2854
 
-
 
2855
  }
-
 
2856
 
-
 
2857
  public static class getAllTickets_args implements TBase<getAllTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllTickets_args>   {
-
 
2858
    private static final TStruct STRUCT_DESC = new TStruct("getAllTickets_args");
-
 
2859
 
-
 
2860
    private static final TField AGENT_ID_FIELD_DESC = new TField("agentId", TType.I64, (short)1);
-
 
2861
 
-
 
2862
    private long agentId;
-
 
2863
 
-
 
2864
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
2865
    public enum _Fields implements TFieldIdEnum {
-
 
2866
      AGENT_ID((short)1, "agentId");
-
 
2867
 
-
 
2868
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2869
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
2870
 
-
 
2871
      static {
-
 
2872
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
2873
          byId.put((int)field._thriftId, field);
-
 
2874
          byName.put(field.getFieldName(), field);
-
 
2875
        }
-
 
2876
      }
-
 
2877
 
-
 
2878
      /**
-
 
2879
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
2880
       */
-
 
2881
      public static _Fields findByThriftId(int fieldId) {
-
 
2882
        return byId.get(fieldId);
-
 
2883
      }
-
 
2884
 
-
 
2885
      /**
-
 
2886
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
2887
       * if it is not found.
-
 
2888
       */
-
 
2889
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
2890
        _Fields fields = findByThriftId(fieldId);
-
 
2891
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
2892
        return fields;
-
 
2893
      }
-
 
2894
 
-
 
2895
      /**
-
 
2896
       * Find the _Fields constant that matches name, or null if its not found.
-
 
2897
       */
-
 
2898
      public static _Fields findByName(String name) {
-
 
2899
        return byName.get(name);
-
 
2900
      }
-
 
2901
 
-
 
2902
      private final short _thriftId;
-
 
2903
      private final String _fieldName;
-
 
2904
 
-
 
2905
      _Fields(short thriftId, String fieldName) {
-
 
2906
        _thriftId = thriftId;
-
 
2907
        _fieldName = fieldName;
-
 
2908
      }
-
 
2909
 
-
 
2910
      public short getThriftFieldId() {
-
 
2911
        return _thriftId;
-
 
2912
      }
-
 
2913
 
-
 
2914
      public String getFieldName() {
-
 
2915
        return _fieldName;
-
 
2916
      }
-
 
2917
    }
-
 
2918
 
-
 
2919
    // isset id assignments
-
 
2920
    private static final int __AGENTID_ISSET_ID = 0;
-
 
2921
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
2922
 
-
 
2923
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
2924
      put(_Fields.AGENT_ID, new FieldMetaData("agentId", TFieldRequirementType.DEFAULT, 
-
 
2925
          new FieldValueMetaData(TType.I64)));
-
 
2926
    }});
-
 
2927
 
-
 
2928
    static {
-
 
2929
      FieldMetaData.addStructMetaDataMap(getAllTickets_args.class, metaDataMap);
-
 
2930
    }
-
 
2931
 
-
 
2932
    public getAllTickets_args() {
-
 
2933
    }
-
 
2934
 
-
 
2935
    public getAllTickets_args(
-
 
2936
      long agentId)
-
 
2937
    {
-
 
2938
      this();
-
 
2939
      this.agentId = agentId;
-
 
2940
      setAgentIdIsSet(true);
-
 
2941
    }
-
 
2942
 
-
 
2943
    /**
-
 
2944
     * Performs a deep copy on <i>other</i>.
-
 
2945
     */
-
 
2946
    public getAllTickets_args(getAllTickets_args other) {
-
 
2947
      __isset_bit_vector.clear();
-
 
2948
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
2949
      this.agentId = other.agentId;
-
 
2950
    }
-
 
2951
 
-
 
2952
    public getAllTickets_args deepCopy() {
-
 
2953
      return new getAllTickets_args(this);
-
 
2954
    }
-
 
2955
 
-
 
2956
    @Deprecated
-
 
2957
    public getAllTickets_args clone() {
-
 
2958
      return new getAllTickets_args(this);
-
 
2959
    }
-
 
2960
 
-
 
2961
    public long getAgentId() {
-
 
2962
      return this.agentId;
-
 
2963
    }
-
 
2964
 
-
 
2965
    public getAllTickets_args setAgentId(long agentId) {
-
 
2966
      this.agentId = agentId;
-
 
2967
      setAgentIdIsSet(true);
-
 
2968
      return this;
-
 
2969
    }
-
 
2970
 
-
 
2971
    public void unsetAgentId() {
-
 
2972
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
-
 
2973
    }
-
 
2974
 
-
 
2975
    /** Returns true if field agentId is set (has been asigned a value) and false otherwise */
-
 
2976
    public boolean isSetAgentId() {
-
 
2977
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
-
 
2978
    }
-
 
2979
 
-
 
2980
    public void setAgentIdIsSet(boolean value) {
-
 
2981
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
-
 
2982
    }
-
 
2983
 
-
 
2984
    public void setFieldValue(_Fields field, Object value) {
-
 
2985
      switch (field) {
-
 
2986
      case AGENT_ID:
-
 
2987
        if (value == null) {
-
 
2988
          unsetAgentId();
-
 
2989
        } else {
-
 
2990
          setAgentId((Long)value);
-
 
2991
        }
-
 
2992
        break;
-
 
2993
 
-
 
2994
      }
-
 
2995
    }
-
 
2996
 
-
 
2997
    public void setFieldValue(int fieldID, Object value) {
-
 
2998
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2999
    }
-
 
3000
 
-
 
3001
    public Object getFieldValue(_Fields field) {
-
 
3002
      switch (field) {
-
 
3003
      case AGENT_ID:
-
 
3004
        return new Long(getAgentId());
-
 
3005
 
-
 
3006
      }
-
 
3007
      throw new IllegalStateException();
-
 
3008
    }
-
 
3009
 
-
 
3010
    public Object getFieldValue(int fieldId) {
-
 
3011
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3012
    }
-
 
3013
 
-
 
3014
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
3015
    public boolean isSet(_Fields field) {
-
 
3016
      switch (field) {
-
 
3017
      case AGENT_ID:
-
 
3018
        return isSetAgentId();
-
 
3019
      }
-
 
3020
      throw new IllegalStateException();
-
 
3021
    }
-
 
3022
 
-
 
3023
    public boolean isSet(int fieldID) {
-
 
3024
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3025
    }
-
 
3026
 
-
 
3027
    @Override
-
 
3028
    public boolean equals(Object that) {
-
 
3029
      if (that == null)
-
 
3030
        return false;
-
 
3031
      if (that instanceof getAllTickets_args)
-
 
3032
        return this.equals((getAllTickets_args)that);
-
 
3033
      return false;
-
 
3034
    }
-
 
3035
 
-
 
3036
    public boolean equals(getAllTickets_args that) {
-
 
3037
      if (that == null)
-
 
3038
        return false;
-
 
3039
 
-
 
3040
      boolean this_present_agentId = true;
-
 
3041
      boolean that_present_agentId = true;
-
 
3042
      if (this_present_agentId || that_present_agentId) {
-
 
3043
        if (!(this_present_agentId && that_present_agentId))
-
 
3044
          return false;
-
 
3045
        if (this.agentId != that.agentId)
-
 
3046
          return false;
-
 
3047
      }
-
 
3048
 
-
 
3049
      return true;
-
 
3050
    }
-
 
3051
 
-
 
3052
    @Override
-
 
3053
    public int hashCode() {
-
 
3054
      return 0;
-
 
3055
    }
-
 
3056
 
-
 
3057
    public int compareTo(getAllTickets_args other) {
-
 
3058
      if (!getClass().equals(other.getClass())) {
-
 
3059
        return getClass().getName().compareTo(other.getClass().getName());
-
 
3060
      }
-
 
3061
 
-
 
3062
      int lastComparison = 0;
-
 
3063
      getAllTickets_args typedOther = (getAllTickets_args)other;
-
 
3064
 
-
 
3065
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(isSetAgentId());
-
 
3066
      if (lastComparison != 0) {
-
 
3067
        return lastComparison;
-
 
3068
      }
-
 
3069
      lastComparison = TBaseHelper.compareTo(agentId, typedOther.agentId);
-
 
3070
      if (lastComparison != 0) {
-
 
3071
        return lastComparison;
-
 
3072
      }
-
 
3073
      return 0;
-
 
3074
    }
-
 
3075
 
-
 
3076
    public void read(TProtocol iprot) throws TException {
-
 
3077
      TField field;
-
 
3078
      iprot.readStructBegin();
-
 
3079
      while (true)
-
 
3080
      {
-
 
3081
        field = iprot.readFieldBegin();
-
 
3082
        if (field.type == TType.STOP) { 
-
 
3083
          break;
-
 
3084
        }
-
 
3085
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3086
        if (fieldId == null) {
-
 
3087
          TProtocolUtil.skip(iprot, field.type);
-
 
3088
        } else {
-
 
3089
          switch (fieldId) {
-
 
3090
            case AGENT_ID:
-
 
3091
              if (field.type == TType.I64) {
-
 
3092
                this.agentId = iprot.readI64();
-
 
3093
                setAgentIdIsSet(true);
-
 
3094
              } else { 
-
 
3095
                TProtocolUtil.skip(iprot, field.type);
-
 
3096
              }
-
 
3097
              break;
-
 
3098
          }
-
 
3099
          iprot.readFieldEnd();
-
 
3100
        }
-
 
3101
      }
-
 
3102
      iprot.readStructEnd();
-
 
3103
      validate();
-
 
3104
    }
-
 
3105
 
-
 
3106
    public void write(TProtocol oprot) throws TException {
-
 
3107
      validate();
-
 
3108
 
-
 
3109
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3110
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
-
 
3111
      oprot.writeI64(this.agentId);
-
 
3112
      oprot.writeFieldEnd();
-
 
3113
      oprot.writeFieldStop();
-
 
3114
      oprot.writeStructEnd();
-
 
3115
    }
-
 
3116
 
-
 
3117
    @Override
-
 
3118
    public String toString() {
-
 
3119
      StringBuilder sb = new StringBuilder("getAllTickets_args(");
-
 
3120
      boolean first = true;
-
 
3121
 
-
 
3122
      sb.append("agentId:");
-
 
3123
      sb.append(this.agentId);
-
 
3124
      first = false;
-
 
3125
      sb.append(")");
-
 
3126
      return sb.toString();
-
 
3127
    }
-
 
3128
 
-
 
3129
    public void validate() throws TException {
-
 
3130
      // check for required fields
-
 
3131
    }
-
 
3132
 
-
 
3133
  }
-
 
3134
 
-
 
3135
  public static class getAllTickets_result implements TBase<getAllTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllTickets_result>   {
-
 
3136
    private static final TStruct STRUCT_DESC = new TStruct("getAllTickets_result");
-
 
3137
 
-
 
3138
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
3139
 
-
 
3140
    private List<Ticket> success;
-
 
3141
 
-
 
3142
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
3143
    public enum _Fields implements TFieldIdEnum {
-
 
3144
      SUCCESS((short)0, "success");
-
 
3145
 
-
 
3146
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3147
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
3148
 
-
 
3149
      static {
-
 
3150
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
3151
          byId.put((int)field._thriftId, field);
-
 
3152
          byName.put(field.getFieldName(), field);
-
 
3153
        }
-
 
3154
      }
-
 
3155
 
-
 
3156
      /**
-
 
3157
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
3158
       */
-
 
3159
      public static _Fields findByThriftId(int fieldId) {
-
 
3160
        return byId.get(fieldId);
-
 
3161
      }
-
 
3162
 
-
 
3163
      /**
-
 
3164
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
3165
       * if it is not found.
-
 
3166
       */
-
 
3167
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
3168
        _Fields fields = findByThriftId(fieldId);
-
 
3169
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
3170
        return fields;
-
 
3171
      }
-
 
3172
 
-
 
3173
      /**
-
 
3174
       * Find the _Fields constant that matches name, or null if its not found.
-
 
3175
       */
-
 
3176
      public static _Fields findByName(String name) {
-
 
3177
        return byName.get(name);
-
 
3178
      }
-
 
3179
 
-
 
3180
      private final short _thriftId;
-
 
3181
      private final String _fieldName;
-
 
3182
 
-
 
3183
      _Fields(short thriftId, String fieldName) {
-
 
3184
        _thriftId = thriftId;
-
 
3185
        _fieldName = fieldName;
-
 
3186
      }
-
 
3187
 
-
 
3188
      public short getThriftFieldId() {
-
 
3189
        return _thriftId;
-
 
3190
      }
-
 
3191
 
-
 
3192
      public String getFieldName() {
-
 
3193
        return _fieldName;
-
 
3194
      }
-
 
3195
    }
-
 
3196
 
-
 
3197
    // isset id assignments
-
 
3198
 
-
 
3199
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
3200
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
3201
          new ListMetaData(TType.LIST, 
-
 
3202
              new StructMetaData(TType.STRUCT, Ticket.class))));
-
 
3203
    }});
-
 
3204
 
-
 
3205
    static {
-
 
3206
      FieldMetaData.addStructMetaDataMap(getAllTickets_result.class, metaDataMap);
-
 
3207
    }
-
 
3208
 
-
 
3209
    public getAllTickets_result() {
-
 
3210
    }
-
 
3211
 
-
 
3212
    public getAllTickets_result(
-
 
3213
      List<Ticket> success)
-
 
3214
    {
-
 
3215
      this();
-
 
3216
      this.success = success;
-
 
3217
    }
-
 
3218
 
-
 
3219
    /**
-
 
3220
     * Performs a deep copy on <i>other</i>.
-
 
3221
     */
-
 
3222
    public getAllTickets_result(getAllTickets_result other) {
-
 
3223
      if (other.isSetSuccess()) {
-
 
3224
        List<Ticket> __this__success = new ArrayList<Ticket>();
-
 
3225
        for (Ticket other_element : other.success) {
-
 
3226
          __this__success.add(new Ticket(other_element));
-
 
3227
        }
-
 
3228
        this.success = __this__success;
-
 
3229
      }
-
 
3230
    }
-
 
3231
 
-
 
3232
    public getAllTickets_result deepCopy() {
-
 
3233
      return new getAllTickets_result(this);
-
 
3234
    }
-
 
3235
 
-
 
3236
    @Deprecated
-
 
3237
    public getAllTickets_result clone() {
-
 
3238
      return new getAllTickets_result(this);
-
 
3239
    }
-
 
3240
 
-
 
3241
    public int getSuccessSize() {
-
 
3242
      return (this.success == null) ? 0 : this.success.size();
-
 
3243
    }
-
 
3244
 
-
 
3245
    public java.util.Iterator<Ticket> getSuccessIterator() {
-
 
3246
      return (this.success == null) ? null : this.success.iterator();
-
 
3247
    }
-
 
3248
 
-
 
3249
    public void addToSuccess(Ticket elem) {
-
 
3250
      if (this.success == null) {
-
 
3251
        this.success = new ArrayList<Ticket>();
-
 
3252
      }
-
 
3253
      this.success.add(elem);
-
 
3254
    }
-
 
3255
 
-
 
3256
    public List<Ticket> getSuccess() {
-
 
3257
      return this.success;
-
 
3258
    }
-
 
3259
 
-
 
3260
    public getAllTickets_result setSuccess(List<Ticket> success) {
-
 
3261
      this.success = success;
-
 
3262
      return this;
-
 
3263
    }
-
 
3264
 
-
 
3265
    public void unsetSuccess() {
-
 
3266
      this.success = null;
-
 
3267
    }
-
 
3268
 
-
 
3269
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
3270
    public boolean isSetSuccess() {
-
 
3271
      return this.success != null;
-
 
3272
    }
-
 
3273
 
-
 
3274
    public void setSuccessIsSet(boolean value) {
-
 
3275
      if (!value) {
-
 
3276
        this.success = null;
-
 
3277
      }
-
 
3278
    }
-
 
3279
 
-
 
3280
    public void setFieldValue(_Fields field, Object value) {
-
 
3281
      switch (field) {
-
 
3282
      case SUCCESS:
-
 
3283
        if (value == null) {
-
 
3284
          unsetSuccess();
-
 
3285
        } else {
-
 
3286
          setSuccess((List<Ticket>)value);
-
 
3287
        }
-
 
3288
        break;
-
 
3289
 
-
 
3290
      }
-
 
3291
    }
-
 
3292
 
-
 
3293
    public void setFieldValue(int fieldID, Object value) {
-
 
3294
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3295
    }
-
 
3296
 
-
 
3297
    public Object getFieldValue(_Fields field) {
-
 
3298
      switch (field) {
-
 
3299
      case SUCCESS:
-
 
3300
        return getSuccess();
-
 
3301
 
-
 
3302
      }
-
 
3303
      throw new IllegalStateException();
-
 
3304
    }
-
 
3305
 
-
 
3306
    public Object getFieldValue(int fieldId) {
-
 
3307
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3308
    }
-
 
3309
 
-
 
3310
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
3311
    public boolean isSet(_Fields field) {
-
 
3312
      switch (field) {
-
 
3313
      case SUCCESS:
-
 
3314
        return isSetSuccess();
-
 
3315
      }
-
 
3316
      throw new IllegalStateException();
-
 
3317
    }
-
 
3318
 
-
 
3319
    public boolean isSet(int fieldID) {
-
 
3320
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3321
    }
-
 
3322
 
-
 
3323
    @Override
-
 
3324
    public boolean equals(Object that) {
-
 
3325
      if (that == null)
-
 
3326
        return false;
-
 
3327
      if (that instanceof getAllTickets_result)
-
 
3328
        return this.equals((getAllTickets_result)that);
-
 
3329
      return false;
-
 
3330
    }
-
 
3331
 
-
 
3332
    public boolean equals(getAllTickets_result that) {
-
 
3333
      if (that == null)
-
 
3334
        return false;
-
 
3335
 
-
 
3336
      boolean this_present_success = true && this.isSetSuccess();
-
 
3337
      boolean that_present_success = true && that.isSetSuccess();
-
 
3338
      if (this_present_success || that_present_success) {
-
 
3339
        if (!(this_present_success && that_present_success))
-
 
3340
          return false;
-
 
3341
        if (!this.success.equals(that.success))
-
 
3342
          return false;
-
 
3343
      }
-
 
3344
 
-
 
3345
      return true;
-
 
3346
    }
-
 
3347
 
-
 
3348
    @Override
-
 
3349
    public int hashCode() {
-
 
3350
      return 0;
-
 
3351
    }
-
 
3352
 
-
 
3353
    public int compareTo(getAllTickets_result other) {
-
 
3354
      if (!getClass().equals(other.getClass())) {
-
 
3355
        return getClass().getName().compareTo(other.getClass().getName());
-
 
3356
      }
-
 
3357
 
-
 
3358
      int lastComparison = 0;
-
 
3359
      getAllTickets_result typedOther = (getAllTickets_result)other;
-
 
3360
 
-
 
3361
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
3362
      if (lastComparison != 0) {
-
 
3363
        return lastComparison;
-
 
3364
      }
-
 
3365
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
3366
      if (lastComparison != 0) {
-
 
3367
        return lastComparison;
-
 
3368
      }
-
 
3369
      return 0;
-
 
3370
    }
-
 
3371
 
-
 
3372
    public void read(TProtocol iprot) throws TException {
-
 
3373
      TField field;
-
 
3374
      iprot.readStructBegin();
-
 
3375
      while (true)
-
 
3376
      {
-
 
3377
        field = iprot.readFieldBegin();
-
 
3378
        if (field.type == TType.STOP) { 
-
 
3379
          break;
-
 
3380
        }
-
 
3381
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3382
        if (fieldId == null) {
-
 
3383
          TProtocolUtil.skip(iprot, field.type);
-
 
3384
        } else {
-
 
3385
          switch (fieldId) {
-
 
3386
            case SUCCESS:
-
 
3387
              if (field.type == TType.LIST) {
-
 
3388
                {
-
 
3389
                  TList _list12 = iprot.readListBegin();
1784
                  TList _list12 = iprot.readListBegin();
3390
                  this.success = new ArrayList<Ticket>(_list12.size);
1785
                  this.success = new ArrayList<Ticket>(_list12.size);
3391
                  for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1786
                  for (int _i13 = 0; _i13 < _list12.size; ++_i13)
3392
                  {
1787
                  {
3393
                    Ticket _elem14;
1788
                    Ticket _elem14;
Line 3428... Line 1823...
3428
      oprot.writeStructEnd();
1823
      oprot.writeStructEnd();
3429
    }
1824
    }
3430
 
1825
 
3431
    @Override
1826
    @Override
3432
    public String toString() {
1827
    public String toString() {
3433
      StringBuilder sb = new StringBuilder("getAllTickets_result(");
1828
      StringBuilder sb = new StringBuilder("getUnassignedTickets_result(");
3434
      boolean first = true;
-
 
3435
 
-
 
3436
      sb.append("success:");
-
 
3437
      if (this.success == null) {
-
 
3438
        sb.append("null");
-
 
3439
      } else {
-
 
3440
        sb.append(this.success);
-
 
3441
      }
-
 
3442
      first = false;
-
 
3443
      sb.append(")");
-
 
3444
      return sb.toString();
-
 
3445
    }
-
 
3446
 
-
 
3447
    public void validate() throws TException {
-
 
3448
      // check for required fields
-
 
3449
    }
-
 
3450
 
-
 
3451
  }
-
 
3452
 
-
 
3453
  public static class getTicket_args implements TBase<getTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTicket_args>   {
-
 
3454
    private static final TStruct STRUCT_DESC = new TStruct("getTicket_args");
-
 
3455
 
-
 
3456
    private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)1);
-
 
3457
 
-
 
3458
    private long ticketId;
-
 
3459
 
-
 
3460
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
3461
    public enum _Fields implements TFieldIdEnum {
-
 
3462
      TICKET_ID((short)1, "ticketId");
-
 
3463
 
-
 
3464
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3465
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
3466
 
-
 
3467
      static {
-
 
3468
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
3469
          byId.put((int)field._thriftId, field);
-
 
3470
          byName.put(field.getFieldName(), field);
-
 
3471
        }
-
 
3472
      }
-
 
3473
 
-
 
3474
      /**
-
 
3475
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
3476
       */
-
 
3477
      public static _Fields findByThriftId(int fieldId) {
-
 
3478
        return byId.get(fieldId);
-
 
3479
      }
-
 
3480
 
-
 
3481
      /**
-
 
3482
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
3483
       * if it is not found.
-
 
3484
       */
-
 
3485
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
3486
        _Fields fields = findByThriftId(fieldId);
-
 
3487
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
3488
        return fields;
-
 
3489
      }
-
 
3490
 
-
 
3491
      /**
-
 
3492
       * Find the _Fields constant that matches name, or null if its not found.
-
 
3493
       */
-
 
3494
      public static _Fields findByName(String name) {
-
 
3495
        return byName.get(name);
-
 
3496
      }
-
 
3497
 
-
 
3498
      private final short _thriftId;
-
 
3499
      private final String _fieldName;
-
 
3500
 
-
 
3501
      _Fields(short thriftId, String fieldName) {
-
 
3502
        _thriftId = thriftId;
-
 
3503
        _fieldName = fieldName;
-
 
3504
      }
-
 
3505
 
-
 
3506
      public short getThriftFieldId() {
-
 
3507
        return _thriftId;
-
 
3508
      }
-
 
3509
 
-
 
3510
      public String getFieldName() {
-
 
3511
        return _fieldName;
-
 
3512
      }
-
 
3513
    }
-
 
3514
 
-
 
3515
    // isset id assignments
-
 
3516
    private static final int __TICKETID_ISSET_ID = 0;
-
 
3517
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
3518
 
-
 
3519
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
3520
      put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.DEFAULT, 
-
 
3521
          new FieldValueMetaData(TType.I64)));
-
 
3522
    }});
-
 
3523
 
-
 
3524
    static {
-
 
3525
      FieldMetaData.addStructMetaDataMap(getTicket_args.class, metaDataMap);
-
 
3526
    }
-
 
3527
 
-
 
3528
    public getTicket_args() {
-
 
3529
    }
-
 
3530
 
-
 
3531
    public getTicket_args(
-
 
3532
      long ticketId)
-
 
3533
    {
-
 
3534
      this();
-
 
3535
      this.ticketId = ticketId;
-
 
3536
      setTicketIdIsSet(true);
-
 
3537
    }
-
 
3538
 
-
 
3539
    /**
-
 
3540
     * Performs a deep copy on <i>other</i>.
-
 
3541
     */
-
 
3542
    public getTicket_args(getTicket_args other) {
-
 
3543
      __isset_bit_vector.clear();
-
 
3544
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
3545
      this.ticketId = other.ticketId;
-
 
3546
    }
-
 
3547
 
-
 
3548
    public getTicket_args deepCopy() {
-
 
3549
      return new getTicket_args(this);
-
 
3550
    }
-
 
3551
 
-
 
3552
    @Deprecated
-
 
3553
    public getTicket_args clone() {
-
 
3554
      return new getTicket_args(this);
-
 
3555
    }
-
 
3556
 
-
 
3557
    public long getTicketId() {
-
 
3558
      return this.ticketId;
-
 
3559
    }
-
 
3560
 
-
 
3561
    public getTicket_args setTicketId(long ticketId) {
-
 
3562
      this.ticketId = ticketId;
-
 
3563
      setTicketIdIsSet(true);
-
 
3564
      return this;
-
 
3565
    }
-
 
3566
 
-
 
3567
    public void unsetTicketId() {
-
 
3568
      __isset_bit_vector.clear(__TICKETID_ISSET_ID);
-
 
3569
    }
-
 
3570
 
-
 
3571
    /** Returns true if field ticketId is set (has been asigned a value) and false otherwise */
-
 
3572
    public boolean isSetTicketId() {
-
 
3573
      return __isset_bit_vector.get(__TICKETID_ISSET_ID);
-
 
3574
    }
-
 
3575
 
-
 
3576
    public void setTicketIdIsSet(boolean value) {
-
 
3577
      __isset_bit_vector.set(__TICKETID_ISSET_ID, value);
-
 
3578
    }
-
 
3579
 
-
 
3580
    public void setFieldValue(_Fields field, Object value) {
-
 
3581
      switch (field) {
-
 
3582
      case TICKET_ID:
-
 
3583
        if (value == null) {
-
 
3584
          unsetTicketId();
-
 
3585
        } else {
-
 
3586
          setTicketId((Long)value);
-
 
3587
        }
-
 
3588
        break;
-
 
3589
 
-
 
3590
      }
-
 
3591
    }
-
 
3592
 
-
 
3593
    public void setFieldValue(int fieldID, Object value) {
-
 
3594
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3595
    }
-
 
3596
 
-
 
3597
    public Object getFieldValue(_Fields field) {
-
 
3598
      switch (field) {
-
 
3599
      case TICKET_ID:
-
 
3600
        return new Long(getTicketId());
-
 
3601
 
-
 
3602
      }
-
 
3603
      throw new IllegalStateException();
-
 
3604
    }
-
 
3605
 
-
 
3606
    public Object getFieldValue(int fieldId) {
-
 
3607
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3608
    }
-
 
3609
 
-
 
3610
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
3611
    public boolean isSet(_Fields field) {
-
 
3612
      switch (field) {
-
 
3613
      case TICKET_ID:
-
 
3614
        return isSetTicketId();
-
 
3615
      }
-
 
3616
      throw new IllegalStateException();
-
 
3617
    }
-
 
3618
 
-
 
3619
    public boolean isSet(int fieldID) {
-
 
3620
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3621
    }
-
 
3622
 
-
 
3623
    @Override
-
 
3624
    public boolean equals(Object that) {
-
 
3625
      if (that == null)
-
 
3626
        return false;
-
 
3627
      if (that instanceof getTicket_args)
-
 
3628
        return this.equals((getTicket_args)that);
-
 
3629
      return false;
-
 
3630
    }
-
 
3631
 
-
 
3632
    public boolean equals(getTicket_args that) {
-
 
3633
      if (that == null)
-
 
3634
        return false;
-
 
3635
 
-
 
3636
      boolean this_present_ticketId = true;
-
 
3637
      boolean that_present_ticketId = true;
-
 
3638
      if (this_present_ticketId || that_present_ticketId) {
-
 
3639
        if (!(this_present_ticketId && that_present_ticketId))
-
 
3640
          return false;
-
 
3641
        if (this.ticketId != that.ticketId)
-
 
3642
          return false;
-
 
3643
      }
-
 
3644
 
-
 
3645
      return true;
-
 
3646
    }
-
 
3647
 
-
 
3648
    @Override
-
 
3649
    public int hashCode() {
-
 
3650
      return 0;
-
 
3651
    }
-
 
3652
 
-
 
3653
    public int compareTo(getTicket_args other) {
-
 
3654
      if (!getClass().equals(other.getClass())) {
-
 
3655
        return getClass().getName().compareTo(other.getClass().getName());
-
 
3656
      }
-
 
3657
 
-
 
3658
      int lastComparison = 0;
-
 
3659
      getTicket_args typedOther = (getTicket_args)other;
-
 
3660
 
-
 
3661
      lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());
-
 
3662
      if (lastComparison != 0) {
-
 
3663
        return lastComparison;
-
 
3664
      }
-
 
3665
      lastComparison = TBaseHelper.compareTo(ticketId, typedOther.ticketId);
-
 
3666
      if (lastComparison != 0) {
-
 
3667
        return lastComparison;
-
 
3668
      }
-
 
3669
      return 0;
-
 
3670
    }
-
 
3671
 
-
 
3672
    public void read(TProtocol iprot) throws TException {
-
 
3673
      TField field;
-
 
3674
      iprot.readStructBegin();
-
 
3675
      while (true)
-
 
3676
      {
-
 
3677
        field = iprot.readFieldBegin();
-
 
3678
        if (field.type == TType.STOP) { 
-
 
3679
          break;
-
 
3680
        }
-
 
3681
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3682
        if (fieldId == null) {
-
 
3683
          TProtocolUtil.skip(iprot, field.type);
-
 
3684
        } else {
-
 
3685
          switch (fieldId) {
-
 
3686
            case TICKET_ID:
-
 
3687
              if (field.type == TType.I64) {
-
 
3688
                this.ticketId = iprot.readI64();
-
 
3689
                setTicketIdIsSet(true);
-
 
3690
              } else { 
-
 
3691
                TProtocolUtil.skip(iprot, field.type);
-
 
3692
              }
-
 
3693
              break;
-
 
3694
          }
-
 
3695
          iprot.readFieldEnd();
-
 
3696
        }
-
 
3697
      }
-
 
3698
      iprot.readStructEnd();
-
 
3699
      validate();
-
 
3700
    }
-
 
3701
 
-
 
3702
    public void write(TProtocol oprot) throws TException {
-
 
3703
      validate();
-
 
3704
 
-
 
3705
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3706
      oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);
-
 
3707
      oprot.writeI64(this.ticketId);
-
 
3708
      oprot.writeFieldEnd();
-
 
3709
      oprot.writeFieldStop();
-
 
3710
      oprot.writeStructEnd();
-
 
3711
    }
-
 
3712
 
-
 
3713
    @Override
-
 
3714
    public String toString() {
-
 
3715
      StringBuilder sb = new StringBuilder("getTicket_args(");
-
 
3716
      boolean first = true;
-
 
3717
 
-
 
3718
      sb.append("ticketId:");
-
 
3719
      sb.append(this.ticketId);
-
 
3720
      first = false;
-
 
3721
      sb.append(")");
-
 
3722
      return sb.toString();
-
 
3723
    }
-
 
3724
 
-
 
3725
    public void validate() throws TException {
-
 
3726
      // check for required fields
-
 
3727
    }
-
 
3728
 
-
 
3729
  }
-
 
3730
 
-
 
3731
  public static class getTicket_result implements TBase<getTicket_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTicket_result>   {
-
 
3732
    private static final TStruct STRUCT_DESC = new TStruct("getTicket_result");
-
 
3733
 
-
 
3734
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
3735
 
-
 
3736
    private Ticket success;
-
 
3737
 
-
 
3738
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
3739
    public enum _Fields implements TFieldIdEnum {
-
 
3740
      SUCCESS((short)0, "success");
-
 
3741
 
-
 
3742
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3743
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
3744
 
-
 
3745
      static {
-
 
3746
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
3747
          byId.put((int)field._thriftId, field);
-
 
3748
          byName.put(field.getFieldName(), field);
-
 
3749
        }
-
 
3750
      }
-
 
3751
 
-
 
3752
      /**
-
 
3753
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
3754
       */
-
 
3755
      public static _Fields findByThriftId(int fieldId) {
-
 
3756
        return byId.get(fieldId);
-
 
3757
      }
-
 
3758
 
-
 
3759
      /**
-
 
3760
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
3761
       * if it is not found.
-
 
3762
       */
-
 
3763
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
3764
        _Fields fields = findByThriftId(fieldId);
-
 
3765
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
3766
        return fields;
-
 
3767
      }
-
 
3768
 
-
 
3769
      /**
-
 
3770
       * Find the _Fields constant that matches name, or null if its not found.
-
 
3771
       */
-
 
3772
      public static _Fields findByName(String name) {
-
 
3773
        return byName.get(name);
-
 
3774
      }
-
 
3775
 
-
 
3776
      private final short _thriftId;
-
 
3777
      private final String _fieldName;
-
 
3778
 
-
 
3779
      _Fields(short thriftId, String fieldName) {
-
 
3780
        _thriftId = thriftId;
-
 
3781
        _fieldName = fieldName;
-
 
3782
      }
-
 
3783
 
-
 
3784
      public short getThriftFieldId() {
-
 
3785
        return _thriftId;
-
 
3786
      }
-
 
3787
 
-
 
3788
      public String getFieldName() {
-
 
3789
        return _fieldName;
-
 
3790
      }
-
 
3791
    }
-
 
3792
 
-
 
3793
    // isset id assignments
-
 
3794
 
-
 
3795
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
3796
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
3797
          new StructMetaData(TType.STRUCT, Ticket.class)));
-
 
3798
    }});
-
 
3799
 
-
 
3800
    static {
-
 
3801
      FieldMetaData.addStructMetaDataMap(getTicket_result.class, metaDataMap);
-
 
3802
    }
-
 
3803
 
-
 
3804
    public getTicket_result() {
-
 
3805
    }
-
 
3806
 
-
 
3807
    public getTicket_result(
-
 
3808
      Ticket success)
-
 
3809
    {
-
 
3810
      this();
-
 
3811
      this.success = success;
-
 
3812
    }
-
 
3813
 
-
 
3814
    /**
-
 
3815
     * Performs a deep copy on <i>other</i>.
-
 
3816
     */
-
 
3817
    public getTicket_result(getTicket_result other) {
-
 
3818
      if (other.isSetSuccess()) {
-
 
3819
        this.success = new Ticket(other.success);
-
 
3820
      }
-
 
3821
    }
-
 
3822
 
-
 
3823
    public getTicket_result deepCopy() {
-
 
3824
      return new getTicket_result(this);
-
 
3825
    }
-
 
3826
 
-
 
3827
    @Deprecated
-
 
3828
    public getTicket_result clone() {
-
 
3829
      return new getTicket_result(this);
-
 
3830
    }
-
 
3831
 
-
 
3832
    public Ticket getSuccess() {
-
 
3833
      return this.success;
-
 
3834
    }
-
 
3835
 
-
 
3836
    public getTicket_result setSuccess(Ticket success) {
-
 
3837
      this.success = success;
-
 
3838
      return this;
-
 
3839
    }
-
 
3840
 
-
 
3841
    public void unsetSuccess() {
-
 
3842
      this.success = null;
-
 
3843
    }
-
 
3844
 
-
 
3845
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
3846
    public boolean isSetSuccess() {
-
 
3847
      return this.success != null;
-
 
3848
    }
-
 
3849
 
-
 
3850
    public void setSuccessIsSet(boolean value) {
-
 
3851
      if (!value) {
-
 
3852
        this.success = null;
-
 
3853
      }
-
 
3854
    }
-
 
3855
 
-
 
3856
    public void setFieldValue(_Fields field, Object value) {
-
 
3857
      switch (field) {
-
 
3858
      case SUCCESS:
-
 
3859
        if (value == null) {
-
 
3860
          unsetSuccess();
-
 
3861
        } else {
-
 
3862
          setSuccess((Ticket)value);
-
 
3863
        }
-
 
3864
        break;
-
 
3865
 
-
 
3866
      }
-
 
3867
    }
-
 
3868
 
-
 
3869
    public void setFieldValue(int fieldID, Object value) {
-
 
3870
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3871
    }
-
 
3872
 
-
 
3873
    public Object getFieldValue(_Fields field) {
-
 
3874
      switch (field) {
-
 
3875
      case SUCCESS:
-
 
3876
        return getSuccess();
-
 
3877
 
-
 
3878
      }
-
 
3879
      throw new IllegalStateException();
-
 
3880
    }
-
 
3881
 
-
 
3882
    public Object getFieldValue(int fieldId) {
-
 
3883
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3884
    }
-
 
3885
 
-
 
3886
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
3887
    public boolean isSet(_Fields field) {
-
 
3888
      switch (field) {
-
 
3889
      case SUCCESS:
-
 
3890
        return isSetSuccess();
-
 
3891
      }
-
 
3892
      throw new IllegalStateException();
-
 
3893
    }
-
 
3894
 
-
 
3895
    public boolean isSet(int fieldID) {
-
 
3896
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3897
    }
-
 
3898
 
-
 
3899
    @Override
-
 
3900
    public boolean equals(Object that) {
-
 
3901
      if (that == null)
-
 
3902
        return false;
-
 
3903
      if (that instanceof getTicket_result)
-
 
3904
        return this.equals((getTicket_result)that);
-
 
3905
      return false;
-
 
3906
    }
-
 
3907
 
-
 
3908
    public boolean equals(getTicket_result that) {
-
 
3909
      if (that == null)
-
 
3910
        return false;
-
 
3911
 
-
 
3912
      boolean this_present_success = true && this.isSetSuccess();
-
 
3913
      boolean that_present_success = true && that.isSetSuccess();
-
 
3914
      if (this_present_success || that_present_success) {
-
 
3915
        if (!(this_present_success && that_present_success))
-
 
3916
          return false;
-
 
3917
        if (!this.success.equals(that.success))
-
 
3918
          return false;
-
 
3919
      }
-
 
3920
 
-
 
3921
      return true;
-
 
3922
    }
-
 
3923
 
-
 
3924
    @Override
-
 
3925
    public int hashCode() {
-
 
3926
      return 0;
-
 
3927
    }
-
 
3928
 
-
 
3929
    public int compareTo(getTicket_result other) {
-
 
3930
      if (!getClass().equals(other.getClass())) {
-
 
3931
        return getClass().getName().compareTo(other.getClass().getName());
-
 
3932
      }
-
 
3933
 
-
 
3934
      int lastComparison = 0;
-
 
3935
      getTicket_result typedOther = (getTicket_result)other;
-
 
3936
 
-
 
3937
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
3938
      if (lastComparison != 0) {
-
 
3939
        return lastComparison;
-
 
3940
      }
-
 
3941
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
3942
      if (lastComparison != 0) {
-
 
3943
        return lastComparison;
-
 
3944
      }
-
 
3945
      return 0;
-
 
3946
    }
-
 
3947
 
-
 
3948
    public void read(TProtocol iprot) throws TException {
-
 
3949
      TField field;
-
 
3950
      iprot.readStructBegin();
-
 
3951
      while (true)
-
 
3952
      {
-
 
3953
        field = iprot.readFieldBegin();
-
 
3954
        if (field.type == TType.STOP) { 
-
 
3955
          break;
-
 
3956
        }
-
 
3957
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3958
        if (fieldId == null) {
-
 
3959
          TProtocolUtil.skip(iprot, field.type);
-
 
3960
        } else {
-
 
3961
          switch (fieldId) {
-
 
3962
            case SUCCESS:
-
 
3963
              if (field.type == TType.STRUCT) {
-
 
3964
                this.success = new Ticket();
-
 
3965
                this.success.read(iprot);
-
 
3966
              } else { 
-
 
3967
                TProtocolUtil.skip(iprot, field.type);
-
 
3968
              }
-
 
3969
              break;
-
 
3970
          }
-
 
3971
          iprot.readFieldEnd();
-
 
3972
        }
-
 
3973
      }
-
 
3974
      iprot.readStructEnd();
-
 
3975
      validate();
-
 
3976
    }
-
 
3977
 
-
 
3978
    public void write(TProtocol oprot) throws TException {
-
 
3979
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3980
 
-
 
3981
      if (this.isSetSuccess()) {
-
 
3982
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
3983
        this.success.write(oprot);
-
 
3984
        oprot.writeFieldEnd();
-
 
3985
      }
-
 
3986
      oprot.writeFieldStop();
-
 
3987
      oprot.writeStructEnd();
-
 
3988
    }
-
 
3989
 
-
 
3990
    @Override
-
 
3991
    public String toString() {
-
 
3992
      StringBuilder sb = new StringBuilder("getTicket_result(");
-
 
3993
      boolean first = true;
1829
      boolean first = true;
3994
 
1830
 
3995
      sb.append("success:");
1831
      sb.append("success:");
3996
      if (this.success == null) {
1832
      if (this.success == null) {
3997
        sb.append("null");
1833
        sb.append("null");
Line 5213... Line 3049...
5213
  }
3049
  }
5214
 
3050
 
5215
  public static class getActivities_args implements TBase<getActivities_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivities_args>   {
3051
  public static class getActivities_args implements TBase<getActivities_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivities_args>   {
5216
    private static final TStruct STRUCT_DESC = new TStruct("getActivities_args");
3052
    private static final TStruct STRUCT_DESC = new TStruct("getActivities_args");
5217
 
3053
 
5218
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);
3054
    private static final TField SEARCH_FILTER_FIELD_DESC = new TField("searchFilter", TType.STRUCT, (short)1);
5219
 
3055
 
5220
    private long customerId;
3056
    private SearchFilter searchFilter;
5221
 
3057
 
5222
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3058
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5223
    public enum _Fields implements TFieldIdEnum {
3059
    public enum _Fields implements TFieldIdEnum {
5224
      CUSTOMER_ID((short)1, "customerId");
3060
      SEARCH_FILTER((short)1, "searchFilter");
5225
 
3061
 
5226
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
3062
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
5227
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3063
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5228
 
3064
 
5229
      static {
3065
      static {
Line 5273... Line 3109...
5273
        return _fieldName;
3109
        return _fieldName;
5274
      }
3110
      }
5275
    }
3111
    }
5276
 
3112
 
5277
    // isset id assignments
3113
    // isset id assignments
5278
    private static final int __CUSTOMERID_ISSET_ID = 0;
-
 
5279
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
5280
 
3114
 
5281
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3115
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5282
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
3116
      put(_Fields.SEARCH_FILTER, new FieldMetaData("searchFilter", TFieldRequirementType.DEFAULT, 
5283
          new FieldValueMetaData(TType.I64)));
3117
          new StructMetaData(TType.STRUCT, SearchFilter.class)));
5284
    }});
3118
    }});
5285
 
3119
 
5286
    static {
3120
    static {
5287
      FieldMetaData.addStructMetaDataMap(getActivities_args.class, metaDataMap);
3121
      FieldMetaData.addStructMetaDataMap(getActivities_args.class, metaDataMap);
5288
    }
3122
    }
5289
 
3123
 
5290
    public getActivities_args() {
3124
    public getActivities_args() {
5291
    }
3125
    }
5292
 
3126
 
5293
    public getActivities_args(
3127
    public getActivities_args(
5294
      long customerId)
3128
      SearchFilter searchFilter)
5295
    {
3129
    {
5296
      this();
3130
      this();
5297
      this.customerId = customerId;
3131
      this.searchFilter = searchFilter;
5298
      setCustomerIdIsSet(true);
-
 
5299
    }
3132
    }
5300
 
3133
 
5301
    /**
3134
    /**
5302
     * Performs a deep copy on <i>other</i>.
3135
     * Performs a deep copy on <i>other</i>.
5303
     */
3136
     */
5304
    public getActivities_args(getActivities_args other) {
3137
    public getActivities_args(getActivities_args other) {
5305
      __isset_bit_vector.clear();
3138
      if (other.isSetSearchFilter()) {
5306
      __isset_bit_vector.or(other.__isset_bit_vector);
3139
        this.searchFilter = new SearchFilter(other.searchFilter);
5307
      this.customerId = other.customerId;
3140
      }
5308
    }
3141
    }
5309
 
3142
 
5310
    public getActivities_args deepCopy() {
3143
    public getActivities_args deepCopy() {
5311
      return new getActivities_args(this);
3144
      return new getActivities_args(this);
5312
    }
3145
    }
Line 5314... Line 3147...
5314
    @Deprecated
3147
    @Deprecated
5315
    public getActivities_args clone() {
3148
    public getActivities_args clone() {
5316
      return new getActivities_args(this);
3149
      return new getActivities_args(this);
5317
    }
3150
    }
5318
 
3151
 
5319
    public long getCustomerId() {
3152
    public SearchFilter getSearchFilter() {
5320
      return this.customerId;
3153
      return this.searchFilter;
5321
    }
3154
    }
5322
 
3155
 
5323
    public getActivities_args setCustomerId(long customerId) {
3156
    public getActivities_args setSearchFilter(SearchFilter searchFilter) {
5324
      this.customerId = customerId;
3157
      this.searchFilter = searchFilter;
5325
      setCustomerIdIsSet(true);
-
 
5326
      return this;
3158
      return this;
5327
    }
3159
    }
5328
 
3160
 
5329
    public void unsetCustomerId() {
3161
    public void unsetSearchFilter() {
5330
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
3162
      this.searchFilter = null;
5331
    }
3163
    }
5332
 
3164
 
5333
    /** Returns true if field customerId is set (has been asigned a value) and false otherwise */
3165
    /** Returns true if field searchFilter is set (has been asigned a value) and false otherwise */
5334
    public boolean isSetCustomerId() {
3166
    public boolean isSetSearchFilter() {
5335
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
3167
      return this.searchFilter != null;
5336
    }
3168
    }
5337
 
3169
 
5338
    public void setCustomerIdIsSet(boolean value) {
3170
    public void setSearchFilterIsSet(boolean value) {
-
 
3171
      if (!value) {
5339
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
3172
        this.searchFilter = null;
-
 
3173
      }
5340
    }
3174
    }
5341
 
3175
 
5342
    public void setFieldValue(_Fields field, Object value) {
3176
    public void setFieldValue(_Fields field, Object value) {
5343
      switch (field) {
3177
      switch (field) {
5344
      case CUSTOMER_ID:
3178
      case SEARCH_FILTER:
5345
        if (value == null) {
3179
        if (value == null) {
5346
          unsetCustomerId();
3180
          unsetSearchFilter();
5347
        } else {
3181
        } else {
5348
          setCustomerId((Long)value);
3182
          setSearchFilter((SearchFilter)value);
5349
        }
3183
        }
5350
        break;
3184
        break;
5351
 
3185
 
5352
      }
3186
      }
5353
    }
3187
    }
Line 5356... Line 3190...
5356
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
3190
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
5357
    }
3191
    }
5358
 
3192
 
5359
    public Object getFieldValue(_Fields field) {
3193
    public Object getFieldValue(_Fields field) {
5360
      switch (field) {
3194
      switch (field) {
5361
      case CUSTOMER_ID:
3195
      case SEARCH_FILTER:
5362
        return new Long(getCustomerId());
3196
        return getSearchFilter();
5363
 
3197
 
5364
      }
3198
      }
5365
      throw new IllegalStateException();
3199
      throw new IllegalStateException();
5366
    }
3200
    }
5367
 
3201
 
Line 5370... Line 3204...
5370
    }
3204
    }
5371
 
3205
 
5372
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3206
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5373
    public boolean isSet(_Fields field) {
3207
    public boolean isSet(_Fields field) {
5374
      switch (field) {
3208
      switch (field) {
5375
      case CUSTOMER_ID:
3209
      case SEARCH_FILTER:
5376
        return isSetCustomerId();
3210
        return isSetSearchFilter();
5377
      }
3211
      }
5378
      throw new IllegalStateException();
3212
      throw new IllegalStateException();
5379
    }
3213
    }
5380
 
3214
 
5381
    public boolean isSet(int fieldID) {
3215
    public boolean isSet(int fieldID) {
Line 5393... Line 3227...
5393
 
3227
 
5394
    public boolean equals(getActivities_args that) {
3228
    public boolean equals(getActivities_args that) {
5395
      if (that == null)
3229
      if (that == null)
5396
        return false;
3230
        return false;
5397
 
3231
 
5398
      boolean this_present_customerId = true;
3232
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
5399
      boolean that_present_customerId = true;
3233
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
5400
      if (this_present_customerId || that_present_customerId) {
3234
      if (this_present_searchFilter || that_present_searchFilter) {
5401
        if (!(this_present_customerId && that_present_customerId))
3235
        if (!(this_present_searchFilter && that_present_searchFilter))
5402
          return false;
3236
          return false;
5403
        if (this.customerId != that.customerId)
3237
        if (!this.searchFilter.equals(that.searchFilter))
5404
          return false;
3238
          return false;
5405
      }
3239
      }
5406
 
3240
 
5407
      return true;
3241
      return true;
5408
    }
3242
    }
Line 5418... Line 3252...
5418
      }
3252
      }
5419
 
3253
 
5420
      int lastComparison = 0;
3254
      int lastComparison = 0;
5421
      getActivities_args typedOther = (getActivities_args)other;
3255
      getActivities_args typedOther = (getActivities_args)other;
5422
 
3256
 
5423
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
3257
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(isSetSearchFilter());
5424
      if (lastComparison != 0) {
3258
      if (lastComparison != 0) {
5425
        return lastComparison;
3259
        return lastComparison;
5426
      }
3260
      }
5427
      lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
3261
      lastComparison = TBaseHelper.compareTo(searchFilter, typedOther.searchFilter);
5428
      if (lastComparison != 0) {
3262
      if (lastComparison != 0) {
5429
        return lastComparison;
3263
        return lastComparison;
5430
      }
3264
      }
5431
      return 0;
3265
      return 0;
5432
    }
3266
    }
Line 5443... Line 3277...
5443
        _Fields fieldId = _Fields.findByThriftId(field.id);
3277
        _Fields fieldId = _Fields.findByThriftId(field.id);
5444
        if (fieldId == null) {
3278
        if (fieldId == null) {
5445
          TProtocolUtil.skip(iprot, field.type);
3279
          TProtocolUtil.skip(iprot, field.type);
5446
        } else {
3280
        } else {
5447
          switch (fieldId) {
3281
          switch (fieldId) {
5448
            case CUSTOMER_ID:
3282
            case SEARCH_FILTER:
5449
              if (field.type == TType.I64) {
3283
              if (field.type == TType.STRUCT) {
5450
                this.customerId = iprot.readI64();
3284
                this.searchFilter = new SearchFilter();
5451
                setCustomerIdIsSet(true);
3285
                this.searchFilter.read(iprot);
5452
              } else { 
3286
              } else { 
5453
                TProtocolUtil.skip(iprot, field.type);
3287
                TProtocolUtil.skip(iprot, field.type);
5454
              }
3288
              }
5455
              break;
3289
              break;
5456
          }
3290
          }
Line 5463... Line 3297...
5463
 
3297
 
5464
    public void write(TProtocol oprot) throws TException {
3298
    public void write(TProtocol oprot) throws TException {
5465
      validate();
3299
      validate();
5466
 
3300
 
5467
      oprot.writeStructBegin(STRUCT_DESC);
3301
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3302
      if (this.searchFilter != null) {
5468
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
3303
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
5469
      oprot.writeI64(this.customerId);
3304
        this.searchFilter.write(oprot);
5470
      oprot.writeFieldEnd();
3305
        oprot.writeFieldEnd();
-
 
3306
      }
5471
      oprot.writeFieldStop();
3307
      oprot.writeFieldStop();
5472
      oprot.writeStructEnd();
3308
      oprot.writeStructEnd();
5473
    }
3309
    }
5474
 
3310
 
5475
    @Override
3311
    @Override
5476
    public String toString() {
3312
    public String toString() {
5477
      StringBuilder sb = new StringBuilder("getActivities_args(");
3313
      StringBuilder sb = new StringBuilder("getActivities_args(");
5478
      boolean first = true;
3314
      boolean first = true;
5479
 
3315
 
5480
      sb.append("customerId:");
3316
      sb.append("searchFilter:");
-
 
3317
      if (this.searchFilter == null) {
-
 
3318
        sb.append("null");
-
 
3319
      } else {
5481
      sb.append(this.customerId);
3320
        sb.append(this.searchFilter);
-
 
3321
      }
5482
      first = false;
3322
      first = false;
5483
      sb.append(")");
3323
      sb.append(")");
5484
      return sb.toString();
3324
      return sb.toString();
5485
    }
3325
    }
5486
 
3326
 
Line 5806... Line 3646...
5806
      // check for required fields
3646
      // check for required fields
5807
    }
3647
    }
5808
 
3648
 
5809
  }
3649
  }
5810
 
3650
 
5811
  public static class getActivitiesByCreator_args implements TBase<getActivitiesByCreator_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivitiesByCreator_args>   {
-
 
5812
    private static final TStruct STRUCT_DESC = new TStruct("getActivitiesByCreator_args");
-
 
5813
 
-
 
5814
    private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)1);
-
 
5815
 
-
 
5816
    private long creatorId;
-
 
5817
 
-
 
5818
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
5819
    public enum _Fields implements TFieldIdEnum {
-
 
5820
      CREATOR_ID((short)1, "creatorId");
-
 
5821
 
-
 
5822
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5823
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
5824
 
-
 
5825
      static {
-
 
5826
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
5827
          byId.put((int)field._thriftId, field);
-
 
5828
          byName.put(field.getFieldName(), field);
-
 
5829
        }
-
 
5830
      }
-
 
5831
 
-
 
5832
      /**
-
 
5833
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
5834
       */
-
 
5835
      public static _Fields findByThriftId(int fieldId) {
-
 
5836
        return byId.get(fieldId);
-
 
5837
      }
-
 
5838
 
-
 
5839
      /**
-
 
5840
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
5841
       * if it is not found.
-
 
5842
       */
-
 
5843
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
5844
        _Fields fields = findByThriftId(fieldId);
-
 
5845
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
5846
        return fields;
-
 
5847
      }
-
 
5848
 
-
 
5849
      /**
-
 
5850
       * Find the _Fields constant that matches name, or null if its not found.
-
 
5851
       */
-
 
5852
      public static _Fields findByName(String name) {
-
 
5853
        return byName.get(name);
-
 
5854
      }
-
 
5855
 
-
 
5856
      private final short _thriftId;
-
 
5857
      private final String _fieldName;
-
 
5858
 
-
 
5859
      _Fields(short thriftId, String fieldName) {
-
 
5860
        _thriftId = thriftId;
-
 
5861
        _fieldName = fieldName;
-
 
5862
      }
-
 
5863
 
-
 
5864
      public short getThriftFieldId() {
-
 
5865
        return _thriftId;
-
 
5866
      }
-
 
5867
 
-
 
5868
      public String getFieldName() {
-
 
5869
        return _fieldName;
-
 
5870
      }
-
 
5871
    }
-
 
5872
 
-
 
5873
    // isset id assignments
-
 
5874
    private static final int __CREATORID_ISSET_ID = 0;
-
 
5875
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
5876
 
-
 
5877
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
5878
      put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT, 
-
 
5879
          new FieldValueMetaData(TType.I64)));
-
 
5880
    }});
-
 
5881
 
-
 
5882
    static {
-
 
5883
      FieldMetaData.addStructMetaDataMap(getActivitiesByCreator_args.class, metaDataMap);
-
 
5884
    }
-
 
5885
 
-
 
5886
    public getActivitiesByCreator_args() {
-
 
5887
    }
-
 
5888
 
-
 
5889
    public getActivitiesByCreator_args(
-
 
5890
      long creatorId)
-
 
5891
    {
-
 
5892
      this();
-
 
5893
      this.creatorId = creatorId;
-
 
5894
      setCreatorIdIsSet(true);
-
 
5895
    }
-
 
5896
 
-
 
5897
    /**
-
 
5898
     * Performs a deep copy on <i>other</i>.
-
 
5899
     */
-
 
5900
    public getActivitiesByCreator_args(getActivitiesByCreator_args other) {
-
 
5901
      __isset_bit_vector.clear();
-
 
5902
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
5903
      this.creatorId = other.creatorId;
-
 
5904
    }
-
 
5905
 
-
 
5906
    public getActivitiesByCreator_args deepCopy() {
-
 
5907
      return new getActivitiesByCreator_args(this);
-
 
5908
    }
-
 
5909
 
-
 
5910
    @Deprecated
-
 
5911
    public getActivitiesByCreator_args clone() {
-
 
5912
      return new getActivitiesByCreator_args(this);
-
 
5913
    }
-
 
5914
 
-
 
5915
    public long getCreatorId() {
-
 
5916
      return this.creatorId;
-
 
5917
    }
-
 
5918
 
-
 
5919
    public getActivitiesByCreator_args setCreatorId(long creatorId) {
-
 
5920
      this.creatorId = creatorId;
-
 
5921
      setCreatorIdIsSet(true);
-
 
5922
      return this;
-
 
5923
    }
-
 
5924
 
-
 
5925
    public void unsetCreatorId() {
-
 
5926
      __isset_bit_vector.clear(__CREATORID_ISSET_ID);
-
 
5927
    }
-
 
5928
 
-
 
5929
    /** Returns true if field creatorId is set (has been asigned a value) and false otherwise */
-
 
5930
    public boolean isSetCreatorId() {
-
 
5931
      return __isset_bit_vector.get(__CREATORID_ISSET_ID);
-
 
5932
    }
-
 
5933
 
-
 
5934
    public void setCreatorIdIsSet(boolean value) {
-
 
5935
      __isset_bit_vector.set(__CREATORID_ISSET_ID, value);
-
 
5936
    }
-
 
5937
 
-
 
5938
    public void setFieldValue(_Fields field, Object value) {
-
 
5939
      switch (field) {
-
 
5940
      case CREATOR_ID:
-
 
5941
        if (value == null) {
-
 
5942
          unsetCreatorId();
-
 
5943
        } else {
-
 
5944
          setCreatorId((Long)value);
-
 
5945
        }
-
 
5946
        break;
-
 
5947
 
-
 
5948
      }
-
 
5949
    }
-
 
5950
 
-
 
5951
    public void setFieldValue(int fieldID, Object value) {
-
 
5952
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5953
    }
-
 
5954
 
-
 
5955
    public Object getFieldValue(_Fields field) {
-
 
5956
      switch (field) {
-
 
5957
      case CREATOR_ID:
-
 
5958
        return new Long(getCreatorId());
-
 
5959
 
-
 
5960
      }
-
 
5961
      throw new IllegalStateException();
-
 
5962
    }
-
 
5963
 
-
 
5964
    public Object getFieldValue(int fieldId) {
-
 
5965
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5966
    }
-
 
5967
 
-
 
5968
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
5969
    public boolean isSet(_Fields field) {
-
 
5970
      switch (field) {
-
 
5971
      case CREATOR_ID:
-
 
5972
        return isSetCreatorId();
-
 
5973
      }
-
 
5974
      throw new IllegalStateException();
-
 
5975
    }
-
 
5976
 
-
 
5977
    public boolean isSet(int fieldID) {
-
 
5978
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5979
    }
-
 
5980
 
-
 
5981
    @Override
-
 
5982
    public boolean equals(Object that) {
-
 
5983
      if (that == null)
-
 
5984
        return false;
-
 
5985
      if (that instanceof getActivitiesByCreator_args)
-
 
5986
        return this.equals((getActivitiesByCreator_args)that);
-
 
5987
      return false;
-
 
5988
    }
-
 
5989
 
-
 
5990
    public boolean equals(getActivitiesByCreator_args that) {
-
 
5991
      if (that == null)
-
 
5992
        return false;
-
 
5993
 
-
 
5994
      boolean this_present_creatorId = true;
-
 
5995
      boolean that_present_creatorId = true;
-
 
5996
      if (this_present_creatorId || that_present_creatorId) {
-
 
5997
        if (!(this_present_creatorId && that_present_creatorId))
-
 
5998
          return false;
-
 
5999
        if (this.creatorId != that.creatorId)
-
 
6000
          return false;
-
 
6001
      }
-
 
6002
 
-
 
6003
      return true;
-
 
6004
    }
-
 
6005
 
-
 
6006
    @Override
-
 
6007
    public int hashCode() {
-
 
6008
      return 0;
-
 
6009
    }
-
 
6010
 
-
 
6011
    public int compareTo(getActivitiesByCreator_args other) {
-
 
6012
      if (!getClass().equals(other.getClass())) {
-
 
6013
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6014
      }
-
 
6015
 
-
 
6016
      int lastComparison = 0;
-
 
6017
      getActivitiesByCreator_args typedOther = (getActivitiesByCreator_args)other;
-
 
6018
 
-
 
6019
      lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());
-
 
6020
      if (lastComparison != 0) {
-
 
6021
        return lastComparison;
-
 
6022
      }
-
 
6023
      lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
-
 
6024
      if (lastComparison != 0) {
-
 
6025
        return lastComparison;
-
 
6026
      }
-
 
6027
      return 0;
-
 
6028
    }
-
 
6029
 
-
 
6030
    public void read(TProtocol iprot) throws TException {
-
 
6031
      TField field;
-
 
6032
      iprot.readStructBegin();
-
 
6033
      while (true)
-
 
6034
      {
-
 
6035
        field = iprot.readFieldBegin();
-
 
6036
        if (field.type == TType.STOP) { 
-
 
6037
          break;
-
 
6038
        }
-
 
6039
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6040
        if (fieldId == null) {
-
 
6041
          TProtocolUtil.skip(iprot, field.type);
-
 
6042
        } else {
-
 
6043
          switch (fieldId) {
-
 
6044
            case CREATOR_ID:
-
 
6045
              if (field.type == TType.I64) {
-
 
6046
                this.creatorId = iprot.readI64();
-
 
6047
                setCreatorIdIsSet(true);
-
 
6048
              } else { 
-
 
6049
                TProtocolUtil.skip(iprot, field.type);
-
 
6050
              }
-
 
6051
              break;
-
 
6052
          }
-
 
6053
          iprot.readFieldEnd();
-
 
6054
        }
-
 
6055
      }
-
 
6056
      iprot.readStructEnd();
-
 
6057
      validate();
-
 
6058
    }
-
 
6059
 
-
 
6060
    public void write(TProtocol oprot) throws TException {
-
 
6061
      validate();
-
 
6062
 
-
 
6063
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6064
      oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
-
 
6065
      oprot.writeI64(this.creatorId);
-
 
6066
      oprot.writeFieldEnd();
-
 
6067
      oprot.writeFieldStop();
-
 
6068
      oprot.writeStructEnd();
-
 
6069
    }
-
 
6070
 
-
 
6071
    @Override
-
 
6072
    public String toString() {
-
 
6073
      StringBuilder sb = new StringBuilder("getActivitiesByCreator_args(");
-
 
6074
      boolean first = true;
-
 
6075
 
-
 
6076
      sb.append("creatorId:");
-
 
6077
      sb.append(this.creatorId);
-
 
6078
      first = false;
-
 
6079
      sb.append(")");
-
 
6080
      return sb.toString();
-
 
6081
    }
-
 
6082
 
-
 
6083
    public void validate() throws TException {
-
 
6084
      // check for required fields
-
 
6085
    }
-
 
6086
 
-
 
6087
  }
-
 
6088
 
-
 
6089
  public static class getActivitiesByCreator_result implements TBase<getActivitiesByCreator_result._Fields>, java.io.Serializable, Cloneable, Comparable<getActivitiesByCreator_result>   {
-
 
6090
    private static final TStruct STRUCT_DESC = new TStruct("getActivitiesByCreator_result");
-
 
6091
 
-
 
6092
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
6093
 
-
 
6094
    private List<Activity> success;
-
 
6095
 
-
 
6096
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6097
    public enum _Fields implements TFieldIdEnum {
-
 
6098
      SUCCESS((short)0, "success");
-
 
6099
 
-
 
6100
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6101
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6102
 
-
 
6103
      static {
-
 
6104
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6105
          byId.put((int)field._thriftId, field);
-
 
6106
          byName.put(field.getFieldName(), field);
-
 
6107
        }
-
 
6108
      }
-
 
6109
 
-
 
6110
      /**
-
 
6111
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6112
       */
-
 
6113
      public static _Fields findByThriftId(int fieldId) {
-
 
6114
        return byId.get(fieldId);
-
 
6115
      }
-
 
6116
 
-
 
6117
      /**
-
 
6118
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6119
       * if it is not found.
-
 
6120
       */
-
 
6121
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6122
        _Fields fields = findByThriftId(fieldId);
-
 
6123
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6124
        return fields;
-
 
6125
      }
-
 
6126
 
-
 
6127
      /**
-
 
6128
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6129
       */
-
 
6130
      public static _Fields findByName(String name) {
-
 
6131
        return byName.get(name);
-
 
6132
      }
-
 
6133
 
-
 
6134
      private final short _thriftId;
-
 
6135
      private final String _fieldName;
-
 
6136
 
-
 
6137
      _Fields(short thriftId, String fieldName) {
-
 
6138
        _thriftId = thriftId;
-
 
6139
        _fieldName = fieldName;
-
 
6140
      }
-
 
6141
 
-
 
6142
      public short getThriftFieldId() {
-
 
6143
        return _thriftId;
-
 
6144
      }
-
 
6145
 
-
 
6146
      public String getFieldName() {
-
 
6147
        return _fieldName;
-
 
6148
      }
-
 
6149
    }
-
 
6150
 
-
 
6151
    // isset id assignments
-
 
6152
 
-
 
6153
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
6154
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
6155
          new ListMetaData(TType.LIST, 
-
 
6156
              new StructMetaData(TType.STRUCT, Activity.class))));
-
 
6157
    }});
-
 
6158
 
-
 
6159
    static {
-
 
6160
      FieldMetaData.addStructMetaDataMap(getActivitiesByCreator_result.class, metaDataMap);
-
 
6161
    }
-
 
6162
 
-
 
6163
    public getActivitiesByCreator_result() {
-
 
6164
    }
-
 
6165
 
-
 
6166
    public getActivitiesByCreator_result(
-
 
6167
      List<Activity> success)
-
 
6168
    {
-
 
6169
      this();
-
 
6170
      this.success = success;
-
 
6171
    }
-
 
6172
 
-
 
6173
    /**
-
 
6174
     * Performs a deep copy on <i>other</i>.
-
 
6175
     */
-
 
6176
    public getActivitiesByCreator_result(getActivitiesByCreator_result other) {
-
 
6177
      if (other.isSetSuccess()) {
-
 
6178
        List<Activity> __this__success = new ArrayList<Activity>();
-
 
6179
        for (Activity other_element : other.success) {
-
 
6180
          __this__success.add(new Activity(other_element));
-
 
6181
        }
-
 
6182
        this.success = __this__success;
-
 
6183
      }
-
 
6184
    }
-
 
6185
 
-
 
6186
    public getActivitiesByCreator_result deepCopy() {
-
 
6187
      return new getActivitiesByCreator_result(this);
-
 
6188
    }
-
 
6189
 
-
 
6190
    @Deprecated
-
 
6191
    public getActivitiesByCreator_result clone() {
-
 
6192
      return new getActivitiesByCreator_result(this);
-
 
6193
    }
-
 
6194
 
-
 
6195
    public int getSuccessSize() {
-
 
6196
      return (this.success == null) ? 0 : this.success.size();
-
 
6197
    }
-
 
6198
 
-
 
6199
    public java.util.Iterator<Activity> getSuccessIterator() {
-
 
6200
      return (this.success == null) ? null : this.success.iterator();
-
 
6201
    }
-
 
6202
 
-
 
6203
    public void addToSuccess(Activity elem) {
-
 
6204
      if (this.success == null) {
-
 
6205
        this.success = new ArrayList<Activity>();
-
 
6206
      }
-
 
6207
      this.success.add(elem);
-
 
6208
    }
-
 
6209
 
-
 
6210
    public List<Activity> getSuccess() {
-
 
6211
      return this.success;
-
 
6212
    }
-
 
6213
 
-
 
6214
    public getActivitiesByCreator_result setSuccess(List<Activity> success) {
-
 
6215
      this.success = success;
-
 
6216
      return this;
-
 
6217
    }
-
 
6218
 
-
 
6219
    public void unsetSuccess() {
-
 
6220
      this.success = null;
-
 
6221
    }
-
 
6222
 
-
 
6223
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
6224
    public boolean isSetSuccess() {
-
 
6225
      return this.success != null;
-
 
6226
    }
-
 
6227
 
-
 
6228
    public void setSuccessIsSet(boolean value) {
-
 
6229
      if (!value) {
-
 
6230
        this.success = null;
-
 
6231
      }
-
 
6232
    }
-
 
6233
 
-
 
6234
    public void setFieldValue(_Fields field, Object value) {
-
 
6235
      switch (field) {
-
 
6236
      case SUCCESS:
-
 
6237
        if (value == null) {
-
 
6238
          unsetSuccess();
-
 
6239
        } else {
-
 
6240
          setSuccess((List<Activity>)value);
-
 
6241
        }
-
 
6242
        break;
-
 
6243
 
-
 
6244
      }
-
 
6245
    }
-
 
6246
 
-
 
6247
    public void setFieldValue(int fieldID, Object value) {
-
 
6248
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6249
    }
-
 
6250
 
-
 
6251
    public Object getFieldValue(_Fields field) {
-
 
6252
      switch (field) {
-
 
6253
      case SUCCESS:
-
 
6254
        return getSuccess();
-
 
6255
 
-
 
6256
      }
-
 
6257
      throw new IllegalStateException();
-
 
6258
    }
-
 
6259
 
-
 
6260
    public Object getFieldValue(int fieldId) {
-
 
6261
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6262
    }
-
 
6263
 
-
 
6264
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
6265
    public boolean isSet(_Fields field) {
-
 
6266
      switch (field) {
-
 
6267
      case SUCCESS:
-
 
6268
        return isSetSuccess();
-
 
6269
      }
-
 
6270
      throw new IllegalStateException();
-
 
6271
    }
-
 
6272
 
-
 
6273
    public boolean isSet(int fieldID) {
-
 
6274
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6275
    }
-
 
6276
 
-
 
6277
    @Override
-
 
6278
    public boolean equals(Object that) {
-
 
6279
      if (that == null)
-
 
6280
        return false;
-
 
6281
      if (that instanceof getActivitiesByCreator_result)
-
 
6282
        return this.equals((getActivitiesByCreator_result)that);
-
 
6283
      return false;
-
 
6284
    }
-
 
6285
 
-
 
6286
    public boolean equals(getActivitiesByCreator_result that) {
-
 
6287
      if (that == null)
-
 
6288
        return false;
-
 
6289
 
-
 
6290
      boolean this_present_success = true && this.isSetSuccess();
-
 
6291
      boolean that_present_success = true && that.isSetSuccess();
-
 
6292
      if (this_present_success || that_present_success) {
-
 
6293
        if (!(this_present_success && that_present_success))
-
 
6294
          return false;
-
 
6295
        if (!this.success.equals(that.success))
-
 
6296
          return false;
-
 
6297
      }
-
 
6298
 
-
 
6299
      return true;
-
 
6300
    }
-
 
6301
 
-
 
6302
    @Override
-
 
6303
    public int hashCode() {
-
 
6304
      return 0;
-
 
6305
    }
-
 
6306
 
-
 
6307
    public int compareTo(getActivitiesByCreator_result other) {
-
 
6308
      if (!getClass().equals(other.getClass())) {
-
 
6309
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6310
      }
-
 
6311
 
-
 
6312
      int lastComparison = 0;
-
 
6313
      getActivitiesByCreator_result typedOther = (getActivitiesByCreator_result)other;
-
 
6314
 
-
 
6315
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
6316
      if (lastComparison != 0) {
-
 
6317
        return lastComparison;
-
 
6318
      }
-
 
6319
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
6320
      if (lastComparison != 0) {
-
 
6321
        return lastComparison;
-
 
6322
      }
-
 
6323
      return 0;
-
 
6324
    }
-
 
6325
 
-
 
6326
    public void read(TProtocol iprot) throws TException {
-
 
6327
      TField field;
-
 
6328
      iprot.readStructBegin();
-
 
6329
      while (true)
-
 
6330
      {
-
 
6331
        field = iprot.readFieldBegin();
-
 
6332
        if (field.type == TType.STOP) { 
-
 
6333
          break;
-
 
6334
        }
-
 
6335
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6336
        if (fieldId == null) {
-
 
6337
          TProtocolUtil.skip(iprot, field.type);
-
 
6338
        } else {
-
 
6339
          switch (fieldId) {
-
 
6340
            case SUCCESS:
-
 
6341
              if (field.type == TType.LIST) {
-
 
6342
                {
-
 
6343
                  TList _list20 = iprot.readListBegin();
-
 
6344
                  this.success = new ArrayList<Activity>(_list20.size);
-
 
6345
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
-
 
6346
                  {
-
 
6347
                    Activity _elem22;
-
 
6348
                    _elem22 = new Activity();
-
 
6349
                    _elem22.read(iprot);
-
 
6350
                    this.success.add(_elem22);
-
 
6351
                  }
-
 
6352
                  iprot.readListEnd();
-
 
6353
                }
-
 
6354
              } else { 
-
 
6355
                TProtocolUtil.skip(iprot, field.type);
-
 
6356
              }
-
 
6357
              break;
-
 
6358
          }
-
 
6359
          iprot.readFieldEnd();
-
 
6360
        }
-
 
6361
      }
-
 
6362
      iprot.readStructEnd();
-
 
6363
      validate();
-
 
6364
    }
-
 
6365
 
-
 
6366
    public void write(TProtocol oprot) throws TException {
-
 
6367
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6368
 
-
 
6369
      if (this.isSetSuccess()) {
-
 
6370
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
6371
        {
-
 
6372
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
6373
          for (Activity _iter23 : this.success)
-
 
6374
          {
-
 
6375
            _iter23.write(oprot);
-
 
6376
          }
-
 
6377
          oprot.writeListEnd();
-
 
6378
        }
-
 
6379
        oprot.writeFieldEnd();
-
 
6380
      }
-
 
6381
      oprot.writeFieldStop();
-
 
6382
      oprot.writeStructEnd();
-
 
6383
    }
-
 
6384
 
-
 
6385
    @Override
-
 
6386
    public String toString() {
-
 
6387
      StringBuilder sb = new StringBuilder("getActivitiesByCreator_result(");
-
 
6388
      boolean first = true;
-
 
6389
 
-
 
6390
      sb.append("success:");
-
 
6391
      if (this.success == null) {
-
 
6392
        sb.append("null");
-
 
6393
      } else {
-
 
6394
        sb.append(this.success);
-
 
6395
      }
-
 
6396
      first = false;
-
 
6397
      sb.append(")");
-
 
6398
      return sb.toString();
-
 
6399
    }
-
 
6400
 
-
 
6401
    public void validate() throws TException {
-
 
6402
      // check for required fields
-
 
6403
    }
-
 
6404
 
-
 
6405
  }
-
 
6406
 
-
 
6407
  public static class getActivitiesForTicket_args implements TBase<getActivitiesForTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivitiesForTicket_args>   {
-
 
6408
    private static final TStruct STRUCT_DESC = new TStruct("getActivitiesForTicket_args");
-
 
6409
 
-
 
6410
    private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)1);
-
 
6411
 
-
 
6412
    private long ticketId;
-
 
6413
 
-
 
6414
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6415
    public enum _Fields implements TFieldIdEnum {
-
 
6416
      TICKET_ID((short)1, "ticketId");
-
 
6417
 
-
 
6418
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6419
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6420
 
-
 
6421
      static {
-
 
6422
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6423
          byId.put((int)field._thriftId, field);
-
 
6424
          byName.put(field.getFieldName(), field);
-
 
6425
        }
-
 
6426
      }
-
 
6427
 
-
 
6428
      /**
-
 
6429
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6430
       */
-
 
6431
      public static _Fields findByThriftId(int fieldId) {
-
 
6432
        return byId.get(fieldId);
-
 
6433
      }
-
 
6434
 
-
 
6435
      /**
-
 
6436
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6437
       * if it is not found.
-
 
6438
       */
-
 
6439
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6440
        _Fields fields = findByThriftId(fieldId);
-
 
6441
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6442
        return fields;
-
 
6443
      }
-
 
6444
 
-
 
6445
      /**
-
 
6446
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6447
       */
-
 
6448
      public static _Fields findByName(String name) {
-
 
6449
        return byName.get(name);
-
 
6450
      }
-
 
6451
 
-
 
6452
      private final short _thriftId;
-
 
6453
      private final String _fieldName;
-
 
6454
 
-
 
6455
      _Fields(short thriftId, String fieldName) {
-
 
6456
        _thriftId = thriftId;
-
 
6457
        _fieldName = fieldName;
-
 
6458
      }
-
 
6459
 
-
 
6460
      public short getThriftFieldId() {
-
 
6461
        return _thriftId;
-
 
6462
      }
-
 
6463
 
-
 
6464
      public String getFieldName() {
-
 
6465
        return _fieldName;
-
 
6466
      }
-
 
6467
    }
-
 
6468
 
-
 
6469
    // isset id assignments
-
 
6470
    private static final int __TICKETID_ISSET_ID = 0;
-
 
6471
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
6472
 
-
 
6473
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
6474
      put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.DEFAULT, 
-
 
6475
          new FieldValueMetaData(TType.I64)));
-
 
6476
    }});
-
 
6477
 
-
 
6478
    static {
-
 
6479
      FieldMetaData.addStructMetaDataMap(getActivitiesForTicket_args.class, metaDataMap);
-
 
6480
    }
-
 
6481
 
-
 
6482
    public getActivitiesForTicket_args() {
-
 
6483
    }
-
 
6484
 
-
 
6485
    public getActivitiesForTicket_args(
-
 
6486
      long ticketId)
-
 
6487
    {
-
 
6488
      this();
-
 
6489
      this.ticketId = ticketId;
-
 
6490
      setTicketIdIsSet(true);
-
 
6491
    }
-
 
6492
 
-
 
6493
    /**
-
 
6494
     * Performs a deep copy on <i>other</i>.
-
 
6495
     */
-
 
6496
    public getActivitiesForTicket_args(getActivitiesForTicket_args other) {
-
 
6497
      __isset_bit_vector.clear();
-
 
6498
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
6499
      this.ticketId = other.ticketId;
-
 
6500
    }
-
 
6501
 
-
 
6502
    public getActivitiesForTicket_args deepCopy() {
-
 
6503
      return new getActivitiesForTicket_args(this);
-
 
6504
    }
-
 
6505
 
-
 
6506
    @Deprecated
-
 
6507
    public getActivitiesForTicket_args clone() {
-
 
6508
      return new getActivitiesForTicket_args(this);
-
 
6509
    }
-
 
6510
 
-
 
6511
    public long getTicketId() {
-
 
6512
      return this.ticketId;
-
 
6513
    }
-
 
6514
 
-
 
6515
    public getActivitiesForTicket_args setTicketId(long ticketId) {
-
 
6516
      this.ticketId = ticketId;
-
 
6517
      setTicketIdIsSet(true);
-
 
6518
      return this;
-
 
6519
    }
-
 
6520
 
-
 
6521
    public void unsetTicketId() {
-
 
6522
      __isset_bit_vector.clear(__TICKETID_ISSET_ID);
-
 
6523
    }
-
 
6524
 
-
 
6525
    /** Returns true if field ticketId is set (has been asigned a value) and false otherwise */
-
 
6526
    public boolean isSetTicketId() {
-
 
6527
      return __isset_bit_vector.get(__TICKETID_ISSET_ID);
-
 
6528
    }
-
 
6529
 
-
 
6530
    public void setTicketIdIsSet(boolean value) {
-
 
6531
      __isset_bit_vector.set(__TICKETID_ISSET_ID, value);
-
 
6532
    }
-
 
6533
 
-
 
6534
    public void setFieldValue(_Fields field, Object value) {
-
 
6535
      switch (field) {
-
 
6536
      case TICKET_ID:
-
 
6537
        if (value == null) {
-
 
6538
          unsetTicketId();
-
 
6539
        } else {
-
 
6540
          setTicketId((Long)value);
-
 
6541
        }
-
 
6542
        break;
-
 
6543
 
-
 
6544
      }
-
 
6545
    }
-
 
6546
 
-
 
6547
    public void setFieldValue(int fieldID, Object value) {
-
 
6548
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6549
    }
-
 
6550
 
-
 
6551
    public Object getFieldValue(_Fields field) {
-
 
6552
      switch (field) {
-
 
6553
      case TICKET_ID:
-
 
6554
        return new Long(getTicketId());
-
 
6555
 
-
 
6556
      }
-
 
6557
      throw new IllegalStateException();
-
 
6558
    }
-
 
6559
 
-
 
6560
    public Object getFieldValue(int fieldId) {
-
 
6561
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6562
    }
-
 
6563
 
-
 
6564
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
6565
    public boolean isSet(_Fields field) {
-
 
6566
      switch (field) {
-
 
6567
      case TICKET_ID:
-
 
6568
        return isSetTicketId();
-
 
6569
      }
-
 
6570
      throw new IllegalStateException();
-
 
6571
    }
-
 
6572
 
-
 
6573
    public boolean isSet(int fieldID) {
-
 
6574
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6575
    }
-
 
6576
 
-
 
6577
    @Override
-
 
6578
    public boolean equals(Object that) {
-
 
6579
      if (that == null)
-
 
6580
        return false;
-
 
6581
      if (that instanceof getActivitiesForTicket_args)
-
 
6582
        return this.equals((getActivitiesForTicket_args)that);
-
 
6583
      return false;
-
 
6584
    }
-
 
6585
 
-
 
6586
    public boolean equals(getActivitiesForTicket_args that) {
-
 
6587
      if (that == null)
-
 
6588
        return false;
-
 
6589
 
-
 
6590
      boolean this_present_ticketId = true;
-
 
6591
      boolean that_present_ticketId = true;
-
 
6592
      if (this_present_ticketId || that_present_ticketId) {
-
 
6593
        if (!(this_present_ticketId && that_present_ticketId))
-
 
6594
          return false;
-
 
6595
        if (this.ticketId != that.ticketId)
-
 
6596
          return false;
-
 
6597
      }
-
 
6598
 
-
 
6599
      return true;
-
 
6600
    }
-
 
6601
 
-
 
6602
    @Override
-
 
6603
    public int hashCode() {
-
 
6604
      return 0;
-
 
6605
    }
-
 
6606
 
-
 
6607
    public int compareTo(getActivitiesForTicket_args other) {
-
 
6608
      if (!getClass().equals(other.getClass())) {
-
 
6609
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6610
      }
-
 
6611
 
-
 
6612
      int lastComparison = 0;
-
 
6613
      getActivitiesForTicket_args typedOther = (getActivitiesForTicket_args)other;
-
 
6614
 
-
 
6615
      lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());
-
 
6616
      if (lastComparison != 0) {
-
 
6617
        return lastComparison;
-
 
6618
      }
-
 
6619
      lastComparison = TBaseHelper.compareTo(ticketId, typedOther.ticketId);
-
 
6620
      if (lastComparison != 0) {
-
 
6621
        return lastComparison;
-
 
6622
      }
-
 
6623
      return 0;
-
 
6624
    }
-
 
6625
 
-
 
6626
    public void read(TProtocol iprot) throws TException {
-
 
6627
      TField field;
-
 
6628
      iprot.readStructBegin();
-
 
6629
      while (true)
-
 
6630
      {
-
 
6631
        field = iprot.readFieldBegin();
-
 
6632
        if (field.type == TType.STOP) { 
-
 
6633
          break;
-
 
6634
        }
-
 
6635
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6636
        if (fieldId == null) {
-
 
6637
          TProtocolUtil.skip(iprot, field.type);
-
 
6638
        } else {
-
 
6639
          switch (fieldId) {
-
 
6640
            case TICKET_ID:
-
 
6641
              if (field.type == TType.I64) {
-
 
6642
                this.ticketId = iprot.readI64();
-
 
6643
                setTicketIdIsSet(true);
-
 
6644
              } else { 
-
 
6645
                TProtocolUtil.skip(iprot, field.type);
-
 
6646
              }
-
 
6647
              break;
-
 
6648
          }
-
 
6649
          iprot.readFieldEnd();
-
 
6650
        }
-
 
6651
      }
-
 
6652
      iprot.readStructEnd();
-
 
6653
      validate();
-
 
6654
    }
-
 
6655
 
-
 
6656
    public void write(TProtocol oprot) throws TException {
-
 
6657
      validate();
-
 
6658
 
-
 
6659
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6660
      oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);
-
 
6661
      oprot.writeI64(this.ticketId);
-
 
6662
      oprot.writeFieldEnd();
-
 
6663
      oprot.writeFieldStop();
-
 
6664
      oprot.writeStructEnd();
-
 
6665
    }
-
 
6666
 
-
 
6667
    @Override
-
 
6668
    public String toString() {
-
 
6669
      StringBuilder sb = new StringBuilder("getActivitiesForTicket_args(");
-
 
6670
      boolean first = true;
-
 
6671
 
-
 
6672
      sb.append("ticketId:");
-
 
6673
      sb.append(this.ticketId);
-
 
6674
      first = false;
-
 
6675
      sb.append(")");
-
 
6676
      return sb.toString();
-
 
6677
    }
-
 
6678
 
-
 
6679
    public void validate() throws TException {
-
 
6680
      // check for required fields
-
 
6681
    }
-
 
6682
 
-
 
6683
  }
-
 
6684
 
-
 
6685
  public static class getActivitiesForTicket_result implements TBase<getActivitiesForTicket_result._Fields>, java.io.Serializable, Cloneable, Comparable<getActivitiesForTicket_result>   {
-
 
6686
    private static final TStruct STRUCT_DESC = new TStruct("getActivitiesForTicket_result");
-
 
6687
 
-
 
6688
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
6689
 
-
 
6690
    private List<Activity> success;
-
 
6691
 
-
 
6692
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6693
    public enum _Fields implements TFieldIdEnum {
-
 
6694
      SUCCESS((short)0, "success");
-
 
6695
 
-
 
6696
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6697
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6698
 
-
 
6699
      static {
-
 
6700
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6701
          byId.put((int)field._thriftId, field);
-
 
6702
          byName.put(field.getFieldName(), field);
-
 
6703
        }
-
 
6704
      }
-
 
6705
 
-
 
6706
      /**
-
 
6707
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6708
       */
-
 
6709
      public static _Fields findByThriftId(int fieldId) {
-
 
6710
        return byId.get(fieldId);
-
 
6711
      }
-
 
6712
 
-
 
6713
      /**
-
 
6714
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6715
       * if it is not found.
-
 
6716
       */
-
 
6717
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6718
        _Fields fields = findByThriftId(fieldId);
-
 
6719
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6720
        return fields;
-
 
6721
      }
-
 
6722
 
-
 
6723
      /**
-
 
6724
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6725
       */
-
 
6726
      public static _Fields findByName(String name) {
-
 
6727
        return byName.get(name);
-
 
6728
      }
-
 
6729
 
-
 
6730
      private final short _thriftId;
-
 
6731
      private final String _fieldName;
-
 
6732
 
-
 
6733
      _Fields(short thriftId, String fieldName) {
-
 
6734
        _thriftId = thriftId;
-
 
6735
        _fieldName = fieldName;
-
 
6736
      }
-
 
6737
 
-
 
6738
      public short getThriftFieldId() {
-
 
6739
        return _thriftId;
-
 
6740
      }
-
 
6741
 
-
 
6742
      public String getFieldName() {
-
 
6743
        return _fieldName;
-
 
6744
      }
-
 
6745
    }
-
 
6746
 
-
 
6747
    // isset id assignments
-
 
6748
 
-
 
6749
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
6750
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
6751
          new ListMetaData(TType.LIST, 
-
 
6752
              new StructMetaData(TType.STRUCT, Activity.class))));
-
 
6753
    }});
-
 
6754
 
-
 
6755
    static {
-
 
6756
      FieldMetaData.addStructMetaDataMap(getActivitiesForTicket_result.class, metaDataMap);
-
 
6757
    }
-
 
6758
 
-
 
6759
    public getActivitiesForTicket_result() {
-
 
6760
    }
-
 
6761
 
-
 
6762
    public getActivitiesForTicket_result(
-
 
6763
      List<Activity> success)
-
 
6764
    {
-
 
6765
      this();
-
 
6766
      this.success = success;
-
 
6767
    }
-
 
6768
 
-
 
6769
    /**
-
 
6770
     * Performs a deep copy on <i>other</i>.
-
 
6771
     */
-
 
6772
    public getActivitiesForTicket_result(getActivitiesForTicket_result other) {
-
 
6773
      if (other.isSetSuccess()) {
-
 
6774
        List<Activity> __this__success = new ArrayList<Activity>();
-
 
6775
        for (Activity other_element : other.success) {
-
 
6776
          __this__success.add(new Activity(other_element));
-
 
6777
        }
-
 
6778
        this.success = __this__success;
-
 
6779
      }
-
 
6780
    }
-
 
6781
 
-
 
6782
    public getActivitiesForTicket_result deepCopy() {
-
 
6783
      return new getActivitiesForTicket_result(this);
-
 
6784
    }
-
 
6785
 
-
 
6786
    @Deprecated
-
 
6787
    public getActivitiesForTicket_result clone() {
-
 
6788
      return new getActivitiesForTicket_result(this);
-
 
6789
    }
-
 
6790
 
-
 
6791
    public int getSuccessSize() {
-
 
6792
      return (this.success == null) ? 0 : this.success.size();
-
 
6793
    }
-
 
6794
 
-
 
6795
    public java.util.Iterator<Activity> getSuccessIterator() {
-
 
6796
      return (this.success == null) ? null : this.success.iterator();
-
 
6797
    }
-
 
6798
 
-
 
6799
    public void addToSuccess(Activity elem) {
-
 
6800
      if (this.success == null) {
-
 
6801
        this.success = new ArrayList<Activity>();
-
 
6802
      }
-
 
6803
      this.success.add(elem);
-
 
6804
    }
-
 
6805
 
-
 
6806
    public List<Activity> getSuccess() {
-
 
6807
      return this.success;
-
 
6808
    }
-
 
6809
 
-
 
6810
    public getActivitiesForTicket_result setSuccess(List<Activity> success) {
-
 
6811
      this.success = success;
-
 
6812
      return this;
-
 
6813
    }
-
 
6814
 
-
 
6815
    public void unsetSuccess() {
-
 
6816
      this.success = null;
-
 
6817
    }
-
 
6818
 
-
 
6819
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
6820
    public boolean isSetSuccess() {
-
 
6821
      return this.success != null;
-
 
6822
    }
-
 
6823
 
-
 
6824
    public void setSuccessIsSet(boolean value) {
-
 
6825
      if (!value) {
-
 
6826
        this.success = null;
-
 
6827
      }
-
 
6828
    }
-
 
6829
 
-
 
6830
    public void setFieldValue(_Fields field, Object value) {
-
 
6831
      switch (field) {
-
 
6832
      case SUCCESS:
-
 
6833
        if (value == null) {
-
 
6834
          unsetSuccess();
-
 
6835
        } else {
-
 
6836
          setSuccess((List<Activity>)value);
-
 
6837
        }
-
 
6838
        break;
-
 
6839
 
-
 
6840
      }
-
 
6841
    }
-
 
6842
 
-
 
6843
    public void setFieldValue(int fieldID, Object value) {
-
 
6844
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6845
    }
-
 
6846
 
-
 
6847
    public Object getFieldValue(_Fields field) {
-
 
6848
      switch (field) {
-
 
6849
      case SUCCESS:
-
 
6850
        return getSuccess();
-
 
6851
 
-
 
6852
      }
-
 
6853
      throw new IllegalStateException();
-
 
6854
    }
-
 
6855
 
-
 
6856
    public Object getFieldValue(int fieldId) {
-
 
6857
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6858
    }
-
 
6859
 
-
 
6860
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
6861
    public boolean isSet(_Fields field) {
-
 
6862
      switch (field) {
-
 
6863
      case SUCCESS:
-
 
6864
        return isSetSuccess();
-
 
6865
      }
-
 
6866
      throw new IllegalStateException();
-
 
6867
    }
-
 
6868
 
-
 
6869
    public boolean isSet(int fieldID) {
-
 
6870
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6871
    }
-
 
6872
 
-
 
6873
    @Override
-
 
6874
    public boolean equals(Object that) {
-
 
6875
      if (that == null)
-
 
6876
        return false;
-
 
6877
      if (that instanceof getActivitiesForTicket_result)
-
 
6878
        return this.equals((getActivitiesForTicket_result)that);
-
 
6879
      return false;
-
 
6880
    }
-
 
6881
 
-
 
6882
    public boolean equals(getActivitiesForTicket_result that) {
-
 
6883
      if (that == null)
-
 
6884
        return false;
-
 
6885
 
-
 
6886
      boolean this_present_success = true && this.isSetSuccess();
-
 
6887
      boolean that_present_success = true && that.isSetSuccess();
-
 
6888
      if (this_present_success || that_present_success) {
-
 
6889
        if (!(this_present_success && that_present_success))
-
 
6890
          return false;
-
 
6891
        if (!this.success.equals(that.success))
-
 
6892
          return false;
-
 
6893
      }
-
 
6894
 
-
 
6895
      return true;
-
 
6896
    }
-
 
6897
 
-
 
6898
    @Override
-
 
6899
    public int hashCode() {
-
 
6900
      return 0;
-
 
6901
    }
-
 
6902
 
-
 
6903
    public int compareTo(getActivitiesForTicket_result other) {
-
 
6904
      if (!getClass().equals(other.getClass())) {
-
 
6905
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6906
      }
-
 
6907
 
-
 
6908
      int lastComparison = 0;
-
 
6909
      getActivitiesForTicket_result typedOther = (getActivitiesForTicket_result)other;
-
 
6910
 
-
 
6911
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
6912
      if (lastComparison != 0) {
-
 
6913
        return lastComparison;
-
 
6914
      }
-
 
6915
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
6916
      if (lastComparison != 0) {
-
 
6917
        return lastComparison;
-
 
6918
      }
-
 
6919
      return 0;
-
 
6920
    }
-
 
6921
 
-
 
6922
    public void read(TProtocol iprot) throws TException {
-
 
6923
      TField field;
-
 
6924
      iprot.readStructBegin();
-
 
6925
      while (true)
-
 
6926
      {
-
 
6927
        field = iprot.readFieldBegin();
-
 
6928
        if (field.type == TType.STOP) { 
-
 
6929
          break;
-
 
6930
        }
-
 
6931
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6932
        if (fieldId == null) {
-
 
6933
          TProtocolUtil.skip(iprot, field.type);
-
 
6934
        } else {
-
 
6935
          switch (fieldId) {
-
 
6936
            case SUCCESS:
-
 
6937
              if (field.type == TType.LIST) {
-
 
6938
                {
-
 
6939
                  TList _list24 = iprot.readListBegin();
-
 
6940
                  this.success = new ArrayList<Activity>(_list24.size);
-
 
6941
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
-
 
6942
                  {
-
 
6943
                    Activity _elem26;
-
 
6944
                    _elem26 = new Activity();
-
 
6945
                    _elem26.read(iprot);
-
 
6946
                    this.success.add(_elem26);
-
 
6947
                  }
-
 
6948
                  iprot.readListEnd();
-
 
6949
                }
-
 
6950
              } else { 
-
 
6951
                TProtocolUtil.skip(iprot, field.type);
-
 
6952
              }
-
 
6953
              break;
-
 
6954
          }
-
 
6955
          iprot.readFieldEnd();
-
 
6956
        }
-
 
6957
      }
-
 
6958
      iprot.readStructEnd();
-
 
6959
      validate();
-
 
6960
    }
-
 
6961
 
-
 
6962
    public void write(TProtocol oprot) throws TException {
-
 
6963
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6964
 
-
 
6965
      if (this.isSetSuccess()) {
-
 
6966
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
6967
        {
-
 
6968
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
6969
          for (Activity _iter27 : this.success)
-
 
6970
          {
-
 
6971
            _iter27.write(oprot);
-
 
6972
          }
-
 
6973
          oprot.writeListEnd();
-
 
6974
        }
-
 
6975
        oprot.writeFieldEnd();
-
 
6976
      }
-
 
6977
      oprot.writeFieldStop();
-
 
6978
      oprot.writeStructEnd();
-
 
6979
    }
-
 
6980
 
-
 
6981
    @Override
-
 
6982
    public String toString() {
-
 
6983
      StringBuilder sb = new StringBuilder("getActivitiesForTicket_result(");
-
 
6984
      boolean first = true;
-
 
6985
 
-
 
6986
      sb.append("success:");
-
 
6987
      if (this.success == null) {
-
 
6988
        sb.append("null");
-
 
6989
      } else {
-
 
6990
        sb.append(this.success);
-
 
6991
      }
-
 
6992
      first = false;
-
 
6993
      sb.append(")");
-
 
6994
      return sb.toString();
-
 
6995
    }
-
 
6996
 
-
 
6997
    public void validate() throws TException {
-
 
6998
      // check for required fields
-
 
6999
    }
-
 
7000
 
-
 
7001
  }
-
 
7002
 
-
 
7003
  public static class getActivity_args implements TBase<getActivity_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivity_args>   {
-
 
7004
    private static final TStruct STRUCT_DESC = new TStruct("getActivity_args");
-
 
7005
 
-
 
7006
    private static final TField ACTIVITY_ID_FIELD_DESC = new TField("activityId", TType.I64, (short)1);
-
 
7007
 
-
 
7008
    private long activityId;
-
 
7009
 
-
 
7010
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7011
    public enum _Fields implements TFieldIdEnum {
-
 
7012
      ACTIVITY_ID((short)1, "activityId");
-
 
7013
 
-
 
7014
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7015
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7016
 
-
 
7017
      static {
-
 
7018
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7019
          byId.put((int)field._thriftId, field);
-
 
7020
          byName.put(field.getFieldName(), field);
-
 
7021
        }
-
 
7022
      }
-
 
7023
 
-
 
7024
      /**
-
 
7025
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7026
       */
-
 
7027
      public static _Fields findByThriftId(int fieldId) {
-
 
7028
        return byId.get(fieldId);
-
 
7029
      }
-
 
7030
 
-
 
7031
      /**
-
 
7032
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7033
       * if it is not found.
-
 
7034
       */
-
 
7035
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7036
        _Fields fields = findByThriftId(fieldId);
-
 
7037
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7038
        return fields;
-
 
7039
      }
-
 
7040
 
-
 
7041
      /**
-
 
7042
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7043
       */
-
 
7044
      public static _Fields findByName(String name) {
-
 
7045
        return byName.get(name);
-
 
7046
      }
-
 
7047
 
-
 
7048
      private final short _thriftId;
-
 
7049
      private final String _fieldName;
-
 
7050
 
-
 
7051
      _Fields(short thriftId, String fieldName) {
-
 
7052
        _thriftId = thriftId;
-
 
7053
        _fieldName = fieldName;
-
 
7054
      }
-
 
7055
 
-
 
7056
      public short getThriftFieldId() {
-
 
7057
        return _thriftId;
-
 
7058
      }
-
 
7059
 
-
 
7060
      public String getFieldName() {
-
 
7061
        return _fieldName;
-
 
7062
      }
-
 
7063
    }
-
 
7064
 
-
 
7065
    // isset id assignments
-
 
7066
    private static final int __ACTIVITYID_ISSET_ID = 0;
-
 
7067
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
7068
 
-
 
7069
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
7070
      put(_Fields.ACTIVITY_ID, new FieldMetaData("activityId", TFieldRequirementType.DEFAULT, 
-
 
7071
          new FieldValueMetaData(TType.I64)));
-
 
7072
    }});
-
 
7073
 
-
 
7074
    static {
-
 
7075
      FieldMetaData.addStructMetaDataMap(getActivity_args.class, metaDataMap);
-
 
7076
    }
-
 
7077
 
-
 
7078
    public getActivity_args() {
-
 
7079
    }
-
 
7080
 
-
 
7081
    public getActivity_args(
-
 
7082
      long activityId)
-
 
7083
    {
-
 
7084
      this();
-
 
7085
      this.activityId = activityId;
-
 
7086
      setActivityIdIsSet(true);
-
 
7087
    }
-
 
7088
 
-
 
7089
    /**
-
 
7090
     * Performs a deep copy on <i>other</i>.
-
 
7091
     */
-
 
7092
    public getActivity_args(getActivity_args other) {
-
 
7093
      __isset_bit_vector.clear();
-
 
7094
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
7095
      this.activityId = other.activityId;
-
 
7096
    }
-
 
7097
 
-
 
7098
    public getActivity_args deepCopy() {
-
 
7099
      return new getActivity_args(this);
-
 
7100
    }
-
 
7101
 
-
 
7102
    @Deprecated
-
 
7103
    public getActivity_args clone() {
-
 
7104
      return new getActivity_args(this);
-
 
7105
    }
-
 
7106
 
-
 
7107
    public long getActivityId() {
-
 
7108
      return this.activityId;
-
 
7109
    }
-
 
7110
 
-
 
7111
    public getActivity_args setActivityId(long activityId) {
-
 
7112
      this.activityId = activityId;
-
 
7113
      setActivityIdIsSet(true);
-
 
7114
      return this;
-
 
7115
    }
-
 
7116
 
-
 
7117
    public void unsetActivityId() {
-
 
7118
      __isset_bit_vector.clear(__ACTIVITYID_ISSET_ID);
-
 
7119
    }
-
 
7120
 
-
 
7121
    /** Returns true if field activityId is set (has been asigned a value) and false otherwise */
-
 
7122
    public boolean isSetActivityId() {
-
 
7123
      return __isset_bit_vector.get(__ACTIVITYID_ISSET_ID);
-
 
7124
    }
-
 
7125
 
-
 
7126
    public void setActivityIdIsSet(boolean value) {
-
 
7127
      __isset_bit_vector.set(__ACTIVITYID_ISSET_ID, value);
-
 
7128
    }
-
 
7129
 
-
 
7130
    public void setFieldValue(_Fields field, Object value) {
-
 
7131
      switch (field) {
-
 
7132
      case ACTIVITY_ID:
-
 
7133
        if (value == null) {
-
 
7134
          unsetActivityId();
-
 
7135
        } else {
-
 
7136
          setActivityId((Long)value);
-
 
7137
        }
-
 
7138
        break;
-
 
7139
 
-
 
7140
      }
-
 
7141
    }
-
 
7142
 
-
 
7143
    public void setFieldValue(int fieldID, Object value) {
-
 
7144
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7145
    }
-
 
7146
 
-
 
7147
    public Object getFieldValue(_Fields field) {
-
 
7148
      switch (field) {
-
 
7149
      case ACTIVITY_ID:
-
 
7150
        return new Long(getActivityId());
-
 
7151
 
-
 
7152
      }
-
 
7153
      throw new IllegalStateException();
-
 
7154
    }
-
 
7155
 
-
 
7156
    public Object getFieldValue(int fieldId) {
-
 
7157
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7158
    }
-
 
7159
 
-
 
7160
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
7161
    public boolean isSet(_Fields field) {
-
 
7162
      switch (field) {
-
 
7163
      case ACTIVITY_ID:
-
 
7164
        return isSetActivityId();
-
 
7165
      }
-
 
7166
      throw new IllegalStateException();
-
 
7167
    }
-
 
7168
 
-
 
7169
    public boolean isSet(int fieldID) {
-
 
7170
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7171
    }
-
 
7172
 
-
 
7173
    @Override
-
 
7174
    public boolean equals(Object that) {
-
 
7175
      if (that == null)
-
 
7176
        return false;
-
 
7177
      if (that instanceof getActivity_args)
-
 
7178
        return this.equals((getActivity_args)that);
-
 
7179
      return false;
-
 
7180
    }
-
 
7181
 
-
 
7182
    public boolean equals(getActivity_args that) {
-
 
7183
      if (that == null)
-
 
7184
        return false;
-
 
7185
 
-
 
7186
      boolean this_present_activityId = true;
-
 
7187
      boolean that_present_activityId = true;
-
 
7188
      if (this_present_activityId || that_present_activityId) {
-
 
7189
        if (!(this_present_activityId && that_present_activityId))
-
 
7190
          return false;
-
 
7191
        if (this.activityId != that.activityId)
-
 
7192
          return false;
-
 
7193
      }
-
 
7194
 
-
 
7195
      return true;
-
 
7196
    }
-
 
7197
 
-
 
7198
    @Override
-
 
7199
    public int hashCode() {
-
 
7200
      return 0;
-
 
7201
    }
-
 
7202
 
-
 
7203
    public int compareTo(getActivity_args other) {
-
 
7204
      if (!getClass().equals(other.getClass())) {
-
 
7205
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7206
      }
-
 
7207
 
-
 
7208
      int lastComparison = 0;
-
 
7209
      getActivity_args typedOther = (getActivity_args)other;
-
 
7210
 
-
 
7211
      lastComparison = Boolean.valueOf(isSetActivityId()).compareTo(isSetActivityId());
-
 
7212
      if (lastComparison != 0) {
-
 
7213
        return lastComparison;
-
 
7214
      }
-
 
7215
      lastComparison = TBaseHelper.compareTo(activityId, typedOther.activityId);
-
 
7216
      if (lastComparison != 0) {
-
 
7217
        return lastComparison;
-
 
7218
      }
-
 
7219
      return 0;
-
 
7220
    }
-
 
7221
 
-
 
7222
    public void read(TProtocol iprot) throws TException {
-
 
7223
      TField field;
-
 
7224
      iprot.readStructBegin();
-
 
7225
      while (true)
-
 
7226
      {
-
 
7227
        field = iprot.readFieldBegin();
-
 
7228
        if (field.type == TType.STOP) { 
-
 
7229
          break;
-
 
7230
        }
-
 
7231
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7232
        if (fieldId == null) {
-
 
7233
          TProtocolUtil.skip(iprot, field.type);
-
 
7234
        } else {
-
 
7235
          switch (fieldId) {
-
 
7236
            case ACTIVITY_ID:
-
 
7237
              if (field.type == TType.I64) {
-
 
7238
                this.activityId = iprot.readI64();
-
 
7239
                setActivityIdIsSet(true);
-
 
7240
              } else { 
-
 
7241
                TProtocolUtil.skip(iprot, field.type);
-
 
7242
              }
-
 
7243
              break;
-
 
7244
          }
-
 
7245
          iprot.readFieldEnd();
-
 
7246
        }
-
 
7247
      }
-
 
7248
      iprot.readStructEnd();
-
 
7249
      validate();
-
 
7250
    }
-
 
7251
 
-
 
7252
    public void write(TProtocol oprot) throws TException {
-
 
7253
      validate();
-
 
7254
 
-
 
7255
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7256
      oprot.writeFieldBegin(ACTIVITY_ID_FIELD_DESC);
-
 
7257
      oprot.writeI64(this.activityId);
-
 
7258
      oprot.writeFieldEnd();
-
 
7259
      oprot.writeFieldStop();
-
 
7260
      oprot.writeStructEnd();
-
 
7261
    }
-
 
7262
 
-
 
7263
    @Override
-
 
7264
    public String toString() {
-
 
7265
      StringBuilder sb = new StringBuilder("getActivity_args(");
-
 
7266
      boolean first = true;
-
 
7267
 
-
 
7268
      sb.append("activityId:");
-
 
7269
      sb.append(this.activityId);
-
 
7270
      first = false;
-
 
7271
      sb.append(")");
-
 
7272
      return sb.toString();
-
 
7273
    }
-
 
7274
 
-
 
7275
    public void validate() throws TException {
-
 
7276
      // check for required fields
-
 
7277
    }
-
 
7278
 
-
 
7279
  }
-
 
7280
 
-
 
7281
  public static class getActivity_result implements TBase<getActivity_result._Fields>, java.io.Serializable, Cloneable, Comparable<getActivity_result>   {
-
 
7282
    private static final TStruct STRUCT_DESC = new TStruct("getActivity_result");
-
 
7283
 
-
 
7284
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
7285
 
-
 
7286
    private Activity success;
-
 
7287
 
-
 
7288
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7289
    public enum _Fields implements TFieldIdEnum {
-
 
7290
      SUCCESS((short)0, "success");
-
 
7291
 
-
 
7292
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7293
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7294
 
-
 
7295
      static {
-
 
7296
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7297
          byId.put((int)field._thriftId, field);
-
 
7298
          byName.put(field.getFieldName(), field);
-
 
7299
        }
-
 
7300
      }
-
 
7301
 
-
 
7302
      /**
-
 
7303
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7304
       */
-
 
7305
      public static _Fields findByThriftId(int fieldId) {
-
 
7306
        return byId.get(fieldId);
-
 
7307
      }
-
 
7308
 
-
 
7309
      /**
-
 
7310
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7311
       * if it is not found.
-
 
7312
       */
-
 
7313
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7314
        _Fields fields = findByThriftId(fieldId);
-
 
7315
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7316
        return fields;
-
 
7317
      }
-
 
7318
 
-
 
7319
      /**
-
 
7320
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7321
       */
-
 
7322
      public static _Fields findByName(String name) {
-
 
7323
        return byName.get(name);
-
 
7324
      }
-
 
7325
 
-
 
7326
      private final short _thriftId;
-
 
7327
      private final String _fieldName;
-
 
7328
 
-
 
7329
      _Fields(short thriftId, String fieldName) {
-
 
7330
        _thriftId = thriftId;
-
 
7331
        _fieldName = fieldName;
-
 
7332
      }
-
 
7333
 
-
 
7334
      public short getThriftFieldId() {
-
 
7335
        return _thriftId;
-
 
7336
      }
-
 
7337
 
-
 
7338
      public String getFieldName() {
-
 
7339
        return _fieldName;
-
 
7340
      }
-
 
7341
    }
-
 
7342
 
-
 
7343
    // isset id assignments
-
 
7344
 
-
 
7345
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
7346
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
7347
          new StructMetaData(TType.STRUCT, Activity.class)));
-
 
7348
    }});
-
 
7349
 
-
 
7350
    static {
-
 
7351
      FieldMetaData.addStructMetaDataMap(getActivity_result.class, metaDataMap);
-
 
7352
    }
-
 
7353
 
-
 
7354
    public getActivity_result() {
-
 
7355
    }
-
 
7356
 
-
 
7357
    public getActivity_result(
-
 
7358
      Activity success)
-
 
7359
    {
-
 
7360
      this();
-
 
7361
      this.success = success;
-
 
7362
    }
-
 
7363
 
-
 
7364
    /**
-
 
7365
     * Performs a deep copy on <i>other</i>.
-
 
7366
     */
-
 
7367
    public getActivity_result(getActivity_result other) {
-
 
7368
      if (other.isSetSuccess()) {
-
 
7369
        this.success = new Activity(other.success);
-
 
7370
      }
-
 
7371
    }
-
 
7372
 
-
 
7373
    public getActivity_result deepCopy() {
-
 
7374
      return new getActivity_result(this);
-
 
7375
    }
-
 
7376
 
-
 
7377
    @Deprecated
-
 
7378
    public getActivity_result clone() {
-
 
7379
      return new getActivity_result(this);
-
 
7380
    }
-
 
7381
 
-
 
7382
    public Activity getSuccess() {
-
 
7383
      return this.success;
-
 
7384
    }
-
 
7385
 
-
 
7386
    public getActivity_result setSuccess(Activity success) {
-
 
7387
      this.success = success;
-
 
7388
      return this;
-
 
7389
    }
-
 
7390
 
-
 
7391
    public void unsetSuccess() {
-
 
7392
      this.success = null;
-
 
7393
    }
-
 
7394
 
-
 
7395
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
7396
    public boolean isSetSuccess() {
-
 
7397
      return this.success != null;
-
 
7398
    }
-
 
7399
 
-
 
7400
    public void setSuccessIsSet(boolean value) {
-
 
7401
      if (!value) {
-
 
7402
        this.success = null;
-
 
7403
      }
-
 
7404
    }
-
 
7405
 
-
 
7406
    public void setFieldValue(_Fields field, Object value) {
-
 
7407
      switch (field) {
-
 
7408
      case SUCCESS:
-
 
7409
        if (value == null) {
-
 
7410
          unsetSuccess();
-
 
7411
        } else {
-
 
7412
          setSuccess((Activity)value);
-
 
7413
        }
-
 
7414
        break;
-
 
7415
 
-
 
7416
      }
-
 
7417
    }
-
 
7418
 
-
 
7419
    public void setFieldValue(int fieldID, Object value) {
-
 
7420
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7421
    }
-
 
7422
 
-
 
7423
    public Object getFieldValue(_Fields field) {
-
 
7424
      switch (field) {
-
 
7425
      case SUCCESS:
-
 
7426
        return getSuccess();
-
 
7427
 
-
 
7428
      }
-
 
7429
      throw new IllegalStateException();
-
 
7430
    }
-
 
7431
 
-
 
7432
    public Object getFieldValue(int fieldId) {
-
 
7433
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7434
    }
-
 
7435
 
-
 
7436
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
7437
    public boolean isSet(_Fields field) {
-
 
7438
      switch (field) {
-
 
7439
      case SUCCESS:
-
 
7440
        return isSetSuccess();
-
 
7441
      }
-
 
7442
      throw new IllegalStateException();
-
 
7443
    }
-
 
7444
 
-
 
7445
    public boolean isSet(int fieldID) {
-
 
7446
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7447
    }
-
 
7448
 
-
 
7449
    @Override
-
 
7450
    public boolean equals(Object that) {
-
 
7451
      if (that == null)
-
 
7452
        return false;
-
 
7453
      if (that instanceof getActivity_result)
-
 
7454
        return this.equals((getActivity_result)that);
-
 
7455
      return false;
-
 
7456
    }
-
 
7457
 
-
 
7458
    public boolean equals(getActivity_result that) {
-
 
7459
      if (that == null)
-
 
7460
        return false;
-
 
7461
 
-
 
7462
      boolean this_present_success = true && this.isSetSuccess();
-
 
7463
      boolean that_present_success = true && that.isSetSuccess();
-
 
7464
      if (this_present_success || that_present_success) {
-
 
7465
        if (!(this_present_success && that_present_success))
-
 
7466
          return false;
-
 
7467
        if (!this.success.equals(that.success))
-
 
7468
          return false;
-
 
7469
      }
-
 
7470
 
-
 
7471
      return true;
-
 
7472
    }
-
 
7473
 
-
 
7474
    @Override
-
 
7475
    public int hashCode() {
-
 
7476
      return 0;
-
 
7477
    }
-
 
7478
 
-
 
7479
    public int compareTo(getActivity_result other) {
-
 
7480
      if (!getClass().equals(other.getClass())) {
-
 
7481
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7482
      }
-
 
7483
 
-
 
7484
      int lastComparison = 0;
-
 
7485
      getActivity_result typedOther = (getActivity_result)other;
-
 
7486
 
-
 
7487
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
7488
      if (lastComparison != 0) {
-
 
7489
        return lastComparison;
-
 
7490
      }
-
 
7491
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
7492
      if (lastComparison != 0) {
-
 
7493
        return lastComparison;
-
 
7494
      }
-
 
7495
      return 0;
-
 
7496
    }
-
 
7497
 
-
 
7498
    public void read(TProtocol iprot) throws TException {
-
 
7499
      TField field;
-
 
7500
      iprot.readStructBegin();
-
 
7501
      while (true)
-
 
7502
      {
-
 
7503
        field = iprot.readFieldBegin();
-
 
7504
        if (field.type == TType.STOP) { 
-
 
7505
          break;
-
 
7506
        }
-
 
7507
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7508
        if (fieldId == null) {
-
 
7509
          TProtocolUtil.skip(iprot, field.type);
-
 
7510
        } else {
-
 
7511
          switch (fieldId) {
-
 
7512
            case SUCCESS:
-
 
7513
              if (field.type == TType.STRUCT) {
-
 
7514
                this.success = new Activity();
-
 
7515
                this.success.read(iprot);
-
 
7516
              } else { 
-
 
7517
                TProtocolUtil.skip(iprot, field.type);
-
 
7518
              }
-
 
7519
              break;
-
 
7520
          }
-
 
7521
          iprot.readFieldEnd();
-
 
7522
        }
-
 
7523
      }
-
 
7524
      iprot.readStructEnd();
-
 
7525
      validate();
-
 
7526
    }
-
 
7527
 
-
 
7528
    public void write(TProtocol oprot) throws TException {
-
 
7529
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7530
 
-
 
7531
      if (this.isSetSuccess()) {
-
 
7532
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
7533
        this.success.write(oprot);
-
 
7534
        oprot.writeFieldEnd();
-
 
7535
      }
-
 
7536
      oprot.writeFieldStop();
-
 
7537
      oprot.writeStructEnd();
-
 
7538
    }
-
 
7539
 
-
 
7540
    @Override
-
 
7541
    public String toString() {
-
 
7542
      StringBuilder sb = new StringBuilder("getActivity_result(");
-
 
7543
      boolean first = true;
-
 
7544
 
-
 
7545
      sb.append("success:");
-
 
7546
      if (this.success == null) {
-
 
7547
        sb.append("null");
-
 
7548
      } else {
-
 
7549
        sb.append(this.success);
-
 
7550
      }
-
 
7551
      first = false;
-
 
7552
      sb.append(")");
-
 
7553
      return sb.toString();
-
 
7554
    }
-
 
7555
 
-
 
7556
    public void validate() throws TException {
-
 
7557
      // check for required fields
-
 
7558
    }
-
 
7559
 
-
 
7560
  }
-
 
7561
 
-
 
7562
  public static class getLastActivity_args implements TBase<getLastActivity_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLastActivity_args>   {
-
 
7563
    private static final TStruct STRUCT_DESC = new TStruct("getLastActivity_args");
-
 
7564
 
-
 
7565
    private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)1);
-
 
7566
 
-
 
7567
    private long ticketId;
-
 
7568
 
-
 
7569
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7570
    public enum _Fields implements TFieldIdEnum {
-
 
7571
      TICKET_ID((short)1, "ticketId");
-
 
7572
 
-
 
7573
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7574
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7575
 
-
 
7576
      static {
-
 
7577
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7578
          byId.put((int)field._thriftId, field);
-
 
7579
          byName.put(field.getFieldName(), field);
-
 
7580
        }
-
 
7581
      }
-
 
7582
 
-
 
7583
      /**
-
 
7584
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7585
       */
-
 
7586
      public static _Fields findByThriftId(int fieldId) {
-
 
7587
        return byId.get(fieldId);
-
 
7588
      }
-
 
7589
 
-
 
7590
      /**
-
 
7591
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7592
       * if it is not found.
-
 
7593
       */
-
 
7594
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7595
        _Fields fields = findByThriftId(fieldId);
-
 
7596
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7597
        return fields;
-
 
7598
      }
-
 
7599
 
-
 
7600
      /**
-
 
7601
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7602
       */
-
 
7603
      public static _Fields findByName(String name) {
-
 
7604
        return byName.get(name);
-
 
7605
      }
-
 
7606
 
-
 
7607
      private final short _thriftId;
-
 
7608
      private final String _fieldName;
-
 
7609
 
-
 
7610
      _Fields(short thriftId, String fieldName) {
-
 
7611
        _thriftId = thriftId;
-
 
7612
        _fieldName = fieldName;
-
 
7613
      }
-
 
7614
 
-
 
7615
      public short getThriftFieldId() {
-
 
7616
        return _thriftId;
-
 
7617
      }
-
 
7618
 
-
 
7619
      public String getFieldName() {
-
 
7620
        return _fieldName;
-
 
7621
      }
-
 
7622
    }
-
 
7623
 
-
 
7624
    // isset id assignments
-
 
7625
    private static final int __TICKETID_ISSET_ID = 0;
-
 
7626
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
7627
 
-
 
7628
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
7629
      put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.DEFAULT, 
-
 
7630
          new FieldValueMetaData(TType.I64)));
-
 
7631
    }});
-
 
7632
 
-
 
7633
    static {
-
 
7634
      FieldMetaData.addStructMetaDataMap(getLastActivity_args.class, metaDataMap);
-
 
7635
    }
-
 
7636
 
-
 
7637
    public getLastActivity_args() {
-
 
7638
    }
-
 
7639
 
-
 
7640
    public getLastActivity_args(
-
 
7641
      long ticketId)
-
 
7642
    {
-
 
7643
      this();
-
 
7644
      this.ticketId = ticketId;
-
 
7645
      setTicketIdIsSet(true);
-
 
7646
    }
-
 
7647
 
-
 
7648
    /**
-
 
7649
     * Performs a deep copy on <i>other</i>.
-
 
7650
     */
-
 
7651
    public getLastActivity_args(getLastActivity_args other) {
-
 
7652
      __isset_bit_vector.clear();
-
 
7653
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
7654
      this.ticketId = other.ticketId;
-
 
7655
    }
-
 
7656
 
-
 
7657
    public getLastActivity_args deepCopy() {
-
 
7658
      return new getLastActivity_args(this);
-
 
7659
    }
-
 
7660
 
-
 
7661
    @Deprecated
-
 
7662
    public getLastActivity_args clone() {
-
 
7663
      return new getLastActivity_args(this);
-
 
7664
    }
-
 
7665
 
-
 
7666
    public long getTicketId() {
-
 
7667
      return this.ticketId;
-
 
7668
    }
-
 
7669
 
-
 
7670
    public getLastActivity_args setTicketId(long ticketId) {
-
 
7671
      this.ticketId = ticketId;
-
 
7672
      setTicketIdIsSet(true);
-
 
7673
      return this;
-
 
7674
    }
-
 
7675
 
-
 
7676
    public void unsetTicketId() {
-
 
7677
      __isset_bit_vector.clear(__TICKETID_ISSET_ID);
-
 
7678
    }
-
 
7679
 
-
 
7680
    /** Returns true if field ticketId is set (has been asigned a value) and false otherwise */
-
 
7681
    public boolean isSetTicketId() {
-
 
7682
      return __isset_bit_vector.get(__TICKETID_ISSET_ID);
-
 
7683
    }
-
 
7684
 
-
 
7685
    public void setTicketIdIsSet(boolean value) {
-
 
7686
      __isset_bit_vector.set(__TICKETID_ISSET_ID, value);
-
 
7687
    }
-
 
7688
 
-
 
7689
    public void setFieldValue(_Fields field, Object value) {
-
 
7690
      switch (field) {
-
 
7691
      case TICKET_ID:
-
 
7692
        if (value == null) {
-
 
7693
          unsetTicketId();
-
 
7694
        } else {
-
 
7695
          setTicketId((Long)value);
-
 
7696
        }
-
 
7697
        break;
-
 
7698
 
-
 
7699
      }
-
 
7700
    }
-
 
7701
 
-
 
7702
    public void setFieldValue(int fieldID, Object value) {
-
 
7703
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7704
    }
-
 
7705
 
-
 
7706
    public Object getFieldValue(_Fields field) {
-
 
7707
      switch (field) {
-
 
7708
      case TICKET_ID:
-
 
7709
        return new Long(getTicketId());
-
 
7710
 
-
 
7711
      }
-
 
7712
      throw new IllegalStateException();
-
 
7713
    }
-
 
7714
 
-
 
7715
    public Object getFieldValue(int fieldId) {
-
 
7716
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7717
    }
-
 
7718
 
-
 
7719
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
7720
    public boolean isSet(_Fields field) {
-
 
7721
      switch (field) {
-
 
7722
      case TICKET_ID:
-
 
7723
        return isSetTicketId();
-
 
7724
      }
-
 
7725
      throw new IllegalStateException();
-
 
7726
    }
-
 
7727
 
-
 
7728
    public boolean isSet(int fieldID) {
-
 
7729
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7730
    }
-
 
7731
 
-
 
7732
    @Override
-
 
7733
    public boolean equals(Object that) {
-
 
7734
      if (that == null)
-
 
7735
        return false;
-
 
7736
      if (that instanceof getLastActivity_args)
-
 
7737
        return this.equals((getLastActivity_args)that);
-
 
7738
      return false;
-
 
7739
    }
-
 
7740
 
-
 
7741
    public boolean equals(getLastActivity_args that) {
-
 
7742
      if (that == null)
-
 
7743
        return false;
-
 
7744
 
-
 
7745
      boolean this_present_ticketId = true;
-
 
7746
      boolean that_present_ticketId = true;
-
 
7747
      if (this_present_ticketId || that_present_ticketId) {
-
 
7748
        if (!(this_present_ticketId && that_present_ticketId))
-
 
7749
          return false;
-
 
7750
        if (this.ticketId != that.ticketId)
-
 
7751
          return false;
-
 
7752
      }
-
 
7753
 
-
 
7754
      return true;
-
 
7755
    }
-
 
7756
 
-
 
7757
    @Override
-
 
7758
    public int hashCode() {
-
 
7759
      return 0;
-
 
7760
    }
-
 
7761
 
-
 
7762
    public int compareTo(getLastActivity_args other) {
-
 
7763
      if (!getClass().equals(other.getClass())) {
-
 
7764
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7765
      }
-
 
7766
 
-
 
7767
      int lastComparison = 0;
-
 
7768
      getLastActivity_args typedOther = (getLastActivity_args)other;
-
 
7769
 
-
 
7770
      lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());
-
 
7771
      if (lastComparison != 0) {
-
 
7772
        return lastComparison;
-
 
7773
      }
-
 
7774
      lastComparison = TBaseHelper.compareTo(ticketId, typedOther.ticketId);
-
 
7775
      if (lastComparison != 0) {
-
 
7776
        return lastComparison;
-
 
7777
      }
-
 
7778
      return 0;
-
 
7779
    }
-
 
7780
 
-
 
7781
    public void read(TProtocol iprot) throws TException {
-
 
7782
      TField field;
-
 
7783
      iprot.readStructBegin();
-
 
7784
      while (true)
-
 
7785
      {
-
 
7786
        field = iprot.readFieldBegin();
-
 
7787
        if (field.type == TType.STOP) { 
-
 
7788
          break;
-
 
7789
        }
-
 
7790
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7791
        if (fieldId == null) {
-
 
7792
          TProtocolUtil.skip(iprot, field.type);
-
 
7793
        } else {
-
 
7794
          switch (fieldId) {
-
 
7795
            case TICKET_ID:
-
 
7796
              if (field.type == TType.I64) {
-
 
7797
                this.ticketId = iprot.readI64();
-
 
7798
                setTicketIdIsSet(true);
-
 
7799
              } else { 
-
 
7800
                TProtocolUtil.skip(iprot, field.type);
-
 
7801
              }
-
 
7802
              break;
-
 
7803
          }
-
 
7804
          iprot.readFieldEnd();
-
 
7805
        }
-
 
7806
      }
-
 
7807
      iprot.readStructEnd();
-
 
7808
      validate();
-
 
7809
    }
-
 
7810
 
-
 
7811
    public void write(TProtocol oprot) throws TException {
-
 
7812
      validate();
-
 
7813
 
-
 
7814
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7815
      oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);
-
 
7816
      oprot.writeI64(this.ticketId);
-
 
7817
      oprot.writeFieldEnd();
-
 
7818
      oprot.writeFieldStop();
-
 
7819
      oprot.writeStructEnd();
-
 
7820
    }
-
 
7821
 
-
 
7822
    @Override
-
 
7823
    public String toString() {
-
 
7824
      StringBuilder sb = new StringBuilder("getLastActivity_args(");
-
 
7825
      boolean first = true;
-
 
7826
 
-
 
7827
      sb.append("ticketId:");
-
 
7828
      sb.append(this.ticketId);
-
 
7829
      first = false;
-
 
7830
      sb.append(")");
-
 
7831
      return sb.toString();
-
 
7832
    }
-
 
7833
 
-
 
7834
    public void validate() throws TException {
-
 
7835
      // check for required fields
-
 
7836
    }
-
 
7837
 
-
 
7838
  }
-
 
7839
 
-
 
7840
  public static class getLastActivity_result implements TBase<getLastActivity_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLastActivity_result>   {
-
 
7841
    private static final TStruct STRUCT_DESC = new TStruct("getLastActivity_result");
-
 
7842
 
-
 
7843
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
7844
 
-
 
7845
    private Activity success;
-
 
7846
 
-
 
7847
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7848
    public enum _Fields implements TFieldIdEnum {
-
 
7849
      SUCCESS((short)0, "success");
-
 
7850
 
-
 
7851
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7852
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7853
 
-
 
7854
      static {
-
 
7855
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7856
          byId.put((int)field._thriftId, field);
-
 
7857
          byName.put(field.getFieldName(), field);
-
 
7858
        }
-
 
7859
      }
-
 
7860
 
-
 
7861
      /**
-
 
7862
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7863
       */
-
 
7864
      public static _Fields findByThriftId(int fieldId) {
-
 
7865
        return byId.get(fieldId);
-
 
7866
      }
-
 
7867
 
-
 
7868
      /**
-
 
7869
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7870
       * if it is not found.
-
 
7871
       */
-
 
7872
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7873
        _Fields fields = findByThriftId(fieldId);
-
 
7874
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7875
        return fields;
-
 
7876
      }
-
 
7877
 
-
 
7878
      /**
-
 
7879
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7880
       */
-
 
7881
      public static _Fields findByName(String name) {
-
 
7882
        return byName.get(name);
-
 
7883
      }
-
 
7884
 
-
 
7885
      private final short _thriftId;
-
 
7886
      private final String _fieldName;
-
 
7887
 
-
 
7888
      _Fields(short thriftId, String fieldName) {
-
 
7889
        _thriftId = thriftId;
-
 
7890
        _fieldName = fieldName;
-
 
7891
      }
-
 
7892
 
-
 
7893
      public short getThriftFieldId() {
-
 
7894
        return _thriftId;
-
 
7895
      }
-
 
7896
 
-
 
7897
      public String getFieldName() {
-
 
7898
        return _fieldName;
-
 
7899
      }
-
 
7900
    }
-
 
7901
 
-
 
7902
    // isset id assignments
-
 
7903
 
-
 
7904
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
7905
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
7906
          new StructMetaData(TType.STRUCT, Activity.class)));
-
 
7907
    }});
-
 
7908
 
-
 
7909
    static {
-
 
7910
      FieldMetaData.addStructMetaDataMap(getLastActivity_result.class, metaDataMap);
-
 
7911
    }
-
 
7912
 
-
 
7913
    public getLastActivity_result() {
-
 
7914
    }
-
 
7915
 
-
 
7916
    public getLastActivity_result(
-
 
7917
      Activity success)
-
 
7918
    {
-
 
7919
      this();
-
 
7920
      this.success = success;
-
 
7921
    }
-
 
7922
 
-
 
7923
    /**
-
 
7924
     * Performs a deep copy on <i>other</i>.
-
 
7925
     */
-
 
7926
    public getLastActivity_result(getLastActivity_result other) {
-
 
7927
      if (other.isSetSuccess()) {
-
 
7928
        this.success = new Activity(other.success);
-
 
7929
      }
-
 
7930
    }
-
 
7931
 
-
 
7932
    public getLastActivity_result deepCopy() {
-
 
7933
      return new getLastActivity_result(this);
-
 
7934
    }
-
 
7935
 
-
 
7936
    @Deprecated
-
 
7937
    public getLastActivity_result clone() {
-
 
7938
      return new getLastActivity_result(this);
-
 
7939
    }
-
 
7940
 
-
 
7941
    public Activity getSuccess() {
-
 
7942
      return this.success;
-
 
7943
    }
-
 
7944
 
-
 
7945
    public getLastActivity_result setSuccess(Activity success) {
-
 
7946
      this.success = success;
-
 
7947
      return this;
-
 
7948
    }
-
 
7949
 
-
 
7950
    public void unsetSuccess() {
-
 
7951
      this.success = null;
-
 
7952
    }
-
 
7953
 
-
 
7954
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
7955
    public boolean isSetSuccess() {
-
 
7956
      return this.success != null;
-
 
7957
    }
-
 
7958
 
-
 
7959
    public void setSuccessIsSet(boolean value) {
-
 
7960
      if (!value) {
-
 
7961
        this.success = null;
-
 
7962
      }
-
 
7963
    }
-
 
7964
 
-
 
7965
    public void setFieldValue(_Fields field, Object value) {
-
 
7966
      switch (field) {
-
 
7967
      case SUCCESS:
-
 
7968
        if (value == null) {
-
 
7969
          unsetSuccess();
-
 
7970
        } else {
-
 
7971
          setSuccess((Activity)value);
-
 
7972
        }
-
 
7973
        break;
-
 
7974
 
-
 
7975
      }
-
 
7976
    }
-
 
7977
 
-
 
7978
    public void setFieldValue(int fieldID, Object value) {
-
 
7979
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7980
    }
-
 
7981
 
-
 
7982
    public Object getFieldValue(_Fields field) {
-
 
7983
      switch (field) {
-
 
7984
      case SUCCESS:
-
 
7985
        return getSuccess();
-
 
7986
 
-
 
7987
      }
-
 
7988
      throw new IllegalStateException();
-
 
7989
    }
-
 
7990
 
-
 
7991
    public Object getFieldValue(int fieldId) {
-
 
7992
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7993
    }
-
 
7994
 
-
 
7995
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
7996
    public boolean isSet(_Fields field) {
-
 
7997
      switch (field) {
-
 
7998
      case SUCCESS:
-
 
7999
        return isSetSuccess();
-
 
8000
      }
-
 
8001
      throw new IllegalStateException();
-
 
8002
    }
-
 
8003
 
-
 
8004
    public boolean isSet(int fieldID) {
-
 
8005
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
8006
    }
-
 
8007
 
-
 
8008
    @Override
-
 
8009
    public boolean equals(Object that) {
-
 
8010
      if (that == null)
-
 
8011
        return false;
-
 
8012
      if (that instanceof getLastActivity_result)
-
 
8013
        return this.equals((getLastActivity_result)that);
-
 
8014
      return false;
-
 
8015
    }
-
 
8016
 
-
 
8017
    public boolean equals(getLastActivity_result that) {
-
 
8018
      if (that == null)
-
 
8019
        return false;
-
 
8020
 
-
 
8021
      boolean this_present_success = true && this.isSetSuccess();
-
 
8022
      boolean that_present_success = true && that.isSetSuccess();
-
 
8023
      if (this_present_success || that_present_success) {
-
 
8024
        if (!(this_present_success && that_present_success))
-
 
8025
          return false;
-
 
8026
        if (!this.success.equals(that.success))
-
 
8027
          return false;
-
 
8028
      }
-
 
8029
 
-
 
8030
      return true;
-
 
8031
    }
-
 
8032
 
-
 
8033
    @Override
-
 
8034
    public int hashCode() {
-
 
8035
      return 0;
-
 
8036
    }
-
 
8037
 
-
 
8038
    public int compareTo(getLastActivity_result other) {
-
 
8039
      if (!getClass().equals(other.getClass())) {
-
 
8040
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8041
      }
-
 
8042
 
-
 
8043
      int lastComparison = 0;
-
 
8044
      getLastActivity_result typedOther = (getLastActivity_result)other;
-
 
8045
 
-
 
8046
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
8047
      if (lastComparison != 0) {
-
 
8048
        return lastComparison;
-
 
8049
      }
-
 
8050
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
8051
      if (lastComparison != 0) {
-
 
8052
        return lastComparison;
-
 
8053
      }
-
 
8054
      return 0;
-
 
8055
    }
-
 
8056
 
-
 
8057
    public void read(TProtocol iprot) throws TException {
-
 
8058
      TField field;
-
 
8059
      iprot.readStructBegin();
-
 
8060
      while (true)
-
 
8061
      {
-
 
8062
        field = iprot.readFieldBegin();
-
 
8063
        if (field.type == TType.STOP) { 
-
 
8064
          break;
-
 
8065
        }
-
 
8066
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8067
        if (fieldId == null) {
-
 
8068
          TProtocolUtil.skip(iprot, field.type);
-
 
8069
        } else {
-
 
8070
          switch (fieldId) {
-
 
8071
            case SUCCESS:
-
 
8072
              if (field.type == TType.STRUCT) {
-
 
8073
                this.success = new Activity();
-
 
8074
                this.success.read(iprot);
-
 
8075
              } else { 
-
 
8076
                TProtocolUtil.skip(iprot, field.type);
-
 
8077
              }
-
 
8078
              break;
-
 
8079
          }
-
 
8080
          iprot.readFieldEnd();
-
 
8081
        }
-
 
8082
      }
-
 
8083
      iprot.readStructEnd();
-
 
8084
      validate();
-
 
8085
    }
-
 
8086
 
-
 
8087
    public void write(TProtocol oprot) throws TException {
-
 
8088
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8089
 
-
 
8090
      if (this.isSetSuccess()) {
-
 
8091
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
8092
        this.success.write(oprot);
-
 
8093
        oprot.writeFieldEnd();
-
 
8094
      }
-
 
8095
      oprot.writeFieldStop();
-
 
8096
      oprot.writeStructEnd();
-
 
8097
    }
-
 
8098
 
-
 
8099
    @Override
-
 
8100
    public String toString() {
-
 
8101
      StringBuilder sb = new StringBuilder("getLastActivity_result(");
-
 
8102
      boolean first = true;
-
 
8103
 
-
 
8104
      sb.append("success:");
-
 
8105
      if (this.success == null) {
-
 
8106
        sb.append("null");
-
 
8107
      } else {
-
 
8108
        sb.append(this.success);
-
 
8109
      }
-
 
8110
      first = false;
-
 
8111
      sb.append(")");
-
 
8112
      return sb.toString();
-
 
8113
    }
-
 
8114
 
-
 
8115
    public void validate() throws TException {
-
 
8116
      // check for required fields
-
 
8117
    }
-
 
8118
 
-
 
8119
  }
-
 
8120
 
-
 
8121
  public static class insertActivity_args implements TBase<insertActivity_args._Fields>, java.io.Serializable, Cloneable, Comparable<insertActivity_args>   {
3651
  public static class insertActivity_args implements TBase<insertActivity_args._Fields>, java.io.Serializable, Cloneable, Comparable<insertActivity_args>   {
8122
    private static final TStruct STRUCT_DESC = new TStruct("insertActivity_args");
3652
    private static final TStruct STRUCT_DESC = new TStruct("insertActivity_args");
8123
 
3653
 
8124
    private static final TField ACTIVITY_FIELD_DESC = new TField("activity", TType.STRUCT, (short)1);
3654
    private static final TField ACTIVITY_FIELD_DESC = new TField("activity", TType.STRUCT, (short)1);
8125
 
3655
 
Line 8588... Line 4118...
8588
      // check for required fields
4118
      // check for required fields
8589
    }
4119
    }
8590
 
4120
 
8591
  }
4121
  }
8592
 
4122
 
8593
  public static class getAllAgents_args implements TBase<getAllAgents_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllAgents_args>   {
4123
  public static class markAsRead_args implements TBase<markAsRead_args._Fields>, java.io.Serializable, Cloneable, Comparable<markAsRead_args>   {
8594
    private static final TStruct STRUCT_DESC = new TStruct("getAllAgents_args");
4124
    private static final TStruct STRUCT_DESC = new TStruct("markAsRead_args");
8595
 
-
 
8596
 
-
 
8597
 
4125
 
8598
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8599
    public enum _Fields implements TFieldIdEnum {
-
 
8600
;
-
 
8601
 
-
 
8602
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
8603
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8604
 
-
 
8605
      static {
-
 
8606
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8607
          byId.put((int)field._thriftId, field);
-
 
8608
          byName.put(field.getFieldName(), field);
-
 
8609
        }
-
 
8610
      }
-
 
8611
 
-
 
8612
      /**
-
 
8613
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8614
       */
-
 
8615
      public static _Fields findByThriftId(int fieldId) {
-
 
8616
        return byId.get(fieldId);
-
 
8617
      }
-
 
8618
 
-
 
8619
      /**
-
 
8620
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8621
       * if it is not found.
-
 
8622
       */
-
 
8623
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8624
        _Fields fields = findByThriftId(fieldId);
-
 
8625
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8626
        return fields;
-
 
8627
      }
-
 
8628
 
-
 
8629
      /**
-
 
8630
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8631
       */
-
 
8632
      public static _Fields findByName(String name) {
-
 
8633
        return byName.get(name);
-
 
8634
      }
-
 
8635
 
-
 
8636
      private final short _thriftId;
-
 
8637
      private final String _fieldName;
-
 
8638
 
-
 
8639
      _Fields(short thriftId, String fieldName) {
-
 
8640
        _thriftId = thriftId;
-
 
8641
        _fieldName = fieldName;
-
 
8642
      }
-
 
8643
 
-
 
8644
      public short getThriftFieldId() {
-
 
8645
        return _thriftId;
-
 
8646
      }
-
 
8647
 
-
 
8648
      public String getFieldName() {
-
 
8649
        return _fieldName;
-
 
8650
      }
-
 
8651
    }
-
 
8652
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
8653
    }});
-
 
8654
 
-
 
8655
    static {
-
 
8656
      FieldMetaData.addStructMetaDataMap(getAllAgents_args.class, metaDataMap);
-
 
8657
    }
-
 
8658
 
-
 
8659
    public getAllAgents_args() {
-
 
8660
    }
-
 
8661
 
-
 
8662
    /**
-
 
8663
     * Performs a deep copy on <i>other</i>.
-
 
8664
     */
-
 
8665
    public getAllAgents_args(getAllAgents_args other) {
-
 
8666
    }
-
 
8667
 
-
 
8668
    public getAllAgents_args deepCopy() {
-
 
8669
      return new getAllAgents_args(this);
-
 
8670
    }
-
 
8671
 
-
 
8672
    @Deprecated
-
 
8673
    public getAllAgents_args clone() {
-
 
8674
      return new getAllAgents_args(this);
-
 
8675
    }
-
 
8676
 
-
 
8677
    public void setFieldValue(_Fields field, Object value) {
-
 
8678
      switch (field) {
-
 
8679
      }
-
 
8680
    }
-
 
8681
 
-
 
8682
    public void setFieldValue(int fieldID, Object value) {
-
 
8683
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
8684
    }
-
 
8685
 
-
 
8686
    public Object getFieldValue(_Fields field) {
-
 
8687
      switch (field) {
-
 
8688
      }
-
 
8689
      throw new IllegalStateException();
-
 
8690
    }
-
 
8691
 
-
 
8692
    public Object getFieldValue(int fieldId) {
-
 
8693
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
8694
    }
-
 
8695
 
-
 
8696
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
8697
    public boolean isSet(_Fields field) {
-
 
8698
      switch (field) {
-
 
8699
      }
-
 
8700
      throw new IllegalStateException();
-
 
8701
    }
-
 
8702
 
-
 
8703
    public boolean isSet(int fieldID) {
-
 
8704
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
8705
    }
-
 
8706
 
-
 
8707
    @Override
-
 
8708
    public boolean equals(Object that) {
-
 
8709
      if (that == null)
-
 
8710
        return false;
-
 
8711
      if (that instanceof getAllAgents_args)
-
 
8712
        return this.equals((getAllAgents_args)that);
-
 
8713
      return false;
-
 
8714
    }
-
 
8715
 
-
 
8716
    public boolean equals(getAllAgents_args that) {
-
 
8717
      if (that == null)
-
 
8718
        return false;
-
 
8719
 
-
 
8720
      return true;
-
 
8721
    }
-
 
8722
 
-
 
8723
    @Override
-
 
8724
    public int hashCode() {
-
 
8725
      return 0;
-
 
8726
    }
-
 
8727
 
-
 
8728
    public int compareTo(getAllAgents_args other) {
-
 
8729
      if (!getClass().equals(other.getClass())) {
-
 
8730
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8731
      }
-
 
8732
 
-
 
8733
      int lastComparison = 0;
-
 
8734
      getAllAgents_args typedOther = (getAllAgents_args)other;
-
 
8735
 
-
 
8736
      return 0;
-
 
8737
    }
-
 
8738
 
-
 
8739
    public void read(TProtocol iprot) throws TException {
-
 
8740
      TField field;
-
 
8741
      iprot.readStructBegin();
-
 
8742
      while (true)
-
 
8743
      {
-
 
8744
        field = iprot.readFieldBegin();
-
 
8745
        if (field.type == TType.STOP) { 
-
 
8746
          break;
-
 
8747
        }
-
 
8748
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8749
        if (fieldId == null) {
-
 
8750
          TProtocolUtil.skip(iprot, field.type);
-
 
8751
        } else {
-
 
8752
          switch (fieldId) {
-
 
8753
          }
-
 
8754
          iprot.readFieldEnd();
-
 
8755
        }
-
 
8756
      }
-
 
8757
      iprot.readStructEnd();
-
 
8758
      validate();
-
 
8759
    }
-
 
8760
 
-
 
8761
    public void write(TProtocol oprot) throws TException {
-
 
8762
      validate();
-
 
8763
 
-
 
8764
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8765
      oprot.writeFieldStop();
-
 
8766
      oprot.writeStructEnd();
-
 
8767
    }
-
 
8768
 
-
 
8769
    @Override
-
 
8770
    public String toString() {
-
 
8771
      StringBuilder sb = new StringBuilder("getAllAgents_args(");
-
 
8772
      boolean first = true;
-
 
8773
 
-
 
8774
      sb.append(")");
-
 
8775
      return sb.toString();
-
 
8776
    }
-
 
8777
 
-
 
8778
    public void validate() throws TException {
-
 
8779
      // check for required fields
-
 
8780
    }
-
 
8781
 
-
 
8782
  }
-
 
8783
 
-
 
8784
  public static class getAllAgents_result implements TBase<getAllAgents_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllAgents_result>   {
-
 
8785
    private static final TStruct STRUCT_DESC = new TStruct("getAllAgents_result");
4126
    private static final TField ACTIVITY_ID_FIELD_DESC = new TField("activityId", TType.I64, (short)1);
8786
 
-
 
8787
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
4127
    private static final TField AGENT_ID_FIELD_DESC = new TField("agentId", TType.I64, (short)2);
8788
 
4128
 
-
 
4129
    private long activityId;
8789
    private List<Agent> success;
4130
    private long agentId;
8790
 
4131
 
8791
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4132
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8792
    public enum _Fields implements TFieldIdEnum {
4133
    public enum _Fields implements TFieldIdEnum {
-
 
4134
      ACTIVITY_ID((short)1, "activityId"),
8793
      SUCCESS((short)0, "success");
4135
      AGENT_ID((short)2, "agentId");
8794
 
4136
 
8795
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
4137
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
8796
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4138
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8797
 
4139
 
8798
      static {
4140
      static {
Line 8842... Line 4184...
8842
        return _fieldName;
4184
        return _fieldName;
8843
      }
4185
      }
8844
    }
4186
    }
8845
 
4187
 
8846
    // isset id assignments
4188
    // isset id assignments
-
 
4189
    private static final int __ACTIVITYID_ISSET_ID = 0;
-
 
4190
    private static final int __AGENTID_ISSET_ID = 1;
-
 
4191
    private BitSet __isset_bit_vector = new BitSet(2);
8847
 
4192
 
8848
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4193
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8849
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
4194
      put(_Fields.ACTIVITY_ID, new FieldMetaData("activityId", TFieldRequirementType.DEFAULT, 
8850
          new ListMetaData(TType.LIST, 
4195
          new FieldValueMetaData(TType.I64)));
-
 
4196
      put(_Fields.AGENT_ID, new FieldMetaData("agentId", TFieldRequirementType.DEFAULT, 
8851
              new StructMetaData(TType.STRUCT, Agent.class))));
4197
          new FieldValueMetaData(TType.I64)));
8852
    }});
4198
    }});
8853
 
4199
 
8854
    static {
4200
    static {
8855
      FieldMetaData.addStructMetaDataMap(getAllAgents_result.class, metaDataMap);
4201
      FieldMetaData.addStructMetaDataMap(markAsRead_args.class, metaDataMap);
8856
    }
4202
    }
8857
 
4203
 
8858
    public getAllAgents_result() {
4204
    public markAsRead_args() {
8859
    }
4205
    }
8860
 
4206
 
8861
    public getAllAgents_result(
4207
    public markAsRead_args(
-
 
4208
      long activityId,
8862
      List<Agent> success)
4209
      long agentId)
8863
    {
4210
    {
8864
      this();
4211
      this();
-
 
4212
      this.activityId = activityId;
-
 
4213
      setActivityIdIsSet(true);
8865
      this.success = success;
4214
      this.agentId = agentId;
-
 
4215
      setAgentIdIsSet(true);
8866
    }
4216
    }
8867
 
4217
 
8868
    /**
4218
    /**
8869
     * Performs a deep copy on <i>other</i>.
4219
     * Performs a deep copy on <i>other</i>.
8870
     */
4220
     */
8871
    public getAllAgents_result(getAllAgents_result other) {
4221
    public markAsRead_args(markAsRead_args other) {
8872
      if (other.isSetSuccess()) {
4222
      __isset_bit_vector.clear();
8873
        List<Agent> __this__success = new ArrayList<Agent>();
4223
      __isset_bit_vector.or(other.__isset_bit_vector);
8874
        for (Agent other_element : other.success) {
-
 
8875
          __this__success.add(new Agent(other_element));
4224
      this.activityId = other.activityId;
8876
        }
-
 
8877
        this.success = __this__success;
4225
      this.agentId = other.agentId;
8878
      }
-
 
8879
    }
4226
    }
8880
 
4227
 
8881
    public getAllAgents_result deepCopy() {
4228
    public markAsRead_args deepCopy() {
8882
      return new getAllAgents_result(this);
4229
      return new markAsRead_args(this);
8883
    }
4230
    }
8884
 
4231
 
8885
    @Deprecated
4232
    @Deprecated
8886
    public getAllAgents_result clone() {
4233
    public markAsRead_args clone() {
8887
      return new getAllAgents_result(this);
4234
      return new markAsRead_args(this);
8888
    }
-
 
8889
 
-
 
8890
    public int getSuccessSize() {
-
 
8891
      return (this.success == null) ? 0 : this.success.size();
-
 
8892
    }
-
 
8893
 
-
 
8894
    public java.util.Iterator<Agent> getSuccessIterator() {
-
 
8895
      return (this.success == null) ? null : this.success.iterator();
-
 
8896
    }
4235
    }
8897
 
4236
 
8898
    public void addToSuccess(Agent elem) {
-
 
8899
      if (this.success == null) {
-
 
8900
        this.success = new ArrayList<Agent>();
-
 
8901
      }
-
 
8902
      this.success.add(elem);
-
 
8903
    }
-
 
8904
 
-
 
8905
    public List<Agent> getSuccess() {
4237
    public long getActivityId() {
8906
      return this.success;
4238
      return this.activityId;
8907
    }
4239
    }
8908
 
4240
 
8909
    public getAllAgents_result setSuccess(List<Agent> success) {
4241
    public markAsRead_args setActivityId(long activityId) {
8910
      this.success = success;
4242
      this.activityId = activityId;
-
 
4243
      setActivityIdIsSet(true);
8911
      return this;
4244
      return this;
8912
    }
4245
    }
8913
 
4246
 
8914
    public void unsetSuccess() {
4247
    public void unsetActivityId() {
8915
      this.success = null;
-
 
8916
    }
-
 
8917
 
-
 
8918
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
8919
    public boolean isSetSuccess() {
-
 
8920
      return this.success != null;
-
 
8921
    }
-
 
8922
 
-
 
8923
    public void setSuccessIsSet(boolean value) {
-
 
8924
      if (!value) {
-
 
8925
        this.success = null;
-
 
8926
      }
-
 
8927
    }
-
 
8928
 
-
 
8929
    public void setFieldValue(_Fields field, Object value) {
-
 
8930
      switch (field) {
-
 
8931
      case SUCCESS:
-
 
8932
        if (value == null) {
-
 
8933
          unsetSuccess();
-
 
8934
        } else {
-
 
8935
          setSuccess((List<Agent>)value);
-
 
8936
        }
-
 
8937
        break;
-
 
8938
 
-
 
8939
      }
-
 
8940
    }
-
 
8941
 
-
 
8942
    public void setFieldValue(int fieldID, Object value) {
-
 
8943
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
8944
    }
-
 
8945
 
-
 
8946
    public Object getFieldValue(_Fields field) {
-
 
8947
      switch (field) {
-
 
8948
      case SUCCESS:
-
 
8949
        return getSuccess();
-
 
8950
 
-
 
8951
      }
-
 
8952
      throw new IllegalStateException();
-
 
8953
    }
-
 
8954
 
-
 
8955
    public Object getFieldValue(int fieldId) {
-
 
8956
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
8957
    }
-
 
8958
 
-
 
8959
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
8960
    public boolean isSet(_Fields field) {
-
 
8961
      switch (field) {
-
 
8962
      case SUCCESS:
-
 
8963
        return isSetSuccess();
-
 
8964
      }
-
 
8965
      throw new IllegalStateException();
-
 
8966
    }
-
 
8967
 
-
 
8968
    public boolean isSet(int fieldID) {
-
 
8969
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
8970
    }
-
 
8971
 
-
 
8972
    @Override
-
 
8973
    public boolean equals(Object that) {
-
 
8974
      if (that == null)
-
 
8975
        return false;
-
 
8976
      if (that instanceof getAllAgents_result)
-
 
8977
        return this.equals((getAllAgents_result)that);
-
 
8978
      return false;
-
 
8979
    }
-
 
8980
 
-
 
8981
    public boolean equals(getAllAgents_result that) {
-
 
8982
      if (that == null)
-
 
8983
        return false;
-
 
8984
 
-
 
8985
      boolean this_present_success = true && this.isSetSuccess();
-
 
8986
      boolean that_present_success = true && that.isSetSuccess();
-
 
8987
      if (this_present_success || that_present_success) {
-
 
8988
        if (!(this_present_success && that_present_success))
-
 
8989
          return false;
-
 
8990
        if (!this.success.equals(that.success))
-
 
8991
          return false;
-
 
8992
      }
-
 
8993
 
-
 
8994
      return true;
-
 
8995
    }
-
 
8996
 
-
 
8997
    @Override
-
 
8998
    public int hashCode() {
-
 
8999
      return 0;
-
 
9000
    }
-
 
9001
 
-
 
9002
    public int compareTo(getAllAgents_result other) {
-
 
9003
      if (!getClass().equals(other.getClass())) {
-
 
9004
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9005
      }
-
 
9006
 
-
 
9007
      int lastComparison = 0;
-
 
9008
      getAllAgents_result typedOther = (getAllAgents_result)other;
-
 
9009
 
-
 
9010
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
9011
      if (lastComparison != 0) {
-
 
9012
        return lastComparison;
-
 
9013
      }
-
 
9014
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
9015
      if (lastComparison != 0) {
-
 
9016
        return lastComparison;
-
 
9017
      }
-
 
9018
      return 0;
-
 
9019
    }
-
 
9020
 
-
 
9021
    public void read(TProtocol iprot) throws TException {
-
 
9022
      TField field;
-
 
9023
      iprot.readStructBegin();
-
 
9024
      while (true)
-
 
9025
      {
-
 
9026
        field = iprot.readFieldBegin();
-
 
9027
        if (field.type == TType.STOP) { 
-
 
9028
          break;
-
 
9029
        }
-
 
9030
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9031
        if (fieldId == null) {
-
 
9032
          TProtocolUtil.skip(iprot, field.type);
-
 
9033
        } else {
-
 
9034
          switch (fieldId) {
-
 
9035
            case SUCCESS:
-
 
9036
              if (field.type == TType.LIST) {
-
 
9037
                {
-
 
9038
                  TList _list28 = iprot.readListBegin();
-
 
9039
                  this.success = new ArrayList<Agent>(_list28.size);
-
 
9040
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
-
 
9041
                  {
-
 
9042
                    Agent _elem30;
-
 
9043
                    _elem30 = new Agent();
-
 
9044
                    _elem30.read(iprot);
-
 
9045
                    this.success.add(_elem30);
-
 
9046
                  }
-
 
9047
                  iprot.readListEnd();
-
 
9048
                }
-
 
9049
              } else { 
-
 
9050
                TProtocolUtil.skip(iprot, field.type);
-
 
9051
              }
-
 
9052
              break;
-
 
9053
          }
-
 
9054
          iprot.readFieldEnd();
-
 
9055
        }
-
 
9056
      }
-
 
9057
      iprot.readStructEnd();
-
 
9058
      validate();
-
 
9059
    }
-
 
9060
 
-
 
9061
    public void write(TProtocol oprot) throws TException {
-
 
9062
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9063
 
-
 
9064
      if (this.isSetSuccess()) {
-
 
9065
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
9066
        {
-
 
9067
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
9068
          for (Agent _iter31 : this.success)
-
 
9069
          {
-
 
9070
            _iter31.write(oprot);
-
 
9071
          }
-
 
9072
          oprot.writeListEnd();
-
 
9073
        }
-
 
9074
        oprot.writeFieldEnd();
-
 
9075
      }
-
 
9076
      oprot.writeFieldStop();
-
 
9077
      oprot.writeStructEnd();
-
 
9078
    }
-
 
9079
 
-
 
9080
    @Override
-
 
9081
    public String toString() {
-
 
9082
      StringBuilder sb = new StringBuilder("getAllAgents_result(");
-
 
9083
      boolean first = true;
-
 
9084
 
-
 
9085
      sb.append("success:");
-
 
9086
      if (this.success == null) {
-
 
9087
        sb.append("null");
-
 
9088
      } else {
-
 
9089
        sb.append(this.success);
-
 
9090
      }
-
 
9091
      first = false;
-
 
9092
      sb.append(")");
-
 
9093
      return sb.toString();
-
 
9094
    }
-
 
9095
 
-
 
9096
    public void validate() throws TException {
-
 
9097
      // check for required fields
-
 
9098
    }
-
 
9099
 
-
 
9100
  }
-
 
9101
 
-
 
9102
  public static class getAgent_args implements TBase<getAgent_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAgent_args>   {
-
 
9103
    private static final TStruct STRUCT_DESC = new TStruct("getAgent_args");
-
 
9104
 
-
 
9105
    private static final TField AGENT_ID_FIELD_DESC = new TField("agentId", TType.I64, (short)1);
-
 
9106
 
-
 
9107
    private long agentId;
-
 
9108
 
-
 
9109
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9110
    public enum _Fields implements TFieldIdEnum {
-
 
9111
      AGENT_ID((short)1, "agentId");
-
 
9112
 
-
 
9113
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9114
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9115
 
-
 
9116
      static {
-
 
9117
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9118
          byId.put((int)field._thriftId, field);
-
 
9119
          byName.put(field.getFieldName(), field);
-
 
9120
        }
-
 
9121
      }
-
 
9122
 
-
 
9123
      /**
-
 
9124
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9125
       */
-
 
9126
      public static _Fields findByThriftId(int fieldId) {
-
 
9127
        return byId.get(fieldId);
-
 
9128
      }
-
 
9129
 
-
 
9130
      /**
-
 
9131
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9132
       * if it is not found.
-
 
9133
       */
-
 
9134
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9135
        _Fields fields = findByThriftId(fieldId);
-
 
9136
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9137
        return fields;
-
 
9138
      }
-
 
9139
 
-
 
9140
      /**
-
 
9141
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9142
       */
-
 
9143
      public static _Fields findByName(String name) {
-
 
9144
        return byName.get(name);
-
 
9145
      }
-
 
9146
 
-
 
9147
      private final short _thriftId;
-
 
9148
      private final String _fieldName;
-
 
9149
 
-
 
9150
      _Fields(short thriftId, String fieldName) {
-
 
9151
        _thriftId = thriftId;
-
 
9152
        _fieldName = fieldName;
-
 
9153
      }
-
 
9154
 
-
 
9155
      public short getThriftFieldId() {
-
 
9156
        return _thriftId;
-
 
9157
      }
-
 
9158
 
-
 
9159
      public String getFieldName() {
-
 
9160
        return _fieldName;
-
 
9161
      }
-
 
9162
    }
-
 
9163
 
-
 
9164
    // isset id assignments
-
 
9165
    private static final int __AGENTID_ISSET_ID = 0;
-
 
9166
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
9167
 
-
 
9168
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
9169
      put(_Fields.AGENT_ID, new FieldMetaData("agentId", TFieldRequirementType.DEFAULT, 
-
 
9170
          new FieldValueMetaData(TType.I64)));
-
 
9171
    }});
-
 
9172
 
-
 
9173
    static {
-
 
9174
      FieldMetaData.addStructMetaDataMap(getAgent_args.class, metaDataMap);
-
 
9175
    }
-
 
9176
 
-
 
9177
    public getAgent_args() {
-
 
9178
    }
-
 
9179
 
-
 
9180
    public getAgent_args(
-
 
9181
      long agentId)
-
 
9182
    {
-
 
9183
      this();
-
 
9184
      this.agentId = agentId;
-
 
9185
      setAgentIdIsSet(true);
-
 
9186
    }
-
 
9187
 
-
 
9188
    /**
-
 
9189
     * Performs a deep copy on <i>other</i>.
-
 
9190
     */
-
 
9191
    public getAgent_args(getAgent_args other) {
-
 
9192
      __isset_bit_vector.clear();
4248
      __isset_bit_vector.clear(__ACTIVITYID_ISSET_ID);
9193
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
9194
      this.agentId = other.agentId;
-
 
9195
    }
4249
    }
9196
 
4250
 
-
 
4251
    /** Returns true if field activityId is set (has been asigned a value) and false otherwise */
9197
    public getAgent_args deepCopy() {
4252
    public boolean isSetActivityId() {
9198
      return new getAgent_args(this);
4253
      return __isset_bit_vector.get(__ACTIVITYID_ISSET_ID);
9199
    }
4254
    }
9200
 
4255
 
9201
    @Deprecated
-
 
9202
    public getAgent_args clone() {
4256
    public void setActivityIdIsSet(boolean value) {
9203
      return new getAgent_args(this);
4257
      __isset_bit_vector.set(__ACTIVITYID_ISSET_ID, value);
9204
    }
4258
    }
9205
 
4259
 
9206
    public long getAgentId() {
4260
    public long getAgentId() {
9207
      return this.agentId;
4261
      return this.agentId;
9208
    }
4262
    }
9209
 
4263
 
9210
    public getAgent_args setAgentId(long agentId) {
4264
    public markAsRead_args setAgentId(long agentId) {
9211
      this.agentId = agentId;
4265
      this.agentId = agentId;
9212
      setAgentIdIsSet(true);
4266
      setAgentIdIsSet(true);
9213
      return this;
4267
      return this;
9214
    }
4268
    }
9215
 
4269
 
Line 9226... Line 4280...
9226
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
4280
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
9227
    }
4281
    }
9228
 
4282
 
9229
    public void setFieldValue(_Fields field, Object value) {
4283
    public void setFieldValue(_Fields field, Object value) {
9230
      switch (field) {
4284
      switch (field) {
-
 
4285
      case ACTIVITY_ID:
-
 
4286
        if (value == null) {
-
 
4287
          unsetActivityId();
-
 
4288
        } else {
-
 
4289
          setActivityId((Long)value);
-
 
4290
        }
-
 
4291
        break;
-
 
4292
 
9231
      case AGENT_ID:
4293
      case AGENT_ID:
9232
        if (value == null) {
4294
        if (value == null) {
9233
          unsetAgentId();
4295
          unsetAgentId();
9234
        } else {
4296
        } else {
9235
          setAgentId((Long)value);
4297
          setAgentId((Long)value);
Line 9243... Line 4305...
9243
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
4305
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
9244
    }
4306
    }
9245
 
4307
 
9246
    public Object getFieldValue(_Fields field) {
4308
    public Object getFieldValue(_Fields field) {
9247
      switch (field) {
4309
      switch (field) {
-
 
4310
      case ACTIVITY_ID:
-
 
4311
        return new Long(getActivityId());
-
 
4312
 
9248
      case AGENT_ID:
4313
      case AGENT_ID:
9249
        return new Long(getAgentId());
4314
        return new Long(getAgentId());
9250
 
4315
 
9251
      }
4316
      }
9252
      throw new IllegalStateException();
4317
      throw new IllegalStateException();
Line 9257... Line 4322...
9257
    }
4322
    }
9258
 
4323
 
9259
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4324
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
9260
    public boolean isSet(_Fields field) {
4325
    public boolean isSet(_Fields field) {
9261
      switch (field) {
4326
      switch (field) {
-
 
4327
      case ACTIVITY_ID:
-
 
4328
        return isSetActivityId();
9262
      case AGENT_ID:
4329
      case AGENT_ID:
9263
        return isSetAgentId();
4330
        return isSetAgentId();
9264
      }
4331
      }
9265
      throw new IllegalStateException();
4332
      throw new IllegalStateException();
9266
    }
4333
    }
Line 9271... Line 4338...
9271
 
4338
 
9272
    @Override
4339
    @Override
9273
    public boolean equals(Object that) {
4340
    public boolean equals(Object that) {
9274
      if (that == null)
4341
      if (that == null)
9275
        return false;
4342
        return false;
9276
      if (that instanceof getAgent_args)
4343
      if (that instanceof markAsRead_args)
9277
        return this.equals((getAgent_args)that);
4344
        return this.equals((markAsRead_args)that);
9278
      return false;
4345
      return false;
9279
    }
4346
    }
9280
 
4347
 
9281
    public boolean equals(getAgent_args that) {
4348
    public boolean equals(markAsRead_args that) {
9282
      if (that == null)
4349
      if (that == null)
9283
        return false;
4350
        return false;
9284
 
4351
 
-
 
4352
      boolean this_present_activityId = true;
-
 
4353
      boolean that_present_activityId = true;
-
 
4354
      if (this_present_activityId || that_present_activityId) {
-
 
4355
        if (!(this_present_activityId && that_present_activityId))
-
 
4356
          return false;
-
 
4357
        if (this.activityId != that.activityId)
-
 
4358
          return false;
-
 
4359
      }
-
 
4360
 
9285
      boolean this_present_agentId = true;
4361
      boolean this_present_agentId = true;
9286
      boolean that_present_agentId = true;
4362
      boolean that_present_agentId = true;
9287
      if (this_present_agentId || that_present_agentId) {
4363
      if (this_present_agentId || that_present_agentId) {
9288
        if (!(this_present_agentId && that_present_agentId))
4364
        if (!(this_present_agentId && that_present_agentId))
9289
          return false;
4365
          return false;
Line 9297... Line 4373...
9297
    @Override
4373
    @Override
9298
    public int hashCode() {
4374
    public int hashCode() {
9299
      return 0;
4375
      return 0;
9300
    }
4376
    }
9301
 
4377
 
9302
    public int compareTo(getAgent_args other) {
4378
    public int compareTo(markAsRead_args other) {
9303
      if (!getClass().equals(other.getClass())) {
4379
      if (!getClass().equals(other.getClass())) {
9304
        return getClass().getName().compareTo(other.getClass().getName());
4380
        return getClass().getName().compareTo(other.getClass().getName());
9305
      }
4381
      }
9306
 
4382
 
9307
      int lastComparison = 0;
4383
      int lastComparison = 0;
9308
      getAgent_args typedOther = (getAgent_args)other;
4384
      markAsRead_args typedOther = (markAsRead_args)other;
9309
 
4385
 
-
 
4386
      lastComparison = Boolean.valueOf(isSetActivityId()).compareTo(isSetActivityId());
-
 
4387
      if (lastComparison != 0) {
-
 
4388
        return lastComparison;
-
 
4389
      }
-
 
4390
      lastComparison = TBaseHelper.compareTo(activityId, typedOther.activityId);
-
 
4391
      if (lastComparison != 0) {
-
 
4392
        return lastComparison;
-
 
4393
      }
9310
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(isSetAgentId());
4394
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(isSetAgentId());
9311
      if (lastComparison != 0) {
4395
      if (lastComparison != 0) {
9312
        return lastComparison;
4396
        return lastComparison;
9313
      }
4397
      }
9314
      lastComparison = TBaseHelper.compareTo(agentId, typedOther.agentId);
4398
      lastComparison = TBaseHelper.compareTo(agentId, typedOther.agentId);
Line 9330... Line 4414...
9330
        _Fields fieldId = _Fields.findByThriftId(field.id);
4414
        _Fields fieldId = _Fields.findByThriftId(field.id);
9331
        if (fieldId == null) {
4415
        if (fieldId == null) {
9332
          TProtocolUtil.skip(iprot, field.type);
4416
          TProtocolUtil.skip(iprot, field.type);
9333
        } else {
4417
        } else {
9334
          switch (fieldId) {
4418
          switch (fieldId) {
-
 
4419
            case ACTIVITY_ID:
-
 
4420
              if (field.type == TType.I64) {
-
 
4421
                this.activityId = iprot.readI64();
-
 
4422
                setActivityIdIsSet(true);
-
 
4423
              } else { 
-
 
4424
                TProtocolUtil.skip(iprot, field.type);
-
 
4425
              }
-
 
4426
              break;
9335
            case AGENT_ID:
4427
            case AGENT_ID:
9336
              if (field.type == TType.I64) {
4428
              if (field.type == TType.I64) {
9337
                this.agentId = iprot.readI64();
4429
                this.agentId = iprot.readI64();
9338
                setAgentIdIsSet(true);
4430
                setAgentIdIsSet(true);
9339
              } else { 
4431
              } else { 
Line 9350... Line 4442...
9350
 
4442
 
9351
    public void write(TProtocol oprot) throws TException {
4443
    public void write(TProtocol oprot) throws TException {
9352
      validate();
4444
      validate();
9353
 
4445
 
9354
      oprot.writeStructBegin(STRUCT_DESC);
4446
      oprot.writeStructBegin(STRUCT_DESC);
-
 
4447
      oprot.writeFieldBegin(ACTIVITY_ID_FIELD_DESC);
-
 
4448
      oprot.writeI64(this.activityId);
-
 
4449
      oprot.writeFieldEnd();
9355
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
4450
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
9356
      oprot.writeI64(this.agentId);
4451
      oprot.writeI64(this.agentId);
9357
      oprot.writeFieldEnd();
4452
      oprot.writeFieldEnd();
9358
      oprot.writeFieldStop();
4453
      oprot.writeFieldStop();
9359
      oprot.writeStructEnd();
4454
      oprot.writeStructEnd();
9360
    }
4455
    }
9361
 
4456
 
9362
    @Override
4457
    @Override
9363
    public String toString() {
4458
    public String toString() {
9364
      StringBuilder sb = new StringBuilder("getAgent_args(");
4459
      StringBuilder sb = new StringBuilder("markAsRead_args(");
9365
      boolean first = true;
4460
      boolean first = true;
9366
 
4461
 
-
 
4462
      sb.append("activityId:");
-
 
4463
      sb.append(this.activityId);
-
 
4464
      first = false;
-
 
4465
      if (!first) sb.append(", ");
9367
      sb.append("agentId:");
4466
      sb.append("agentId:");
9368
      sb.append(this.agentId);
4467
      sb.append(this.agentId);
9369
      first = false;
4468
      first = false;
9370
      sb.append(")");
4469
      sb.append(")");
9371
      return sb.toString();
4470
      return sb.toString();
Line 9375... Line 4474...
9375
      // check for required fields
4474
      // check for required fields
9376
    }
4475
    }
9377
 
4476
 
9378
  }
4477
  }
9379
 
4478
 
9380
  public static class getAgent_result implements TBase<getAgent_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAgent_result>   {
4479
  public static class markAsRead_result implements TBase<markAsRead_result._Fields>, java.io.Serializable, Cloneable, Comparable<markAsRead_result>   {
9381
    private static final TStruct STRUCT_DESC = new TStruct("getAgent_result");
4480
    private static final TStruct STRUCT_DESC = new TStruct("markAsRead_result");
9382
 
4481
 
9383
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
9384
 
4482
 
9385
    private Agent success;
-
 
9386
 
4483
 
9387
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4484
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9388
    public enum _Fields implements TFieldIdEnum {
4485
    public enum _Fields implements TFieldIdEnum {
9389
      SUCCESS((short)0, "success");
-
 
-
 
4486
;
9390
 
4487
 
9391
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
4488
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
9392
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4489
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9393
 
4490
 
9394
      static {
4491
      static {
Line 9436... Line 4533...
9436
 
4533
 
9437
      public String getFieldName() {
4534
      public String getFieldName() {
9438
        return _fieldName;
4535
        return _fieldName;
9439
      }
4536
      }
9440
    }
4537
    }
9441
 
-
 
9442
    // isset id assignments
-
 
9443
 
-
 
9444
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4538
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9445
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
9446
          new StructMetaData(TType.STRUCT, Agent.class)));
-
 
9447
    }});
4539
    }});
9448
 
4540
 
9449
    static {
4541
    static {
9450
      FieldMetaData.addStructMetaDataMap(getAgent_result.class, metaDataMap);
4542
      FieldMetaData.addStructMetaDataMap(markAsRead_result.class, metaDataMap);
9451
    }
4543
    }
9452
 
4544
 
9453
    public getAgent_result() {
4545
    public markAsRead_result() {
9454
    }
-
 
9455
 
-
 
9456
    public getAgent_result(
-
 
9457
      Agent success)
-
 
9458
    {
-
 
9459
      this();
-
 
9460
      this.success = success;
-
 
9461
    }
4546
    }
9462
 
4547
 
9463
    /**
4548
    /**
9464
     * Performs a deep copy on <i>other</i>.
4549
     * Performs a deep copy on <i>other</i>.
9465
     */
4550
     */
9466
    public getAgent_result(getAgent_result other) {
4551
    public markAsRead_result(markAsRead_result other) {
9467
      if (other.isSetSuccess()) {
-
 
9468
        this.success = new Agent(other.success);
-
 
9469
      }
-
 
9470
    }
4552
    }
9471
 
4553
 
9472
    public getAgent_result deepCopy() {
4554
    public markAsRead_result deepCopy() {
9473
      return new getAgent_result(this);
4555
      return new markAsRead_result(this);
9474
    }
4556
    }
9475
 
4557
 
9476
    @Deprecated
4558
    @Deprecated
9477
    public getAgent_result clone() {
4559
    public markAsRead_result clone() {
9478
      return new getAgent_result(this);
4560
      return new markAsRead_result(this);
9479
    }
-
 
9480
 
-
 
9481
    public Agent getSuccess() {
-
 
9482
      return this.success;
-
 
9483
    }
-
 
9484
 
-
 
9485
    public getAgent_result setSuccess(Agent success) {
-
 
9486
      this.success = success;
-
 
9487
      return this;
-
 
9488
    }
-
 
9489
 
-
 
9490
    public void unsetSuccess() {
-
 
9491
      this.success = null;
-
 
9492
    }
-
 
9493
 
-
 
9494
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
9495
    public boolean isSetSuccess() {
-
 
9496
      return this.success != null;
-
 
9497
    }
-
 
9498
 
-
 
9499
    public void setSuccessIsSet(boolean value) {
-
 
9500
      if (!value) {
-
 
9501
        this.success = null;
-
 
9502
      }
-
 
9503
    }
4561
    }
9504
 
4562
 
9505
    public void setFieldValue(_Fields field, Object value) {
4563
    public void setFieldValue(_Fields field, Object value) {
9506
      switch (field) {
4564
      switch (field) {
9507
      case SUCCESS:
-
 
9508
        if (value == null) {
-
 
9509
          unsetSuccess();
-
 
9510
        } else {
-
 
9511
          setSuccess((Agent)value);
-
 
9512
        }
-
 
9513
        break;
-
 
9514
 
-
 
9515
      }
4565
      }
9516
    }
4566
    }
9517
 
4567
 
9518
    public void setFieldValue(int fieldID, Object value) {
4568
    public void setFieldValue(int fieldID, Object value) {
9519
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
4569
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
9520
    }
4570
    }
9521
 
4571
 
9522
    public Object getFieldValue(_Fields field) {
4572
    public Object getFieldValue(_Fields field) {
9523
      switch (field) {
4573
      switch (field) {
9524
      case SUCCESS:
-
 
9525
        return getSuccess();
-
 
9526
 
-
 
9527
      }
4574
      }
9528
      throw new IllegalStateException();
4575
      throw new IllegalStateException();
9529
    }
4576
    }
9530
 
4577
 
9531
    public Object getFieldValue(int fieldId) {
4578
    public Object getFieldValue(int fieldId) {
Line 9533... Line 4580...
9533
    }
4580
    }
9534
 
4581
 
9535
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4582
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
9536
    public boolean isSet(_Fields field) {
4583
    public boolean isSet(_Fields field) {
9537
      switch (field) {
4584
      switch (field) {
9538
      case SUCCESS:
-
 
9539
        return isSetSuccess();
-
 
9540
      }
4585
      }
9541
      throw new IllegalStateException();
4586
      throw new IllegalStateException();
9542
    }
4587
    }
9543
 
4588
 
9544
    public boolean isSet(int fieldID) {
4589
    public boolean isSet(int fieldID) {
Line 9547... Line 4592...
9547
 
4592
 
9548
    @Override
4593
    @Override
9549
    public boolean equals(Object that) {
4594
    public boolean equals(Object that) {
9550
      if (that == null)
4595
      if (that == null)
9551
        return false;
4596
        return false;
9552
      if (that instanceof getAgent_result)
4597
      if (that instanceof markAsRead_result)
9553
        return this.equals((getAgent_result)that);
4598
        return this.equals((markAsRead_result)that);
9554
      return false;
4599
      return false;
9555
    }
4600
    }
9556
 
4601
 
9557
    public boolean equals(getAgent_result that) {
4602
    public boolean equals(markAsRead_result that) {
9558
      if (that == null)
4603
      if (that == null)
9559
        return false;
4604
        return false;
9560
 
4605
 
9561
      boolean this_present_success = true && this.isSetSuccess();
-
 
9562
      boolean that_present_success = true && that.isSetSuccess();
-
 
9563
      if (this_present_success || that_present_success) {
-
 
9564
        if (!(this_present_success && that_present_success))
-
 
9565
          return false;
-
 
9566
        if (!this.success.equals(that.success))
-
 
9567
          return false;
-
 
9568
      }
-
 
9569
 
-
 
9570
      return true;
4606
      return true;
9571
    }
4607
    }
9572
 
4608
 
9573
    @Override
4609
    @Override
9574
    public int hashCode() {
4610
    public int hashCode() {
9575
      return 0;
4611
      return 0;
9576
    }
4612
    }
9577
 
4613
 
9578
    public int compareTo(getAgent_result other) {
4614
    public int compareTo(markAsRead_result other) {
9579
      if (!getClass().equals(other.getClass())) {
4615
      if (!getClass().equals(other.getClass())) {
9580
        return getClass().getName().compareTo(other.getClass().getName());
4616
        return getClass().getName().compareTo(other.getClass().getName());
9581
      }
4617
      }
9582
 
4618
 
9583
      int lastComparison = 0;
4619
      int lastComparison = 0;
9584
      getAgent_result typedOther = (getAgent_result)other;
4620
      markAsRead_result typedOther = (markAsRead_result)other;
9585
 
4621
 
9586
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
9587
      if (lastComparison != 0) {
-
 
9588
        return lastComparison;
-
 
9589
      }
-
 
9590
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
9591
      if (lastComparison != 0) {
-
 
9592
        return lastComparison;
-
 
9593
      }
-
 
9594
      return 0;
4622
      return 0;
9595
    }
4623
    }
9596
 
4624
 
9597
    public void read(TProtocol iprot) throws TException {
4625
    public void read(TProtocol iprot) throws TException {
9598
      TField field;
4626
      TField field;
Line 9606... Line 4634...
9606
        _Fields fieldId = _Fields.findByThriftId(field.id);
4634
        _Fields fieldId = _Fields.findByThriftId(field.id);
9607
        if (fieldId == null) {
4635
        if (fieldId == null) {
9608
          TProtocolUtil.skip(iprot, field.type);
4636
          TProtocolUtil.skip(iprot, field.type);
9609
        } else {
4637
        } else {
9610
          switch (fieldId) {
4638
          switch (fieldId) {
9611
            case SUCCESS:
-
 
9612
              if (field.type == TType.STRUCT) {
-
 
9613
                this.success = new Agent();
-
 
9614
                this.success.read(iprot);
-
 
9615
              } else { 
-
 
9616
                TProtocolUtil.skip(iprot, field.type);
-
 
9617
              }
-
 
9618
              break;
-
 
9619
          }
4639
          }
9620
          iprot.readFieldEnd();
4640
          iprot.readFieldEnd();
9621
        }
4641
        }
9622
      }
4642
      }
9623
      iprot.readStructEnd();
4643
      iprot.readStructEnd();
Line 9625... Line 4645...
9625
    }
4645
    }
9626
 
4646
 
9627
    public void write(TProtocol oprot) throws TException {
4647
    public void write(TProtocol oprot) throws TException {
9628
      oprot.writeStructBegin(STRUCT_DESC);
4648
      oprot.writeStructBegin(STRUCT_DESC);
9629
 
4649
 
9630
      if (this.isSetSuccess()) {
-
 
9631
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
9632
        this.success.write(oprot);
-
 
9633
        oprot.writeFieldEnd();
-
 
9634
      }
-
 
9635
      oprot.writeFieldStop();
4650
      oprot.writeFieldStop();
9636
      oprot.writeStructEnd();
4651
      oprot.writeStructEnd();
9637
    }
4652
    }
9638
 
4653
 
9639
    @Override
4654
    @Override
9640
    public String toString() {
4655
    public String toString() {
9641
      StringBuilder sb = new StringBuilder("getAgent_result(");
4656
      StringBuilder sb = new StringBuilder("markAsRead_result(");
9642
      boolean first = true;
4657
      boolean first = true;
9643
 
4658
 
9644
      sb.append("success:");
-
 
9645
      if (this.success == null) {
-
 
9646
        sb.append("null");
-
 
9647
      } else {
-
 
9648
        sb.append(this.success);
-
 
9649
      }
-
 
9650
      first = false;
-
 
9651
      sb.append(")");
4659
      sb.append(")");
9652
      return sb.toString();
4660
      return sb.toString();
9653
    }
4661
    }
9654
 
4662
 
9655
    public void validate() throws TException {
4663
    public void validate() throws TException {
9656
      // check for required fields
4664
      // check for required fields
9657
    }
4665
    }
9658
 
4666
 
9659
  }
4667
  }
9660
 
4668
 
9661
  public static class getAgentByEmailId_args implements TBase<getAgentByEmailId_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAgentByEmailId_args>   {
4669
  public static class getAgents_args implements TBase<getAgents_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAgents_args>   {
9662
    private static final TStruct STRUCT_DESC = new TStruct("getAgentByEmailId_args");
4670
    private static final TStruct STRUCT_DESC = new TStruct("getAgents_args");
9663
 
4671
 
9664
    private static final TField AGENT_EMAIL_ID_FIELD_DESC = new TField("agentEmailId", TType.STRING, (short)1);
4672
    private static final TField SEARCH_FILTER_FIELD_DESC = new TField("searchFilter", TType.STRUCT, (short)1);
9665
 
4673
 
9666
    private String agentEmailId;
4674
    private SearchFilter searchFilter;
9667
 
4675
 
9668
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4676
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9669
    public enum _Fields implements TFieldIdEnum {
4677
    public enum _Fields implements TFieldIdEnum {
9670
      AGENT_EMAIL_ID((short)1, "agentEmailId");
4678
      SEARCH_FILTER((short)1, "searchFilter");
9671
 
4679
 
9672
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
4680
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
9673
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4681
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9674
 
4682
 
9675
      static {
4683
      static {
Line 9721... Line 4729...
9721
    }
4729
    }
9722
 
4730
 
9723
    // isset id assignments
4731
    // isset id assignments
9724
 
4732
 
9725
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4733
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9726
      put(_Fields.AGENT_EMAIL_ID, new FieldMetaData("agentEmailId", TFieldRequirementType.DEFAULT, 
4734
      put(_Fields.SEARCH_FILTER, new FieldMetaData("searchFilter", TFieldRequirementType.DEFAULT, 
9727
          new FieldValueMetaData(TType.STRING)));
4735
          new StructMetaData(TType.STRUCT, SearchFilter.class)));
9728
    }});
4736
    }});
9729
 
4737
 
9730
    static {
4738
    static {
9731
      FieldMetaData.addStructMetaDataMap(getAgentByEmailId_args.class, metaDataMap);
4739
      FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
9732
    }
4740
    }
9733
 
4741
 
9734
    public getAgentByEmailId_args() {
4742
    public getAgents_args() {
9735
    }
4743
    }
9736
 
4744
 
9737
    public getAgentByEmailId_args(
4745
    public getAgents_args(
9738
      String agentEmailId)
4746
      SearchFilter searchFilter)
9739
    {
4747
    {
9740
      this();
4748
      this();
9741
      this.agentEmailId = agentEmailId;
4749
      this.searchFilter = searchFilter;
9742
    }
4750
    }
9743
 
4751
 
9744
    /**
4752
    /**
9745
     * Performs a deep copy on <i>other</i>.
4753
     * Performs a deep copy on <i>other</i>.
9746
     */
4754
     */
9747
    public getAgentByEmailId_args(getAgentByEmailId_args other) {
4755
    public getAgents_args(getAgents_args other) {
9748
      if (other.isSetAgentEmailId()) {
4756
      if (other.isSetSearchFilter()) {
9749
        this.agentEmailId = other.agentEmailId;
4757
        this.searchFilter = new SearchFilter(other.searchFilter);
9750
      }
4758
      }
9751
    }
4759
    }
9752
 
4760
 
9753
    public getAgentByEmailId_args deepCopy() {
4761
    public getAgents_args deepCopy() {
9754
      return new getAgentByEmailId_args(this);
4762
      return new getAgents_args(this);
9755
    }
4763
    }
9756
 
4764
 
9757
    @Deprecated
4765
    @Deprecated
9758
    public getAgentByEmailId_args clone() {
4766
    public getAgents_args clone() {
9759
      return new getAgentByEmailId_args(this);
4767
      return new getAgents_args(this);
9760
    }
4768
    }
9761
 
4769
 
9762
    public String getAgentEmailId() {
4770
    public SearchFilter getSearchFilter() {
9763
      return this.agentEmailId;
4771
      return this.searchFilter;
9764
    }
4772
    }
9765
 
4773
 
9766
    public getAgentByEmailId_args setAgentEmailId(String agentEmailId) {
4774
    public getAgents_args setSearchFilter(SearchFilter searchFilter) {
9767
      this.agentEmailId = agentEmailId;
4775
      this.searchFilter = searchFilter;
9768
      return this;
4776
      return this;
9769
    }
4777
    }
9770
 
4778
 
9771
    public void unsetAgentEmailId() {
4779
    public void unsetSearchFilter() {
9772
      this.agentEmailId = null;
4780
      this.searchFilter = null;
9773
    }
4781
    }
9774
 
4782
 
9775
    /** Returns true if field agentEmailId is set (has been asigned a value) and false otherwise */
4783
    /** Returns true if field searchFilter is set (has been asigned a value) and false otherwise */
9776
    public boolean isSetAgentEmailId() {
4784
    public boolean isSetSearchFilter() {
9777
      return this.agentEmailId != null;
4785
      return this.searchFilter != null;
9778
    }
4786
    }
9779
 
4787
 
9780
    public void setAgentEmailIdIsSet(boolean value) {
4788
    public void setSearchFilterIsSet(boolean value) {
9781
      if (!value) {
4789
      if (!value) {
9782
        this.agentEmailId = null;
4790
        this.searchFilter = null;
9783
      }
4791
      }
9784
    }
4792
    }
9785
 
4793
 
9786
    public void setFieldValue(_Fields field, Object value) {
4794
    public void setFieldValue(_Fields field, Object value) {
9787
      switch (field) {
4795
      switch (field) {
9788
      case AGENT_EMAIL_ID:
4796
      case SEARCH_FILTER:
9789
        if (value == null) {
4797
        if (value == null) {
9790
          unsetAgentEmailId();
4798
          unsetSearchFilter();
9791
        } else {
4799
        } else {
9792
          setAgentEmailId((String)value);
4800
          setSearchFilter((SearchFilter)value);
9793
        }
4801
        }
9794
        break;
4802
        break;
9795
 
4803
 
9796
      }
4804
      }
9797
    }
4805
    }
Line 9800... Line 4808...
9800
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
4808
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
9801
    }
4809
    }
9802
 
4810
 
9803
    public Object getFieldValue(_Fields field) {
4811
    public Object getFieldValue(_Fields field) {
9804
      switch (field) {
4812
      switch (field) {
9805
      case AGENT_EMAIL_ID:
4813
      case SEARCH_FILTER:
9806
        return getAgentEmailId();
4814
        return getSearchFilter();
9807
 
4815
 
9808
      }
4816
      }
9809
      throw new IllegalStateException();
4817
      throw new IllegalStateException();
9810
    }
4818
    }
9811
 
4819
 
Line 9814... Line 4822...
9814
    }
4822
    }
9815
 
4823
 
9816
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4824
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
9817
    public boolean isSet(_Fields field) {
4825
    public boolean isSet(_Fields field) {
9818
      switch (field) {
4826
      switch (field) {
9819
      case AGENT_EMAIL_ID:
4827
      case SEARCH_FILTER:
9820
        return isSetAgentEmailId();
4828
        return isSetSearchFilter();
9821
      }
4829
      }
9822
      throw new IllegalStateException();
4830
      throw new IllegalStateException();
9823
    }
4831
    }
9824
 
4832
 
9825
    public boolean isSet(int fieldID) {
4833
    public boolean isSet(int fieldID) {
Line 9828... Line 4836...
9828
 
4836
 
9829
    @Override
4837
    @Override
9830
    public boolean equals(Object that) {
4838
    public boolean equals(Object that) {
9831
      if (that == null)
4839
      if (that == null)
9832
        return false;
4840
        return false;
9833
      if (that instanceof getAgentByEmailId_args)
4841
      if (that instanceof getAgents_args)
9834
        return this.equals((getAgentByEmailId_args)that);
4842
        return this.equals((getAgents_args)that);
9835
      return false;
4843
      return false;
9836
    }
4844
    }
9837
 
4845
 
9838
    public boolean equals(getAgentByEmailId_args that) {
4846
    public boolean equals(getAgents_args that) {
9839
      if (that == null)
4847
      if (that == null)
9840
        return false;
4848
        return false;
9841
 
4849
 
9842
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
4850
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
9843
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
4851
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
9844
      if (this_present_agentEmailId || that_present_agentEmailId) {
4852
      if (this_present_searchFilter || that_present_searchFilter) {
9845
        if (!(this_present_agentEmailId && that_present_agentEmailId))
4853
        if (!(this_present_searchFilter && that_present_searchFilter))
9846
          return false;
4854
          return false;
9847
        if (!this.agentEmailId.equals(that.agentEmailId))
4855
        if (!this.searchFilter.equals(that.searchFilter))
9848
          return false;
4856
          return false;
9849
      }
4857
      }
9850
 
4858
 
9851
      return true;
4859
      return true;
9852
    }
4860
    }
Line 9854... Line 4862...
9854
    @Override
4862
    @Override
9855
    public int hashCode() {
4863
    public int hashCode() {
9856
      return 0;
4864
      return 0;
9857
    }
4865
    }
9858
 
4866
 
9859
    public int compareTo(getAgentByEmailId_args other) {
4867
    public int compareTo(getAgents_args other) {
9860
      if (!getClass().equals(other.getClass())) {
4868
      if (!getClass().equals(other.getClass())) {
9861
        return getClass().getName().compareTo(other.getClass().getName());
4869
        return getClass().getName().compareTo(other.getClass().getName());
9862
      }
4870
      }
9863
 
4871
 
9864
      int lastComparison = 0;
4872
      int lastComparison = 0;
9865
      getAgentByEmailId_args typedOther = (getAgentByEmailId_args)other;
4873
      getAgents_args typedOther = (getAgents_args)other;
9866
 
4874
 
9867
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(isSetAgentEmailId());
4875
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(isSetSearchFilter());
9868
      if (lastComparison != 0) {
4876
      if (lastComparison != 0) {
9869
        return lastComparison;
4877
        return lastComparison;
9870
      }
4878
      }
9871
      lastComparison = TBaseHelper.compareTo(agentEmailId, typedOther.agentEmailId);
4879
      lastComparison = TBaseHelper.compareTo(searchFilter, typedOther.searchFilter);
9872
      if (lastComparison != 0) {
4880
      if (lastComparison != 0) {
9873
        return lastComparison;
4881
        return lastComparison;
9874
      }
4882
      }
9875
      return 0;
4883
      return 0;
9876
    }
4884
    }
Line 9887... Line 4895...
9887
        _Fields fieldId = _Fields.findByThriftId(field.id);
4895
        _Fields fieldId = _Fields.findByThriftId(field.id);
9888
        if (fieldId == null) {
4896
        if (fieldId == null) {
9889
          TProtocolUtil.skip(iprot, field.type);
4897
          TProtocolUtil.skip(iprot, field.type);
9890
        } else {
4898
        } else {
9891
          switch (fieldId) {
4899
          switch (fieldId) {
9892
            case AGENT_EMAIL_ID:
4900
            case SEARCH_FILTER:
9893
              if (field.type == TType.STRING) {
4901
              if (field.type == TType.STRUCT) {
-
 
4902
                this.searchFilter = new SearchFilter();
9894
                this.agentEmailId = iprot.readString();
4903
                this.searchFilter.read(iprot);
9895
              } else { 
4904
              } else { 
9896
                TProtocolUtil.skip(iprot, field.type);
4905
                TProtocolUtil.skip(iprot, field.type);
9897
              }
4906
              }
9898
              break;
4907
              break;
9899
          }
4908
          }
Line 9906... Line 4915...
9906
 
4915
 
9907
    public void write(TProtocol oprot) throws TException {
4916
    public void write(TProtocol oprot) throws TException {
9908
      validate();
4917
      validate();
9909
 
4918
 
9910
      oprot.writeStructBegin(STRUCT_DESC);
4919
      oprot.writeStructBegin(STRUCT_DESC);
9911
      if (this.agentEmailId != null) {
4920
      if (this.searchFilter != null) {
9912
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
4921
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
9913
        oprot.writeString(this.agentEmailId);
4922
        this.searchFilter.write(oprot);
9914
        oprot.writeFieldEnd();
4923
        oprot.writeFieldEnd();
9915
      }
4924
      }
9916
      oprot.writeFieldStop();
4925
      oprot.writeFieldStop();
9917
      oprot.writeStructEnd();
4926
      oprot.writeStructEnd();
9918
    }
4927
    }
9919
 
4928
 
9920
    @Override
4929
    @Override
9921
    public String toString() {
4930
    public String toString() {
9922
      StringBuilder sb = new StringBuilder("getAgentByEmailId_args(");
4931
      StringBuilder sb = new StringBuilder("getAgents_args(");
9923
      boolean first = true;
4932
      boolean first = true;
9924
 
4933
 
9925
      sb.append("agentEmailId:");
4934
      sb.append("searchFilter:");
9926
      if (this.agentEmailId == null) {
4935
      if (this.searchFilter == null) {
9927
        sb.append("null");
4936
        sb.append("null");
9928
      } else {
4937
      } else {
9929
        sb.append(this.agentEmailId);
4938
        sb.append(this.searchFilter);
9930
      }
4939
      }
9931
      first = false;
4940
      first = false;
9932
      sb.append(")");
4941
      sb.append(")");
9933
      return sb.toString();
4942
      return sb.toString();
9934
    }
4943
    }
Line 9937... Line 4946...
9937
      // check for required fields
4946
      // check for required fields
9938
    }
4947
    }
9939
 
4948
 
9940
  }
4949
  }
9941
 
4950
 
9942
  public static class getAgentByEmailId_result implements TBase<getAgentByEmailId_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAgentByEmailId_result>   {
4951
  public static class getAgents_result implements TBase<getAgents_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAgents_result>   {
9943
    private static final TStruct STRUCT_DESC = new TStruct("getAgentByEmailId_result");
4952
    private static final TStruct STRUCT_DESC = new TStruct("getAgents_result");
9944
 
4953
 
9945
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
4954
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
9946
 
4955
 
9947
    private Agent success;
4956
    private List<Agent> success;
9948
 
4957
 
9949
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4958
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9950
    public enum _Fields implements TFieldIdEnum {
4959
    public enum _Fields implements TFieldIdEnum {
9951
      SUCCESS((short)0, "success");
4960
      SUCCESS((short)0, "success");
9952
 
4961
 
Line 10003... Line 5012...
10003
 
5012
 
10004
    // isset id assignments
5013
    // isset id assignments
10005
 
5014
 
10006
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5015
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10007
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
5016
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
5017
          new ListMetaData(TType.LIST, 
10008
          new StructMetaData(TType.STRUCT, Agent.class)));
5018
              new StructMetaData(TType.STRUCT, Agent.class))));
10009
    }});
5019
    }});
10010
 
5020
 
10011
    static {
5021
    static {
10012
      FieldMetaData.addStructMetaDataMap(getAgentByEmailId_result.class, metaDataMap);
5022
      FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
10013
    }
5023
    }
10014
 
5024
 
10015
    public getAgentByEmailId_result() {
5025
    public getAgents_result() {
10016
    }
5026
    }
10017
 
5027
 
10018
    public getAgentByEmailId_result(
5028
    public getAgents_result(
10019
      Agent success)
5029
      List<Agent> success)
10020
    {
5030
    {
10021
      this();
5031
      this();
10022
      this.success = success;
5032
      this.success = success;
10023
    }
5033
    }
10024
 
5034
 
10025
    /**
5035
    /**
10026
     * Performs a deep copy on <i>other</i>.
5036
     * Performs a deep copy on <i>other</i>.
10027
     */
5037
     */
10028
    public getAgentByEmailId_result(getAgentByEmailId_result other) {
5038
    public getAgents_result(getAgents_result other) {
10029
      if (other.isSetSuccess()) {
5039
      if (other.isSetSuccess()) {
-
 
5040
        List<Agent> __this__success = new ArrayList<Agent>();
-
 
5041
        for (Agent other_element : other.success) {
-
 
5042
          __this__success.add(new Agent(other_element));
-
 
5043
        }
10030
        this.success = new Agent(other.success);
5044
        this.success = __this__success;
10031
      }
5045
      }
10032
    }
5046
    }
10033
 
5047
 
10034
    public getAgentByEmailId_result deepCopy() {
5048
    public getAgents_result deepCopy() {
10035
      return new getAgentByEmailId_result(this);
5049
      return new getAgents_result(this);
10036
    }
5050
    }
10037
 
5051
 
10038
    @Deprecated
5052
    @Deprecated
10039
    public getAgentByEmailId_result clone() {
5053
    public getAgents_result clone() {
10040
      return new getAgentByEmailId_result(this);
5054
      return new getAgents_result(this);
-
 
5055
    }
-
 
5056
 
-
 
5057
    public int getSuccessSize() {
-
 
5058
      return (this.success == null) ? 0 : this.success.size();
-
 
5059
    }
-
 
5060
 
-
 
5061
    public java.util.Iterator<Agent> getSuccessIterator() {
-
 
5062
      return (this.success == null) ? null : this.success.iterator();
-
 
5063
    }
-
 
5064
 
-
 
5065
    public void addToSuccess(Agent elem) {
-
 
5066
      if (this.success == null) {
-
 
5067
        this.success = new ArrayList<Agent>();
-
 
5068
      }
-
 
5069
      this.success.add(elem);
10041
    }
5070
    }
10042
 
5071
 
10043
    public Agent getSuccess() {
5072
    public List<Agent> getSuccess() {
10044
      return this.success;
5073
      return this.success;
10045
    }
5074
    }
10046
 
5075
 
10047
    public getAgentByEmailId_result setSuccess(Agent success) {
5076
    public getAgents_result setSuccess(List<Agent> success) {
10048
      this.success = success;
5077
      this.success = success;
10049
      return this;
5078
      return this;
10050
    }
5079
    }
10051
 
5080
 
10052
    public void unsetSuccess() {
5081
    public void unsetSuccess() {
Line 10068... Line 5097...
10068
      switch (field) {
5097
      switch (field) {
10069
      case SUCCESS:
5098
      case SUCCESS:
10070
        if (value == null) {
5099
        if (value == null) {
10071
          unsetSuccess();
5100
          unsetSuccess();
10072
        } else {
5101
        } else {
10073
          setSuccess((Agent)value);
5102
          setSuccess((List<Agent>)value);
10074
        }
5103
        }
10075
        break;
5104
        break;
10076
 
5105
 
10077
      }
5106
      }
10078
    }
5107
    }
Line 10109... Line 5138...
10109
 
5138
 
10110
    @Override
5139
    @Override
10111
    public boolean equals(Object that) {
5140
    public boolean equals(Object that) {
10112
      if (that == null)
5141
      if (that == null)
10113
        return false;
5142
        return false;
10114
      if (that instanceof getAgentByEmailId_result)
5143
      if (that instanceof getAgents_result)
10115
        return this.equals((getAgentByEmailId_result)that);
5144
        return this.equals((getAgents_result)that);
10116
      return false;
5145
      return false;
10117
    }
5146
    }
10118
 
5147
 
10119
    public boolean equals(getAgentByEmailId_result that) {
5148
    public boolean equals(getAgents_result that) {
10120
      if (that == null)
5149
      if (that == null)
10121
        return false;
5150
        return false;
10122
 
5151
 
10123
      boolean this_present_success = true && this.isSetSuccess();
5152
      boolean this_present_success = true && this.isSetSuccess();
10124
      boolean that_present_success = true && that.isSetSuccess();
5153
      boolean that_present_success = true && that.isSetSuccess();
Line 10135... Line 5164...
10135
    @Override
5164
    @Override
10136
    public int hashCode() {
5165
    public int hashCode() {
10137
      return 0;
5166
      return 0;
10138
    }
5167
    }
10139
 
5168
 
10140
    public int compareTo(getAgentByEmailId_result other) {
5169
    public int compareTo(getAgents_result other) {
10141
      if (!getClass().equals(other.getClass())) {
5170
      if (!getClass().equals(other.getClass())) {
10142
        return getClass().getName().compareTo(other.getClass().getName());
5171
        return getClass().getName().compareTo(other.getClass().getName());
10143
      }
5172
      }
10144
 
5173
 
10145
      int lastComparison = 0;
5174
      int lastComparison = 0;
10146
      getAgentByEmailId_result typedOther = (getAgentByEmailId_result)other;
5175
      getAgents_result typedOther = (getAgents_result)other;
10147
 
5176
 
10148
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
5177
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
10149
      if (lastComparison != 0) {
5178
      if (lastComparison != 0) {
10150
        return lastComparison;
5179
        return lastComparison;
10151
      }
5180
      }
Line 10169... Line 5198...
10169
        if (fieldId == null) {
5198
        if (fieldId == null) {
10170
          TProtocolUtil.skip(iprot, field.type);
5199
          TProtocolUtil.skip(iprot, field.type);
10171
        } else {
5200
        } else {
10172
          switch (fieldId) {
5201
          switch (fieldId) {
10173
            case SUCCESS:
5202
            case SUCCESS:
10174
              if (field.type == TType.STRUCT) {
5203
              if (field.type == TType.LIST) {
-
 
5204
                {
-
 
5205
                  TList _list20 = iprot.readListBegin();
-
 
5206
                  this.success = new ArrayList<Agent>(_list20.size);
-
 
5207
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
-
 
5208
                  {
-
 
5209
                    Agent _elem22;
10175
                this.success = new Agent();
5210
                    _elem22 = new Agent();
10176
                this.success.read(iprot);
5211
                    _elem22.read(iprot);
-
 
5212
                    this.success.add(_elem22);
-
 
5213
                  }
-
 
5214
                  iprot.readListEnd();
-
 
5215
                }
10177
              } else { 
5216
              } else { 
10178
                TProtocolUtil.skip(iprot, field.type);
5217
                TProtocolUtil.skip(iprot, field.type);
10179
              }
5218
              }
10180
              break;
5219
              break;
10181
          }
5220
          }
Line 10189... Line 5228...
10189
    public void write(TProtocol oprot) throws TException {
5228
    public void write(TProtocol oprot) throws TException {
10190
      oprot.writeStructBegin(STRUCT_DESC);
5229
      oprot.writeStructBegin(STRUCT_DESC);
10191
 
5230
 
10192
      if (this.isSetSuccess()) {
5231
      if (this.isSetSuccess()) {
10193
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5232
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
5233
        {
-
 
5234
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
5235
          for (Agent _iter23 : this.success)
-
 
5236
          {
10194
        this.success.write(oprot);
5237
            _iter23.write(oprot);
-
 
5238
          }
-
 
5239
          oprot.writeListEnd();
-
 
5240
        }
10195
        oprot.writeFieldEnd();
5241
        oprot.writeFieldEnd();
10196
      }
5242
      }
10197
      oprot.writeFieldStop();
5243
      oprot.writeFieldStop();
10198
      oprot.writeStructEnd();
5244
      oprot.writeStructEnd();
10199
    }
5245
    }
10200
 
5246
 
10201
    @Override
5247
    @Override
10202
    public String toString() {
5248
    public String toString() {
10203
      StringBuilder sb = new StringBuilder("getAgentByEmailId_result(");
5249
      StringBuilder sb = new StringBuilder("getAgents_result(");
10204
      boolean first = true;
5250
      boolean first = true;
10205
 
5251
 
10206
      sb.append("success:");
5252
      sb.append("success:");
10207
      if (this.success == null) {
5253
      if (this.success == null) {
10208
        sb.append("null");
5254
        sb.append("null");
Line 11308... Line 6354...
11308
        } else {
6354
        } else {
11309
          switch (fieldId) {
6355
          switch (fieldId) {
11310
            case SUCCESS:
6356
            case SUCCESS:
11311
              if (field.type == TType.LIST) {
6357
              if (field.type == TType.LIST) {
11312
                {
6358
                {
11313
                  TList _list32 = iprot.readListBegin();
6359
                  TList _list24 = iprot.readListBegin();
11314
                  this.success = new ArrayList<String>(_list32.size);
6360
                  this.success = new ArrayList<String>(_list24.size);
11315
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
6361
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
11316
                  {
6362
                  {
11317
                    String _elem34;
6363
                    String _elem26;
11318
                    _elem34 = iprot.readString();
6364
                    _elem26 = iprot.readString();
11319
                    this.success.add(_elem34);
6365
                    this.success.add(_elem26);
11320
                  }
6366
                  }
11321
                  iprot.readListEnd();
6367
                  iprot.readListEnd();
11322
                }
6368
                }
11323
              } else { 
6369
              } else { 
11324
                TProtocolUtil.skip(iprot, field.type);
6370
                TProtocolUtil.skip(iprot, field.type);
Line 11337... Line 6383...
11337
 
6383
 
11338
      if (this.isSetSuccess()) {
6384
      if (this.isSetSuccess()) {
11339
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6385
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11340
        {
6386
        {
11341
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
6387
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
11342
          for (String _iter35 : this.success)
6388
          for (String _iter27 : this.success)
11343
          {
6389
          {
11344
            oprot.writeString(_iter35);
6390
            oprot.writeString(_iter27);
11345
          }
6391
          }
11346
          oprot.writeListEnd();
6392
          oprot.writeListEnd();
11347
        }
6393
        }
11348
        oprot.writeFieldEnd();
6394
        oprot.writeFieldEnd();
11349
      }
6395
      }
Line 11906... Line 6952...
11906
        } else {
6952
        } else {
11907
          switch (fieldId) {
6953
          switch (fieldId) {
11908
            case SUCCESS:
6954
            case SUCCESS:
11909
              if (field.type == TType.LIST) {
6955
              if (field.type == TType.LIST) {
11910
                {
6956
                {
11911
                  TList _list36 = iprot.readListBegin();
6957
                  TList _list28 = iprot.readListBegin();
11912
                  this.success = new ArrayList<String>(_list36.size);
6958
                  this.success = new ArrayList<String>(_list28.size);
11913
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
6959
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
11914
                  {
6960
                  {
11915
                    String _elem38;
6961
                    String _elem30;
11916
                    _elem38 = iprot.readString();
6962
                    _elem30 = iprot.readString();
11917
                    this.success.add(_elem38);
6963
                    this.success.add(_elem30);
11918
                  }
6964
                  }
11919
                  iprot.readListEnd();
6965
                  iprot.readListEnd();
11920
                }
6966
                }
11921
              } else { 
6967
              } else { 
11922
                TProtocolUtil.skip(iprot, field.type);
6968
                TProtocolUtil.skip(iprot, field.type);
Line 11935... Line 6981...
11935
 
6981
 
11936
      if (this.isSetSuccess()) {
6982
      if (this.isSetSuccess()) {
11937
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6983
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11938
        {
6984
        {
11939
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
6985
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
11940
          for (String _iter39 : this.success)
6986
          for (String _iter31 : this.success)
11941
          {
6987
          {
11942
            oprot.writeString(_iter39);
6988
            oprot.writeString(_iter31);
11943
          }
6989
          }
11944
          oprot.writeListEnd();
6990
          oprot.writeListEnd();
11945
        }
6991
        }
11946
        oprot.writeFieldEnd();
6992
        oprot.writeFieldEnd();
11947
      }
6993
      }