Subversion Repositories SmartDukaan

Rev

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