Subversion Repositories SmartDukaan

Rev

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

Rev 3087 Rev 3137
Line 29... Line 29...
29
 
29
 
30
    public List<Ticket> getTickets(long customerId) throws TException;
30
    public List<Ticket> getTickets(long customerId) throws TException;
31
 
31
 
32
    public List<Ticket> getAssignedTickets(long agentId) throws TException;
32
    public List<Ticket> getAssignedTickets(long agentId) throws TException;
33
 
33
 
34
    public List<Ticket> getOpenTickets() throws TException;
34
    public List<Ticket> getUnassignedTickets() throws TException;
-
 
35
 
-
 
36
    public List<Ticket> getAllTickets(long agentId) throws TException;
35
 
37
 
36
    public Ticket getTicket(long ticketId) throws TException;
38
    public Ticket getTicket(long ticketId) throws TException;
37
 
39
 
38
    public void updateTicket(Ticket ticket) throws TException;
40
    public void updateTicket(Ticket ticket) throws TException;
39
 
41
 
Line 154... Line 156...
154
        return result.success;
156
        return result.success;
155
      }
157
      }
156
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAssignedTickets failed: unknown result");
158
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAssignedTickets failed: unknown result");
157
    }
159
    }
158
 
160
 
159
    public List<Ticket> getOpenTickets() throws TException
161
    public List<Ticket> getUnassignedTickets() throws TException
160
    {
162
    {
161
      send_getOpenTickets();
163
      send_getUnassignedTickets();
162
      return recv_getOpenTickets();
164
      return recv_getUnassignedTickets();
163
    }
165
    }
164
 
166
 
165
    public void send_getOpenTickets() throws TException
167
    public void send_getUnassignedTickets() throws TException
166
    {
168
    {
167
      oprot_.writeMessageBegin(new TMessage("getOpenTickets", TMessageType.CALL, seqid_));
169
      oprot_.writeMessageBegin(new TMessage("getUnassignedTickets", TMessageType.CALL, seqid_));
168
      getOpenTickets_args args = new getOpenTickets_args();
170
      getUnassignedTickets_args args = new getUnassignedTickets_args();
169
      args.write(oprot_);
171
      args.write(oprot_);
170
      oprot_.writeMessageEnd();
172
      oprot_.writeMessageEnd();
171
      oprot_.getTransport().flush();
173
      oprot_.getTransport().flush();
172
    }
174
    }
173
 
175
 
174
    public List<Ticket> recv_getOpenTickets() throws TException
176
    public List<Ticket> recv_getUnassignedTickets() throws TException
175
    {
177
    {
176
      TMessage msg = iprot_.readMessageBegin();
178
      TMessage msg = iprot_.readMessageBegin();
177
      if (msg.type == TMessageType.EXCEPTION) {
179
      if (msg.type == TMessageType.EXCEPTION) {
178
        TApplicationException x = TApplicationException.read(iprot_);
180
        TApplicationException x = TApplicationException.read(iprot_);
179
        iprot_.readMessageEnd();
181
        iprot_.readMessageEnd();
180
        throw x;
182
        throw x;
181
      }
183
      }
182
      getOpenTickets_result result = new getOpenTickets_result();
184
      getUnassignedTickets_result result = new getUnassignedTickets_result();
183
      result.read(iprot_);
185
      result.read(iprot_);
184
      iprot_.readMessageEnd();
186
      iprot_.readMessageEnd();
185
      if (result.isSetSuccess()) {
187
      if (result.isSetSuccess()) {
186
        return result.success;
188
        return result.success;
187
      }
189
      }
-
 
190
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUnassignedTickets failed: unknown result");
-
 
191
    }
-
 
192
 
-
 
193
    public List<Ticket> getAllTickets(long agentId) throws TException
-
 
194
    {
-
 
195
      send_getAllTickets(agentId);
-
 
196
      return recv_getAllTickets();
-
 
197
    }
-
 
198
 
-
 
199
    public void send_getAllTickets(long agentId) throws TException
-
 
200
    {
-
 
201
      oprot_.writeMessageBegin(new TMessage("getAllTickets", TMessageType.CALL, seqid_));
-
 
202
      getAllTickets_args args = new getAllTickets_args();
-
 
203
      args.agentId = agentId;
-
 
204
      args.write(oprot_);
-
 
205
      oprot_.writeMessageEnd();
-
 
206
      oprot_.getTransport().flush();
-
 
207
    }
-
 
208
 
-
 
209
    public List<Ticket> recv_getAllTickets() throws TException
-
 
210
    {
-
 
211
      TMessage msg = iprot_.readMessageBegin();
-
 
212
      if (msg.type == TMessageType.EXCEPTION) {
-
 
213
        TApplicationException x = TApplicationException.read(iprot_);
-
 
214
        iprot_.readMessageEnd();
-
 
215
        throw x;
-
 
216
      }
-
 
217
      getAllTickets_result result = new getAllTickets_result();
-
 
218
      result.read(iprot_);
-
 
219
      iprot_.readMessageEnd();
-
 
220
      if (result.isSetSuccess()) {
-
 
221
        return result.success;
-
 
222
      }
188
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOpenTickets failed: unknown result");
223
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllTickets failed: unknown result");
189
    }
224
    }
190
 
225
 
191
    public Ticket getTicket(long ticketId) throws TException
226
    public Ticket getTicket(long ticketId) throws TException
192
    {
227
    {
193
      send_getTicket(ticketId);
228
      send_getTicket(ticketId);
Line 647... Line 682...
647
    public Processor(Iface iface)
682
    public Processor(Iface iface)
648
    {
683
    {
649
      iface_ = iface;
684
      iface_ = iface;
650
      processMap_.put("getTickets", new getTickets());
685
      processMap_.put("getTickets", new getTickets());
651
      processMap_.put("getAssignedTickets", new getAssignedTickets());
686
      processMap_.put("getAssignedTickets", new getAssignedTickets());
-
 
687
      processMap_.put("getUnassignedTickets", new getUnassignedTickets());
652
      processMap_.put("getOpenTickets", new getOpenTickets());
688
      processMap_.put("getAllTickets", new getAllTickets());
653
      processMap_.put("getTicket", new getTicket());
689
      processMap_.put("getTicket", new getTicket());
654
      processMap_.put("updateTicket", new updateTicket());
690
      processMap_.put("updateTicket", new updateTicket());
655
      processMap_.put("insertTicket", new insertTicket());
691
      processMap_.put("insertTicket", new insertTicket());
656
      processMap_.put("getActivities", new getActivities());
692
      processMap_.put("getActivities", new getActivities());
657
      processMap_.put("getActivitiesForTicket", new getActivitiesForTicket());
693
      processMap_.put("getActivitiesForTicket", new getActivitiesForTicket());
Line 721... Line 757...
721
        oprot.getTransport().flush();
757
        oprot.getTransport().flush();
722
      }
758
      }
723
 
759
 
724
    }
760
    }
725
 
761
 
-
 
762
    private class getUnassignedTickets implements ProcessFunction {
-
 
763
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
764
      {
-
 
765
        getUnassignedTickets_args args = new getUnassignedTickets_args();
-
 
766
        args.read(iprot);
-
 
767
        iprot.readMessageEnd();
-
 
768
        getUnassignedTickets_result result = new getUnassignedTickets_result();
-
 
769
        result.success = iface_.getUnassignedTickets();
-
 
770
        oprot.writeMessageBegin(new TMessage("getUnassignedTickets", TMessageType.REPLY, seqid));
-
 
771
        result.write(oprot);
-
 
772
        oprot.writeMessageEnd();
-
 
773
        oprot.getTransport().flush();
-
 
774
      }
-
 
775
 
-
 
776
    }
-
 
777
 
726
    private class getOpenTickets implements ProcessFunction {
778
    private class getAllTickets implements ProcessFunction {
727
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
779
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
728
      {
780
      {
729
        getOpenTickets_args args = new getOpenTickets_args();
781
        getAllTickets_args args = new getAllTickets_args();
730
        args.read(iprot);
782
        args.read(iprot);
731
        iprot.readMessageEnd();
783
        iprot.readMessageEnd();
732
        getOpenTickets_result result = new getOpenTickets_result();
784
        getAllTickets_result result = new getAllTickets_result();
733
        result.success = iface_.getOpenTickets();
785
        result.success = iface_.getAllTickets(args.agentId);
734
        oprot.writeMessageBegin(new TMessage("getOpenTickets", TMessageType.REPLY, seqid));
786
        oprot.writeMessageBegin(new TMessage("getAllTickets", TMessageType.REPLY, seqid));
735
        result.write(oprot);
787
        result.write(oprot);
736
        oprot.writeMessageEnd();
788
        oprot.writeMessageEnd();
737
        oprot.getTransport().flush();
789
        oprot.getTransport().flush();
738
      }
790
      }
739
 
791
 
Line 2156... Line 2208...
2156
      // check for required fields
2208
      // check for required fields
2157
    }
2209
    }
2158
 
2210
 
2159
  }
2211
  }
2160
 
2212
 
2161
  public static class getOpenTickets_args implements TBase<getOpenTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOpenTickets_args>   {
2213
  public static class getUnassignedTickets_args implements TBase<getUnassignedTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUnassignedTickets_args>   {
2162
    private static final TStruct STRUCT_DESC = new TStruct("getOpenTickets_args");
2214
    private static final TStruct STRUCT_DESC = new TStruct("getUnassignedTickets_args");
2163
 
2215
 
2164
 
2216
 
2165
 
2217
 
2166
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2218
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2167
    public enum _Fields implements TFieldIdEnum {
2219
    public enum _Fields implements TFieldIdEnum {
Line 2219... Line 2271...
2219
    }
2271
    }
2220
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2272
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2221
    }});
2273
    }});
2222
 
2274
 
2223
    static {
2275
    static {
2224
      FieldMetaData.addStructMetaDataMap(getOpenTickets_args.class, metaDataMap);
2276
      FieldMetaData.addStructMetaDataMap(getUnassignedTickets_args.class, metaDataMap);
2225
    }
2277
    }
2226
 
2278
 
2227
    public getOpenTickets_args() {
2279
    public getUnassignedTickets_args() {
2228
    }
2280
    }
2229
 
2281
 
2230
    /**
2282
    /**
2231
     * Performs a deep copy on <i>other</i>.
2283
     * Performs a deep copy on <i>other</i>.
2232
     */
2284
     */
2233
    public getOpenTickets_args(getOpenTickets_args other) {
2285
    public getUnassignedTickets_args(getUnassignedTickets_args other) {
2234
    }
2286
    }
2235
 
2287
 
2236
    public getOpenTickets_args deepCopy() {
2288
    public getUnassignedTickets_args deepCopy() {
2237
      return new getOpenTickets_args(this);
2289
      return new getUnassignedTickets_args(this);
2238
    }
2290
    }
2239
 
2291
 
2240
    @Deprecated
2292
    @Deprecated
2241
    public getOpenTickets_args clone() {
2293
    public getUnassignedTickets_args clone() {
2242
      return new getOpenTickets_args(this);
2294
      return new getUnassignedTickets_args(this);
2243
    }
2295
    }
2244
 
2296
 
2245
    public void setFieldValue(_Fields field, Object value) {
2297
    public void setFieldValue(_Fields field, Object value) {
2246
      switch (field) {
2298
      switch (field) {
2247
      }
2299
      }
Line 2274... Line 2326...
2274
 
2326
 
2275
    @Override
2327
    @Override
2276
    public boolean equals(Object that) {
2328
    public boolean equals(Object that) {
2277
      if (that == null)
2329
      if (that == null)
2278
        return false;
2330
        return false;
2279
      if (that instanceof getOpenTickets_args)
2331
      if (that instanceof getUnassignedTickets_args)
2280
        return this.equals((getOpenTickets_args)that);
2332
        return this.equals((getUnassignedTickets_args)that);
2281
      return false;
2333
      return false;
2282
    }
2334
    }
2283
 
2335
 
2284
    public boolean equals(getOpenTickets_args that) {
2336
    public boolean equals(getUnassignedTickets_args that) {
2285
      if (that == null)
2337
      if (that == null)
2286
        return false;
2338
        return false;
2287
 
2339
 
2288
      return true;
2340
      return true;
2289
    }
2341
    }
Line 2291... Line 2343...
2291
    @Override
2343
    @Override
2292
    public int hashCode() {
2344
    public int hashCode() {
2293
      return 0;
2345
      return 0;
2294
    }
2346
    }
2295
 
2347
 
2296
    public int compareTo(getOpenTickets_args other) {
2348
    public int compareTo(getUnassignedTickets_args other) {
2297
      if (!getClass().equals(other.getClass())) {
2349
      if (!getClass().equals(other.getClass())) {
2298
        return getClass().getName().compareTo(other.getClass().getName());
2350
        return getClass().getName().compareTo(other.getClass().getName());
2299
      }
2351
      }
2300
 
2352
 
2301
      int lastComparison = 0;
2353
      int lastComparison = 0;
2302
      getOpenTickets_args typedOther = (getOpenTickets_args)other;
2354
      getUnassignedTickets_args typedOther = (getUnassignedTickets_args)other;
2303
 
2355
 
2304
      return 0;
2356
      return 0;
2305
    }
2357
    }
2306
 
2358
 
2307
    public void read(TProtocol iprot) throws TException {
2359
    public void read(TProtocol iprot) throws TException {
Line 2334... Line 2386...
2334
      oprot.writeStructEnd();
2386
      oprot.writeStructEnd();
2335
    }
2387
    }
2336
 
2388
 
2337
    @Override
2389
    @Override
2338
    public String toString() {
2390
    public String toString() {
2339
      StringBuilder sb = new StringBuilder("getOpenTickets_args(");
2391
      StringBuilder sb = new StringBuilder("getUnassignedTickets_args(");
2340
      boolean first = true;
2392
      boolean first = true;
2341
 
2393
 
2342
      sb.append(")");
2394
      sb.append(")");
2343
      return sb.toString();
2395
      return sb.toString();
2344
    }
2396
    }
Line 2347... Line 2399...
2347
      // check for required fields
2399
      // check for required fields
2348
    }
2400
    }
2349
 
2401
 
2350
  }
2402
  }
2351
 
2403
 
2352
  public static class getOpenTickets_result implements TBase<getOpenTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOpenTickets_result>   {
2404
  public static class getUnassignedTickets_result implements TBase<getUnassignedTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUnassignedTickets_result>   {
2353
    private static final TStruct STRUCT_DESC = new TStruct("getOpenTickets_result");
2405
    private static final TStruct STRUCT_DESC = new TStruct("getUnassignedTickets_result");
2354
 
2406
 
2355
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
2407
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
2356
 
2408
 
2357
    private List<Ticket> success;
2409
    private List<Ticket> success;
2358
 
2410
 
Line 2418... Line 2470...
2418
          new ListMetaData(TType.LIST, 
2470
          new ListMetaData(TType.LIST, 
2419
              new StructMetaData(TType.STRUCT, Ticket.class))));
2471
              new StructMetaData(TType.STRUCT, Ticket.class))));
2420
    }});
2472
    }});
2421
 
2473
 
2422
    static {
2474
    static {
2423
      FieldMetaData.addStructMetaDataMap(getOpenTickets_result.class, metaDataMap);
2475
      FieldMetaData.addStructMetaDataMap(getUnassignedTickets_result.class, metaDataMap);
2424
    }
2476
    }
2425
 
2477
 
2426
    public getOpenTickets_result() {
2478
    public getUnassignedTickets_result() {
2427
    }
2479
    }
2428
 
2480
 
2429
    public getOpenTickets_result(
2481
    public getUnassignedTickets_result(
2430
      List<Ticket> success)
2482
      List<Ticket> success)
2431
    {
2483
    {
2432
      this();
2484
      this();
2433
      this.success = success;
2485
      this.success = success;
2434
    }
2486
    }
2435
 
2487
 
2436
    /**
2488
    /**
2437
     * Performs a deep copy on <i>other</i>.
2489
     * Performs a deep copy on <i>other</i>.
2438
     */
2490
     */
2439
    public getOpenTickets_result(getOpenTickets_result other) {
2491
    public getUnassignedTickets_result(getUnassignedTickets_result other) {
2440
      if (other.isSetSuccess()) {
2492
      if (other.isSetSuccess()) {
2441
        List<Ticket> __this__success = new ArrayList<Ticket>();
2493
        List<Ticket> __this__success = new ArrayList<Ticket>();
2442
        for (Ticket other_element : other.success) {
2494
        for (Ticket other_element : other.success) {
2443
          __this__success.add(new Ticket(other_element));
2495
          __this__success.add(new Ticket(other_element));
2444
        }
2496
        }
2445
        this.success = __this__success;
2497
        this.success = __this__success;
2446
      }
2498
      }
2447
    }
2499
    }
2448
 
2500
 
2449
    public getOpenTickets_result deepCopy() {
2501
    public getUnassignedTickets_result deepCopy() {
2450
      return new getOpenTickets_result(this);
2502
      return new getUnassignedTickets_result(this);
2451
    }
2503
    }
2452
 
2504
 
2453
    @Deprecated
2505
    @Deprecated
2454
    public getOpenTickets_result clone() {
2506
    public getUnassignedTickets_result clone() {
2455
      return new getOpenTickets_result(this);
2507
      return new getUnassignedTickets_result(this);
2456
    }
2508
    }
2457
 
2509
 
2458
    public int getSuccessSize() {
2510
    public int getSuccessSize() {
2459
      return (this.success == null) ? 0 : this.success.size();
2511
      return (this.success == null) ? 0 : this.success.size();
2460
    }
2512
    }
Line 2472... Line 2524...
2472
 
2524
 
2473
    public List<Ticket> getSuccess() {
2525
    public List<Ticket> getSuccess() {
2474
      return this.success;
2526
      return this.success;
2475
    }
2527
    }
2476
 
2528
 
2477
    public getOpenTickets_result setSuccess(List<Ticket> success) {
2529
    public getUnassignedTickets_result setSuccess(List<Ticket> success) {
2478
      this.success = success;
2530
      this.success = success;
2479
      return this;
2531
      return this;
2480
    }
2532
    }
2481
 
2533
 
2482
    public void unsetSuccess() {
2534
    public void unsetSuccess() {
Line 2539... Line 2591...
2539
 
2591
 
2540
    @Override
2592
    @Override
2541
    public boolean equals(Object that) {
2593
    public boolean equals(Object that) {
2542
      if (that == null)
2594
      if (that == null)
2543
        return false;
2595
        return false;
2544
      if (that instanceof getOpenTickets_result)
2596
      if (that instanceof getUnassignedTickets_result)
2545
        return this.equals((getOpenTickets_result)that);
2597
        return this.equals((getUnassignedTickets_result)that);
2546
      return false;
2598
      return false;
2547
    }
2599
    }
2548
 
2600
 
2549
    public boolean equals(getOpenTickets_result that) {
2601
    public boolean equals(getUnassignedTickets_result that) {
2550
      if (that == null)
2602
      if (that == null)
2551
        return false;
2603
        return false;
2552
 
2604
 
2553
      boolean this_present_success = true && this.isSetSuccess();
2605
      boolean this_present_success = true && this.isSetSuccess();
2554
      boolean that_present_success = true && that.isSetSuccess();
2606
      boolean that_present_success = true && that.isSetSuccess();
Line 2565... Line 2617...
2565
    @Override
2617
    @Override
2566
    public int hashCode() {
2618
    public int hashCode() {
2567
      return 0;
2619
      return 0;
2568
    }
2620
    }
2569
 
2621
 
2570
    public int compareTo(getOpenTickets_result other) {
2622
    public int compareTo(getUnassignedTickets_result other) {
2571
      if (!getClass().equals(other.getClass())) {
2623
      if (!getClass().equals(other.getClass())) {
2572
        return getClass().getName().compareTo(other.getClass().getName());
2624
        return getClass().getName().compareTo(other.getClass().getName());
2573
      }
2625
      }
2574
 
2626
 
2575
      int lastComparison = 0;
2627
      int lastComparison = 0;
2576
      getOpenTickets_result typedOther = (getOpenTickets_result)other;
2628
      getUnassignedTickets_result typedOther = (getUnassignedTickets_result)other;
2577
 
2629
 
2578
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
2630
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
2579
      if (lastComparison != 0) {
2631
      if (lastComparison != 0) {
2580
        return lastComparison;
2632
        return lastComparison;
2581
      }
2633
      }
Line 2645... Line 2697...
2645
      oprot.writeStructEnd();
2697
      oprot.writeStructEnd();
2646
    }
2698
    }
2647
 
2699
 
2648
    @Override
2700
    @Override
2649
    public String toString() {
2701
    public String toString() {
-
 
2702
      StringBuilder sb = new StringBuilder("getUnassignedTickets_result(");
-
 
2703
      boolean first = true;
-
 
2704
 
-
 
2705
      sb.append("success:");
-
 
2706
      if (this.success == null) {
-
 
2707
        sb.append("null");
-
 
2708
      } else {
-
 
2709
        sb.append(this.success);
-
 
2710
      }
-
 
2711
      first = false;
-
 
2712
      sb.append(")");
-
 
2713
      return sb.toString();
-
 
2714
    }
-
 
2715
 
-
 
2716
    public void validate() throws TException {
-
 
2717
      // check for required fields
-
 
2718
    }
-
 
2719
 
-
 
2720
  }
-
 
2721
 
-
 
2722
  public static class getAllTickets_args implements TBase<getAllTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllTickets_args>   {
-
 
2723
    private static final TStruct STRUCT_DESC = new TStruct("getAllTickets_args");
-
 
2724
 
-
 
2725
    private static final TField AGENT_ID_FIELD_DESC = new TField("agentId", TType.I64, (short)1);
-
 
2726
 
-
 
2727
    private long agentId;
-
 
2728
 
-
 
2729
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
2730
    public enum _Fields implements TFieldIdEnum {
-
 
2731
      AGENT_ID((short)1, "agentId");
-
 
2732
 
-
 
2733
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2734
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
2735
 
-
 
2736
      static {
-
 
2737
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
2738
          byId.put((int)field._thriftId, field);
-
 
2739
          byName.put(field.getFieldName(), field);
-
 
2740
        }
-
 
2741
      }
-
 
2742
 
-
 
2743
      /**
-
 
2744
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
2745
       */
-
 
2746
      public static _Fields findByThriftId(int fieldId) {
-
 
2747
        return byId.get(fieldId);
-
 
2748
      }
-
 
2749
 
-
 
2750
      /**
-
 
2751
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
2752
       * if it is not found.
-
 
2753
       */
-
 
2754
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
2755
        _Fields fields = findByThriftId(fieldId);
-
 
2756
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
2757
        return fields;
-
 
2758
      }
-
 
2759
 
-
 
2760
      /**
-
 
2761
       * Find the _Fields constant that matches name, or null if its not found.
-
 
2762
       */
-
 
2763
      public static _Fields findByName(String name) {
-
 
2764
        return byName.get(name);
-
 
2765
      }
-
 
2766
 
-
 
2767
      private final short _thriftId;
-
 
2768
      private final String _fieldName;
-
 
2769
 
-
 
2770
      _Fields(short thriftId, String fieldName) {
-
 
2771
        _thriftId = thriftId;
-
 
2772
        _fieldName = fieldName;
-
 
2773
      }
-
 
2774
 
-
 
2775
      public short getThriftFieldId() {
-
 
2776
        return _thriftId;
-
 
2777
      }
-
 
2778
 
-
 
2779
      public String getFieldName() {
-
 
2780
        return _fieldName;
-
 
2781
      }
-
 
2782
    }
-
 
2783
 
-
 
2784
    // isset id assignments
-
 
2785
    private static final int __AGENTID_ISSET_ID = 0;
-
 
2786
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
2787
 
-
 
2788
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
2789
      put(_Fields.AGENT_ID, new FieldMetaData("agentId", TFieldRequirementType.DEFAULT, 
-
 
2790
          new FieldValueMetaData(TType.I64)));
-
 
2791
    }});
-
 
2792
 
-
 
2793
    static {
-
 
2794
      FieldMetaData.addStructMetaDataMap(getAllTickets_args.class, metaDataMap);
-
 
2795
    }
-
 
2796
 
-
 
2797
    public getAllTickets_args() {
-
 
2798
    }
-
 
2799
 
-
 
2800
    public getAllTickets_args(
-
 
2801
      long agentId)
-
 
2802
    {
-
 
2803
      this();
-
 
2804
      this.agentId = agentId;
-
 
2805
      setAgentIdIsSet(true);
-
 
2806
    }
-
 
2807
 
-
 
2808
    /**
-
 
2809
     * Performs a deep copy on <i>other</i>.
-
 
2810
     */
-
 
2811
    public getAllTickets_args(getAllTickets_args other) {
-
 
2812
      __isset_bit_vector.clear();
-
 
2813
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
2814
      this.agentId = other.agentId;
-
 
2815
    }
-
 
2816
 
-
 
2817
    public getAllTickets_args deepCopy() {
-
 
2818
      return new getAllTickets_args(this);
-
 
2819
    }
-
 
2820
 
-
 
2821
    @Deprecated
-
 
2822
    public getAllTickets_args clone() {
-
 
2823
      return new getAllTickets_args(this);
-
 
2824
    }
-
 
2825
 
-
 
2826
    public long getAgentId() {
-
 
2827
      return this.agentId;
-
 
2828
    }
-
 
2829
 
-
 
2830
    public getAllTickets_args setAgentId(long agentId) {
-
 
2831
      this.agentId = agentId;
-
 
2832
      setAgentIdIsSet(true);
-
 
2833
      return this;
-
 
2834
    }
-
 
2835
 
-
 
2836
    public void unsetAgentId() {
-
 
2837
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
-
 
2838
    }
-
 
2839
 
-
 
2840
    /** Returns true if field agentId is set (has been asigned a value) and false otherwise */
-
 
2841
    public boolean isSetAgentId() {
-
 
2842
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
-
 
2843
    }
-
 
2844
 
-
 
2845
    public void setAgentIdIsSet(boolean value) {
-
 
2846
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
-
 
2847
    }
-
 
2848
 
-
 
2849
    public void setFieldValue(_Fields field, Object value) {
-
 
2850
      switch (field) {
-
 
2851
      case AGENT_ID:
-
 
2852
        if (value == null) {
-
 
2853
          unsetAgentId();
-
 
2854
        } else {
-
 
2855
          setAgentId((Long)value);
-
 
2856
        }
-
 
2857
        break;
-
 
2858
 
-
 
2859
      }
-
 
2860
    }
-
 
2861
 
-
 
2862
    public void setFieldValue(int fieldID, Object value) {
-
 
2863
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2864
    }
-
 
2865
 
-
 
2866
    public Object getFieldValue(_Fields field) {
-
 
2867
      switch (field) {
-
 
2868
      case AGENT_ID:
-
 
2869
        return new Long(getAgentId());
-
 
2870
 
-
 
2871
      }
-
 
2872
      throw new IllegalStateException();
-
 
2873
    }
-
 
2874
 
-
 
2875
    public Object getFieldValue(int fieldId) {
-
 
2876
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2877
    }
-
 
2878
 
-
 
2879
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
2880
    public boolean isSet(_Fields field) {
-
 
2881
      switch (field) {
-
 
2882
      case AGENT_ID:
-
 
2883
        return isSetAgentId();
-
 
2884
      }
-
 
2885
      throw new IllegalStateException();
-
 
2886
    }
-
 
2887
 
-
 
2888
    public boolean isSet(int fieldID) {
-
 
2889
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2890
    }
-
 
2891
 
-
 
2892
    @Override
-
 
2893
    public boolean equals(Object that) {
-
 
2894
      if (that == null)
-
 
2895
        return false;
-
 
2896
      if (that instanceof getAllTickets_args)
-
 
2897
        return this.equals((getAllTickets_args)that);
-
 
2898
      return false;
-
 
2899
    }
-
 
2900
 
-
 
2901
    public boolean equals(getAllTickets_args that) {
-
 
2902
      if (that == null)
-
 
2903
        return false;
-
 
2904
 
-
 
2905
      boolean this_present_agentId = true;
-
 
2906
      boolean that_present_agentId = true;
-
 
2907
      if (this_present_agentId || that_present_agentId) {
-
 
2908
        if (!(this_present_agentId && that_present_agentId))
-
 
2909
          return false;
-
 
2910
        if (this.agentId != that.agentId)
-
 
2911
          return false;
-
 
2912
      }
-
 
2913
 
-
 
2914
      return true;
-
 
2915
    }
-
 
2916
 
-
 
2917
    @Override
-
 
2918
    public int hashCode() {
-
 
2919
      return 0;
-
 
2920
    }
-
 
2921
 
-
 
2922
    public int compareTo(getAllTickets_args other) {
-
 
2923
      if (!getClass().equals(other.getClass())) {
-
 
2924
        return getClass().getName().compareTo(other.getClass().getName());
-
 
2925
      }
-
 
2926
 
-
 
2927
      int lastComparison = 0;
-
 
2928
      getAllTickets_args typedOther = (getAllTickets_args)other;
-
 
2929
 
-
 
2930
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(isSetAgentId());
-
 
2931
      if (lastComparison != 0) {
-
 
2932
        return lastComparison;
-
 
2933
      }
-
 
2934
      lastComparison = TBaseHelper.compareTo(agentId, typedOther.agentId);
-
 
2935
      if (lastComparison != 0) {
-
 
2936
        return lastComparison;
-
 
2937
      }
-
 
2938
      return 0;
-
 
2939
    }
-
 
2940
 
-
 
2941
    public void read(TProtocol iprot) throws TException {
-
 
2942
      TField field;
-
 
2943
      iprot.readStructBegin();
-
 
2944
      while (true)
-
 
2945
      {
-
 
2946
        field = iprot.readFieldBegin();
-
 
2947
        if (field.type == TType.STOP) { 
-
 
2948
          break;
-
 
2949
        }
-
 
2950
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2951
        if (fieldId == null) {
-
 
2952
          TProtocolUtil.skip(iprot, field.type);
-
 
2953
        } else {
-
 
2954
          switch (fieldId) {
-
 
2955
            case AGENT_ID:
-
 
2956
              if (field.type == TType.I64) {
-
 
2957
                this.agentId = iprot.readI64();
-
 
2958
                setAgentIdIsSet(true);
-
 
2959
              } else { 
-
 
2960
                TProtocolUtil.skip(iprot, field.type);
-
 
2961
              }
-
 
2962
              break;
-
 
2963
          }
-
 
2964
          iprot.readFieldEnd();
-
 
2965
        }
-
 
2966
      }
-
 
2967
      iprot.readStructEnd();
-
 
2968
      validate();
-
 
2969
    }
-
 
2970
 
-
 
2971
    public void write(TProtocol oprot) throws TException {
-
 
2972
      validate();
-
 
2973
 
-
 
2974
      oprot.writeStructBegin(STRUCT_DESC);
-
 
2975
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
-
 
2976
      oprot.writeI64(this.agentId);
-
 
2977
      oprot.writeFieldEnd();
-
 
2978
      oprot.writeFieldStop();
-
 
2979
      oprot.writeStructEnd();
-
 
2980
    }
-
 
2981
 
-
 
2982
    @Override
-
 
2983
    public String toString() {
-
 
2984
      StringBuilder sb = new StringBuilder("getAllTickets_args(");
-
 
2985
      boolean first = true;
-
 
2986
 
-
 
2987
      sb.append("agentId:");
-
 
2988
      sb.append(this.agentId);
-
 
2989
      first = false;
-
 
2990
      sb.append(")");
-
 
2991
      return sb.toString();
-
 
2992
    }
-
 
2993
 
-
 
2994
    public void validate() throws TException {
-
 
2995
      // check for required fields
-
 
2996
    }
-
 
2997
 
-
 
2998
  }
-
 
2999
 
-
 
3000
  public static class getAllTickets_result implements TBase<getAllTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllTickets_result>   {
-
 
3001
    private static final TStruct STRUCT_DESC = new TStruct("getAllTickets_result");
-
 
3002
 
-
 
3003
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
3004
 
-
 
3005
    private List<Ticket> success;
-
 
3006
 
-
 
3007
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
3008
    public enum _Fields implements TFieldIdEnum {
-
 
3009
      SUCCESS((short)0, "success");
-
 
3010
 
-
 
3011
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3012
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
3013
 
-
 
3014
      static {
-
 
3015
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
3016
          byId.put((int)field._thriftId, field);
-
 
3017
          byName.put(field.getFieldName(), field);
-
 
3018
        }
-
 
3019
      }
-
 
3020
 
-
 
3021
      /**
-
 
3022
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
3023
       */
-
 
3024
      public static _Fields findByThriftId(int fieldId) {
-
 
3025
        return byId.get(fieldId);
-
 
3026
      }
-
 
3027
 
-
 
3028
      /**
-
 
3029
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
3030
       * if it is not found.
-
 
3031
       */
-
 
3032
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
3033
        _Fields fields = findByThriftId(fieldId);
-
 
3034
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
3035
        return fields;
-
 
3036
      }
-
 
3037
 
-
 
3038
      /**
-
 
3039
       * Find the _Fields constant that matches name, or null if its not found.
-
 
3040
       */
-
 
3041
      public static _Fields findByName(String name) {
-
 
3042
        return byName.get(name);
-
 
3043
      }
-
 
3044
 
-
 
3045
      private final short _thriftId;
-
 
3046
      private final String _fieldName;
-
 
3047
 
-
 
3048
      _Fields(short thriftId, String fieldName) {
-
 
3049
        _thriftId = thriftId;
-
 
3050
        _fieldName = fieldName;
-
 
3051
      }
-
 
3052
 
-
 
3053
      public short getThriftFieldId() {
-
 
3054
        return _thriftId;
-
 
3055
      }
-
 
3056
 
-
 
3057
      public String getFieldName() {
-
 
3058
        return _fieldName;
-
 
3059
      }
-
 
3060
    }
-
 
3061
 
-
 
3062
    // isset id assignments
-
 
3063
 
-
 
3064
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
3065
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
3066
          new ListMetaData(TType.LIST, 
-
 
3067
              new StructMetaData(TType.STRUCT, Ticket.class))));
-
 
3068
    }});
-
 
3069
 
-
 
3070
    static {
-
 
3071
      FieldMetaData.addStructMetaDataMap(getAllTickets_result.class, metaDataMap);
-
 
3072
    }
-
 
3073
 
-
 
3074
    public getAllTickets_result() {
-
 
3075
    }
-
 
3076
 
-
 
3077
    public getAllTickets_result(
-
 
3078
      List<Ticket> success)
-
 
3079
    {
-
 
3080
      this();
-
 
3081
      this.success = success;
-
 
3082
    }
-
 
3083
 
-
 
3084
    /**
-
 
3085
     * Performs a deep copy on <i>other</i>.
-
 
3086
     */
-
 
3087
    public getAllTickets_result(getAllTickets_result other) {
-
 
3088
      if (other.isSetSuccess()) {
-
 
3089
        List<Ticket> __this__success = new ArrayList<Ticket>();
-
 
3090
        for (Ticket other_element : other.success) {
-
 
3091
          __this__success.add(new Ticket(other_element));
-
 
3092
        }
-
 
3093
        this.success = __this__success;
-
 
3094
      }
-
 
3095
    }
-
 
3096
 
-
 
3097
    public getAllTickets_result deepCopy() {
-
 
3098
      return new getAllTickets_result(this);
-
 
3099
    }
-
 
3100
 
-
 
3101
    @Deprecated
-
 
3102
    public getAllTickets_result clone() {
-
 
3103
      return new getAllTickets_result(this);
-
 
3104
    }
-
 
3105
 
-
 
3106
    public int getSuccessSize() {
-
 
3107
      return (this.success == null) ? 0 : this.success.size();
-
 
3108
    }
-
 
3109
 
-
 
3110
    public java.util.Iterator<Ticket> getSuccessIterator() {
-
 
3111
      return (this.success == null) ? null : this.success.iterator();
-
 
3112
    }
-
 
3113
 
-
 
3114
    public void addToSuccess(Ticket elem) {
-
 
3115
      if (this.success == null) {
-
 
3116
        this.success = new ArrayList<Ticket>();
-
 
3117
      }
-
 
3118
      this.success.add(elem);
-
 
3119
    }
-
 
3120
 
-
 
3121
    public List<Ticket> getSuccess() {
-
 
3122
      return this.success;
-
 
3123
    }
-
 
3124
 
-
 
3125
    public getAllTickets_result setSuccess(List<Ticket> success) {
-
 
3126
      this.success = success;
-
 
3127
      return this;
-
 
3128
    }
-
 
3129
 
-
 
3130
    public void unsetSuccess() {
-
 
3131
      this.success = null;
-
 
3132
    }
-
 
3133
 
-
 
3134
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
3135
    public boolean isSetSuccess() {
-
 
3136
      return this.success != null;
-
 
3137
    }
-
 
3138
 
-
 
3139
    public void setSuccessIsSet(boolean value) {
-
 
3140
      if (!value) {
-
 
3141
        this.success = null;
-
 
3142
      }
-
 
3143
    }
-
 
3144
 
-
 
3145
    public void setFieldValue(_Fields field, Object value) {
-
 
3146
      switch (field) {
-
 
3147
      case SUCCESS:
-
 
3148
        if (value == null) {
-
 
3149
          unsetSuccess();
-
 
3150
        } else {
-
 
3151
          setSuccess((List<Ticket>)value);
-
 
3152
        }
-
 
3153
        break;
-
 
3154
 
-
 
3155
      }
-
 
3156
    }
-
 
3157
 
-
 
3158
    public void setFieldValue(int fieldID, Object value) {
-
 
3159
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3160
    }
-
 
3161
 
-
 
3162
    public Object getFieldValue(_Fields field) {
-
 
3163
      switch (field) {
-
 
3164
      case SUCCESS:
-
 
3165
        return getSuccess();
-
 
3166
 
-
 
3167
      }
-
 
3168
      throw new IllegalStateException();
-
 
3169
    }
-
 
3170
 
-
 
3171
    public Object getFieldValue(int fieldId) {
-
 
3172
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3173
    }
-
 
3174
 
-
 
3175
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
3176
    public boolean isSet(_Fields field) {
-
 
3177
      switch (field) {
-
 
3178
      case SUCCESS:
-
 
3179
        return isSetSuccess();
-
 
3180
      }
-
 
3181
      throw new IllegalStateException();
-
 
3182
    }
-
 
3183
 
-
 
3184
    public boolean isSet(int fieldID) {
-
 
3185
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3186
    }
-
 
3187
 
-
 
3188
    @Override
-
 
3189
    public boolean equals(Object that) {
-
 
3190
      if (that == null)
-
 
3191
        return false;
-
 
3192
      if (that instanceof getAllTickets_result)
-
 
3193
        return this.equals((getAllTickets_result)that);
-
 
3194
      return false;
-
 
3195
    }
-
 
3196
 
-
 
3197
    public boolean equals(getAllTickets_result that) {
-
 
3198
      if (that == null)
-
 
3199
        return false;
-
 
3200
 
-
 
3201
      boolean this_present_success = true && this.isSetSuccess();
-
 
3202
      boolean that_present_success = true && that.isSetSuccess();
-
 
3203
      if (this_present_success || that_present_success) {
-
 
3204
        if (!(this_present_success && that_present_success))
-
 
3205
          return false;
-
 
3206
        if (!this.success.equals(that.success))
-
 
3207
          return false;
-
 
3208
      }
-
 
3209
 
-
 
3210
      return true;
-
 
3211
    }
-
 
3212
 
-
 
3213
    @Override
-
 
3214
    public int hashCode() {
-
 
3215
      return 0;
-
 
3216
    }
-
 
3217
 
-
 
3218
    public int compareTo(getAllTickets_result other) {
-
 
3219
      if (!getClass().equals(other.getClass())) {
-
 
3220
        return getClass().getName().compareTo(other.getClass().getName());
-
 
3221
      }
-
 
3222
 
-
 
3223
      int lastComparison = 0;
-
 
3224
      getAllTickets_result typedOther = (getAllTickets_result)other;
-
 
3225
 
-
 
3226
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
3227
      if (lastComparison != 0) {
-
 
3228
        return lastComparison;
-
 
3229
      }
-
 
3230
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
3231
      if (lastComparison != 0) {
-
 
3232
        return lastComparison;
-
 
3233
      }
-
 
3234
      return 0;
-
 
3235
    }
-
 
3236
 
-
 
3237
    public void read(TProtocol iprot) throws TException {
-
 
3238
      TField field;
-
 
3239
      iprot.readStructBegin();
-
 
3240
      while (true)
-
 
3241
      {
-
 
3242
        field = iprot.readFieldBegin();
-
 
3243
        if (field.type == TType.STOP) { 
-
 
3244
          break;
-
 
3245
        }
-
 
3246
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3247
        if (fieldId == null) {
-
 
3248
          TProtocolUtil.skip(iprot, field.type);
-
 
3249
        } else {
-
 
3250
          switch (fieldId) {
-
 
3251
            case SUCCESS:
-
 
3252
              if (field.type == TType.LIST) {
-
 
3253
                {
-
 
3254
                  TList _list12 = iprot.readListBegin();
-
 
3255
                  this.success = new ArrayList<Ticket>(_list12.size);
-
 
3256
                  for (int _i13 = 0; _i13 < _list12.size; ++_i13)
-
 
3257
                  {
-
 
3258
                    Ticket _elem14;
-
 
3259
                    _elem14 = new Ticket();
-
 
3260
                    _elem14.read(iprot);
-
 
3261
                    this.success.add(_elem14);
-
 
3262
                  }
-
 
3263
                  iprot.readListEnd();
-
 
3264
                }
-
 
3265
              } else { 
-
 
3266
                TProtocolUtil.skip(iprot, field.type);
-
 
3267
              }
-
 
3268
              break;
-
 
3269
          }
-
 
3270
          iprot.readFieldEnd();
-
 
3271
        }
-
 
3272
      }
-
 
3273
      iprot.readStructEnd();
-
 
3274
      validate();
-
 
3275
    }
-
 
3276
 
-
 
3277
    public void write(TProtocol oprot) throws TException {
-
 
3278
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3279
 
-
 
3280
      if (this.isSetSuccess()) {
-
 
3281
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
3282
        {
-
 
3283
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
3284
          for (Ticket _iter15 : this.success)
-
 
3285
          {
-
 
3286
            _iter15.write(oprot);
-
 
3287
          }
-
 
3288
          oprot.writeListEnd();
-
 
3289
        }
-
 
3290
        oprot.writeFieldEnd();
-
 
3291
      }
-
 
3292
      oprot.writeFieldStop();
-
 
3293
      oprot.writeStructEnd();
-
 
3294
    }
-
 
3295
 
-
 
3296
    @Override
-
 
3297
    public String toString() {
2650
      StringBuilder sb = new StringBuilder("getOpenTickets_result(");
3298
      StringBuilder sb = new StringBuilder("getAllTickets_result(");
2651
      boolean first = true;
3299
      boolean first = true;
2652
 
3300
 
2653
      sb.append("success:");
3301
      sb.append("success:");
2654
      if (this.success == null) {
3302
      if (this.success == null) {
2655
        sb.append("null");
3303
        sb.append("null");
Line 4789... Line 5437...
4789
        } else {
5437
        } else {
4790
          switch (fieldId) {
5438
          switch (fieldId) {
4791
            case SUCCESS:
5439
            case SUCCESS:
4792
              if (field.type == TType.LIST) {
5440
              if (field.type == TType.LIST) {
4793
                {
5441
                {
4794
                  TList _list12 = iprot.readListBegin();
5442
                  TList _list16 = iprot.readListBegin();
4795
                  this.success = new ArrayList<Activity>(_list12.size);
5443
                  this.success = new ArrayList<Activity>(_list16.size);
4796
                  for (int _i13 = 0; _i13 < _list12.size; ++_i13)
5444
                  for (int _i17 = 0; _i17 < _list16.size; ++_i17)
4797
                  {
5445
                  {
4798
                    Activity _elem14;
5446
                    Activity _elem18;
4799
                    _elem14 = new Activity();
5447
                    _elem18 = new Activity();
4800
                    _elem14.read(iprot);
5448
                    _elem18.read(iprot);
4801
                    this.success.add(_elem14);
5449
                    this.success.add(_elem18);
4802
                  }
5450
                  }
4803
                  iprot.readListEnd();
5451
                  iprot.readListEnd();
4804
                }
5452
                }
4805
              } else { 
5453
              } else { 
4806
                TProtocolUtil.skip(iprot, field.type);
5454
                TProtocolUtil.skip(iprot, field.type);
Line 4819... Line 5467...
4819
 
5467
 
4820
      if (this.isSetSuccess()) {
5468
      if (this.isSetSuccess()) {
4821
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5469
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4822
        {
5470
        {
4823
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
5471
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
4824
          for (Activity _iter15 : this.success)
5472
          for (Activity _iter19 : this.success)
4825
          {
5473
          {
4826
            _iter15.write(oprot);
5474
            _iter19.write(oprot);
4827
          }
5475
          }
4828
          oprot.writeListEnd();
5476
          oprot.writeListEnd();
4829
        }
5477
        }
4830
        oprot.writeFieldEnd();
5478
        oprot.writeFieldEnd();
4831
      }
5479
      }
Line 5385... Line 6033...
5385
        } else {
6033
        } else {
5386
          switch (fieldId) {
6034
          switch (fieldId) {
5387
            case SUCCESS:
6035
            case SUCCESS:
5388
              if (field.type == TType.LIST) {
6036
              if (field.type == TType.LIST) {
5389
                {
6037
                {
5390
                  TList _list16 = iprot.readListBegin();
6038
                  TList _list20 = iprot.readListBegin();
5391
                  this.success = new ArrayList<Activity>(_list16.size);
6039
                  this.success = new ArrayList<Activity>(_list20.size);
5392
                  for (int _i17 = 0; _i17 < _list16.size; ++_i17)
6040
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5393
                  {
6041
                  {
5394
                    Activity _elem18;
6042
                    Activity _elem22;
5395
                    _elem18 = new Activity();
6043
                    _elem22 = new Activity();
5396
                    _elem18.read(iprot);
6044
                    _elem22.read(iprot);
5397
                    this.success.add(_elem18);
6045
                    this.success.add(_elem22);
5398
                  }
6046
                  }
5399
                  iprot.readListEnd();
6047
                  iprot.readListEnd();
5400
                }
6048
                }
5401
              } else { 
6049
              } else { 
5402
                TProtocolUtil.skip(iprot, field.type);
6050
                TProtocolUtil.skip(iprot, field.type);
Line 5415... Line 6063...
5415
 
6063
 
5416
      if (this.isSetSuccess()) {
6064
      if (this.isSetSuccess()) {
5417
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6065
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5418
        {
6066
        {
5419
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
6067
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
5420
          for (Activity _iter19 : this.success)
6068
          for (Activity _iter23 : this.success)
5421
          {
6069
          {
5422
            _iter19.write(oprot);
6070
            _iter23.write(oprot);
5423
          }
6071
          }
5424
          oprot.writeListEnd();
6072
          oprot.writeListEnd();
5425
        }
6073
        }
5426
        oprot.writeFieldEnd();
6074
        oprot.writeFieldEnd();
5427
      }
6075
      }
Line 7484... Line 8132...
7484
        } else {
8132
        } else {
7485
          switch (fieldId) {
8133
          switch (fieldId) {
7486
            case SUCCESS:
8134
            case SUCCESS:
7487
              if (field.type == TType.LIST) {
8135
              if (field.type == TType.LIST) {
7488
                {
8136
                {
7489
                  TList _list20 = iprot.readListBegin();
8137
                  TList _list24 = iprot.readListBegin();
7490
                  this.success = new ArrayList<Agent>(_list20.size);
8138
                  this.success = new ArrayList<Agent>(_list24.size);
7491
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
8139
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7492
                  {
8140
                  {
7493
                    Agent _elem22;
8141
                    Agent _elem26;
7494
                    _elem22 = new Agent();
8142
                    _elem26 = new Agent();
7495
                    _elem22.read(iprot);
8143
                    _elem26.read(iprot);
7496
                    this.success.add(_elem22);
8144
                    this.success.add(_elem26);
7497
                  }
8145
                  }
7498
                  iprot.readListEnd();
8146
                  iprot.readListEnd();
7499
                }
8147
                }
7500
              } else { 
8148
              } else { 
7501
                TProtocolUtil.skip(iprot, field.type);
8149
                TProtocolUtil.skip(iprot, field.type);
Line 7514... Line 8162...
7514
 
8162
 
7515
      if (this.isSetSuccess()) {
8163
      if (this.isSetSuccess()) {
7516
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8164
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7517
        {
8165
        {
7518
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
8166
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
7519
          for (Agent _iter23 : this.success)
8167
          for (Agent _iter27 : this.success)
7520
          {
8168
          {
7521
            _iter23.write(oprot);
8169
            _iter27.write(oprot);
7522
          }
8170
          }
7523
          oprot.writeListEnd();
8171
          oprot.writeListEnd();
7524
        }
8172
        }
7525
        oprot.writeFieldEnd();
8173
        oprot.writeFieldEnd();
7526
      }
8174
      }
Line 9759... Line 10407...
9759
        } else {
10407
        } else {
9760
          switch (fieldId) {
10408
          switch (fieldId) {
9761
            case SUCCESS:
10409
            case SUCCESS:
9762
              if (field.type == TType.LIST) {
10410
              if (field.type == TType.LIST) {
9763
                {
10411
                {
9764
                  TList _list24 = iprot.readListBegin();
10412
                  TList _list28 = iprot.readListBegin();
9765
                  this.success = new ArrayList<String>(_list24.size);
10413
                  this.success = new ArrayList<String>(_list28.size);
9766
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
10414
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
9767
                  {
10415
                  {
9768
                    String _elem26;
10416
                    String _elem30;
9769
                    _elem26 = iprot.readString();
10417
                    _elem30 = iprot.readString();
9770
                    this.success.add(_elem26);
10418
                    this.success.add(_elem30);
9771
                  }
10419
                  }
9772
                  iprot.readListEnd();
10420
                  iprot.readListEnd();
9773
                }
10421
                }
9774
              } else { 
10422
              } else { 
9775
                TProtocolUtil.skip(iprot, field.type);
10423
                TProtocolUtil.skip(iprot, field.type);
Line 9788... Line 10436...
9788
 
10436
 
9789
      if (this.isSetSuccess()) {
10437
      if (this.isSetSuccess()) {
9790
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10438
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9791
        {
10439
        {
9792
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
10440
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
9793
          for (String _iter27 : this.success)
10441
          for (String _iter31 : this.success)
9794
          {
10442
          {
9795
            oprot.writeString(_iter27);
10443
            oprot.writeString(_iter31);
9796
          }
10444
          }
9797
          oprot.writeListEnd();
10445
          oprot.writeListEnd();
9798
        }
10446
        }
9799
        oprot.writeFieldEnd();
10447
        oprot.writeFieldEnd();
9800
      }
10448
      }
Line 10357... Line 11005...
10357
        } else {
11005
        } else {
10358
          switch (fieldId) {
11006
          switch (fieldId) {
10359
            case SUCCESS:
11007
            case SUCCESS:
10360
              if (field.type == TType.LIST) {
11008
              if (field.type == TType.LIST) {
10361
                {
11009
                {
10362
                  TList _list28 = iprot.readListBegin();
11010
                  TList _list32 = iprot.readListBegin();
10363
                  this.success = new ArrayList<String>(_list28.size);
11011
                  this.success = new ArrayList<String>(_list32.size);
10364
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
11012
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
10365
                  {
11013
                  {
10366
                    String _elem30;
11014
                    String _elem34;
10367
                    _elem30 = iprot.readString();
11015
                    _elem34 = iprot.readString();
10368
                    this.success.add(_elem30);
11016
                    this.success.add(_elem34);
10369
                  }
11017
                  }
10370
                  iprot.readListEnd();
11018
                  iprot.readListEnd();
10371
                }
11019
                }
10372
              } else { 
11020
              } else { 
10373
                TProtocolUtil.skip(iprot, field.type);
11021
                TProtocolUtil.skip(iprot, field.type);
Line 10386... Line 11034...
10386
 
11034
 
10387
      if (this.isSetSuccess()) {
11035
      if (this.isSetSuccess()) {
10388
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11036
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10389
        {
11037
        {
10390
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
11038
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
10391
          for (String _iter31 : this.success)
11039
          for (String _iter35 : this.success)
10392
          {
11040
          {
10393
            oprot.writeString(_iter31);
11041
            oprot.writeString(_iter35);
10394
          }
11042
          }
10395
          oprot.writeListEnd();
11043
          oprot.writeListEnd();
10396
        }
11044
        }
10397
        oprot.writeFieldEnd();
11045
        oprot.writeFieldEnd();
10398
      }
11046
      }