Subversion Repositories SmartDukaan

Rev

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

Rev 2034 Rev 2642
Line 218... Line 218...
218
     * @param startDate
218
     * @param startDate
219
     * @param endDate
219
     * @param endDate
220
     */
220
     */
221
    public List<User> getAllUsers(UserType userType, long startDate, long endDate) throws TException;
221
    public List<User> getAllUsers(UserType userType, long startDate, long endDate) throws TException;
222
 
222
 
-
 
223
    /**
-
 
224
     * Masking right now. May be used later.
-
 
225
     * void addWidget(1:Widget widget) throws (1:WidgetException scx),
-
 
226
     * void addItemToWidget(1:i64 widget_id, 2:list<i64> items) throws (1:WidgetException scx),
-
 
227
     * void deleteItemFromWidget(1:i64 widget_id, 2:i64 item_id) throws (1:WidgetException scx),
-
 
228
     * void updateWidget(1:i64 widgetId, 2:bool enable) throws (1:WidgetException scx),
-
 
229
     * void updateWidgetItem(1:i64 widgetId, 2:bool enable) throws (1:WidgetException scx),
-
 
230
     * Widget getWidget(1:WidgetType type, 2:i64 userId, 3:bool onlyEnabled) throws (1:WidgetException scx),
-
 
231
     * 
-
 
232
     * @param user_id
-
 
233
     * @param entity_id
-
 
234
     * @param slide_id
-
 
235
     * @param note
-
 
236
     */
-
 
237
    public void putUserNote(long user_id, long entity_id, long slide_id, String note) throws TException;
-
 
238
 
-
 
239
    public List<UserNote> getUserNotes(long user_id, long entity_id) throws TException;
-
 
240
 
223
  }
241
  }
224
 
242
 
225
  public static class Client implements Iface {
243
  public static class Client implements Iface {
226
    public Client(TProtocol prot)
244
    public Client(TProtocol prot)
227
    {
245
    {
Line 2617... Line 2635...
2617
        return result.success;
2635
        return result.success;
2618
      }
2636
      }
2619
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
2637
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
2620
    }
2638
    }
2621
 
2639
 
-
 
2640
    public void putUserNote(long user_id, long entity_id, long slide_id, String note) throws TException
-
 
2641
    {
-
 
2642
      send_putUserNote(user_id, entity_id, slide_id, note);
-
 
2643
      recv_putUserNote();
-
 
2644
    }
-
 
2645
 
-
 
2646
    public void send_putUserNote(long user_id, long entity_id, long slide_id, String note) throws TException
-
 
2647
    {
-
 
2648
      oprot_.writeMessageBegin(new TMessage("putUserNote", TMessageType.CALL, seqid_));
-
 
2649
      putUserNote_args args = new putUserNote_args();
-
 
2650
      args.user_id = user_id;
-
 
2651
      args.entity_id = entity_id;
-
 
2652
      args.slide_id = slide_id;
-
 
2653
      args.note = note;
-
 
2654
      args.write(oprot_);
-
 
2655
      oprot_.writeMessageEnd();
-
 
2656
      oprot_.getTransport().flush();
-
 
2657
    }
-
 
2658
 
-
 
2659
    public void recv_putUserNote() throws TException
-
 
2660
    {
-
 
2661
      TMessage msg = iprot_.readMessageBegin();
-
 
2662
      if (msg.type == TMessageType.EXCEPTION) {
-
 
2663
        TApplicationException x = TApplicationException.read(iprot_);
-
 
2664
        iprot_.readMessageEnd();
-
 
2665
        throw x;
-
 
2666
      }
-
 
2667
      putUserNote_result result = new putUserNote_result();
-
 
2668
      result.read(iprot_);
-
 
2669
      iprot_.readMessageEnd();
-
 
2670
      return;
-
 
2671
    }
-
 
2672
 
-
 
2673
    public List<UserNote> getUserNotes(long user_id, long entity_id) throws TException
-
 
2674
    {
-
 
2675
      send_getUserNotes(user_id, entity_id);
-
 
2676
      return recv_getUserNotes();
-
 
2677
    }
-
 
2678
 
-
 
2679
    public void send_getUserNotes(long user_id, long entity_id) throws TException
-
 
2680
    {
-
 
2681
      oprot_.writeMessageBegin(new TMessage("getUserNotes", TMessageType.CALL, seqid_));
-
 
2682
      getUserNotes_args args = new getUserNotes_args();
-
 
2683
      args.user_id = user_id;
-
 
2684
      args.entity_id = entity_id;
-
 
2685
      args.write(oprot_);
-
 
2686
      oprot_.writeMessageEnd();
-
 
2687
      oprot_.getTransport().flush();
-
 
2688
    }
-
 
2689
 
-
 
2690
    public List<UserNote> recv_getUserNotes() throws TException
-
 
2691
    {
-
 
2692
      TMessage msg = iprot_.readMessageBegin();
-
 
2693
      if (msg.type == TMessageType.EXCEPTION) {
-
 
2694
        TApplicationException x = TApplicationException.read(iprot_);
-
 
2695
        iprot_.readMessageEnd();
-
 
2696
        throw x;
-
 
2697
      }
-
 
2698
      getUserNotes_result result = new getUserNotes_result();
-
 
2699
      result.read(iprot_);
-
 
2700
      iprot_.readMessageEnd();
-
 
2701
      if (result.isSetSuccess()) {
-
 
2702
        return result.success;
-
 
2703
      }
-
 
2704
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
-
 
2705
    }
-
 
2706
 
2622
  }
2707
  }
2623
  public static class Processor implements TProcessor {
2708
  public static class Processor implements TProcessor {
2624
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2709
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2625
    public Processor(Iface iface)
2710
    public Processor(Iface iface)
2626
    {
2711
    {
Line 2689... Line 2774...
2689
      processMap_.put("updateBrowseHistory", new updateBrowseHistory());
2774
      processMap_.put("updateBrowseHistory", new updateBrowseHistory());
2690
      processMap_.put("getBrowseHistory", new getBrowseHistory());
2775
      processMap_.put("getBrowseHistory", new getBrowseHistory());
2691
      processMap_.put("mergeBrowseHistory", new mergeBrowseHistory());
2776
      processMap_.put("mergeBrowseHistory", new mergeBrowseHistory());
2692
      processMap_.put("getUserCount", new getUserCount());
2777
      processMap_.put("getUserCount", new getUserCount());
2693
      processMap_.put("getAllUsers", new getAllUsers());
2778
      processMap_.put("getAllUsers", new getAllUsers());
-
 
2779
      processMap_.put("putUserNote", new putUserNote());
-
 
2780
      processMap_.put("getUserNotes", new getUserNotes());
2694
    }
2781
    }
2695
 
2782
 
2696
    protected static interface ProcessFunction {
2783
    protected static interface ProcessFunction {
2697
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
2784
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
2698
    }
2785
    }
Line 4510... Line 4597...
4510
        oprot.getTransport().flush();
4597
        oprot.getTransport().flush();
4511
      }
4598
      }
4512
 
4599
 
4513
    }
4600
    }
4514
 
4601
 
-
 
4602
    private class putUserNote implements ProcessFunction {
-
 
4603
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
4604
      {
-
 
4605
        putUserNote_args args = new putUserNote_args();
-
 
4606
        args.read(iprot);
-
 
4607
        iprot.readMessageEnd();
-
 
4608
        putUserNote_result result = new putUserNote_result();
-
 
4609
        iface_.putUserNote(args.user_id, args.entity_id, args.slide_id, args.note);
-
 
4610
        oprot.writeMessageBegin(new TMessage("putUserNote", TMessageType.REPLY, seqid));
-
 
4611
        result.write(oprot);
-
 
4612
        oprot.writeMessageEnd();
-
 
4613
        oprot.getTransport().flush();
-
 
4614
      }
-
 
4615
 
-
 
4616
    }
-
 
4617
 
-
 
4618
    private class getUserNotes implements ProcessFunction {
-
 
4619
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
4620
      {
-
 
4621
        getUserNotes_args args = new getUserNotes_args();
-
 
4622
        args.read(iprot);
-
 
4623
        iprot.readMessageEnd();
-
 
4624
        getUserNotes_result result = new getUserNotes_result();
-
 
4625
        result.success = iface_.getUserNotes(args.user_id, args.entity_id);
-
 
4626
        oprot.writeMessageBegin(new TMessage("getUserNotes", TMessageType.REPLY, seqid));
-
 
4627
        result.write(oprot);
-
 
4628
        oprot.writeMessageEnd();
-
 
4629
        oprot.getTransport().flush();
-
 
4630
      }
-
 
4631
 
-
 
4632
    }
-
 
4633
 
4515
  }
4634
  }
4516
 
4635
 
4517
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
4636
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
4518
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
4637
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
4519
 
4638
 
Line 49862... Line 49981...
49862
      boolean first = true;
49981
      boolean first = true;
49863
 
49982
 
49864
      sb.append("success:");
49983
      sb.append("success:");
49865
      if (this.success == null) {
49984
      if (this.success == null) {
49866
        sb.append("null");
49985
        sb.append("null");
-
 
49986
      } else {
-
 
49987
        sb.append(this.success);
-
 
49988
      }
-
 
49989
      first = false;
-
 
49990
      sb.append(")");
-
 
49991
      return sb.toString();
-
 
49992
    }
-
 
49993
 
-
 
49994
    public void validate() throws TException {
-
 
49995
      // check for required fields
-
 
49996
    }
-
 
49997
 
-
 
49998
  }
-
 
49999
 
-
 
50000
  public static class putUserNote_args implements TBase<putUserNote_args._Fields>, java.io.Serializable, Cloneable, Comparable<putUserNote_args>   {
-
 
50001
    private static final TStruct STRUCT_DESC = new TStruct("putUserNote_args");
-
 
50002
 
-
 
50003
    private static final TField USER_ID_FIELD_DESC = new TField("user_id", TType.I64, (short)1);
-
 
50004
    private static final TField ENTITY_ID_FIELD_DESC = new TField("entity_id", TType.I64, (short)2);
-
 
50005
    private static final TField SLIDE_ID_FIELD_DESC = new TField("slide_id", TType.I64, (short)3);
-
 
50006
    private static final TField NOTE_FIELD_DESC = new TField("note", TType.STRING, (short)4);
-
 
50007
 
-
 
50008
    private long user_id;
-
 
50009
    private long entity_id;
-
 
50010
    private long slide_id;
-
 
50011
    private String note;
-
 
50012
 
-
 
50013
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
50014
    public enum _Fields implements TFieldIdEnum {
-
 
50015
      USER_ID((short)1, "user_id"),
-
 
50016
      ENTITY_ID((short)2, "entity_id"),
-
 
50017
      SLIDE_ID((short)3, "slide_id"),
-
 
50018
      NOTE((short)4, "note");
-
 
50019
 
-
 
50020
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
50021
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
50022
 
-
 
50023
      static {
-
 
50024
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
50025
          byId.put((int)field._thriftId, field);
-
 
50026
          byName.put(field.getFieldName(), field);
-
 
50027
        }
-
 
50028
      }
-
 
50029
 
-
 
50030
      /**
-
 
50031
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
50032
       */
-
 
50033
      public static _Fields findByThriftId(int fieldId) {
-
 
50034
        return byId.get(fieldId);
-
 
50035
      }
-
 
50036
 
-
 
50037
      /**
-
 
50038
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
50039
       * if it is not found.
-
 
50040
       */
-
 
50041
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
50042
        _Fields fields = findByThriftId(fieldId);
-
 
50043
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
50044
        return fields;
-
 
50045
      }
-
 
50046
 
-
 
50047
      /**
-
 
50048
       * Find the _Fields constant that matches name, or null if its not found.
-
 
50049
       */
-
 
50050
      public static _Fields findByName(String name) {
-
 
50051
        return byName.get(name);
-
 
50052
      }
-
 
50053
 
-
 
50054
      private final short _thriftId;
-
 
50055
      private final String _fieldName;
-
 
50056
 
-
 
50057
      _Fields(short thriftId, String fieldName) {
-
 
50058
        _thriftId = thriftId;
-
 
50059
        _fieldName = fieldName;
-
 
50060
      }
-
 
50061
 
-
 
50062
      public short getThriftFieldId() {
-
 
50063
        return _thriftId;
-
 
50064
      }
-
 
50065
 
-
 
50066
      public String getFieldName() {
-
 
50067
        return _fieldName;
-
 
50068
      }
-
 
50069
    }
-
 
50070
 
-
 
50071
    // isset id assignments
-
 
50072
    private static final int __USER_ID_ISSET_ID = 0;
-
 
50073
    private static final int __ENTITY_ID_ISSET_ID = 1;
-
 
50074
    private static final int __SLIDE_ID_ISSET_ID = 2;
-
 
50075
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
50076
 
-
 
50077
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
50078
      put(_Fields.USER_ID, new FieldMetaData("user_id", TFieldRequirementType.DEFAULT, 
-
 
50079
          new FieldValueMetaData(TType.I64)));
-
 
50080
      put(_Fields.ENTITY_ID, new FieldMetaData("entity_id", TFieldRequirementType.DEFAULT, 
-
 
50081
          new FieldValueMetaData(TType.I64)));
-
 
50082
      put(_Fields.SLIDE_ID, new FieldMetaData("slide_id", TFieldRequirementType.DEFAULT, 
-
 
50083
          new FieldValueMetaData(TType.I64)));
-
 
50084
      put(_Fields.NOTE, new FieldMetaData("note", TFieldRequirementType.DEFAULT, 
-
 
50085
          new FieldValueMetaData(TType.STRING)));
-
 
50086
    }});
-
 
50087
 
-
 
50088
    static {
-
 
50089
      FieldMetaData.addStructMetaDataMap(putUserNote_args.class, metaDataMap);
-
 
50090
    }
-
 
50091
 
-
 
50092
    public putUserNote_args() {
-
 
50093
    }
-
 
50094
 
-
 
50095
    public putUserNote_args(
-
 
50096
      long user_id,
-
 
50097
      long entity_id,
-
 
50098
      long slide_id,
-
 
50099
      String note)
-
 
50100
    {
-
 
50101
      this();
-
 
50102
      this.user_id = user_id;
-
 
50103
      setUser_idIsSet(true);
-
 
50104
      this.entity_id = entity_id;
-
 
50105
      setEntity_idIsSet(true);
-
 
50106
      this.slide_id = slide_id;
-
 
50107
      setSlide_idIsSet(true);
-
 
50108
      this.note = note;
-
 
50109
    }
-
 
50110
 
-
 
50111
    /**
-
 
50112
     * Performs a deep copy on <i>other</i>.
-
 
50113
     */
-
 
50114
    public putUserNote_args(putUserNote_args other) {
-
 
50115
      __isset_bit_vector.clear();
-
 
50116
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
50117
      this.user_id = other.user_id;
-
 
50118
      this.entity_id = other.entity_id;
-
 
50119
      this.slide_id = other.slide_id;
-
 
50120
      if (other.isSetNote()) {
-
 
50121
        this.note = other.note;
-
 
50122
      }
-
 
50123
    }
-
 
50124
 
-
 
50125
    public putUserNote_args deepCopy() {
-
 
50126
      return new putUserNote_args(this);
-
 
50127
    }
-
 
50128
 
-
 
50129
    @Deprecated
-
 
50130
    public putUserNote_args clone() {
-
 
50131
      return new putUserNote_args(this);
-
 
50132
    }
-
 
50133
 
-
 
50134
    public long getUser_id() {
-
 
50135
      return this.user_id;
-
 
50136
    }
-
 
50137
 
-
 
50138
    public putUserNote_args setUser_id(long user_id) {
-
 
50139
      this.user_id = user_id;
-
 
50140
      setUser_idIsSet(true);
-
 
50141
      return this;
-
 
50142
    }
-
 
50143
 
-
 
50144
    public void unsetUser_id() {
-
 
50145
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
-
 
50146
    }
-
 
50147
 
-
 
50148
    /** Returns true if field user_id is set (has been asigned a value) and false otherwise */
-
 
50149
    public boolean isSetUser_id() {
-
 
50150
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
-
 
50151
    }
-
 
50152
 
-
 
50153
    public void setUser_idIsSet(boolean value) {
-
 
50154
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
-
 
50155
    }
-
 
50156
 
-
 
50157
    public long getEntity_id() {
-
 
50158
      return this.entity_id;
-
 
50159
    }
-
 
50160
 
-
 
50161
    public putUserNote_args setEntity_id(long entity_id) {
-
 
50162
      this.entity_id = entity_id;
-
 
50163
      setEntity_idIsSet(true);
-
 
50164
      return this;
-
 
50165
    }
-
 
50166
 
-
 
50167
    public void unsetEntity_id() {
-
 
50168
      __isset_bit_vector.clear(__ENTITY_ID_ISSET_ID);
-
 
50169
    }
-
 
50170
 
-
 
50171
    /** Returns true if field entity_id is set (has been asigned a value) and false otherwise */
-
 
50172
    public boolean isSetEntity_id() {
-
 
50173
      return __isset_bit_vector.get(__ENTITY_ID_ISSET_ID);
-
 
50174
    }
-
 
50175
 
-
 
50176
    public void setEntity_idIsSet(boolean value) {
-
 
50177
      __isset_bit_vector.set(__ENTITY_ID_ISSET_ID, value);
-
 
50178
    }
-
 
50179
 
-
 
50180
    public long getSlide_id() {
-
 
50181
      return this.slide_id;
-
 
50182
    }
-
 
50183
 
-
 
50184
    public putUserNote_args setSlide_id(long slide_id) {
-
 
50185
      this.slide_id = slide_id;
-
 
50186
      setSlide_idIsSet(true);
-
 
50187
      return this;
-
 
50188
    }
-
 
50189
 
-
 
50190
    public void unsetSlide_id() {
-
 
50191
      __isset_bit_vector.clear(__SLIDE_ID_ISSET_ID);
-
 
50192
    }
-
 
50193
 
-
 
50194
    /** Returns true if field slide_id is set (has been asigned a value) and false otherwise */
-
 
50195
    public boolean isSetSlide_id() {
-
 
50196
      return __isset_bit_vector.get(__SLIDE_ID_ISSET_ID);
-
 
50197
    }
-
 
50198
 
-
 
50199
    public void setSlide_idIsSet(boolean value) {
-
 
50200
      __isset_bit_vector.set(__SLIDE_ID_ISSET_ID, value);
-
 
50201
    }
-
 
50202
 
-
 
50203
    public String getNote() {
-
 
50204
      return this.note;
-
 
50205
    }
-
 
50206
 
-
 
50207
    public putUserNote_args setNote(String note) {
-
 
50208
      this.note = note;
-
 
50209
      return this;
-
 
50210
    }
-
 
50211
 
-
 
50212
    public void unsetNote() {
-
 
50213
      this.note = null;
-
 
50214
    }
-
 
50215
 
-
 
50216
    /** Returns true if field note is set (has been asigned a value) and false otherwise */
-
 
50217
    public boolean isSetNote() {
-
 
50218
      return this.note != null;
-
 
50219
    }
-
 
50220
 
-
 
50221
    public void setNoteIsSet(boolean value) {
-
 
50222
      if (!value) {
-
 
50223
        this.note = null;
-
 
50224
      }
-
 
50225
    }
-
 
50226
 
-
 
50227
    public void setFieldValue(_Fields field, Object value) {
-
 
50228
      switch (field) {
-
 
50229
      case USER_ID:
-
 
50230
        if (value == null) {
-
 
50231
          unsetUser_id();
-
 
50232
        } else {
-
 
50233
          setUser_id((Long)value);
-
 
50234
        }
-
 
50235
        break;
-
 
50236
 
-
 
50237
      case ENTITY_ID:
-
 
50238
        if (value == null) {
-
 
50239
          unsetEntity_id();
-
 
50240
        } else {
-
 
50241
          setEntity_id((Long)value);
-
 
50242
        }
-
 
50243
        break;
-
 
50244
 
-
 
50245
      case SLIDE_ID:
-
 
50246
        if (value == null) {
-
 
50247
          unsetSlide_id();
-
 
50248
        } else {
-
 
50249
          setSlide_id((Long)value);
-
 
50250
        }
-
 
50251
        break;
-
 
50252
 
-
 
50253
      case NOTE:
-
 
50254
        if (value == null) {
-
 
50255
          unsetNote();
-
 
50256
        } else {
-
 
50257
          setNote((String)value);
-
 
50258
        }
-
 
50259
        break;
-
 
50260
 
-
 
50261
      }
-
 
50262
    }
-
 
50263
 
-
 
50264
    public void setFieldValue(int fieldID, Object value) {
-
 
50265
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
50266
    }
-
 
50267
 
-
 
50268
    public Object getFieldValue(_Fields field) {
-
 
50269
      switch (field) {
-
 
50270
      case USER_ID:
-
 
50271
        return new Long(getUser_id());
-
 
50272
 
-
 
50273
      case ENTITY_ID:
-
 
50274
        return new Long(getEntity_id());
-
 
50275
 
-
 
50276
      case SLIDE_ID:
-
 
50277
        return new Long(getSlide_id());
-
 
50278
 
-
 
50279
      case NOTE:
-
 
50280
        return getNote();
-
 
50281
 
-
 
50282
      }
-
 
50283
      throw new IllegalStateException();
-
 
50284
    }
-
 
50285
 
-
 
50286
    public Object getFieldValue(int fieldId) {
-
 
50287
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
50288
    }
-
 
50289
 
-
 
50290
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
50291
    public boolean isSet(_Fields field) {
-
 
50292
      switch (field) {
-
 
50293
      case USER_ID:
-
 
50294
        return isSetUser_id();
-
 
50295
      case ENTITY_ID:
-
 
50296
        return isSetEntity_id();
-
 
50297
      case SLIDE_ID:
-
 
50298
        return isSetSlide_id();
-
 
50299
      case NOTE:
-
 
50300
        return isSetNote();
-
 
50301
      }
-
 
50302
      throw new IllegalStateException();
-
 
50303
    }
-
 
50304
 
-
 
50305
    public boolean isSet(int fieldID) {
-
 
50306
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
50307
    }
-
 
50308
 
-
 
50309
    @Override
-
 
50310
    public boolean equals(Object that) {
-
 
50311
      if (that == null)
-
 
50312
        return false;
-
 
50313
      if (that instanceof putUserNote_args)
-
 
50314
        return this.equals((putUserNote_args)that);
-
 
50315
      return false;
-
 
50316
    }
-
 
50317
 
-
 
50318
    public boolean equals(putUserNote_args that) {
-
 
50319
      if (that == null)
-
 
50320
        return false;
-
 
50321
 
-
 
50322
      boolean this_present_user_id = true;
-
 
50323
      boolean that_present_user_id = true;
-
 
50324
      if (this_present_user_id || that_present_user_id) {
-
 
50325
        if (!(this_present_user_id && that_present_user_id))
-
 
50326
          return false;
-
 
50327
        if (this.user_id != that.user_id)
-
 
50328
          return false;
-
 
50329
      }
-
 
50330
 
-
 
50331
      boolean this_present_entity_id = true;
-
 
50332
      boolean that_present_entity_id = true;
-
 
50333
      if (this_present_entity_id || that_present_entity_id) {
-
 
50334
        if (!(this_present_entity_id && that_present_entity_id))
-
 
50335
          return false;
-
 
50336
        if (this.entity_id != that.entity_id)
-
 
50337
          return false;
-
 
50338
      }
-
 
50339
 
-
 
50340
      boolean this_present_slide_id = true;
-
 
50341
      boolean that_present_slide_id = true;
-
 
50342
      if (this_present_slide_id || that_present_slide_id) {
-
 
50343
        if (!(this_present_slide_id && that_present_slide_id))
-
 
50344
          return false;
-
 
50345
        if (this.slide_id != that.slide_id)
-
 
50346
          return false;
-
 
50347
      }
-
 
50348
 
-
 
50349
      boolean this_present_note = true && this.isSetNote();
-
 
50350
      boolean that_present_note = true && that.isSetNote();
-
 
50351
      if (this_present_note || that_present_note) {
-
 
50352
        if (!(this_present_note && that_present_note))
-
 
50353
          return false;
-
 
50354
        if (!this.note.equals(that.note))
-
 
50355
          return false;
-
 
50356
      }
-
 
50357
 
-
 
50358
      return true;
-
 
50359
    }
-
 
50360
 
-
 
50361
    @Override
-
 
50362
    public int hashCode() {
-
 
50363
      return 0;
-
 
50364
    }
-
 
50365
 
-
 
50366
    public int compareTo(putUserNote_args other) {
-
 
50367
      if (!getClass().equals(other.getClass())) {
-
 
50368
        return getClass().getName().compareTo(other.getClass().getName());
-
 
50369
      }
-
 
50370
 
-
 
50371
      int lastComparison = 0;
-
 
50372
      putUserNote_args typedOther = (putUserNote_args)other;
-
 
50373
 
-
 
50374
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(isSetUser_id());
-
 
50375
      if (lastComparison != 0) {
-
 
50376
        return lastComparison;
-
 
50377
      }
-
 
50378
      lastComparison = TBaseHelper.compareTo(user_id, typedOther.user_id);
-
 
50379
      if (lastComparison != 0) {
-
 
50380
        return lastComparison;
-
 
50381
      }
-
 
50382
      lastComparison = Boolean.valueOf(isSetEntity_id()).compareTo(isSetEntity_id());
-
 
50383
      if (lastComparison != 0) {
-
 
50384
        return lastComparison;
-
 
50385
      }
-
 
50386
      lastComparison = TBaseHelper.compareTo(entity_id, typedOther.entity_id);
-
 
50387
      if (lastComparison != 0) {
-
 
50388
        return lastComparison;
-
 
50389
      }
-
 
50390
      lastComparison = Boolean.valueOf(isSetSlide_id()).compareTo(isSetSlide_id());
-
 
50391
      if (lastComparison != 0) {
-
 
50392
        return lastComparison;
-
 
50393
      }
-
 
50394
      lastComparison = TBaseHelper.compareTo(slide_id, typedOther.slide_id);
-
 
50395
      if (lastComparison != 0) {
-
 
50396
        return lastComparison;
-
 
50397
      }
-
 
50398
      lastComparison = Boolean.valueOf(isSetNote()).compareTo(isSetNote());
-
 
50399
      if (lastComparison != 0) {
-
 
50400
        return lastComparison;
-
 
50401
      }
-
 
50402
      lastComparison = TBaseHelper.compareTo(note, typedOther.note);
-
 
50403
      if (lastComparison != 0) {
-
 
50404
        return lastComparison;
-
 
50405
      }
-
 
50406
      return 0;
-
 
50407
    }
-
 
50408
 
-
 
50409
    public void read(TProtocol iprot) throws TException {
-
 
50410
      TField field;
-
 
50411
      iprot.readStructBegin();
-
 
50412
      while (true)
-
 
50413
      {
-
 
50414
        field = iprot.readFieldBegin();
-
 
50415
        if (field.type == TType.STOP) { 
-
 
50416
          break;
-
 
50417
        }
-
 
50418
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
50419
        if (fieldId == null) {
-
 
50420
          TProtocolUtil.skip(iprot, field.type);
-
 
50421
        } else {
-
 
50422
          switch (fieldId) {
-
 
50423
            case USER_ID:
-
 
50424
              if (field.type == TType.I64) {
-
 
50425
                this.user_id = iprot.readI64();
-
 
50426
                setUser_idIsSet(true);
-
 
50427
              } else { 
-
 
50428
                TProtocolUtil.skip(iprot, field.type);
-
 
50429
              }
-
 
50430
              break;
-
 
50431
            case ENTITY_ID:
-
 
50432
              if (field.type == TType.I64) {
-
 
50433
                this.entity_id = iprot.readI64();
-
 
50434
                setEntity_idIsSet(true);
-
 
50435
              } else { 
-
 
50436
                TProtocolUtil.skip(iprot, field.type);
-
 
50437
              }
-
 
50438
              break;
-
 
50439
            case SLIDE_ID:
-
 
50440
              if (field.type == TType.I64) {
-
 
50441
                this.slide_id = iprot.readI64();
-
 
50442
                setSlide_idIsSet(true);
-
 
50443
              } else { 
-
 
50444
                TProtocolUtil.skip(iprot, field.type);
-
 
50445
              }
-
 
50446
              break;
-
 
50447
            case NOTE:
-
 
50448
              if (field.type == TType.STRING) {
-
 
50449
                this.note = iprot.readString();
-
 
50450
              } else { 
-
 
50451
                TProtocolUtil.skip(iprot, field.type);
-
 
50452
              }
-
 
50453
              break;
-
 
50454
          }
-
 
50455
          iprot.readFieldEnd();
-
 
50456
        }
-
 
50457
      }
-
 
50458
      iprot.readStructEnd();
-
 
50459
      validate();
-
 
50460
    }
-
 
50461
 
-
 
50462
    public void write(TProtocol oprot) throws TException {
-
 
50463
      validate();
-
 
50464
 
-
 
50465
      oprot.writeStructBegin(STRUCT_DESC);
-
 
50466
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
50467
      oprot.writeI64(this.user_id);
-
 
50468
      oprot.writeFieldEnd();
-
 
50469
      oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);
-
 
50470
      oprot.writeI64(this.entity_id);
-
 
50471
      oprot.writeFieldEnd();
-
 
50472
      oprot.writeFieldBegin(SLIDE_ID_FIELD_DESC);
-
 
50473
      oprot.writeI64(this.slide_id);
-
 
50474
      oprot.writeFieldEnd();
-
 
50475
      if (this.note != null) {
-
 
50476
        oprot.writeFieldBegin(NOTE_FIELD_DESC);
-
 
50477
        oprot.writeString(this.note);
-
 
50478
        oprot.writeFieldEnd();
-
 
50479
      }
-
 
50480
      oprot.writeFieldStop();
-
 
50481
      oprot.writeStructEnd();
-
 
50482
    }
-
 
50483
 
-
 
50484
    @Override
-
 
50485
    public String toString() {
-
 
50486
      StringBuilder sb = new StringBuilder("putUserNote_args(");
-
 
50487
      boolean first = true;
-
 
50488
 
-
 
50489
      sb.append("user_id:");
-
 
50490
      sb.append(this.user_id);
-
 
50491
      first = false;
-
 
50492
      if (!first) sb.append(", ");
-
 
50493
      sb.append("entity_id:");
-
 
50494
      sb.append(this.entity_id);
-
 
50495
      first = false;
-
 
50496
      if (!first) sb.append(", ");
-
 
50497
      sb.append("slide_id:");
-
 
50498
      sb.append(this.slide_id);
-
 
50499
      first = false;
-
 
50500
      if (!first) sb.append(", ");
-
 
50501
      sb.append("note:");
-
 
50502
      if (this.note == null) {
-
 
50503
        sb.append("null");
-
 
50504
      } else {
-
 
50505
        sb.append(this.note);
-
 
50506
      }
-
 
50507
      first = false;
-
 
50508
      sb.append(")");
-
 
50509
      return sb.toString();
-
 
50510
    }
-
 
50511
 
-
 
50512
    public void validate() throws TException {
-
 
50513
      // check for required fields
-
 
50514
    }
-
 
50515
 
-
 
50516
  }
-
 
50517
 
-
 
50518
  public static class putUserNote_result implements TBase<putUserNote_result._Fields>, java.io.Serializable, Cloneable, Comparable<putUserNote_result>   {
-
 
50519
    private static final TStruct STRUCT_DESC = new TStruct("putUserNote_result");
-
 
50520
 
-
 
50521
 
-
 
50522
 
-
 
50523
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
50524
    public enum _Fields implements TFieldIdEnum {
-
 
50525
;
-
 
50526
 
-
 
50527
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
50528
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
50529
 
-
 
50530
      static {
-
 
50531
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
50532
          byId.put((int)field._thriftId, field);
-
 
50533
          byName.put(field.getFieldName(), field);
-
 
50534
        }
-
 
50535
      }
-
 
50536
 
-
 
50537
      /**
-
 
50538
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
50539
       */
-
 
50540
      public static _Fields findByThriftId(int fieldId) {
-
 
50541
        return byId.get(fieldId);
-
 
50542
      }
-
 
50543
 
-
 
50544
      /**
-
 
50545
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
50546
       * if it is not found.
-
 
50547
       */
-
 
50548
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
50549
        _Fields fields = findByThriftId(fieldId);
-
 
50550
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
50551
        return fields;
-
 
50552
      }
-
 
50553
 
-
 
50554
      /**
-
 
50555
       * Find the _Fields constant that matches name, or null if its not found.
-
 
50556
       */
-
 
50557
      public static _Fields findByName(String name) {
-
 
50558
        return byName.get(name);
-
 
50559
      }
-
 
50560
 
-
 
50561
      private final short _thriftId;
-
 
50562
      private final String _fieldName;
-
 
50563
 
-
 
50564
      _Fields(short thriftId, String fieldName) {
-
 
50565
        _thriftId = thriftId;
-
 
50566
        _fieldName = fieldName;
-
 
50567
      }
-
 
50568
 
-
 
50569
      public short getThriftFieldId() {
-
 
50570
        return _thriftId;
-
 
50571
      }
-
 
50572
 
-
 
50573
      public String getFieldName() {
-
 
50574
        return _fieldName;
-
 
50575
      }
-
 
50576
    }
-
 
50577
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
50578
    }});
-
 
50579
 
-
 
50580
    static {
-
 
50581
      FieldMetaData.addStructMetaDataMap(putUserNote_result.class, metaDataMap);
-
 
50582
    }
-
 
50583
 
-
 
50584
    public putUserNote_result() {
-
 
50585
    }
-
 
50586
 
-
 
50587
    /**
-
 
50588
     * Performs a deep copy on <i>other</i>.
-
 
50589
     */
-
 
50590
    public putUserNote_result(putUserNote_result other) {
-
 
50591
    }
-
 
50592
 
-
 
50593
    public putUserNote_result deepCopy() {
-
 
50594
      return new putUserNote_result(this);
-
 
50595
    }
-
 
50596
 
-
 
50597
    @Deprecated
-
 
50598
    public putUserNote_result clone() {
-
 
50599
      return new putUserNote_result(this);
-
 
50600
    }
-
 
50601
 
-
 
50602
    public void setFieldValue(_Fields field, Object value) {
-
 
50603
      switch (field) {
-
 
50604
      }
-
 
50605
    }
-
 
50606
 
-
 
50607
    public void setFieldValue(int fieldID, Object value) {
-
 
50608
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
50609
    }
-
 
50610
 
-
 
50611
    public Object getFieldValue(_Fields field) {
-
 
50612
      switch (field) {
-
 
50613
      }
-
 
50614
      throw new IllegalStateException();
-
 
50615
    }
-
 
50616
 
-
 
50617
    public Object getFieldValue(int fieldId) {
-
 
50618
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
50619
    }
-
 
50620
 
-
 
50621
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
50622
    public boolean isSet(_Fields field) {
-
 
50623
      switch (field) {
-
 
50624
      }
-
 
50625
      throw new IllegalStateException();
-
 
50626
    }
-
 
50627
 
-
 
50628
    public boolean isSet(int fieldID) {
-
 
50629
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
50630
    }
-
 
50631
 
-
 
50632
    @Override
-
 
50633
    public boolean equals(Object that) {
-
 
50634
      if (that == null)
-
 
50635
        return false;
-
 
50636
      if (that instanceof putUserNote_result)
-
 
50637
        return this.equals((putUserNote_result)that);
-
 
50638
      return false;
-
 
50639
    }
-
 
50640
 
-
 
50641
    public boolean equals(putUserNote_result that) {
-
 
50642
      if (that == null)
-
 
50643
        return false;
-
 
50644
 
-
 
50645
      return true;
-
 
50646
    }
-
 
50647
 
-
 
50648
    @Override
-
 
50649
    public int hashCode() {
-
 
50650
      return 0;
-
 
50651
    }
-
 
50652
 
-
 
50653
    public int compareTo(putUserNote_result other) {
-
 
50654
      if (!getClass().equals(other.getClass())) {
-
 
50655
        return getClass().getName().compareTo(other.getClass().getName());
-
 
50656
      }
-
 
50657
 
-
 
50658
      int lastComparison = 0;
-
 
50659
      putUserNote_result typedOther = (putUserNote_result)other;
-
 
50660
 
-
 
50661
      return 0;
-
 
50662
    }
-
 
50663
 
-
 
50664
    public void read(TProtocol iprot) throws TException {
-
 
50665
      TField field;
-
 
50666
      iprot.readStructBegin();
-
 
50667
      while (true)
-
 
50668
      {
-
 
50669
        field = iprot.readFieldBegin();
-
 
50670
        if (field.type == TType.STOP) { 
-
 
50671
          break;
-
 
50672
        }
-
 
50673
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
50674
        if (fieldId == null) {
-
 
50675
          TProtocolUtil.skip(iprot, field.type);
-
 
50676
        } else {
-
 
50677
          switch (fieldId) {
-
 
50678
          }
-
 
50679
          iprot.readFieldEnd();
-
 
50680
        }
-
 
50681
      }
-
 
50682
      iprot.readStructEnd();
-
 
50683
      validate();
-
 
50684
    }
-
 
50685
 
-
 
50686
    public void write(TProtocol oprot) throws TException {
-
 
50687
      oprot.writeStructBegin(STRUCT_DESC);
-
 
50688
 
-
 
50689
      oprot.writeFieldStop();
-
 
50690
      oprot.writeStructEnd();
-
 
50691
    }
-
 
50692
 
-
 
50693
    @Override
-
 
50694
    public String toString() {
-
 
50695
      StringBuilder sb = new StringBuilder("putUserNote_result(");
-
 
50696
      boolean first = true;
-
 
50697
 
-
 
50698
      sb.append(")");
-
 
50699
      return sb.toString();
-
 
50700
    }
-
 
50701
 
-
 
50702
    public void validate() throws TException {
-
 
50703
      // check for required fields
-
 
50704
    }
-
 
50705
 
-
 
50706
  }
-
 
50707
 
-
 
50708
  public static class getUserNotes_args implements TBase<getUserNotes_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUserNotes_args>   {
-
 
50709
    private static final TStruct STRUCT_DESC = new TStruct("getUserNotes_args");
-
 
50710
 
-
 
50711
    private static final TField USER_ID_FIELD_DESC = new TField("user_id", TType.I64, (short)1);
-
 
50712
    private static final TField ENTITY_ID_FIELD_DESC = new TField("entity_id", TType.I64, (short)2);
-
 
50713
 
-
 
50714
    private long user_id;
-
 
50715
    private long entity_id;
-
 
50716
 
-
 
50717
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
50718
    public enum _Fields implements TFieldIdEnum {
-
 
50719
      USER_ID((short)1, "user_id"),
-
 
50720
      ENTITY_ID((short)2, "entity_id");
-
 
50721
 
-
 
50722
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
50723
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
50724
 
-
 
50725
      static {
-
 
50726
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
50727
          byId.put((int)field._thriftId, field);
-
 
50728
          byName.put(field.getFieldName(), field);
-
 
50729
        }
-
 
50730
      }
-
 
50731
 
-
 
50732
      /**
-
 
50733
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
50734
       */
-
 
50735
      public static _Fields findByThriftId(int fieldId) {
-
 
50736
        return byId.get(fieldId);
-
 
50737
      }
-
 
50738
 
-
 
50739
      /**
-
 
50740
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
50741
       * if it is not found.
-
 
50742
       */
-
 
50743
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
50744
        _Fields fields = findByThriftId(fieldId);
-
 
50745
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
50746
        return fields;
-
 
50747
      }
-
 
50748
 
-
 
50749
      /**
-
 
50750
       * Find the _Fields constant that matches name, or null if its not found.
-
 
50751
       */
-
 
50752
      public static _Fields findByName(String name) {
-
 
50753
        return byName.get(name);
-
 
50754
      }
-
 
50755
 
-
 
50756
      private final short _thriftId;
-
 
50757
      private final String _fieldName;
-
 
50758
 
-
 
50759
      _Fields(short thriftId, String fieldName) {
-
 
50760
        _thriftId = thriftId;
-
 
50761
        _fieldName = fieldName;
-
 
50762
      }
-
 
50763
 
-
 
50764
      public short getThriftFieldId() {
-
 
50765
        return _thriftId;
-
 
50766
      }
-
 
50767
 
-
 
50768
      public String getFieldName() {
-
 
50769
        return _fieldName;
-
 
50770
      }
-
 
50771
    }
-
 
50772
 
-
 
50773
    // isset id assignments
-
 
50774
    private static final int __USER_ID_ISSET_ID = 0;
-
 
50775
    private static final int __ENTITY_ID_ISSET_ID = 1;
-
 
50776
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
50777
 
-
 
50778
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
50779
      put(_Fields.USER_ID, new FieldMetaData("user_id", TFieldRequirementType.DEFAULT, 
-
 
50780
          new FieldValueMetaData(TType.I64)));
-
 
50781
      put(_Fields.ENTITY_ID, new FieldMetaData("entity_id", TFieldRequirementType.DEFAULT, 
-
 
50782
          new FieldValueMetaData(TType.I64)));
-
 
50783
    }});
-
 
50784
 
-
 
50785
    static {
-
 
50786
      FieldMetaData.addStructMetaDataMap(getUserNotes_args.class, metaDataMap);
-
 
50787
    }
-
 
50788
 
-
 
50789
    public getUserNotes_args() {
-
 
50790
    }
-
 
50791
 
-
 
50792
    public getUserNotes_args(
-
 
50793
      long user_id,
-
 
50794
      long entity_id)
-
 
50795
    {
-
 
50796
      this();
-
 
50797
      this.user_id = user_id;
-
 
50798
      setUser_idIsSet(true);
-
 
50799
      this.entity_id = entity_id;
-
 
50800
      setEntity_idIsSet(true);
-
 
50801
    }
-
 
50802
 
-
 
50803
    /**
-
 
50804
     * Performs a deep copy on <i>other</i>.
-
 
50805
     */
-
 
50806
    public getUserNotes_args(getUserNotes_args other) {
-
 
50807
      __isset_bit_vector.clear();
-
 
50808
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
50809
      this.user_id = other.user_id;
-
 
50810
      this.entity_id = other.entity_id;
-
 
50811
    }
-
 
50812
 
-
 
50813
    public getUserNotes_args deepCopy() {
-
 
50814
      return new getUserNotes_args(this);
-
 
50815
    }
-
 
50816
 
-
 
50817
    @Deprecated
-
 
50818
    public getUserNotes_args clone() {
-
 
50819
      return new getUserNotes_args(this);
-
 
50820
    }
-
 
50821
 
-
 
50822
    public long getUser_id() {
-
 
50823
      return this.user_id;
-
 
50824
    }
-
 
50825
 
-
 
50826
    public getUserNotes_args setUser_id(long user_id) {
-
 
50827
      this.user_id = user_id;
-
 
50828
      setUser_idIsSet(true);
-
 
50829
      return this;
-
 
50830
    }
-
 
50831
 
-
 
50832
    public void unsetUser_id() {
-
 
50833
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
-
 
50834
    }
-
 
50835
 
-
 
50836
    /** Returns true if field user_id is set (has been asigned a value) and false otherwise */
-
 
50837
    public boolean isSetUser_id() {
-
 
50838
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
-
 
50839
    }
-
 
50840
 
-
 
50841
    public void setUser_idIsSet(boolean value) {
-
 
50842
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
-
 
50843
    }
-
 
50844
 
-
 
50845
    public long getEntity_id() {
-
 
50846
      return this.entity_id;
-
 
50847
    }
-
 
50848
 
-
 
50849
    public getUserNotes_args setEntity_id(long entity_id) {
-
 
50850
      this.entity_id = entity_id;
-
 
50851
      setEntity_idIsSet(true);
-
 
50852
      return this;
-
 
50853
    }
-
 
50854
 
-
 
50855
    public void unsetEntity_id() {
-
 
50856
      __isset_bit_vector.clear(__ENTITY_ID_ISSET_ID);
-
 
50857
    }
-
 
50858
 
-
 
50859
    /** Returns true if field entity_id is set (has been asigned a value) and false otherwise */
-
 
50860
    public boolean isSetEntity_id() {
-
 
50861
      return __isset_bit_vector.get(__ENTITY_ID_ISSET_ID);
-
 
50862
    }
-
 
50863
 
-
 
50864
    public void setEntity_idIsSet(boolean value) {
-
 
50865
      __isset_bit_vector.set(__ENTITY_ID_ISSET_ID, value);
-
 
50866
    }
-
 
50867
 
-
 
50868
    public void setFieldValue(_Fields field, Object value) {
-
 
50869
      switch (field) {
-
 
50870
      case USER_ID:
-
 
50871
        if (value == null) {
-
 
50872
          unsetUser_id();
-
 
50873
        } else {
-
 
50874
          setUser_id((Long)value);
-
 
50875
        }
-
 
50876
        break;
-
 
50877
 
-
 
50878
      case ENTITY_ID:
-
 
50879
        if (value == null) {
-
 
50880
          unsetEntity_id();
-
 
50881
        } else {
-
 
50882
          setEntity_id((Long)value);
-
 
50883
        }
-
 
50884
        break;
-
 
50885
 
-
 
50886
      }
-
 
50887
    }
-
 
50888
 
-
 
50889
    public void setFieldValue(int fieldID, Object value) {
-
 
50890
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
50891
    }
-
 
50892
 
-
 
50893
    public Object getFieldValue(_Fields field) {
-
 
50894
      switch (field) {
-
 
50895
      case USER_ID:
-
 
50896
        return new Long(getUser_id());
-
 
50897
 
-
 
50898
      case ENTITY_ID:
-
 
50899
        return new Long(getEntity_id());
-
 
50900
 
-
 
50901
      }
-
 
50902
      throw new IllegalStateException();
-
 
50903
    }
-
 
50904
 
-
 
50905
    public Object getFieldValue(int fieldId) {
-
 
50906
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
50907
    }
-
 
50908
 
-
 
50909
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
50910
    public boolean isSet(_Fields field) {
-
 
50911
      switch (field) {
-
 
50912
      case USER_ID:
-
 
50913
        return isSetUser_id();
-
 
50914
      case ENTITY_ID:
-
 
50915
        return isSetEntity_id();
-
 
50916
      }
-
 
50917
      throw new IllegalStateException();
-
 
50918
    }
-
 
50919
 
-
 
50920
    public boolean isSet(int fieldID) {
-
 
50921
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
50922
    }
-
 
50923
 
-
 
50924
    @Override
-
 
50925
    public boolean equals(Object that) {
-
 
50926
      if (that == null)
-
 
50927
        return false;
-
 
50928
      if (that instanceof getUserNotes_args)
-
 
50929
        return this.equals((getUserNotes_args)that);
-
 
50930
      return false;
-
 
50931
    }
-
 
50932
 
-
 
50933
    public boolean equals(getUserNotes_args that) {
-
 
50934
      if (that == null)
-
 
50935
        return false;
-
 
50936
 
-
 
50937
      boolean this_present_user_id = true;
-
 
50938
      boolean that_present_user_id = true;
-
 
50939
      if (this_present_user_id || that_present_user_id) {
-
 
50940
        if (!(this_present_user_id && that_present_user_id))
-
 
50941
          return false;
-
 
50942
        if (this.user_id != that.user_id)
-
 
50943
          return false;
-
 
50944
      }
-
 
50945
 
-
 
50946
      boolean this_present_entity_id = true;
-
 
50947
      boolean that_present_entity_id = true;
-
 
50948
      if (this_present_entity_id || that_present_entity_id) {
-
 
50949
        if (!(this_present_entity_id && that_present_entity_id))
-
 
50950
          return false;
-
 
50951
        if (this.entity_id != that.entity_id)
-
 
50952
          return false;
-
 
50953
      }
-
 
50954
 
-
 
50955
      return true;
-
 
50956
    }
-
 
50957
 
-
 
50958
    @Override
-
 
50959
    public int hashCode() {
-
 
50960
      return 0;
-
 
50961
    }
-
 
50962
 
-
 
50963
    public int compareTo(getUserNotes_args other) {
-
 
50964
      if (!getClass().equals(other.getClass())) {
-
 
50965
        return getClass().getName().compareTo(other.getClass().getName());
-
 
50966
      }
-
 
50967
 
-
 
50968
      int lastComparison = 0;
-
 
50969
      getUserNotes_args typedOther = (getUserNotes_args)other;
-
 
50970
 
-
 
50971
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(isSetUser_id());
-
 
50972
      if (lastComparison != 0) {
-
 
50973
        return lastComparison;
-
 
50974
      }
-
 
50975
      lastComparison = TBaseHelper.compareTo(user_id, typedOther.user_id);
-
 
50976
      if (lastComparison != 0) {
-
 
50977
        return lastComparison;
-
 
50978
      }
-
 
50979
      lastComparison = Boolean.valueOf(isSetEntity_id()).compareTo(isSetEntity_id());
-
 
50980
      if (lastComparison != 0) {
-
 
50981
        return lastComparison;
-
 
50982
      }
-
 
50983
      lastComparison = TBaseHelper.compareTo(entity_id, typedOther.entity_id);
-
 
50984
      if (lastComparison != 0) {
-
 
50985
        return lastComparison;
-
 
50986
      }
-
 
50987
      return 0;
-
 
50988
    }
-
 
50989
 
-
 
50990
    public void read(TProtocol iprot) throws TException {
-
 
50991
      TField field;
-
 
50992
      iprot.readStructBegin();
-
 
50993
      while (true)
-
 
50994
      {
-
 
50995
        field = iprot.readFieldBegin();
-
 
50996
        if (field.type == TType.STOP) { 
-
 
50997
          break;
-
 
50998
        }
-
 
50999
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
51000
        if (fieldId == null) {
-
 
51001
          TProtocolUtil.skip(iprot, field.type);
-
 
51002
        } else {
-
 
51003
          switch (fieldId) {
-
 
51004
            case USER_ID:
-
 
51005
              if (field.type == TType.I64) {
-
 
51006
                this.user_id = iprot.readI64();
-
 
51007
                setUser_idIsSet(true);
-
 
51008
              } else { 
-
 
51009
                TProtocolUtil.skip(iprot, field.type);
-
 
51010
              }
-
 
51011
              break;
-
 
51012
            case ENTITY_ID:
-
 
51013
              if (field.type == TType.I64) {
-
 
51014
                this.entity_id = iprot.readI64();
-
 
51015
                setEntity_idIsSet(true);
-
 
51016
              } else { 
-
 
51017
                TProtocolUtil.skip(iprot, field.type);
-
 
51018
              }
-
 
51019
              break;
-
 
51020
          }
-
 
51021
          iprot.readFieldEnd();
-
 
51022
        }
-
 
51023
      }
-
 
51024
      iprot.readStructEnd();
-
 
51025
      validate();
-
 
51026
    }
-
 
51027
 
-
 
51028
    public void write(TProtocol oprot) throws TException {
-
 
51029
      validate();
-
 
51030
 
-
 
51031
      oprot.writeStructBegin(STRUCT_DESC);
-
 
51032
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
51033
      oprot.writeI64(this.user_id);
-
 
51034
      oprot.writeFieldEnd();
-
 
51035
      oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);
-
 
51036
      oprot.writeI64(this.entity_id);
-
 
51037
      oprot.writeFieldEnd();
-
 
51038
      oprot.writeFieldStop();
-
 
51039
      oprot.writeStructEnd();
-
 
51040
    }
-
 
51041
 
-
 
51042
    @Override
-
 
51043
    public String toString() {
-
 
51044
      StringBuilder sb = new StringBuilder("getUserNotes_args(");
-
 
51045
      boolean first = true;
-
 
51046
 
-
 
51047
      sb.append("user_id:");
-
 
51048
      sb.append(this.user_id);
-
 
51049
      first = false;
-
 
51050
      if (!first) sb.append(", ");
-
 
51051
      sb.append("entity_id:");
-
 
51052
      sb.append(this.entity_id);
-
 
51053
      first = false;
-
 
51054
      sb.append(")");
-
 
51055
      return sb.toString();
-
 
51056
    }
-
 
51057
 
-
 
51058
    public void validate() throws TException {
-
 
51059
      // check for required fields
-
 
51060
    }
-
 
51061
 
-
 
51062
  }
-
 
51063
 
-
 
51064
  public static class getUserNotes_result implements TBase<getUserNotes_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUserNotes_result>   {
-
 
51065
    private static final TStruct STRUCT_DESC = new TStruct("getUserNotes_result");
-
 
51066
 
-
 
51067
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
51068
 
-
 
51069
    private List<UserNote> success;
-
 
51070
 
-
 
51071
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51072
    public enum _Fields implements TFieldIdEnum {
-
 
51073
      SUCCESS((short)0, "success");
-
 
51074
 
-
 
51075
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
51076
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51077
 
-
 
51078
      static {
-
 
51079
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51080
          byId.put((int)field._thriftId, field);
-
 
51081
          byName.put(field.getFieldName(), field);
-
 
51082
        }
-
 
51083
      }
-
 
51084
 
-
 
51085
      /**
-
 
51086
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51087
       */
-
 
51088
      public static _Fields findByThriftId(int fieldId) {
-
 
51089
        return byId.get(fieldId);
-
 
51090
      }
-
 
51091
 
-
 
51092
      /**
-
 
51093
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51094
       * if it is not found.
-
 
51095
       */
-
 
51096
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51097
        _Fields fields = findByThriftId(fieldId);
-
 
51098
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51099
        return fields;
-
 
51100
      }
-
 
51101
 
-
 
51102
      /**
-
 
51103
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51104
       */
-
 
51105
      public static _Fields findByName(String name) {
-
 
51106
        return byName.get(name);
-
 
51107
      }
-
 
51108
 
-
 
51109
      private final short _thriftId;
-
 
51110
      private final String _fieldName;
-
 
51111
 
-
 
51112
      _Fields(short thriftId, String fieldName) {
-
 
51113
        _thriftId = thriftId;
-
 
51114
        _fieldName = fieldName;
-
 
51115
      }
-
 
51116
 
-
 
51117
      public short getThriftFieldId() {
-
 
51118
        return _thriftId;
-
 
51119
      }
-
 
51120
 
-
 
51121
      public String getFieldName() {
-
 
51122
        return _fieldName;
-
 
51123
      }
-
 
51124
    }
-
 
51125
 
-
 
51126
    // isset id assignments
-
 
51127
 
-
 
51128
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
51129
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
51130
          new ListMetaData(TType.LIST, 
-
 
51131
              new StructMetaData(TType.STRUCT, UserNote.class))));
-
 
51132
    }});
-
 
51133
 
-
 
51134
    static {
-
 
51135
      FieldMetaData.addStructMetaDataMap(getUserNotes_result.class, metaDataMap);
-
 
51136
    }
-
 
51137
 
-
 
51138
    public getUserNotes_result() {
-
 
51139
    }
-
 
51140
 
-
 
51141
    public getUserNotes_result(
-
 
51142
      List<UserNote> success)
-
 
51143
    {
-
 
51144
      this();
-
 
51145
      this.success = success;
-
 
51146
    }
-
 
51147
 
-
 
51148
    /**
-
 
51149
     * Performs a deep copy on <i>other</i>.
-
 
51150
     */
-
 
51151
    public getUserNotes_result(getUserNotes_result other) {
-
 
51152
      if (other.isSetSuccess()) {
-
 
51153
        List<UserNote> __this__success = new ArrayList<UserNote>();
-
 
51154
        for (UserNote other_element : other.success) {
-
 
51155
          __this__success.add(new UserNote(other_element));
-
 
51156
        }
-
 
51157
        this.success = __this__success;
-
 
51158
      }
-
 
51159
    }
-
 
51160
 
-
 
51161
    public getUserNotes_result deepCopy() {
-
 
51162
      return new getUserNotes_result(this);
-
 
51163
    }
-
 
51164
 
-
 
51165
    @Deprecated
-
 
51166
    public getUserNotes_result clone() {
-
 
51167
      return new getUserNotes_result(this);
-
 
51168
    }
-
 
51169
 
-
 
51170
    public int getSuccessSize() {
-
 
51171
      return (this.success == null) ? 0 : this.success.size();
-
 
51172
    }
-
 
51173
 
-
 
51174
    public java.util.Iterator<UserNote> getSuccessIterator() {
-
 
51175
      return (this.success == null) ? null : this.success.iterator();
-
 
51176
    }
-
 
51177
 
-
 
51178
    public void addToSuccess(UserNote elem) {
-
 
51179
      if (this.success == null) {
-
 
51180
        this.success = new ArrayList<UserNote>();
-
 
51181
      }
-
 
51182
      this.success.add(elem);
-
 
51183
    }
-
 
51184
 
-
 
51185
    public List<UserNote> getSuccess() {
-
 
51186
      return this.success;
-
 
51187
    }
-
 
51188
 
-
 
51189
    public getUserNotes_result setSuccess(List<UserNote> success) {
-
 
51190
      this.success = success;
-
 
51191
      return this;
-
 
51192
    }
-
 
51193
 
-
 
51194
    public void unsetSuccess() {
-
 
51195
      this.success = null;
-
 
51196
    }
-
 
51197
 
-
 
51198
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
51199
    public boolean isSetSuccess() {
-
 
51200
      return this.success != null;
-
 
51201
    }
-
 
51202
 
-
 
51203
    public void setSuccessIsSet(boolean value) {
-
 
51204
      if (!value) {
-
 
51205
        this.success = null;
-
 
51206
      }
-
 
51207
    }
-
 
51208
 
-
 
51209
    public void setFieldValue(_Fields field, Object value) {
-
 
51210
      switch (field) {
-
 
51211
      case SUCCESS:
-
 
51212
        if (value == null) {
-
 
51213
          unsetSuccess();
-
 
51214
        } else {
-
 
51215
          setSuccess((List<UserNote>)value);
-
 
51216
        }
-
 
51217
        break;
-
 
51218
 
-
 
51219
      }
-
 
51220
    }
-
 
51221
 
-
 
51222
    public void setFieldValue(int fieldID, Object value) {
-
 
51223
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
51224
    }
-
 
51225
 
-
 
51226
    public Object getFieldValue(_Fields field) {
-
 
51227
      switch (field) {
-
 
51228
      case SUCCESS:
-
 
51229
        return getSuccess();
-
 
51230
 
-
 
51231
      }
-
 
51232
      throw new IllegalStateException();
-
 
51233
    }
-
 
51234
 
-
 
51235
    public Object getFieldValue(int fieldId) {
-
 
51236
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
51237
    }
-
 
51238
 
-
 
51239
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
51240
    public boolean isSet(_Fields field) {
-
 
51241
      switch (field) {
-
 
51242
      case SUCCESS:
-
 
51243
        return isSetSuccess();
-
 
51244
      }
-
 
51245
      throw new IllegalStateException();
-
 
51246
    }
-
 
51247
 
-
 
51248
    public boolean isSet(int fieldID) {
-
 
51249
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
51250
    }
-
 
51251
 
-
 
51252
    @Override
-
 
51253
    public boolean equals(Object that) {
-
 
51254
      if (that == null)
-
 
51255
        return false;
-
 
51256
      if (that instanceof getUserNotes_result)
-
 
51257
        return this.equals((getUserNotes_result)that);
-
 
51258
      return false;
-
 
51259
    }
-
 
51260
 
-
 
51261
    public boolean equals(getUserNotes_result that) {
-
 
51262
      if (that == null)
-
 
51263
        return false;
-
 
51264
 
-
 
51265
      boolean this_present_success = true && this.isSetSuccess();
-
 
51266
      boolean that_present_success = true && that.isSetSuccess();
-
 
51267
      if (this_present_success || that_present_success) {
-
 
51268
        if (!(this_present_success && that_present_success))
-
 
51269
          return false;
-
 
51270
        if (!this.success.equals(that.success))
-
 
51271
          return false;
-
 
51272
      }
-
 
51273
 
-
 
51274
      return true;
-
 
51275
    }
-
 
51276
 
-
 
51277
    @Override
-
 
51278
    public int hashCode() {
-
 
51279
      return 0;
-
 
51280
    }
-
 
51281
 
-
 
51282
    public int compareTo(getUserNotes_result other) {
-
 
51283
      if (!getClass().equals(other.getClass())) {
-
 
51284
        return getClass().getName().compareTo(other.getClass().getName());
-
 
51285
      }
-
 
51286
 
-
 
51287
      int lastComparison = 0;
-
 
51288
      getUserNotes_result typedOther = (getUserNotes_result)other;
-
 
51289
 
-
 
51290
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
51291
      if (lastComparison != 0) {
-
 
51292
        return lastComparison;
-
 
51293
      }
-
 
51294
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
51295
      if (lastComparison != 0) {
-
 
51296
        return lastComparison;
-
 
51297
      }
-
 
51298
      return 0;
-
 
51299
    }
-
 
51300
 
-
 
51301
    public void read(TProtocol iprot) throws TException {
-
 
51302
      TField field;
-
 
51303
      iprot.readStructBegin();
-
 
51304
      while (true)
-
 
51305
      {
-
 
51306
        field = iprot.readFieldBegin();
-
 
51307
        if (field.type == TType.STOP) { 
-
 
51308
          break;
-
 
51309
        }
-
 
51310
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
51311
        if (fieldId == null) {
-
 
51312
          TProtocolUtil.skip(iprot, field.type);
-
 
51313
        } else {
-
 
51314
          switch (fieldId) {
-
 
51315
            case SUCCESS:
-
 
51316
              if (field.type == TType.LIST) {
-
 
51317
                {
-
 
51318
                  TList _list73 = iprot.readListBegin();
-
 
51319
                  this.success = new ArrayList<UserNote>(_list73.size);
-
 
51320
                  for (int _i74 = 0; _i74 < _list73.size; ++_i74)
-
 
51321
                  {
-
 
51322
                    UserNote _elem75;
-
 
51323
                    _elem75 = new UserNote();
-
 
51324
                    _elem75.read(iprot);
-
 
51325
                    this.success.add(_elem75);
-
 
51326
                  }
-
 
51327
                  iprot.readListEnd();
-
 
51328
                }
-
 
51329
              } else { 
-
 
51330
                TProtocolUtil.skip(iprot, field.type);
-
 
51331
              }
-
 
51332
              break;
-
 
51333
          }
-
 
51334
          iprot.readFieldEnd();
-
 
51335
        }
-
 
51336
      }
-
 
51337
      iprot.readStructEnd();
-
 
51338
      validate();
-
 
51339
    }
-
 
51340
 
-
 
51341
    public void write(TProtocol oprot) throws TException {
-
 
51342
      oprot.writeStructBegin(STRUCT_DESC);
-
 
51343
 
-
 
51344
      if (this.isSetSuccess()) {
-
 
51345
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
51346
        {
-
 
51347
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
51348
          for (UserNote _iter76 : this.success)
-
 
51349
          {
-
 
51350
            _iter76.write(oprot);
-
 
51351
          }
-
 
51352
          oprot.writeListEnd();
-
 
51353
        }
-
 
51354
        oprot.writeFieldEnd();
-
 
51355
      }
-
 
51356
      oprot.writeFieldStop();
-
 
51357
      oprot.writeStructEnd();
-
 
51358
    }
-
 
51359
 
-
 
51360
    @Override
-
 
51361
    public String toString() {
-
 
51362
      StringBuilder sb = new StringBuilder("getUserNotes_result(");
-
 
51363
      boolean first = true;
-
 
51364
 
-
 
51365
      sb.append("success:");
-
 
51366
      if (this.success == null) {
-
 
51367
        sb.append("null");
49867
      } else {
51368
      } else {
49868
        sb.append(this.success);
51369
        sb.append(this.success);
49869
      }
51370
      }
49870
      first = false;
51371
      first = false;
49871
      sb.append(")");
51372
      sb.append(")");