Subversion Repositories SmartDukaan

Rev

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

Rev 3028 Rev 3106
Line 26... Line 26...
26
public class Activity implements TBase<Activity._Fields>, java.io.Serializable, Cloneable, Comparable<Activity> {
26
public class Activity implements TBase<Activity._Fields>, java.io.Serializable, Cloneable, Comparable<Activity> {
27
  private static final TStruct STRUCT_DESC = new TStruct("Activity");
27
  private static final TStruct STRUCT_DESC = new TStruct("Activity");
28
 
28
 
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 CONTACT_TIMESTAMP_FIELD_DESC = new TField("contactTimestamp", 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 CONTACT_MEDIUM_FIELD_DESC = new TField("contactMedium", 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 CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)6);
34
  private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)6);
35
  private static final TField CONTACTING_AGENT_ID_FIELD_DESC = new TField("contactingAgentId", TType.I64, (short)7);
35
  private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)7);
36
  private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)8);
36
  private static final TField TICKET_PRIORITY_FIELD_DESC = new TField("ticketPriority", TType.I32, (short)8);
37
  private static final TField TICKET_PRIORITY_FIELD_DESC = new TField("ticketPriority", TType.I32, (short)9);
37
  private static final TField TICKET_ASSIGNEE_ID_FIELD_DESC = new TField("ticketAssigneeId", TType.I64, (short)9);
38
  private static final TField TICKET_ASSIGNEE_ID_FIELD_DESC = new TField("ticketAssigneeId", TType.I64, (short)10);
38
  private static final TField TICKET_STATUS_FIELD_DESC = new TField("ticketStatus", TType.I32, (short)10);
39
  private static final TField TICKET_STATUS_FIELD_DESC = new TField("ticketStatus", TType.I32, (short)11);
39
  private static final TField TICKET_CATEGORY_FIELD_DESC = new TField("ticketCategory", TType.I32, (short)11);
40
  private static final TField TICKET_CATEGORY_FIELD_DESC = new TField("ticketCategory", TType.I32, (short)12);
40
  private static final TField TICKET_DESCRIPTION_FIELD_DESC = new TField("ticketDescription", TType.STRING, (short)12);
41
 
41
 
42
  private long id;
42
  private long id;
43
  private String description;
43
  private String description;
44
  private long contactTimestamp;
44
  private long creationTimestamp;
45
  private ContactMedium contactMedium;
45
  private ActivityType type;
46
  private long customerId;
46
  private long customerId;
47
  private long creatorId;
47
  private long creatorId;
48
  private long contactingAgentId;
-
 
49
  private long ticketId;
48
  private long ticketId;
50
  private TicketPriority ticketPriority;
49
  private TicketPriority ticketPriority;
51
  private long ticketAssigneeId;
50
  private long ticketAssigneeId;
52
  private TicketStatus ticketStatus;
51
  private TicketStatus ticketStatus;
53
  private TicketCategory ticketCategory;
52
  private TicketCategory ticketCategory;
-
 
53
  private String ticketDescription;
54
 
54
 
55
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56
  public enum _Fields implements TFieldIdEnum {
56
  public enum _Fields implements TFieldIdEnum {
57
    ID((short)1, "id"),
57
    ID((short)1, "id"),
58
    DESCRIPTION((short)2, "description"),
58
    DESCRIPTION((short)2, "description"),
59
    CONTACT_TIMESTAMP((short)3, "contactTimestamp"),
59
    CREATION_TIMESTAMP((short)3, "creationTimestamp"),
60
    /**
60
    /**
61
     * 
61
     * 
62
     * @see ContactMedium
62
     * @see ActivityType
63
     */
63
     */
64
    CONTACT_MEDIUM((short)4, "contactMedium"),
64
    TYPE((short)4, "type"),
65
    CUSTOMER_ID((short)5, "customerId"),
65
    CUSTOMER_ID((short)5, "customerId"),
66
    CREATOR_ID((short)6, "creatorId"),
66
    CREATOR_ID((short)6, "creatorId"),
67
    CONTACTING_AGENT_ID((short)7, "contactingAgentId"),
-
 
68
    TICKET_ID((short)8, "ticketId"),
67
    TICKET_ID((short)7, "ticketId"),
69
    /**
68
    /**
70
     * 
69
     * 
71
     * @see TicketPriority
70
     * @see TicketPriority
72
     */
71
     */
73
    TICKET_PRIORITY((short)9, "ticketPriority"),
72
    TICKET_PRIORITY((short)8, "ticketPriority"),
74
    TICKET_ASSIGNEE_ID((short)10, "ticketAssigneeId"),
73
    TICKET_ASSIGNEE_ID((short)9, "ticketAssigneeId"),
75
    /**
74
    /**
76
     * 
75
     * 
77
     * @see TicketStatus
76
     * @see TicketStatus
78
     */
77
     */
79
    TICKET_STATUS((short)11, "ticketStatus"),
78
    TICKET_STATUS((short)10, "ticketStatus"),
80
    /**
79
    /**
81
     * 
80
     * 
82
     * @see TicketCategory
81
     * @see TicketCategory
83
     */
82
     */
84
    TICKET_CATEGORY((short)12, "ticketCategory");
83
    TICKET_CATEGORY((short)11, "ticketCategory"),
-
 
84
    TICKET_DESCRIPTION((short)12, "ticketDescription");
85
 
85
 
86
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
86
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
87
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
87
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
88
 
88
 
89
    static {
89
    static {
Line 134... Line 134...
134
    }
134
    }
135
  }
135
  }
136
 
136
 
137
  // isset id assignments
137
  // isset id assignments
138
  private static final int __ID_ISSET_ID = 0;
138
  private static final int __ID_ISSET_ID = 0;
139
  private static final int __CONTACTTIMESTAMP_ISSET_ID = 1;
139
  private static final int __CREATIONTIMESTAMP_ISSET_ID = 1;
140
  private static final int __CUSTOMERID_ISSET_ID = 2;
140
  private static final int __CUSTOMERID_ISSET_ID = 2;
141
  private static final int __CREATORID_ISSET_ID = 3;
141
  private static final int __CREATORID_ISSET_ID = 3;
142
  private static final int __CONTACTINGAGENTID_ISSET_ID = 4;
-
 
143
  private static final int __TICKETID_ISSET_ID = 5;
142
  private static final int __TICKETID_ISSET_ID = 4;
144
  private static final int __TICKETASSIGNEEID_ISSET_ID = 6;
143
  private static final int __TICKETASSIGNEEID_ISSET_ID = 5;
145
  private BitSet __isset_bit_vector = new BitSet(7);
144
  private BitSet __isset_bit_vector = new BitSet(6);
146
 
145
 
147
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
146
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
148
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
147
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
149
        new FieldValueMetaData(TType.I64)));
148
        new FieldValueMetaData(TType.I64)));
150
    put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT, 
149
    put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT, 
151
        new FieldValueMetaData(TType.STRING)));
150
        new FieldValueMetaData(TType.STRING)));
152
    put(_Fields.CONTACT_TIMESTAMP, new FieldMetaData("contactTimestamp", TFieldRequirementType.DEFAULT, 
151
    put(_Fields.CREATION_TIMESTAMP, new FieldMetaData("creationTimestamp", TFieldRequirementType.DEFAULT, 
153
        new FieldValueMetaData(TType.I64)));
152
        new FieldValueMetaData(TType.I64)));
154
    put(_Fields.CONTACT_MEDIUM, new FieldMetaData("contactMedium", TFieldRequirementType.DEFAULT, 
153
    put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
155
        new EnumMetaData(TType.ENUM, ContactMedium.class)));
154
        new EnumMetaData(TType.ENUM, ActivityType.class)));
156
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
155
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
157
        new FieldValueMetaData(TType.I64)));
156
        new FieldValueMetaData(TType.I64)));
158
    put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT, 
157
    put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT, 
159
        new FieldValueMetaData(TType.I64)));
158
        new FieldValueMetaData(TType.I64)));
160
    put(_Fields.CONTACTING_AGENT_ID, new FieldMetaData("contactingAgentId", TFieldRequirementType.DEFAULT, 
-
 
161
        new FieldValueMetaData(TType.I64)));
-
 
162
    put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.DEFAULT, 
159
    put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.DEFAULT, 
163
        new FieldValueMetaData(TType.I64)));
160
        new FieldValueMetaData(TType.I64)));
164
    put(_Fields.TICKET_PRIORITY, new FieldMetaData("ticketPriority", TFieldRequirementType.DEFAULT, 
161
    put(_Fields.TICKET_PRIORITY, new FieldMetaData("ticketPriority", TFieldRequirementType.DEFAULT, 
165
        new EnumMetaData(TType.ENUM, TicketPriority.class)));
162
        new EnumMetaData(TType.ENUM, TicketPriority.class)));
166
    put(_Fields.TICKET_ASSIGNEE_ID, new FieldMetaData("ticketAssigneeId", TFieldRequirementType.DEFAULT, 
163
    put(_Fields.TICKET_ASSIGNEE_ID, new FieldMetaData("ticketAssigneeId", TFieldRequirementType.DEFAULT, 
167
        new FieldValueMetaData(TType.I64)));
164
        new FieldValueMetaData(TType.I64)));
168
    put(_Fields.TICKET_STATUS, new FieldMetaData("ticketStatus", TFieldRequirementType.DEFAULT, 
165
    put(_Fields.TICKET_STATUS, new FieldMetaData("ticketStatus", TFieldRequirementType.DEFAULT, 
169
        new EnumMetaData(TType.ENUM, TicketStatus.class)));
166
        new EnumMetaData(TType.ENUM, TicketStatus.class)));
170
    put(_Fields.TICKET_CATEGORY, new FieldMetaData("ticketCategory", TFieldRequirementType.DEFAULT, 
167
    put(_Fields.TICKET_CATEGORY, new FieldMetaData("ticketCategory", TFieldRequirementType.DEFAULT, 
171
        new EnumMetaData(TType.ENUM, TicketCategory.class)));
168
        new EnumMetaData(TType.ENUM, TicketCategory.class)));
-
 
169
    put(_Fields.TICKET_DESCRIPTION, new FieldMetaData("ticketDescription", TFieldRequirementType.DEFAULT, 
-
 
170
        new FieldValueMetaData(TType.STRING)));
172
  }});
171
  }});
173
 
172
 
174
  static {
173
  static {
175
    FieldMetaData.addStructMetaDataMap(Activity.class, metaDataMap);
174
    FieldMetaData.addStructMetaDataMap(Activity.class, metaDataMap);
176
  }
175
  }
Line 179... Line 178...
179
  }
178
  }
180
 
179
 
181
  public Activity(
180
  public Activity(
182
    long id,
181
    long id,
183
    String description,
182
    String description,
184
    long contactTimestamp,
183
    long creationTimestamp,
185
    ContactMedium contactMedium,
184
    ActivityType type,
186
    long customerId,
185
    long customerId,
187
    long creatorId,
186
    long creatorId,
188
    long contactingAgentId,
-
 
189
    long ticketId,
187
    long ticketId,
190
    TicketPriority ticketPriority,
188
    TicketPriority ticketPriority,
191
    long ticketAssigneeId,
189
    long ticketAssigneeId,
192
    TicketStatus ticketStatus,
190
    TicketStatus ticketStatus,
193
    TicketCategory ticketCategory)
191
    TicketCategory ticketCategory,
-
 
192
    String ticketDescription)
194
  {
193
  {
195
    this();
194
    this();
196
    this.id = id;
195
    this.id = id;
197
    setIdIsSet(true);
196
    setIdIsSet(true);
198
    this.description = description;
197
    this.description = description;
199
    this.contactTimestamp = contactTimestamp;
198
    this.creationTimestamp = creationTimestamp;
200
    setContactTimestampIsSet(true);
199
    setCreationTimestampIsSet(true);
201
    this.contactMedium = contactMedium;
200
    this.type = type;
202
    this.customerId = customerId;
201
    this.customerId = customerId;
203
    setCustomerIdIsSet(true);
202
    setCustomerIdIsSet(true);
204
    this.creatorId = creatorId;
203
    this.creatorId = creatorId;
205
    setCreatorIdIsSet(true);
204
    setCreatorIdIsSet(true);
206
    this.contactingAgentId = contactingAgentId;
-
 
207
    setContactingAgentIdIsSet(true);
-
 
208
    this.ticketId = ticketId;
205
    this.ticketId = ticketId;
209
    setTicketIdIsSet(true);
206
    setTicketIdIsSet(true);
210
    this.ticketPriority = ticketPriority;
207
    this.ticketPriority = ticketPriority;
211
    this.ticketAssigneeId = ticketAssigneeId;
208
    this.ticketAssigneeId = ticketAssigneeId;
212
    setTicketAssigneeIdIsSet(true);
209
    setTicketAssigneeIdIsSet(true);
213
    this.ticketStatus = ticketStatus;
210
    this.ticketStatus = ticketStatus;
214
    this.ticketCategory = ticketCategory;
211
    this.ticketCategory = ticketCategory;
-
 
212
    this.ticketDescription = ticketDescription;
215
  }
213
  }
216
 
214
 
217
  /**
215
  /**
218
   * Performs a deep copy on <i>other</i>.
216
   * Performs a deep copy on <i>other</i>.
219
   */
217
   */
Line 222... Line 220...
222
    __isset_bit_vector.or(other.__isset_bit_vector);
220
    __isset_bit_vector.or(other.__isset_bit_vector);
223
    this.id = other.id;
221
    this.id = other.id;
224
    if (other.isSetDescription()) {
222
    if (other.isSetDescription()) {
225
      this.description = other.description;
223
      this.description = other.description;
226
    }
224
    }
227
    this.contactTimestamp = other.contactTimestamp;
225
    this.creationTimestamp = other.creationTimestamp;
228
    if (other.isSetContactMedium()) {
226
    if (other.isSetType()) {
229
      this.contactMedium = other.contactMedium;
227
      this.type = other.type;
230
    }
228
    }
231
    this.customerId = other.customerId;
229
    this.customerId = other.customerId;
232
    this.creatorId = other.creatorId;
230
    this.creatorId = other.creatorId;
233
    this.contactingAgentId = other.contactingAgentId;
-
 
234
    this.ticketId = other.ticketId;
231
    this.ticketId = other.ticketId;
235
    if (other.isSetTicketPriority()) {
232
    if (other.isSetTicketPriority()) {
236
      this.ticketPriority = other.ticketPriority;
233
      this.ticketPriority = other.ticketPriority;
237
    }
234
    }
238
    this.ticketAssigneeId = other.ticketAssigneeId;
235
    this.ticketAssigneeId = other.ticketAssigneeId;
Line 240... Line 237...
240
      this.ticketStatus = other.ticketStatus;
237
      this.ticketStatus = other.ticketStatus;
241
    }
238
    }
242
    if (other.isSetTicketCategory()) {
239
    if (other.isSetTicketCategory()) {
243
      this.ticketCategory = other.ticketCategory;
240
      this.ticketCategory = other.ticketCategory;
244
    }
241
    }
-
 
242
    if (other.isSetTicketDescription()) {
-
 
243
      this.ticketDescription = other.ticketDescription;
-
 
244
    }
245
  }
245
  }
246
 
246
 
247
  public Activity deepCopy() {
247
  public Activity deepCopy() {
248
    return new Activity(this);
248
    return new Activity(this);
249
  }
249
  }
Line 298... Line 298...
298
    if (!value) {
298
    if (!value) {
299
      this.description = null;
299
      this.description = null;
300
    }
300
    }
301
  }
301
  }
302
 
302
 
303
  public long getContactTimestamp() {
303
  public long getCreationTimestamp() {
304
    return this.contactTimestamp;
304
    return this.creationTimestamp;
305
  }
305
  }
306
 
306
 
307
  public Activity setContactTimestamp(long contactTimestamp) {
307
  public Activity setCreationTimestamp(long creationTimestamp) {
308
    this.contactTimestamp = contactTimestamp;
308
    this.creationTimestamp = creationTimestamp;
309
    setContactTimestampIsSet(true);
309
    setCreationTimestampIsSet(true);
310
    return this;
310
    return this;
311
  }
311
  }
312
 
312
 
313
  public void unsetContactTimestamp() {
313
  public void unsetCreationTimestamp() {
314
    __isset_bit_vector.clear(__CONTACTTIMESTAMP_ISSET_ID);
314
    __isset_bit_vector.clear(__CREATIONTIMESTAMP_ISSET_ID);
315
  }
315
  }
316
 
316
 
317
  /** Returns true if field contactTimestamp is set (has been asigned a value) and false otherwise */
317
  /** Returns true if field creationTimestamp is set (has been asigned a value) and false otherwise */
318
  public boolean isSetContactTimestamp() {
318
  public boolean isSetCreationTimestamp() {
319
    return __isset_bit_vector.get(__CONTACTTIMESTAMP_ISSET_ID);
319
    return __isset_bit_vector.get(__CREATIONTIMESTAMP_ISSET_ID);
320
  }
320
  }
321
 
321
 
322
  public void setContactTimestampIsSet(boolean value) {
322
  public void setCreationTimestampIsSet(boolean value) {
323
    __isset_bit_vector.set(__CONTACTTIMESTAMP_ISSET_ID, value);
323
    __isset_bit_vector.set(__CREATIONTIMESTAMP_ISSET_ID, value);
324
  }
324
  }
325
 
325
 
326
  /**
326
  /**
327
   * 
327
   * 
328
   * @see ContactMedium
328
   * @see ActivityType
329
   */
329
   */
330
  public ContactMedium getContactMedium() {
330
  public ActivityType getType() {
331
    return this.contactMedium;
331
    return this.type;
332
  }
332
  }
333
 
333
 
334
  /**
334
  /**
335
   * 
335
   * 
336
   * @see ContactMedium
336
   * @see ActivityType
337
   */
337
   */
338
  public Activity setContactMedium(ContactMedium contactMedium) {
338
  public Activity setType(ActivityType type) {
339
    this.contactMedium = contactMedium;
339
    this.type = type;
340
    return this;
340
    return this;
341
  }
341
  }
342
 
342
 
343
  public void unsetContactMedium() {
343
  public void unsetType() {
344
    this.contactMedium = null;
344
    this.type = null;
345
  }
345
  }
346
 
346
 
347
  /** Returns true if field contactMedium is set (has been asigned a value) and false otherwise */
347
  /** Returns true if field type is set (has been asigned a value) and false otherwise */
348
  public boolean isSetContactMedium() {
348
  public boolean isSetType() {
349
    return this.contactMedium != null;
349
    return this.type != null;
350
  }
350
  }
351
 
351
 
352
  public void setContactMediumIsSet(boolean value) {
352
  public void setTypeIsSet(boolean value) {
353
    if (!value) {
353
    if (!value) {
354
      this.contactMedium = null;
354
      this.type = null;
355
    }
355
    }
356
  }
356
  }
357
 
357
 
358
  public long getCustomerId() {
358
  public long getCustomerId() {
359
    return this.customerId;
359
    return this.customerId;
Line 399... Line 399...
399
 
399
 
400
  public void setCreatorIdIsSet(boolean value) {
400
  public void setCreatorIdIsSet(boolean value) {
401
    __isset_bit_vector.set(__CREATORID_ISSET_ID, value);
401
    __isset_bit_vector.set(__CREATORID_ISSET_ID, value);
402
  }
402
  }
403
 
403
 
404
  public long getContactingAgentId() {
-
 
405
    return this.contactingAgentId;
-
 
406
  }
-
 
407
 
-
 
408
  public Activity setContactingAgentId(long contactingAgentId) {
-
 
409
    this.contactingAgentId = contactingAgentId;
-
 
410
    setContactingAgentIdIsSet(true);
-
 
411
    return this;
-
 
412
  }
-
 
413
 
-
 
414
  public void unsetContactingAgentId() {
-
 
415
    __isset_bit_vector.clear(__CONTACTINGAGENTID_ISSET_ID);
-
 
416
  }
-
 
417
 
-
 
418
  /** Returns true if field contactingAgentId is set (has been asigned a value) and false otherwise */
-
 
419
  public boolean isSetContactingAgentId() {
-
 
420
    return __isset_bit_vector.get(__CONTACTINGAGENTID_ISSET_ID);
-
 
421
  }
-
 
422
 
-
 
423
  public void setContactingAgentIdIsSet(boolean value) {
-
 
424
    __isset_bit_vector.set(__CONTACTINGAGENTID_ISSET_ID, value);
-
 
425
  }
-
 
426
 
-
 
427
  public long getTicketId() {
404
  public long getTicketId() {
428
    return this.ticketId;
405
    return this.ticketId;
429
  }
406
  }
430
 
407
 
431
  public Activity setTicketId(long ticketId) {
408
  public Activity setTicketId(long ticketId) {
Line 564... Line 541...
564
    if (!value) {
541
    if (!value) {
565
      this.ticketCategory = null;
542
      this.ticketCategory = null;
566
    }
543
    }
567
  }
544
  }
568
 
545
 
-
 
546
  public String getTicketDescription() {
-
 
547
    return this.ticketDescription;
-
 
548
  }
-
 
549
 
-
 
550
  public Activity setTicketDescription(String ticketDescription) {
-
 
551
    this.ticketDescription = ticketDescription;
-
 
552
    return this;
-
 
553
  }
-
 
554
 
-
 
555
  public void unsetTicketDescription() {
-
 
556
    this.ticketDescription = null;
-
 
557
  }
-
 
558
 
-
 
559
  /** Returns true if field ticketDescription is set (has been asigned a value) and false otherwise */
-
 
560
  public boolean isSetTicketDescription() {
-
 
561
    return this.ticketDescription != null;
-
 
562
  }
-
 
563
 
-
 
564
  public void setTicketDescriptionIsSet(boolean value) {
-
 
565
    if (!value) {
-
 
566
      this.ticketDescription = null;
-
 
567
    }
-
 
568
  }
-
 
569
 
569
  public void setFieldValue(_Fields field, Object value) {
570
  public void setFieldValue(_Fields field, Object value) {
570
    switch (field) {
571
    switch (field) {
571
    case ID:
572
    case ID:
572
      if (value == null) {
573
      if (value == null) {
573
        unsetId();
574
        unsetId();
Line 582... Line 583...
582
      } else {
583
      } else {
583
        setDescription((String)value);
584
        setDescription((String)value);
584
      }
585
      }
585
      break;
586
      break;
586
 
587
 
587
    case CONTACT_TIMESTAMP:
588
    case CREATION_TIMESTAMP:
588
      if (value == null) {
589
      if (value == null) {
589
        unsetContactTimestamp();
590
        unsetCreationTimestamp();
590
      } else {
591
      } else {
591
        setContactTimestamp((Long)value);
592
        setCreationTimestamp((Long)value);
592
      }
593
      }
593
      break;
594
      break;
594
 
595
 
595
    case CONTACT_MEDIUM:
596
    case TYPE:
596
      if (value == null) {
597
      if (value == null) {
597
        unsetContactMedium();
598
        unsetType();
598
      } else {
599
      } else {
599
        setContactMedium((ContactMedium)value);
600
        setType((ActivityType)value);
600
      }
601
      }
601
      break;
602
      break;
602
 
603
 
603
    case CUSTOMER_ID:
604
    case CUSTOMER_ID:
604
      if (value == null) {
605
      if (value == null) {
Line 614... Line 615...
614
      } else {
615
      } else {
615
        setCreatorId((Long)value);
616
        setCreatorId((Long)value);
616
      }
617
      }
617
      break;
618
      break;
618
 
619
 
619
    case CONTACTING_AGENT_ID:
-
 
620
      if (value == null) {
-
 
621
        unsetContactingAgentId();
-
 
622
      } else {
-
 
623
        setContactingAgentId((Long)value);
-
 
624
      }
-
 
625
      break;
-
 
626
 
-
 
627
    case TICKET_ID:
620
    case TICKET_ID:
628
      if (value == null) {
621
      if (value == null) {
629
        unsetTicketId();
622
        unsetTicketId();
630
      } else {
623
      } else {
631
        setTicketId((Long)value);
624
        setTicketId((Long)value);
Line 662... Line 655...
662
      } else {
655
      } else {
663
        setTicketCategory((TicketCategory)value);
656
        setTicketCategory((TicketCategory)value);
664
      }
657
      }
665
      break;
658
      break;
666
 
659
 
-
 
660
    case TICKET_DESCRIPTION:
-
 
661
      if (value == null) {
-
 
662
        unsetTicketDescription();
-
 
663
      } else {
-
 
664
        setTicketDescription((String)value);
-
 
665
      }
-
 
666
      break;
-
 
667
 
667
    }
668
    }
668
  }
669
  }
669
 
670
 
670
  public void setFieldValue(int fieldID, Object value) {
671
  public void setFieldValue(int fieldID, Object value) {
671
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
672
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
Line 677... Line 678...
677
      return new Long(getId());
678
      return new Long(getId());
678
 
679
 
679
    case DESCRIPTION:
680
    case DESCRIPTION:
680
      return getDescription();
681
      return getDescription();
681
 
682
 
682
    case CONTACT_TIMESTAMP:
683
    case CREATION_TIMESTAMP:
683
      return new Long(getContactTimestamp());
684
      return new Long(getCreationTimestamp());
684
 
685
 
685
    case CONTACT_MEDIUM:
686
    case TYPE:
686
      return getContactMedium();
687
      return getType();
687
 
688
 
688
    case CUSTOMER_ID:
689
    case CUSTOMER_ID:
689
      return new Long(getCustomerId());
690
      return new Long(getCustomerId());
690
 
691
 
691
    case CREATOR_ID:
692
    case CREATOR_ID:
692
      return new Long(getCreatorId());
693
      return new Long(getCreatorId());
693
 
694
 
694
    case CONTACTING_AGENT_ID:
-
 
695
      return new Long(getContactingAgentId());
-
 
696
 
-
 
697
    case TICKET_ID:
695
    case TICKET_ID:
698
      return new Long(getTicketId());
696
      return new Long(getTicketId());
699
 
697
 
700
    case TICKET_PRIORITY:
698
    case TICKET_PRIORITY:
701
      return getTicketPriority();
699
      return getTicketPriority();
Line 707... Line 705...
707
      return getTicketStatus();
705
      return getTicketStatus();
708
 
706
 
709
    case TICKET_CATEGORY:
707
    case TICKET_CATEGORY:
710
      return getTicketCategory();
708
      return getTicketCategory();
711
 
709
 
-
 
710
    case TICKET_DESCRIPTION:
-
 
711
      return getTicketDescription();
-
 
712
 
712
    }
713
    }
713
    throw new IllegalStateException();
714
    throw new IllegalStateException();
714
  }
715
  }
715
 
716
 
716
  public Object getFieldValue(int fieldId) {
717
  public Object getFieldValue(int fieldId) {
Line 722... Line 723...
722
    switch (field) {
723
    switch (field) {
723
    case ID:
724
    case ID:
724
      return isSetId();
725
      return isSetId();
725
    case DESCRIPTION:
726
    case DESCRIPTION:
726
      return isSetDescription();
727
      return isSetDescription();
727
    case CONTACT_TIMESTAMP:
728
    case CREATION_TIMESTAMP:
728
      return isSetContactTimestamp();
729
      return isSetCreationTimestamp();
729
    case CONTACT_MEDIUM:
730
    case TYPE:
730
      return isSetContactMedium();
731
      return isSetType();
731
    case CUSTOMER_ID:
732
    case CUSTOMER_ID:
732
      return isSetCustomerId();
733
      return isSetCustomerId();
733
    case CREATOR_ID:
734
    case CREATOR_ID:
734
      return isSetCreatorId();
735
      return isSetCreatorId();
735
    case CONTACTING_AGENT_ID:
-
 
736
      return isSetContactingAgentId();
-
 
737
    case TICKET_ID:
736
    case TICKET_ID:
738
      return isSetTicketId();
737
      return isSetTicketId();
739
    case TICKET_PRIORITY:
738
    case TICKET_PRIORITY:
740
      return isSetTicketPriority();
739
      return isSetTicketPriority();
741
    case TICKET_ASSIGNEE_ID:
740
    case TICKET_ASSIGNEE_ID:
742
      return isSetTicketAssigneeId();
741
      return isSetTicketAssigneeId();
743
    case TICKET_STATUS:
742
    case TICKET_STATUS:
744
      return isSetTicketStatus();
743
      return isSetTicketStatus();
745
    case TICKET_CATEGORY:
744
    case TICKET_CATEGORY:
746
      return isSetTicketCategory();
745
      return isSetTicketCategory();
-
 
746
    case TICKET_DESCRIPTION:
-
 
747
      return isSetTicketDescription();
747
    }
748
    }
748
    throw new IllegalStateException();
749
    throw new IllegalStateException();
749
  }
750
  }
750
 
751
 
751
  public boolean isSet(int fieldID) {
752
  public boolean isSet(int fieldID) {
Line 781... Line 782...
781
        return false;
782
        return false;
782
      if (!this.description.equals(that.description))
783
      if (!this.description.equals(that.description))
783
        return false;
784
        return false;
784
    }
785
    }
785
 
786
 
786
    boolean this_present_contactTimestamp = true;
787
    boolean this_present_creationTimestamp = true;
787
    boolean that_present_contactTimestamp = true;
788
    boolean that_present_creationTimestamp = true;
788
    if (this_present_contactTimestamp || that_present_contactTimestamp) {
789
    if (this_present_creationTimestamp || that_present_creationTimestamp) {
789
      if (!(this_present_contactTimestamp && that_present_contactTimestamp))
790
      if (!(this_present_creationTimestamp && that_present_creationTimestamp))
790
        return false;
791
        return false;
791
      if (this.contactTimestamp != that.contactTimestamp)
792
      if (this.creationTimestamp != that.creationTimestamp)
792
        return false;
793
        return false;
793
    }
794
    }
794
 
795
 
795
    boolean this_present_contactMedium = true && this.isSetContactMedium();
796
    boolean this_present_type = true && this.isSetType();
796
    boolean that_present_contactMedium = true && that.isSetContactMedium();
797
    boolean that_present_type = true && that.isSetType();
797
    if (this_present_contactMedium || that_present_contactMedium) {
798
    if (this_present_type || that_present_type) {
798
      if (!(this_present_contactMedium && that_present_contactMedium))
799
      if (!(this_present_type && that_present_type))
799
        return false;
800
        return false;
800
      if (!this.contactMedium.equals(that.contactMedium))
801
      if (!this.type.equals(that.type))
801
        return false;
802
        return false;
802
    }
803
    }
803
 
804
 
804
    boolean this_present_customerId = true;
805
    boolean this_present_customerId = true;
805
    boolean that_present_customerId = true;
806
    boolean that_present_customerId = true;
Line 817... Line 818...
817
        return false;
818
        return false;
818
      if (this.creatorId != that.creatorId)
819
      if (this.creatorId != that.creatorId)
819
        return false;
820
        return false;
820
    }
821
    }
821
 
822
 
822
    boolean this_present_contactingAgentId = true;
-
 
823
    boolean that_present_contactingAgentId = true;
-
 
824
    if (this_present_contactingAgentId || that_present_contactingAgentId) {
-
 
825
      if (!(this_present_contactingAgentId && that_present_contactingAgentId))
-
 
826
        return false;
-
 
827
      if (this.contactingAgentId != that.contactingAgentId)
-
 
828
        return false;
-
 
829
    }
-
 
830
 
-
 
831
    boolean this_present_ticketId = true;
823
    boolean this_present_ticketId = true;
832
    boolean that_present_ticketId = true;
824
    boolean that_present_ticketId = true;
833
    if (this_present_ticketId || that_present_ticketId) {
825
    if (this_present_ticketId || that_present_ticketId) {
834
      if (!(this_present_ticketId && that_present_ticketId))
826
      if (!(this_present_ticketId && that_present_ticketId))
835
        return false;
827
        return false;
Line 871... Line 863...
871
        return false;
863
        return false;
872
      if (!this.ticketCategory.equals(that.ticketCategory))
864
      if (!this.ticketCategory.equals(that.ticketCategory))
873
        return false;
865
        return false;
874
    }
866
    }
875
 
867
 
-
 
868
    boolean this_present_ticketDescription = true && this.isSetTicketDescription();
-
 
869
    boolean that_present_ticketDescription = true && that.isSetTicketDescription();
-
 
870
    if (this_present_ticketDescription || that_present_ticketDescription) {
-
 
871
      if (!(this_present_ticketDescription && that_present_ticketDescription))
-
 
872
        return false;
-
 
873
      if (!this.ticketDescription.equals(that.ticketDescription))
-
 
874
        return false;
-
 
875
    }
-
 
876
 
876
    return true;
877
    return true;
877
  }
878
  }
878
 
879
 
879
  @Override
880
  @Override
880
  public int hashCode() {
881
  public int hashCode() {
Line 903... Line 904...
903
    }
904
    }
904
    lastComparison = TBaseHelper.compareTo(description, typedOther.description);
905
    lastComparison = TBaseHelper.compareTo(description, typedOther.description);
905
    if (lastComparison != 0) {
906
    if (lastComparison != 0) {
906
      return lastComparison;
907
      return lastComparison;
907
    }
908
    }
908
    lastComparison = Boolean.valueOf(isSetContactTimestamp()).compareTo(isSetContactTimestamp());
909
    lastComparison = Boolean.valueOf(isSetCreationTimestamp()).compareTo(isSetCreationTimestamp());
909
    if (lastComparison != 0) {
910
    if (lastComparison != 0) {
910
      return lastComparison;
911
      return lastComparison;
911
    }
912
    }
912
    lastComparison = TBaseHelper.compareTo(contactTimestamp, typedOther.contactTimestamp);
913
    lastComparison = TBaseHelper.compareTo(creationTimestamp, typedOther.creationTimestamp);
913
    if (lastComparison != 0) {
914
    if (lastComparison != 0) {
914
      return lastComparison;
915
      return lastComparison;
915
    }
916
    }
916
    lastComparison = Boolean.valueOf(isSetContactMedium()).compareTo(isSetContactMedium());
917
    lastComparison = Boolean.valueOf(isSetType()).compareTo(isSetType());
917
    if (lastComparison != 0) {
918
    if (lastComparison != 0) {
918
      return lastComparison;
919
      return lastComparison;
919
    }
920
    }
920
    lastComparison = TBaseHelper.compareTo(contactMedium, typedOther.contactMedium);
921
    lastComparison = TBaseHelper.compareTo(type, typedOther.type);
921
    if (lastComparison != 0) {
922
    if (lastComparison != 0) {
922
      return lastComparison;
923
      return lastComparison;
923
    }
924
    }
924
    lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
925
    lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
925
    if (lastComparison != 0) {
926
    if (lastComparison != 0) {
Line 935... Line 936...
935
    }
936
    }
936
    lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
937
    lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
937
    if (lastComparison != 0) {
938
    if (lastComparison != 0) {
938
      return lastComparison;
939
      return lastComparison;
939
    }
940
    }
940
    lastComparison = Boolean.valueOf(isSetContactingAgentId()).compareTo(isSetContactingAgentId());
-
 
941
    if (lastComparison != 0) {
-
 
942
      return lastComparison;
-
 
943
    }
-
 
944
    lastComparison = TBaseHelper.compareTo(contactingAgentId, typedOther.contactingAgentId);
-
 
945
    if (lastComparison != 0) {
-
 
946
      return lastComparison;
-
 
947
    }
-
 
948
    lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());
941
    lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());
949
    if (lastComparison != 0) {
942
    if (lastComparison != 0) {
950
      return lastComparison;
943
      return lastComparison;
951
    }
944
    }
952
    lastComparison = TBaseHelper.compareTo(ticketId, typedOther.ticketId);
945
    lastComparison = TBaseHelper.compareTo(ticketId, typedOther.ticketId);
Line 983... Line 976...
983
    }
976
    }
984
    lastComparison = TBaseHelper.compareTo(ticketCategory, typedOther.ticketCategory);
977
    lastComparison = TBaseHelper.compareTo(ticketCategory, typedOther.ticketCategory);
985
    if (lastComparison != 0) {
978
    if (lastComparison != 0) {
986
      return lastComparison;
979
      return lastComparison;
987
    }
980
    }
-
 
981
    lastComparison = Boolean.valueOf(isSetTicketDescription()).compareTo(isSetTicketDescription());
-
 
982
    if (lastComparison != 0) {
-
 
983
      return lastComparison;
-
 
984
    }
-
 
985
    lastComparison = TBaseHelper.compareTo(ticketDescription, typedOther.ticketDescription);
-
 
986
    if (lastComparison != 0) {
-
 
987
      return lastComparison;
-
 
988
    }
988
    return 0;
989
    return 0;
989
  }
990
  }
990
 
991
 
991
  public void read(TProtocol iprot) throws TException {
992
  public void read(TProtocol iprot) throws TException {
992
    TField field;
993
    TField field;
Line 1015... Line 1016...
1015
              this.description = iprot.readString();
1016
              this.description = iprot.readString();
1016
            } else { 
1017
            } else { 
1017
              TProtocolUtil.skip(iprot, field.type);
1018
              TProtocolUtil.skip(iprot, field.type);
1018
            }
1019
            }
1019
            break;
1020
            break;
1020
          case CONTACT_TIMESTAMP:
1021
          case CREATION_TIMESTAMP:
1021
            if (field.type == TType.I64) {
1022
            if (field.type == TType.I64) {
1022
              this.contactTimestamp = iprot.readI64();
1023
              this.creationTimestamp = iprot.readI64();
1023
              setContactTimestampIsSet(true);
1024
              setCreationTimestampIsSet(true);
1024
            } else { 
1025
            } else { 
1025
              TProtocolUtil.skip(iprot, field.type);
1026
              TProtocolUtil.skip(iprot, field.type);
1026
            }
1027
            }
1027
            break;
1028
            break;
1028
          case CONTACT_MEDIUM:
1029
          case TYPE:
1029
            if (field.type == TType.I32) {
1030
            if (field.type == TType.I32) {
1030
              this.contactMedium = ContactMedium.findByValue(iprot.readI32());
1031
              this.type = ActivityType.findByValue(iprot.readI32());
1031
            } else { 
1032
            } else { 
1032
              TProtocolUtil.skip(iprot, field.type);
1033
              TProtocolUtil.skip(iprot, field.type);
1033
            }
1034
            }
1034
            break;
1035
            break;
1035
          case CUSTOMER_ID:
1036
          case CUSTOMER_ID:
Line 1046... Line 1047...
1046
              setCreatorIdIsSet(true);
1047
              setCreatorIdIsSet(true);
1047
            } else { 
1048
            } else { 
1048
              TProtocolUtil.skip(iprot, field.type);
1049
              TProtocolUtil.skip(iprot, field.type);
1049
            }
1050
            }
1050
            break;
1051
            break;
1051
          case CONTACTING_AGENT_ID:
-
 
1052
            if (field.type == TType.I64) {
-
 
1053
              this.contactingAgentId = iprot.readI64();
-
 
1054
              setContactingAgentIdIsSet(true);
-
 
1055
            } else { 
-
 
1056
              TProtocolUtil.skip(iprot, field.type);
-
 
1057
            }
-
 
1058
            break;
-
 
1059
          case TICKET_ID:
1052
          case TICKET_ID:
1060
            if (field.type == TType.I64) {
1053
            if (field.type == TType.I64) {
1061
              this.ticketId = iprot.readI64();
1054
              this.ticketId = iprot.readI64();
1062
              setTicketIdIsSet(true);
1055
              setTicketIdIsSet(true);
1063
            } else { 
1056
            } else { 
Line 1091... Line 1084...
1091
              this.ticketCategory = TicketCategory.findByValue(iprot.readI32());
1084
              this.ticketCategory = TicketCategory.findByValue(iprot.readI32());
1092
            } else { 
1085
            } else { 
1093
              TProtocolUtil.skip(iprot, field.type);
1086
              TProtocolUtil.skip(iprot, field.type);
1094
            }
1087
            }
1095
            break;
1088
            break;
-
 
1089
          case TICKET_DESCRIPTION:
-
 
1090
            if (field.type == TType.STRING) {
-
 
1091
              this.ticketDescription = iprot.readString();
-
 
1092
            } else { 
-
 
1093
              TProtocolUtil.skip(iprot, field.type);
-
 
1094
            }
-
 
1095
            break;
1096
        }
1096
        }
1097
        iprot.readFieldEnd();
1097
        iprot.readFieldEnd();
1098
      }
1098
      }
1099
    }
1099
    }
1100
    iprot.readStructEnd();
1100
    iprot.readStructEnd();
Line 1111... Line 1111...
1111
    if (this.description != null) {
1111
    if (this.description != null) {
1112
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
1112
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
1113
      oprot.writeString(this.description);
1113
      oprot.writeString(this.description);
1114
      oprot.writeFieldEnd();
1114
      oprot.writeFieldEnd();
1115
    }
1115
    }
1116
    oprot.writeFieldBegin(CONTACT_TIMESTAMP_FIELD_DESC);
1116
    oprot.writeFieldBegin(CREATION_TIMESTAMP_FIELD_DESC);
1117
    oprot.writeI64(this.contactTimestamp);
1117
    oprot.writeI64(this.creationTimestamp);
1118
    oprot.writeFieldEnd();
1118
    oprot.writeFieldEnd();
1119
    if (this.contactMedium != null) {
1119
    if (this.type != null) {
1120
      oprot.writeFieldBegin(CONTACT_MEDIUM_FIELD_DESC);
1120
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
1121
      oprot.writeI32(this.contactMedium.getValue());
1121
      oprot.writeI32(this.type.getValue());
1122
      oprot.writeFieldEnd();
1122
      oprot.writeFieldEnd();
1123
    }
1123
    }
1124
    oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
1124
    oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
1125
    oprot.writeI64(this.customerId);
1125
    oprot.writeI64(this.customerId);
1126
    oprot.writeFieldEnd();
1126
    oprot.writeFieldEnd();
1127
    oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
1127
    oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
1128
    oprot.writeI64(this.creatorId);
1128
    oprot.writeI64(this.creatorId);
1129
    oprot.writeFieldEnd();
1129
    oprot.writeFieldEnd();
1130
    oprot.writeFieldBegin(CONTACTING_AGENT_ID_FIELD_DESC);
-
 
1131
    oprot.writeI64(this.contactingAgentId);
-
 
1132
    oprot.writeFieldEnd();
-
 
1133
    oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);
1130
    oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);
1134
    oprot.writeI64(this.ticketId);
1131
    oprot.writeI64(this.ticketId);
1135
    oprot.writeFieldEnd();
1132
    oprot.writeFieldEnd();
1136
    if (this.ticketPriority != null) {
1133
    if (this.ticketPriority != null) {
1137
      oprot.writeFieldBegin(TICKET_PRIORITY_FIELD_DESC);
1134
      oprot.writeFieldBegin(TICKET_PRIORITY_FIELD_DESC);
Line 1149... Line 1146...
1149
    if (this.ticketCategory != null) {
1146
    if (this.ticketCategory != null) {
1150
      oprot.writeFieldBegin(TICKET_CATEGORY_FIELD_DESC);
1147
      oprot.writeFieldBegin(TICKET_CATEGORY_FIELD_DESC);
1151
      oprot.writeI32(this.ticketCategory.getValue());
1148
      oprot.writeI32(this.ticketCategory.getValue());
1152
      oprot.writeFieldEnd();
1149
      oprot.writeFieldEnd();
1153
    }
1150
    }
-
 
1151
    if (this.ticketDescription != null) {
-
 
1152
      oprot.writeFieldBegin(TICKET_DESCRIPTION_FIELD_DESC);
-
 
1153
      oprot.writeString(this.ticketDescription);
-
 
1154
      oprot.writeFieldEnd();
-
 
1155
    }
1154
    oprot.writeFieldStop();
1156
    oprot.writeFieldStop();
1155
    oprot.writeStructEnd();
1157
    oprot.writeStructEnd();
1156
  }
1158
  }
1157
 
1159
 
1158
  @Override
1160
  @Override
Line 1170... Line 1172...
1170
    } else {
1172
    } else {
1171
      sb.append(this.description);
1173
      sb.append(this.description);
1172
    }
1174
    }
1173
    first = false;
1175
    first = false;
1174
    if (!first) sb.append(", ");
1176
    if (!first) sb.append(", ");
1175
    sb.append("contactTimestamp:");
1177
    sb.append("creationTimestamp:");
1176
    sb.append(this.contactTimestamp);
1178
    sb.append(this.creationTimestamp);
1177
    first = false;
1179
    first = false;
1178
    if (!first) sb.append(", ");
1180
    if (!first) sb.append(", ");
1179
    sb.append("contactMedium:");
1181
    sb.append("type:");
1180
    if (this.contactMedium == null) {
1182
    if (this.type == null) {
1181
      sb.append("null");
1183
      sb.append("null");
1182
    } else {
1184
    } else {
1183
      String contactMedium_name = contactMedium.name();
1185
      String type_name = type.name();
1184
      if (contactMedium_name != null) {
1186
      if (type_name != null) {
1185
        sb.append(contactMedium_name);
1187
        sb.append(type_name);
1186
        sb.append(" (");
1188
        sb.append(" (");
1187
      }
1189
      }
1188
      sb.append(this.contactMedium);
1190
      sb.append(this.type);
1189
      if (contactMedium_name != null) {
1191
      if (type_name != null) {
1190
        sb.append(")");
1192
        sb.append(")");
1191
      }
1193
      }
1192
    }
1194
    }
1193
    first = false;
1195
    first = false;
1194
    if (!first) sb.append(", ");
1196
    if (!first) sb.append(", ");
Line 1198... Line 1200...
1198
    if (!first) sb.append(", ");
1200
    if (!first) sb.append(", ");
1199
    sb.append("creatorId:");
1201
    sb.append("creatorId:");
1200
    sb.append(this.creatorId);
1202
    sb.append(this.creatorId);
1201
    first = false;
1203
    first = false;
1202
    if (!first) sb.append(", ");
1204
    if (!first) sb.append(", ");
1203
    sb.append("contactingAgentId:");
-
 
1204
    sb.append(this.contactingAgentId);
-
 
1205
    first = false;
-
 
1206
    if (!first) sb.append(", ");
-
 
1207
    sb.append("ticketId:");
1205
    sb.append("ticketId:");
1208
    sb.append(this.ticketId);
1206
    sb.append(this.ticketId);
1209
    first = false;
1207
    first = false;
1210
    if (!first) sb.append(", ");
1208
    if (!first) sb.append(", ");
1211
    sb.append("ticketPriority:");
1209
    sb.append("ticketPriority:");
Line 1257... Line 1255...
1257
      if (ticketCategory_name != null) {
1255
      if (ticketCategory_name != null) {
1258
        sb.append(")");
1256
        sb.append(")");
1259
      }
1257
      }
1260
    }
1258
    }
1261
    first = false;
1259
    first = false;
-
 
1260
    if (!first) sb.append(", ");
-
 
1261
    sb.append("ticketDescription:");
-
 
1262
    if (this.ticketDescription == null) {
-
 
1263
      sb.append("null");
-
 
1264
    } else {
-
 
1265
      sb.append(this.ticketDescription);
-
 
1266
    }
-
 
1267
    first = false;
1262
    sb.append(")");
1268
    sb.append(")");
1263
    return sb.toString();
1269
    return sb.toString();
1264
  }
1270
  }
1265
 
1271
 
1266
  public void validate() throws TException {
1272
  public void validate() throws TException {