Subversion Repositories SmartDukaan

Rev

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

Rev 3390 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.crm;
6
package in.shop2020.crm;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class Activity implements TBase<Activity._Fields>, java.io.Serializable, Cloneable, Comparable<Activity> {
23
public class Activity implements org.apache.thrift.TBase<Activity, Activity._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("Activity");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Activity");
28
 
25
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
30
  private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)2);
27
  private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)2);
31
  private static final TField CREATION_TIMESTAMP_FIELD_DESC = new TField("creationTimestamp", TType.I64, (short)3);
28
  private static final org.apache.thrift.protocol.TField CREATION_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("creationTimestamp", org.apache.thrift.protocol.TType.I64, (short)3);
32
  private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)4);
29
  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)4);
33
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)5);
30
  private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerId", org.apache.thrift.protocol.TType.I64, (short)5);
34
  private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)6);
31
  private static final org.apache.thrift.protocol.TField CREATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("creatorId", org.apache.thrift.protocol.TType.I64, (short)6);
35
  private static final TField USER_EMAIL_ID_FIELD_DESC = new TField("userEmailId", TType.I64, (short)7);
32
  private static final org.apache.thrift.protocol.TField USER_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userEmailId", org.apache.thrift.protocol.TType.I64, (short)7);
36
  private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)8);
33
  private static final org.apache.thrift.protocol.TField TICKET_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketId", org.apache.thrift.protocol.TType.I64, (short)8);
37
  private static final TField TICKET_PRIORITY_FIELD_DESC = new TField("ticketPriority", TType.I32, (short)9);
34
  private static final org.apache.thrift.protocol.TField TICKET_PRIORITY_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketPriority", org.apache.thrift.protocol.TType.I32, (short)9);
38
  private static final TField TICKET_ASSIGNEE_ID_FIELD_DESC = new TField("ticketAssigneeId", TType.I64, (short)10);
35
  private static final org.apache.thrift.protocol.TField TICKET_ASSIGNEE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketAssigneeId", org.apache.thrift.protocol.TType.I64, (short)10);
39
  private static final TField TICKET_STATUS_FIELD_DESC = new TField("ticketStatus", TType.I32, (short)11);
36
  private static final org.apache.thrift.protocol.TField TICKET_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketStatus", org.apache.thrift.protocol.TType.I32, (short)11);
40
  private static final TField TICKET_CATEGORY_FIELD_DESC = new TField("ticketCategory", TType.I32, (short)12);
37
  private static final org.apache.thrift.protocol.TField TICKET_CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketCategory", org.apache.thrift.protocol.TType.I32, (short)12);
41
  private static final TField TICKET_DESCRIPTION_FIELD_DESC = new TField("ticketDescription", TType.STRING, (short)13);
38
  private static final org.apache.thrift.protocol.TField TICKET_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketDescription", org.apache.thrift.protocol.TType.STRING, (short)13);
42
  private static final TField IS_READ_FIELD_DESC = new TField("isRead", TType.BOOL, (short)14);
39
  private static final org.apache.thrift.protocol.TField IS_READ_FIELD_DESC = new org.apache.thrift.protocol.TField("isRead", org.apache.thrift.protocol.TType.BOOL, (short)14);
43
  private static final TField CUSTOMER_MOBILE_NUMBER_FIELD_DESC = new TField("customerMobileNumber", TType.STRING, (short)15);
40
  private static final org.apache.thrift.protocol.TField CUSTOMER_MOBILE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("customerMobileNumber", org.apache.thrift.protocol.TType.STRING, (short)15);
44
  private static final TField CUSTOMER_EMAIL_ID_FIELD_DESC = new TField("customerEmailId", TType.STRING, (short)16);
41
  private static final org.apache.thrift.protocol.TField CUSTOMER_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerEmailId", org.apache.thrift.protocol.TType.STRING, (short)16);
45
  private static final TField CUSTOMER_NAME_FIELD_DESC = new TField("customerName", TType.STRING, (short)17);
42
  private static final org.apache.thrift.protocol.TField CUSTOMER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("customerName", org.apache.thrift.protocol.TType.STRING, (short)17);
46
  private static final TField CREATOR_FIELD_DESC = new TField("creator", TType.STRUCT, (short)18);
43
  private static final org.apache.thrift.protocol.TField CREATOR_FIELD_DESC = new org.apache.thrift.protocol.TField("creator", org.apache.thrift.protocol.TType.STRUCT, (short)18);
47
  private static final TField TICKET_ASSIGNEE_FIELD_DESC = new TField("ticketAssignee", TType.STRUCT, (short)19);
44
  private static final org.apache.thrift.protocol.TField TICKET_ASSIGNEE_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketAssignee", org.apache.thrift.protocol.TType.STRUCT, (short)19);
48
 
45
 
49
  private long id;
46
  private long id; // required
50
  private String description;
47
  private String description; // required
51
  private long creationTimestamp;
48
  private long creationTimestamp; // required
52
  private ActivityType type;
49
  private ActivityType type; // required
53
  private long customerId;
50
  private long customerId; // required
54
  private long creatorId;
51
  private long creatorId; // required
55
  private long userEmailId;
52
  private long userEmailId; // required
56
  private long ticketId;
53
  private long ticketId; // required
57
  private TicketPriority ticketPriority;
54
  private TicketPriority ticketPriority; // required
58
  private long ticketAssigneeId;
55
  private long ticketAssigneeId; // required
59
  private TicketStatus ticketStatus;
56
  private TicketStatus ticketStatus; // required
60
  private TicketCategory ticketCategory;
57
  private TicketCategory ticketCategory; // required
61
  private String ticketDescription;
58
  private String ticketDescription; // required
62
  private boolean isRead;
59
  private boolean isRead; // required
63
  private String customerMobileNumber;
60
  private String customerMobileNumber; // required
64
  private String customerEmailId;
61
  private String customerEmailId; // required
65
  private String customerName;
62
  private String customerName; // required
66
  private Agent creator;
63
  private Agent creator; // required
67
  private Agent ticketAssignee;
64
  private Agent ticketAssignee; // required
68
 
65
 
69
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
66
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
70
  public enum _Fields implements TFieldIdEnum {
67
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
71
    ID((short)1, "id"),
68
    ID((short)1, "id"),
72
    DESCRIPTION((short)2, "description"),
69
    DESCRIPTION((short)2, "description"),
73
    CREATION_TIMESTAMP((short)3, "creationTimestamp"),
70
    CREATION_TIMESTAMP((short)3, "creationTimestamp"),
74
    /**
71
    /**
75
     * 
72
     * 
Line 102... Line 99...
102
    CUSTOMER_EMAIL_ID((short)16, "customerEmailId"),
99
    CUSTOMER_EMAIL_ID((short)16, "customerEmailId"),
103
    CUSTOMER_NAME((short)17, "customerName"),
100
    CUSTOMER_NAME((short)17, "customerName"),
104
    CREATOR((short)18, "creator"),
101
    CREATOR((short)18, "creator"),
105
    TICKET_ASSIGNEE((short)19, "ticketAssignee");
102
    TICKET_ASSIGNEE((short)19, "ticketAssignee");
106
 
103
 
107
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
108
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
104
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
109
 
105
 
110
    static {
106
    static {
111
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
107
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
112
        byId.put((int)field._thriftId, field);
-
 
113
        byName.put(field.getFieldName(), field);
108
        byName.put(field.getFieldName(), field);
114
      }
109
      }
115
    }
110
    }
116
 
111
 
117
    /**
112
    /**
118
     * Find the _Fields constant that matches fieldId, or null if its not found.
113
     * Find the _Fields constant that matches fieldId, or null if its not found.
119
     */
114
     */
120
    public static _Fields findByThriftId(int fieldId) {
115
    public static _Fields findByThriftId(int fieldId) {
-
 
116
      switch(fieldId) {
-
 
117
        case 1: // ID
-
 
118
          return ID;
-
 
119
        case 2: // DESCRIPTION
-
 
120
          return DESCRIPTION;
-
 
121
        case 3: // CREATION_TIMESTAMP
-
 
122
          return CREATION_TIMESTAMP;
-
 
123
        case 4: // TYPE
-
 
124
          return TYPE;
-
 
125
        case 5: // CUSTOMER_ID
-
 
126
          return CUSTOMER_ID;
-
 
127
        case 6: // CREATOR_ID
-
 
128
          return CREATOR_ID;
-
 
129
        case 7: // USER_EMAIL_ID
-
 
130
          return USER_EMAIL_ID;
-
 
131
        case 8: // TICKET_ID
-
 
132
          return TICKET_ID;
-
 
133
        case 9: // TICKET_PRIORITY
121
      return byId.get(fieldId);
134
          return TICKET_PRIORITY;
-
 
135
        case 10: // TICKET_ASSIGNEE_ID
-
 
136
          return TICKET_ASSIGNEE_ID;
-
 
137
        case 11: // TICKET_STATUS
-
 
138
          return TICKET_STATUS;
-
 
139
        case 12: // TICKET_CATEGORY
-
 
140
          return TICKET_CATEGORY;
-
 
141
        case 13: // TICKET_DESCRIPTION
-
 
142
          return TICKET_DESCRIPTION;
-
 
143
        case 14: // IS_READ
-
 
144
          return IS_READ;
-
 
145
        case 15: // CUSTOMER_MOBILE_NUMBER
-
 
146
          return CUSTOMER_MOBILE_NUMBER;
-
 
147
        case 16: // CUSTOMER_EMAIL_ID
-
 
148
          return CUSTOMER_EMAIL_ID;
-
 
149
        case 17: // CUSTOMER_NAME
-
 
150
          return CUSTOMER_NAME;
-
 
151
        case 18: // CREATOR
-
 
152
          return CREATOR;
-
 
153
        case 19: // TICKET_ASSIGNEE
-
 
154
          return TICKET_ASSIGNEE;
-
 
155
        default:
-
 
156
          return null;
-
 
157
      }
122
    }
158
    }
123
 
159
 
124
    /**
160
    /**
125
     * Find the _Fields constant that matches fieldId, throwing an exception
161
     * Find the _Fields constant that matches fieldId, throwing an exception
126
     * if it is not found.
162
     * if it is not found.
Line 164... Line 200...
164
  private static final int __TICKETID_ISSET_ID = 5;
200
  private static final int __TICKETID_ISSET_ID = 5;
165
  private static final int __TICKETASSIGNEEID_ISSET_ID = 6;
201
  private static final int __TICKETASSIGNEEID_ISSET_ID = 6;
166
  private static final int __ISREAD_ISSET_ID = 7;
202
  private static final int __ISREAD_ISSET_ID = 7;
167
  private BitSet __isset_bit_vector = new BitSet(8);
203
  private BitSet __isset_bit_vector = new BitSet(8);
168
 
204
 
169
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
205
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
170
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
171
        new FieldValueMetaData(TType.I64)));
-
 
172
    put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.OPTIONAL, 
-
 
173
        new FieldValueMetaData(TType.STRING)));
-
 
174
    put(_Fields.CREATION_TIMESTAMP, new FieldMetaData("creationTimestamp", TFieldRequirementType.DEFAULT, 
-
 
175
        new FieldValueMetaData(TType.I64)));
-
 
176
    put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
-
 
177
        new EnumMetaData(TType.ENUM, ActivityType.class)));
-
 
178
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.OPTIONAL, 
-
 
179
        new FieldValueMetaData(TType.I64)));
-
 
180
    put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT, 
-
 
181
        new FieldValueMetaData(TType.I64)));
-
 
182
    put(_Fields.USER_EMAIL_ID, new FieldMetaData("userEmailId", TFieldRequirementType.OPTIONAL, 
-
 
183
        new FieldValueMetaData(TType.I64)));
-
 
184
    put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.OPTIONAL, 
-
 
185
        new FieldValueMetaData(TType.I64)));
-
 
186
    put(_Fields.TICKET_PRIORITY, new FieldMetaData("ticketPriority", TFieldRequirementType.OPTIONAL, 
-
 
187
        new EnumMetaData(TType.ENUM, TicketPriority.class)));
-
 
188
    put(_Fields.TICKET_ASSIGNEE_ID, new FieldMetaData("ticketAssigneeId", TFieldRequirementType.OPTIONAL, 
-
 
189
        new FieldValueMetaData(TType.I64)));
-
 
190
    put(_Fields.TICKET_STATUS, new FieldMetaData("ticketStatus", TFieldRequirementType.OPTIONAL, 
-
 
191
        new EnumMetaData(TType.ENUM, TicketStatus.class)));
-
 
192
    put(_Fields.TICKET_CATEGORY, new FieldMetaData("ticketCategory", TFieldRequirementType.OPTIONAL, 
-
 
193
        new EnumMetaData(TType.ENUM, TicketCategory.class)));
-
 
194
    put(_Fields.TICKET_DESCRIPTION, new FieldMetaData("ticketDescription", TFieldRequirementType.OPTIONAL, 
-
 
195
        new FieldValueMetaData(TType.STRING)));
-
 
196
    put(_Fields.IS_READ, new FieldMetaData("isRead", TFieldRequirementType.OPTIONAL, 
-
 
197
        new FieldValueMetaData(TType.BOOL)));
-
 
198
    put(_Fields.CUSTOMER_MOBILE_NUMBER, new FieldMetaData("customerMobileNumber", TFieldRequirementType.OPTIONAL, 
-
 
199
        new FieldValueMetaData(TType.STRING)));
-
 
200
    put(_Fields.CUSTOMER_EMAIL_ID, new FieldMetaData("customerEmailId", TFieldRequirementType.OPTIONAL, 
-
 
201
        new FieldValueMetaData(TType.STRING)));
-
 
202
    put(_Fields.CUSTOMER_NAME, new FieldMetaData("customerName", TFieldRequirementType.OPTIONAL, 
-
 
203
        new FieldValueMetaData(TType.STRING)));
-
 
204
    put(_Fields.CREATOR, new FieldMetaData("creator", TFieldRequirementType.OPTIONAL, 
-
 
205
        new StructMetaData(TType.STRUCT, Agent.class)));
-
 
206
    put(_Fields.TICKET_ASSIGNEE, new FieldMetaData("ticketAssignee", TFieldRequirementType.OPTIONAL, 
-
 
207
        new StructMetaData(TType.STRUCT, Agent.class)));
-
 
208
  }});
-
 
209
 
-
 
210
  static {
206
  static {
-
 
207
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
208
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
209
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
210
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
211
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
212
    tmpMap.put(_Fields.CREATION_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("creationTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
213
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
214
    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
215
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ActivityType.class)));
-
 
216
    tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
217
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
218
    tmpMap.put(_Fields.CREATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creatorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
219
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
220
    tmpMap.put(_Fields.USER_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("userEmailId", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
221
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
222
    tmpMap.put(_Fields.TICKET_ID, new org.apache.thrift.meta_data.FieldMetaData("ticketId", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
223
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
224
    tmpMap.put(_Fields.TICKET_PRIORITY, new org.apache.thrift.meta_data.FieldMetaData("ticketPriority", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
225
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TicketPriority.class)));
-
 
226
    tmpMap.put(_Fields.TICKET_ASSIGNEE_ID, new org.apache.thrift.meta_data.FieldMetaData("ticketAssigneeId", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
227
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
228
    tmpMap.put(_Fields.TICKET_STATUS, new org.apache.thrift.meta_data.FieldMetaData("ticketStatus", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
229
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TicketStatus.class)));
-
 
230
    tmpMap.put(_Fields.TICKET_CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("ticketCategory", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
231
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TicketCategory.class)));
-
 
232
    tmpMap.put(_Fields.TICKET_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("ticketDescription", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
233
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
234
    tmpMap.put(_Fields.IS_READ, new org.apache.thrift.meta_data.FieldMetaData("isRead", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
235
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
236
    tmpMap.put(_Fields.CUSTOMER_MOBILE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("customerMobileNumber", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
237
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
238
    tmpMap.put(_Fields.CUSTOMER_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("customerEmailId", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
239
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
240
    tmpMap.put(_Fields.CUSTOMER_NAME, new org.apache.thrift.meta_data.FieldMetaData("customerName", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
241
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
242
    tmpMap.put(_Fields.CREATOR, new org.apache.thrift.meta_data.FieldMetaData("creator", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
243
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class)));
-
 
244
    tmpMap.put(_Fields.TICKET_ASSIGNEE, new org.apache.thrift.meta_data.FieldMetaData("ticketAssignee", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
245
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class)));
-
 
246
    metaDataMap = Collections.unmodifiableMap(tmpMap);
211
    FieldMetaData.addStructMetaDataMap(Activity.class, metaDataMap);
247
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Activity.class, metaDataMap);
212
  }
248
  }
213
 
249
 
214
  public Activity() {
250
  public Activity() {
215
  }
251
  }
216
 
252
 
Line 281... Line 317...
281
 
317
 
282
  public Activity deepCopy() {
318
  public Activity deepCopy() {
283
    return new Activity(this);
319
    return new Activity(this);
284
  }
320
  }
285
 
321
 
286
  @Deprecated
322
  @Override
287
  public Activity clone() {
323
  public void clear() {
-
 
324
    setIdIsSet(false);
-
 
325
    this.id = 0;
-
 
326
    this.description = null;
-
 
327
    setCreationTimestampIsSet(false);
-
 
328
    this.creationTimestamp = 0;
-
 
329
    this.type = null;
288
    return new Activity(this);
330
    setCustomerIdIsSet(false);
-
 
331
    this.customerId = 0;
-
 
332
    setCreatorIdIsSet(false);
-
 
333
    this.creatorId = 0;
-
 
334
    setUserEmailIdIsSet(false);
-
 
335
    this.userEmailId = 0;
-
 
336
    setTicketIdIsSet(false);
-
 
337
    this.ticketId = 0;
-
 
338
    this.ticketPriority = null;
-
 
339
    setTicketAssigneeIdIsSet(false);
-
 
340
    this.ticketAssigneeId = 0;
-
 
341
    this.ticketStatus = null;
-
 
342
    this.ticketCategory = null;
-
 
343
    this.ticketDescription = null;
-
 
344
    setIsReadIsSet(false);
-
 
345
    this.isRead = false;
-
 
346
    this.customerMobileNumber = null;
-
 
347
    this.customerEmailId = null;
-
 
348
    this.customerName = null;
-
 
349
    this.creator = null;
-
 
350
    this.ticketAssignee = null;
289
  }
351
  }
290
 
352
 
291
  public long getId() {
353
  public long getId() {
292
    return this.id;
354
    return this.id;
293
  }
355
  }
294
 
356
 
295
  public Activity setId(long id) {
357
  public void setId(long id) {
296
    this.id = id;
358
    this.id = id;
297
    setIdIsSet(true);
359
    setIdIsSet(true);
298
    return this;
-
 
299
  }
360
  }
300
 
361
 
301
  public void unsetId() {
362
  public void unsetId() {
302
    __isset_bit_vector.clear(__ID_ISSET_ID);
363
    __isset_bit_vector.clear(__ID_ISSET_ID);
303
  }
364
  }
304
 
365
 
305
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
366
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
306
  public boolean isSetId() {
367
  public boolean isSetId() {
307
    return __isset_bit_vector.get(__ID_ISSET_ID);
368
    return __isset_bit_vector.get(__ID_ISSET_ID);
308
  }
369
  }
309
 
370
 
310
  public void setIdIsSet(boolean value) {
371
  public void setIdIsSet(boolean value) {
Line 313... Line 374...
313
 
374
 
314
  public String getDescription() {
375
  public String getDescription() {
315
    return this.description;
376
    return this.description;
316
  }
377
  }
317
 
378
 
318
  public Activity setDescription(String description) {
379
  public void setDescription(String description) {
319
    this.description = description;
380
    this.description = description;
320
    return this;
-
 
321
  }
381
  }
322
 
382
 
323
  public void unsetDescription() {
383
  public void unsetDescription() {
324
    this.description = null;
384
    this.description = null;
325
  }
385
  }
326
 
386
 
327
  /** Returns true if field description is set (has been asigned a value) and false otherwise */
387
  /** Returns true if field description is set (has been assigned a value) and false otherwise */
328
  public boolean isSetDescription() {
388
  public boolean isSetDescription() {
329
    return this.description != null;
389
    return this.description != null;
330
  }
390
  }
331
 
391
 
332
  public void setDescriptionIsSet(boolean value) {
392
  public void setDescriptionIsSet(boolean value) {
Line 337... Line 397...
337
 
397
 
338
  public long getCreationTimestamp() {
398
  public long getCreationTimestamp() {
339
    return this.creationTimestamp;
399
    return this.creationTimestamp;
340
  }
400
  }
341
 
401
 
342
  public Activity setCreationTimestamp(long creationTimestamp) {
402
  public void setCreationTimestamp(long creationTimestamp) {
343
    this.creationTimestamp = creationTimestamp;
403
    this.creationTimestamp = creationTimestamp;
344
    setCreationTimestampIsSet(true);
404
    setCreationTimestampIsSet(true);
345
    return this;
-
 
346
  }
405
  }
347
 
406
 
348
  public void unsetCreationTimestamp() {
407
  public void unsetCreationTimestamp() {
349
    __isset_bit_vector.clear(__CREATIONTIMESTAMP_ISSET_ID);
408
    __isset_bit_vector.clear(__CREATIONTIMESTAMP_ISSET_ID);
350
  }
409
  }
351
 
410
 
352
  /** Returns true if field creationTimestamp is set (has been asigned a value) and false otherwise */
411
  /** Returns true if field creationTimestamp is set (has been assigned a value) and false otherwise */
353
  public boolean isSetCreationTimestamp() {
412
  public boolean isSetCreationTimestamp() {
354
    return __isset_bit_vector.get(__CREATIONTIMESTAMP_ISSET_ID);
413
    return __isset_bit_vector.get(__CREATIONTIMESTAMP_ISSET_ID);
355
  }
414
  }
356
 
415
 
357
  public void setCreationTimestampIsSet(boolean value) {
416
  public void setCreationTimestampIsSet(boolean value) {
Line 368... Line 427...
368
 
427
 
369
  /**
428
  /**
370
   * 
429
   * 
371
   * @see ActivityType
430
   * @see ActivityType
372
   */
431
   */
373
  public Activity setType(ActivityType type) {
432
  public void setType(ActivityType type) {
374
    this.type = type;
433
    this.type = type;
375
    return this;
-
 
376
  }
434
  }
377
 
435
 
378
  public void unsetType() {
436
  public void unsetType() {
379
    this.type = null;
437
    this.type = null;
380
  }
438
  }
381
 
439
 
382
  /** Returns true if field type is set (has been asigned a value) and false otherwise */
440
  /** Returns true if field type is set (has been assigned a value) and false otherwise */
383
  public boolean isSetType() {
441
  public boolean isSetType() {
384
    return this.type != null;
442
    return this.type != null;
385
  }
443
  }
386
 
444
 
387
  public void setTypeIsSet(boolean value) {
445
  public void setTypeIsSet(boolean value) {
Line 392... Line 450...
392
 
450
 
393
  public long getCustomerId() {
451
  public long getCustomerId() {
394
    return this.customerId;
452
    return this.customerId;
395
  }
453
  }
396
 
454
 
397
  public Activity setCustomerId(long customerId) {
455
  public void setCustomerId(long customerId) {
398
    this.customerId = customerId;
456
    this.customerId = customerId;
399
    setCustomerIdIsSet(true);
457
    setCustomerIdIsSet(true);
400
    return this;
-
 
401
  }
458
  }
402
 
459
 
403
  public void unsetCustomerId() {
460
  public void unsetCustomerId() {
404
    __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
461
    __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
405
  }
462
  }
406
 
463
 
407
  /** Returns true if field customerId is set (has been asigned a value) and false otherwise */
464
  /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
408
  public boolean isSetCustomerId() {
465
  public boolean isSetCustomerId() {
409
    return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
466
    return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
410
  }
467
  }
411
 
468
 
412
  public void setCustomerIdIsSet(boolean value) {
469
  public void setCustomerIdIsSet(boolean value) {
Line 415... Line 472...
415
 
472
 
416
  public long getCreatorId() {
473
  public long getCreatorId() {
417
    return this.creatorId;
474
    return this.creatorId;
418
  }
475
  }
419
 
476
 
420
  public Activity setCreatorId(long creatorId) {
477
  public void setCreatorId(long creatorId) {
421
    this.creatorId = creatorId;
478
    this.creatorId = creatorId;
422
    setCreatorIdIsSet(true);
479
    setCreatorIdIsSet(true);
423
    return this;
-
 
424
  }
480
  }
425
 
481
 
426
  public void unsetCreatorId() {
482
  public void unsetCreatorId() {
427
    __isset_bit_vector.clear(__CREATORID_ISSET_ID);
483
    __isset_bit_vector.clear(__CREATORID_ISSET_ID);
428
  }
484
  }
429
 
485
 
430
  /** Returns true if field creatorId is set (has been asigned a value) and false otherwise */
486
  /** Returns true if field creatorId is set (has been assigned a value) and false otherwise */
431
  public boolean isSetCreatorId() {
487
  public boolean isSetCreatorId() {
432
    return __isset_bit_vector.get(__CREATORID_ISSET_ID);
488
    return __isset_bit_vector.get(__CREATORID_ISSET_ID);
433
  }
489
  }
434
 
490
 
435
  public void setCreatorIdIsSet(boolean value) {
491
  public void setCreatorIdIsSet(boolean value) {
Line 438... Line 494...
438
 
494
 
439
  public long getUserEmailId() {
495
  public long getUserEmailId() {
440
    return this.userEmailId;
496
    return this.userEmailId;
441
  }
497
  }
442
 
498
 
443
  public Activity setUserEmailId(long userEmailId) {
499
  public void setUserEmailId(long userEmailId) {
444
    this.userEmailId = userEmailId;
500
    this.userEmailId = userEmailId;
445
    setUserEmailIdIsSet(true);
501
    setUserEmailIdIsSet(true);
446
    return this;
-
 
447
  }
502
  }
448
 
503
 
449
  public void unsetUserEmailId() {
504
  public void unsetUserEmailId() {
450
    __isset_bit_vector.clear(__USEREMAILID_ISSET_ID);
505
    __isset_bit_vector.clear(__USEREMAILID_ISSET_ID);
451
  }
506
  }
452
 
507
 
453
  /** Returns true if field userEmailId is set (has been asigned a value) and false otherwise */
508
  /** Returns true if field userEmailId is set (has been assigned a value) and false otherwise */
454
  public boolean isSetUserEmailId() {
509
  public boolean isSetUserEmailId() {
455
    return __isset_bit_vector.get(__USEREMAILID_ISSET_ID);
510
    return __isset_bit_vector.get(__USEREMAILID_ISSET_ID);
456
  }
511
  }
457
 
512
 
458
  public void setUserEmailIdIsSet(boolean value) {
513
  public void setUserEmailIdIsSet(boolean value) {
Line 461... Line 516...
461
 
516
 
462
  public long getTicketId() {
517
  public long getTicketId() {
463
    return this.ticketId;
518
    return this.ticketId;
464
  }
519
  }
465
 
520
 
466
  public Activity setTicketId(long ticketId) {
521
  public void setTicketId(long ticketId) {
467
    this.ticketId = ticketId;
522
    this.ticketId = ticketId;
468
    setTicketIdIsSet(true);
523
    setTicketIdIsSet(true);
469
    return this;
-
 
470
  }
524
  }
471
 
525
 
472
  public void unsetTicketId() {
526
  public void unsetTicketId() {
473
    __isset_bit_vector.clear(__TICKETID_ISSET_ID);
527
    __isset_bit_vector.clear(__TICKETID_ISSET_ID);
474
  }
528
  }
475
 
529
 
476
  /** Returns true if field ticketId is set (has been asigned a value) and false otherwise */
530
  /** Returns true if field ticketId is set (has been assigned a value) and false otherwise */
477
  public boolean isSetTicketId() {
531
  public boolean isSetTicketId() {
478
    return __isset_bit_vector.get(__TICKETID_ISSET_ID);
532
    return __isset_bit_vector.get(__TICKETID_ISSET_ID);
479
  }
533
  }
480
 
534
 
481
  public void setTicketIdIsSet(boolean value) {
535
  public void setTicketIdIsSet(boolean value) {
Line 492... Line 546...
492
 
546
 
493
  /**
547
  /**
494
   * 
548
   * 
495
   * @see TicketPriority
549
   * @see TicketPriority
496
   */
550
   */
497
  public Activity setTicketPriority(TicketPriority ticketPriority) {
551
  public void setTicketPriority(TicketPriority ticketPriority) {
498
    this.ticketPriority = ticketPriority;
552
    this.ticketPriority = ticketPriority;
499
    return this;
-
 
500
  }
553
  }
501
 
554
 
502
  public void unsetTicketPriority() {
555
  public void unsetTicketPriority() {
503
    this.ticketPriority = null;
556
    this.ticketPriority = null;
504
  }
557
  }
505
 
558
 
506
  /** Returns true if field ticketPriority is set (has been asigned a value) and false otherwise */
559
  /** Returns true if field ticketPriority is set (has been assigned a value) and false otherwise */
507
  public boolean isSetTicketPriority() {
560
  public boolean isSetTicketPriority() {
508
    return this.ticketPriority != null;
561
    return this.ticketPriority != null;
509
  }
562
  }
510
 
563
 
511
  public void setTicketPriorityIsSet(boolean value) {
564
  public void setTicketPriorityIsSet(boolean value) {
Line 516... Line 569...
516
 
569
 
517
  public long getTicketAssigneeId() {
570
  public long getTicketAssigneeId() {
518
    return this.ticketAssigneeId;
571
    return this.ticketAssigneeId;
519
  }
572
  }
520
 
573
 
521
  public Activity setTicketAssigneeId(long ticketAssigneeId) {
574
  public void setTicketAssigneeId(long ticketAssigneeId) {
522
    this.ticketAssigneeId = ticketAssigneeId;
575
    this.ticketAssigneeId = ticketAssigneeId;
523
    setTicketAssigneeIdIsSet(true);
576
    setTicketAssigneeIdIsSet(true);
524
    return this;
-
 
525
  }
577
  }
526
 
578
 
527
  public void unsetTicketAssigneeId() {
579
  public void unsetTicketAssigneeId() {
528
    __isset_bit_vector.clear(__TICKETASSIGNEEID_ISSET_ID);
580
    __isset_bit_vector.clear(__TICKETASSIGNEEID_ISSET_ID);
529
  }
581
  }
530
 
582
 
531
  /** Returns true if field ticketAssigneeId is set (has been asigned a value) and false otherwise */
583
  /** Returns true if field ticketAssigneeId is set (has been assigned a value) and false otherwise */
532
  public boolean isSetTicketAssigneeId() {
584
  public boolean isSetTicketAssigneeId() {
533
    return __isset_bit_vector.get(__TICKETASSIGNEEID_ISSET_ID);
585
    return __isset_bit_vector.get(__TICKETASSIGNEEID_ISSET_ID);
534
  }
586
  }
535
 
587
 
536
  public void setTicketAssigneeIdIsSet(boolean value) {
588
  public void setTicketAssigneeIdIsSet(boolean value) {
Line 547... Line 599...
547
 
599
 
548
  /**
600
  /**
549
   * 
601
   * 
550
   * @see TicketStatus
602
   * @see TicketStatus
551
   */
603
   */
552
  public Activity setTicketStatus(TicketStatus ticketStatus) {
604
  public void setTicketStatus(TicketStatus ticketStatus) {
553
    this.ticketStatus = ticketStatus;
605
    this.ticketStatus = ticketStatus;
554
    return this;
-
 
555
  }
606
  }
556
 
607
 
557
  public void unsetTicketStatus() {
608
  public void unsetTicketStatus() {
558
    this.ticketStatus = null;
609
    this.ticketStatus = null;
559
  }
610
  }
560
 
611
 
561
  /** Returns true if field ticketStatus is set (has been asigned a value) and false otherwise */
612
  /** Returns true if field ticketStatus is set (has been assigned a value) and false otherwise */
562
  public boolean isSetTicketStatus() {
613
  public boolean isSetTicketStatus() {
563
    return this.ticketStatus != null;
614
    return this.ticketStatus != null;
564
  }
615
  }
565
 
616
 
566
  public void setTicketStatusIsSet(boolean value) {
617
  public void setTicketStatusIsSet(boolean value) {
Line 579... Line 630...
579
 
630
 
580
  /**
631
  /**
581
   * 
632
   * 
582
   * @see TicketCategory
633
   * @see TicketCategory
583
   */
634
   */
584
  public Activity setTicketCategory(TicketCategory ticketCategory) {
635
  public void setTicketCategory(TicketCategory ticketCategory) {
585
    this.ticketCategory = ticketCategory;
636
    this.ticketCategory = ticketCategory;
586
    return this;
-
 
587
  }
637
  }
588
 
638
 
589
  public void unsetTicketCategory() {
639
  public void unsetTicketCategory() {
590
    this.ticketCategory = null;
640
    this.ticketCategory = null;
591
  }
641
  }
592
 
642
 
593
  /** Returns true if field ticketCategory is set (has been asigned a value) and false otherwise */
643
  /** Returns true if field ticketCategory is set (has been assigned a value) and false otherwise */
594
  public boolean isSetTicketCategory() {
644
  public boolean isSetTicketCategory() {
595
    return this.ticketCategory != null;
645
    return this.ticketCategory != null;
596
  }
646
  }
597
 
647
 
598
  public void setTicketCategoryIsSet(boolean value) {
648
  public void setTicketCategoryIsSet(boolean value) {
Line 603... Line 653...
603
 
653
 
604
  public String getTicketDescription() {
654
  public String getTicketDescription() {
605
    return this.ticketDescription;
655
    return this.ticketDescription;
606
  }
656
  }
607
 
657
 
608
  public Activity setTicketDescription(String ticketDescription) {
658
  public void setTicketDescription(String ticketDescription) {
609
    this.ticketDescription = ticketDescription;
659
    this.ticketDescription = ticketDescription;
610
    return this;
-
 
611
  }
660
  }
612
 
661
 
613
  public void unsetTicketDescription() {
662
  public void unsetTicketDescription() {
614
    this.ticketDescription = null;
663
    this.ticketDescription = null;
615
  }
664
  }
616
 
665
 
617
  /** Returns true if field ticketDescription is set (has been asigned a value) and false otherwise */
666
  /** Returns true if field ticketDescription is set (has been assigned a value) and false otherwise */
618
  public boolean isSetTicketDescription() {
667
  public boolean isSetTicketDescription() {
619
    return this.ticketDescription != null;
668
    return this.ticketDescription != null;
620
  }
669
  }
621
 
670
 
622
  public void setTicketDescriptionIsSet(boolean value) {
671
  public void setTicketDescriptionIsSet(boolean value) {
Line 627... Line 676...
627
 
676
 
628
  public boolean isIsRead() {
677
  public boolean isIsRead() {
629
    return this.isRead;
678
    return this.isRead;
630
  }
679
  }
631
 
680
 
632
  public Activity setIsRead(boolean isRead) {
681
  public void setIsRead(boolean isRead) {
633
    this.isRead = isRead;
682
    this.isRead = isRead;
634
    setIsReadIsSet(true);
683
    setIsReadIsSet(true);
635
    return this;
-
 
636
  }
684
  }
637
 
685
 
638
  public void unsetIsRead() {
686
  public void unsetIsRead() {
639
    __isset_bit_vector.clear(__ISREAD_ISSET_ID);
687
    __isset_bit_vector.clear(__ISREAD_ISSET_ID);
640
  }
688
  }
641
 
689
 
642
  /** Returns true if field isRead is set (has been asigned a value) and false otherwise */
690
  /** Returns true if field isRead is set (has been assigned a value) and false otherwise */
643
  public boolean isSetIsRead() {
691
  public boolean isSetIsRead() {
644
    return __isset_bit_vector.get(__ISREAD_ISSET_ID);
692
    return __isset_bit_vector.get(__ISREAD_ISSET_ID);
645
  }
693
  }
646
 
694
 
647
  public void setIsReadIsSet(boolean value) {
695
  public void setIsReadIsSet(boolean value) {
Line 650... Line 698...
650
 
698
 
651
  public String getCustomerMobileNumber() {
699
  public String getCustomerMobileNumber() {
652
    return this.customerMobileNumber;
700
    return this.customerMobileNumber;
653
  }
701
  }
654
 
702
 
655
  public Activity setCustomerMobileNumber(String customerMobileNumber) {
703
  public void setCustomerMobileNumber(String customerMobileNumber) {
656
    this.customerMobileNumber = customerMobileNumber;
704
    this.customerMobileNumber = customerMobileNumber;
657
    return this;
-
 
658
  }
705
  }
659
 
706
 
660
  public void unsetCustomerMobileNumber() {
707
  public void unsetCustomerMobileNumber() {
661
    this.customerMobileNumber = null;
708
    this.customerMobileNumber = null;
662
  }
709
  }
663
 
710
 
664
  /** Returns true if field customerMobileNumber is set (has been asigned a value) and false otherwise */
711
  /** Returns true if field customerMobileNumber is set (has been assigned a value) and false otherwise */
665
  public boolean isSetCustomerMobileNumber() {
712
  public boolean isSetCustomerMobileNumber() {
666
    return this.customerMobileNumber != null;
713
    return this.customerMobileNumber != null;
667
  }
714
  }
668
 
715
 
669
  public void setCustomerMobileNumberIsSet(boolean value) {
716
  public void setCustomerMobileNumberIsSet(boolean value) {
Line 674... Line 721...
674
 
721
 
675
  public String getCustomerEmailId() {
722
  public String getCustomerEmailId() {
676
    return this.customerEmailId;
723
    return this.customerEmailId;
677
  }
724
  }
678
 
725
 
679
  public Activity setCustomerEmailId(String customerEmailId) {
726
  public void setCustomerEmailId(String customerEmailId) {
680
    this.customerEmailId = customerEmailId;
727
    this.customerEmailId = customerEmailId;
681
    return this;
-
 
682
  }
728
  }
683
 
729
 
684
  public void unsetCustomerEmailId() {
730
  public void unsetCustomerEmailId() {
685
    this.customerEmailId = null;
731
    this.customerEmailId = null;
686
  }
732
  }
687
 
733
 
688
  /** Returns true if field customerEmailId is set (has been asigned a value) and false otherwise */
734
  /** Returns true if field customerEmailId is set (has been assigned a value) and false otherwise */
689
  public boolean isSetCustomerEmailId() {
735
  public boolean isSetCustomerEmailId() {
690
    return this.customerEmailId != null;
736
    return this.customerEmailId != null;
691
  }
737
  }
692
 
738
 
693
  public void setCustomerEmailIdIsSet(boolean value) {
739
  public void setCustomerEmailIdIsSet(boolean value) {
Line 698... Line 744...
698
 
744
 
699
  public String getCustomerName() {
745
  public String getCustomerName() {
700
    return this.customerName;
746
    return this.customerName;
701
  }
747
  }
702
 
748
 
703
  public Activity setCustomerName(String customerName) {
749
  public void setCustomerName(String customerName) {
704
    this.customerName = customerName;
750
    this.customerName = customerName;
705
    return this;
-
 
706
  }
751
  }
707
 
752
 
708
  public void unsetCustomerName() {
753
  public void unsetCustomerName() {
709
    this.customerName = null;
754
    this.customerName = null;
710
  }
755
  }
711
 
756
 
712
  /** Returns true if field customerName is set (has been asigned a value) and false otherwise */
757
  /** Returns true if field customerName is set (has been assigned a value) and false otherwise */
713
  public boolean isSetCustomerName() {
758
  public boolean isSetCustomerName() {
714
    return this.customerName != null;
759
    return this.customerName != null;
715
  }
760
  }
716
 
761
 
717
  public void setCustomerNameIsSet(boolean value) {
762
  public void setCustomerNameIsSet(boolean value) {
Line 722... Line 767...
722
 
767
 
723
  public Agent getCreator() {
768
  public Agent getCreator() {
724
    return this.creator;
769
    return this.creator;
725
  }
770
  }
726
 
771
 
727
  public Activity setCreator(Agent creator) {
772
  public void setCreator(Agent creator) {
728
    this.creator = creator;
773
    this.creator = creator;
729
    return this;
-
 
730
  }
774
  }
731
 
775
 
732
  public void unsetCreator() {
776
  public void unsetCreator() {
733
    this.creator = null;
777
    this.creator = null;
734
  }
778
  }
735
 
779
 
736
  /** Returns true if field creator is set (has been asigned a value) and false otherwise */
780
  /** Returns true if field creator is set (has been assigned a value) and false otherwise */
737
  public boolean isSetCreator() {
781
  public boolean isSetCreator() {
738
    return this.creator != null;
782
    return this.creator != null;
739
  }
783
  }
740
 
784
 
741
  public void setCreatorIsSet(boolean value) {
785
  public void setCreatorIsSet(boolean value) {
Line 746... Line 790...
746
 
790
 
747
  public Agent getTicketAssignee() {
791
  public Agent getTicketAssignee() {
748
    return this.ticketAssignee;
792
    return this.ticketAssignee;
749
  }
793
  }
750
 
794
 
751
  public Activity setTicketAssignee(Agent ticketAssignee) {
795
  public void setTicketAssignee(Agent ticketAssignee) {
752
    this.ticketAssignee = ticketAssignee;
796
    this.ticketAssignee = ticketAssignee;
753
    return this;
-
 
754
  }
797
  }
755
 
798
 
756
  public void unsetTicketAssignee() {
799
  public void unsetTicketAssignee() {
757
    this.ticketAssignee = null;
800
    this.ticketAssignee = null;
758
  }
801
  }
759
 
802
 
760
  /** Returns true if field ticketAssignee is set (has been asigned a value) and false otherwise */
803
  /** Returns true if field ticketAssignee is set (has been assigned a value) and false otherwise */
761
  public boolean isSetTicketAssignee() {
804
  public boolean isSetTicketAssignee() {
762
    return this.ticketAssignee != null;
805
    return this.ticketAssignee != null;
763
  }
806
  }
764
 
807
 
765
  public void setTicketAssigneeIsSet(boolean value) {
808
  public void setTicketAssigneeIsSet(boolean value) {
Line 923... Line 966...
923
      break;
966
      break;
924
 
967
 
925
    }
968
    }
926
  }
969
  }
927
 
970
 
928
  public void setFieldValue(int fieldID, Object value) {
-
 
929
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
930
  }
-
 
931
 
-
 
932
  public Object getFieldValue(_Fields field) {
971
  public Object getFieldValue(_Fields field) {
933
    switch (field) {
972
    switch (field) {
934
    case ID:
973
    case ID:
935
      return new Long(getId());
974
      return Long.valueOf(getId());
936
 
975
 
937
    case DESCRIPTION:
976
    case DESCRIPTION:
938
      return getDescription();
977
      return getDescription();
939
 
978
 
940
    case CREATION_TIMESTAMP:
979
    case CREATION_TIMESTAMP:
941
      return new Long(getCreationTimestamp());
980
      return Long.valueOf(getCreationTimestamp());
942
 
981
 
943
    case TYPE:
982
    case TYPE:
944
      return getType();
983
      return getType();
945
 
984
 
946
    case CUSTOMER_ID:
985
    case CUSTOMER_ID:
947
      return new Long(getCustomerId());
986
      return Long.valueOf(getCustomerId());
948
 
987
 
949
    case CREATOR_ID:
988
    case CREATOR_ID:
950
      return new Long(getCreatorId());
989
      return Long.valueOf(getCreatorId());
951
 
990
 
952
    case USER_EMAIL_ID:
991
    case USER_EMAIL_ID:
953
      return new Long(getUserEmailId());
992
      return Long.valueOf(getUserEmailId());
954
 
993
 
955
    case TICKET_ID:
994
    case TICKET_ID:
956
      return new Long(getTicketId());
995
      return Long.valueOf(getTicketId());
957
 
996
 
958
    case TICKET_PRIORITY:
997
    case TICKET_PRIORITY:
959
      return getTicketPriority();
998
      return getTicketPriority();
960
 
999
 
961
    case TICKET_ASSIGNEE_ID:
1000
    case TICKET_ASSIGNEE_ID:
962
      return new Long(getTicketAssigneeId());
1001
      return Long.valueOf(getTicketAssigneeId());
963
 
1002
 
964
    case TICKET_STATUS:
1003
    case TICKET_STATUS:
965
      return getTicketStatus();
1004
      return getTicketStatus();
966
 
1005
 
967
    case TICKET_CATEGORY:
1006
    case TICKET_CATEGORY:
Line 969... Line 1008...
969
 
1008
 
970
    case TICKET_DESCRIPTION:
1009
    case TICKET_DESCRIPTION:
971
      return getTicketDescription();
1010
      return getTicketDescription();
972
 
1011
 
973
    case IS_READ:
1012
    case IS_READ:
974
      return new Boolean(isIsRead());
1013
      return Boolean.valueOf(isIsRead());
975
 
1014
 
976
    case CUSTOMER_MOBILE_NUMBER:
1015
    case CUSTOMER_MOBILE_NUMBER:
977
      return getCustomerMobileNumber();
1016
      return getCustomerMobileNumber();
978
 
1017
 
979
    case CUSTOMER_EMAIL_ID:
1018
    case CUSTOMER_EMAIL_ID:
Line 990... Line 1029...
990
 
1029
 
991
    }
1030
    }
992
    throw new IllegalStateException();
1031
    throw new IllegalStateException();
993
  }
1032
  }
994
 
1033
 
995
  public Object getFieldValue(int fieldId) {
-
 
996
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
997
  }
-
 
998
 
-
 
999
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1034
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1000
  public boolean isSet(_Fields field) {
1035
  public boolean isSet(_Fields field) {
-
 
1036
    if (field == null) {
-
 
1037
      throw new IllegalArgumentException();
-
 
1038
    }
-
 
1039
 
1001
    switch (field) {
1040
    switch (field) {
1002
    case ID:
1041
    case ID:
1003
      return isSetId();
1042
      return isSetId();
1004
    case DESCRIPTION:
1043
    case DESCRIPTION:
1005
      return isSetDescription();
1044
      return isSetDescription();
Line 1039... Line 1078...
1039
      return isSetTicketAssignee();
1078
      return isSetTicketAssignee();
1040
    }
1079
    }
1041
    throw new IllegalStateException();
1080
    throw new IllegalStateException();
1042
  }
1081
  }
1043
 
1082
 
1044
  public boolean isSet(int fieldID) {
-
 
1045
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1046
  }
-
 
1047
 
-
 
1048
  @Override
1083
  @Override
1049
  public boolean equals(Object that) {
1084
  public boolean equals(Object that) {
1050
    if (that == null)
1085
    if (that == null)
1051
      return false;
1086
      return false;
1052
    if (that instanceof Activity)
1087
    if (that instanceof Activity)
Line 1243... Line 1278...
1243
    }
1278
    }
1244
 
1279
 
1245
    int lastComparison = 0;
1280
    int lastComparison = 0;
1246
    Activity typedOther = (Activity)other;
1281
    Activity typedOther = (Activity)other;
1247
 
1282
 
1248
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
1283
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1249
    if (lastComparison != 0) {
1284
    if (lastComparison != 0) {
1250
      return lastComparison;
1285
      return lastComparison;
1251
    }
1286
    }
-
 
1287
    if (isSetId()) {
1252
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
1288
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1253
    if (lastComparison != 0) {
1289
      if (lastComparison != 0) {
1254
      return lastComparison;
1290
        return lastComparison;
-
 
1291
      }
1255
    }
1292
    }
1256
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());
1293
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
1257
    if (lastComparison != 0) {
1294
    if (lastComparison != 0) {
1258
      return lastComparison;
1295
      return lastComparison;
1259
    }
1296
    }
-
 
1297
    if (isSetDescription()) {
1260
    lastComparison = TBaseHelper.compareTo(description, typedOther.description);
1298
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
1261
    if (lastComparison != 0) {
1299
      if (lastComparison != 0) {
1262
      return lastComparison;
1300
        return lastComparison;
-
 
1301
      }
1263
    }
1302
    }
1264
    lastComparison = Boolean.valueOf(isSetCreationTimestamp()).compareTo(isSetCreationTimestamp());
1303
    lastComparison = Boolean.valueOf(isSetCreationTimestamp()).compareTo(typedOther.isSetCreationTimestamp());
1265
    if (lastComparison != 0) {
1304
    if (lastComparison != 0) {
1266
      return lastComparison;
1305
      return lastComparison;
1267
    }
1306
    }
-
 
1307
    if (isSetCreationTimestamp()) {
1268
    lastComparison = TBaseHelper.compareTo(creationTimestamp, typedOther.creationTimestamp);
1308
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creationTimestamp, typedOther.creationTimestamp);
1269
    if (lastComparison != 0) {
1309
      if (lastComparison != 0) {
1270
      return lastComparison;
1310
        return lastComparison;
-
 
1311
      }
1271
    }
1312
    }
1272
    lastComparison = Boolean.valueOf(isSetType()).compareTo(isSetType());
1313
    lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
1273
    if (lastComparison != 0) {
1314
    if (lastComparison != 0) {
1274
      return lastComparison;
1315
      return lastComparison;
1275
    }
1316
    }
-
 
1317
    if (isSetType()) {
1276
    lastComparison = TBaseHelper.compareTo(type, typedOther.type);
1318
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
1277
    if (lastComparison != 0) {
1319
      if (lastComparison != 0) {
1278
      return lastComparison;
1320
        return lastComparison;
-
 
1321
      }
1279
    }
1322
    }
1280
    lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
1323
    lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
1281
    if (lastComparison != 0) {
1324
    if (lastComparison != 0) {
1282
      return lastComparison;
1325
      return lastComparison;
1283
    }
1326
    }
-
 
1327
    if (isSetCustomerId()) {
1284
    lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
1328
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
1285
    if (lastComparison != 0) {
1329
      if (lastComparison != 0) {
1286
      return lastComparison;
1330
        return lastComparison;
-
 
1331
      }
1287
    }
1332
    }
1288
    lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());
1333
    lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(typedOther.isSetCreatorId());
1289
    if (lastComparison != 0) {
1334
    if (lastComparison != 0) {
1290
      return lastComparison;
1335
      return lastComparison;
1291
    }
1336
    }
-
 
1337
    if (isSetCreatorId()) {
1292
    lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
1338
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creatorId, typedOther.creatorId);
1293
    if (lastComparison != 0) {
1339
      if (lastComparison != 0) {
1294
      return lastComparison;
1340
        return lastComparison;
-
 
1341
      }
1295
    }
1342
    }
1296
    lastComparison = Boolean.valueOf(isSetUserEmailId()).compareTo(isSetUserEmailId());
1343
    lastComparison = Boolean.valueOf(isSetUserEmailId()).compareTo(typedOther.isSetUserEmailId());
1297
    if (lastComparison != 0) {
1344
    if (lastComparison != 0) {
1298
      return lastComparison;
1345
      return lastComparison;
1299
    }
1346
    }
-
 
1347
    if (isSetUserEmailId()) {
1300
    lastComparison = TBaseHelper.compareTo(userEmailId, typedOther.userEmailId);
1348
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userEmailId, typedOther.userEmailId);
1301
    if (lastComparison != 0) {
1349
      if (lastComparison != 0) {
1302
      return lastComparison;
1350
        return lastComparison;
-
 
1351
      }
1303
    }
1352
    }
1304
    lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());
1353
    lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(typedOther.isSetTicketId());
1305
    if (lastComparison != 0) {
1354
    if (lastComparison != 0) {
1306
      return lastComparison;
1355
      return lastComparison;
1307
    }
1356
    }
-
 
1357
    if (isSetTicketId()) {
1308
    lastComparison = TBaseHelper.compareTo(ticketId, typedOther.ticketId);
1358
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketId, typedOther.ticketId);
1309
    if (lastComparison != 0) {
1359
      if (lastComparison != 0) {
1310
      return lastComparison;
1360
        return lastComparison;
-
 
1361
      }
1311
    }
1362
    }
1312
    lastComparison = Boolean.valueOf(isSetTicketPriority()).compareTo(isSetTicketPriority());
1363
    lastComparison = Boolean.valueOf(isSetTicketPriority()).compareTo(typedOther.isSetTicketPriority());
1313
    if (lastComparison != 0) {
1364
    if (lastComparison != 0) {
1314
      return lastComparison;
1365
      return lastComparison;
1315
    }
1366
    }
-
 
1367
    if (isSetTicketPriority()) {
1316
    lastComparison = TBaseHelper.compareTo(ticketPriority, typedOther.ticketPriority);
1368
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketPriority, typedOther.ticketPriority);
1317
    if (lastComparison != 0) {
1369
      if (lastComparison != 0) {
1318
      return lastComparison;
1370
        return lastComparison;
-
 
1371
      }
1319
    }
1372
    }
1320
    lastComparison = Boolean.valueOf(isSetTicketAssigneeId()).compareTo(isSetTicketAssigneeId());
1373
    lastComparison = Boolean.valueOf(isSetTicketAssigneeId()).compareTo(typedOther.isSetTicketAssigneeId());
1321
    if (lastComparison != 0) {
1374
    if (lastComparison != 0) {
1322
      return lastComparison;
1375
      return lastComparison;
1323
    }
1376
    }
-
 
1377
    if (isSetTicketAssigneeId()) {
1324
    lastComparison = TBaseHelper.compareTo(ticketAssigneeId, typedOther.ticketAssigneeId);
1378
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketAssigneeId, typedOther.ticketAssigneeId);
1325
    if (lastComparison != 0) {
1379
      if (lastComparison != 0) {
1326
      return lastComparison;
1380
        return lastComparison;
-
 
1381
      }
1327
    }
1382
    }
1328
    lastComparison = Boolean.valueOf(isSetTicketStatus()).compareTo(isSetTicketStatus());
1383
    lastComparison = Boolean.valueOf(isSetTicketStatus()).compareTo(typedOther.isSetTicketStatus());
1329
    if (lastComparison != 0) {
1384
    if (lastComparison != 0) {
1330
      return lastComparison;
1385
      return lastComparison;
1331
    }
1386
    }
-
 
1387
    if (isSetTicketStatus()) {
1332
    lastComparison = TBaseHelper.compareTo(ticketStatus, typedOther.ticketStatus);
1388
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketStatus, typedOther.ticketStatus);
1333
    if (lastComparison != 0) {
1389
      if (lastComparison != 0) {
1334
      return lastComparison;
1390
        return lastComparison;
-
 
1391
      }
1335
    }
1392
    }
1336
    lastComparison = Boolean.valueOf(isSetTicketCategory()).compareTo(isSetTicketCategory());
1393
    lastComparison = Boolean.valueOf(isSetTicketCategory()).compareTo(typedOther.isSetTicketCategory());
1337
    if (lastComparison != 0) {
1394
    if (lastComparison != 0) {
1338
      return lastComparison;
1395
      return lastComparison;
1339
    }
1396
    }
-
 
1397
    if (isSetTicketCategory()) {
1340
    lastComparison = TBaseHelper.compareTo(ticketCategory, typedOther.ticketCategory);
1398
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketCategory, typedOther.ticketCategory);
1341
    if (lastComparison != 0) {
1399
      if (lastComparison != 0) {
1342
      return lastComparison;
1400
        return lastComparison;
-
 
1401
      }
1343
    }
1402
    }
1344
    lastComparison = Boolean.valueOf(isSetTicketDescription()).compareTo(isSetTicketDescription());
1403
    lastComparison = Boolean.valueOf(isSetTicketDescription()).compareTo(typedOther.isSetTicketDescription());
1345
    if (lastComparison != 0) {
1404
    if (lastComparison != 0) {
1346
      return lastComparison;
1405
      return lastComparison;
1347
    }
1406
    }
-
 
1407
    if (isSetTicketDescription()) {
1348
    lastComparison = TBaseHelper.compareTo(ticketDescription, typedOther.ticketDescription);
1408
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketDescription, typedOther.ticketDescription);
1349
    if (lastComparison != 0) {
1409
      if (lastComparison != 0) {
1350
      return lastComparison;
1410
        return lastComparison;
-
 
1411
      }
1351
    }
1412
    }
1352
    lastComparison = Boolean.valueOf(isSetIsRead()).compareTo(isSetIsRead());
1413
    lastComparison = Boolean.valueOf(isSetIsRead()).compareTo(typedOther.isSetIsRead());
1353
    if (lastComparison != 0) {
1414
    if (lastComparison != 0) {
1354
      return lastComparison;
1415
      return lastComparison;
1355
    }
1416
    }
-
 
1417
    if (isSetIsRead()) {
1356
    lastComparison = TBaseHelper.compareTo(isRead, typedOther.isRead);
1418
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isRead, typedOther.isRead);
1357
    if (lastComparison != 0) {
1419
      if (lastComparison != 0) {
1358
      return lastComparison;
1420
        return lastComparison;
-
 
1421
      }
1359
    }
1422
    }
1360
    lastComparison = Boolean.valueOf(isSetCustomerMobileNumber()).compareTo(isSetCustomerMobileNumber());
1423
    lastComparison = Boolean.valueOf(isSetCustomerMobileNumber()).compareTo(typedOther.isSetCustomerMobileNumber());
1361
    if (lastComparison != 0) {
1424
    if (lastComparison != 0) {
1362
      return lastComparison;
1425
      return lastComparison;
1363
    }
1426
    }
-
 
1427
    if (isSetCustomerMobileNumber()) {
1364
    lastComparison = TBaseHelper.compareTo(customerMobileNumber, typedOther.customerMobileNumber);
1428
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerMobileNumber, typedOther.customerMobileNumber);
1365
    if (lastComparison != 0) {
1429
      if (lastComparison != 0) {
1366
      return lastComparison;
1430
        return lastComparison;
-
 
1431
      }
1367
    }
1432
    }
1368
    lastComparison = Boolean.valueOf(isSetCustomerEmailId()).compareTo(isSetCustomerEmailId());
1433
    lastComparison = Boolean.valueOf(isSetCustomerEmailId()).compareTo(typedOther.isSetCustomerEmailId());
1369
    if (lastComparison != 0) {
1434
    if (lastComparison != 0) {
1370
      return lastComparison;
1435
      return lastComparison;
1371
    }
1436
    }
-
 
1437
    if (isSetCustomerEmailId()) {
1372
    lastComparison = TBaseHelper.compareTo(customerEmailId, typedOther.customerEmailId);
1438
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerEmailId, typedOther.customerEmailId);
1373
    if (lastComparison != 0) {
1439
      if (lastComparison != 0) {
1374
      return lastComparison;
1440
        return lastComparison;
-
 
1441
      }
1375
    }
1442
    }
1376
    lastComparison = Boolean.valueOf(isSetCustomerName()).compareTo(isSetCustomerName());
1443
    lastComparison = Boolean.valueOf(isSetCustomerName()).compareTo(typedOther.isSetCustomerName());
1377
    if (lastComparison != 0) {
1444
    if (lastComparison != 0) {
1378
      return lastComparison;
1445
      return lastComparison;
1379
    }
1446
    }
-
 
1447
    if (isSetCustomerName()) {
1380
    lastComparison = TBaseHelper.compareTo(customerName, typedOther.customerName);
1448
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerName, typedOther.customerName);
1381
    if (lastComparison != 0) {
1449
      if (lastComparison != 0) {
1382
      return lastComparison;
1450
        return lastComparison;
-
 
1451
      }
1383
    }
1452
    }
1384
    lastComparison = Boolean.valueOf(isSetCreator()).compareTo(isSetCreator());
1453
    lastComparison = Boolean.valueOf(isSetCreator()).compareTo(typedOther.isSetCreator());
1385
    if (lastComparison != 0) {
1454
    if (lastComparison != 0) {
1386
      return lastComparison;
1455
      return lastComparison;
1387
    }
1456
    }
-
 
1457
    if (isSetCreator()) {
1388
    lastComparison = TBaseHelper.compareTo(creator, typedOther.creator);
1458
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creator, typedOther.creator);
1389
    if (lastComparison != 0) {
1459
      if (lastComparison != 0) {
1390
      return lastComparison;
1460
        return lastComparison;
-
 
1461
      }
1391
    }
1462
    }
1392
    lastComparison = Boolean.valueOf(isSetTicketAssignee()).compareTo(isSetTicketAssignee());
1463
    lastComparison = Boolean.valueOf(isSetTicketAssignee()).compareTo(typedOther.isSetTicketAssignee());
1393
    if (lastComparison != 0) {
1464
    if (lastComparison != 0) {
1394
      return lastComparison;
1465
      return lastComparison;
1395
    }
1466
    }
-
 
1467
    if (isSetTicketAssignee()) {
1396
    lastComparison = TBaseHelper.compareTo(ticketAssignee, typedOther.ticketAssignee);
1468
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketAssignee, typedOther.ticketAssignee);
1397
    if (lastComparison != 0) {
1469
      if (lastComparison != 0) {
1398
      return lastComparison;
1470
        return lastComparison;
-
 
1471
      }
1399
    }
1472
    }
1400
    return 0;
1473
    return 0;
1401
  }
1474
  }
1402
 
1475
 
-
 
1476
  public _Fields fieldForId(int fieldId) {
-
 
1477
    return _Fields.findByThriftId(fieldId);
-
 
1478
  }
-
 
1479
 
1403
  public void read(TProtocol iprot) throws TException {
1480
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1404
    TField field;
1481
    org.apache.thrift.protocol.TField field;
1405
    iprot.readStructBegin();
1482
    iprot.readStructBegin();
1406
    while (true)
1483
    while (true)
1407
    {
1484
    {
1408
      field = iprot.readFieldBegin();
1485
      field = iprot.readFieldBegin();
1409
      if (field.type == TType.STOP) { 
1486
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1410
        break;
1487
        break;
1411
      }
1488
      }
1412
      _Fields fieldId = _Fields.findByThriftId(field.id);
1489
      switch (field.id) {
1413
      if (fieldId == null) {
1490
        case 1: // ID
1414
        TProtocolUtil.skip(iprot, field.type);
1491
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1415
      } else {
1492
            this.id = iprot.readI64();
1416
        switch (fieldId) {
1493
            setIdIsSet(true);
1417
          case ID:
1494
          } else { 
1418
            if (field.type == TType.I64) {
1495
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1419
              this.id = iprot.readI64();
1496
          }
1420
              setIdIsSet(true);
1497
          break;
1421
            } else { 
1498
        case 2: // DESCRIPTION
1422
              TProtocolUtil.skip(iprot, field.type);
1499
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1423
            }
1500
            this.description = iprot.readString();
1424
            break;
1501
          } else { 
1425
          case DESCRIPTION:
1502
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1426
            if (field.type == TType.STRING) {
1503
          }
1427
              this.description = iprot.readString();
1504
          break;
1428
            } else { 
1505
        case 3: // CREATION_TIMESTAMP
1429
              TProtocolUtil.skip(iprot, field.type);
1506
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1430
            }
1507
            this.creationTimestamp = iprot.readI64();
1431
            break;
1508
            setCreationTimestampIsSet(true);
1432
          case CREATION_TIMESTAMP:
1509
          } else { 
1433
            if (field.type == TType.I64) {
1510
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1434
              this.creationTimestamp = iprot.readI64();
1511
          }
1435
              setCreationTimestampIsSet(true);
1512
          break;
1436
            } else { 
1513
        case 4: // TYPE
1437
              TProtocolUtil.skip(iprot, field.type);
1514
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1438
            }
1515
            this.type = ActivityType.findByValue(iprot.readI32());
1439
            break;
1516
          } else { 
1440
          case TYPE:
1517
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1441
            if (field.type == TType.I32) {
1518
          }
1442
              this.type = ActivityType.findByValue(iprot.readI32());
1519
          break;
1443
            } else { 
1520
        case 5: // CUSTOMER_ID
1444
              TProtocolUtil.skip(iprot, field.type);
1521
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1445
            }
1522
            this.customerId = iprot.readI64();
1446
            break;
1523
            setCustomerIdIsSet(true);
1447
          case CUSTOMER_ID:
1524
          } else { 
1448
            if (field.type == TType.I64) {
1525
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1449
              this.customerId = iprot.readI64();
1526
          }
1450
              setCustomerIdIsSet(true);
1527
          break;
1451
            } else { 
1528
        case 6: // CREATOR_ID
1452
              TProtocolUtil.skip(iprot, field.type);
1529
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1453
            }
1530
            this.creatorId = iprot.readI64();
1454
            break;
1531
            setCreatorIdIsSet(true);
1455
          case CREATOR_ID:
1532
          } else { 
1456
            if (field.type == TType.I64) {
1533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1457
              this.creatorId = iprot.readI64();
1534
          }
1458
              setCreatorIdIsSet(true);
1535
          break;
1459
            } else { 
1536
        case 7: // USER_EMAIL_ID
1460
              TProtocolUtil.skip(iprot, field.type);
1537
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1461
            }
1538
            this.userEmailId = iprot.readI64();
1462
            break;
1539
            setUserEmailIdIsSet(true);
1463
          case USER_EMAIL_ID:
1540
          } else { 
1464
            if (field.type == TType.I64) {
1541
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1465
              this.userEmailId = iprot.readI64();
1542
          }
1466
              setUserEmailIdIsSet(true);
1543
          break;
1467
            } else { 
1544
        case 8: // TICKET_ID
1468
              TProtocolUtil.skip(iprot, field.type);
1545
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1469
            }
1546
            this.ticketId = iprot.readI64();
1470
            break;
1547
            setTicketIdIsSet(true);
1471
          case TICKET_ID:
1548
          } else { 
1472
            if (field.type == TType.I64) {
1549
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1473
              this.ticketId = iprot.readI64();
1550
          }
1474
              setTicketIdIsSet(true);
1551
          break;
1475
            } else { 
1552
        case 9: // TICKET_PRIORITY
1476
              TProtocolUtil.skip(iprot, field.type);
1553
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1477
            }
1554
            this.ticketPriority = TicketPriority.findByValue(iprot.readI32());
1478
            break;
1555
          } else { 
1479
          case TICKET_PRIORITY:
1556
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1480
            if (field.type == TType.I32) {
1557
          }
1481
              this.ticketPriority = TicketPriority.findByValue(iprot.readI32());
1558
          break;
1482
            } else { 
1559
        case 10: // TICKET_ASSIGNEE_ID
1483
              TProtocolUtil.skip(iprot, field.type);
1560
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1484
            }
1561
            this.ticketAssigneeId = iprot.readI64();
1485
            break;
1562
            setTicketAssigneeIdIsSet(true);
1486
          case TICKET_ASSIGNEE_ID:
1563
          } else { 
1487
            if (field.type == TType.I64) {
1564
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1488
              this.ticketAssigneeId = iprot.readI64();
1565
          }
1489
              setTicketAssigneeIdIsSet(true);
1566
          break;
1490
            } else { 
1567
        case 11: // TICKET_STATUS
1491
              TProtocolUtil.skip(iprot, field.type);
1568
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1492
            }
1569
            this.ticketStatus = TicketStatus.findByValue(iprot.readI32());
1493
            break;
1570
          } else { 
1494
          case TICKET_STATUS:
1571
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1495
            if (field.type == TType.I32) {
1572
          }
1496
              this.ticketStatus = TicketStatus.findByValue(iprot.readI32());
1573
          break;
1497
            } else { 
1574
        case 12: // TICKET_CATEGORY
1498
              TProtocolUtil.skip(iprot, field.type);
1575
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1499
            }
1576
            this.ticketCategory = TicketCategory.findByValue(iprot.readI32());
1500
            break;
1577
          } else { 
1501
          case TICKET_CATEGORY:
1578
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1502
            if (field.type == TType.I32) {
1579
          }
1503
              this.ticketCategory = TicketCategory.findByValue(iprot.readI32());
1580
          break;
1504
            } else { 
1581
        case 13: // TICKET_DESCRIPTION
1505
              TProtocolUtil.skip(iprot, field.type);
1582
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1506
            }
1583
            this.ticketDescription = iprot.readString();
1507
            break;
1584
          } else { 
1508
          case TICKET_DESCRIPTION:
1585
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1509
            if (field.type == TType.STRING) {
1586
          }
1510
              this.ticketDescription = iprot.readString();
1587
          break;
1511
            } else { 
1588
        case 14: // IS_READ
1512
              TProtocolUtil.skip(iprot, field.type);
1589
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1513
            }
1590
            this.isRead = iprot.readBool();
1514
            break;
1591
            setIsReadIsSet(true);
1515
          case IS_READ:
1592
          } else { 
1516
            if (field.type == TType.BOOL) {
1593
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1517
              this.isRead = iprot.readBool();
1594
          }
1518
              setIsReadIsSet(true);
1595
          break;
1519
            } else { 
1596
        case 15: // CUSTOMER_MOBILE_NUMBER
1520
              TProtocolUtil.skip(iprot, field.type);
1597
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1521
            }
1598
            this.customerMobileNumber = iprot.readString();
1522
            break;
1599
          } else { 
1523
          case CUSTOMER_MOBILE_NUMBER:
1600
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1524
            if (field.type == TType.STRING) {
1601
          }
1525
              this.customerMobileNumber = iprot.readString();
1602
          break;
1526
            } else { 
1603
        case 16: // CUSTOMER_EMAIL_ID
1527
              TProtocolUtil.skip(iprot, field.type);
1604
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1528
            }
1605
            this.customerEmailId = iprot.readString();
1529
            break;
1606
          } else { 
1530
          case CUSTOMER_EMAIL_ID:
1607
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1531
            if (field.type == TType.STRING) {
1608
          }
1532
              this.customerEmailId = iprot.readString();
1609
          break;
1533
            } else { 
1610
        case 17: // CUSTOMER_NAME
1534
              TProtocolUtil.skip(iprot, field.type);
1611
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1535
            }
1612
            this.customerName = iprot.readString();
1536
            break;
1613
          } else { 
1537
          case CUSTOMER_NAME:
1614
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1538
            if (field.type == TType.STRING) {
1615
          }
1539
              this.customerName = iprot.readString();
1616
          break;
1540
            } else { 
1617
        case 18: // CREATOR
1541
              TProtocolUtil.skip(iprot, field.type);
1618
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1542
            }
1619
            this.creator = new Agent();
1543
            break;
1620
            this.creator.read(iprot);
1544
          case CREATOR:
1621
          } else { 
1545
            if (field.type == TType.STRUCT) {
1622
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1546
              this.creator = new Agent();
1623
          }
1547
              this.creator.read(iprot);
1624
          break;
1548
            } else { 
1625
        case 19: // TICKET_ASSIGNEE
1549
              TProtocolUtil.skip(iprot, field.type);
1626
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1550
            }
1627
            this.ticketAssignee = new Agent();
1551
            break;
1628
            this.ticketAssignee.read(iprot);
1552
          case TICKET_ASSIGNEE:
1629
          } else { 
1553
            if (field.type == TType.STRUCT) {
1630
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1554
              this.ticketAssignee = new Agent();
1631
          }
1555
              this.ticketAssignee.read(iprot);
1632
          break;
1556
            } else { 
1633
        default:
1557
              TProtocolUtil.skip(iprot, field.type);
1634
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1558
            }
-
 
1559
            break;
-
 
1560
        }
-
 
1561
        iprot.readFieldEnd();
-
 
1562
      }
1635
      }
-
 
1636
      iprot.readFieldEnd();
1563
    }
1637
    }
1564
    iprot.readStructEnd();
1638
    iprot.readStructEnd();
1565
    validate();
1639
    validate();
1566
  }
1640
  }
1567
 
1641
 
1568
  public void write(TProtocol oprot) throws TException {
1642
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1569
    validate();
1643
    validate();
1570
 
1644
 
1571
    oprot.writeStructBegin(STRUCT_DESC);
1645
    oprot.writeStructBegin(STRUCT_DESC);
1572
    oprot.writeFieldBegin(ID_FIELD_DESC);
1646
    oprot.writeFieldBegin(ID_FIELD_DESC);
1573
    oprot.writeI64(this.id);
1647
    oprot.writeI64(this.id);
Line 1707... Line 1781...
1707
    if (!first) sb.append(", ");
1781
    if (!first) sb.append(", ");
1708
    sb.append("type:");
1782
    sb.append("type:");
1709
    if (this.type == null) {
1783
    if (this.type == null) {
1710
      sb.append("null");
1784
      sb.append("null");
1711
    } else {
1785
    } else {
1712
      String type_name = type.name();
-
 
1713
      if (type_name != null) {
-
 
1714
        sb.append(type_name);
-
 
1715
        sb.append(" (");
-
 
1716
      }
-
 
1717
      sb.append(this.type);
1786
      sb.append(this.type);
1718
      if (type_name != null) {
-
 
1719
        sb.append(")");
-
 
1720
      }
-
 
1721
    }
1787
    }
1722
    first = false;
1788
    first = false;
1723
    if (isSetCustomerId()) {
1789
    if (isSetCustomerId()) {
1724
      if (!first) sb.append(", ");
1790
      if (!first) sb.append(", ");
1725
      sb.append("customerId:");
1791
      sb.append("customerId:");
Line 1746... Line 1812...
1746
      if (!first) sb.append(", ");
1812
      if (!first) sb.append(", ");
1747
      sb.append("ticketPriority:");
1813
      sb.append("ticketPriority:");
1748
      if (this.ticketPriority == null) {
1814
      if (this.ticketPriority == null) {
1749
        sb.append("null");
1815
        sb.append("null");
1750
      } else {
1816
      } else {
1751
        String ticketPriority_name = ticketPriority.name();
-
 
1752
        if (ticketPriority_name != null) {
-
 
1753
          sb.append(ticketPriority_name);
-
 
1754
          sb.append(" (");
-
 
1755
        }
-
 
1756
        sb.append(this.ticketPriority);
1817
        sb.append(this.ticketPriority);
1757
        if (ticketPriority_name != null) {
-
 
1758
          sb.append(")");
-
 
1759
        }
-
 
1760
      }
1818
      }
1761
      first = false;
1819
      first = false;
1762
    }
1820
    }
1763
    if (isSetTicketAssigneeId()) {
1821
    if (isSetTicketAssigneeId()) {
1764
      if (!first) sb.append(", ");
1822
      if (!first) sb.append(", ");
Line 1770... Line 1828...
1770
      if (!first) sb.append(", ");
1828
      if (!first) sb.append(", ");
1771
      sb.append("ticketStatus:");
1829
      sb.append("ticketStatus:");
1772
      if (this.ticketStatus == null) {
1830
      if (this.ticketStatus == null) {
1773
        sb.append("null");
1831
        sb.append("null");
1774
      } else {
1832
      } else {
1775
        String ticketStatus_name = ticketStatus.name();
-
 
1776
        if (ticketStatus_name != null) {
-
 
1777
          sb.append(ticketStatus_name);
-
 
1778
          sb.append(" (");
-
 
1779
        }
-
 
1780
        sb.append(this.ticketStatus);
1833
        sb.append(this.ticketStatus);
1781
        if (ticketStatus_name != null) {
-
 
1782
          sb.append(")");
-
 
1783
        }
-
 
1784
      }
1834
      }
1785
      first = false;
1835
      first = false;
1786
    }
1836
    }
1787
    if (isSetTicketCategory()) {
1837
    if (isSetTicketCategory()) {
1788
      if (!first) sb.append(", ");
1838
      if (!first) sb.append(", ");
1789
      sb.append("ticketCategory:");
1839
      sb.append("ticketCategory:");
1790
      if (this.ticketCategory == null) {
1840
      if (this.ticketCategory == null) {
1791
        sb.append("null");
1841
        sb.append("null");
1792
      } else {
1842
      } else {
1793
        String ticketCategory_name = ticketCategory.name();
-
 
1794
        if (ticketCategory_name != null) {
-
 
1795
          sb.append(ticketCategory_name);
-
 
1796
          sb.append(" (");
-
 
1797
        }
-
 
1798
        sb.append(this.ticketCategory);
1843
        sb.append(this.ticketCategory);
1799
        if (ticketCategory_name != null) {
-
 
1800
          sb.append(")");
-
 
1801
        }
-
 
1802
      }
1844
      }
1803
      first = false;
1845
      first = false;
1804
    }
1846
    }
1805
    if (isSetTicketDescription()) {
1847
    if (isSetTicketDescription()) {
1806
      if (!first) sb.append(", ");
1848
      if (!first) sb.append(", ");
Line 1870... Line 1912...
1870
    }
1912
    }
1871
    sb.append(")");
1913
    sb.append(")");
1872
    return sb.toString();
1914
    return sb.toString();
1873
  }
1915
  }
1874
 
1916
 
1875
  public void validate() throws TException {
1917
  public void validate() throws org.apache.thrift.TException {
1876
    // check for required fields
1918
    // check for required fields
1877
  }
1919
  }
1878
 
1920
 
-
 
1921
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1922
    try {
-
 
1923
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1924
    } catch (org.apache.thrift.TException te) {
-
 
1925
      throw new java.io.IOException(te);
-
 
1926
    }
-
 
1927
  }
-
 
1928
 
-
 
1929
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1930
    try {
-
 
1931
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1932
      __isset_bit_vector = new BitSet(1);
-
 
1933
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1934
    } catch (org.apache.thrift.TException te) {
-
 
1935
      throw new java.io.IOException(te);
-
 
1936
    }
-
 
1937
  }
-
 
1938
 
1879
}
1939
}
1880
 
1940