Subversion Repositories SmartDukaan

Rev

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

Rev 3206 Rev 3339
Line 41... Line 41...
41
 
41
 
42
    public long insertTicket(Ticket ticket, Activity activity) throws TException;
42
    public long insertTicket(Ticket ticket, Activity activity) throws TException;
43
 
43
 
44
    public List<Activity> getActivities(long customerId) throws TException;
44
    public List<Activity> getActivities(long customerId) throws TException;
45
 
45
 
-
 
46
    public List<Activity> getActivitiesByCreator(long creatorId) throws TException;
-
 
47
 
46
    public List<Activity> getActivitiesForTicket(long ticketId) throws TException;
48
    public List<Activity> getActivitiesForTicket(long ticketId) throws TException;
47
 
49
 
48
    public Activity getActivity(long activityId) throws TException;
50
    public Activity getActivity(long activityId) throws TException;
49
 
51
 
50
    public Activity getLastActivity(long ticketId) throws TException;
52
    public Activity getLastActivity(long ticketId) throws TException;
Line 61... Line 63...
61
 
63
 
62
    public List<String> getRoleNamesForAgent(String agentEmailId) throws TException;
64
    public List<String> getRoleNamesForAgent(String agentEmailId) throws TException;
63
 
65
 
64
    public List<String> getPermissionsForRoleName(String roleName) throws TException;
66
    public List<String> getPermissionsForRoleName(String roleName) throws TException;
65
 
67
 
-
 
68
    public long getLastEmailProcessedTimestamp() throws TException;
-
 
69
 
-
 
70
    public void updateLastEmailProcessedTimestamp(long timestamp) throws TException;
-
 
71
 
66
  }
72
  }
67
 
73
 
68
  public static class Client implements Iface {
74
  public static class Client implements Iface {
69
    public Client(TProtocol prot)
75
    public Client(TProtocol prot)
70
    {
76
    {
Line 352... Line 358...
352
        return result.success;
358
        return result.success;
353
      }
359
      }
354
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");
360
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");
355
    }
361
    }
356
 
362
 
-
 
363
    public List<Activity> getActivitiesByCreator(long creatorId) throws TException
-
 
364
    {
-
 
365
      send_getActivitiesByCreator(creatorId);
-
 
366
      return recv_getActivitiesByCreator();
-
 
367
    }
-
 
368
 
-
 
369
    public void send_getActivitiesByCreator(long creatorId) throws TException
-
 
370
    {
-
 
371
      oprot_.writeMessageBegin(new TMessage("getActivitiesByCreator", TMessageType.CALL, seqid_));
-
 
372
      getActivitiesByCreator_args args = new getActivitiesByCreator_args();
-
 
373
      args.creatorId = creatorId;
-
 
374
      args.write(oprot_);
-
 
375
      oprot_.writeMessageEnd();
-
 
376
      oprot_.getTransport().flush();
-
 
377
    }
-
 
378
 
-
 
379
    public List<Activity> recv_getActivitiesByCreator() throws TException
-
 
380
    {
-
 
381
      TMessage msg = iprot_.readMessageBegin();
-
 
382
      if (msg.type == TMessageType.EXCEPTION) {
-
 
383
        TApplicationException x = TApplicationException.read(iprot_);
-
 
384
        iprot_.readMessageEnd();
-
 
385
        throw x;
-
 
386
      }
-
 
387
      getActivitiesByCreator_result result = new getActivitiesByCreator_result();
-
 
388
      result.read(iprot_);
-
 
389
      iprot_.readMessageEnd();
-
 
390
      if (result.isSetSuccess()) {
-
 
391
        return result.success;
-
 
392
      }
-
 
393
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivitiesByCreator failed: unknown result");
-
 
394
    }
-
 
395
 
357
    public List<Activity> getActivitiesForTicket(long ticketId) throws TException
396
    public List<Activity> getActivitiesForTicket(long ticketId) throws TException
358
    {
397
    {
359
      send_getActivitiesForTicket(ticketId);
398
      send_getActivitiesForTicket(ticketId);
360
      return recv_getActivitiesForTicket();
399
      return recv_getActivitiesForTicket();
361
    }
400
    }
Line 676... Line 715...
676
        return result.success;
715
        return result.success;
677
      }
716
      }
678
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
717
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
679
    }
718
    }
680
 
719
 
-
 
720
    public long getLastEmailProcessedTimestamp() throws TException
-
 
721
    {
-
 
722
      send_getLastEmailProcessedTimestamp();
-
 
723
      return recv_getLastEmailProcessedTimestamp();
-
 
724
    }
-
 
725
 
-
 
726
    public void send_getLastEmailProcessedTimestamp() throws TException
-
 
727
    {
-
 
728
      oprot_.writeMessageBegin(new TMessage("getLastEmailProcessedTimestamp", TMessageType.CALL, seqid_));
-
 
729
      getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();
-
 
730
      args.write(oprot_);
-
 
731
      oprot_.writeMessageEnd();
-
 
732
      oprot_.getTransport().flush();
-
 
733
    }
-
 
734
 
-
 
735
    public long recv_getLastEmailProcessedTimestamp() throws TException
-
 
736
    {
-
 
737
      TMessage msg = iprot_.readMessageBegin();
-
 
738
      if (msg.type == TMessageType.EXCEPTION) {
-
 
739
        TApplicationException x = TApplicationException.read(iprot_);
-
 
740
        iprot_.readMessageEnd();
-
 
741
        throw x;
-
 
742
      }
-
 
743
      getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();
-
 
744
      result.read(iprot_);
-
 
745
      iprot_.readMessageEnd();
-
 
746
      if (result.isSetSuccess()) {
-
 
747
        return result.success;
-
 
748
      }
-
 
749
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLastEmailProcessedTimestamp failed: unknown result");
-
 
750
    }
-
 
751
 
-
 
752
    public void updateLastEmailProcessedTimestamp(long timestamp) throws TException
-
 
753
    {
-
 
754
      send_updateLastEmailProcessedTimestamp(timestamp);
-
 
755
      recv_updateLastEmailProcessedTimestamp();
-
 
756
    }
-
 
757
 
-
 
758
    public void send_updateLastEmailProcessedTimestamp(long timestamp) throws TException
-
 
759
    {
-
 
760
      oprot_.writeMessageBegin(new TMessage("updateLastEmailProcessedTimestamp", TMessageType.CALL, seqid_));
-
 
761
      updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();
-
 
762
      args.timestamp = timestamp;
-
 
763
      args.write(oprot_);
-
 
764
      oprot_.writeMessageEnd();
-
 
765
      oprot_.getTransport().flush();
-
 
766
    }
-
 
767
 
-
 
768
    public void recv_updateLastEmailProcessedTimestamp() throws TException
-
 
769
    {
-
 
770
      TMessage msg = iprot_.readMessageBegin();
-
 
771
      if (msg.type == TMessageType.EXCEPTION) {
-
 
772
        TApplicationException x = TApplicationException.read(iprot_);
-
 
773
        iprot_.readMessageEnd();
-
 
774
        throw x;
-
 
775
      }
-
 
776
      updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
-
 
777
      result.read(iprot_);
-
 
778
      iprot_.readMessageEnd();
-
 
779
      return;
-
 
780
    }
-
 
781
 
681
  }
782
  }
682
  public static class Processor implements TProcessor {
783
  public static class Processor implements TProcessor {
683
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
784
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
684
    public Processor(Iface iface)
785
    public Processor(Iface iface)
685
    {
786
    {
Line 690... Line 791...
690
      processMap_.put("getAllTickets", new getAllTickets());
791
      processMap_.put("getAllTickets", new getAllTickets());
691
      processMap_.put("getTicket", new getTicket());
792
      processMap_.put("getTicket", new getTicket());
692
      processMap_.put("updateTicket", new updateTicket());
793
      processMap_.put("updateTicket", new updateTicket());
693
      processMap_.put("insertTicket", new insertTicket());
794
      processMap_.put("insertTicket", new insertTicket());
694
      processMap_.put("getActivities", new getActivities());
795
      processMap_.put("getActivities", new getActivities());
-
 
796
      processMap_.put("getActivitiesByCreator", new getActivitiesByCreator());
695
      processMap_.put("getActivitiesForTicket", new getActivitiesForTicket());
797
      processMap_.put("getActivitiesForTicket", new getActivitiesForTicket());
696
      processMap_.put("getActivity", new getActivity());
798
      processMap_.put("getActivity", new getActivity());
697
      processMap_.put("getLastActivity", new getLastActivity());
799
      processMap_.put("getLastActivity", new getLastActivity());
698
      processMap_.put("insertActivity", new insertActivity());
800
      processMap_.put("insertActivity", new insertActivity());
699
      processMap_.put("getAllAgents", new getAllAgents());
801
      processMap_.put("getAllAgents", new getAllAgents());
700
      processMap_.put("getAgent", new getAgent());
802
      processMap_.put("getAgent", new getAgent());
701
      processMap_.put("getAgentByEmailId", new getAgentByEmailId());
803
      processMap_.put("getAgentByEmailId", new getAgentByEmailId());
702
      processMap_.put("updatePasswordForAgent", new updatePasswordForAgent());
804
      processMap_.put("updatePasswordForAgent", new updatePasswordForAgent());
703
      processMap_.put("getRoleNamesForAgent", new getRoleNamesForAgent());
805
      processMap_.put("getRoleNamesForAgent", new getRoleNamesForAgent());
704
      processMap_.put("getPermissionsForRoleName", new getPermissionsForRoleName());
806
      processMap_.put("getPermissionsForRoleName", new getPermissionsForRoleName());
-
 
807
      processMap_.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
-
 
808
      processMap_.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
705
    }
809
    }
706
 
810
 
707
    protected static interface ProcessFunction {
811
    protected static interface ProcessFunction {
708
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
812
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
709
    }
813
    }
Line 856... Line 960...
856
        oprot.getTransport().flush();
960
        oprot.getTransport().flush();
857
      }
961
      }
858
 
962
 
859
    }
963
    }
860
 
964
 
-
 
965
    private class getActivitiesByCreator implements ProcessFunction {
-
 
966
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
967
      {
-
 
968
        getActivitiesByCreator_args args = new getActivitiesByCreator_args();
-
 
969
        args.read(iprot);
-
 
970
        iprot.readMessageEnd();
-
 
971
        getActivitiesByCreator_result result = new getActivitiesByCreator_result();
-
 
972
        result.success = iface_.getActivitiesByCreator(args.creatorId);
-
 
973
        oprot.writeMessageBegin(new TMessage("getActivitiesByCreator", TMessageType.REPLY, seqid));
-
 
974
        result.write(oprot);
-
 
975
        oprot.writeMessageEnd();
-
 
976
        oprot.getTransport().flush();
-
 
977
      }
-
 
978
 
-
 
979
    }
-
 
980
 
861
    private class getActivitiesForTicket implements ProcessFunction {
981
    private class getActivitiesForTicket implements ProcessFunction {
862
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
982
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
863
      {
983
      {
864
        getActivitiesForTicket_args args = new getActivitiesForTicket_args();
984
        getActivitiesForTicket_args args = new getActivitiesForTicket_args();
865
        args.read(iprot);
985
        args.read(iprot);
Line 1016... Line 1136...
1016
        oprot.getTransport().flush();
1136
        oprot.getTransport().flush();
1017
      }
1137
      }
1018
 
1138
 
1019
    }
1139
    }
1020
 
1140
 
-
 
1141
    private class getLastEmailProcessedTimestamp implements ProcessFunction {
-
 
1142
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1143
      {
-
 
1144
        getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();
-
 
1145
        args.read(iprot);
-
 
1146
        iprot.readMessageEnd();
-
 
1147
        getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();
-
 
1148
        result.success = iface_.getLastEmailProcessedTimestamp();
-
 
1149
        result.setSuccessIsSet(true);
-
 
1150
        oprot.writeMessageBegin(new TMessage("getLastEmailProcessedTimestamp", TMessageType.REPLY, seqid));
-
 
1151
        result.write(oprot);
-
 
1152
        oprot.writeMessageEnd();
-
 
1153
        oprot.getTransport().flush();
-
 
1154
      }
-
 
1155
 
-
 
1156
    }
-
 
1157
 
-
 
1158
    private class updateLastEmailProcessedTimestamp implements ProcessFunction {
-
 
1159
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1160
      {
-
 
1161
        updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();
-
 
1162
        args.read(iprot);
-
 
1163
        iprot.readMessageEnd();
-
 
1164
        updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
-
 
1165
        iface_.updateLastEmailProcessedTimestamp(args.timestamp);
-
 
1166
        oprot.writeMessageBegin(new TMessage("updateLastEmailProcessedTimestamp", TMessageType.REPLY, seqid));
-
 
1167
        result.write(oprot);
-
 
1168
        oprot.writeMessageEnd();
-
 
1169
        oprot.getTransport().flush();
-
 
1170
      }
-
 
1171
 
-
 
1172
    }
-
 
1173
 
1021
  }
1174
  }
1022
 
1175
 
1023
  public static class getTickets_args implements TBase<getTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTickets_args>   {
1176
  public static class getTickets_args implements TBase<getTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTickets_args>   {
1024
    private static final TStruct STRUCT_DESC = new TStruct("getTickets_args");
1177
    private static final TStruct STRUCT_DESC = new TStruct("getTickets_args");
1025
 
1178
 
Line 5673... Line 5826...
5673
      // check for required fields
5826
      // check for required fields
5674
    }
5827
    }
5675
 
5828
 
5676
  }
5829
  }
5677
 
5830
 
-
 
5831
  public static class getActivitiesByCreator_args implements TBase<getActivitiesByCreator_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivitiesByCreator_args>   {
-
 
5832
    private static final TStruct STRUCT_DESC = new TStruct("getActivitiesByCreator_args");
-
 
5833
 
-
 
5834
    private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)1);
-
 
5835
 
-
 
5836
    private long creatorId;
-
 
5837
 
-
 
5838
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
5839
    public enum _Fields implements TFieldIdEnum {
-
 
5840
      CREATOR_ID((short)1, "creatorId");
-
 
5841
 
-
 
5842
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5843
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
5844
 
-
 
5845
      static {
-
 
5846
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
5847
          byId.put((int)field._thriftId, field);
-
 
5848
          byName.put(field.getFieldName(), field);
-
 
5849
        }
-
 
5850
      }
-
 
5851
 
-
 
5852
      /**
-
 
5853
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
5854
       */
-
 
5855
      public static _Fields findByThriftId(int fieldId) {
-
 
5856
        return byId.get(fieldId);
-
 
5857
      }
-
 
5858
 
-
 
5859
      /**
-
 
5860
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
5861
       * if it is not found.
-
 
5862
       */
-
 
5863
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
5864
        _Fields fields = findByThriftId(fieldId);
-
 
5865
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
5866
        return fields;
-
 
5867
      }
-
 
5868
 
-
 
5869
      /**
-
 
5870
       * Find the _Fields constant that matches name, or null if its not found.
-
 
5871
       */
-
 
5872
      public static _Fields findByName(String name) {
-
 
5873
        return byName.get(name);
-
 
5874
      }
-
 
5875
 
-
 
5876
      private final short _thriftId;
-
 
5877
      private final String _fieldName;
-
 
5878
 
-
 
5879
      _Fields(short thriftId, String fieldName) {
-
 
5880
        _thriftId = thriftId;
-
 
5881
        _fieldName = fieldName;
-
 
5882
      }
-
 
5883
 
-
 
5884
      public short getThriftFieldId() {
-
 
5885
        return _thriftId;
-
 
5886
      }
-
 
5887
 
-
 
5888
      public String getFieldName() {
-
 
5889
        return _fieldName;
-
 
5890
      }
-
 
5891
    }
-
 
5892
 
-
 
5893
    // isset id assignments
-
 
5894
    private static final int __CREATORID_ISSET_ID = 0;
-
 
5895
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
5896
 
-
 
5897
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
5898
      put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT, 
-
 
5899
          new FieldValueMetaData(TType.I64)));
-
 
5900
    }});
-
 
5901
 
-
 
5902
    static {
-
 
5903
      FieldMetaData.addStructMetaDataMap(getActivitiesByCreator_args.class, metaDataMap);
-
 
5904
    }
-
 
5905
 
-
 
5906
    public getActivitiesByCreator_args() {
-
 
5907
    }
-
 
5908
 
-
 
5909
    public getActivitiesByCreator_args(
-
 
5910
      long creatorId)
-
 
5911
    {
-
 
5912
      this();
-
 
5913
      this.creatorId = creatorId;
-
 
5914
      setCreatorIdIsSet(true);
-
 
5915
    }
-
 
5916
 
-
 
5917
    /**
-
 
5918
     * Performs a deep copy on <i>other</i>.
-
 
5919
     */
-
 
5920
    public getActivitiesByCreator_args(getActivitiesByCreator_args other) {
-
 
5921
      __isset_bit_vector.clear();
-
 
5922
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
5923
      this.creatorId = other.creatorId;
-
 
5924
    }
-
 
5925
 
-
 
5926
    public getActivitiesByCreator_args deepCopy() {
-
 
5927
      return new getActivitiesByCreator_args(this);
-
 
5928
    }
-
 
5929
 
-
 
5930
    @Deprecated
-
 
5931
    public getActivitiesByCreator_args clone() {
-
 
5932
      return new getActivitiesByCreator_args(this);
-
 
5933
    }
-
 
5934
 
-
 
5935
    public long getCreatorId() {
-
 
5936
      return this.creatorId;
-
 
5937
    }
-
 
5938
 
-
 
5939
    public getActivitiesByCreator_args setCreatorId(long creatorId) {
-
 
5940
      this.creatorId = creatorId;
-
 
5941
      setCreatorIdIsSet(true);
-
 
5942
      return this;
-
 
5943
    }
-
 
5944
 
-
 
5945
    public void unsetCreatorId() {
-
 
5946
      __isset_bit_vector.clear(__CREATORID_ISSET_ID);
-
 
5947
    }
-
 
5948
 
-
 
5949
    /** Returns true if field creatorId is set (has been asigned a value) and false otherwise */
-
 
5950
    public boolean isSetCreatorId() {
-
 
5951
      return __isset_bit_vector.get(__CREATORID_ISSET_ID);
-
 
5952
    }
-
 
5953
 
-
 
5954
    public void setCreatorIdIsSet(boolean value) {
-
 
5955
      __isset_bit_vector.set(__CREATORID_ISSET_ID, value);
-
 
5956
    }
-
 
5957
 
-
 
5958
    public void setFieldValue(_Fields field, Object value) {
-
 
5959
      switch (field) {
-
 
5960
      case CREATOR_ID:
-
 
5961
        if (value == null) {
-
 
5962
          unsetCreatorId();
-
 
5963
        } else {
-
 
5964
          setCreatorId((Long)value);
-
 
5965
        }
-
 
5966
        break;
-
 
5967
 
-
 
5968
      }
-
 
5969
    }
-
 
5970
 
-
 
5971
    public void setFieldValue(int fieldID, Object value) {
-
 
5972
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5973
    }
-
 
5974
 
-
 
5975
    public Object getFieldValue(_Fields field) {
-
 
5976
      switch (field) {
-
 
5977
      case CREATOR_ID:
-
 
5978
        return new Long(getCreatorId());
-
 
5979
 
-
 
5980
      }
-
 
5981
      throw new IllegalStateException();
-
 
5982
    }
-
 
5983
 
-
 
5984
    public Object getFieldValue(int fieldId) {
-
 
5985
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5986
    }
-
 
5987
 
-
 
5988
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
5989
    public boolean isSet(_Fields field) {
-
 
5990
      switch (field) {
-
 
5991
      case CREATOR_ID:
-
 
5992
        return isSetCreatorId();
-
 
5993
      }
-
 
5994
      throw new IllegalStateException();
-
 
5995
    }
-
 
5996
 
-
 
5997
    public boolean isSet(int fieldID) {
-
 
5998
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5999
    }
-
 
6000
 
-
 
6001
    @Override
-
 
6002
    public boolean equals(Object that) {
-
 
6003
      if (that == null)
-
 
6004
        return false;
-
 
6005
      if (that instanceof getActivitiesByCreator_args)
-
 
6006
        return this.equals((getActivitiesByCreator_args)that);
-
 
6007
      return false;
-
 
6008
    }
-
 
6009
 
-
 
6010
    public boolean equals(getActivitiesByCreator_args that) {
-
 
6011
      if (that == null)
-
 
6012
        return false;
-
 
6013
 
-
 
6014
      boolean this_present_creatorId = true;
-
 
6015
      boolean that_present_creatorId = true;
-
 
6016
      if (this_present_creatorId || that_present_creatorId) {
-
 
6017
        if (!(this_present_creatorId && that_present_creatorId))
-
 
6018
          return false;
-
 
6019
        if (this.creatorId != that.creatorId)
-
 
6020
          return false;
-
 
6021
      }
-
 
6022
 
-
 
6023
      return true;
-
 
6024
    }
-
 
6025
 
-
 
6026
    @Override
-
 
6027
    public int hashCode() {
-
 
6028
      return 0;
-
 
6029
    }
-
 
6030
 
-
 
6031
    public int compareTo(getActivitiesByCreator_args other) {
-
 
6032
      if (!getClass().equals(other.getClass())) {
-
 
6033
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6034
      }
-
 
6035
 
-
 
6036
      int lastComparison = 0;
-
 
6037
      getActivitiesByCreator_args typedOther = (getActivitiesByCreator_args)other;
-
 
6038
 
-
 
6039
      lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());
-
 
6040
      if (lastComparison != 0) {
-
 
6041
        return lastComparison;
-
 
6042
      }
-
 
6043
      lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
-
 
6044
      if (lastComparison != 0) {
-
 
6045
        return lastComparison;
-
 
6046
      }
-
 
6047
      return 0;
-
 
6048
    }
-
 
6049
 
-
 
6050
    public void read(TProtocol iprot) throws TException {
-
 
6051
      TField field;
-
 
6052
      iprot.readStructBegin();
-
 
6053
      while (true)
-
 
6054
      {
-
 
6055
        field = iprot.readFieldBegin();
-
 
6056
        if (field.type == TType.STOP) { 
-
 
6057
          break;
-
 
6058
        }
-
 
6059
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6060
        if (fieldId == null) {
-
 
6061
          TProtocolUtil.skip(iprot, field.type);
-
 
6062
        } else {
-
 
6063
          switch (fieldId) {
-
 
6064
            case CREATOR_ID:
-
 
6065
              if (field.type == TType.I64) {
-
 
6066
                this.creatorId = iprot.readI64();
-
 
6067
                setCreatorIdIsSet(true);
-
 
6068
              } else { 
-
 
6069
                TProtocolUtil.skip(iprot, field.type);
-
 
6070
              }
-
 
6071
              break;
-
 
6072
          }
-
 
6073
          iprot.readFieldEnd();
-
 
6074
        }
-
 
6075
      }
-
 
6076
      iprot.readStructEnd();
-
 
6077
      validate();
-
 
6078
    }
-
 
6079
 
-
 
6080
    public void write(TProtocol oprot) throws TException {
-
 
6081
      validate();
-
 
6082
 
-
 
6083
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6084
      oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
-
 
6085
      oprot.writeI64(this.creatorId);
-
 
6086
      oprot.writeFieldEnd();
-
 
6087
      oprot.writeFieldStop();
-
 
6088
      oprot.writeStructEnd();
-
 
6089
    }
-
 
6090
 
-
 
6091
    @Override
-
 
6092
    public String toString() {
-
 
6093
      StringBuilder sb = new StringBuilder("getActivitiesByCreator_args(");
-
 
6094
      boolean first = true;
-
 
6095
 
-
 
6096
      sb.append("creatorId:");
-
 
6097
      sb.append(this.creatorId);
-
 
6098
      first = false;
-
 
6099
      sb.append(")");
-
 
6100
      return sb.toString();
-
 
6101
    }
-
 
6102
 
-
 
6103
    public void validate() throws TException {
-
 
6104
      // check for required fields
-
 
6105
    }
-
 
6106
 
-
 
6107
  }
-
 
6108
 
-
 
6109
  public static class getActivitiesByCreator_result implements TBase<getActivitiesByCreator_result._Fields>, java.io.Serializable, Cloneable, Comparable<getActivitiesByCreator_result>   {
-
 
6110
    private static final TStruct STRUCT_DESC = new TStruct("getActivitiesByCreator_result");
-
 
6111
 
-
 
6112
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
6113
 
-
 
6114
    private List<Activity> success;
-
 
6115
 
-
 
6116
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6117
    public enum _Fields implements TFieldIdEnum {
-
 
6118
      SUCCESS((short)0, "success");
-
 
6119
 
-
 
6120
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6121
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6122
 
-
 
6123
      static {
-
 
6124
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6125
          byId.put((int)field._thriftId, field);
-
 
6126
          byName.put(field.getFieldName(), field);
-
 
6127
        }
-
 
6128
      }
-
 
6129
 
-
 
6130
      /**
-
 
6131
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6132
       */
-
 
6133
      public static _Fields findByThriftId(int fieldId) {
-
 
6134
        return byId.get(fieldId);
-
 
6135
      }
-
 
6136
 
-
 
6137
      /**
-
 
6138
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6139
       * if it is not found.
-
 
6140
       */
-
 
6141
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6142
        _Fields fields = findByThriftId(fieldId);
-
 
6143
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6144
        return fields;
-
 
6145
      }
-
 
6146
 
-
 
6147
      /**
-
 
6148
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6149
       */
-
 
6150
      public static _Fields findByName(String name) {
-
 
6151
        return byName.get(name);
-
 
6152
      }
-
 
6153
 
-
 
6154
      private final short _thriftId;
-
 
6155
      private final String _fieldName;
-
 
6156
 
-
 
6157
      _Fields(short thriftId, String fieldName) {
-
 
6158
        _thriftId = thriftId;
-
 
6159
        _fieldName = fieldName;
-
 
6160
      }
-
 
6161
 
-
 
6162
      public short getThriftFieldId() {
-
 
6163
        return _thriftId;
-
 
6164
      }
-
 
6165
 
-
 
6166
      public String getFieldName() {
-
 
6167
        return _fieldName;
-
 
6168
      }
-
 
6169
    }
-
 
6170
 
-
 
6171
    // isset id assignments
-
 
6172
 
-
 
6173
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
6174
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
6175
          new ListMetaData(TType.LIST, 
-
 
6176
              new StructMetaData(TType.STRUCT, Activity.class))));
-
 
6177
    }});
-
 
6178
 
-
 
6179
    static {
-
 
6180
      FieldMetaData.addStructMetaDataMap(getActivitiesByCreator_result.class, metaDataMap);
-
 
6181
    }
-
 
6182
 
-
 
6183
    public getActivitiesByCreator_result() {
-
 
6184
    }
-
 
6185
 
-
 
6186
    public getActivitiesByCreator_result(
-
 
6187
      List<Activity> success)
-
 
6188
    {
-
 
6189
      this();
-
 
6190
      this.success = success;
-
 
6191
    }
-
 
6192
 
-
 
6193
    /**
-
 
6194
     * Performs a deep copy on <i>other</i>.
-
 
6195
     */
-
 
6196
    public getActivitiesByCreator_result(getActivitiesByCreator_result other) {
-
 
6197
      if (other.isSetSuccess()) {
-
 
6198
        List<Activity> __this__success = new ArrayList<Activity>();
-
 
6199
        for (Activity other_element : other.success) {
-
 
6200
          __this__success.add(new Activity(other_element));
-
 
6201
        }
-
 
6202
        this.success = __this__success;
-
 
6203
      }
-
 
6204
    }
-
 
6205
 
-
 
6206
    public getActivitiesByCreator_result deepCopy() {
-
 
6207
      return new getActivitiesByCreator_result(this);
-
 
6208
    }
-
 
6209
 
-
 
6210
    @Deprecated
-
 
6211
    public getActivitiesByCreator_result clone() {
-
 
6212
      return new getActivitiesByCreator_result(this);
-
 
6213
    }
-
 
6214
 
-
 
6215
    public int getSuccessSize() {
-
 
6216
      return (this.success == null) ? 0 : this.success.size();
-
 
6217
    }
-
 
6218
 
-
 
6219
    public java.util.Iterator<Activity> getSuccessIterator() {
-
 
6220
      return (this.success == null) ? null : this.success.iterator();
-
 
6221
    }
-
 
6222
 
-
 
6223
    public void addToSuccess(Activity elem) {
-
 
6224
      if (this.success == null) {
-
 
6225
        this.success = new ArrayList<Activity>();
-
 
6226
      }
-
 
6227
      this.success.add(elem);
-
 
6228
    }
-
 
6229
 
-
 
6230
    public List<Activity> getSuccess() {
-
 
6231
      return this.success;
-
 
6232
    }
-
 
6233
 
-
 
6234
    public getActivitiesByCreator_result setSuccess(List<Activity> success) {
-
 
6235
      this.success = success;
-
 
6236
      return this;
-
 
6237
    }
-
 
6238
 
-
 
6239
    public void unsetSuccess() {
-
 
6240
      this.success = null;
-
 
6241
    }
-
 
6242
 
-
 
6243
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
6244
    public boolean isSetSuccess() {
-
 
6245
      return this.success != null;
-
 
6246
    }
-
 
6247
 
-
 
6248
    public void setSuccessIsSet(boolean value) {
-
 
6249
      if (!value) {
-
 
6250
        this.success = null;
-
 
6251
      }
-
 
6252
    }
-
 
6253
 
-
 
6254
    public void setFieldValue(_Fields field, Object value) {
-
 
6255
      switch (field) {
-
 
6256
      case SUCCESS:
-
 
6257
        if (value == null) {
-
 
6258
          unsetSuccess();
-
 
6259
        } else {
-
 
6260
          setSuccess((List<Activity>)value);
-
 
6261
        }
-
 
6262
        break;
-
 
6263
 
-
 
6264
      }
-
 
6265
    }
-
 
6266
 
-
 
6267
    public void setFieldValue(int fieldID, Object value) {
-
 
6268
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6269
    }
-
 
6270
 
-
 
6271
    public Object getFieldValue(_Fields field) {
-
 
6272
      switch (field) {
-
 
6273
      case SUCCESS:
-
 
6274
        return getSuccess();
-
 
6275
 
-
 
6276
      }
-
 
6277
      throw new IllegalStateException();
-
 
6278
    }
-
 
6279
 
-
 
6280
    public Object getFieldValue(int fieldId) {
-
 
6281
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6282
    }
-
 
6283
 
-
 
6284
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
6285
    public boolean isSet(_Fields field) {
-
 
6286
      switch (field) {
-
 
6287
      case SUCCESS:
-
 
6288
        return isSetSuccess();
-
 
6289
      }
-
 
6290
      throw new IllegalStateException();
-
 
6291
    }
-
 
6292
 
-
 
6293
    public boolean isSet(int fieldID) {
-
 
6294
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6295
    }
-
 
6296
 
-
 
6297
    @Override
-
 
6298
    public boolean equals(Object that) {
-
 
6299
      if (that == null)
-
 
6300
        return false;
-
 
6301
      if (that instanceof getActivitiesByCreator_result)
-
 
6302
        return this.equals((getActivitiesByCreator_result)that);
-
 
6303
      return false;
-
 
6304
    }
-
 
6305
 
-
 
6306
    public boolean equals(getActivitiesByCreator_result that) {
-
 
6307
      if (that == null)
-
 
6308
        return false;
-
 
6309
 
-
 
6310
      boolean this_present_success = true && this.isSetSuccess();
-
 
6311
      boolean that_present_success = true && that.isSetSuccess();
-
 
6312
      if (this_present_success || that_present_success) {
-
 
6313
        if (!(this_present_success && that_present_success))
-
 
6314
          return false;
-
 
6315
        if (!this.success.equals(that.success))
-
 
6316
          return false;
-
 
6317
      }
-
 
6318
 
-
 
6319
      return true;
-
 
6320
    }
-
 
6321
 
-
 
6322
    @Override
-
 
6323
    public int hashCode() {
-
 
6324
      return 0;
-
 
6325
    }
-
 
6326
 
-
 
6327
    public int compareTo(getActivitiesByCreator_result other) {
-
 
6328
      if (!getClass().equals(other.getClass())) {
-
 
6329
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6330
      }
-
 
6331
 
-
 
6332
      int lastComparison = 0;
-
 
6333
      getActivitiesByCreator_result typedOther = (getActivitiesByCreator_result)other;
-
 
6334
 
-
 
6335
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
6336
      if (lastComparison != 0) {
-
 
6337
        return lastComparison;
-
 
6338
      }
-
 
6339
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
6340
      if (lastComparison != 0) {
-
 
6341
        return lastComparison;
-
 
6342
      }
-
 
6343
      return 0;
-
 
6344
    }
-
 
6345
 
-
 
6346
    public void read(TProtocol iprot) throws TException {
-
 
6347
      TField field;
-
 
6348
      iprot.readStructBegin();
-
 
6349
      while (true)
-
 
6350
      {
-
 
6351
        field = iprot.readFieldBegin();
-
 
6352
        if (field.type == TType.STOP) { 
-
 
6353
          break;
-
 
6354
        }
-
 
6355
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6356
        if (fieldId == null) {
-
 
6357
          TProtocolUtil.skip(iprot, field.type);
-
 
6358
        } else {
-
 
6359
          switch (fieldId) {
-
 
6360
            case SUCCESS:
-
 
6361
              if (field.type == TType.LIST) {
-
 
6362
                {
-
 
6363
                  TList _list20 = iprot.readListBegin();
-
 
6364
                  this.success = new ArrayList<Activity>(_list20.size);
-
 
6365
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
-
 
6366
                  {
-
 
6367
                    Activity _elem22;
-
 
6368
                    _elem22 = new Activity();
-
 
6369
                    _elem22.read(iprot);
-
 
6370
                    this.success.add(_elem22);
-
 
6371
                  }
-
 
6372
                  iprot.readListEnd();
-
 
6373
                }
-
 
6374
              } else { 
-
 
6375
                TProtocolUtil.skip(iprot, field.type);
-
 
6376
              }
-
 
6377
              break;
-
 
6378
          }
-
 
6379
          iprot.readFieldEnd();
-
 
6380
        }
-
 
6381
      }
-
 
6382
      iprot.readStructEnd();
-
 
6383
      validate();
-
 
6384
    }
-
 
6385
 
-
 
6386
    public void write(TProtocol oprot) throws TException {
-
 
6387
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6388
 
-
 
6389
      if (this.isSetSuccess()) {
-
 
6390
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
6391
        {
-
 
6392
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
6393
          for (Activity _iter23 : this.success)
-
 
6394
          {
-
 
6395
            _iter23.write(oprot);
-
 
6396
          }
-
 
6397
          oprot.writeListEnd();
-
 
6398
        }
-
 
6399
        oprot.writeFieldEnd();
-
 
6400
      }
-
 
6401
      oprot.writeFieldStop();
-
 
6402
      oprot.writeStructEnd();
-
 
6403
    }
-
 
6404
 
-
 
6405
    @Override
-
 
6406
    public String toString() {
-
 
6407
      StringBuilder sb = new StringBuilder("getActivitiesByCreator_result(");
-
 
6408
      boolean first = true;
-
 
6409
 
-
 
6410
      sb.append("success:");
-
 
6411
      if (this.success == null) {
-
 
6412
        sb.append("null");
-
 
6413
      } else {
-
 
6414
        sb.append(this.success);
-
 
6415
      }
-
 
6416
      first = false;
-
 
6417
      sb.append(")");
-
 
6418
      return sb.toString();
-
 
6419
    }
-
 
6420
 
-
 
6421
    public void validate() throws TException {
-
 
6422
      // check for required fields
-
 
6423
    }
-
 
6424
 
-
 
6425
  }
-
 
6426
 
5678
  public static class getActivitiesForTicket_args implements TBase<getActivitiesForTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivitiesForTicket_args>   {
6427
  public static class getActivitiesForTicket_args implements TBase<getActivitiesForTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivitiesForTicket_args>   {
5679
    private static final TStruct STRUCT_DESC = new TStruct("getActivitiesForTicket_args");
6428
    private static final TStruct STRUCT_DESC = new TStruct("getActivitiesForTicket_args");
5680
 
6429
 
5681
    private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)1);
6430
    private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)1);
5682
 
6431
 
Line 6205... Line 6954...
6205
        } else {
6954
        } else {
6206
          switch (fieldId) {
6955
          switch (fieldId) {
6207
            case SUCCESS:
6956
            case SUCCESS:
6208
              if (field.type == TType.LIST) {
6957
              if (field.type == TType.LIST) {
6209
                {
6958
                {
6210
                  TList _list20 = iprot.readListBegin();
6959
                  TList _list24 = iprot.readListBegin();
6211
                  this.success = new ArrayList<Activity>(_list20.size);
6960
                  this.success = new ArrayList<Activity>(_list24.size);
6212
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
6961
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
6213
                  {
6962
                  {
6214
                    Activity _elem22;
6963
                    Activity _elem26;
6215
                    _elem22 = new Activity();
6964
                    _elem26 = new Activity();
6216
                    _elem22.read(iprot);
6965
                    _elem26.read(iprot);
6217
                    this.success.add(_elem22);
6966
                    this.success.add(_elem26);
6218
                  }
6967
                  }
6219
                  iprot.readListEnd();
6968
                  iprot.readListEnd();
6220
                }
6969
                }
6221
              } else { 
6970
              } else { 
6222
                TProtocolUtil.skip(iprot, field.type);
6971
                TProtocolUtil.skip(iprot, field.type);
Line 6235... Line 6984...
6235
 
6984
 
6236
      if (this.isSetSuccess()) {
6985
      if (this.isSetSuccess()) {
6237
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6986
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6238
        {
6987
        {
6239
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
6988
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
6240
          for (Activity _iter23 : this.success)
6989
          for (Activity _iter27 : this.success)
6241
          {
6990
          {
6242
            _iter23.write(oprot);
6991
            _iter27.write(oprot);
6243
          }
6992
          }
6244
          oprot.writeListEnd();
6993
          oprot.writeListEnd();
6245
        }
6994
        }
6246
        oprot.writeFieldEnd();
6995
        oprot.writeFieldEnd();
6247
      }
6996
      }
Line 8304... Line 9053...
8304
        } else {
9053
        } else {
8305
          switch (fieldId) {
9054
          switch (fieldId) {
8306
            case SUCCESS:
9055
            case SUCCESS:
8307
              if (field.type == TType.LIST) {
9056
              if (field.type == TType.LIST) {
8308
                {
9057
                {
8309
                  TList _list24 = iprot.readListBegin();
9058
                  TList _list28 = iprot.readListBegin();
8310
                  this.success = new ArrayList<Agent>(_list24.size);
9059
                  this.success = new ArrayList<Agent>(_list28.size);
8311
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
9060
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
8312
                  {
9061
                  {
8313
                    Agent _elem26;
9062
                    Agent _elem30;
8314
                    _elem26 = new Agent();
9063
                    _elem30 = new Agent();
8315
                    _elem26.read(iprot);
9064
                    _elem30.read(iprot);
8316
                    this.success.add(_elem26);
9065
                    this.success.add(_elem30);
8317
                  }
9066
                  }
8318
                  iprot.readListEnd();
9067
                  iprot.readListEnd();
8319
                }
9068
                }
8320
              } else { 
9069
              } else { 
8321
                TProtocolUtil.skip(iprot, field.type);
9070
                TProtocolUtil.skip(iprot, field.type);
Line 8334... Line 9083...
8334
 
9083
 
8335
      if (this.isSetSuccess()) {
9084
      if (this.isSetSuccess()) {
8336
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9085
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8337
        {
9086
        {
8338
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
9087
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
8339
          for (Agent _iter27 : this.success)
9088
          for (Agent _iter31 : this.success)
8340
          {
9089
          {
8341
            _iter27.write(oprot);
9090
            _iter31.write(oprot);
8342
          }
9091
          }
8343
          oprot.writeListEnd();
9092
          oprot.writeListEnd();
8344
        }
9093
        }
8345
        oprot.writeFieldEnd();
9094
        oprot.writeFieldEnd();
8346
      }
9095
      }
Line 10579... Line 11328...
10579
        } else {
11328
        } else {
10580
          switch (fieldId) {
11329
          switch (fieldId) {
10581
            case SUCCESS:
11330
            case SUCCESS:
10582
              if (field.type == TType.LIST) {
11331
              if (field.type == TType.LIST) {
10583
                {
11332
                {
10584
                  TList _list28 = iprot.readListBegin();
11333
                  TList _list32 = iprot.readListBegin();
10585
                  this.success = new ArrayList<String>(_list28.size);
11334
                  this.success = new ArrayList<String>(_list32.size);
10586
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
11335
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
10587
                  {
11336
                  {
10588
                    String _elem30;
11337
                    String _elem34;
10589
                    _elem30 = iprot.readString();
11338
                    _elem34 = iprot.readString();
10590
                    this.success.add(_elem30);
11339
                    this.success.add(_elem34);
10591
                  }
11340
                  }
10592
                  iprot.readListEnd();
11341
                  iprot.readListEnd();
10593
                }
11342
                }
10594
              } else { 
11343
              } else { 
10595
                TProtocolUtil.skip(iprot, field.type);
11344
                TProtocolUtil.skip(iprot, field.type);
Line 10608... Line 11357...
10608
 
11357
 
10609
      if (this.isSetSuccess()) {
11358
      if (this.isSetSuccess()) {
10610
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11359
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10611
        {
11360
        {
10612
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
11361
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
10613
          for (String _iter31 : this.success)
11362
          for (String _iter35 : this.success)
10614
          {
11363
          {
10615
            oprot.writeString(_iter31);
11364
            oprot.writeString(_iter35);
10616
          }
11365
          }
10617
          oprot.writeListEnd();
11366
          oprot.writeListEnd();
10618
        }
11367
        }
10619
        oprot.writeFieldEnd();
11368
        oprot.writeFieldEnd();
10620
      }
11369
      }
Line 11177... Line 11926...
11177
        } else {
11926
        } else {
11178
          switch (fieldId) {
11927
          switch (fieldId) {
11179
            case SUCCESS:
11928
            case SUCCESS:
11180
              if (field.type == TType.LIST) {
11929
              if (field.type == TType.LIST) {
11181
                {
11930
                {
11182
                  TList _list32 = iprot.readListBegin();
11931
                  TList _list36 = iprot.readListBegin();
11183
                  this.success = new ArrayList<String>(_list32.size);
11932
                  this.success = new ArrayList<String>(_list36.size);
11184
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
11933
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
11185
                  {
11934
                  {
11186
                    String _elem34;
11935
                    String _elem38;
11187
                    _elem34 = iprot.readString();
11936
                    _elem38 = iprot.readString();
11188
                    this.success.add(_elem34);
11937
                    this.success.add(_elem38);
11189
                  }
11938
                  }
11190
                  iprot.readListEnd();
11939
                  iprot.readListEnd();
11191
                }
11940
                }
11192
              } else { 
11941
              } else { 
11193
                TProtocolUtil.skip(iprot, field.type);
11942
                TProtocolUtil.skip(iprot, field.type);
Line 11206... Line 11955...
11206
 
11955
 
11207
      if (this.isSetSuccess()) {
11956
      if (this.isSetSuccess()) {
11208
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11957
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11209
        {
11958
        {
11210
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
11959
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
11211
          for (String _iter35 : this.success)
11960
          for (String _iter39 : this.success)
11212
          {
11961
          {
11213
            oprot.writeString(_iter35);
11962
            oprot.writeString(_iter39);
11214
          }
11963
          }
11215
          oprot.writeListEnd();
11964
          oprot.writeListEnd();
11216
        }
11965
        }
11217
        oprot.writeFieldEnd();
11966
        oprot.writeFieldEnd();
11218
      }
11967
      }
Line 11235... Line 11984...
11235
      sb.append(")");
11984
      sb.append(")");
11236
      return sb.toString();
11985
      return sb.toString();
11237
    }
11986
    }
11238
 
11987
 
11239
    public void validate() throws TException {
11988
    public void validate() throws TException {
-
 
11989
      // check for required fields
-
 
11990
    }
-
 
11991
 
-
 
11992
  }
-
 
11993
 
-
 
11994
  public static class getLastEmailProcessedTimestamp_args implements TBase<getLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLastEmailProcessedTimestamp_args>   {
-
 
11995
    private static final TStruct STRUCT_DESC = new TStruct("getLastEmailProcessedTimestamp_args");
-
 
11996
 
-
 
11997
 
-
 
11998
 
-
 
11999
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12000
    public enum _Fields implements TFieldIdEnum {
-
 
12001
;
-
 
12002
 
-
 
12003
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
12004
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12005
 
-
 
12006
      static {
-
 
12007
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12008
          byId.put((int)field._thriftId, field);
-
 
12009
          byName.put(field.getFieldName(), field);
-
 
12010
        }
-
 
12011
      }
-
 
12012
 
-
 
12013
      /**
-
 
12014
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12015
       */
-
 
12016
      public static _Fields findByThriftId(int fieldId) {
-
 
12017
        return byId.get(fieldId);
-
 
12018
      }
-
 
12019
 
-
 
12020
      /**
-
 
12021
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12022
       * if it is not found.
-
 
12023
       */
-
 
12024
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12025
        _Fields fields = findByThriftId(fieldId);
-
 
12026
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12027
        return fields;
-
 
12028
      }
-
 
12029
 
-
 
12030
      /**
-
 
12031
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12032
       */
-
 
12033
      public static _Fields findByName(String name) {
-
 
12034
        return byName.get(name);
-
 
12035
      }
-
 
12036
 
-
 
12037
      private final short _thriftId;
-
 
12038
      private final String _fieldName;
-
 
12039
 
-
 
12040
      _Fields(short thriftId, String fieldName) {
-
 
12041
        _thriftId = thriftId;
-
 
12042
        _fieldName = fieldName;
-
 
12043
      }
-
 
12044
 
-
 
12045
      public short getThriftFieldId() {
-
 
12046
        return _thriftId;
-
 
12047
      }
-
 
12048
 
-
 
12049
      public String getFieldName() {
-
 
12050
        return _fieldName;
-
 
12051
      }
-
 
12052
    }
-
 
12053
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
12054
    }});
-
 
12055
 
-
 
12056
    static {
-
 
12057
      FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_args.class, metaDataMap);
-
 
12058
    }
-
 
12059
 
-
 
12060
    public getLastEmailProcessedTimestamp_args() {
-
 
12061
    }
-
 
12062
 
-
 
12063
    /**
-
 
12064
     * Performs a deep copy on <i>other</i>.
-
 
12065
     */
-
 
12066
    public getLastEmailProcessedTimestamp_args(getLastEmailProcessedTimestamp_args other) {
-
 
12067
    }
-
 
12068
 
-
 
12069
    public getLastEmailProcessedTimestamp_args deepCopy() {
-
 
12070
      return new getLastEmailProcessedTimestamp_args(this);
-
 
12071
    }
-
 
12072
 
-
 
12073
    @Deprecated
-
 
12074
    public getLastEmailProcessedTimestamp_args clone() {
-
 
12075
      return new getLastEmailProcessedTimestamp_args(this);
-
 
12076
    }
-
 
12077
 
-
 
12078
    public void setFieldValue(_Fields field, Object value) {
-
 
12079
      switch (field) {
-
 
12080
      }
-
 
12081
    }
-
 
12082
 
-
 
12083
    public void setFieldValue(int fieldID, Object value) {
-
 
12084
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
12085
    }
-
 
12086
 
-
 
12087
    public Object getFieldValue(_Fields field) {
-
 
12088
      switch (field) {
-
 
12089
      }
-
 
12090
      throw new IllegalStateException();
-
 
12091
    }
-
 
12092
 
-
 
12093
    public Object getFieldValue(int fieldId) {
-
 
12094
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
12095
    }
-
 
12096
 
-
 
12097
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
12098
    public boolean isSet(_Fields field) {
-
 
12099
      switch (field) {
-
 
12100
      }
-
 
12101
      throw new IllegalStateException();
-
 
12102
    }
-
 
12103
 
-
 
12104
    public boolean isSet(int fieldID) {
-
 
12105
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
12106
    }
-
 
12107
 
-
 
12108
    @Override
-
 
12109
    public boolean equals(Object that) {
-
 
12110
      if (that == null)
-
 
12111
        return false;
-
 
12112
      if (that instanceof getLastEmailProcessedTimestamp_args)
-
 
12113
        return this.equals((getLastEmailProcessedTimestamp_args)that);
-
 
12114
      return false;
-
 
12115
    }
-
 
12116
 
-
 
12117
    public boolean equals(getLastEmailProcessedTimestamp_args that) {
-
 
12118
      if (that == null)
-
 
12119
        return false;
-
 
12120
 
-
 
12121
      return true;
-
 
12122
    }
-
 
12123
 
-
 
12124
    @Override
-
 
12125
    public int hashCode() {
-
 
12126
      return 0;
-
 
12127
    }
-
 
12128
 
-
 
12129
    public int compareTo(getLastEmailProcessedTimestamp_args other) {
-
 
12130
      if (!getClass().equals(other.getClass())) {
-
 
12131
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12132
      }
-
 
12133
 
-
 
12134
      int lastComparison = 0;
-
 
12135
      getLastEmailProcessedTimestamp_args typedOther = (getLastEmailProcessedTimestamp_args)other;
-
 
12136
 
-
 
12137
      return 0;
-
 
12138
    }
-
 
12139
 
-
 
12140
    public void read(TProtocol iprot) throws TException {
-
 
12141
      TField field;
-
 
12142
      iprot.readStructBegin();
-
 
12143
      while (true)
-
 
12144
      {
-
 
12145
        field = iprot.readFieldBegin();
-
 
12146
        if (field.type == TType.STOP) { 
-
 
12147
          break;
-
 
12148
        }
-
 
12149
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
12150
        if (fieldId == null) {
-
 
12151
          TProtocolUtil.skip(iprot, field.type);
-
 
12152
        } else {
-
 
12153
          switch (fieldId) {
-
 
12154
          }
-
 
12155
          iprot.readFieldEnd();
-
 
12156
        }
-
 
12157
      }
-
 
12158
      iprot.readStructEnd();
-
 
12159
      validate();
-
 
12160
    }
-
 
12161
 
-
 
12162
    public void write(TProtocol oprot) throws TException {
-
 
12163
      validate();
-
 
12164
 
-
 
12165
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12166
      oprot.writeFieldStop();
-
 
12167
      oprot.writeStructEnd();
-
 
12168
    }
-
 
12169
 
-
 
12170
    @Override
-
 
12171
    public String toString() {
-
 
12172
      StringBuilder sb = new StringBuilder("getLastEmailProcessedTimestamp_args(");
-
 
12173
      boolean first = true;
-
 
12174
 
-
 
12175
      sb.append(")");
-
 
12176
      return sb.toString();
-
 
12177
    }
-
 
12178
 
-
 
12179
    public void validate() throws TException {
-
 
12180
      // check for required fields
-
 
12181
    }
-
 
12182
 
-
 
12183
  }
-
 
12184
 
-
 
12185
  public static class getLastEmailProcessedTimestamp_result implements TBase<getLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLastEmailProcessedTimestamp_result>   {
-
 
12186
    private static final TStruct STRUCT_DESC = new TStruct("getLastEmailProcessedTimestamp_result");
-
 
12187
 
-
 
12188
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
-
 
12189
 
-
 
12190
    private long success;
-
 
12191
 
-
 
12192
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12193
    public enum _Fields implements TFieldIdEnum {
-
 
12194
      SUCCESS((short)0, "success");
-
 
12195
 
-
 
12196
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
12197
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12198
 
-
 
12199
      static {
-
 
12200
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12201
          byId.put((int)field._thriftId, field);
-
 
12202
          byName.put(field.getFieldName(), field);
-
 
12203
        }
-
 
12204
      }
-
 
12205
 
-
 
12206
      /**
-
 
12207
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12208
       */
-
 
12209
      public static _Fields findByThriftId(int fieldId) {
-
 
12210
        return byId.get(fieldId);
-
 
12211
      }
-
 
12212
 
-
 
12213
      /**
-
 
12214
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12215
       * if it is not found.
-
 
12216
       */
-
 
12217
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12218
        _Fields fields = findByThriftId(fieldId);
-
 
12219
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12220
        return fields;
-
 
12221
      }
-
 
12222
 
-
 
12223
      /**
-
 
12224
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12225
       */
-
 
12226
      public static _Fields findByName(String name) {
-
 
12227
        return byName.get(name);
-
 
12228
      }
-
 
12229
 
-
 
12230
      private final short _thriftId;
-
 
12231
      private final String _fieldName;
-
 
12232
 
-
 
12233
      _Fields(short thriftId, String fieldName) {
-
 
12234
        _thriftId = thriftId;
-
 
12235
        _fieldName = fieldName;
-
 
12236
      }
-
 
12237
 
-
 
12238
      public short getThriftFieldId() {
-
 
12239
        return _thriftId;
-
 
12240
      }
-
 
12241
 
-
 
12242
      public String getFieldName() {
-
 
12243
        return _fieldName;
-
 
12244
      }
-
 
12245
    }
-
 
12246
 
-
 
12247
    // isset id assignments
-
 
12248
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
12249
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
12250
 
-
 
12251
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
12252
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
12253
          new FieldValueMetaData(TType.I64)));
-
 
12254
    }});
-
 
12255
 
-
 
12256
    static {
-
 
12257
      FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_result.class, metaDataMap);
-
 
12258
    }
-
 
12259
 
-
 
12260
    public getLastEmailProcessedTimestamp_result() {
-
 
12261
    }
-
 
12262
 
-
 
12263
    public getLastEmailProcessedTimestamp_result(
-
 
12264
      long success)
-
 
12265
    {
-
 
12266
      this();
-
 
12267
      this.success = success;
-
 
12268
      setSuccessIsSet(true);
-
 
12269
    }
-
 
12270
 
-
 
12271
    /**
-
 
12272
     * Performs a deep copy on <i>other</i>.
-
 
12273
     */
-
 
12274
    public getLastEmailProcessedTimestamp_result(getLastEmailProcessedTimestamp_result other) {
-
 
12275
      __isset_bit_vector.clear();
-
 
12276
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
12277
      this.success = other.success;
-
 
12278
    }
-
 
12279
 
-
 
12280
    public getLastEmailProcessedTimestamp_result deepCopy() {
-
 
12281
      return new getLastEmailProcessedTimestamp_result(this);
-
 
12282
    }
-
 
12283
 
-
 
12284
    @Deprecated
-
 
12285
    public getLastEmailProcessedTimestamp_result clone() {
-
 
12286
      return new getLastEmailProcessedTimestamp_result(this);
-
 
12287
    }
-
 
12288
 
-
 
12289
    public long getSuccess() {
-
 
12290
      return this.success;
-
 
12291
    }
-
 
12292
 
-
 
12293
    public getLastEmailProcessedTimestamp_result setSuccess(long success) {
-
 
12294
      this.success = success;
-
 
12295
      setSuccessIsSet(true);
-
 
12296
      return this;
-
 
12297
    }
-
 
12298
 
-
 
12299
    public void unsetSuccess() {
-
 
12300
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
12301
    }
-
 
12302
 
-
 
12303
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
12304
    public boolean isSetSuccess() {
-
 
12305
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
12306
    }
-
 
12307
 
-
 
12308
    public void setSuccessIsSet(boolean value) {
-
 
12309
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
12310
    }
-
 
12311
 
-
 
12312
    public void setFieldValue(_Fields field, Object value) {
-
 
12313
      switch (field) {
-
 
12314
      case SUCCESS:
-
 
12315
        if (value == null) {
-
 
12316
          unsetSuccess();
-
 
12317
        } else {
-
 
12318
          setSuccess((Long)value);
-
 
12319
        }
-
 
12320
        break;
-
 
12321
 
-
 
12322
      }
-
 
12323
    }
-
 
12324
 
-
 
12325
    public void setFieldValue(int fieldID, Object value) {
-
 
12326
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
12327
    }
-
 
12328
 
-
 
12329
    public Object getFieldValue(_Fields field) {
-
 
12330
      switch (field) {
-
 
12331
      case SUCCESS:
-
 
12332
        return new Long(getSuccess());
-
 
12333
 
-
 
12334
      }
-
 
12335
      throw new IllegalStateException();
-
 
12336
    }
-
 
12337
 
-
 
12338
    public Object getFieldValue(int fieldId) {
-
 
12339
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
12340
    }
-
 
12341
 
-
 
12342
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
12343
    public boolean isSet(_Fields field) {
-
 
12344
      switch (field) {
-
 
12345
      case SUCCESS:
-
 
12346
        return isSetSuccess();
-
 
12347
      }
-
 
12348
      throw new IllegalStateException();
-
 
12349
    }
-
 
12350
 
-
 
12351
    public boolean isSet(int fieldID) {
-
 
12352
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
12353
    }
-
 
12354
 
-
 
12355
    @Override
-
 
12356
    public boolean equals(Object that) {
-
 
12357
      if (that == null)
-
 
12358
        return false;
-
 
12359
      if (that instanceof getLastEmailProcessedTimestamp_result)
-
 
12360
        return this.equals((getLastEmailProcessedTimestamp_result)that);
-
 
12361
      return false;
-
 
12362
    }
-
 
12363
 
-
 
12364
    public boolean equals(getLastEmailProcessedTimestamp_result that) {
-
 
12365
      if (that == null)
-
 
12366
        return false;
-
 
12367
 
-
 
12368
      boolean this_present_success = true;
-
 
12369
      boolean that_present_success = true;
-
 
12370
      if (this_present_success || that_present_success) {
-
 
12371
        if (!(this_present_success && that_present_success))
-
 
12372
          return false;
-
 
12373
        if (this.success != that.success)
-
 
12374
          return false;
-
 
12375
      }
-
 
12376
 
-
 
12377
      return true;
-
 
12378
    }
-
 
12379
 
-
 
12380
    @Override
-
 
12381
    public int hashCode() {
-
 
12382
      return 0;
-
 
12383
    }
-
 
12384
 
-
 
12385
    public int compareTo(getLastEmailProcessedTimestamp_result other) {
-
 
12386
      if (!getClass().equals(other.getClass())) {
-
 
12387
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12388
      }
-
 
12389
 
-
 
12390
      int lastComparison = 0;
-
 
12391
      getLastEmailProcessedTimestamp_result typedOther = (getLastEmailProcessedTimestamp_result)other;
-
 
12392
 
-
 
12393
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
12394
      if (lastComparison != 0) {
-
 
12395
        return lastComparison;
-
 
12396
      }
-
 
12397
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
12398
      if (lastComparison != 0) {
-
 
12399
        return lastComparison;
-
 
12400
      }
-
 
12401
      return 0;
-
 
12402
    }
-
 
12403
 
-
 
12404
    public void read(TProtocol iprot) throws TException {
-
 
12405
      TField field;
-
 
12406
      iprot.readStructBegin();
-
 
12407
      while (true)
-
 
12408
      {
-
 
12409
        field = iprot.readFieldBegin();
-
 
12410
        if (field.type == TType.STOP) { 
-
 
12411
          break;
-
 
12412
        }
-
 
12413
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
12414
        if (fieldId == null) {
-
 
12415
          TProtocolUtil.skip(iprot, field.type);
-
 
12416
        } else {
-
 
12417
          switch (fieldId) {
-
 
12418
            case SUCCESS:
-
 
12419
              if (field.type == TType.I64) {
-
 
12420
                this.success = iprot.readI64();
-
 
12421
                setSuccessIsSet(true);
-
 
12422
              } else { 
-
 
12423
                TProtocolUtil.skip(iprot, field.type);
-
 
12424
              }
-
 
12425
              break;
-
 
12426
          }
-
 
12427
          iprot.readFieldEnd();
-
 
12428
        }
-
 
12429
      }
-
 
12430
      iprot.readStructEnd();
-
 
12431
      validate();
-
 
12432
    }
-
 
12433
 
-
 
12434
    public void write(TProtocol oprot) throws TException {
-
 
12435
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12436
 
-
 
12437
      if (this.isSetSuccess()) {
-
 
12438
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
12439
        oprot.writeI64(this.success);
-
 
12440
        oprot.writeFieldEnd();
-
 
12441
      }
-
 
12442
      oprot.writeFieldStop();
-
 
12443
      oprot.writeStructEnd();
-
 
12444
    }
-
 
12445
 
-
 
12446
    @Override
-
 
12447
    public String toString() {
-
 
12448
      StringBuilder sb = new StringBuilder("getLastEmailProcessedTimestamp_result(");
-
 
12449
      boolean first = true;
-
 
12450
 
-
 
12451
      sb.append("success:");
-
 
12452
      sb.append(this.success);
-
 
12453
      first = false;
-
 
12454
      sb.append(")");
-
 
12455
      return sb.toString();
-
 
12456
    }
-
 
12457
 
-
 
12458
    public void validate() throws TException {
-
 
12459
      // check for required fields
-
 
12460
    }
-
 
12461
 
-
 
12462
  }
-
 
12463
 
-
 
12464
  public static class updateLastEmailProcessedTimestamp_args implements TBase<updateLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateLastEmailProcessedTimestamp_args>   {
-
 
12465
    private static final TStruct STRUCT_DESC = new TStruct("updateLastEmailProcessedTimestamp_args");
-
 
12466
 
-
 
12467
    private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)1);
-
 
12468
 
-
 
12469
    private long timestamp;
-
 
12470
 
-
 
12471
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12472
    public enum _Fields implements TFieldIdEnum {
-
 
12473
      TIMESTAMP((short)1, "timestamp");
-
 
12474
 
-
 
12475
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
12476
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12477
 
-
 
12478
      static {
-
 
12479
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12480
          byId.put((int)field._thriftId, field);
-
 
12481
          byName.put(field.getFieldName(), field);
-
 
12482
        }
-
 
12483
      }
-
 
12484
 
-
 
12485
      /**
-
 
12486
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12487
       */
-
 
12488
      public static _Fields findByThriftId(int fieldId) {
-
 
12489
        return byId.get(fieldId);
-
 
12490
      }
-
 
12491
 
-
 
12492
      /**
-
 
12493
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12494
       * if it is not found.
-
 
12495
       */
-
 
12496
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12497
        _Fields fields = findByThriftId(fieldId);
-
 
12498
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12499
        return fields;
-
 
12500
      }
-
 
12501
 
-
 
12502
      /**
-
 
12503
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12504
       */
-
 
12505
      public static _Fields findByName(String name) {
-
 
12506
        return byName.get(name);
-
 
12507
      }
-
 
12508
 
-
 
12509
      private final short _thriftId;
-
 
12510
      private final String _fieldName;
-
 
12511
 
-
 
12512
      _Fields(short thriftId, String fieldName) {
-
 
12513
        _thriftId = thriftId;
-
 
12514
        _fieldName = fieldName;
-
 
12515
      }
-
 
12516
 
-
 
12517
      public short getThriftFieldId() {
-
 
12518
        return _thriftId;
-
 
12519
      }
-
 
12520
 
-
 
12521
      public String getFieldName() {
-
 
12522
        return _fieldName;
-
 
12523
      }
-
 
12524
    }
-
 
12525
 
-
 
12526
    // isset id assignments
-
 
12527
    private static final int __TIMESTAMP_ISSET_ID = 0;
-
 
12528
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
12529
 
-
 
12530
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
12531
      put(_Fields.TIMESTAMP, new FieldMetaData("timestamp", TFieldRequirementType.DEFAULT, 
-
 
12532
          new FieldValueMetaData(TType.I64)));
-
 
12533
    }});
-
 
12534
 
-
 
12535
    static {
-
 
12536
      FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_args.class, metaDataMap);
-
 
12537
    }
-
 
12538
 
-
 
12539
    public updateLastEmailProcessedTimestamp_args() {
-
 
12540
    }
-
 
12541
 
-
 
12542
    public updateLastEmailProcessedTimestamp_args(
-
 
12543
      long timestamp)
-
 
12544
    {
-
 
12545
      this();
-
 
12546
      this.timestamp = timestamp;
-
 
12547
      setTimestampIsSet(true);
-
 
12548
    }
-
 
12549
 
-
 
12550
    /**
-
 
12551
     * Performs a deep copy on <i>other</i>.
-
 
12552
     */
-
 
12553
    public updateLastEmailProcessedTimestamp_args(updateLastEmailProcessedTimestamp_args other) {
-
 
12554
      __isset_bit_vector.clear();
-
 
12555
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
12556
      this.timestamp = other.timestamp;
-
 
12557
    }
-
 
12558
 
-
 
12559
    public updateLastEmailProcessedTimestamp_args deepCopy() {
-
 
12560
      return new updateLastEmailProcessedTimestamp_args(this);
-
 
12561
    }
-
 
12562
 
-
 
12563
    @Deprecated
-
 
12564
    public updateLastEmailProcessedTimestamp_args clone() {
-
 
12565
      return new updateLastEmailProcessedTimestamp_args(this);
-
 
12566
    }
-
 
12567
 
-
 
12568
    public long getTimestamp() {
-
 
12569
      return this.timestamp;
-
 
12570
    }
-
 
12571
 
-
 
12572
    public updateLastEmailProcessedTimestamp_args setTimestamp(long timestamp) {
-
 
12573
      this.timestamp = timestamp;
-
 
12574
      setTimestampIsSet(true);
-
 
12575
      return this;
-
 
12576
    }
-
 
12577
 
-
 
12578
    public void unsetTimestamp() {
-
 
12579
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
-
 
12580
    }
-
 
12581
 
-
 
12582
    /** Returns true if field timestamp is set (has been asigned a value) and false otherwise */
-
 
12583
    public boolean isSetTimestamp() {
-
 
12584
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
-
 
12585
    }
-
 
12586
 
-
 
12587
    public void setTimestampIsSet(boolean value) {
-
 
12588
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
-
 
12589
    }
-
 
12590
 
-
 
12591
    public void setFieldValue(_Fields field, Object value) {
-
 
12592
      switch (field) {
-
 
12593
      case TIMESTAMP:
-
 
12594
        if (value == null) {
-
 
12595
          unsetTimestamp();
-
 
12596
        } else {
-
 
12597
          setTimestamp((Long)value);
-
 
12598
        }
-
 
12599
        break;
-
 
12600
 
-
 
12601
      }
-
 
12602
    }
-
 
12603
 
-
 
12604
    public void setFieldValue(int fieldID, Object value) {
-
 
12605
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
12606
    }
-
 
12607
 
-
 
12608
    public Object getFieldValue(_Fields field) {
-
 
12609
      switch (field) {
-
 
12610
      case TIMESTAMP:
-
 
12611
        return new Long(getTimestamp());
-
 
12612
 
-
 
12613
      }
-
 
12614
      throw new IllegalStateException();
-
 
12615
    }
-
 
12616
 
-
 
12617
    public Object getFieldValue(int fieldId) {
-
 
12618
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
12619
    }
-
 
12620
 
-
 
12621
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
12622
    public boolean isSet(_Fields field) {
-
 
12623
      switch (field) {
-
 
12624
      case TIMESTAMP:
-
 
12625
        return isSetTimestamp();
-
 
12626
      }
-
 
12627
      throw new IllegalStateException();
-
 
12628
    }
-
 
12629
 
-
 
12630
    public boolean isSet(int fieldID) {
-
 
12631
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
12632
    }
-
 
12633
 
-
 
12634
    @Override
-
 
12635
    public boolean equals(Object that) {
-
 
12636
      if (that == null)
-
 
12637
        return false;
-
 
12638
      if (that instanceof updateLastEmailProcessedTimestamp_args)
-
 
12639
        return this.equals((updateLastEmailProcessedTimestamp_args)that);
-
 
12640
      return false;
-
 
12641
    }
-
 
12642
 
-
 
12643
    public boolean equals(updateLastEmailProcessedTimestamp_args that) {
-
 
12644
      if (that == null)
-
 
12645
        return false;
-
 
12646
 
-
 
12647
      boolean this_present_timestamp = true;
-
 
12648
      boolean that_present_timestamp = true;
-
 
12649
      if (this_present_timestamp || that_present_timestamp) {
-
 
12650
        if (!(this_present_timestamp && that_present_timestamp))
-
 
12651
          return false;
-
 
12652
        if (this.timestamp != that.timestamp)
-
 
12653
          return false;
-
 
12654
      }
-
 
12655
 
-
 
12656
      return true;
-
 
12657
    }
-
 
12658
 
-
 
12659
    @Override
-
 
12660
    public int hashCode() {
-
 
12661
      return 0;
-
 
12662
    }
-
 
12663
 
-
 
12664
    public int compareTo(updateLastEmailProcessedTimestamp_args other) {
-
 
12665
      if (!getClass().equals(other.getClass())) {
-
 
12666
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12667
      }
-
 
12668
 
-
 
12669
      int lastComparison = 0;
-
 
12670
      updateLastEmailProcessedTimestamp_args typedOther = (updateLastEmailProcessedTimestamp_args)other;
-
 
12671
 
-
 
12672
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(isSetTimestamp());
-
 
12673
      if (lastComparison != 0) {
-
 
12674
        return lastComparison;
-
 
12675
      }
-
 
12676
      lastComparison = TBaseHelper.compareTo(timestamp, typedOther.timestamp);
-
 
12677
      if (lastComparison != 0) {
-
 
12678
        return lastComparison;
-
 
12679
      }
-
 
12680
      return 0;
-
 
12681
    }
-
 
12682
 
-
 
12683
    public void read(TProtocol iprot) throws TException {
-
 
12684
      TField field;
-
 
12685
      iprot.readStructBegin();
-
 
12686
      while (true)
-
 
12687
      {
-
 
12688
        field = iprot.readFieldBegin();
-
 
12689
        if (field.type == TType.STOP) { 
-
 
12690
          break;
-
 
12691
        }
-
 
12692
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
12693
        if (fieldId == null) {
-
 
12694
          TProtocolUtil.skip(iprot, field.type);
-
 
12695
        } else {
-
 
12696
          switch (fieldId) {
-
 
12697
            case TIMESTAMP:
-
 
12698
              if (field.type == TType.I64) {
-
 
12699
                this.timestamp = iprot.readI64();
-
 
12700
                setTimestampIsSet(true);
-
 
12701
              } else { 
-
 
12702
                TProtocolUtil.skip(iprot, field.type);
-
 
12703
              }
-
 
12704
              break;
-
 
12705
          }
-
 
12706
          iprot.readFieldEnd();
-
 
12707
        }
-
 
12708
      }
-
 
12709
      iprot.readStructEnd();
-
 
12710
      validate();
-
 
12711
    }
-
 
12712
 
-
 
12713
    public void write(TProtocol oprot) throws TException {
-
 
12714
      validate();
-
 
12715
 
-
 
12716
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12717
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
-
 
12718
      oprot.writeI64(this.timestamp);
-
 
12719
      oprot.writeFieldEnd();
-
 
12720
      oprot.writeFieldStop();
-
 
12721
      oprot.writeStructEnd();
-
 
12722
    }
-
 
12723
 
-
 
12724
    @Override
-
 
12725
    public String toString() {
-
 
12726
      StringBuilder sb = new StringBuilder("updateLastEmailProcessedTimestamp_args(");
-
 
12727
      boolean first = true;
-
 
12728
 
-
 
12729
      sb.append("timestamp:");
-
 
12730
      sb.append(this.timestamp);
-
 
12731
      first = false;
-
 
12732
      sb.append(")");
-
 
12733
      return sb.toString();
-
 
12734
    }
-
 
12735
 
-
 
12736
    public void validate() throws TException {
-
 
12737
      // check for required fields
-
 
12738
    }
-
 
12739
 
-
 
12740
  }
-
 
12741
 
-
 
12742
  public static class updateLastEmailProcessedTimestamp_result implements TBase<updateLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateLastEmailProcessedTimestamp_result>   {
-
 
12743
    private static final TStruct STRUCT_DESC = new TStruct("updateLastEmailProcessedTimestamp_result");
-
 
12744
 
-
 
12745
 
-
 
12746
 
-
 
12747
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12748
    public enum _Fields implements TFieldIdEnum {
-
 
12749
;
-
 
12750
 
-
 
12751
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
12752
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12753
 
-
 
12754
      static {
-
 
12755
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12756
          byId.put((int)field._thriftId, field);
-
 
12757
          byName.put(field.getFieldName(), field);
-
 
12758
        }
-
 
12759
      }
-
 
12760
 
-
 
12761
      /**
-
 
12762
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12763
       */
-
 
12764
      public static _Fields findByThriftId(int fieldId) {
-
 
12765
        return byId.get(fieldId);
-
 
12766
      }
-
 
12767
 
-
 
12768
      /**
-
 
12769
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12770
       * if it is not found.
-
 
12771
       */
-
 
12772
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12773
        _Fields fields = findByThriftId(fieldId);
-
 
12774
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12775
        return fields;
-
 
12776
      }
-
 
12777
 
-
 
12778
      /**
-
 
12779
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12780
       */
-
 
12781
      public static _Fields findByName(String name) {
-
 
12782
        return byName.get(name);
-
 
12783
      }
-
 
12784
 
-
 
12785
      private final short _thriftId;
-
 
12786
      private final String _fieldName;
-
 
12787
 
-
 
12788
      _Fields(short thriftId, String fieldName) {
-
 
12789
        _thriftId = thriftId;
-
 
12790
        _fieldName = fieldName;
-
 
12791
      }
-
 
12792
 
-
 
12793
      public short getThriftFieldId() {
-
 
12794
        return _thriftId;
-
 
12795
      }
-
 
12796
 
-
 
12797
      public String getFieldName() {
-
 
12798
        return _fieldName;
-
 
12799
      }
-
 
12800
    }
-
 
12801
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
12802
    }});
-
 
12803
 
-
 
12804
    static {
-
 
12805
      FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_result.class, metaDataMap);
-
 
12806
    }
-
 
12807
 
-
 
12808
    public updateLastEmailProcessedTimestamp_result() {
-
 
12809
    }
-
 
12810
 
-
 
12811
    /**
-
 
12812
     * Performs a deep copy on <i>other</i>.
-
 
12813
     */
-
 
12814
    public updateLastEmailProcessedTimestamp_result(updateLastEmailProcessedTimestamp_result other) {
-
 
12815
    }
-
 
12816
 
-
 
12817
    public updateLastEmailProcessedTimestamp_result deepCopy() {
-
 
12818
      return new updateLastEmailProcessedTimestamp_result(this);
-
 
12819
    }
-
 
12820
 
-
 
12821
    @Deprecated
-
 
12822
    public updateLastEmailProcessedTimestamp_result clone() {
-
 
12823
      return new updateLastEmailProcessedTimestamp_result(this);
-
 
12824
    }
-
 
12825
 
-
 
12826
    public void setFieldValue(_Fields field, Object value) {
-
 
12827
      switch (field) {
-
 
12828
      }
-
 
12829
    }
-
 
12830
 
-
 
12831
    public void setFieldValue(int fieldID, Object value) {
-
 
12832
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
12833
    }
-
 
12834
 
-
 
12835
    public Object getFieldValue(_Fields field) {
-
 
12836
      switch (field) {
-
 
12837
      }
-
 
12838
      throw new IllegalStateException();
-
 
12839
    }
-
 
12840
 
-
 
12841
    public Object getFieldValue(int fieldId) {
-
 
12842
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
12843
    }
-
 
12844
 
-
 
12845
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
12846
    public boolean isSet(_Fields field) {
-
 
12847
      switch (field) {
-
 
12848
      }
-
 
12849
      throw new IllegalStateException();
-
 
12850
    }
-
 
12851
 
-
 
12852
    public boolean isSet(int fieldID) {
-
 
12853
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
12854
    }
-
 
12855
 
-
 
12856
    @Override
-
 
12857
    public boolean equals(Object that) {
-
 
12858
      if (that == null)
-
 
12859
        return false;
-
 
12860
      if (that instanceof updateLastEmailProcessedTimestamp_result)
-
 
12861
        return this.equals((updateLastEmailProcessedTimestamp_result)that);
-
 
12862
      return false;
-
 
12863
    }
-
 
12864
 
-
 
12865
    public boolean equals(updateLastEmailProcessedTimestamp_result that) {
-
 
12866
      if (that == null)
-
 
12867
        return false;
-
 
12868
 
-
 
12869
      return true;
-
 
12870
    }
-
 
12871
 
-
 
12872
    @Override
-
 
12873
    public int hashCode() {
-
 
12874
      return 0;
-
 
12875
    }
-
 
12876
 
-
 
12877
    public int compareTo(updateLastEmailProcessedTimestamp_result other) {
-
 
12878
      if (!getClass().equals(other.getClass())) {
-
 
12879
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12880
      }
-
 
12881
 
-
 
12882
      int lastComparison = 0;
-
 
12883
      updateLastEmailProcessedTimestamp_result typedOther = (updateLastEmailProcessedTimestamp_result)other;
-
 
12884
 
-
 
12885
      return 0;
-
 
12886
    }
-
 
12887
 
-
 
12888
    public void read(TProtocol iprot) throws TException {
-
 
12889
      TField field;
-
 
12890
      iprot.readStructBegin();
-
 
12891
      while (true)
-
 
12892
      {
-
 
12893
        field = iprot.readFieldBegin();
-
 
12894
        if (field.type == TType.STOP) { 
-
 
12895
          break;
-
 
12896
        }
-
 
12897
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
12898
        if (fieldId == null) {
-
 
12899
          TProtocolUtil.skip(iprot, field.type);
-
 
12900
        } else {
-
 
12901
          switch (fieldId) {
-
 
12902
          }
-
 
12903
          iprot.readFieldEnd();
-
 
12904
        }
-
 
12905
      }
-
 
12906
      iprot.readStructEnd();
-
 
12907
      validate();
-
 
12908
    }
-
 
12909
 
-
 
12910
    public void write(TProtocol oprot) throws TException {
-
 
12911
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12912
 
-
 
12913
      oprot.writeFieldStop();
-
 
12914
      oprot.writeStructEnd();
-
 
12915
    }
-
 
12916
 
-
 
12917
    @Override
-
 
12918
    public String toString() {
-
 
12919
      StringBuilder sb = new StringBuilder("updateLastEmailProcessedTimestamp_result(");
-
 
12920
      boolean first = true;
-
 
12921
 
-
 
12922
      sb.append(")");
-
 
12923
      return sb.toString();
-
 
12924
    }
-
 
12925
 
-
 
12926
    public void validate() throws TException {
11240
      // check for required fields
12927
      // check for required fields
11241
    }
12928
    }
11242
 
12929
 
11243
  }
12930
  }
11244
 
12931