Subversion Repositories SmartDukaan

Rev

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

Rev 5287 Rev 5909
Line 60... Line 60...
60
 
60
 
61
    public void changeAgentRole(long id, List<String> role) throws org.apache.thrift.TException;
61
    public void changeAgentRole(long id, List<String> role) throws org.apache.thrift.TException;
62
 
62
 
63
    public int getOpenTicketCountForAgent(long agentId) throws org.apache.thrift.TException;
63
    public int getOpenTicketCountForAgent(long agentId) throws org.apache.thrift.TException;
64
 
64
 
-
 
65
    public Map<String,Long> getOpenTicketsMap() throws org.apache.thrift.TException;
-
 
66
 
65
  }
67
  }
66
 
68
 
67
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
69
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
68
 
70
 
69
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTickets_call> resultHandler) throws org.apache.thrift.TException;
71
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTickets_call> resultHandler) throws org.apache.thrift.TException;
Line 102... Line 104...
102
 
104
 
103
    public void changeAgentRole(long id, List<String> role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAgentRole_call> resultHandler) throws org.apache.thrift.TException;
105
    public void changeAgentRole(long id, List<String> role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAgentRole_call> resultHandler) throws org.apache.thrift.TException;
104
 
106
 
105
    public void getOpenTicketCountForAgent(long agentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOpenTicketCountForAgent_call> resultHandler) throws org.apache.thrift.TException;
107
    public void getOpenTicketCountForAgent(long agentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOpenTicketCountForAgent_call> resultHandler) throws org.apache.thrift.TException;
106
 
108
 
-
 
109
    public void getOpenTicketsMap(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOpenTicketsMap_call> resultHandler) throws org.apache.thrift.TException;
-
 
110
 
107
  }
111
  }
108
 
112
 
109
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
113
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
110
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
114
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
111
      public Factory() {}
115
      public Factory() {}
Line 542... Line 546...
542
        return result.success;
546
        return result.success;
543
      }
547
      }
544
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOpenTicketCountForAgent failed: unknown result");
548
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOpenTicketCountForAgent failed: unknown result");
545
    }
549
    }
546
 
550
 
-
 
551
    public Map<String,Long> getOpenTicketsMap() throws org.apache.thrift.TException
-
 
552
    {
-
 
553
      send_getOpenTicketsMap();
-
 
554
      return recv_getOpenTicketsMap();
-
 
555
    }
-
 
556
 
-
 
557
    public void send_getOpenTicketsMap() throws org.apache.thrift.TException
-
 
558
    {
-
 
559
      getOpenTicketsMap_args args = new getOpenTicketsMap_args();
-
 
560
      sendBase("getOpenTicketsMap", args);
-
 
561
    }
-
 
562
 
-
 
563
    public Map<String,Long> recv_getOpenTicketsMap() throws org.apache.thrift.TException
-
 
564
    {
-
 
565
      getOpenTicketsMap_result result = new getOpenTicketsMap_result();
-
 
566
      receiveBase(result, "getOpenTicketsMap");
-
 
567
      if (result.isSetSuccess()) {
-
 
568
        return result.success;
-
 
569
      }
-
 
570
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOpenTicketsMap failed: unknown result");
-
 
571
    }
-
 
572
 
547
  }
573
  }
548
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
574
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
549
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
575
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
550
      private org.apache.thrift.async.TAsyncClientManager clientManager;
576
      private org.apache.thrift.async.TAsyncClientManager clientManager;
551
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
577
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1183... Line 1209...
1183
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1209
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1184
        return (new Client(prot)).recv_getOpenTicketCountForAgent();
1210
        return (new Client(prot)).recv_getOpenTicketCountForAgent();
1185
      }
1211
      }
1186
    }
1212
    }
1187
 
1213
 
-
 
1214
    public void getOpenTicketsMap(org.apache.thrift.async.AsyncMethodCallback<getOpenTicketsMap_call> resultHandler) throws org.apache.thrift.TException {
-
 
1215
      checkReady();
-
 
1216
      getOpenTicketsMap_call method_call = new getOpenTicketsMap_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
1217
      this.___currentMethod = method_call;
-
 
1218
      ___manager.call(method_call);
-
 
1219
    }
-
 
1220
 
-
 
1221
    public static class getOpenTicketsMap_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1222
      public getOpenTicketsMap_call(org.apache.thrift.async.AsyncMethodCallback<getOpenTicketsMap_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 {
-
 
1223
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1224
      }
-
 
1225
 
-
 
1226
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1227
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOpenTicketsMap", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1228
        getOpenTicketsMap_args args = new getOpenTicketsMap_args();
-
 
1229
        args.write(prot);
-
 
1230
        prot.writeMessageEnd();
-
 
1231
      }
-
 
1232
 
-
 
1233
      public Map<String,Long> getResult() throws org.apache.thrift.TException {
-
 
1234
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1235
          throw new IllegalStateException("Method call not finished!");
-
 
1236
        }
-
 
1237
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1238
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1239
        return (new Client(prot)).recv_getOpenTicketsMap();
-
 
1240
      }
-
 
1241
    }
-
 
1242
 
1188
  }
1243
  }
1189
 
1244
 
1190
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1245
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1191
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1246
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1192
    public Processor(I iface) {
1247
    public Processor(I iface) {
Line 1215... Line 1270...
1215
      processMap.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
1270
      processMap.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
1216
      processMap.put("changeAgentStatus", new changeAgentStatus());
1271
      processMap.put("changeAgentStatus", new changeAgentStatus());
1217
      processMap.put("insertAgent", new insertAgent());
1272
      processMap.put("insertAgent", new insertAgent());
1218
      processMap.put("changeAgentRole", new changeAgentRole());
1273
      processMap.put("changeAgentRole", new changeAgentRole());
1219
      processMap.put("getOpenTicketCountForAgent", new getOpenTicketCountForAgent());
1274
      processMap.put("getOpenTicketCountForAgent", new getOpenTicketCountForAgent());
-
 
1275
      processMap.put("getOpenTicketsMap", new getOpenTicketsMap());
1220
      return processMap;
1276
      return processMap;
1221
    }
1277
    }
1222
 
1278
 
1223
    private static class getTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTickets_args> {
1279
    private static class getTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTickets_args> {
1224
      public getTickets() {
1280
      public getTickets() {
Line 1526... Line 1582...
1526
        result.setSuccessIsSet(true);
1582
        result.setSuccessIsSet(true);
1527
        return result;
1583
        return result;
1528
      }
1584
      }
1529
    }
1585
    }
1530
 
1586
 
-
 
1587
    private static class getOpenTicketsMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOpenTicketsMap_args> {
-
 
1588
      public getOpenTicketsMap() {
-
 
1589
        super("getOpenTicketsMap");
-
 
1590
      }
-
 
1591
 
-
 
1592
      protected getOpenTicketsMap_args getEmptyArgsInstance() {
-
 
1593
        return new getOpenTicketsMap_args();
-
 
1594
      }
-
 
1595
 
-
 
1596
      protected getOpenTicketsMap_result getResult(I iface, getOpenTicketsMap_args args) throws org.apache.thrift.TException {
-
 
1597
        getOpenTicketsMap_result result = new getOpenTicketsMap_result();
-
 
1598
        result.success = iface.getOpenTicketsMap();
-
 
1599
        return result;
-
 
1600
      }
-
 
1601
    }
-
 
1602
 
1531
  }
1603
  }
1532
 
1604
 
1533
  public static class getTickets_args implements org.apache.thrift.TBase<getTickets_args, getTickets_args._Fields>, java.io.Serializable, Cloneable   {
1605
  public static class getTickets_args implements org.apache.thrift.TBase<getTickets_args, getTickets_args._Fields>, java.io.Serializable, Cloneable   {
1534
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_args");
1606
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_args");
1535
 
1607
 
Line 12678... Line 12750...
12678
      first = false;
12750
      first = false;
12679
      sb.append(")");
12751
      sb.append(")");
12680
      return sb.toString();
12752
      return sb.toString();
12681
    }
12753
    }
12682
 
12754
 
-
 
12755
    public void validate() throws org.apache.thrift.TException {
-
 
12756
      // check for required fields
-
 
12757
    }
-
 
12758
 
-
 
12759
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12760
      try {
-
 
12761
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12762
      } catch (org.apache.thrift.TException te) {
-
 
12763
        throw new java.io.IOException(te);
-
 
12764
      }
-
 
12765
    }
-
 
12766
 
-
 
12767
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12768
      try {
-
 
12769
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12770
      } catch (org.apache.thrift.TException te) {
-
 
12771
        throw new java.io.IOException(te);
-
 
12772
      }
-
 
12773
    }
-
 
12774
 
-
 
12775
  }
-
 
12776
 
-
 
12777
  public static class getOpenTicketsMap_args implements org.apache.thrift.TBase<getOpenTicketsMap_args, getOpenTicketsMap_args._Fields>, java.io.Serializable, Cloneable   {
-
 
12778
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketsMap_args");
-
 
12779
 
-
 
12780
 
-
 
12781
 
-
 
12782
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12783
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
12784
;
-
 
12785
 
-
 
12786
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12787
 
-
 
12788
      static {
-
 
12789
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12790
          byName.put(field.getFieldName(), field);
-
 
12791
        }
-
 
12792
      }
-
 
12793
 
-
 
12794
      /**
-
 
12795
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12796
       */
-
 
12797
      public static _Fields findByThriftId(int fieldId) {
-
 
12798
        switch(fieldId) {
-
 
12799
          default:
-
 
12800
            return null;
-
 
12801
        }
-
 
12802
      }
-
 
12803
 
-
 
12804
      /**
-
 
12805
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12806
       * if it is not found.
-
 
12807
       */
-
 
12808
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12809
        _Fields fields = findByThriftId(fieldId);
-
 
12810
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12811
        return fields;
-
 
12812
      }
-
 
12813
 
-
 
12814
      /**
-
 
12815
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12816
       */
-
 
12817
      public static _Fields findByName(String name) {
-
 
12818
        return byName.get(name);
-
 
12819
      }
-
 
12820
 
-
 
12821
      private final short _thriftId;
-
 
12822
      private final String _fieldName;
-
 
12823
 
-
 
12824
      _Fields(short thriftId, String fieldName) {
-
 
12825
        _thriftId = thriftId;
-
 
12826
        _fieldName = fieldName;
-
 
12827
      }
-
 
12828
 
-
 
12829
      public short getThriftFieldId() {
-
 
12830
        return _thriftId;
-
 
12831
      }
-
 
12832
 
-
 
12833
      public String getFieldName() {
-
 
12834
        return _fieldName;
-
 
12835
      }
-
 
12836
    }
-
 
12837
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
12838
    static {
-
 
12839
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
12840
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
12841
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketsMap_args.class, metaDataMap);
-
 
12842
    }
-
 
12843
 
-
 
12844
    public getOpenTicketsMap_args() {
-
 
12845
    }
-
 
12846
 
-
 
12847
    /**
-
 
12848
     * Performs a deep copy on <i>other</i>.
-
 
12849
     */
-
 
12850
    public getOpenTicketsMap_args(getOpenTicketsMap_args other) {
-
 
12851
    }
-
 
12852
 
-
 
12853
    public getOpenTicketsMap_args deepCopy() {
-
 
12854
      return new getOpenTicketsMap_args(this);
-
 
12855
    }
-
 
12856
 
-
 
12857
    @Override
-
 
12858
    public void clear() {
-
 
12859
    }
-
 
12860
 
-
 
12861
    public void setFieldValue(_Fields field, Object value) {
-
 
12862
      switch (field) {
-
 
12863
      }
-
 
12864
    }
-
 
12865
 
-
 
12866
    public Object getFieldValue(_Fields field) {
-
 
12867
      switch (field) {
-
 
12868
      }
-
 
12869
      throw new IllegalStateException();
-
 
12870
    }
-
 
12871
 
-
 
12872
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
12873
    public boolean isSet(_Fields field) {
-
 
12874
      if (field == null) {
-
 
12875
        throw new IllegalArgumentException();
-
 
12876
      }
-
 
12877
 
-
 
12878
      switch (field) {
-
 
12879
      }
-
 
12880
      throw new IllegalStateException();
-
 
12881
    }
-
 
12882
 
-
 
12883
    @Override
-
 
12884
    public boolean equals(Object that) {
-
 
12885
      if (that == null)
-
 
12886
        return false;
-
 
12887
      if (that instanceof getOpenTicketsMap_args)
-
 
12888
        return this.equals((getOpenTicketsMap_args)that);
-
 
12889
      return false;
-
 
12890
    }
-
 
12891
 
-
 
12892
    public boolean equals(getOpenTicketsMap_args that) {
-
 
12893
      if (that == null)
-
 
12894
        return false;
-
 
12895
 
-
 
12896
      return true;
-
 
12897
    }
-
 
12898
 
-
 
12899
    @Override
-
 
12900
    public int hashCode() {
-
 
12901
      return 0;
-
 
12902
    }
-
 
12903
 
-
 
12904
    public int compareTo(getOpenTicketsMap_args other) {
-
 
12905
      if (!getClass().equals(other.getClass())) {
-
 
12906
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12907
      }
-
 
12908
 
-
 
12909
      int lastComparison = 0;
-
 
12910
      getOpenTicketsMap_args typedOther = (getOpenTicketsMap_args)other;
-
 
12911
 
-
 
12912
      return 0;
-
 
12913
    }
-
 
12914
 
-
 
12915
    public _Fields fieldForId(int fieldId) {
-
 
12916
      return _Fields.findByThriftId(fieldId);
-
 
12917
    }
-
 
12918
 
-
 
12919
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
12920
      org.apache.thrift.protocol.TField field;
-
 
12921
      iprot.readStructBegin();
-
 
12922
      while (true)
-
 
12923
      {
-
 
12924
        field = iprot.readFieldBegin();
-
 
12925
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
12926
          break;
-
 
12927
        }
-
 
12928
        switch (field.id) {
-
 
12929
          default:
-
 
12930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12931
        }
-
 
12932
        iprot.readFieldEnd();
-
 
12933
      }
-
 
12934
      iprot.readStructEnd();
-
 
12935
      validate();
-
 
12936
    }
-
 
12937
 
-
 
12938
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
12939
      validate();
-
 
12940
 
-
 
12941
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12942
      oprot.writeFieldStop();
-
 
12943
      oprot.writeStructEnd();
-
 
12944
    }
-
 
12945
 
-
 
12946
    @Override
-
 
12947
    public String toString() {
-
 
12948
      StringBuilder sb = new StringBuilder("getOpenTicketsMap_args(");
-
 
12949
      boolean first = true;
-
 
12950
 
-
 
12951
      sb.append(")");
-
 
12952
      return sb.toString();
-
 
12953
    }
-
 
12954
 
-
 
12955
    public void validate() throws org.apache.thrift.TException {
-
 
12956
      // check for required fields
-
 
12957
    }
-
 
12958
 
-
 
12959
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12960
      try {
-
 
12961
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12962
      } catch (org.apache.thrift.TException te) {
-
 
12963
        throw new java.io.IOException(te);
-
 
12964
      }
-
 
12965
    }
-
 
12966
 
-
 
12967
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12968
      try {
-
 
12969
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12970
      } catch (org.apache.thrift.TException te) {
-
 
12971
        throw new java.io.IOException(te);
-
 
12972
      }
-
 
12973
    }
-
 
12974
 
-
 
12975
  }
-
 
12976
 
-
 
12977
  public static class getOpenTicketsMap_result implements org.apache.thrift.TBase<getOpenTicketsMap_result, getOpenTicketsMap_result._Fields>, java.io.Serializable, Cloneable   {
-
 
12978
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketsMap_result");
-
 
12979
 
-
 
12980
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
12981
 
-
 
12982
    private Map<String,Long> success; // required
-
 
12983
 
-
 
12984
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12985
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
12986
      SUCCESS((short)0, "success");
-
 
12987
 
-
 
12988
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12989
 
-
 
12990
      static {
-
 
12991
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12992
          byName.put(field.getFieldName(), field);
-
 
12993
        }
-
 
12994
      }
-
 
12995
 
-
 
12996
      /**
-
 
12997
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12998
       */
-
 
12999
      public static _Fields findByThriftId(int fieldId) {
-
 
13000
        switch(fieldId) {
-
 
13001
          case 0: // SUCCESS
-
 
13002
            return SUCCESS;
-
 
13003
          default:
-
 
13004
            return null;
-
 
13005
        }
-
 
13006
      }
-
 
13007
 
-
 
13008
      /**
-
 
13009
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
13010
       * if it is not found.
-
 
13011
       */
-
 
13012
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
13013
        _Fields fields = findByThriftId(fieldId);
-
 
13014
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
13015
        return fields;
-
 
13016
      }
-
 
13017
 
-
 
13018
      /**
-
 
13019
       * Find the _Fields constant that matches name, or null if its not found.
-
 
13020
       */
-
 
13021
      public static _Fields findByName(String name) {
-
 
13022
        return byName.get(name);
-
 
13023
      }
-
 
13024
 
-
 
13025
      private final short _thriftId;
-
 
13026
      private final String _fieldName;
-
 
13027
 
-
 
13028
      _Fields(short thriftId, String fieldName) {
-
 
13029
        _thriftId = thriftId;
-
 
13030
        _fieldName = fieldName;
-
 
13031
      }
-
 
13032
 
-
 
13033
      public short getThriftFieldId() {
-
 
13034
        return _thriftId;
-
 
13035
      }
-
 
13036
 
-
 
13037
      public String getFieldName() {
-
 
13038
        return _fieldName;
-
 
13039
      }
-
 
13040
    }
-
 
13041
 
-
 
13042
    // isset id assignments
-
 
13043
 
-
 
13044
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
13045
    static {
-
 
13046
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
13047
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
13048
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
13049
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-
 
13050
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
13051
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
13052
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketsMap_result.class, metaDataMap);
-
 
13053
    }
-
 
13054
 
-
 
13055
    public getOpenTicketsMap_result() {
-
 
13056
    }
-
 
13057
 
-
 
13058
    public getOpenTicketsMap_result(
-
 
13059
      Map<String,Long> success)
-
 
13060
    {
-
 
13061
      this();
-
 
13062
      this.success = success;
-
 
13063
    }
-
 
13064
 
-
 
13065
    /**
-
 
13066
     * Performs a deep copy on <i>other</i>.
-
 
13067
     */
-
 
13068
    public getOpenTicketsMap_result(getOpenTicketsMap_result other) {
-
 
13069
      if (other.isSetSuccess()) {
-
 
13070
        Map<String,Long> __this__success = new HashMap<String,Long>();
-
 
13071
        for (Map.Entry<String, Long> other_element : other.success.entrySet()) {
-
 
13072
 
-
 
13073
          String other_element_key = other_element.getKey();
-
 
13074
          Long other_element_value = other_element.getValue();
-
 
13075
 
-
 
13076
          String __this__success_copy_key = other_element_key;
-
 
13077
 
-
 
13078
          Long __this__success_copy_value = other_element_value;
-
 
13079
 
-
 
13080
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
13081
        }
-
 
13082
        this.success = __this__success;
-
 
13083
      }
-
 
13084
    }
-
 
13085
 
-
 
13086
    public getOpenTicketsMap_result deepCopy() {
-
 
13087
      return new getOpenTicketsMap_result(this);
-
 
13088
    }
-
 
13089
 
-
 
13090
    @Override
-
 
13091
    public void clear() {
-
 
13092
      this.success = null;
-
 
13093
    }
-
 
13094
 
-
 
13095
    public int getSuccessSize() {
-
 
13096
      return (this.success == null) ? 0 : this.success.size();
-
 
13097
    }
-
 
13098
 
-
 
13099
    public void putToSuccess(String key, long val) {
-
 
13100
      if (this.success == null) {
-
 
13101
        this.success = new HashMap<String,Long>();
-
 
13102
      }
-
 
13103
      this.success.put(key, val);
-
 
13104
    }
-
 
13105
 
-
 
13106
    public Map<String,Long> getSuccess() {
-
 
13107
      return this.success;
-
 
13108
    }
-
 
13109
 
-
 
13110
    public void setSuccess(Map<String,Long> success) {
-
 
13111
      this.success = success;
-
 
13112
    }
-
 
13113
 
-
 
13114
    public void unsetSuccess() {
-
 
13115
      this.success = null;
-
 
13116
    }
-
 
13117
 
-
 
13118
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
13119
    public boolean isSetSuccess() {
-
 
13120
      return this.success != null;
-
 
13121
    }
-
 
13122
 
-
 
13123
    public void setSuccessIsSet(boolean value) {
-
 
13124
      if (!value) {
-
 
13125
        this.success = null;
-
 
13126
      }
-
 
13127
    }
-
 
13128
 
-
 
13129
    public void setFieldValue(_Fields field, Object value) {
-
 
13130
      switch (field) {
-
 
13131
      case SUCCESS:
-
 
13132
        if (value == null) {
-
 
13133
          unsetSuccess();
-
 
13134
        } else {
-
 
13135
          setSuccess((Map<String,Long>)value);
-
 
13136
        }
-
 
13137
        break;
-
 
13138
 
-
 
13139
      }
-
 
13140
    }
-
 
13141
 
-
 
13142
    public Object getFieldValue(_Fields field) {
-
 
13143
      switch (field) {
-
 
13144
      case SUCCESS:
-
 
13145
        return getSuccess();
-
 
13146
 
-
 
13147
      }
-
 
13148
      throw new IllegalStateException();
-
 
13149
    }
-
 
13150
 
-
 
13151
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
13152
    public boolean isSet(_Fields field) {
-
 
13153
      if (field == null) {
-
 
13154
        throw new IllegalArgumentException();
-
 
13155
      }
-
 
13156
 
-
 
13157
      switch (field) {
-
 
13158
      case SUCCESS:
-
 
13159
        return isSetSuccess();
-
 
13160
      }
-
 
13161
      throw new IllegalStateException();
-
 
13162
    }
-
 
13163
 
-
 
13164
    @Override
-
 
13165
    public boolean equals(Object that) {
-
 
13166
      if (that == null)
-
 
13167
        return false;
-
 
13168
      if (that instanceof getOpenTicketsMap_result)
-
 
13169
        return this.equals((getOpenTicketsMap_result)that);
-
 
13170
      return false;
-
 
13171
    }
-
 
13172
 
-
 
13173
    public boolean equals(getOpenTicketsMap_result that) {
-
 
13174
      if (that == null)
-
 
13175
        return false;
-
 
13176
 
-
 
13177
      boolean this_present_success = true && this.isSetSuccess();
-
 
13178
      boolean that_present_success = true && that.isSetSuccess();
-
 
13179
      if (this_present_success || that_present_success) {
-
 
13180
        if (!(this_present_success && that_present_success))
-
 
13181
          return false;
-
 
13182
        if (!this.success.equals(that.success))
-
 
13183
          return false;
-
 
13184
      }
-
 
13185
 
-
 
13186
      return true;
-
 
13187
    }
-
 
13188
 
-
 
13189
    @Override
-
 
13190
    public int hashCode() {
-
 
13191
      return 0;
-
 
13192
    }
-
 
13193
 
-
 
13194
    public int compareTo(getOpenTicketsMap_result other) {
-
 
13195
      if (!getClass().equals(other.getClass())) {
-
 
13196
        return getClass().getName().compareTo(other.getClass().getName());
-
 
13197
      }
-
 
13198
 
-
 
13199
      int lastComparison = 0;
-
 
13200
      getOpenTicketsMap_result typedOther = (getOpenTicketsMap_result)other;
-
 
13201
 
-
 
13202
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
13203
      if (lastComparison != 0) {
-
 
13204
        return lastComparison;
-
 
13205
      }
-
 
13206
      if (isSetSuccess()) {
-
 
13207
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
13208
        if (lastComparison != 0) {
-
 
13209
          return lastComparison;
-
 
13210
        }
-
 
13211
      }
-
 
13212
      return 0;
-
 
13213
    }
-
 
13214
 
-
 
13215
    public _Fields fieldForId(int fieldId) {
-
 
13216
      return _Fields.findByThriftId(fieldId);
-
 
13217
    }
-
 
13218
 
-
 
13219
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
13220
      org.apache.thrift.protocol.TField field;
-
 
13221
      iprot.readStructBegin();
-
 
13222
      while (true)
-
 
13223
      {
-
 
13224
        field = iprot.readFieldBegin();
-
 
13225
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
13226
          break;
-
 
13227
        }
-
 
13228
        switch (field.id) {
-
 
13229
          case 0: // SUCCESS
-
 
13230
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
13231
              {
-
 
13232
                org.apache.thrift.protocol.TMap _map48 = iprot.readMapBegin();
-
 
13233
                this.success = new HashMap<String,Long>(2*_map48.size);
-
 
13234
                for (int _i49 = 0; _i49 < _map48.size; ++_i49)
-
 
13235
                {
-
 
13236
                  String _key50; // required
-
 
13237
                  long _val51; // required
-
 
13238
                  _key50 = iprot.readString();
-
 
13239
                  _val51 = iprot.readI64();
-
 
13240
                  this.success.put(_key50, _val51);
-
 
13241
                }
-
 
13242
                iprot.readMapEnd();
-
 
13243
              }
-
 
13244
            } else { 
-
 
13245
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13246
            }
-
 
13247
            break;
-
 
13248
          default:
-
 
13249
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13250
        }
-
 
13251
        iprot.readFieldEnd();
-
 
13252
      }
-
 
13253
      iprot.readStructEnd();
-
 
13254
      validate();
-
 
13255
    }
-
 
13256
 
-
 
13257
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
13258
      oprot.writeStructBegin(STRUCT_DESC);
-
 
13259
 
-
 
13260
      if (this.isSetSuccess()) {
-
 
13261
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
13262
        {
-
 
13263
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
13264
          for (Map.Entry<String, Long> _iter52 : this.success.entrySet())
-
 
13265
          {
-
 
13266
            oprot.writeString(_iter52.getKey());
-
 
13267
            oprot.writeI64(_iter52.getValue());
-
 
13268
          }
-
 
13269
          oprot.writeMapEnd();
-
 
13270
        }
-
 
13271
        oprot.writeFieldEnd();
-
 
13272
      }
-
 
13273
      oprot.writeFieldStop();
-
 
13274
      oprot.writeStructEnd();
-
 
13275
    }
-
 
13276
 
-
 
13277
    @Override
-
 
13278
    public String toString() {
-
 
13279
      StringBuilder sb = new StringBuilder("getOpenTicketsMap_result(");
-
 
13280
      boolean first = true;
-
 
13281
 
-
 
13282
      sb.append("success:");
-
 
13283
      if (this.success == null) {
-
 
13284
        sb.append("null");
-
 
13285
      } else {
-
 
13286
        sb.append(this.success);
-
 
13287
      }
-
 
13288
      first = false;
-
 
13289
      sb.append(")");
-
 
13290
      return sb.toString();
-
 
13291
    }
-
 
13292
 
12683
    public void validate() throws org.apache.thrift.TException {
13293
    public void validate() throws org.apache.thrift.TException {
12684
      // check for required fields
13294
      // check for required fields
12685
    }
13295
    }
12686
 
13296
 
12687
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13297
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {