Subversion Repositories SmartDukaan

Rev

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

Rev 4793 Rev 5169
Line 54... Line 54...
54
 
54
 
55
    public void changeAgentStatus(boolean status, String emailId) throws org.apache.thrift.TException;
55
    public void changeAgentStatus(boolean status, String emailId) throws org.apache.thrift.TException;
56
 
56
 
57
    public void insertAgent(Agent agent, List<String> role) throws org.apache.thrift.TException;
57
    public void insertAgent(Agent agent, List<String> role) throws org.apache.thrift.TException;
58
 
58
 
-
 
59
    public void changeAgentRole(long id, List<String> role) throws org.apache.thrift.TException;
-
 
60
 
-
 
61
    public int getOpenTicketCountForAgent(long agentId) throws org.apache.thrift.TException;
-
 
62
 
59
  }
63
  }
60
 
64
 
61
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
65
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
62
 
66
 
63
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTickets_call> resultHandler) throws org.apache.thrift.TException;
67
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTickets_call> resultHandler) throws org.apache.thrift.TException;
Line 90... Line 94...
90
 
94
 
91
    public void changeAgentStatus(boolean status, String emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAgentStatus_call> resultHandler) throws org.apache.thrift.TException;
95
    public void changeAgentStatus(boolean status, String emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAgentStatus_call> resultHandler) throws org.apache.thrift.TException;
92
 
96
 
93
    public void insertAgent(Agent agent, List<String> role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertAgent_call> resultHandler) throws org.apache.thrift.TException;
97
    public void insertAgent(Agent agent, List<String> role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertAgent_call> resultHandler) throws org.apache.thrift.TException;
94
 
98
 
-
 
99
    public void changeAgentRole(long id, List<String> role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAgentRole_call> resultHandler) throws org.apache.thrift.TException;
-
 
100
 
-
 
101
    public void getOpenTicketCountForAgent(long agentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOpenTicketCountForAgent_call> resultHandler) throws org.apache.thrift.TException;
-
 
102
 
95
  }
103
  }
96
 
104
 
97
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
105
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
98
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
106
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
99
      public Factory() {}
107
      public Factory() {}
Line 463... Line 471...
463
      insertAgent_result result = new insertAgent_result();
471
      insertAgent_result result = new insertAgent_result();
464
      receiveBase(result, "insertAgent");
472
      receiveBase(result, "insertAgent");
465
      return;
473
      return;
466
    }
474
    }
467
 
475
 
-
 
476
    public void changeAgentRole(long id, List<String> role) throws org.apache.thrift.TException
-
 
477
    {
-
 
478
      send_changeAgentRole(id, role);
-
 
479
      recv_changeAgentRole();
-
 
480
    }
-
 
481
 
-
 
482
    public void send_changeAgentRole(long id, List<String> role) throws org.apache.thrift.TException
-
 
483
    {
-
 
484
      changeAgentRole_args args = new changeAgentRole_args();
-
 
485
      args.setId(id);
-
 
486
      args.setRole(role);
-
 
487
      sendBase("changeAgentRole", args);
-
 
488
    }
-
 
489
 
-
 
490
    public void recv_changeAgentRole() throws org.apache.thrift.TException
-
 
491
    {
-
 
492
      changeAgentRole_result result = new changeAgentRole_result();
-
 
493
      receiveBase(result, "changeAgentRole");
-
 
494
      return;
-
 
495
    }
-
 
496
 
-
 
497
    public int getOpenTicketCountForAgent(long agentId) throws org.apache.thrift.TException
-
 
498
    {
-
 
499
      send_getOpenTicketCountForAgent(agentId);
-
 
500
      return recv_getOpenTicketCountForAgent();
-
 
501
    }
-
 
502
 
-
 
503
    public void send_getOpenTicketCountForAgent(long agentId) throws org.apache.thrift.TException
-
 
504
    {
-
 
505
      getOpenTicketCountForAgent_args args = new getOpenTicketCountForAgent_args();
-
 
506
      args.setAgentId(agentId);
-
 
507
      sendBase("getOpenTicketCountForAgent", args);
-
 
508
    }
-
 
509
 
-
 
510
    public int recv_getOpenTicketCountForAgent() throws org.apache.thrift.TException
-
 
511
    {
-
 
512
      getOpenTicketCountForAgent_result result = new getOpenTicketCountForAgent_result();
-
 
513
      receiveBase(result, "getOpenTicketCountForAgent");
-
 
514
      if (result.isSetSuccess()) {
-
 
515
        return result.success;
-
 
516
      }
-
 
517
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOpenTicketCountForAgent failed: unknown result");
-
 
518
    }
-
 
519
 
468
  }
520
  }
469
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
521
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
470
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
522
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
471
      private org.apache.thrift.async.TAsyncClientManager clientManager;
523
      private org.apache.thrift.async.TAsyncClientManager clientManager;
472
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
524
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1005... Line 1057...
1005
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1057
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1006
        (new Client(prot)).recv_insertAgent();
1058
        (new Client(prot)).recv_insertAgent();
1007
      }
1059
      }
1008
    }
1060
    }
1009
 
1061
 
-
 
1062
    public void changeAgentRole(long id, List<String> role, org.apache.thrift.async.AsyncMethodCallback<changeAgentRole_call> resultHandler) throws org.apache.thrift.TException {
-
 
1063
      checkReady();
-
 
1064
      changeAgentRole_call method_call = new changeAgentRole_call(id, role, resultHandler, this, ___protocolFactory, ___transport);
-
 
1065
      this.___currentMethod = method_call;
-
 
1066
      ___manager.call(method_call);
-
 
1067
    }
-
 
1068
 
-
 
1069
    public static class changeAgentRole_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1070
      private long id;
-
 
1071
      private List<String> role;
-
 
1072
      public changeAgentRole_call(long id, List<String> role, org.apache.thrift.async.AsyncMethodCallback<changeAgentRole_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
1073
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1074
        this.id = id;
-
 
1075
        this.role = role;
-
 
1076
      }
-
 
1077
 
-
 
1078
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1079
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeAgentRole", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1080
        changeAgentRole_args args = new changeAgentRole_args();
-
 
1081
        args.setId(id);
-
 
1082
        args.setRole(role);
-
 
1083
        args.write(prot);
-
 
1084
        prot.writeMessageEnd();
-
 
1085
      }
-
 
1086
 
-
 
1087
      public void getResult() throws org.apache.thrift.TException {
-
 
1088
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1089
          throw new IllegalStateException("Method call not finished!");
-
 
1090
        }
-
 
1091
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1092
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1093
        (new Client(prot)).recv_changeAgentRole();
-
 
1094
      }
-
 
1095
    }
-
 
1096
 
-
 
1097
    public void getOpenTicketCountForAgent(long agentId, org.apache.thrift.async.AsyncMethodCallback<getOpenTicketCountForAgent_call> resultHandler) throws org.apache.thrift.TException {
-
 
1098
      checkReady();
-
 
1099
      getOpenTicketCountForAgent_call method_call = new getOpenTicketCountForAgent_call(agentId, resultHandler, this, ___protocolFactory, ___transport);
-
 
1100
      this.___currentMethod = method_call;
-
 
1101
      ___manager.call(method_call);
-
 
1102
    }
-
 
1103
 
-
 
1104
    public static class getOpenTicketCountForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1105
      private long agentId;
-
 
1106
      public getOpenTicketCountForAgent_call(long agentId, org.apache.thrift.async.AsyncMethodCallback<getOpenTicketCountForAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
1107
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1108
        this.agentId = agentId;
-
 
1109
      }
-
 
1110
 
-
 
1111
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1112
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOpenTicketCountForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1113
        getOpenTicketCountForAgent_args args = new getOpenTicketCountForAgent_args();
-
 
1114
        args.setAgentId(agentId);
-
 
1115
        args.write(prot);
-
 
1116
        prot.writeMessageEnd();
-
 
1117
      }
-
 
1118
 
-
 
1119
      public int getResult() throws org.apache.thrift.TException {
-
 
1120
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1121
          throw new IllegalStateException("Method call not finished!");
-
 
1122
        }
-
 
1123
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1124
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1125
        return (new Client(prot)).recv_getOpenTicketCountForAgent();
-
 
1126
      }
-
 
1127
    }
-
 
1128
 
1010
  }
1129
  }
1011
 
1130
 
1012
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1131
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1013
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1132
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1014
    public Processor(I iface) {
1133
    public Processor(I iface) {
Line 1034... Line 1153...
1034
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
1153
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
1035
      processMap.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
1154
      processMap.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
1036
      processMap.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
1155
      processMap.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
1037
      processMap.put("changeAgentStatus", new changeAgentStatus());
1156
      processMap.put("changeAgentStatus", new changeAgentStatus());
1038
      processMap.put("insertAgent", new insertAgent());
1157
      processMap.put("insertAgent", new insertAgent());
-
 
1158
      processMap.put("changeAgentRole", new changeAgentRole());
-
 
1159
      processMap.put("getOpenTicketCountForAgent", new getOpenTicketCountForAgent());
1039
      return processMap;
1160
      return processMap;
1040
    }
1161
    }
1041
 
1162
 
1042
    private static class getTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTickets_args> {
1163
    private static class getTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTickets_args> {
1043
      public getTickets() {
1164
      public getTickets() {
Line 1296... Line 1417...
1296
        iface.insertAgent(args.agent, args.role);
1417
        iface.insertAgent(args.agent, args.role);
1297
        return result;
1418
        return result;
1298
      }
1419
      }
1299
    }
1420
    }
1300
 
1421
 
-
 
1422
    private static class changeAgentRole<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeAgentRole_args> {
-
 
1423
      public changeAgentRole() {
-
 
1424
        super("changeAgentRole");
-
 
1425
      }
-
 
1426
 
-
 
1427
      protected changeAgentRole_args getEmptyArgsInstance() {
-
 
1428
        return new changeAgentRole_args();
-
 
1429
      }
-
 
1430
 
-
 
1431
      protected changeAgentRole_result getResult(I iface, changeAgentRole_args args) throws org.apache.thrift.TException {
-
 
1432
        changeAgentRole_result result = new changeAgentRole_result();
-
 
1433
        iface.changeAgentRole(args.id, args.role);
-
 
1434
        return result;
-
 
1435
      }
-
 
1436
    }
-
 
1437
 
-
 
1438
    private static class getOpenTicketCountForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOpenTicketCountForAgent_args> {
-
 
1439
      public getOpenTicketCountForAgent() {
-
 
1440
        super("getOpenTicketCountForAgent");
-
 
1441
      }
-
 
1442
 
-
 
1443
      protected getOpenTicketCountForAgent_args getEmptyArgsInstance() {
-
 
1444
        return new getOpenTicketCountForAgent_args();
-
 
1445
      }
-
 
1446
 
-
 
1447
      protected getOpenTicketCountForAgent_result getResult(I iface, getOpenTicketCountForAgent_args args) throws org.apache.thrift.TException {
-
 
1448
        getOpenTicketCountForAgent_result result = new getOpenTicketCountForAgent_result();
-
 
1449
        result.success = iface.getOpenTicketCountForAgent(args.agentId);
-
 
1450
        result.setSuccessIsSet(true);
-
 
1451
        return result;
-
 
1452
      }
-
 
1453
    }
-
 
1454
 
1301
  }
1455
  }
1302
 
1456
 
1303
  public static class getTickets_args implements org.apache.thrift.TBase<getTickets_args, getTickets_args._Fields>, java.io.Serializable, Cloneable   {
1457
  public static class getTickets_args implements org.apache.thrift.TBase<getTickets_args, getTickets_args._Fields>, java.io.Serializable, Cloneable   {
1304
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_args");
1458
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_args");
1305
 
1459
 
Line 10618... Line 10772...
10618
      sb.append(")");
10772
      sb.append(")");
10619
      return sb.toString();
10773
      return sb.toString();
10620
    }
10774
    }
10621
 
10775
 
10622
    public void validate() throws org.apache.thrift.TException {
10776
    public void validate() throws org.apache.thrift.TException {
-
 
10777
      // check for required fields
-
 
10778
    }
-
 
10779
 
-
 
10780
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10781
      try {
-
 
10782
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10783
      } catch (org.apache.thrift.TException te) {
-
 
10784
        throw new java.io.IOException(te);
-
 
10785
      }
-
 
10786
    }
-
 
10787
 
-
 
10788
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10789
      try {
-
 
10790
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10791
      } catch (org.apache.thrift.TException te) {
-
 
10792
        throw new java.io.IOException(te);
-
 
10793
      }
-
 
10794
    }
-
 
10795
 
-
 
10796
  }
-
 
10797
 
-
 
10798
  public static class changeAgentRole_args implements org.apache.thrift.TBase<changeAgentRole_args, changeAgentRole_args._Fields>, java.io.Serializable, Cloneable   {
-
 
10799
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentRole_args");
-
 
10800
 
-
 
10801
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
10802
    private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.LIST, (short)2);
-
 
10803
 
-
 
10804
    private long id; // required
-
 
10805
    private List<String> role; // required
-
 
10806
 
-
 
10807
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10808
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
10809
      ID((short)1, "id"),
-
 
10810
      ROLE((short)2, "role");
-
 
10811
 
-
 
10812
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10813
 
-
 
10814
      static {
-
 
10815
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10816
          byName.put(field.getFieldName(), field);
-
 
10817
        }
-
 
10818
      }
-
 
10819
 
-
 
10820
      /**
-
 
10821
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10822
       */
-
 
10823
      public static _Fields findByThriftId(int fieldId) {
-
 
10824
        switch(fieldId) {
-
 
10825
          case 1: // ID
-
 
10826
            return ID;
-
 
10827
          case 2: // ROLE
-
 
10828
            return ROLE;
-
 
10829
          default:
-
 
10830
            return null;
-
 
10831
        }
-
 
10832
      }
-
 
10833
 
-
 
10834
      /**
-
 
10835
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10836
       * if it is not found.
-
 
10837
       */
-
 
10838
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10839
        _Fields fields = findByThriftId(fieldId);
-
 
10840
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10841
        return fields;
-
 
10842
      }
-
 
10843
 
-
 
10844
      /**
-
 
10845
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10846
       */
-
 
10847
      public static _Fields findByName(String name) {
-
 
10848
        return byName.get(name);
-
 
10849
      }
-
 
10850
 
-
 
10851
      private final short _thriftId;
-
 
10852
      private final String _fieldName;
-
 
10853
 
-
 
10854
      _Fields(short thriftId, String fieldName) {
-
 
10855
        _thriftId = thriftId;
-
 
10856
        _fieldName = fieldName;
-
 
10857
      }
-
 
10858
 
-
 
10859
      public short getThriftFieldId() {
-
 
10860
        return _thriftId;
-
 
10861
      }
-
 
10862
 
-
 
10863
      public String getFieldName() {
-
 
10864
        return _fieldName;
-
 
10865
      }
-
 
10866
    }
-
 
10867
 
-
 
10868
    // isset id assignments
-
 
10869
    private static final int __ID_ISSET_ID = 0;
-
 
10870
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
10871
 
-
 
10872
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
10873
    static {
-
 
10874
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10875
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10876
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
10877
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10878
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
10879
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
10880
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
10881
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentRole_args.class, metaDataMap);
-
 
10882
    }
-
 
10883
 
-
 
10884
    public changeAgentRole_args() {
-
 
10885
    }
-
 
10886
 
-
 
10887
    public changeAgentRole_args(
-
 
10888
      long id,
-
 
10889
      List<String> role)
-
 
10890
    {
-
 
10891
      this();
-
 
10892
      this.id = id;
-
 
10893
      setIdIsSet(true);
-
 
10894
      this.role = role;
-
 
10895
    }
-
 
10896
 
-
 
10897
    /**
-
 
10898
     * Performs a deep copy on <i>other</i>.
-
 
10899
     */
-
 
10900
    public changeAgentRole_args(changeAgentRole_args other) {
-
 
10901
      __isset_bit_vector.clear();
-
 
10902
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
10903
      this.id = other.id;
-
 
10904
      if (other.isSetRole()) {
-
 
10905
        List<String> __this__role = new ArrayList<String>();
-
 
10906
        for (String other_element : other.role) {
-
 
10907
          __this__role.add(other_element);
-
 
10908
        }
-
 
10909
        this.role = __this__role;
-
 
10910
      }
-
 
10911
    }
-
 
10912
 
-
 
10913
    public changeAgentRole_args deepCopy() {
-
 
10914
      return new changeAgentRole_args(this);
-
 
10915
    }
-
 
10916
 
-
 
10917
    @Override
-
 
10918
    public void clear() {
-
 
10919
      setIdIsSet(false);
-
 
10920
      this.id = 0;
-
 
10921
      this.role = null;
-
 
10922
    }
-
 
10923
 
-
 
10924
    public long getId() {
-
 
10925
      return this.id;
-
 
10926
    }
-
 
10927
 
-
 
10928
    public void setId(long id) {
-
 
10929
      this.id = id;
-
 
10930
      setIdIsSet(true);
-
 
10931
    }
-
 
10932
 
-
 
10933
    public void unsetId() {
-
 
10934
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
10935
    }
-
 
10936
 
-
 
10937
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
10938
    public boolean isSetId() {
-
 
10939
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
10940
    }
-
 
10941
 
-
 
10942
    public void setIdIsSet(boolean value) {
-
 
10943
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
10944
    }
-
 
10945
 
-
 
10946
    public int getRoleSize() {
-
 
10947
      return (this.role == null) ? 0 : this.role.size();
-
 
10948
    }
-
 
10949
 
-
 
10950
    public java.util.Iterator<String> getRoleIterator() {
-
 
10951
      return (this.role == null) ? null : this.role.iterator();
-
 
10952
    }
-
 
10953
 
-
 
10954
    public void addToRole(String elem) {
-
 
10955
      if (this.role == null) {
-
 
10956
        this.role = new ArrayList<String>();
-
 
10957
      }
-
 
10958
      this.role.add(elem);
-
 
10959
    }
-
 
10960
 
-
 
10961
    public List<String> getRole() {
-
 
10962
      return this.role;
-
 
10963
    }
-
 
10964
 
-
 
10965
    public void setRole(List<String> role) {
-
 
10966
      this.role = role;
-
 
10967
    }
-
 
10968
 
-
 
10969
    public void unsetRole() {
-
 
10970
      this.role = null;
-
 
10971
    }
-
 
10972
 
-
 
10973
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
-
 
10974
    public boolean isSetRole() {
-
 
10975
      return this.role != null;
-
 
10976
    }
-
 
10977
 
-
 
10978
    public void setRoleIsSet(boolean value) {
-
 
10979
      if (!value) {
-
 
10980
        this.role = null;
-
 
10981
      }
-
 
10982
    }
-
 
10983
 
-
 
10984
    public void setFieldValue(_Fields field, Object value) {
-
 
10985
      switch (field) {
-
 
10986
      case ID:
-
 
10987
        if (value == null) {
-
 
10988
          unsetId();
-
 
10989
        } else {
-
 
10990
          setId((Long)value);
-
 
10991
        }
-
 
10992
        break;
-
 
10993
 
-
 
10994
      case ROLE:
-
 
10995
        if (value == null) {
-
 
10996
          unsetRole();
-
 
10997
        } else {
-
 
10998
          setRole((List<String>)value);
-
 
10999
        }
-
 
11000
        break;
-
 
11001
 
-
 
11002
      }
-
 
11003
    }
-
 
11004
 
-
 
11005
    public Object getFieldValue(_Fields field) {
-
 
11006
      switch (field) {
-
 
11007
      case ID:
-
 
11008
        return Long.valueOf(getId());
-
 
11009
 
-
 
11010
      case ROLE:
-
 
11011
        return getRole();
-
 
11012
 
-
 
11013
      }
-
 
11014
      throw new IllegalStateException();
-
 
11015
    }
-
 
11016
 
-
 
11017
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
11018
    public boolean isSet(_Fields field) {
-
 
11019
      if (field == null) {
-
 
11020
        throw new IllegalArgumentException();
-
 
11021
      }
-
 
11022
 
-
 
11023
      switch (field) {
-
 
11024
      case ID:
-
 
11025
        return isSetId();
-
 
11026
      case ROLE:
-
 
11027
        return isSetRole();
-
 
11028
      }
-
 
11029
      throw new IllegalStateException();
-
 
11030
    }
-
 
11031
 
-
 
11032
    @Override
-
 
11033
    public boolean equals(Object that) {
-
 
11034
      if (that == null)
-
 
11035
        return false;
-
 
11036
      if (that instanceof changeAgentRole_args)
-
 
11037
        return this.equals((changeAgentRole_args)that);
-
 
11038
      return false;
-
 
11039
    }
-
 
11040
 
-
 
11041
    public boolean equals(changeAgentRole_args that) {
-
 
11042
      if (that == null)
-
 
11043
        return false;
-
 
11044
 
-
 
11045
      boolean this_present_id = true;
-
 
11046
      boolean that_present_id = true;
-
 
11047
      if (this_present_id || that_present_id) {
-
 
11048
        if (!(this_present_id && that_present_id))
-
 
11049
          return false;
-
 
11050
        if (this.id != that.id)
-
 
11051
          return false;
-
 
11052
      }
-
 
11053
 
-
 
11054
      boolean this_present_role = true && this.isSetRole();
-
 
11055
      boolean that_present_role = true && that.isSetRole();
-
 
11056
      if (this_present_role || that_present_role) {
-
 
11057
        if (!(this_present_role && that_present_role))
-
 
11058
          return false;
-
 
11059
        if (!this.role.equals(that.role))
-
 
11060
          return false;
-
 
11061
      }
-
 
11062
 
-
 
11063
      return true;
-
 
11064
    }
-
 
11065
 
-
 
11066
    @Override
-
 
11067
    public int hashCode() {
-
 
11068
      return 0;
-
 
11069
    }
-
 
11070
 
-
 
11071
    public int compareTo(changeAgentRole_args other) {
-
 
11072
      if (!getClass().equals(other.getClass())) {
-
 
11073
        return getClass().getName().compareTo(other.getClass().getName());
-
 
11074
      }
-
 
11075
 
-
 
11076
      int lastComparison = 0;
-
 
11077
      changeAgentRole_args typedOther = (changeAgentRole_args)other;
-
 
11078
 
-
 
11079
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
11080
      if (lastComparison != 0) {
-
 
11081
        return lastComparison;
-
 
11082
      }
-
 
11083
      if (isSetId()) {
-
 
11084
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
11085
        if (lastComparison != 0) {
-
 
11086
          return lastComparison;
-
 
11087
        }
-
 
11088
      }
-
 
11089
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
-
 
11090
      if (lastComparison != 0) {
-
 
11091
        return lastComparison;
-
 
11092
      }
-
 
11093
      if (isSetRole()) {
-
 
11094
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
-
 
11095
        if (lastComparison != 0) {
-
 
11096
          return lastComparison;
-
 
11097
        }
-
 
11098
      }
-
 
11099
      return 0;
-
 
11100
    }
-
 
11101
 
-
 
11102
    public _Fields fieldForId(int fieldId) {
-
 
11103
      return _Fields.findByThriftId(fieldId);
-
 
11104
    }
-
 
11105
 
-
 
11106
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
11107
      org.apache.thrift.protocol.TField field;
-
 
11108
      iprot.readStructBegin();
-
 
11109
      while (true)
-
 
11110
      {
-
 
11111
        field = iprot.readFieldBegin();
-
 
11112
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
11113
          break;
-
 
11114
        }
-
 
11115
        switch (field.id) {
-
 
11116
          case 1: // ID
-
 
11117
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
11118
              this.id = iprot.readI64();
-
 
11119
              setIdIsSet(true);
-
 
11120
            } else { 
-
 
11121
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11122
            }
-
 
11123
            break;
-
 
11124
          case 2: // ROLE
-
 
11125
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
11126
              {
-
 
11127
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
-
 
11128
                this.role = new ArrayList<String>(_list40.size);
-
 
11129
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
-
 
11130
                {
-
 
11131
                  String _elem42; // required
-
 
11132
                  _elem42 = iprot.readString();
-
 
11133
                  this.role.add(_elem42);
-
 
11134
                }
-
 
11135
                iprot.readListEnd();
-
 
11136
              }
-
 
11137
            } else { 
-
 
11138
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11139
            }
-
 
11140
            break;
-
 
11141
          default:
-
 
11142
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11143
        }
-
 
11144
        iprot.readFieldEnd();
-
 
11145
      }
-
 
11146
      iprot.readStructEnd();
-
 
11147
      validate();
-
 
11148
    }
-
 
11149
 
-
 
11150
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
11151
      validate();
-
 
11152
 
-
 
11153
      oprot.writeStructBegin(STRUCT_DESC);
-
 
11154
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
11155
      oprot.writeI64(this.id);
-
 
11156
      oprot.writeFieldEnd();
-
 
11157
      if (this.role != null) {
-
 
11158
        oprot.writeFieldBegin(ROLE_FIELD_DESC);
-
 
11159
        {
-
 
11160
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.role.size()));
-
 
11161
          for (String _iter43 : this.role)
-
 
11162
          {
-
 
11163
            oprot.writeString(_iter43);
-
 
11164
          }
-
 
11165
          oprot.writeListEnd();
-
 
11166
        }
-
 
11167
        oprot.writeFieldEnd();
-
 
11168
      }
-
 
11169
      oprot.writeFieldStop();
-
 
11170
      oprot.writeStructEnd();
-
 
11171
    }
-
 
11172
 
-
 
11173
    @Override
-
 
11174
    public String toString() {
-
 
11175
      StringBuilder sb = new StringBuilder("changeAgentRole_args(");
-
 
11176
      boolean first = true;
-
 
11177
 
-
 
11178
      sb.append("id:");
-
 
11179
      sb.append(this.id);
-
 
11180
      first = false;
-
 
11181
      if (!first) sb.append(", ");
-
 
11182
      sb.append("role:");
-
 
11183
      if (this.role == null) {
-
 
11184
        sb.append("null");
-
 
11185
      } else {
-
 
11186
        sb.append(this.role);
-
 
11187
      }
-
 
11188
      first = false;
-
 
11189
      sb.append(")");
-
 
11190
      return sb.toString();
-
 
11191
    }
-
 
11192
 
-
 
11193
    public void validate() throws org.apache.thrift.TException {
-
 
11194
      // check for required fields
-
 
11195
    }
-
 
11196
 
-
 
11197
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11198
      try {
-
 
11199
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11200
      } catch (org.apache.thrift.TException te) {
-
 
11201
        throw new java.io.IOException(te);
-
 
11202
      }
-
 
11203
    }
-
 
11204
 
-
 
11205
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11206
      try {
-
 
11207
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
11208
        __isset_bit_vector = new BitSet(1);
-
 
11209
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11210
      } catch (org.apache.thrift.TException te) {
-
 
11211
        throw new java.io.IOException(te);
-
 
11212
      }
-
 
11213
    }
-
 
11214
 
-
 
11215
  }
-
 
11216
 
-
 
11217
  public static class changeAgentRole_result implements org.apache.thrift.TBase<changeAgentRole_result, changeAgentRole_result._Fields>, java.io.Serializable, Cloneable   {
-
 
11218
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentRole_result");
-
 
11219
 
-
 
11220
 
-
 
11221
 
-
 
11222
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
11223
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
11224
;
-
 
11225
 
-
 
11226
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
11227
 
-
 
11228
      static {
-
 
11229
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
11230
          byName.put(field.getFieldName(), field);
-
 
11231
        }
-
 
11232
      }
-
 
11233
 
-
 
11234
      /**
-
 
11235
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
11236
       */
-
 
11237
      public static _Fields findByThriftId(int fieldId) {
-
 
11238
        switch(fieldId) {
-
 
11239
          default:
-
 
11240
            return null;
-
 
11241
        }
-
 
11242
      }
-
 
11243
 
-
 
11244
      /**
-
 
11245
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
11246
       * if it is not found.
-
 
11247
       */
-
 
11248
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
11249
        _Fields fields = findByThriftId(fieldId);
-
 
11250
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
11251
        return fields;
-
 
11252
      }
-
 
11253
 
-
 
11254
      /**
-
 
11255
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11256
       */
-
 
11257
      public static _Fields findByName(String name) {
-
 
11258
        return byName.get(name);
-
 
11259
      }
-
 
11260
 
-
 
11261
      private final short _thriftId;
-
 
11262
      private final String _fieldName;
-
 
11263
 
-
 
11264
      _Fields(short thriftId, String fieldName) {
-
 
11265
        _thriftId = thriftId;
-
 
11266
        _fieldName = fieldName;
-
 
11267
      }
-
 
11268
 
-
 
11269
      public short getThriftFieldId() {
-
 
11270
        return _thriftId;
-
 
11271
      }
-
 
11272
 
-
 
11273
      public String getFieldName() {
-
 
11274
        return _fieldName;
-
 
11275
      }
-
 
11276
    }
-
 
11277
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11278
    static {
-
 
11279
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11280
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11281
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentRole_result.class, metaDataMap);
-
 
11282
    }
-
 
11283
 
-
 
11284
    public changeAgentRole_result() {
-
 
11285
    }
-
 
11286
 
-
 
11287
    /**
-
 
11288
     * Performs a deep copy on <i>other</i>.
-
 
11289
     */
-
 
11290
    public changeAgentRole_result(changeAgentRole_result other) {
-
 
11291
    }
-
 
11292
 
-
 
11293
    public changeAgentRole_result deepCopy() {
-
 
11294
      return new changeAgentRole_result(this);
-
 
11295
    }
-
 
11296
 
-
 
11297
    @Override
-
 
11298
    public void clear() {
-
 
11299
    }
-
 
11300
 
-
 
11301
    public void setFieldValue(_Fields field, Object value) {
-
 
11302
      switch (field) {
-
 
11303
      }
-
 
11304
    }
-
 
11305
 
-
 
11306
    public Object getFieldValue(_Fields field) {
-
 
11307
      switch (field) {
-
 
11308
      }
-
 
11309
      throw new IllegalStateException();
-
 
11310
    }
-
 
11311
 
-
 
11312
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
11313
    public boolean isSet(_Fields field) {
-
 
11314
      if (field == null) {
-
 
11315
        throw new IllegalArgumentException();
-
 
11316
      }
-
 
11317
 
-
 
11318
      switch (field) {
-
 
11319
      }
-
 
11320
      throw new IllegalStateException();
-
 
11321
    }
-
 
11322
 
-
 
11323
    @Override
-
 
11324
    public boolean equals(Object that) {
-
 
11325
      if (that == null)
-
 
11326
        return false;
-
 
11327
      if (that instanceof changeAgentRole_result)
-
 
11328
        return this.equals((changeAgentRole_result)that);
-
 
11329
      return false;
-
 
11330
    }
-
 
11331
 
-
 
11332
    public boolean equals(changeAgentRole_result that) {
-
 
11333
      if (that == null)
-
 
11334
        return false;
-
 
11335
 
-
 
11336
      return true;
-
 
11337
    }
-
 
11338
 
-
 
11339
    @Override
-
 
11340
    public int hashCode() {
-
 
11341
      return 0;
-
 
11342
    }
-
 
11343
 
-
 
11344
    public int compareTo(changeAgentRole_result other) {
-
 
11345
      if (!getClass().equals(other.getClass())) {
-
 
11346
        return getClass().getName().compareTo(other.getClass().getName());
-
 
11347
      }
-
 
11348
 
-
 
11349
      int lastComparison = 0;
-
 
11350
      changeAgentRole_result typedOther = (changeAgentRole_result)other;
-
 
11351
 
-
 
11352
      return 0;
-
 
11353
    }
-
 
11354
 
-
 
11355
    public _Fields fieldForId(int fieldId) {
-
 
11356
      return _Fields.findByThriftId(fieldId);
-
 
11357
    }
-
 
11358
 
-
 
11359
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
11360
      org.apache.thrift.protocol.TField field;
-
 
11361
      iprot.readStructBegin();
-
 
11362
      while (true)
-
 
11363
      {
-
 
11364
        field = iprot.readFieldBegin();
-
 
11365
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
11366
          break;
-
 
11367
        }
-
 
11368
        switch (field.id) {
-
 
11369
          default:
-
 
11370
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11371
        }
-
 
11372
        iprot.readFieldEnd();
-
 
11373
      }
-
 
11374
      iprot.readStructEnd();
-
 
11375
      validate();
-
 
11376
    }
-
 
11377
 
-
 
11378
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
11379
      oprot.writeStructBegin(STRUCT_DESC);
-
 
11380
 
-
 
11381
      oprot.writeFieldStop();
-
 
11382
      oprot.writeStructEnd();
-
 
11383
    }
-
 
11384
 
-
 
11385
    @Override
-
 
11386
    public String toString() {
-
 
11387
      StringBuilder sb = new StringBuilder("changeAgentRole_result(");
-
 
11388
      boolean first = true;
-
 
11389
 
-
 
11390
      sb.append(")");
-
 
11391
      return sb.toString();
-
 
11392
    }
-
 
11393
 
-
 
11394
    public void validate() throws org.apache.thrift.TException {
-
 
11395
      // check for required fields
-
 
11396
    }
-
 
11397
 
-
 
11398
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11399
      try {
-
 
11400
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11401
      } catch (org.apache.thrift.TException te) {
-
 
11402
        throw new java.io.IOException(te);
-
 
11403
      }
-
 
11404
    }
-
 
11405
 
-
 
11406
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11407
      try {
-
 
11408
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11409
      } catch (org.apache.thrift.TException te) {
-
 
11410
        throw new java.io.IOException(te);
-
 
11411
      }
-
 
11412
    }
-
 
11413
 
-
 
11414
  }
-
 
11415
 
-
 
11416
  public static class getOpenTicketCountForAgent_args implements org.apache.thrift.TBase<getOpenTicketCountForAgent_args, getOpenTicketCountForAgent_args._Fields>, java.io.Serializable, Cloneable   {
-
 
11417
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketCountForAgent_args");
-
 
11418
 
-
 
11419
    private static final org.apache.thrift.protocol.TField AGENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
11420
 
-
 
11421
    private long agentId; // required
-
 
11422
 
-
 
11423
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
11424
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
11425
      AGENT_ID((short)1, "agentId");
-
 
11426
 
-
 
11427
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
11428
 
-
 
11429
      static {
-
 
11430
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
11431
          byName.put(field.getFieldName(), field);
-
 
11432
        }
-
 
11433
      }
-
 
11434
 
-
 
11435
      /**
-
 
11436
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
11437
       */
-
 
11438
      public static _Fields findByThriftId(int fieldId) {
-
 
11439
        switch(fieldId) {
-
 
11440
          case 1: // AGENT_ID
-
 
11441
            return AGENT_ID;
-
 
11442
          default:
-
 
11443
            return null;
-
 
11444
        }
-
 
11445
      }
-
 
11446
 
-
 
11447
      /**
-
 
11448
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
11449
       * if it is not found.
-
 
11450
       */
-
 
11451
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
11452
        _Fields fields = findByThriftId(fieldId);
-
 
11453
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
11454
        return fields;
-
 
11455
      }
-
 
11456
 
-
 
11457
      /**
-
 
11458
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11459
       */
-
 
11460
      public static _Fields findByName(String name) {
-
 
11461
        return byName.get(name);
-
 
11462
      }
-
 
11463
 
-
 
11464
      private final short _thriftId;
-
 
11465
      private final String _fieldName;
-
 
11466
 
-
 
11467
      _Fields(short thriftId, String fieldName) {
-
 
11468
        _thriftId = thriftId;
-
 
11469
        _fieldName = fieldName;
-
 
11470
      }
-
 
11471
 
-
 
11472
      public short getThriftFieldId() {
-
 
11473
        return _thriftId;
-
 
11474
      }
-
 
11475
 
-
 
11476
      public String getFieldName() {
-
 
11477
        return _fieldName;
-
 
11478
      }
-
 
11479
    }
-
 
11480
 
-
 
11481
    // isset id assignments
-
 
11482
    private static final int __AGENTID_ISSET_ID = 0;
-
 
11483
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
11484
 
-
 
11485
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11486
    static {
-
 
11487
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11488
      tmpMap.put(_Fields.AGENT_ID, new org.apache.thrift.meta_data.FieldMetaData("agentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11489
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
11490
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11491
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketCountForAgent_args.class, metaDataMap);
-
 
11492
    }
-
 
11493
 
-
 
11494
    public getOpenTicketCountForAgent_args() {
-
 
11495
    }
-
 
11496
 
-
 
11497
    public getOpenTicketCountForAgent_args(
-
 
11498
      long agentId)
-
 
11499
    {
-
 
11500
      this();
-
 
11501
      this.agentId = agentId;
-
 
11502
      setAgentIdIsSet(true);
-
 
11503
    }
-
 
11504
 
-
 
11505
    /**
-
 
11506
     * Performs a deep copy on <i>other</i>.
-
 
11507
     */
-
 
11508
    public getOpenTicketCountForAgent_args(getOpenTicketCountForAgent_args other) {
-
 
11509
      __isset_bit_vector.clear();
-
 
11510
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
11511
      this.agentId = other.agentId;
-
 
11512
    }
-
 
11513
 
-
 
11514
    public getOpenTicketCountForAgent_args deepCopy() {
-
 
11515
      return new getOpenTicketCountForAgent_args(this);
-
 
11516
    }
-
 
11517
 
-
 
11518
    @Override
-
 
11519
    public void clear() {
-
 
11520
      setAgentIdIsSet(false);
-
 
11521
      this.agentId = 0;
-
 
11522
    }
-
 
11523
 
-
 
11524
    public long getAgentId() {
-
 
11525
      return this.agentId;
-
 
11526
    }
-
 
11527
 
-
 
11528
    public void setAgentId(long agentId) {
-
 
11529
      this.agentId = agentId;
-
 
11530
      setAgentIdIsSet(true);
-
 
11531
    }
-
 
11532
 
-
 
11533
    public void unsetAgentId() {
-
 
11534
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
-
 
11535
    }
-
 
11536
 
-
 
11537
    /** Returns true if field agentId is set (has been assigned a value) and false otherwise */
-
 
11538
    public boolean isSetAgentId() {
-
 
11539
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
-
 
11540
    }
-
 
11541
 
-
 
11542
    public void setAgentIdIsSet(boolean value) {
-
 
11543
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
-
 
11544
    }
-
 
11545
 
-
 
11546
    public void setFieldValue(_Fields field, Object value) {
-
 
11547
      switch (field) {
-
 
11548
      case AGENT_ID:
-
 
11549
        if (value == null) {
-
 
11550
          unsetAgentId();
-
 
11551
        } else {
-
 
11552
          setAgentId((Long)value);
-
 
11553
        }
-
 
11554
        break;
-
 
11555
 
-
 
11556
      }
-
 
11557
    }
-
 
11558
 
-
 
11559
    public Object getFieldValue(_Fields field) {
-
 
11560
      switch (field) {
-
 
11561
      case AGENT_ID:
-
 
11562
        return Long.valueOf(getAgentId());
-
 
11563
 
-
 
11564
      }
-
 
11565
      throw new IllegalStateException();
-
 
11566
    }
-
 
11567
 
-
 
11568
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
11569
    public boolean isSet(_Fields field) {
-
 
11570
      if (field == null) {
-
 
11571
        throw new IllegalArgumentException();
-
 
11572
      }
-
 
11573
 
-
 
11574
      switch (field) {
-
 
11575
      case AGENT_ID:
-
 
11576
        return isSetAgentId();
-
 
11577
      }
-
 
11578
      throw new IllegalStateException();
-
 
11579
    }
-
 
11580
 
-
 
11581
    @Override
-
 
11582
    public boolean equals(Object that) {
-
 
11583
      if (that == null)
-
 
11584
        return false;
-
 
11585
      if (that instanceof getOpenTicketCountForAgent_args)
-
 
11586
        return this.equals((getOpenTicketCountForAgent_args)that);
-
 
11587
      return false;
-
 
11588
    }
-
 
11589
 
-
 
11590
    public boolean equals(getOpenTicketCountForAgent_args that) {
-
 
11591
      if (that == null)
-
 
11592
        return false;
-
 
11593
 
-
 
11594
      boolean this_present_agentId = true;
-
 
11595
      boolean that_present_agentId = true;
-
 
11596
      if (this_present_agentId || that_present_agentId) {
-
 
11597
        if (!(this_present_agentId && that_present_agentId))
-
 
11598
          return false;
-
 
11599
        if (this.agentId != that.agentId)
-
 
11600
          return false;
-
 
11601
      }
-
 
11602
 
-
 
11603
      return true;
-
 
11604
    }
-
 
11605
 
-
 
11606
    @Override
-
 
11607
    public int hashCode() {
-
 
11608
      return 0;
-
 
11609
    }
-
 
11610
 
-
 
11611
    public int compareTo(getOpenTicketCountForAgent_args other) {
-
 
11612
      if (!getClass().equals(other.getClass())) {
-
 
11613
        return getClass().getName().compareTo(other.getClass().getName());
-
 
11614
      }
-
 
11615
 
-
 
11616
      int lastComparison = 0;
-
 
11617
      getOpenTicketCountForAgent_args typedOther = (getOpenTicketCountForAgent_args)other;
-
 
11618
 
-
 
11619
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(typedOther.isSetAgentId());
-
 
11620
      if (lastComparison != 0) {
-
 
11621
        return lastComparison;
-
 
11622
      }
-
 
11623
      if (isSetAgentId()) {
-
 
11624
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentId, typedOther.agentId);
-
 
11625
        if (lastComparison != 0) {
-
 
11626
          return lastComparison;
-
 
11627
        }
-
 
11628
      }
-
 
11629
      return 0;
-
 
11630
    }
-
 
11631
 
-
 
11632
    public _Fields fieldForId(int fieldId) {
-
 
11633
      return _Fields.findByThriftId(fieldId);
-
 
11634
    }
-
 
11635
 
-
 
11636
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
11637
      org.apache.thrift.protocol.TField field;
-
 
11638
      iprot.readStructBegin();
-
 
11639
      while (true)
-
 
11640
      {
-
 
11641
        field = iprot.readFieldBegin();
-
 
11642
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
11643
          break;
-
 
11644
        }
-
 
11645
        switch (field.id) {
-
 
11646
          case 1: // AGENT_ID
-
 
11647
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
11648
              this.agentId = iprot.readI64();
-
 
11649
              setAgentIdIsSet(true);
-
 
11650
            } else { 
-
 
11651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11652
            }
-
 
11653
            break;
-
 
11654
          default:
-
 
11655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11656
        }
-
 
11657
        iprot.readFieldEnd();
-
 
11658
      }
-
 
11659
      iprot.readStructEnd();
-
 
11660
      validate();
-
 
11661
    }
-
 
11662
 
-
 
11663
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
11664
      validate();
-
 
11665
 
-
 
11666
      oprot.writeStructBegin(STRUCT_DESC);
-
 
11667
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
-
 
11668
      oprot.writeI64(this.agentId);
-
 
11669
      oprot.writeFieldEnd();
-
 
11670
      oprot.writeFieldStop();
-
 
11671
      oprot.writeStructEnd();
-
 
11672
    }
-
 
11673
 
-
 
11674
    @Override
-
 
11675
    public String toString() {
-
 
11676
      StringBuilder sb = new StringBuilder("getOpenTicketCountForAgent_args(");
-
 
11677
      boolean first = true;
-
 
11678
 
-
 
11679
      sb.append("agentId:");
-
 
11680
      sb.append(this.agentId);
-
 
11681
      first = false;
-
 
11682
      sb.append(")");
-
 
11683
      return sb.toString();
-
 
11684
    }
-
 
11685
 
-
 
11686
    public void validate() throws org.apache.thrift.TException {
-
 
11687
      // check for required fields
-
 
11688
    }
-
 
11689
 
-
 
11690
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11691
      try {
-
 
11692
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11693
      } catch (org.apache.thrift.TException te) {
-
 
11694
        throw new java.io.IOException(te);
-
 
11695
      }
-
 
11696
    }
-
 
11697
 
-
 
11698
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11699
      try {
-
 
11700
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
11701
        __isset_bit_vector = new BitSet(1);
-
 
11702
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11703
      } catch (org.apache.thrift.TException te) {
-
 
11704
        throw new java.io.IOException(te);
-
 
11705
      }
-
 
11706
    }
-
 
11707
 
-
 
11708
  }
-
 
11709
 
-
 
11710
  public static class getOpenTicketCountForAgent_result implements org.apache.thrift.TBase<getOpenTicketCountForAgent_result, getOpenTicketCountForAgent_result._Fields>, java.io.Serializable, Cloneable   {
-
 
11711
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketCountForAgent_result");
-
 
11712
 
-
 
11713
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
-
 
11714
 
-
 
11715
    private int success; // required
-
 
11716
 
-
 
11717
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
11718
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
11719
      SUCCESS((short)0, "success");
-
 
11720
 
-
 
11721
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
11722
 
-
 
11723
      static {
-
 
11724
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
11725
          byName.put(field.getFieldName(), field);
-
 
11726
        }
-
 
11727
      }
-
 
11728
 
-
 
11729
      /**
-
 
11730
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
11731
       */
-
 
11732
      public static _Fields findByThriftId(int fieldId) {
-
 
11733
        switch(fieldId) {
-
 
11734
          case 0: // SUCCESS
-
 
11735
            return SUCCESS;
-
 
11736
          default:
-
 
11737
            return null;
-
 
11738
        }
-
 
11739
      }
-
 
11740
 
-
 
11741
      /**
-
 
11742
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
11743
       * if it is not found.
-
 
11744
       */
-
 
11745
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
11746
        _Fields fields = findByThriftId(fieldId);
-
 
11747
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
11748
        return fields;
-
 
11749
      }
-
 
11750
 
-
 
11751
      /**
-
 
11752
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11753
       */
-
 
11754
      public static _Fields findByName(String name) {
-
 
11755
        return byName.get(name);
-
 
11756
      }
-
 
11757
 
-
 
11758
      private final short _thriftId;
-
 
11759
      private final String _fieldName;
-
 
11760
 
-
 
11761
      _Fields(short thriftId, String fieldName) {
-
 
11762
        _thriftId = thriftId;
-
 
11763
        _fieldName = fieldName;
-
 
11764
      }
-
 
11765
 
-
 
11766
      public short getThriftFieldId() {
-
 
11767
        return _thriftId;
-
 
11768
      }
-
 
11769
 
-
 
11770
      public String getFieldName() {
-
 
11771
        return _fieldName;
-
 
11772
      }
-
 
11773
    }
-
 
11774
 
-
 
11775
    // isset id assignments
-
 
11776
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
11777
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
11778
 
-
 
11779
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11780
    static {
-
 
11781
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11782
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11783
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
11784
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11785
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketCountForAgent_result.class, metaDataMap);
-
 
11786
    }
-
 
11787
 
-
 
11788
    public getOpenTicketCountForAgent_result() {
-
 
11789
    }
-
 
11790
 
-
 
11791
    public getOpenTicketCountForAgent_result(
-
 
11792
      int success)
-
 
11793
    {
-
 
11794
      this();
-
 
11795
      this.success = success;
-
 
11796
      setSuccessIsSet(true);
-
 
11797
    }
-
 
11798
 
-
 
11799
    /**
-
 
11800
     * Performs a deep copy on <i>other</i>.
-
 
11801
     */
-
 
11802
    public getOpenTicketCountForAgent_result(getOpenTicketCountForAgent_result other) {
-
 
11803
      __isset_bit_vector.clear();
-
 
11804
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
11805
      this.success = other.success;
-
 
11806
    }
-
 
11807
 
-
 
11808
    public getOpenTicketCountForAgent_result deepCopy() {
-
 
11809
      return new getOpenTicketCountForAgent_result(this);
-
 
11810
    }
-
 
11811
 
-
 
11812
    @Override
-
 
11813
    public void clear() {
-
 
11814
      setSuccessIsSet(false);
-
 
11815
      this.success = 0;
-
 
11816
    }
-
 
11817
 
-
 
11818
    public int getSuccess() {
-
 
11819
      return this.success;
-
 
11820
    }
-
 
11821
 
-
 
11822
    public void setSuccess(int success) {
-
 
11823
      this.success = success;
-
 
11824
      setSuccessIsSet(true);
-
 
11825
    }
-
 
11826
 
-
 
11827
    public void unsetSuccess() {
-
 
11828
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
11829
    }
-
 
11830
 
-
 
11831
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
11832
    public boolean isSetSuccess() {
-
 
11833
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
11834
    }
-
 
11835
 
-
 
11836
    public void setSuccessIsSet(boolean value) {
-
 
11837
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
11838
    }
-
 
11839
 
-
 
11840
    public void setFieldValue(_Fields field, Object value) {
-
 
11841
      switch (field) {
-
 
11842
      case SUCCESS:
-
 
11843
        if (value == null) {
-
 
11844
          unsetSuccess();
-
 
11845
        } else {
-
 
11846
          setSuccess((Integer)value);
-
 
11847
        }
-
 
11848
        break;
-
 
11849
 
-
 
11850
      }
-
 
11851
    }
-
 
11852
 
-
 
11853
    public Object getFieldValue(_Fields field) {
-
 
11854
      switch (field) {
-
 
11855
      case SUCCESS:
-
 
11856
        return Integer.valueOf(getSuccess());
-
 
11857
 
-
 
11858
      }
-
 
11859
      throw new IllegalStateException();
-
 
11860
    }
-
 
11861
 
-
 
11862
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
11863
    public boolean isSet(_Fields field) {
-
 
11864
      if (field == null) {
-
 
11865
        throw new IllegalArgumentException();
-
 
11866
      }
-
 
11867
 
-
 
11868
      switch (field) {
-
 
11869
      case SUCCESS:
-
 
11870
        return isSetSuccess();
-
 
11871
      }
-
 
11872
      throw new IllegalStateException();
-
 
11873
    }
-
 
11874
 
-
 
11875
    @Override
-
 
11876
    public boolean equals(Object that) {
-
 
11877
      if (that == null)
-
 
11878
        return false;
-
 
11879
      if (that instanceof getOpenTicketCountForAgent_result)
-
 
11880
        return this.equals((getOpenTicketCountForAgent_result)that);
-
 
11881
      return false;
-
 
11882
    }
-
 
11883
 
-
 
11884
    public boolean equals(getOpenTicketCountForAgent_result that) {
-
 
11885
      if (that == null)
-
 
11886
        return false;
-
 
11887
 
-
 
11888
      boolean this_present_success = true;
-
 
11889
      boolean that_present_success = true;
-
 
11890
      if (this_present_success || that_present_success) {
-
 
11891
        if (!(this_present_success && that_present_success))
-
 
11892
          return false;
-
 
11893
        if (this.success != that.success)
-
 
11894
          return false;
-
 
11895
      }
-
 
11896
 
-
 
11897
      return true;
-
 
11898
    }
-
 
11899
 
-
 
11900
    @Override
-
 
11901
    public int hashCode() {
-
 
11902
      return 0;
-
 
11903
    }
-
 
11904
 
-
 
11905
    public int compareTo(getOpenTicketCountForAgent_result other) {
-
 
11906
      if (!getClass().equals(other.getClass())) {
-
 
11907
        return getClass().getName().compareTo(other.getClass().getName());
-
 
11908
      }
-
 
11909
 
-
 
11910
      int lastComparison = 0;
-
 
11911
      getOpenTicketCountForAgent_result typedOther = (getOpenTicketCountForAgent_result)other;
-
 
11912
 
-
 
11913
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
11914
      if (lastComparison != 0) {
-
 
11915
        return lastComparison;
-
 
11916
      }
-
 
11917
      if (isSetSuccess()) {
-
 
11918
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
11919
        if (lastComparison != 0) {
-
 
11920
          return lastComparison;
-
 
11921
        }
-
 
11922
      }
-
 
11923
      return 0;
-
 
11924
    }
-
 
11925
 
-
 
11926
    public _Fields fieldForId(int fieldId) {
-
 
11927
      return _Fields.findByThriftId(fieldId);
-
 
11928
    }
-
 
11929
 
-
 
11930
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
11931
      org.apache.thrift.protocol.TField field;
-
 
11932
      iprot.readStructBegin();
-
 
11933
      while (true)
-
 
11934
      {
-
 
11935
        field = iprot.readFieldBegin();
-
 
11936
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
11937
          break;
-
 
11938
        }
-
 
11939
        switch (field.id) {
-
 
11940
          case 0: // SUCCESS
-
 
11941
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
11942
              this.success = iprot.readI32();
-
 
11943
              setSuccessIsSet(true);
-
 
11944
            } else { 
-
 
11945
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11946
            }
-
 
11947
            break;
-
 
11948
          default:
-
 
11949
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11950
        }
-
 
11951
        iprot.readFieldEnd();
-
 
11952
      }
-
 
11953
      iprot.readStructEnd();
-
 
11954
      validate();
-
 
11955
    }
-
 
11956
 
-
 
11957
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
11958
      oprot.writeStructBegin(STRUCT_DESC);
-
 
11959
 
-
 
11960
      if (this.isSetSuccess()) {
-
 
11961
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
11962
        oprot.writeI32(this.success);
-
 
11963
        oprot.writeFieldEnd();
-
 
11964
      }
-
 
11965
      oprot.writeFieldStop();
-
 
11966
      oprot.writeStructEnd();
-
 
11967
    }
-
 
11968
 
-
 
11969
    @Override
-
 
11970
    public String toString() {
-
 
11971
      StringBuilder sb = new StringBuilder("getOpenTicketCountForAgent_result(");
-
 
11972
      boolean first = true;
-
 
11973
 
-
 
11974
      sb.append("success:");
-
 
11975
      sb.append(this.success);
-
 
11976
      first = false;
-
 
11977
      sb.append(")");
-
 
11978
      return sb.toString();
-
 
11979
    }
-
 
11980
 
-
 
11981
    public void validate() throws org.apache.thrift.TException {
10623
      // check for required fields
11982
      // check for required fields
10624
    }
11983
    }
10625
 
11984
 
10626
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11985
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10627
      try {
11986
      try {