Subversion Repositories SmartDukaan

Rev

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

Rev 3269 Rev 3390
Line 29... Line 29...
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
30
  private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)2);
30
  private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)2);
31
  private static final TField CREATION_TIMESTAMP_FIELD_DESC = new TField("creationTimestamp", TType.I64, (short)3);
31
  private static final TField CREATION_TIMESTAMP_FIELD_DESC = new TField("creationTimestamp", TType.I64, (short)3);
32
  private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)4);
32
  private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)4);
33
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)5);
33
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)5);
34
  private static final TField CUSTOMER_MOBILE_NUMBER_FIELD_DESC = new TField("customerMobileNumber", TType.STRING, (short)6);
34
  private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)6);
35
  private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)7);
35
  private static final TField USER_EMAIL_ID_FIELD_DESC = new TField("userEmailId", TType.I64, (short)7);
36
  private static final TField EMAIL_ID_FIELD_DESC = new TField("emailId", TType.I64, (short)8);
36
  private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)8);
37
  private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)9);
37
  private static final TField TICKET_PRIORITY_FIELD_DESC = new TField("ticketPriority", TType.I32, (short)9);
38
  private static final TField TICKET_PRIORITY_FIELD_DESC = new TField("ticketPriority", TType.I32, (short)10);
38
  private static final TField TICKET_ASSIGNEE_ID_FIELD_DESC = new TField("ticketAssigneeId", TType.I64, (short)10);
39
  private static final TField TICKET_ASSIGNEE_ID_FIELD_DESC = new TField("ticketAssigneeId", TType.I64, (short)11);
39
  private static final TField TICKET_STATUS_FIELD_DESC = new TField("ticketStatus", TType.I32, (short)11);
40
  private static final TField TICKET_STATUS_FIELD_DESC = new TField("ticketStatus", TType.I32, (short)12);
40
  private static final TField TICKET_CATEGORY_FIELD_DESC = new TField("ticketCategory", TType.I32, (short)12);
41
  private static final TField TICKET_CATEGORY_FIELD_DESC = new TField("ticketCategory", TType.I32, (short)13);
41
  private static final TField TICKET_DESCRIPTION_FIELD_DESC = new TField("ticketDescription", TType.STRING, (short)13);
-
 
42
  private static final TField IS_READ_FIELD_DESC = new TField("isRead", TType.BOOL, (short)14);
-
 
43
  private static final TField CUSTOMER_MOBILE_NUMBER_FIELD_DESC = new TField("customerMobileNumber", TType.STRING, (short)15);
-
 
44
  private static final TField CUSTOMER_EMAIL_ID_FIELD_DESC = new TField("customerEmailId", TType.STRING, (short)16);
-
 
45
  private static final TField CUSTOMER_NAME_FIELD_DESC = new TField("customerName", TType.STRING, (short)17);
-
 
46
  private static final TField CREATOR_FIELD_DESC = new TField("creator", TType.STRUCT, (short)18);
42
  private static final TField TICKET_DESCRIPTION_FIELD_DESC = new TField("ticketDescription", TType.STRING, (short)14);
47
  private static final TField TICKET_ASSIGNEE_FIELD_DESC = new TField("ticketAssignee", TType.STRUCT, (short)19);
43
 
48
 
44
  private long id;
49
  private long id;
45
  private String description;
50
  private String description;
46
  private long creationTimestamp;
51
  private long creationTimestamp;
47
  private ActivityType type;
52
  private ActivityType type;
48
  private long customerId;
53
  private long customerId;
49
  private String customerMobileNumber;
-
 
50
  private long creatorId;
54
  private long creatorId;
51
  private long emailId;
55
  private long userEmailId;
52
  private long ticketId;
56
  private long ticketId;
53
  private TicketPriority ticketPriority;
57
  private TicketPriority ticketPriority;
54
  private long ticketAssigneeId;
58
  private long ticketAssigneeId;
55
  private TicketStatus ticketStatus;
59
  private TicketStatus ticketStatus;
56
  private TicketCategory ticketCategory;
60
  private TicketCategory ticketCategory;
57
  private String ticketDescription;
61
  private String ticketDescription;
-
 
62
  private boolean isRead;
-
 
63
  private String customerMobileNumber;
-
 
64
  private String customerEmailId;
-
 
65
  private String customerName;
-
 
66
  private Agent creator;
-
 
67
  private Agent ticketAssignee;
58
 
68
 
59
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
69
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
60
  public enum _Fields implements TFieldIdEnum {
70
  public enum _Fields implements TFieldIdEnum {
61
    ID((short)1, "id"),
71
    ID((short)1, "id"),
62
    DESCRIPTION((short)2, "description"),
72
    DESCRIPTION((short)2, "description"),
Line 65... Line 75...
65
     * 
75
     * 
66
     * @see ActivityType
76
     * @see ActivityType
67
     */
77
     */
68
    TYPE((short)4, "type"),
78
    TYPE((short)4, "type"),
69
    CUSTOMER_ID((short)5, "customerId"),
79
    CUSTOMER_ID((short)5, "customerId"),
70
    CUSTOMER_MOBILE_NUMBER((short)6, "customerMobileNumber"),
-
 
71
    CREATOR_ID((short)7, "creatorId"),
80
    CREATOR_ID((short)6, "creatorId"),
72
    EMAIL_ID((short)8, "emailId"),
81
    USER_EMAIL_ID((short)7, "userEmailId"),
73
    TICKET_ID((short)9, "ticketId"),
82
    TICKET_ID((short)8, "ticketId"),
74
    /**
83
    /**
75
     * 
84
     * 
76
     * @see TicketPriority
85
     * @see TicketPriority
77
     */
86
     */
78
    TICKET_PRIORITY((short)10, "ticketPriority"),
87
    TICKET_PRIORITY((short)9, "ticketPriority"),
79
    TICKET_ASSIGNEE_ID((short)11, "ticketAssigneeId"),
88
    TICKET_ASSIGNEE_ID((short)10, "ticketAssigneeId"),
80
    /**
89
    /**
81
     * 
90
     * 
82
     * @see TicketStatus
91
     * @see TicketStatus
83
     */
92
     */
84
    TICKET_STATUS((short)12, "ticketStatus"),
93
    TICKET_STATUS((short)11, "ticketStatus"),
85
    /**
94
    /**
86
     * 
95
     * 
87
     * @see TicketCategory
96
     * @see TicketCategory
88
     */
97
     */
89
    TICKET_CATEGORY((short)13, "ticketCategory"),
98
    TICKET_CATEGORY((short)12, "ticketCategory"),
90
    TICKET_DESCRIPTION((short)14, "ticketDescription");
99
    TICKET_DESCRIPTION((short)13, "ticketDescription"),
-
 
100
    IS_READ((short)14, "isRead"),
-
 
101
    CUSTOMER_MOBILE_NUMBER((short)15, "customerMobileNumber"),
-
 
102
    CUSTOMER_EMAIL_ID((short)16, "customerEmailId"),
-
 
103
    CUSTOMER_NAME((short)17, "customerName"),
-
 
104
    CREATOR((short)18, "creator"),
-
 
105
    TICKET_ASSIGNEE((short)19, "ticketAssignee");
91
 
106
 
92
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
107
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
93
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
108
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
94
 
109
 
95
    static {
110
    static {
Line 143... Line 158...
143
  // isset id assignments
158
  // isset id assignments
144
  private static final int __ID_ISSET_ID = 0;
159
  private static final int __ID_ISSET_ID = 0;
145
  private static final int __CREATIONTIMESTAMP_ISSET_ID = 1;
160
  private static final int __CREATIONTIMESTAMP_ISSET_ID = 1;
146
  private static final int __CUSTOMERID_ISSET_ID = 2;
161
  private static final int __CUSTOMERID_ISSET_ID = 2;
147
  private static final int __CREATORID_ISSET_ID = 3;
162
  private static final int __CREATORID_ISSET_ID = 3;
148
  private static final int __EMAILID_ISSET_ID = 4;
163
  private static final int __USEREMAILID_ISSET_ID = 4;
149
  private static final int __TICKETID_ISSET_ID = 5;
164
  private static final int __TICKETID_ISSET_ID = 5;
150
  private static final int __TICKETASSIGNEEID_ISSET_ID = 6;
165
  private static final int __TICKETASSIGNEEID_ISSET_ID = 6;
-
 
166
  private static final int __ISREAD_ISSET_ID = 7;
151
  private BitSet __isset_bit_vector = new BitSet(7);
167
  private BitSet __isset_bit_vector = new BitSet(8);
152
 
168
 
153
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
169
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
154
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
170
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
155
        new FieldValueMetaData(TType.I64)));
171
        new FieldValueMetaData(TType.I64)));
156
    put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.OPTIONAL, 
172
    put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.OPTIONAL, 
Line 159... Line 175...
159
        new FieldValueMetaData(TType.I64)));
175
        new FieldValueMetaData(TType.I64)));
160
    put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
176
    put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
161
        new EnumMetaData(TType.ENUM, ActivityType.class)));
177
        new EnumMetaData(TType.ENUM, ActivityType.class)));
162
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.OPTIONAL, 
178
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.OPTIONAL, 
163
        new FieldValueMetaData(TType.I64)));
179
        new FieldValueMetaData(TType.I64)));
164
    put(_Fields.CUSTOMER_MOBILE_NUMBER, new FieldMetaData("customerMobileNumber", TFieldRequirementType.OPTIONAL, 
-
 
165
        new FieldValueMetaData(TType.STRING)));
-
 
166
    put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT, 
180
    put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT, 
167
        new FieldValueMetaData(TType.I64)));
181
        new FieldValueMetaData(TType.I64)));
168
    put(_Fields.EMAIL_ID, new FieldMetaData("emailId", TFieldRequirementType.OPTIONAL, 
182
    put(_Fields.USER_EMAIL_ID, new FieldMetaData("userEmailId", TFieldRequirementType.OPTIONAL, 
169
        new FieldValueMetaData(TType.I64)));
183
        new FieldValueMetaData(TType.I64)));
170
    put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.OPTIONAL, 
184
    put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.OPTIONAL, 
171
        new FieldValueMetaData(TType.I64)));
185
        new FieldValueMetaData(TType.I64)));
172
    put(_Fields.TICKET_PRIORITY, new FieldMetaData("ticketPriority", TFieldRequirementType.OPTIONAL, 
186
    put(_Fields.TICKET_PRIORITY, new FieldMetaData("ticketPriority", TFieldRequirementType.OPTIONAL, 
173
        new EnumMetaData(TType.ENUM, TicketPriority.class)));
187
        new EnumMetaData(TType.ENUM, TicketPriority.class)));
Line 177... Line 191...
177
        new EnumMetaData(TType.ENUM, TicketStatus.class)));
191
        new EnumMetaData(TType.ENUM, TicketStatus.class)));
178
    put(_Fields.TICKET_CATEGORY, new FieldMetaData("ticketCategory", TFieldRequirementType.OPTIONAL, 
192
    put(_Fields.TICKET_CATEGORY, new FieldMetaData("ticketCategory", TFieldRequirementType.OPTIONAL, 
179
        new EnumMetaData(TType.ENUM, TicketCategory.class)));
193
        new EnumMetaData(TType.ENUM, TicketCategory.class)));
180
    put(_Fields.TICKET_DESCRIPTION, new FieldMetaData("ticketDescription", TFieldRequirementType.OPTIONAL, 
194
    put(_Fields.TICKET_DESCRIPTION, new FieldMetaData("ticketDescription", TFieldRequirementType.OPTIONAL, 
181
        new FieldValueMetaData(TType.STRING)));
195
        new FieldValueMetaData(TType.STRING)));
-
 
196
    put(_Fields.IS_READ, new FieldMetaData("isRead", TFieldRequirementType.OPTIONAL, 
-
 
197
        new FieldValueMetaData(TType.BOOL)));
-
 
198
    put(_Fields.CUSTOMER_MOBILE_NUMBER, new FieldMetaData("customerMobileNumber", TFieldRequirementType.OPTIONAL, 
-
 
199
        new FieldValueMetaData(TType.STRING)));
-
 
200
    put(_Fields.CUSTOMER_EMAIL_ID, new FieldMetaData("customerEmailId", TFieldRequirementType.OPTIONAL, 
-
 
201
        new FieldValueMetaData(TType.STRING)));
-
 
202
    put(_Fields.CUSTOMER_NAME, new FieldMetaData("customerName", TFieldRequirementType.OPTIONAL, 
-
 
203
        new FieldValueMetaData(TType.STRING)));
-
 
204
    put(_Fields.CREATOR, new FieldMetaData("creator", TFieldRequirementType.OPTIONAL, 
-
 
205
        new StructMetaData(TType.STRUCT, Agent.class)));
-
 
206
    put(_Fields.TICKET_ASSIGNEE, new FieldMetaData("ticketAssignee", TFieldRequirementType.OPTIONAL, 
-
 
207
        new StructMetaData(TType.STRUCT, Agent.class)));
182
  }});
208
  }});
183
 
209
 
184
  static {
210
  static {
185
    FieldMetaData.addStructMetaDataMap(Activity.class, metaDataMap);
211
    FieldMetaData.addStructMetaDataMap(Activity.class, metaDataMap);
186
  }
212
  }
Line 217... Line 243...
217
    this.creationTimestamp = other.creationTimestamp;
243
    this.creationTimestamp = other.creationTimestamp;
218
    if (other.isSetType()) {
244
    if (other.isSetType()) {
219
      this.type = other.type;
245
      this.type = other.type;
220
    }
246
    }
221
    this.customerId = other.customerId;
247
    this.customerId = other.customerId;
222
    if (other.isSetCustomerMobileNumber()) {
-
 
223
      this.customerMobileNumber = other.customerMobileNumber;
-
 
224
    }
-
 
225
    this.creatorId = other.creatorId;
248
    this.creatorId = other.creatorId;
226
    this.emailId = other.emailId;
249
    this.userEmailId = other.userEmailId;
227
    this.ticketId = other.ticketId;
250
    this.ticketId = other.ticketId;
228
    if (other.isSetTicketPriority()) {
251
    if (other.isSetTicketPriority()) {
229
      this.ticketPriority = other.ticketPriority;
252
      this.ticketPriority = other.ticketPriority;
230
    }
253
    }
231
    this.ticketAssigneeId = other.ticketAssigneeId;
254
    this.ticketAssigneeId = other.ticketAssigneeId;
Line 236... Line 259...
236
      this.ticketCategory = other.ticketCategory;
259
      this.ticketCategory = other.ticketCategory;
237
    }
260
    }
238
    if (other.isSetTicketDescription()) {
261
    if (other.isSetTicketDescription()) {
239
      this.ticketDescription = other.ticketDescription;
262
      this.ticketDescription = other.ticketDescription;
240
    }
263
    }
-
 
264
    this.isRead = other.isRead;
-
 
265
    if (other.isSetCustomerMobileNumber()) {
-
 
266
      this.customerMobileNumber = other.customerMobileNumber;
-
 
267
    }
-
 
268
    if (other.isSetCustomerEmailId()) {
-
 
269
      this.customerEmailId = other.customerEmailId;
-
 
270
    }
-
 
271
    if (other.isSetCustomerName()) {
-
 
272
      this.customerName = other.customerName;
-
 
273
    }
-
 
274
    if (other.isSetCreator()) {
-
 
275
      this.creator = new Agent(other.creator);
-
 
276
    }
-
 
277
    if (other.isSetTicketAssignee()) {
-
 
278
      this.ticketAssignee = new Agent(other.ticketAssignee);
-
 
279
    }
241
  }
280
  }
242
 
281
 
243
  public Activity deepCopy() {
282
  public Activity deepCopy() {
244
    return new Activity(this);
283
    return new Activity(this);
245
  }
284
  }
Line 372... Line 411...
372
 
411
 
373
  public void setCustomerIdIsSet(boolean value) {
412
  public void setCustomerIdIsSet(boolean value) {
374
    __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
413
    __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
375
  }
414
  }
376
 
415
 
377
  public String getCustomerMobileNumber() {
-
 
378
    return this.customerMobileNumber;
-
 
379
  }
-
 
380
 
-
 
381
  public Activity setCustomerMobileNumber(String customerMobileNumber) {
-
 
382
    this.customerMobileNumber = customerMobileNumber;
-
 
383
    return this;
-
 
384
  }
-
 
385
 
-
 
386
  public void unsetCustomerMobileNumber() {
-
 
387
    this.customerMobileNumber = null;
-
 
388
  }
-
 
389
 
-
 
390
  /** Returns true if field customerMobileNumber is set (has been asigned a value) and false otherwise */
-
 
391
  public boolean isSetCustomerMobileNumber() {
-
 
392
    return this.customerMobileNumber != null;
-
 
393
  }
-
 
394
 
-
 
395
  public void setCustomerMobileNumberIsSet(boolean value) {
-
 
396
    if (!value) {
-
 
397
      this.customerMobileNumber = null;
-
 
398
    }
-
 
399
  }
-
 
400
 
-
 
401
  public long getCreatorId() {
416
  public long getCreatorId() {
402
    return this.creatorId;
417
    return this.creatorId;
403
  }
418
  }
404
 
419
 
405
  public Activity setCreatorId(long creatorId) {
420
  public Activity setCreatorId(long creatorId) {
Line 419... Line 434...
419
 
434
 
420
  public void setCreatorIdIsSet(boolean value) {
435
  public void setCreatorIdIsSet(boolean value) {
421
    __isset_bit_vector.set(__CREATORID_ISSET_ID, value);
436
    __isset_bit_vector.set(__CREATORID_ISSET_ID, value);
422
  }
437
  }
423
 
438
 
424
  public long getEmailId() {
439
  public long getUserEmailId() {
425
    return this.emailId;
440
    return this.userEmailId;
426
  }
441
  }
427
 
442
 
428
  public Activity setEmailId(long emailId) {
443
  public Activity setUserEmailId(long userEmailId) {
429
    this.emailId = emailId;
444
    this.userEmailId = userEmailId;
430
    setEmailIdIsSet(true);
445
    setUserEmailIdIsSet(true);
431
    return this;
446
    return this;
432
  }
447
  }
433
 
448
 
434
  public void unsetEmailId() {
449
  public void unsetUserEmailId() {
435
    __isset_bit_vector.clear(__EMAILID_ISSET_ID);
450
    __isset_bit_vector.clear(__USEREMAILID_ISSET_ID);
436
  }
451
  }
437
 
452
 
438
  /** Returns true if field emailId is set (has been asigned a value) and false otherwise */
453
  /** Returns true if field userEmailId is set (has been asigned a value) and false otherwise */
439
  public boolean isSetEmailId() {
454
  public boolean isSetUserEmailId() {
440
    return __isset_bit_vector.get(__EMAILID_ISSET_ID);
455
    return __isset_bit_vector.get(__USEREMAILID_ISSET_ID);
441
  }
456
  }
442
 
457
 
443
  public void setEmailIdIsSet(boolean value) {
458
  public void setUserEmailIdIsSet(boolean value) {
444
    __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
459
    __isset_bit_vector.set(__USEREMAILID_ISSET_ID, value);
445
  }
460
  }
446
 
461
 
447
  public long getTicketId() {
462
  public long getTicketId() {
448
    return this.ticketId;
463
    return this.ticketId;
449
  }
464
  }
Line 608... Line 623...
608
    if (!value) {
623
    if (!value) {
609
      this.ticketDescription = null;
624
      this.ticketDescription = null;
610
    }
625
    }
611
  }
626
  }
612
 
627
 
-
 
628
  public boolean isIsRead() {
-
 
629
    return this.isRead;
-
 
630
  }
-
 
631
 
-
 
632
  public Activity setIsRead(boolean isRead) {
-
 
633
    this.isRead = isRead;
-
 
634
    setIsReadIsSet(true);
-
 
635
    return this;
-
 
636
  }
-
 
637
 
-
 
638
  public void unsetIsRead() {
-
 
639
    __isset_bit_vector.clear(__ISREAD_ISSET_ID);
-
 
640
  }
-
 
641
 
-
 
642
  /** Returns true if field isRead is set (has been asigned a value) and false otherwise */
-
 
643
  public boolean isSetIsRead() {
-
 
644
    return __isset_bit_vector.get(__ISREAD_ISSET_ID);
-
 
645
  }
-
 
646
 
-
 
647
  public void setIsReadIsSet(boolean value) {
-
 
648
    __isset_bit_vector.set(__ISREAD_ISSET_ID, value);
-
 
649
  }
-
 
650
 
-
 
651
  public String getCustomerMobileNumber() {
-
 
652
    return this.customerMobileNumber;
-
 
653
  }
-
 
654
 
-
 
655
  public Activity setCustomerMobileNumber(String customerMobileNumber) {
-
 
656
    this.customerMobileNumber = customerMobileNumber;
-
 
657
    return this;
-
 
658
  }
-
 
659
 
-
 
660
  public void unsetCustomerMobileNumber() {
-
 
661
    this.customerMobileNumber = null;
-
 
662
  }
-
 
663
 
-
 
664
  /** Returns true if field customerMobileNumber is set (has been asigned a value) and false otherwise */
-
 
665
  public boolean isSetCustomerMobileNumber() {
-
 
666
    return this.customerMobileNumber != null;
-
 
667
  }
-
 
668
 
-
 
669
  public void setCustomerMobileNumberIsSet(boolean value) {
-
 
670
    if (!value) {
-
 
671
      this.customerMobileNumber = null;
-
 
672
    }
-
 
673
  }
-
 
674
 
-
 
675
  public String getCustomerEmailId() {
-
 
676
    return this.customerEmailId;
-
 
677
  }
-
 
678
 
-
 
679
  public Activity setCustomerEmailId(String customerEmailId) {
-
 
680
    this.customerEmailId = customerEmailId;
-
 
681
    return this;
-
 
682
  }
-
 
683
 
-
 
684
  public void unsetCustomerEmailId() {
-
 
685
    this.customerEmailId = null;
-
 
686
  }
-
 
687
 
-
 
688
  /** Returns true if field customerEmailId is set (has been asigned a value) and false otherwise */
-
 
689
  public boolean isSetCustomerEmailId() {
-
 
690
    return this.customerEmailId != null;
-
 
691
  }
-
 
692
 
-
 
693
  public void setCustomerEmailIdIsSet(boolean value) {
-
 
694
    if (!value) {
-
 
695
      this.customerEmailId = null;
-
 
696
    }
-
 
697
  }
-
 
698
 
-
 
699
  public String getCustomerName() {
-
 
700
    return this.customerName;
-
 
701
  }
-
 
702
 
-
 
703
  public Activity setCustomerName(String customerName) {
-
 
704
    this.customerName = customerName;
-
 
705
    return this;
-
 
706
  }
-
 
707
 
-
 
708
  public void unsetCustomerName() {
-
 
709
    this.customerName = null;
-
 
710
  }
-
 
711
 
-
 
712
  /** Returns true if field customerName is set (has been asigned a value) and false otherwise */
-
 
713
  public boolean isSetCustomerName() {
-
 
714
    return this.customerName != null;
-
 
715
  }
-
 
716
 
-
 
717
  public void setCustomerNameIsSet(boolean value) {
-
 
718
    if (!value) {
-
 
719
      this.customerName = null;
-
 
720
    }
-
 
721
  }
-
 
722
 
-
 
723
  public Agent getCreator() {
-
 
724
    return this.creator;
-
 
725
  }
-
 
726
 
-
 
727
  public Activity setCreator(Agent creator) {
-
 
728
    this.creator = creator;
-
 
729
    return this;
-
 
730
  }
-
 
731
 
-
 
732
  public void unsetCreator() {
-
 
733
    this.creator = null;
-
 
734
  }
-
 
735
 
-
 
736
  /** Returns true if field creator is set (has been asigned a value) and false otherwise */
-
 
737
  public boolean isSetCreator() {
-
 
738
    return this.creator != null;
-
 
739
  }
-
 
740
 
-
 
741
  public void setCreatorIsSet(boolean value) {
-
 
742
    if (!value) {
-
 
743
      this.creator = null;
-
 
744
    }
-
 
745
  }
-
 
746
 
-
 
747
  public Agent getTicketAssignee() {
-
 
748
    return this.ticketAssignee;
-
 
749
  }
-
 
750
 
-
 
751
  public Activity setTicketAssignee(Agent ticketAssignee) {
-
 
752
    this.ticketAssignee = ticketAssignee;
-
 
753
    return this;
-
 
754
  }
-
 
755
 
-
 
756
  public void unsetTicketAssignee() {
-
 
757
    this.ticketAssignee = null;
-
 
758
  }
-
 
759
 
-
 
760
  /** Returns true if field ticketAssignee is set (has been asigned a value) and false otherwise */
-
 
761
  public boolean isSetTicketAssignee() {
-
 
762
    return this.ticketAssignee != null;
-
 
763
  }
-
 
764
 
-
 
765
  public void setTicketAssigneeIsSet(boolean value) {
-
 
766
    if (!value) {
-
 
767
      this.ticketAssignee = null;
-
 
768
    }
-
 
769
  }
-
 
770
 
613
  public void setFieldValue(_Fields field, Object value) {
771
  public void setFieldValue(_Fields field, Object value) {
614
    switch (field) {
772
    switch (field) {
615
    case ID:
773
    case ID:
616
      if (value == null) {
774
      if (value == null) {
617
        unsetId();
775
        unsetId();
Line 650... Line 808...
650
      } else {
808
      } else {
651
        setCustomerId((Long)value);
809
        setCustomerId((Long)value);
652
      }
810
      }
653
      break;
811
      break;
654
 
812
 
655
    case CUSTOMER_MOBILE_NUMBER:
-
 
656
      if (value == null) {
-
 
657
        unsetCustomerMobileNumber();
-
 
658
      } else {
-
 
659
        setCustomerMobileNumber((String)value);
-
 
660
      }
-
 
661
      break;
-
 
662
 
-
 
663
    case CREATOR_ID:
813
    case CREATOR_ID:
664
      if (value == null) {
814
      if (value == null) {
665
        unsetCreatorId();
815
        unsetCreatorId();
666
      } else {
816
      } else {
667
        setCreatorId((Long)value);
817
        setCreatorId((Long)value);
668
      }
818
      }
669
      break;
819
      break;
670
 
820
 
671
    case EMAIL_ID:
821
    case USER_EMAIL_ID:
672
      if (value == null) {
822
      if (value == null) {
673
        unsetEmailId();
823
        unsetUserEmailId();
674
      } else {
824
      } else {
675
        setEmailId((Long)value);
825
        setUserEmailId((Long)value);
676
      }
826
      }
677
      break;
827
      break;
678
 
828
 
679
    case TICKET_ID:
829
    case TICKET_ID:
680
      if (value == null) {
830
      if (value == null) {
Line 722... Line 872...
722
      } else {
872
      } else {
723
        setTicketDescription((String)value);
873
        setTicketDescription((String)value);
724
      }
874
      }
725
      break;
875
      break;
726
 
876
 
-
 
877
    case IS_READ:
-
 
878
      if (value == null) {
-
 
879
        unsetIsRead();
-
 
880
      } else {
-
 
881
        setIsRead((Boolean)value);
-
 
882
      }
-
 
883
      break;
-
 
884
 
-
 
885
    case CUSTOMER_MOBILE_NUMBER:
-
 
886
      if (value == null) {
-
 
887
        unsetCustomerMobileNumber();
-
 
888
      } else {
-
 
889
        setCustomerMobileNumber((String)value);
-
 
890
      }
-
 
891
      break;
-
 
892
 
-
 
893
    case CUSTOMER_EMAIL_ID:
-
 
894
      if (value == null) {
-
 
895
        unsetCustomerEmailId();
-
 
896
      } else {
-
 
897
        setCustomerEmailId((String)value);
-
 
898
      }
-
 
899
      break;
-
 
900
 
-
 
901
    case CUSTOMER_NAME:
-
 
902
      if (value == null) {
-
 
903
        unsetCustomerName();
-
 
904
      } else {
-
 
905
        setCustomerName((String)value);
-
 
906
      }
-
 
907
      break;
-
 
908
 
-
 
909
    case CREATOR:
-
 
910
      if (value == null) {
-
 
911
        unsetCreator();
-
 
912
      } else {
-
 
913
        setCreator((Agent)value);
-
 
914
      }
-
 
915
      break;
-
 
916
 
-
 
917
    case TICKET_ASSIGNEE:
-
 
918
      if (value == null) {
-
 
919
        unsetTicketAssignee();
-
 
920
      } else {
-
 
921
        setTicketAssignee((Agent)value);
-
 
922
      }
-
 
923
      break;
-
 
924
 
727
    }
925
    }
728
  }
926
  }
729
 
927
 
730
  public void setFieldValue(int fieldID, Object value) {
928
  public void setFieldValue(int fieldID, Object value) {
731
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
929
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
Line 746... Line 944...
746
      return getType();
944
      return getType();
747
 
945
 
748
    case CUSTOMER_ID:
946
    case CUSTOMER_ID:
749
      return new Long(getCustomerId());
947
      return new Long(getCustomerId());
750
 
948
 
751
    case CUSTOMER_MOBILE_NUMBER:
-
 
752
      return getCustomerMobileNumber();
-
 
753
 
-
 
754
    case CREATOR_ID:
949
    case CREATOR_ID:
755
      return new Long(getCreatorId());
950
      return new Long(getCreatorId());
756
 
951
 
757
    case EMAIL_ID:
952
    case USER_EMAIL_ID:
758
      return new Long(getEmailId());
953
      return new Long(getUserEmailId());
759
 
954
 
760
    case TICKET_ID:
955
    case TICKET_ID:
761
      return new Long(getTicketId());
956
      return new Long(getTicketId());
762
 
957
 
763
    case TICKET_PRIORITY:
958
    case TICKET_PRIORITY:
Line 773... Line 968...
773
      return getTicketCategory();
968
      return getTicketCategory();
774
 
969
 
775
    case TICKET_DESCRIPTION:
970
    case TICKET_DESCRIPTION:
776
      return getTicketDescription();
971
      return getTicketDescription();
777
 
972
 
-
 
973
    case IS_READ:
-
 
974
      return new Boolean(isIsRead());
-
 
975
 
-
 
976
    case CUSTOMER_MOBILE_NUMBER:
-
 
977
      return getCustomerMobileNumber();
-
 
978
 
-
 
979
    case CUSTOMER_EMAIL_ID:
-
 
980
      return getCustomerEmailId();
-
 
981
 
-
 
982
    case CUSTOMER_NAME:
-
 
983
      return getCustomerName();
-
 
984
 
-
 
985
    case CREATOR:
-
 
986
      return getCreator();
-
 
987
 
-
 
988
    case TICKET_ASSIGNEE:
-
 
989
      return getTicketAssignee();
-
 
990
 
778
    }
991
    }
779
    throw new IllegalStateException();
992
    throw new IllegalStateException();
780
  }
993
  }
781
 
994
 
782
  public Object getFieldValue(int fieldId) {
995
  public Object getFieldValue(int fieldId) {
Line 794... Line 1007...
794
      return isSetCreationTimestamp();
1007
      return isSetCreationTimestamp();
795
    case TYPE:
1008
    case TYPE:
796
      return isSetType();
1009
      return isSetType();
797
    case CUSTOMER_ID:
1010
    case CUSTOMER_ID:
798
      return isSetCustomerId();
1011
      return isSetCustomerId();
799
    case CUSTOMER_MOBILE_NUMBER:
-
 
800
      return isSetCustomerMobileNumber();
-
 
801
    case CREATOR_ID:
1012
    case CREATOR_ID:
802
      return isSetCreatorId();
1013
      return isSetCreatorId();
803
    case EMAIL_ID:
1014
    case USER_EMAIL_ID:
804
      return isSetEmailId();
1015
      return isSetUserEmailId();
805
    case TICKET_ID:
1016
    case TICKET_ID:
806
      return isSetTicketId();
1017
      return isSetTicketId();
807
    case TICKET_PRIORITY:
1018
    case TICKET_PRIORITY:
808
      return isSetTicketPriority();
1019
      return isSetTicketPriority();
809
    case TICKET_ASSIGNEE_ID:
1020
    case TICKET_ASSIGNEE_ID:
Line 812... Line 1023...
812
      return isSetTicketStatus();
1023
      return isSetTicketStatus();
813
    case TICKET_CATEGORY:
1024
    case TICKET_CATEGORY:
814
      return isSetTicketCategory();
1025
      return isSetTicketCategory();
815
    case TICKET_DESCRIPTION:
1026
    case TICKET_DESCRIPTION:
816
      return isSetTicketDescription();
1027
      return isSetTicketDescription();
-
 
1028
    case IS_READ:
-
 
1029
      return isSetIsRead();
-
 
1030
    case CUSTOMER_MOBILE_NUMBER:
-
 
1031
      return isSetCustomerMobileNumber();
-
 
1032
    case CUSTOMER_EMAIL_ID:
-
 
1033
      return isSetCustomerEmailId();
-
 
1034
    case CUSTOMER_NAME:
-
 
1035
      return isSetCustomerName();
-
 
1036
    case CREATOR:
-
 
1037
      return isSetCreator();
-
 
1038
    case TICKET_ASSIGNEE:
-
 
1039
      return isSetTicketAssignee();
817
    }
1040
    }
818
    throw new IllegalStateException();
1041
    throw new IllegalStateException();
819
  }
1042
  }
820
 
1043
 
821
  public boolean isSet(int fieldID) {
1044
  public boolean isSet(int fieldID) {
Line 878... Line 1101...
878
        return false;
1101
        return false;
879
      if (this.customerId != that.customerId)
1102
      if (this.customerId != that.customerId)
880
        return false;
1103
        return false;
881
    }
1104
    }
882
 
1105
 
883
    boolean this_present_customerMobileNumber = true && this.isSetCustomerMobileNumber();
-
 
884
    boolean that_present_customerMobileNumber = true && that.isSetCustomerMobileNumber();
-
 
885
    if (this_present_customerMobileNumber || that_present_customerMobileNumber) {
-
 
886
      if (!(this_present_customerMobileNumber && that_present_customerMobileNumber))
-
 
887
        return false;
-
 
888
      if (!this.customerMobileNumber.equals(that.customerMobileNumber))
-
 
889
        return false;
-
 
890
    }
-
 
891
 
-
 
892
    boolean this_present_creatorId = true;
1106
    boolean this_present_creatorId = true;
893
    boolean that_present_creatorId = true;
1107
    boolean that_present_creatorId = true;
894
    if (this_present_creatorId || that_present_creatorId) {
1108
    if (this_present_creatorId || that_present_creatorId) {
895
      if (!(this_present_creatorId && that_present_creatorId))
1109
      if (!(this_present_creatorId && that_present_creatorId))
896
        return false;
1110
        return false;
897
      if (this.creatorId != that.creatorId)
1111
      if (this.creatorId != that.creatorId)
898
        return false;
1112
        return false;
899
    }
1113
    }
900
 
1114
 
901
    boolean this_present_emailId = true && this.isSetEmailId();
1115
    boolean this_present_userEmailId = true && this.isSetUserEmailId();
902
    boolean that_present_emailId = true && that.isSetEmailId();
1116
    boolean that_present_userEmailId = true && that.isSetUserEmailId();
903
    if (this_present_emailId || that_present_emailId) {
1117
    if (this_present_userEmailId || that_present_userEmailId) {
904
      if (!(this_present_emailId && that_present_emailId))
1118
      if (!(this_present_userEmailId && that_present_userEmailId))
905
        return false;
1119
        return false;
906
      if (this.emailId != that.emailId)
1120
      if (this.userEmailId != that.userEmailId)
907
        return false;
1121
        return false;
908
    }
1122
    }
909
 
1123
 
910
    boolean this_present_ticketId = true && this.isSetTicketId();
1124
    boolean this_present_ticketId = true && this.isSetTicketId();
911
    boolean that_present_ticketId = true && that.isSetTicketId();
1125
    boolean that_present_ticketId = true && that.isSetTicketId();
Line 959... Line 1173...
959
        return false;
1173
        return false;
960
      if (!this.ticketDescription.equals(that.ticketDescription))
1174
      if (!this.ticketDescription.equals(that.ticketDescription))
961
        return false;
1175
        return false;
962
    }
1176
    }
963
 
1177
 
-
 
1178
    boolean this_present_isRead = true && this.isSetIsRead();
-
 
1179
    boolean that_present_isRead = true && that.isSetIsRead();
-
 
1180
    if (this_present_isRead || that_present_isRead) {
-
 
1181
      if (!(this_present_isRead && that_present_isRead))
-
 
1182
        return false;
-
 
1183
      if (this.isRead != that.isRead)
-
 
1184
        return false;
-
 
1185
    }
-
 
1186
 
-
 
1187
    boolean this_present_customerMobileNumber = true && this.isSetCustomerMobileNumber();
-
 
1188
    boolean that_present_customerMobileNumber = true && that.isSetCustomerMobileNumber();
-
 
1189
    if (this_present_customerMobileNumber || that_present_customerMobileNumber) {
-
 
1190
      if (!(this_present_customerMobileNumber && that_present_customerMobileNumber))
-
 
1191
        return false;
-
 
1192
      if (!this.customerMobileNumber.equals(that.customerMobileNumber))
-
 
1193
        return false;
-
 
1194
    }
-
 
1195
 
-
 
1196
    boolean this_present_customerEmailId = true && this.isSetCustomerEmailId();
-
 
1197
    boolean that_present_customerEmailId = true && that.isSetCustomerEmailId();
-
 
1198
    if (this_present_customerEmailId || that_present_customerEmailId) {
-
 
1199
      if (!(this_present_customerEmailId && that_present_customerEmailId))
-
 
1200
        return false;
-
 
1201
      if (!this.customerEmailId.equals(that.customerEmailId))
-
 
1202
        return false;
-
 
1203
    }
-
 
1204
 
-
 
1205
    boolean this_present_customerName = true && this.isSetCustomerName();
-
 
1206
    boolean that_present_customerName = true && that.isSetCustomerName();
-
 
1207
    if (this_present_customerName || that_present_customerName) {
-
 
1208
      if (!(this_present_customerName && that_present_customerName))
-
 
1209
        return false;
-
 
1210
      if (!this.customerName.equals(that.customerName))
-
 
1211
        return false;
-
 
1212
    }
-
 
1213
 
-
 
1214
    boolean this_present_creator = true && this.isSetCreator();
-
 
1215
    boolean that_present_creator = true && that.isSetCreator();
-
 
1216
    if (this_present_creator || that_present_creator) {
-
 
1217
      if (!(this_present_creator && that_present_creator))
-
 
1218
        return false;
-
 
1219
      if (!this.creator.equals(that.creator))
-
 
1220
        return false;
-
 
1221
    }
-
 
1222
 
-
 
1223
    boolean this_present_ticketAssignee = true && this.isSetTicketAssignee();
-
 
1224
    boolean that_present_ticketAssignee = true && that.isSetTicketAssignee();
-
 
1225
    if (this_present_ticketAssignee || that_present_ticketAssignee) {
-
 
1226
      if (!(this_present_ticketAssignee && that_present_ticketAssignee))
-
 
1227
        return false;
-
 
1228
      if (!this.ticketAssignee.equals(that.ticketAssignee))
-
 
1229
        return false;
-
 
1230
    }
-
 
1231
 
964
    return true;
1232
    return true;
965
  }
1233
  }
966
 
1234
 
967
  @Override
1235
  @Override
968
  public int hashCode() {
1236
  public int hashCode() {
Line 1015... Line 1283...
1015
    }
1283
    }
1016
    lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
1284
    lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
1017
    if (lastComparison != 0) {
1285
    if (lastComparison != 0) {
1018
      return lastComparison;
1286
      return lastComparison;
1019
    }
1287
    }
1020
    lastComparison = Boolean.valueOf(isSetCustomerMobileNumber()).compareTo(isSetCustomerMobileNumber());
-
 
1021
    if (lastComparison != 0) {
-
 
1022
      return lastComparison;
-
 
1023
    }
-
 
1024
    lastComparison = TBaseHelper.compareTo(customerMobileNumber, typedOther.customerMobileNumber);
-
 
1025
    if (lastComparison != 0) {
-
 
1026
      return lastComparison;
-
 
1027
    }
-
 
1028
    lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());
1288
    lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());
1029
    if (lastComparison != 0) {
1289
    if (lastComparison != 0) {
1030
      return lastComparison;
1290
      return lastComparison;
1031
    }
1291
    }
1032
    lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
1292
    lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
1033
    if (lastComparison != 0) {
1293
    if (lastComparison != 0) {
1034
      return lastComparison;
1294
      return lastComparison;
1035
    }
1295
    }
1036
    lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(isSetEmailId());
1296
    lastComparison = Boolean.valueOf(isSetUserEmailId()).compareTo(isSetUserEmailId());
1037
    if (lastComparison != 0) {
1297
    if (lastComparison != 0) {
1038
      return lastComparison;
1298
      return lastComparison;
1039
    }
1299
    }
1040
    lastComparison = TBaseHelper.compareTo(emailId, typedOther.emailId);
1300
    lastComparison = TBaseHelper.compareTo(userEmailId, typedOther.userEmailId);
1041
    if (lastComparison != 0) {
1301
    if (lastComparison != 0) {
1042
      return lastComparison;
1302
      return lastComparison;
1043
    }
1303
    }
1044
    lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());
1304
    lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());
1045
    if (lastComparison != 0) {
1305
    if (lastComparison != 0) {
Line 1087... Line 1347...
1087
    }
1347
    }
1088
    lastComparison = TBaseHelper.compareTo(ticketDescription, typedOther.ticketDescription);
1348
    lastComparison = TBaseHelper.compareTo(ticketDescription, typedOther.ticketDescription);
1089
    if (lastComparison != 0) {
1349
    if (lastComparison != 0) {
1090
      return lastComparison;
1350
      return lastComparison;
1091
    }
1351
    }
-
 
1352
    lastComparison = Boolean.valueOf(isSetIsRead()).compareTo(isSetIsRead());
-
 
1353
    if (lastComparison != 0) {
-
 
1354
      return lastComparison;
-
 
1355
    }
-
 
1356
    lastComparison = TBaseHelper.compareTo(isRead, typedOther.isRead);
-
 
1357
    if (lastComparison != 0) {
-
 
1358
      return lastComparison;
-
 
1359
    }
-
 
1360
    lastComparison = Boolean.valueOf(isSetCustomerMobileNumber()).compareTo(isSetCustomerMobileNumber());
-
 
1361
    if (lastComparison != 0) {
-
 
1362
      return lastComparison;
-
 
1363
    }
-
 
1364
    lastComparison = TBaseHelper.compareTo(customerMobileNumber, typedOther.customerMobileNumber);
-
 
1365
    if (lastComparison != 0) {
-
 
1366
      return lastComparison;
-
 
1367
    }
-
 
1368
    lastComparison = Boolean.valueOf(isSetCustomerEmailId()).compareTo(isSetCustomerEmailId());
-
 
1369
    if (lastComparison != 0) {
-
 
1370
      return lastComparison;
-
 
1371
    }
-
 
1372
    lastComparison = TBaseHelper.compareTo(customerEmailId, typedOther.customerEmailId);
-
 
1373
    if (lastComparison != 0) {
-
 
1374
      return lastComparison;
-
 
1375
    }
-
 
1376
    lastComparison = Boolean.valueOf(isSetCustomerName()).compareTo(isSetCustomerName());
-
 
1377
    if (lastComparison != 0) {
-
 
1378
      return lastComparison;
-
 
1379
    }
-
 
1380
    lastComparison = TBaseHelper.compareTo(customerName, typedOther.customerName);
-
 
1381
    if (lastComparison != 0) {
-
 
1382
      return lastComparison;
-
 
1383
    }
-
 
1384
    lastComparison = Boolean.valueOf(isSetCreator()).compareTo(isSetCreator());
-
 
1385
    if (lastComparison != 0) {
-
 
1386
      return lastComparison;
-
 
1387
    }
-
 
1388
    lastComparison = TBaseHelper.compareTo(creator, typedOther.creator);
-
 
1389
    if (lastComparison != 0) {
-
 
1390
      return lastComparison;
-
 
1391
    }
-
 
1392
    lastComparison = Boolean.valueOf(isSetTicketAssignee()).compareTo(isSetTicketAssignee());
-
 
1393
    if (lastComparison != 0) {
-
 
1394
      return lastComparison;
-
 
1395
    }
-
 
1396
    lastComparison = TBaseHelper.compareTo(ticketAssignee, typedOther.ticketAssignee);
-
 
1397
    if (lastComparison != 0) {
-
 
1398
      return lastComparison;
-
 
1399
    }
1092
    return 0;
1400
    return 0;
1093
  }
1401
  }
1094
 
1402
 
1095
  public void read(TProtocol iprot) throws TException {
1403
  public void read(TProtocol iprot) throws TException {
1096
    TField field;
1404
    TField field;
Line 1142... Line 1450...
1142
              setCustomerIdIsSet(true);
1450
              setCustomerIdIsSet(true);
1143
            } else { 
1451
            } else { 
1144
              TProtocolUtil.skip(iprot, field.type);
1452
              TProtocolUtil.skip(iprot, field.type);
1145
            }
1453
            }
1146
            break;
1454
            break;
1147
          case CUSTOMER_MOBILE_NUMBER:
-
 
1148
            if (field.type == TType.STRING) {
-
 
1149
              this.customerMobileNumber = iprot.readString();
-
 
1150
            } else { 
-
 
1151
              TProtocolUtil.skip(iprot, field.type);
-
 
1152
            }
-
 
1153
            break;
-
 
1154
          case CREATOR_ID:
1455
          case CREATOR_ID:
1155
            if (field.type == TType.I64) {
1456
            if (field.type == TType.I64) {
1156
              this.creatorId = iprot.readI64();
1457
              this.creatorId = iprot.readI64();
1157
              setCreatorIdIsSet(true);
1458
              setCreatorIdIsSet(true);
1158
            } else { 
1459
            } else { 
1159
              TProtocolUtil.skip(iprot, field.type);
1460
              TProtocolUtil.skip(iprot, field.type);
1160
            }
1461
            }
1161
            break;
1462
            break;
1162
          case EMAIL_ID:
1463
          case USER_EMAIL_ID:
1163
            if (field.type == TType.I64) {
1464
            if (field.type == TType.I64) {
1164
              this.emailId = iprot.readI64();
1465
              this.userEmailId = iprot.readI64();
1165
              setEmailIdIsSet(true);
1466
              setUserEmailIdIsSet(true);
1166
            } else { 
1467
            } else { 
1167
              TProtocolUtil.skip(iprot, field.type);
1468
              TProtocolUtil.skip(iprot, field.type);
1168
            }
1469
            }
1169
            break;
1470
            break;
1170
          case TICKET_ID:
1471
          case TICKET_ID:
Line 1209... Line 1510...
1209
              this.ticketDescription = iprot.readString();
1510
              this.ticketDescription = iprot.readString();
1210
            } else { 
1511
            } else { 
1211
              TProtocolUtil.skip(iprot, field.type);
1512
              TProtocolUtil.skip(iprot, field.type);
1212
            }
1513
            }
1213
            break;
1514
            break;
-
 
1515
          case IS_READ:
-
 
1516
            if (field.type == TType.BOOL) {
-
 
1517
              this.isRead = iprot.readBool();
-
 
1518
              setIsReadIsSet(true);
-
 
1519
            } else { 
-
 
1520
              TProtocolUtil.skip(iprot, field.type);
-
 
1521
            }
-
 
1522
            break;
-
 
1523
          case CUSTOMER_MOBILE_NUMBER:
-
 
1524
            if (field.type == TType.STRING) {
-
 
1525
              this.customerMobileNumber = iprot.readString();
-
 
1526
            } else { 
-
 
1527
              TProtocolUtil.skip(iprot, field.type);
-
 
1528
            }
-
 
1529
            break;
-
 
1530
          case CUSTOMER_EMAIL_ID:
-
 
1531
            if (field.type == TType.STRING) {
-
 
1532
              this.customerEmailId = iprot.readString();
-
 
1533
            } else { 
-
 
1534
              TProtocolUtil.skip(iprot, field.type);
-
 
1535
            }
-
 
1536
            break;
-
 
1537
          case CUSTOMER_NAME:
-
 
1538
            if (field.type == TType.STRING) {
-
 
1539
              this.customerName = iprot.readString();
-
 
1540
            } else { 
-
 
1541
              TProtocolUtil.skip(iprot, field.type);
-
 
1542
            }
-
 
1543
            break;
-
 
1544
          case CREATOR:
-
 
1545
            if (field.type == TType.STRUCT) {
-
 
1546
              this.creator = new Agent();
-
 
1547
              this.creator.read(iprot);
-
 
1548
            } else { 
-
 
1549
              TProtocolUtil.skip(iprot, field.type);
-
 
1550
            }
-
 
1551
            break;
-
 
1552
          case TICKET_ASSIGNEE:
-
 
1553
            if (field.type == TType.STRUCT) {
-
 
1554
              this.ticketAssignee = new Agent();
-
 
1555
              this.ticketAssignee.read(iprot);
-
 
1556
            } else { 
-
 
1557
              TProtocolUtil.skip(iprot, field.type);
-
 
1558
            }
-
 
1559
            break;
1214
        }
1560
        }
1215
        iprot.readFieldEnd();
1561
        iprot.readFieldEnd();
1216
      }
1562
      }
1217
    }
1563
    }
1218
    iprot.readStructEnd();
1564
    iprot.readStructEnd();
Line 1244... Line 1590...
1244
    if (isSetCustomerId()) {
1590
    if (isSetCustomerId()) {
1245
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
1591
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
1246
      oprot.writeI64(this.customerId);
1592
      oprot.writeI64(this.customerId);
1247
      oprot.writeFieldEnd();
1593
      oprot.writeFieldEnd();
1248
    }
1594
    }
1249
    if (this.customerMobileNumber != null) {
-
 
1250
      if (isSetCustomerMobileNumber()) {
-
 
1251
        oprot.writeFieldBegin(CUSTOMER_MOBILE_NUMBER_FIELD_DESC);
-
 
1252
        oprot.writeString(this.customerMobileNumber);
-
 
1253
        oprot.writeFieldEnd();
-
 
1254
      }
-
 
1255
    }
-
 
1256
    oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
1595
    oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
1257
    oprot.writeI64(this.creatorId);
1596
    oprot.writeI64(this.creatorId);
1258
    oprot.writeFieldEnd();
1597
    oprot.writeFieldEnd();
1259
    if (isSetEmailId()) {
1598
    if (isSetUserEmailId()) {
1260
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
1599
      oprot.writeFieldBegin(USER_EMAIL_ID_FIELD_DESC);
1261
      oprot.writeI64(this.emailId);
1600
      oprot.writeI64(this.userEmailId);
1262
      oprot.writeFieldEnd();
1601
      oprot.writeFieldEnd();
1263
    }
1602
    }
1264
    if (isSetTicketId()) {
1603
    if (isSetTicketId()) {
1265
      oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);
1604
      oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);
1266
      oprot.writeI64(this.ticketId);
1605
      oprot.writeI64(this.ticketId);
Line 1297... Line 1636...
1297
        oprot.writeFieldBegin(TICKET_DESCRIPTION_FIELD_DESC);
1636
        oprot.writeFieldBegin(TICKET_DESCRIPTION_FIELD_DESC);
1298
        oprot.writeString(this.ticketDescription);
1637
        oprot.writeString(this.ticketDescription);
1299
        oprot.writeFieldEnd();
1638
        oprot.writeFieldEnd();
1300
      }
1639
      }
1301
    }
1640
    }
-
 
1641
    if (isSetIsRead()) {
-
 
1642
      oprot.writeFieldBegin(IS_READ_FIELD_DESC);
-
 
1643
      oprot.writeBool(this.isRead);
-
 
1644
      oprot.writeFieldEnd();
-
 
1645
    }
-
 
1646
    if (this.customerMobileNumber != null) {
-
 
1647
      if (isSetCustomerMobileNumber()) {
-
 
1648
        oprot.writeFieldBegin(CUSTOMER_MOBILE_NUMBER_FIELD_DESC);
-
 
1649
        oprot.writeString(this.customerMobileNumber);
-
 
1650
        oprot.writeFieldEnd();
-
 
1651
      }
-
 
1652
    }
-
 
1653
    if (this.customerEmailId != null) {
-
 
1654
      if (isSetCustomerEmailId()) {
-
 
1655
        oprot.writeFieldBegin(CUSTOMER_EMAIL_ID_FIELD_DESC);
-
 
1656
        oprot.writeString(this.customerEmailId);
-
 
1657
        oprot.writeFieldEnd();
-
 
1658
      }
-
 
1659
    }
-
 
1660
    if (this.customerName != null) {
-
 
1661
      if (isSetCustomerName()) {
-
 
1662
        oprot.writeFieldBegin(CUSTOMER_NAME_FIELD_DESC);
-
 
1663
        oprot.writeString(this.customerName);
-
 
1664
        oprot.writeFieldEnd();
-
 
1665
      }
-
 
1666
    }
-
 
1667
    if (this.creator != null) {
-
 
1668
      if (isSetCreator()) {
-
 
1669
        oprot.writeFieldBegin(CREATOR_FIELD_DESC);
-
 
1670
        this.creator.write(oprot);
-
 
1671
        oprot.writeFieldEnd();
-
 
1672
      }
-
 
1673
    }
-
 
1674
    if (this.ticketAssignee != null) {
-
 
1675
      if (isSetTicketAssignee()) {
-
 
1676
        oprot.writeFieldBegin(TICKET_ASSIGNEE_FIELD_DESC);
-
 
1677
        this.ticketAssignee.write(oprot);
-
 
1678
        oprot.writeFieldEnd();
-
 
1679
      }
-
 
1680
    }
1302
    oprot.writeFieldStop();
1681
    oprot.writeFieldStop();
1303
    oprot.writeStructEnd();
1682
    oprot.writeStructEnd();
1304
  }
1683
  }
1305
 
1684
 
1306
  @Override
1685
  @Override
Line 1345... Line 1724...
1345
      if (!first) sb.append(", ");
1724
      if (!first) sb.append(", ");
1346
      sb.append("customerId:");
1725
      sb.append("customerId:");
1347
      sb.append(this.customerId);
1726
      sb.append(this.customerId);
1348
      first = false;
1727
      first = false;
1349
    }
1728
    }
1350
    if (isSetCustomerMobileNumber()) {
-
 
1351
      if (!first) sb.append(", ");
-
 
1352
      sb.append("customerMobileNumber:");
-
 
1353
      if (this.customerMobileNumber == null) {
-
 
1354
        sb.append("null");
-
 
1355
      } else {
-
 
1356
        sb.append(this.customerMobileNumber);
-
 
1357
      }
-
 
1358
      first = false;
-
 
1359
    }
-
 
1360
    if (!first) sb.append(", ");
1729
    if (!first) sb.append(", ");
1361
    sb.append("creatorId:");
1730
    sb.append("creatorId:");
1362
    sb.append(this.creatorId);
1731
    sb.append(this.creatorId);
1363
    first = false;
1732
    first = false;
1364
    if (isSetEmailId()) {
1733
    if (isSetUserEmailId()) {
1365
      if (!first) sb.append(", ");
1734
      if (!first) sb.append(", ");
1366
      sb.append("emailId:");
1735
      sb.append("userEmailId:");
1367
      sb.append(this.emailId);
1736
      sb.append(this.userEmailId);
1368
      first = false;
1737
      first = false;
1369
    }
1738
    }
1370
    if (isSetTicketId()) {
1739
    if (isSetTicketId()) {
1371
      if (!first) sb.append(", ");
1740
      if (!first) sb.append(", ");
1372
      sb.append("ticketId:");
1741
      sb.append("ticketId:");
Line 1441... Line 1810...
1441
      } else {
1810
      } else {
1442
        sb.append(this.ticketDescription);
1811
        sb.append(this.ticketDescription);
1443
      }
1812
      }
1444
      first = false;
1813
      first = false;
1445
    }
1814
    }
-
 
1815
    if (isSetIsRead()) {
-
 
1816
      if (!first) sb.append(", ");
-
 
1817
      sb.append("isRead:");
-
 
1818
      sb.append(this.isRead);
-
 
1819
      first = false;
-
 
1820
    }
-
 
1821
    if (isSetCustomerMobileNumber()) {
-
 
1822
      if (!first) sb.append(", ");
-
 
1823
      sb.append("customerMobileNumber:");
-
 
1824
      if (this.customerMobileNumber == null) {
-
 
1825
        sb.append("null");
-
 
1826
      } else {
-
 
1827
        sb.append(this.customerMobileNumber);
-
 
1828
      }
-
 
1829
      first = false;
-
 
1830
    }
-
 
1831
    if (isSetCustomerEmailId()) {
-
 
1832
      if (!first) sb.append(", ");
-
 
1833
      sb.append("customerEmailId:");
-
 
1834
      if (this.customerEmailId == null) {
-
 
1835
        sb.append("null");
-
 
1836
      } else {
-
 
1837
        sb.append(this.customerEmailId);
-
 
1838
      }
-
 
1839
      first = false;
-
 
1840
    }
-
 
1841
    if (isSetCustomerName()) {
-
 
1842
      if (!first) sb.append(", ");
-
 
1843
      sb.append("customerName:");
-
 
1844
      if (this.customerName == null) {
-
 
1845
        sb.append("null");
-
 
1846
      } else {
-
 
1847
        sb.append(this.customerName);
-
 
1848
      }
-
 
1849
      first = false;
-
 
1850
    }
-
 
1851
    if (isSetCreator()) {
-
 
1852
      if (!first) sb.append(", ");
-
 
1853
      sb.append("creator:");
-
 
1854
      if (this.creator == null) {
-
 
1855
        sb.append("null");
-
 
1856
      } else {
-
 
1857
        sb.append(this.creator);
-
 
1858
      }
-
 
1859
      first = false;
-
 
1860
    }
-
 
1861
    if (isSetTicketAssignee()) {
-
 
1862
      if (!first) sb.append(", ");
-
 
1863
      sb.append("ticketAssignee:");
-
 
1864
      if (this.ticketAssignee == null) {
-
 
1865
        sb.append("null");
-
 
1866
      } else {
-
 
1867
        sb.append(this.ticketAssignee);
-
 
1868
      }
-
 
1869
      first = false;
-
 
1870
    }
1446
    sb.append(")");
1871
    sb.append(")");
1447
    return sb.toString();
1872
    return sb.toString();
1448
  }
1873
  }
1449
 
1874
 
1450
  public void validate() throws TException {
1875
  public void validate() throws TException {