Subversion Repositories SmartDukaan

Rev

Rev 3390 | Rev 3546 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3028 mandeep.dh 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
3028 mandeep.dh 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.crm;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
3028 mandeep.dh 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
3430 rajveer 23
public class Activity implements org.apache.thrift.TBase<Activity, Activity._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Activity");
3028 mandeep.dh 25
 
3430 rajveer 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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
3028 mandeep.dh 45
 
3430 rajveer 46
  private long id; // required
47
  private String description; // required
48
  private long creationTimestamp; // required
49
  private ActivityType type; // required
50
  private long customerId; // required
51
  private long creatorId; // required
52
  private long userEmailId; // required
53
  private long ticketId; // required
54
  private TicketPriority ticketPriority; // required
55
  private long ticketAssigneeId; // required
56
  private TicketStatus ticketStatus; // required
57
  private TicketCategory ticketCategory; // required
58
  private String ticketDescription; // required
59
  private boolean isRead; // required
60
  private String customerMobileNumber; // required
61
  private String customerEmailId; // required
62
  private String customerName; // required
63
  private Agent creator; // required
64
  private Agent ticketAssignee; // required
3028 mandeep.dh 65
 
66
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 67
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 68
    ID((short)1, "id"),
69
    DESCRIPTION((short)2, "description"),
3106 mandeep.dh 70
    CREATION_TIMESTAMP((short)3, "creationTimestamp"),
3028 mandeep.dh 71
    /**
72
     * 
3106 mandeep.dh 73
     * @see ActivityType
3028 mandeep.dh 74
     */
3106 mandeep.dh 75
    TYPE((short)4, "type"),
3028 mandeep.dh 76
    CUSTOMER_ID((short)5, "customerId"),
3390 mandeep.dh 77
    CREATOR_ID((short)6, "creatorId"),
78
    USER_EMAIL_ID((short)7, "userEmailId"),
79
    TICKET_ID((short)8, "ticketId"),
3028 mandeep.dh 80
    /**
81
     * 
82
     * @see TicketPriority
83
     */
3390 mandeep.dh 84
    TICKET_PRIORITY((short)9, "ticketPriority"),
85
    TICKET_ASSIGNEE_ID((short)10, "ticketAssigneeId"),
3028 mandeep.dh 86
    /**
87
     * 
88
     * @see TicketStatus
89
     */
3390 mandeep.dh 90
    TICKET_STATUS((short)11, "ticketStatus"),
3028 mandeep.dh 91
    /**
92
     * 
93
     * @see TicketCategory
94
     */
3390 mandeep.dh 95
    TICKET_CATEGORY((short)12, "ticketCategory"),
96
    TICKET_DESCRIPTION((short)13, "ticketDescription"),
97
    IS_READ((short)14, "isRead"),
98
    CUSTOMER_MOBILE_NUMBER((short)15, "customerMobileNumber"),
99
    CUSTOMER_EMAIL_ID((short)16, "customerEmailId"),
100
    CUSTOMER_NAME((short)17, "customerName"),
101
    CREATOR((short)18, "creator"),
102
    TICKET_ASSIGNEE((short)19, "ticketAssignee");
3028 mandeep.dh 103
 
104
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
105
 
106
    static {
107
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
108
        byName.put(field.getFieldName(), field);
109
      }
110
    }
111
 
112
    /**
113
     * Find the _Fields constant that matches fieldId, or null if its not found.
114
     */
115
    public static _Fields findByThriftId(int fieldId) {
3430 rajveer 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
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
      }
3028 mandeep.dh 158
    }
159
 
160
    /**
161
     * Find the _Fields constant that matches fieldId, throwing an exception
162
     * if it is not found.
163
     */
164
    public static _Fields findByThriftIdOrThrow(int fieldId) {
165
      _Fields fields = findByThriftId(fieldId);
166
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
167
      return fields;
168
    }
169
 
170
    /**
171
     * Find the _Fields constant that matches name, or null if its not found.
172
     */
173
    public static _Fields findByName(String name) {
174
      return byName.get(name);
175
    }
176
 
177
    private final short _thriftId;
178
    private final String _fieldName;
179
 
180
    _Fields(short thriftId, String fieldName) {
181
      _thriftId = thriftId;
182
      _fieldName = fieldName;
183
    }
184
 
185
    public short getThriftFieldId() {
186
      return _thriftId;
187
    }
188
 
189
    public String getFieldName() {
190
      return _fieldName;
191
    }
192
  }
193
 
194
  // isset id assignments
195
  private static final int __ID_ISSET_ID = 0;
3106 mandeep.dh 196
  private static final int __CREATIONTIMESTAMP_ISSET_ID = 1;
3028 mandeep.dh 197
  private static final int __CUSTOMERID_ISSET_ID = 2;
198
  private static final int __CREATORID_ISSET_ID = 3;
3390 mandeep.dh 199
  private static final int __USEREMAILID_ISSET_ID = 4;
3206 mandeep.dh 200
  private static final int __TICKETID_ISSET_ID = 5;
201
  private static final int __TICKETASSIGNEEID_ISSET_ID = 6;
3390 mandeep.dh 202
  private static final int __ISREAD_ISSET_ID = 7;
203
  private BitSet __isset_bit_vector = new BitSet(8);
3028 mandeep.dh 204
 
3430 rajveer 205
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 206
  static {
3430 rajveer 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);
247
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Activity.class, metaDataMap);
3028 mandeep.dh 248
  }
249
 
250
  public Activity() {
251
  }
252
 
253
  public Activity(
254
    long id,
3106 mandeep.dh 255
    long creationTimestamp,
256
    ActivityType type,
3168 mandeep.dh 257
    long creatorId)
3028 mandeep.dh 258
  {
259
    this();
260
    this.id = id;
261
    setIdIsSet(true);
3106 mandeep.dh 262
    this.creationTimestamp = creationTimestamp;
263
    setCreationTimestampIsSet(true);
264
    this.type = type;
3028 mandeep.dh 265
    this.creatorId = creatorId;
266
    setCreatorIdIsSet(true);
267
  }
268
 
269
  /**
270
   * Performs a deep copy on <i>other</i>.
271
   */
272
  public Activity(Activity other) {
273
    __isset_bit_vector.clear();
274
    __isset_bit_vector.or(other.__isset_bit_vector);
275
    this.id = other.id;
276
    if (other.isSetDescription()) {
277
      this.description = other.description;
278
    }
3106 mandeep.dh 279
    this.creationTimestamp = other.creationTimestamp;
280
    if (other.isSetType()) {
281
      this.type = other.type;
3028 mandeep.dh 282
    }
283
    this.customerId = other.customerId;
284
    this.creatorId = other.creatorId;
3390 mandeep.dh 285
    this.userEmailId = other.userEmailId;
3028 mandeep.dh 286
    this.ticketId = other.ticketId;
287
    if (other.isSetTicketPriority()) {
288
      this.ticketPriority = other.ticketPriority;
289
    }
290
    this.ticketAssigneeId = other.ticketAssigneeId;
291
    if (other.isSetTicketStatus()) {
292
      this.ticketStatus = other.ticketStatus;
293
    }
294
    if (other.isSetTicketCategory()) {
295
      this.ticketCategory = other.ticketCategory;
296
    }
3106 mandeep.dh 297
    if (other.isSetTicketDescription()) {
298
      this.ticketDescription = other.ticketDescription;
299
    }
3390 mandeep.dh 300
    this.isRead = other.isRead;
301
    if (other.isSetCustomerMobileNumber()) {
302
      this.customerMobileNumber = other.customerMobileNumber;
303
    }
304
    if (other.isSetCustomerEmailId()) {
305
      this.customerEmailId = other.customerEmailId;
306
    }
307
    if (other.isSetCustomerName()) {
308
      this.customerName = other.customerName;
309
    }
310
    if (other.isSetCreator()) {
311
      this.creator = new Agent(other.creator);
312
    }
313
    if (other.isSetTicketAssignee()) {
314
      this.ticketAssignee = new Agent(other.ticketAssignee);
315
    }
3028 mandeep.dh 316
  }
317
 
318
  public Activity deepCopy() {
319
    return new Activity(this);
320
  }
321
 
3430 rajveer 322
  @Override
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;
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;
3028 mandeep.dh 351
  }
352
 
353
  public long getId() {
354
    return this.id;
355
  }
356
 
3430 rajveer 357
  public void setId(long id) {
3028 mandeep.dh 358
    this.id = id;
359
    setIdIsSet(true);
360
  }
361
 
362
  public void unsetId() {
363
    __isset_bit_vector.clear(__ID_ISSET_ID);
364
  }
365
 
3430 rajveer 366
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 367
  public boolean isSetId() {
368
    return __isset_bit_vector.get(__ID_ISSET_ID);
369
  }
370
 
371
  public void setIdIsSet(boolean value) {
372
    __isset_bit_vector.set(__ID_ISSET_ID, value);
373
  }
374
 
375
  public String getDescription() {
376
    return this.description;
377
  }
378
 
3430 rajveer 379
  public void setDescription(String description) {
3028 mandeep.dh 380
    this.description = description;
381
  }
382
 
383
  public void unsetDescription() {
384
    this.description = null;
385
  }
386
 
3430 rajveer 387
  /** Returns true if field description is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 388
  public boolean isSetDescription() {
389
    return this.description != null;
390
  }
391
 
392
  public void setDescriptionIsSet(boolean value) {
393
    if (!value) {
394
      this.description = null;
395
    }
396
  }
397
 
3106 mandeep.dh 398
  public long getCreationTimestamp() {
399
    return this.creationTimestamp;
3028 mandeep.dh 400
  }
401
 
3430 rajveer 402
  public void setCreationTimestamp(long creationTimestamp) {
3106 mandeep.dh 403
    this.creationTimestamp = creationTimestamp;
404
    setCreationTimestampIsSet(true);
3028 mandeep.dh 405
  }
406
 
3106 mandeep.dh 407
  public void unsetCreationTimestamp() {
408
    __isset_bit_vector.clear(__CREATIONTIMESTAMP_ISSET_ID);
3028 mandeep.dh 409
  }
410
 
3430 rajveer 411
  /** Returns true if field creationTimestamp is set (has been assigned a value) and false otherwise */
3106 mandeep.dh 412
  public boolean isSetCreationTimestamp() {
413
    return __isset_bit_vector.get(__CREATIONTIMESTAMP_ISSET_ID);
3028 mandeep.dh 414
  }
415
 
3106 mandeep.dh 416
  public void setCreationTimestampIsSet(boolean value) {
417
    __isset_bit_vector.set(__CREATIONTIMESTAMP_ISSET_ID, value);
3028 mandeep.dh 418
  }
419
 
420
  /**
421
   * 
3106 mandeep.dh 422
   * @see ActivityType
3028 mandeep.dh 423
   */
3106 mandeep.dh 424
  public ActivityType getType() {
425
    return this.type;
3028 mandeep.dh 426
  }
427
 
428
  /**
429
   * 
3106 mandeep.dh 430
   * @see ActivityType
3028 mandeep.dh 431
   */
3430 rajveer 432
  public void setType(ActivityType type) {
3106 mandeep.dh 433
    this.type = type;
3028 mandeep.dh 434
  }
435
 
3106 mandeep.dh 436
  public void unsetType() {
437
    this.type = null;
3028 mandeep.dh 438
  }
439
 
3430 rajveer 440
  /** Returns true if field type is set (has been assigned a value) and false otherwise */
3106 mandeep.dh 441
  public boolean isSetType() {
442
    return this.type != null;
3028 mandeep.dh 443
  }
444
 
3106 mandeep.dh 445
  public void setTypeIsSet(boolean value) {
3028 mandeep.dh 446
    if (!value) {
3106 mandeep.dh 447
      this.type = null;
3028 mandeep.dh 448
    }
449
  }
450
 
451
  public long getCustomerId() {
452
    return this.customerId;
453
  }
454
 
3430 rajveer 455
  public void setCustomerId(long customerId) {
3028 mandeep.dh 456
    this.customerId = customerId;
457
    setCustomerIdIsSet(true);
458
  }
459
 
460
  public void unsetCustomerId() {
461
    __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
462
  }
463
 
3430 rajveer 464
  /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 465
  public boolean isSetCustomerId() {
466
    return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
467
  }
468
 
469
  public void setCustomerIdIsSet(boolean value) {
470
    __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
471
  }
472
 
473
  public long getCreatorId() {
474
    return this.creatorId;
475
  }
476
 
3430 rajveer 477
  public void setCreatorId(long creatorId) {
3028 mandeep.dh 478
    this.creatorId = creatorId;
479
    setCreatorIdIsSet(true);
480
  }
481
 
482
  public void unsetCreatorId() {
483
    __isset_bit_vector.clear(__CREATORID_ISSET_ID);
484
  }
485
 
3430 rajveer 486
  /** Returns true if field creatorId is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 487
  public boolean isSetCreatorId() {
488
    return __isset_bit_vector.get(__CREATORID_ISSET_ID);
489
  }
490
 
491
  public void setCreatorIdIsSet(boolean value) {
492
    __isset_bit_vector.set(__CREATORID_ISSET_ID, value);
493
  }
494
 
3390 mandeep.dh 495
  public long getUserEmailId() {
496
    return this.userEmailId;
3206 mandeep.dh 497
  }
498
 
3430 rajveer 499
  public void setUserEmailId(long userEmailId) {
3390 mandeep.dh 500
    this.userEmailId = userEmailId;
501
    setUserEmailIdIsSet(true);
3206 mandeep.dh 502
  }
503
 
3390 mandeep.dh 504
  public void unsetUserEmailId() {
505
    __isset_bit_vector.clear(__USEREMAILID_ISSET_ID);
3206 mandeep.dh 506
  }
507
 
3430 rajveer 508
  /** Returns true if field userEmailId is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 509
  public boolean isSetUserEmailId() {
510
    return __isset_bit_vector.get(__USEREMAILID_ISSET_ID);
3206 mandeep.dh 511
  }
512
 
3390 mandeep.dh 513
  public void setUserEmailIdIsSet(boolean value) {
514
    __isset_bit_vector.set(__USEREMAILID_ISSET_ID, value);
3206 mandeep.dh 515
  }
516
 
3028 mandeep.dh 517
  public long getTicketId() {
518
    return this.ticketId;
519
  }
520
 
3430 rajveer 521
  public void setTicketId(long ticketId) {
3028 mandeep.dh 522
    this.ticketId = ticketId;
523
    setTicketIdIsSet(true);
524
  }
525
 
526
  public void unsetTicketId() {
527
    __isset_bit_vector.clear(__TICKETID_ISSET_ID);
528
  }
529
 
3430 rajveer 530
  /** Returns true if field ticketId is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 531
  public boolean isSetTicketId() {
532
    return __isset_bit_vector.get(__TICKETID_ISSET_ID);
533
  }
534
 
535
  public void setTicketIdIsSet(boolean value) {
536
    __isset_bit_vector.set(__TICKETID_ISSET_ID, value);
537
  }
538
 
539
  /**
540
   * 
541
   * @see TicketPriority
542
   */
543
  public TicketPriority getTicketPriority() {
544
    return this.ticketPriority;
545
  }
546
 
547
  /**
548
   * 
549
   * @see TicketPriority
550
   */
3430 rajveer 551
  public void setTicketPriority(TicketPriority ticketPriority) {
3028 mandeep.dh 552
    this.ticketPriority = ticketPriority;
553
  }
554
 
555
  public void unsetTicketPriority() {
556
    this.ticketPriority = null;
557
  }
558
 
3430 rajveer 559
  /** Returns true if field ticketPriority is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 560
  public boolean isSetTicketPriority() {
561
    return this.ticketPriority != null;
562
  }
563
 
564
  public void setTicketPriorityIsSet(boolean value) {
565
    if (!value) {
566
      this.ticketPriority = null;
567
    }
568
  }
569
 
570
  public long getTicketAssigneeId() {
571
    return this.ticketAssigneeId;
572
  }
573
 
3430 rajveer 574
  public void setTicketAssigneeId(long ticketAssigneeId) {
3028 mandeep.dh 575
    this.ticketAssigneeId = ticketAssigneeId;
576
    setTicketAssigneeIdIsSet(true);
577
  }
578
 
579
  public void unsetTicketAssigneeId() {
580
    __isset_bit_vector.clear(__TICKETASSIGNEEID_ISSET_ID);
581
  }
582
 
3430 rajveer 583
  /** Returns true if field ticketAssigneeId is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 584
  public boolean isSetTicketAssigneeId() {
585
    return __isset_bit_vector.get(__TICKETASSIGNEEID_ISSET_ID);
586
  }
587
 
588
  public void setTicketAssigneeIdIsSet(boolean value) {
589
    __isset_bit_vector.set(__TICKETASSIGNEEID_ISSET_ID, value);
590
  }
591
 
592
  /**
593
   * 
594
   * @see TicketStatus
595
   */
596
  public TicketStatus getTicketStatus() {
597
    return this.ticketStatus;
598
  }
599
 
600
  /**
601
   * 
602
   * @see TicketStatus
603
   */
3430 rajveer 604
  public void setTicketStatus(TicketStatus ticketStatus) {
3028 mandeep.dh 605
    this.ticketStatus = ticketStatus;
606
  }
607
 
608
  public void unsetTicketStatus() {
609
    this.ticketStatus = null;
610
  }
611
 
3430 rajveer 612
  /** Returns true if field ticketStatus is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 613
  public boolean isSetTicketStatus() {
614
    return this.ticketStatus != null;
615
  }
616
 
617
  public void setTicketStatusIsSet(boolean value) {
618
    if (!value) {
619
      this.ticketStatus = null;
620
    }
621
  }
622
 
623
  /**
624
   * 
625
   * @see TicketCategory
626
   */
627
  public TicketCategory getTicketCategory() {
628
    return this.ticketCategory;
629
  }
630
 
631
  /**
632
   * 
633
   * @see TicketCategory
634
   */
3430 rajveer 635
  public void setTicketCategory(TicketCategory ticketCategory) {
3028 mandeep.dh 636
    this.ticketCategory = ticketCategory;
637
  }
638
 
639
  public void unsetTicketCategory() {
640
    this.ticketCategory = null;
641
  }
642
 
3430 rajveer 643
  /** Returns true if field ticketCategory is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 644
  public boolean isSetTicketCategory() {
645
    return this.ticketCategory != null;
646
  }
647
 
648
  public void setTicketCategoryIsSet(boolean value) {
649
    if (!value) {
650
      this.ticketCategory = null;
651
    }
652
  }
653
 
3106 mandeep.dh 654
  public String getTicketDescription() {
655
    return this.ticketDescription;
656
  }
657
 
3430 rajveer 658
  public void setTicketDescription(String ticketDescription) {
3106 mandeep.dh 659
    this.ticketDescription = ticketDescription;
660
  }
661
 
662
  public void unsetTicketDescription() {
663
    this.ticketDescription = null;
664
  }
665
 
3430 rajveer 666
  /** Returns true if field ticketDescription is set (has been assigned a value) and false otherwise */
3106 mandeep.dh 667
  public boolean isSetTicketDescription() {
668
    return this.ticketDescription != null;
669
  }
670
 
671
  public void setTicketDescriptionIsSet(boolean value) {
672
    if (!value) {
673
      this.ticketDescription = null;
674
    }
675
  }
676
 
3390 mandeep.dh 677
  public boolean isIsRead() {
678
    return this.isRead;
679
  }
680
 
3430 rajveer 681
  public void setIsRead(boolean isRead) {
3390 mandeep.dh 682
    this.isRead = isRead;
683
    setIsReadIsSet(true);
684
  }
685
 
686
  public void unsetIsRead() {
687
    __isset_bit_vector.clear(__ISREAD_ISSET_ID);
688
  }
689
 
3430 rajveer 690
  /** Returns true if field isRead is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 691
  public boolean isSetIsRead() {
692
    return __isset_bit_vector.get(__ISREAD_ISSET_ID);
693
  }
694
 
695
  public void setIsReadIsSet(boolean value) {
696
    __isset_bit_vector.set(__ISREAD_ISSET_ID, value);
697
  }
698
 
699
  public String getCustomerMobileNumber() {
700
    return this.customerMobileNumber;
701
  }
702
 
3430 rajveer 703
  public void setCustomerMobileNumber(String customerMobileNumber) {
3390 mandeep.dh 704
    this.customerMobileNumber = customerMobileNumber;
705
  }
706
 
707
  public void unsetCustomerMobileNumber() {
708
    this.customerMobileNumber = null;
709
  }
710
 
3430 rajveer 711
  /** Returns true if field customerMobileNumber is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 712
  public boolean isSetCustomerMobileNumber() {
713
    return this.customerMobileNumber != null;
714
  }
715
 
716
  public void setCustomerMobileNumberIsSet(boolean value) {
717
    if (!value) {
718
      this.customerMobileNumber = null;
719
    }
720
  }
721
 
722
  public String getCustomerEmailId() {
723
    return this.customerEmailId;
724
  }
725
 
3430 rajveer 726
  public void setCustomerEmailId(String customerEmailId) {
3390 mandeep.dh 727
    this.customerEmailId = customerEmailId;
728
  }
729
 
730
  public void unsetCustomerEmailId() {
731
    this.customerEmailId = null;
732
  }
733
 
3430 rajveer 734
  /** Returns true if field customerEmailId is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 735
  public boolean isSetCustomerEmailId() {
736
    return this.customerEmailId != null;
737
  }
738
 
739
  public void setCustomerEmailIdIsSet(boolean value) {
740
    if (!value) {
741
      this.customerEmailId = null;
742
    }
743
  }
744
 
745
  public String getCustomerName() {
746
    return this.customerName;
747
  }
748
 
3430 rajveer 749
  public void setCustomerName(String customerName) {
3390 mandeep.dh 750
    this.customerName = customerName;
751
  }
752
 
753
  public void unsetCustomerName() {
754
    this.customerName = null;
755
  }
756
 
3430 rajveer 757
  /** Returns true if field customerName is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 758
  public boolean isSetCustomerName() {
759
    return this.customerName != null;
760
  }
761
 
762
  public void setCustomerNameIsSet(boolean value) {
763
    if (!value) {
764
      this.customerName = null;
765
    }
766
  }
767
 
768
  public Agent getCreator() {
769
    return this.creator;
770
  }
771
 
3430 rajveer 772
  public void setCreator(Agent creator) {
3390 mandeep.dh 773
    this.creator = creator;
774
  }
775
 
776
  public void unsetCreator() {
777
    this.creator = null;
778
  }
779
 
3430 rajveer 780
  /** Returns true if field creator is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 781
  public boolean isSetCreator() {
782
    return this.creator != null;
783
  }
784
 
785
  public void setCreatorIsSet(boolean value) {
786
    if (!value) {
787
      this.creator = null;
788
    }
789
  }
790
 
791
  public Agent getTicketAssignee() {
792
    return this.ticketAssignee;
793
  }
794
 
3430 rajveer 795
  public void setTicketAssignee(Agent ticketAssignee) {
3390 mandeep.dh 796
    this.ticketAssignee = ticketAssignee;
797
  }
798
 
799
  public void unsetTicketAssignee() {
800
    this.ticketAssignee = null;
801
  }
802
 
3430 rajveer 803
  /** Returns true if field ticketAssignee is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 804
  public boolean isSetTicketAssignee() {
805
    return this.ticketAssignee != null;
806
  }
807
 
808
  public void setTicketAssigneeIsSet(boolean value) {
809
    if (!value) {
810
      this.ticketAssignee = null;
811
    }
812
  }
813
 
3028 mandeep.dh 814
  public void setFieldValue(_Fields field, Object value) {
815
    switch (field) {
816
    case ID:
817
      if (value == null) {
818
        unsetId();
819
      } else {
820
        setId((Long)value);
821
      }
822
      break;
823
 
824
    case DESCRIPTION:
825
      if (value == null) {
826
        unsetDescription();
827
      } else {
828
        setDescription((String)value);
829
      }
830
      break;
831
 
3106 mandeep.dh 832
    case CREATION_TIMESTAMP:
3028 mandeep.dh 833
      if (value == null) {
3106 mandeep.dh 834
        unsetCreationTimestamp();
3028 mandeep.dh 835
      } else {
3106 mandeep.dh 836
        setCreationTimestamp((Long)value);
3028 mandeep.dh 837
      }
838
      break;
839
 
3106 mandeep.dh 840
    case TYPE:
3028 mandeep.dh 841
      if (value == null) {
3106 mandeep.dh 842
        unsetType();
3028 mandeep.dh 843
      } else {
3106 mandeep.dh 844
        setType((ActivityType)value);
3028 mandeep.dh 845
      }
846
      break;
847
 
848
    case CUSTOMER_ID:
849
      if (value == null) {
850
        unsetCustomerId();
851
      } else {
852
        setCustomerId((Long)value);
853
      }
854
      break;
855
 
856
    case CREATOR_ID:
857
      if (value == null) {
858
        unsetCreatorId();
859
      } else {
860
        setCreatorId((Long)value);
861
      }
862
      break;
863
 
3390 mandeep.dh 864
    case USER_EMAIL_ID:
3206 mandeep.dh 865
      if (value == null) {
3390 mandeep.dh 866
        unsetUserEmailId();
3206 mandeep.dh 867
      } else {
3390 mandeep.dh 868
        setUserEmailId((Long)value);
3206 mandeep.dh 869
      }
870
      break;
871
 
3028 mandeep.dh 872
    case TICKET_ID:
873
      if (value == null) {
874
        unsetTicketId();
875
      } else {
876
        setTicketId((Long)value);
877
      }
878
      break;
879
 
880
    case TICKET_PRIORITY:
881
      if (value == null) {
882
        unsetTicketPriority();
883
      } else {
884
        setTicketPriority((TicketPriority)value);
885
      }
886
      break;
887
 
888
    case TICKET_ASSIGNEE_ID:
889
      if (value == null) {
890
        unsetTicketAssigneeId();
891
      } else {
892
        setTicketAssigneeId((Long)value);
893
      }
894
      break;
895
 
896
    case TICKET_STATUS:
897
      if (value == null) {
898
        unsetTicketStatus();
899
      } else {
900
        setTicketStatus((TicketStatus)value);
901
      }
902
      break;
903
 
904
    case TICKET_CATEGORY:
905
      if (value == null) {
906
        unsetTicketCategory();
907
      } else {
908
        setTicketCategory((TicketCategory)value);
909
      }
910
      break;
911
 
3106 mandeep.dh 912
    case TICKET_DESCRIPTION:
913
      if (value == null) {
914
        unsetTicketDescription();
915
      } else {
916
        setTicketDescription((String)value);
917
      }
918
      break;
919
 
3390 mandeep.dh 920
    case IS_READ:
921
      if (value == null) {
922
        unsetIsRead();
923
      } else {
924
        setIsRead((Boolean)value);
925
      }
926
      break;
927
 
928
    case CUSTOMER_MOBILE_NUMBER:
929
      if (value == null) {
930
        unsetCustomerMobileNumber();
931
      } else {
932
        setCustomerMobileNumber((String)value);
933
      }
934
      break;
935
 
936
    case CUSTOMER_EMAIL_ID:
937
      if (value == null) {
938
        unsetCustomerEmailId();
939
      } else {
940
        setCustomerEmailId((String)value);
941
      }
942
      break;
943
 
944
    case CUSTOMER_NAME:
945
      if (value == null) {
946
        unsetCustomerName();
947
      } else {
948
        setCustomerName((String)value);
949
      }
950
      break;
951
 
952
    case CREATOR:
953
      if (value == null) {
954
        unsetCreator();
955
      } else {
956
        setCreator((Agent)value);
957
      }
958
      break;
959
 
960
    case TICKET_ASSIGNEE:
961
      if (value == null) {
962
        unsetTicketAssignee();
963
      } else {
964
        setTicketAssignee((Agent)value);
965
      }
966
      break;
967
 
3028 mandeep.dh 968
    }
969
  }
970
 
971
  public Object getFieldValue(_Fields field) {
972
    switch (field) {
973
    case ID:
3430 rajveer 974
      return Long.valueOf(getId());
3028 mandeep.dh 975
 
976
    case DESCRIPTION:
977
      return getDescription();
978
 
3106 mandeep.dh 979
    case CREATION_TIMESTAMP:
3430 rajveer 980
      return Long.valueOf(getCreationTimestamp());
3028 mandeep.dh 981
 
3106 mandeep.dh 982
    case TYPE:
983
      return getType();
3028 mandeep.dh 984
 
985
    case CUSTOMER_ID:
3430 rajveer 986
      return Long.valueOf(getCustomerId());
3028 mandeep.dh 987
 
988
    case CREATOR_ID:
3430 rajveer 989
      return Long.valueOf(getCreatorId());
3028 mandeep.dh 990
 
3390 mandeep.dh 991
    case USER_EMAIL_ID:
3430 rajveer 992
      return Long.valueOf(getUserEmailId());
3206 mandeep.dh 993
 
3028 mandeep.dh 994
    case TICKET_ID:
3430 rajveer 995
      return Long.valueOf(getTicketId());
3028 mandeep.dh 996
 
997
    case TICKET_PRIORITY:
998
      return getTicketPriority();
999
 
1000
    case TICKET_ASSIGNEE_ID:
3430 rajveer 1001
      return Long.valueOf(getTicketAssigneeId());
3028 mandeep.dh 1002
 
1003
    case TICKET_STATUS:
1004
      return getTicketStatus();
1005
 
1006
    case TICKET_CATEGORY:
1007
      return getTicketCategory();
1008
 
3106 mandeep.dh 1009
    case TICKET_DESCRIPTION:
1010
      return getTicketDescription();
1011
 
3390 mandeep.dh 1012
    case IS_READ:
3430 rajveer 1013
      return Boolean.valueOf(isIsRead());
3390 mandeep.dh 1014
 
1015
    case CUSTOMER_MOBILE_NUMBER:
1016
      return getCustomerMobileNumber();
1017
 
1018
    case CUSTOMER_EMAIL_ID:
1019
      return getCustomerEmailId();
1020
 
1021
    case CUSTOMER_NAME:
1022
      return getCustomerName();
1023
 
1024
    case CREATOR:
1025
      return getCreator();
1026
 
1027
    case TICKET_ASSIGNEE:
1028
      return getTicketAssignee();
1029
 
3028 mandeep.dh 1030
    }
1031
    throw new IllegalStateException();
1032
  }
1033
 
3430 rajveer 1034
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1035
  public boolean isSet(_Fields field) {
1036
    if (field == null) {
1037
      throw new IllegalArgumentException();
1038
    }
3028 mandeep.dh 1039
 
1040
    switch (field) {
1041
    case ID:
1042
      return isSetId();
1043
    case DESCRIPTION:
1044
      return isSetDescription();
3106 mandeep.dh 1045
    case CREATION_TIMESTAMP:
1046
      return isSetCreationTimestamp();
1047
    case TYPE:
1048
      return isSetType();
3028 mandeep.dh 1049
    case CUSTOMER_ID:
1050
      return isSetCustomerId();
1051
    case CREATOR_ID:
1052
      return isSetCreatorId();
3390 mandeep.dh 1053
    case USER_EMAIL_ID:
1054
      return isSetUserEmailId();
3028 mandeep.dh 1055
    case TICKET_ID:
1056
      return isSetTicketId();
1057
    case TICKET_PRIORITY:
1058
      return isSetTicketPriority();
1059
    case TICKET_ASSIGNEE_ID:
1060
      return isSetTicketAssigneeId();
1061
    case TICKET_STATUS:
1062
      return isSetTicketStatus();
1063
    case TICKET_CATEGORY:
1064
      return isSetTicketCategory();
3106 mandeep.dh 1065
    case TICKET_DESCRIPTION:
1066
      return isSetTicketDescription();
3390 mandeep.dh 1067
    case IS_READ:
1068
      return isSetIsRead();
1069
    case CUSTOMER_MOBILE_NUMBER:
1070
      return isSetCustomerMobileNumber();
1071
    case CUSTOMER_EMAIL_ID:
1072
      return isSetCustomerEmailId();
1073
    case CUSTOMER_NAME:
1074
      return isSetCustomerName();
1075
    case CREATOR:
1076
      return isSetCreator();
1077
    case TICKET_ASSIGNEE:
1078
      return isSetTicketAssignee();
3028 mandeep.dh 1079
    }
1080
    throw new IllegalStateException();
1081
  }
1082
 
1083
  @Override
1084
  public boolean equals(Object that) {
1085
    if (that == null)
1086
      return false;
1087
    if (that instanceof Activity)
1088
      return this.equals((Activity)that);
1089
    return false;
1090
  }
1091
 
1092
  public boolean equals(Activity that) {
1093
    if (that == null)
1094
      return false;
1095
 
1096
    boolean this_present_id = true;
1097
    boolean that_present_id = true;
1098
    if (this_present_id || that_present_id) {
1099
      if (!(this_present_id && that_present_id))
1100
        return false;
1101
      if (this.id != that.id)
1102
        return false;
1103
    }
1104
 
1105
    boolean this_present_description = true && this.isSetDescription();
1106
    boolean that_present_description = true && that.isSetDescription();
1107
    if (this_present_description || that_present_description) {
1108
      if (!(this_present_description && that_present_description))
1109
        return false;
1110
      if (!this.description.equals(that.description))
1111
        return false;
1112
    }
1113
 
3106 mandeep.dh 1114
    boolean this_present_creationTimestamp = true;
1115
    boolean that_present_creationTimestamp = true;
1116
    if (this_present_creationTimestamp || that_present_creationTimestamp) {
1117
      if (!(this_present_creationTimestamp && that_present_creationTimestamp))
3028 mandeep.dh 1118
        return false;
3106 mandeep.dh 1119
      if (this.creationTimestamp != that.creationTimestamp)
3028 mandeep.dh 1120
        return false;
1121
    }
1122
 
3106 mandeep.dh 1123
    boolean this_present_type = true && this.isSetType();
1124
    boolean that_present_type = true && that.isSetType();
1125
    if (this_present_type || that_present_type) {
1126
      if (!(this_present_type && that_present_type))
3028 mandeep.dh 1127
        return false;
3106 mandeep.dh 1128
      if (!this.type.equals(that.type))
3028 mandeep.dh 1129
        return false;
1130
    }
1131
 
3269 mandeep.dh 1132
    boolean this_present_customerId = true && this.isSetCustomerId();
1133
    boolean that_present_customerId = true && that.isSetCustomerId();
3028 mandeep.dh 1134
    if (this_present_customerId || that_present_customerId) {
1135
      if (!(this_present_customerId && that_present_customerId))
1136
        return false;
1137
      if (this.customerId != that.customerId)
1138
        return false;
1139
    }
1140
 
1141
    boolean this_present_creatorId = true;
1142
    boolean that_present_creatorId = true;
1143
    if (this_present_creatorId || that_present_creatorId) {
1144
      if (!(this_present_creatorId && that_present_creatorId))
1145
        return false;
1146
      if (this.creatorId != that.creatorId)
1147
        return false;
1148
    }
1149
 
3390 mandeep.dh 1150
    boolean this_present_userEmailId = true && this.isSetUserEmailId();
1151
    boolean that_present_userEmailId = true && that.isSetUserEmailId();
1152
    if (this_present_userEmailId || that_present_userEmailId) {
1153
      if (!(this_present_userEmailId && that_present_userEmailId))
3206 mandeep.dh 1154
        return false;
3390 mandeep.dh 1155
      if (this.userEmailId != that.userEmailId)
3206 mandeep.dh 1156
        return false;
1157
    }
1158
 
3168 mandeep.dh 1159
    boolean this_present_ticketId = true && this.isSetTicketId();
1160
    boolean that_present_ticketId = true && that.isSetTicketId();
3028 mandeep.dh 1161
    if (this_present_ticketId || that_present_ticketId) {
1162
      if (!(this_present_ticketId && that_present_ticketId))
1163
        return false;
1164
      if (this.ticketId != that.ticketId)
1165
        return false;
1166
    }
1167
 
1168
    boolean this_present_ticketPriority = true && this.isSetTicketPriority();
1169
    boolean that_present_ticketPriority = true && that.isSetTicketPriority();
1170
    if (this_present_ticketPriority || that_present_ticketPriority) {
1171
      if (!(this_present_ticketPriority && that_present_ticketPriority))
1172
        return false;
1173
      if (!this.ticketPriority.equals(that.ticketPriority))
1174
        return false;
1175
    }
1176
 
3168 mandeep.dh 1177
    boolean this_present_ticketAssigneeId = true && this.isSetTicketAssigneeId();
1178
    boolean that_present_ticketAssigneeId = true && that.isSetTicketAssigneeId();
3028 mandeep.dh 1179
    if (this_present_ticketAssigneeId || that_present_ticketAssigneeId) {
1180
      if (!(this_present_ticketAssigneeId && that_present_ticketAssigneeId))
1181
        return false;
1182
      if (this.ticketAssigneeId != that.ticketAssigneeId)
1183
        return false;
1184
    }
1185
 
1186
    boolean this_present_ticketStatus = true && this.isSetTicketStatus();
1187
    boolean that_present_ticketStatus = true && that.isSetTicketStatus();
1188
    if (this_present_ticketStatus || that_present_ticketStatus) {
1189
      if (!(this_present_ticketStatus && that_present_ticketStatus))
1190
        return false;
1191
      if (!this.ticketStatus.equals(that.ticketStatus))
1192
        return false;
1193
    }
1194
 
1195
    boolean this_present_ticketCategory = true && this.isSetTicketCategory();
1196
    boolean that_present_ticketCategory = true && that.isSetTicketCategory();
1197
    if (this_present_ticketCategory || that_present_ticketCategory) {
1198
      if (!(this_present_ticketCategory && that_present_ticketCategory))
1199
        return false;
1200
      if (!this.ticketCategory.equals(that.ticketCategory))
1201
        return false;
1202
    }
1203
 
3106 mandeep.dh 1204
    boolean this_present_ticketDescription = true && this.isSetTicketDescription();
1205
    boolean that_present_ticketDescription = true && that.isSetTicketDescription();
1206
    if (this_present_ticketDescription || that_present_ticketDescription) {
1207
      if (!(this_present_ticketDescription && that_present_ticketDescription))
1208
        return false;
1209
      if (!this.ticketDescription.equals(that.ticketDescription))
1210
        return false;
1211
    }
1212
 
3390 mandeep.dh 1213
    boolean this_present_isRead = true && this.isSetIsRead();
1214
    boolean that_present_isRead = true && that.isSetIsRead();
1215
    if (this_present_isRead || that_present_isRead) {
1216
      if (!(this_present_isRead && that_present_isRead))
1217
        return false;
1218
      if (this.isRead != that.isRead)
1219
        return false;
1220
    }
1221
 
1222
    boolean this_present_customerMobileNumber = true && this.isSetCustomerMobileNumber();
1223
    boolean that_present_customerMobileNumber = true && that.isSetCustomerMobileNumber();
1224
    if (this_present_customerMobileNumber || that_present_customerMobileNumber) {
1225
      if (!(this_present_customerMobileNumber && that_present_customerMobileNumber))
1226
        return false;
1227
      if (!this.customerMobileNumber.equals(that.customerMobileNumber))
1228
        return false;
1229
    }
1230
 
1231
    boolean this_present_customerEmailId = true && this.isSetCustomerEmailId();
1232
    boolean that_present_customerEmailId = true && that.isSetCustomerEmailId();
1233
    if (this_present_customerEmailId || that_present_customerEmailId) {
1234
      if (!(this_present_customerEmailId && that_present_customerEmailId))
1235
        return false;
1236
      if (!this.customerEmailId.equals(that.customerEmailId))
1237
        return false;
1238
    }
1239
 
1240
    boolean this_present_customerName = true && this.isSetCustomerName();
1241
    boolean that_present_customerName = true && that.isSetCustomerName();
1242
    if (this_present_customerName || that_present_customerName) {
1243
      if (!(this_present_customerName && that_present_customerName))
1244
        return false;
1245
      if (!this.customerName.equals(that.customerName))
1246
        return false;
1247
    }
1248
 
1249
    boolean this_present_creator = true && this.isSetCreator();
1250
    boolean that_present_creator = true && that.isSetCreator();
1251
    if (this_present_creator || that_present_creator) {
1252
      if (!(this_present_creator && that_present_creator))
1253
        return false;
1254
      if (!this.creator.equals(that.creator))
1255
        return false;
1256
    }
1257
 
1258
    boolean this_present_ticketAssignee = true && this.isSetTicketAssignee();
1259
    boolean that_present_ticketAssignee = true && that.isSetTicketAssignee();
1260
    if (this_present_ticketAssignee || that_present_ticketAssignee) {
1261
      if (!(this_present_ticketAssignee && that_present_ticketAssignee))
1262
        return false;
1263
      if (!this.ticketAssignee.equals(that.ticketAssignee))
1264
        return false;
1265
    }
1266
 
3028 mandeep.dh 1267
    return true;
1268
  }
1269
 
1270
  @Override
1271
  public int hashCode() {
1272
    return 0;
1273
  }
1274
 
1275
  public int compareTo(Activity other) {
1276
    if (!getClass().equals(other.getClass())) {
1277
      return getClass().getName().compareTo(other.getClass().getName());
1278
    }
1279
 
1280
    int lastComparison = 0;
1281
    Activity typedOther = (Activity)other;
1282
 
3430 rajveer 1283
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
3028 mandeep.dh 1284
    if (lastComparison != 0) {
1285
      return lastComparison;
1286
    }
3430 rajveer 1287
    if (isSetId()) {
1288
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1289
      if (lastComparison != 0) {
1290
        return lastComparison;
1291
      }
3028 mandeep.dh 1292
    }
3430 rajveer 1293
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
3028 mandeep.dh 1294
    if (lastComparison != 0) {
1295
      return lastComparison;
1296
    }
3430 rajveer 1297
    if (isSetDescription()) {
1298
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
1299
      if (lastComparison != 0) {
1300
        return lastComparison;
1301
      }
3028 mandeep.dh 1302
    }
3430 rajveer 1303
    lastComparison = Boolean.valueOf(isSetCreationTimestamp()).compareTo(typedOther.isSetCreationTimestamp());
3028 mandeep.dh 1304
    if (lastComparison != 0) {
1305
      return lastComparison;
1306
    }
3430 rajveer 1307
    if (isSetCreationTimestamp()) {
1308
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creationTimestamp, typedOther.creationTimestamp);
1309
      if (lastComparison != 0) {
1310
        return lastComparison;
1311
      }
3028 mandeep.dh 1312
    }
3430 rajveer 1313
    lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3028 mandeep.dh 1314
    if (lastComparison != 0) {
1315
      return lastComparison;
1316
    }
3430 rajveer 1317
    if (isSetType()) {
1318
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
1319
      if (lastComparison != 0) {
1320
        return lastComparison;
1321
      }
3028 mandeep.dh 1322
    }
3430 rajveer 1323
    lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
3028 mandeep.dh 1324
    if (lastComparison != 0) {
1325
      return lastComparison;
1326
    }
3430 rajveer 1327
    if (isSetCustomerId()) {
1328
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
1329
      if (lastComparison != 0) {
1330
        return lastComparison;
1331
      }
3028 mandeep.dh 1332
    }
3430 rajveer 1333
    lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(typedOther.isSetCreatorId());
3028 mandeep.dh 1334
    if (lastComparison != 0) {
1335
      return lastComparison;
1336
    }
3430 rajveer 1337
    if (isSetCreatorId()) {
1338
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creatorId, typedOther.creatorId);
1339
      if (lastComparison != 0) {
1340
        return lastComparison;
1341
      }
3028 mandeep.dh 1342
    }
3430 rajveer 1343
    lastComparison = Boolean.valueOf(isSetUserEmailId()).compareTo(typedOther.isSetUserEmailId());
3206 mandeep.dh 1344
    if (lastComparison != 0) {
1345
      return lastComparison;
1346
    }
3430 rajveer 1347
    if (isSetUserEmailId()) {
1348
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userEmailId, typedOther.userEmailId);
1349
      if (lastComparison != 0) {
1350
        return lastComparison;
1351
      }
3206 mandeep.dh 1352
    }
3430 rajveer 1353
    lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(typedOther.isSetTicketId());
3028 mandeep.dh 1354
    if (lastComparison != 0) {
1355
      return lastComparison;
1356
    }
3430 rajveer 1357
    if (isSetTicketId()) {
1358
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketId, typedOther.ticketId);
1359
      if (lastComparison != 0) {
1360
        return lastComparison;
1361
      }
3028 mandeep.dh 1362
    }
3430 rajveer 1363
    lastComparison = Boolean.valueOf(isSetTicketPriority()).compareTo(typedOther.isSetTicketPriority());
3028 mandeep.dh 1364
    if (lastComparison != 0) {
1365
      return lastComparison;
1366
    }
3430 rajveer 1367
    if (isSetTicketPriority()) {
1368
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketPriority, typedOther.ticketPriority);
1369
      if (lastComparison != 0) {
1370
        return lastComparison;
1371
      }
3028 mandeep.dh 1372
    }
3430 rajveer 1373
    lastComparison = Boolean.valueOf(isSetTicketAssigneeId()).compareTo(typedOther.isSetTicketAssigneeId());
3028 mandeep.dh 1374
    if (lastComparison != 0) {
1375
      return lastComparison;
1376
    }
3430 rajveer 1377
    if (isSetTicketAssigneeId()) {
1378
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketAssigneeId, typedOther.ticketAssigneeId);
1379
      if (lastComparison != 0) {
1380
        return lastComparison;
1381
      }
3028 mandeep.dh 1382
    }
3430 rajveer 1383
    lastComparison = Boolean.valueOf(isSetTicketStatus()).compareTo(typedOther.isSetTicketStatus());
3028 mandeep.dh 1384
    if (lastComparison != 0) {
1385
      return lastComparison;
1386
    }
3430 rajveer 1387
    if (isSetTicketStatus()) {
1388
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketStatus, typedOther.ticketStatus);
1389
      if (lastComparison != 0) {
1390
        return lastComparison;
1391
      }
3028 mandeep.dh 1392
    }
3430 rajveer 1393
    lastComparison = Boolean.valueOf(isSetTicketCategory()).compareTo(typedOther.isSetTicketCategory());
3028 mandeep.dh 1394
    if (lastComparison != 0) {
1395
      return lastComparison;
1396
    }
3430 rajveer 1397
    if (isSetTicketCategory()) {
1398
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketCategory, typedOther.ticketCategory);
1399
      if (lastComparison != 0) {
1400
        return lastComparison;
1401
      }
3028 mandeep.dh 1402
    }
3430 rajveer 1403
    lastComparison = Boolean.valueOf(isSetTicketDescription()).compareTo(typedOther.isSetTicketDescription());
3106 mandeep.dh 1404
    if (lastComparison != 0) {
1405
      return lastComparison;
1406
    }
3430 rajveer 1407
    if (isSetTicketDescription()) {
1408
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketDescription, typedOther.ticketDescription);
1409
      if (lastComparison != 0) {
1410
        return lastComparison;
1411
      }
3106 mandeep.dh 1412
    }
3430 rajveer 1413
    lastComparison = Boolean.valueOf(isSetIsRead()).compareTo(typedOther.isSetIsRead());
3390 mandeep.dh 1414
    if (lastComparison != 0) {
1415
      return lastComparison;
1416
    }
3430 rajveer 1417
    if (isSetIsRead()) {
1418
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isRead, typedOther.isRead);
1419
      if (lastComparison != 0) {
1420
        return lastComparison;
1421
      }
3390 mandeep.dh 1422
    }
3430 rajveer 1423
    lastComparison = Boolean.valueOf(isSetCustomerMobileNumber()).compareTo(typedOther.isSetCustomerMobileNumber());
3390 mandeep.dh 1424
    if (lastComparison != 0) {
1425
      return lastComparison;
1426
    }
3430 rajveer 1427
    if (isSetCustomerMobileNumber()) {
1428
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerMobileNumber, typedOther.customerMobileNumber);
1429
      if (lastComparison != 0) {
1430
        return lastComparison;
1431
      }
3390 mandeep.dh 1432
    }
3430 rajveer 1433
    lastComparison = Boolean.valueOf(isSetCustomerEmailId()).compareTo(typedOther.isSetCustomerEmailId());
3390 mandeep.dh 1434
    if (lastComparison != 0) {
1435
      return lastComparison;
1436
    }
3430 rajveer 1437
    if (isSetCustomerEmailId()) {
1438
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerEmailId, typedOther.customerEmailId);
1439
      if (lastComparison != 0) {
1440
        return lastComparison;
1441
      }
3390 mandeep.dh 1442
    }
3430 rajveer 1443
    lastComparison = Boolean.valueOf(isSetCustomerName()).compareTo(typedOther.isSetCustomerName());
3390 mandeep.dh 1444
    if (lastComparison != 0) {
1445
      return lastComparison;
1446
    }
3430 rajveer 1447
    if (isSetCustomerName()) {
1448
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerName, typedOther.customerName);
1449
      if (lastComparison != 0) {
1450
        return lastComparison;
1451
      }
3390 mandeep.dh 1452
    }
3430 rajveer 1453
    lastComparison = Boolean.valueOf(isSetCreator()).compareTo(typedOther.isSetCreator());
3390 mandeep.dh 1454
    if (lastComparison != 0) {
1455
      return lastComparison;
1456
    }
3430 rajveer 1457
    if (isSetCreator()) {
1458
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creator, typedOther.creator);
1459
      if (lastComparison != 0) {
1460
        return lastComparison;
1461
      }
3390 mandeep.dh 1462
    }
3430 rajveer 1463
    lastComparison = Boolean.valueOf(isSetTicketAssignee()).compareTo(typedOther.isSetTicketAssignee());
3390 mandeep.dh 1464
    if (lastComparison != 0) {
1465
      return lastComparison;
1466
    }
3430 rajveer 1467
    if (isSetTicketAssignee()) {
1468
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticketAssignee, typedOther.ticketAssignee);
1469
      if (lastComparison != 0) {
1470
        return lastComparison;
1471
      }
3390 mandeep.dh 1472
    }
3028 mandeep.dh 1473
    return 0;
1474
  }
1475
 
3430 rajveer 1476
  public _Fields fieldForId(int fieldId) {
1477
    return _Fields.findByThriftId(fieldId);
1478
  }
1479
 
1480
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1481
    org.apache.thrift.protocol.TField field;
3028 mandeep.dh 1482
    iprot.readStructBegin();
1483
    while (true)
1484
    {
1485
      field = iprot.readFieldBegin();
3430 rajveer 1486
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 1487
        break;
1488
      }
3430 rajveer 1489
      switch (field.id) {
1490
        case 1: // ID
1491
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1492
            this.id = iprot.readI64();
1493
            setIdIsSet(true);
1494
          } else { 
1495
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1496
          }
1497
          break;
1498
        case 2: // DESCRIPTION
1499
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1500
            this.description = iprot.readString();
1501
          } else { 
1502
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1503
          }
1504
          break;
1505
        case 3: // CREATION_TIMESTAMP
1506
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1507
            this.creationTimestamp = iprot.readI64();
1508
            setCreationTimestampIsSet(true);
1509
          } else { 
1510
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1511
          }
1512
          break;
1513
        case 4: // TYPE
1514
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1515
            this.type = ActivityType.findByValue(iprot.readI32());
1516
          } else { 
1517
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1518
          }
1519
          break;
1520
        case 5: // CUSTOMER_ID
1521
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1522
            this.customerId = iprot.readI64();
1523
            setCustomerIdIsSet(true);
1524
          } else { 
1525
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1526
          }
1527
          break;
1528
        case 6: // CREATOR_ID
1529
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1530
            this.creatorId = iprot.readI64();
1531
            setCreatorIdIsSet(true);
1532
          } else { 
1533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1534
          }
1535
          break;
1536
        case 7: // USER_EMAIL_ID
1537
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1538
            this.userEmailId = iprot.readI64();
1539
            setUserEmailIdIsSet(true);
1540
          } else { 
1541
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1542
          }
1543
          break;
1544
        case 8: // TICKET_ID
1545
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1546
            this.ticketId = iprot.readI64();
1547
            setTicketIdIsSet(true);
1548
          } else { 
1549
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1550
          }
1551
          break;
1552
        case 9: // TICKET_PRIORITY
1553
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1554
            this.ticketPriority = TicketPriority.findByValue(iprot.readI32());
1555
          } else { 
1556
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1557
          }
1558
          break;
1559
        case 10: // TICKET_ASSIGNEE_ID
1560
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1561
            this.ticketAssigneeId = iprot.readI64();
1562
            setTicketAssigneeIdIsSet(true);
1563
          } else { 
1564
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1565
          }
1566
          break;
1567
        case 11: // TICKET_STATUS
1568
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1569
            this.ticketStatus = TicketStatus.findByValue(iprot.readI32());
1570
          } else { 
1571
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1572
          }
1573
          break;
1574
        case 12: // TICKET_CATEGORY
1575
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1576
            this.ticketCategory = TicketCategory.findByValue(iprot.readI32());
1577
          } else { 
1578
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1579
          }
1580
          break;
1581
        case 13: // TICKET_DESCRIPTION
1582
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1583
            this.ticketDescription = iprot.readString();
1584
          } else { 
1585
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1586
          }
1587
          break;
1588
        case 14: // IS_READ
1589
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1590
            this.isRead = iprot.readBool();
1591
            setIsReadIsSet(true);
1592
          } else { 
1593
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1594
          }
1595
          break;
1596
        case 15: // CUSTOMER_MOBILE_NUMBER
1597
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1598
            this.customerMobileNumber = iprot.readString();
1599
          } else { 
1600
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1601
          }
1602
          break;
1603
        case 16: // CUSTOMER_EMAIL_ID
1604
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1605
            this.customerEmailId = iprot.readString();
1606
          } else { 
1607
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1608
          }
1609
          break;
1610
        case 17: // CUSTOMER_NAME
1611
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1612
            this.customerName = iprot.readString();
1613
          } else { 
1614
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1615
          }
1616
          break;
1617
        case 18: // CREATOR
1618
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1619
            this.creator = new Agent();
1620
            this.creator.read(iprot);
1621
          } else { 
1622
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1623
          }
1624
          break;
1625
        case 19: // TICKET_ASSIGNEE
1626
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1627
            this.ticketAssignee = new Agent();
1628
            this.ticketAssignee.read(iprot);
1629
          } else { 
1630
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1631
          }
1632
          break;
1633
        default:
1634
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 1635
      }
3430 rajveer 1636
      iprot.readFieldEnd();
3028 mandeep.dh 1637
    }
1638
    iprot.readStructEnd();
1639
    validate();
1640
  }
1641
 
3430 rajveer 1642
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 1643
    validate();
1644
 
1645
    oprot.writeStructBegin(STRUCT_DESC);
1646
    oprot.writeFieldBegin(ID_FIELD_DESC);
1647
    oprot.writeI64(this.id);
1648
    oprot.writeFieldEnd();
1649
    if (this.description != null) {
3168 mandeep.dh 1650
      if (isSetDescription()) {
1651
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
1652
        oprot.writeString(this.description);
1653
        oprot.writeFieldEnd();
1654
      }
3028 mandeep.dh 1655
    }
3106 mandeep.dh 1656
    oprot.writeFieldBegin(CREATION_TIMESTAMP_FIELD_DESC);
1657
    oprot.writeI64(this.creationTimestamp);
3028 mandeep.dh 1658
    oprot.writeFieldEnd();
3106 mandeep.dh 1659
    if (this.type != null) {
1660
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
1661
      oprot.writeI32(this.type.getValue());
3028 mandeep.dh 1662
      oprot.writeFieldEnd();
1663
    }
3269 mandeep.dh 1664
    if (isSetCustomerId()) {
1665
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
1666
      oprot.writeI64(this.customerId);
1667
      oprot.writeFieldEnd();
1668
    }
3028 mandeep.dh 1669
    oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
1670
    oprot.writeI64(this.creatorId);
1671
    oprot.writeFieldEnd();
3390 mandeep.dh 1672
    if (isSetUserEmailId()) {
1673
      oprot.writeFieldBegin(USER_EMAIL_ID_FIELD_DESC);
1674
      oprot.writeI64(this.userEmailId);
3206 mandeep.dh 1675
      oprot.writeFieldEnd();
1676
    }
3168 mandeep.dh 1677
    if (isSetTicketId()) {
1678
      oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);
1679
      oprot.writeI64(this.ticketId);
1680
      oprot.writeFieldEnd();
1681
    }
3028 mandeep.dh 1682
    if (this.ticketPriority != null) {
3168 mandeep.dh 1683
      if (isSetTicketPriority()) {
1684
        oprot.writeFieldBegin(TICKET_PRIORITY_FIELD_DESC);
1685
        oprot.writeI32(this.ticketPriority.getValue());
1686
        oprot.writeFieldEnd();
1687
      }
1688
    }
1689
    if (isSetTicketAssigneeId()) {
1690
      oprot.writeFieldBegin(TICKET_ASSIGNEE_ID_FIELD_DESC);
1691
      oprot.writeI64(this.ticketAssigneeId);
3028 mandeep.dh 1692
      oprot.writeFieldEnd();
1693
    }
1694
    if (this.ticketStatus != null) {
3168 mandeep.dh 1695
      if (isSetTicketStatus()) {
1696
        oprot.writeFieldBegin(TICKET_STATUS_FIELD_DESC);
1697
        oprot.writeI32(this.ticketStatus.getValue());
1698
        oprot.writeFieldEnd();
1699
      }
3028 mandeep.dh 1700
    }
1701
    if (this.ticketCategory != null) {
3168 mandeep.dh 1702
      if (isSetTicketCategory()) {
1703
        oprot.writeFieldBegin(TICKET_CATEGORY_FIELD_DESC);
1704
        oprot.writeI32(this.ticketCategory.getValue());
1705
        oprot.writeFieldEnd();
1706
      }
3028 mandeep.dh 1707
    }
3106 mandeep.dh 1708
    if (this.ticketDescription != null) {
3168 mandeep.dh 1709
      if (isSetTicketDescription()) {
1710
        oprot.writeFieldBegin(TICKET_DESCRIPTION_FIELD_DESC);
1711
        oprot.writeString(this.ticketDescription);
1712
        oprot.writeFieldEnd();
1713
      }
3106 mandeep.dh 1714
    }
3390 mandeep.dh 1715
    if (isSetIsRead()) {
1716
      oprot.writeFieldBegin(IS_READ_FIELD_DESC);
1717
      oprot.writeBool(this.isRead);
1718
      oprot.writeFieldEnd();
1719
    }
1720
    if (this.customerMobileNumber != null) {
1721
      if (isSetCustomerMobileNumber()) {
1722
        oprot.writeFieldBegin(CUSTOMER_MOBILE_NUMBER_FIELD_DESC);
1723
        oprot.writeString(this.customerMobileNumber);
1724
        oprot.writeFieldEnd();
1725
      }
1726
    }
1727
    if (this.customerEmailId != null) {
1728
      if (isSetCustomerEmailId()) {
1729
        oprot.writeFieldBegin(CUSTOMER_EMAIL_ID_FIELD_DESC);
1730
        oprot.writeString(this.customerEmailId);
1731
        oprot.writeFieldEnd();
1732
      }
1733
    }
1734
    if (this.customerName != null) {
1735
      if (isSetCustomerName()) {
1736
        oprot.writeFieldBegin(CUSTOMER_NAME_FIELD_DESC);
1737
        oprot.writeString(this.customerName);
1738
        oprot.writeFieldEnd();
1739
      }
1740
    }
1741
    if (this.creator != null) {
1742
      if (isSetCreator()) {
1743
        oprot.writeFieldBegin(CREATOR_FIELD_DESC);
1744
        this.creator.write(oprot);
1745
        oprot.writeFieldEnd();
1746
      }
1747
    }
1748
    if (this.ticketAssignee != null) {
1749
      if (isSetTicketAssignee()) {
1750
        oprot.writeFieldBegin(TICKET_ASSIGNEE_FIELD_DESC);
1751
        this.ticketAssignee.write(oprot);
1752
        oprot.writeFieldEnd();
1753
      }
1754
    }
3028 mandeep.dh 1755
    oprot.writeFieldStop();
1756
    oprot.writeStructEnd();
1757
  }
1758
 
1759
  @Override
1760
  public String toString() {
1761
    StringBuilder sb = new StringBuilder("Activity(");
1762
    boolean first = true;
1763
 
1764
    sb.append("id:");
1765
    sb.append(this.id);
1766
    first = false;
3168 mandeep.dh 1767
    if (isSetDescription()) {
1768
      if (!first) sb.append(", ");
1769
      sb.append("description:");
1770
      if (this.description == null) {
1771
        sb.append("null");
1772
      } else {
1773
        sb.append(this.description);
1774
      }
1775
      first = false;
3028 mandeep.dh 1776
    }
1777
    if (!first) sb.append(", ");
3106 mandeep.dh 1778
    sb.append("creationTimestamp:");
1779
    sb.append(this.creationTimestamp);
3028 mandeep.dh 1780
    first = false;
1781
    if (!first) sb.append(", ");
3106 mandeep.dh 1782
    sb.append("type:");
1783
    if (this.type == null) {
3028 mandeep.dh 1784
      sb.append("null");
1785
    } else {
3106 mandeep.dh 1786
      sb.append(this.type);
3028 mandeep.dh 1787
    }
1788
    first = false;
3269 mandeep.dh 1789
    if (isSetCustomerId()) {
1790
      if (!first) sb.append(", ");
1791
      sb.append("customerId:");
1792
      sb.append(this.customerId);
1793
      first = false;
1794
    }
3028 mandeep.dh 1795
    if (!first) sb.append(", ");
1796
    sb.append("creatorId:");
1797
    sb.append(this.creatorId);
1798
    first = false;
3390 mandeep.dh 1799
    if (isSetUserEmailId()) {
3206 mandeep.dh 1800
      if (!first) sb.append(", ");
3390 mandeep.dh 1801
      sb.append("userEmailId:");
1802
      sb.append(this.userEmailId);
3206 mandeep.dh 1803
      first = false;
1804
    }
3168 mandeep.dh 1805
    if (isSetTicketId()) {
1806
      if (!first) sb.append(", ");
1807
      sb.append("ticketId:");
1808
      sb.append(this.ticketId);
1809
      first = false;
1810
    }
1811
    if (isSetTicketPriority()) {
1812
      if (!first) sb.append(", ");
1813
      sb.append("ticketPriority:");
1814
      if (this.ticketPriority == null) {
1815
        sb.append("null");
1816
      } else {
1817
        sb.append(this.ticketPriority);
3028 mandeep.dh 1818
      }
3168 mandeep.dh 1819
      first = false;
1820
    }
1821
    if (isSetTicketAssigneeId()) {
1822
      if (!first) sb.append(", ");
1823
      sb.append("ticketAssigneeId:");
1824
      sb.append(this.ticketAssigneeId);
1825
      first = false;
1826
    }
1827
    if (isSetTicketStatus()) {
1828
      if (!first) sb.append(", ");
1829
      sb.append("ticketStatus:");
1830
      if (this.ticketStatus == null) {
1831
        sb.append("null");
1832
      } else {
1833
        sb.append(this.ticketStatus);
3028 mandeep.dh 1834
      }
3168 mandeep.dh 1835
      first = false;
3028 mandeep.dh 1836
    }
3168 mandeep.dh 1837
    if (isSetTicketCategory()) {
1838
      if (!first) sb.append(", ");
1839
      sb.append("ticketCategory:");
1840
      if (this.ticketCategory == null) {
1841
        sb.append("null");
1842
      } else {
1843
        sb.append(this.ticketCategory);
3028 mandeep.dh 1844
      }
3168 mandeep.dh 1845
      first = false;
3028 mandeep.dh 1846
    }
3168 mandeep.dh 1847
    if (isSetTicketDescription()) {
1848
      if (!first) sb.append(", ");
1849
      sb.append("ticketDescription:");
1850
      if (this.ticketDescription == null) {
1851
        sb.append("null");
1852
      } else {
1853
        sb.append(this.ticketDescription);
3028 mandeep.dh 1854
      }
3168 mandeep.dh 1855
      first = false;
3028 mandeep.dh 1856
    }
3390 mandeep.dh 1857
    if (isSetIsRead()) {
1858
      if (!first) sb.append(", ");
1859
      sb.append("isRead:");
1860
      sb.append(this.isRead);
1861
      first = false;
1862
    }
1863
    if (isSetCustomerMobileNumber()) {
1864
      if (!first) sb.append(", ");
1865
      sb.append("customerMobileNumber:");
1866
      if (this.customerMobileNumber == null) {
1867
        sb.append("null");
1868
      } else {
1869
        sb.append(this.customerMobileNumber);
1870
      }
1871
      first = false;
1872
    }
1873
    if (isSetCustomerEmailId()) {
1874
      if (!first) sb.append(", ");
1875
      sb.append("customerEmailId:");
1876
      if (this.customerEmailId == null) {
1877
        sb.append("null");
1878
      } else {
1879
        sb.append(this.customerEmailId);
1880
      }
1881
      first = false;
1882
    }
1883
    if (isSetCustomerName()) {
1884
      if (!first) sb.append(", ");
1885
      sb.append("customerName:");
1886
      if (this.customerName == null) {
1887
        sb.append("null");
1888
      } else {
1889
        sb.append(this.customerName);
1890
      }
1891
      first = false;
1892
    }
1893
    if (isSetCreator()) {
1894
      if (!first) sb.append(", ");
1895
      sb.append("creator:");
1896
      if (this.creator == null) {
1897
        sb.append("null");
1898
      } else {
1899
        sb.append(this.creator);
1900
      }
1901
      first = false;
1902
    }
1903
    if (isSetTicketAssignee()) {
1904
      if (!first) sb.append(", ");
1905
      sb.append("ticketAssignee:");
1906
      if (this.ticketAssignee == null) {
1907
        sb.append("null");
1908
      } else {
1909
        sb.append(this.ticketAssignee);
1910
      }
1911
      first = false;
1912
    }
3028 mandeep.dh 1913
    sb.append(")");
1914
    return sb.toString();
1915
  }
1916
 
3430 rajveer 1917
  public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 1918
    // check for required fields
1919
  }
1920
 
3430 rajveer 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
 
3028 mandeep.dh 1939
}
1940