| 3028 |
mandeep.dh |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.crm;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
|
|
18 |
import java.util.Arrays;
|
|
|
19 |
import org.slf4j.Logger;
|
|
|
20 |
import org.slf4j.LoggerFactory;
|
|
|
21 |
|
|
|
22 |
import org.apache.thrift.*;
|
|
|
23 |
import org.apache.thrift.meta_data.*;
|
|
|
24 |
import org.apache.thrift.protocol.*;
|
|
|
25 |
|
|
|
26 |
public class Activity implements TBase<Activity._Fields>, java.io.Serializable, Cloneable, Comparable<Activity> {
|
|
|
27 |
private static final TStruct STRUCT_DESC = new TStruct("Activity");
|
|
|
28 |
|
|
|
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);
|
| 3106 |
mandeep.dh |
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);
|
| 3028 |
mandeep.dh |
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);
|
| 3206 |
mandeep.dh |
35 |
private static final TField EMAIL_ID_FIELD_DESC = new TField("emailId", TType.I64, (short)7);
|
|
|
36 |
private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)8);
|
|
|
37 |
private static final TField TICKET_PRIORITY_FIELD_DESC = new TField("ticketPriority", TType.I32, (short)9);
|
|
|
38 |
private static final TField TICKET_ASSIGNEE_ID_FIELD_DESC = new TField("ticketAssigneeId", TType.I64, (short)10);
|
|
|
39 |
private static final TField TICKET_STATUS_FIELD_DESC = new TField("ticketStatus", TType.I32, (short)11);
|
|
|
40 |
private static final TField TICKET_CATEGORY_FIELD_DESC = new TField("ticketCategory", TType.I32, (short)12);
|
|
|
41 |
private static final TField TICKET_DESCRIPTION_FIELD_DESC = new TField("ticketDescription", TType.STRING, (short)13);
|
| 3028 |
mandeep.dh |
42 |
|
|
|
43 |
private long id;
|
|
|
44 |
private String description;
|
| 3106 |
mandeep.dh |
45 |
private long creationTimestamp;
|
|
|
46 |
private ActivityType type;
|
| 3028 |
mandeep.dh |
47 |
private long customerId;
|
|
|
48 |
private long creatorId;
|
| 3206 |
mandeep.dh |
49 |
private long emailId;
|
| 3028 |
mandeep.dh |
50 |
private long ticketId;
|
|
|
51 |
private TicketPriority ticketPriority;
|
|
|
52 |
private long ticketAssigneeId;
|
|
|
53 |
private TicketStatus ticketStatus;
|
|
|
54 |
private TicketCategory ticketCategory;
|
| 3106 |
mandeep.dh |
55 |
private String ticketDescription;
|
| 3028 |
mandeep.dh |
56 |
|
|
|
57 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
58 |
public enum _Fields implements TFieldIdEnum {
|
|
|
59 |
ID((short)1, "id"),
|
|
|
60 |
DESCRIPTION((short)2, "description"),
|
| 3106 |
mandeep.dh |
61 |
CREATION_TIMESTAMP((short)3, "creationTimestamp"),
|
| 3028 |
mandeep.dh |
62 |
/**
|
|
|
63 |
*
|
| 3106 |
mandeep.dh |
64 |
* @see ActivityType
|
| 3028 |
mandeep.dh |
65 |
*/
|
| 3106 |
mandeep.dh |
66 |
TYPE((short)4, "type"),
|
| 3028 |
mandeep.dh |
67 |
CUSTOMER_ID((short)5, "customerId"),
|
|
|
68 |
CREATOR_ID((short)6, "creatorId"),
|
| 3206 |
mandeep.dh |
69 |
EMAIL_ID((short)7, "emailId"),
|
|
|
70 |
TICKET_ID((short)8, "ticketId"),
|
| 3028 |
mandeep.dh |
71 |
/**
|
|
|
72 |
*
|
|
|
73 |
* @see TicketPriority
|
|
|
74 |
*/
|
| 3206 |
mandeep.dh |
75 |
TICKET_PRIORITY((short)9, "ticketPriority"),
|
|
|
76 |
TICKET_ASSIGNEE_ID((short)10, "ticketAssigneeId"),
|
| 3028 |
mandeep.dh |
77 |
/**
|
|
|
78 |
*
|
|
|
79 |
* @see TicketStatus
|
|
|
80 |
*/
|
| 3206 |
mandeep.dh |
81 |
TICKET_STATUS((short)11, "ticketStatus"),
|
| 3028 |
mandeep.dh |
82 |
/**
|
|
|
83 |
*
|
|
|
84 |
* @see TicketCategory
|
|
|
85 |
*/
|
| 3206 |
mandeep.dh |
86 |
TICKET_CATEGORY((short)12, "ticketCategory"),
|
|
|
87 |
TICKET_DESCRIPTION((short)13, "ticketDescription");
|
| 3028 |
mandeep.dh |
88 |
|
|
|
89 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
90 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
91 |
|
|
|
92 |
static {
|
|
|
93 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
94 |
byId.put((int)field._thriftId, field);
|
|
|
95 |
byName.put(field.getFieldName(), field);
|
|
|
96 |
}
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
/**
|
|
|
100 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
101 |
*/
|
|
|
102 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
103 |
return byId.get(fieldId);
|
|
|
104 |
}
|
|
|
105 |
|
|
|
106 |
/**
|
|
|
107 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
108 |
* if it is not found.
|
|
|
109 |
*/
|
|
|
110 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
111 |
_Fields fields = findByThriftId(fieldId);
|
|
|
112 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
113 |
return fields;
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
/**
|
|
|
117 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
118 |
*/
|
|
|
119 |
public static _Fields findByName(String name) {
|
|
|
120 |
return byName.get(name);
|
|
|
121 |
}
|
|
|
122 |
|
|
|
123 |
private final short _thriftId;
|
|
|
124 |
private final String _fieldName;
|
|
|
125 |
|
|
|
126 |
_Fields(short thriftId, String fieldName) {
|
|
|
127 |
_thriftId = thriftId;
|
|
|
128 |
_fieldName = fieldName;
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
public short getThriftFieldId() {
|
|
|
132 |
return _thriftId;
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
public String getFieldName() {
|
|
|
136 |
return _fieldName;
|
|
|
137 |
}
|
|
|
138 |
}
|
|
|
139 |
|
|
|
140 |
// isset id assignments
|
|
|
141 |
private static final int __ID_ISSET_ID = 0;
|
| 3106 |
mandeep.dh |
142 |
private static final int __CREATIONTIMESTAMP_ISSET_ID = 1;
|
| 3028 |
mandeep.dh |
143 |
private static final int __CUSTOMERID_ISSET_ID = 2;
|
|
|
144 |
private static final int __CREATORID_ISSET_ID = 3;
|
| 3206 |
mandeep.dh |
145 |
private static final int __EMAILID_ISSET_ID = 4;
|
|
|
146 |
private static final int __TICKETID_ISSET_ID = 5;
|
|
|
147 |
private static final int __TICKETASSIGNEEID_ISSET_ID = 6;
|
|
|
148 |
private BitSet __isset_bit_vector = new BitSet(7);
|
| 3028 |
mandeep.dh |
149 |
|
|
|
150 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
151 |
put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT,
|
|
|
152 |
new FieldValueMetaData(TType.I64)));
|
| 3168 |
mandeep.dh |
153 |
put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.OPTIONAL,
|
| 3028 |
mandeep.dh |
154 |
new FieldValueMetaData(TType.STRING)));
|
| 3106 |
mandeep.dh |
155 |
put(_Fields.CREATION_TIMESTAMP, new FieldMetaData("creationTimestamp", TFieldRequirementType.DEFAULT,
|
| 3028 |
mandeep.dh |
156 |
new FieldValueMetaData(TType.I64)));
|
| 3106 |
mandeep.dh |
157 |
put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT,
|
|
|
158 |
new EnumMetaData(TType.ENUM, ActivityType.class)));
|
| 3028 |
mandeep.dh |
159 |
put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT,
|
|
|
160 |
new FieldValueMetaData(TType.I64)));
|
|
|
161 |
put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT,
|
|
|
162 |
new FieldValueMetaData(TType.I64)));
|
| 3206 |
mandeep.dh |
163 |
put(_Fields.EMAIL_ID, new FieldMetaData("emailId", TFieldRequirementType.OPTIONAL,
|
|
|
164 |
new FieldValueMetaData(TType.I64)));
|
| 3168 |
mandeep.dh |
165 |
put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.OPTIONAL,
|
| 3028 |
mandeep.dh |
166 |
new FieldValueMetaData(TType.I64)));
|
| 3168 |
mandeep.dh |
167 |
put(_Fields.TICKET_PRIORITY, new FieldMetaData("ticketPriority", TFieldRequirementType.OPTIONAL,
|
| 3028 |
mandeep.dh |
168 |
new EnumMetaData(TType.ENUM, TicketPriority.class)));
|
| 3168 |
mandeep.dh |
169 |
put(_Fields.TICKET_ASSIGNEE_ID, new FieldMetaData("ticketAssigneeId", TFieldRequirementType.OPTIONAL,
|
| 3028 |
mandeep.dh |
170 |
new FieldValueMetaData(TType.I64)));
|
| 3168 |
mandeep.dh |
171 |
put(_Fields.TICKET_STATUS, new FieldMetaData("ticketStatus", TFieldRequirementType.OPTIONAL,
|
| 3028 |
mandeep.dh |
172 |
new EnumMetaData(TType.ENUM, TicketStatus.class)));
|
| 3168 |
mandeep.dh |
173 |
put(_Fields.TICKET_CATEGORY, new FieldMetaData("ticketCategory", TFieldRequirementType.OPTIONAL,
|
| 3028 |
mandeep.dh |
174 |
new EnumMetaData(TType.ENUM, TicketCategory.class)));
|
| 3168 |
mandeep.dh |
175 |
put(_Fields.TICKET_DESCRIPTION, new FieldMetaData("ticketDescription", TFieldRequirementType.OPTIONAL,
|
| 3106 |
mandeep.dh |
176 |
new FieldValueMetaData(TType.STRING)));
|
| 3028 |
mandeep.dh |
177 |
}});
|
|
|
178 |
|
|
|
179 |
static {
|
|
|
180 |
FieldMetaData.addStructMetaDataMap(Activity.class, metaDataMap);
|
|
|
181 |
}
|
|
|
182 |
|
|
|
183 |
public Activity() {
|
|
|
184 |
}
|
|
|
185 |
|
|
|
186 |
public Activity(
|
|
|
187 |
long id,
|
| 3106 |
mandeep.dh |
188 |
long creationTimestamp,
|
|
|
189 |
ActivityType type,
|
| 3028 |
mandeep.dh |
190 |
long customerId,
|
| 3168 |
mandeep.dh |
191 |
long creatorId)
|
| 3028 |
mandeep.dh |
192 |
{
|
|
|
193 |
this();
|
|
|
194 |
this.id = id;
|
|
|
195 |
setIdIsSet(true);
|
| 3106 |
mandeep.dh |
196 |
this.creationTimestamp = creationTimestamp;
|
|
|
197 |
setCreationTimestampIsSet(true);
|
|
|
198 |
this.type = type;
|
| 3028 |
mandeep.dh |
199 |
this.customerId = customerId;
|
|
|
200 |
setCustomerIdIsSet(true);
|
|
|
201 |
this.creatorId = creatorId;
|
|
|
202 |
setCreatorIdIsSet(true);
|
|
|
203 |
}
|
|
|
204 |
|
|
|
205 |
/**
|
|
|
206 |
* Performs a deep copy on <i>other</i>.
|
|
|
207 |
*/
|
|
|
208 |
public Activity(Activity other) {
|
|
|
209 |
__isset_bit_vector.clear();
|
|
|
210 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
211 |
this.id = other.id;
|
|
|
212 |
if (other.isSetDescription()) {
|
|
|
213 |
this.description = other.description;
|
|
|
214 |
}
|
| 3106 |
mandeep.dh |
215 |
this.creationTimestamp = other.creationTimestamp;
|
|
|
216 |
if (other.isSetType()) {
|
|
|
217 |
this.type = other.type;
|
| 3028 |
mandeep.dh |
218 |
}
|
|
|
219 |
this.customerId = other.customerId;
|
|
|
220 |
this.creatorId = other.creatorId;
|
| 3206 |
mandeep.dh |
221 |
this.emailId = other.emailId;
|
| 3028 |
mandeep.dh |
222 |
this.ticketId = other.ticketId;
|
|
|
223 |
if (other.isSetTicketPriority()) {
|
|
|
224 |
this.ticketPriority = other.ticketPriority;
|
|
|
225 |
}
|
|
|
226 |
this.ticketAssigneeId = other.ticketAssigneeId;
|
|
|
227 |
if (other.isSetTicketStatus()) {
|
|
|
228 |
this.ticketStatus = other.ticketStatus;
|
|
|
229 |
}
|
|
|
230 |
if (other.isSetTicketCategory()) {
|
|
|
231 |
this.ticketCategory = other.ticketCategory;
|
|
|
232 |
}
|
| 3106 |
mandeep.dh |
233 |
if (other.isSetTicketDescription()) {
|
|
|
234 |
this.ticketDescription = other.ticketDescription;
|
|
|
235 |
}
|
| 3028 |
mandeep.dh |
236 |
}
|
|
|
237 |
|
|
|
238 |
public Activity deepCopy() {
|
|
|
239 |
return new Activity(this);
|
|
|
240 |
}
|
|
|
241 |
|
|
|
242 |
@Deprecated
|
|
|
243 |
public Activity clone() {
|
|
|
244 |
return new Activity(this);
|
|
|
245 |
}
|
|
|
246 |
|
|
|
247 |
public long getId() {
|
|
|
248 |
return this.id;
|
|
|
249 |
}
|
|
|
250 |
|
|
|
251 |
public Activity setId(long id) {
|
|
|
252 |
this.id = id;
|
|
|
253 |
setIdIsSet(true);
|
|
|
254 |
return this;
|
|
|
255 |
}
|
|
|
256 |
|
|
|
257 |
public void unsetId() {
|
|
|
258 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
259 |
}
|
|
|
260 |
|
|
|
261 |
/** Returns true if field id is set (has been asigned a value) and false otherwise */
|
|
|
262 |
public boolean isSetId() {
|
|
|
263 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
264 |
}
|
|
|
265 |
|
|
|
266 |
public void setIdIsSet(boolean value) {
|
|
|
267 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
268 |
}
|
|
|
269 |
|
|
|
270 |
public String getDescription() {
|
|
|
271 |
return this.description;
|
|
|
272 |
}
|
|
|
273 |
|
|
|
274 |
public Activity setDescription(String description) {
|
|
|
275 |
this.description = description;
|
|
|
276 |
return this;
|
|
|
277 |
}
|
|
|
278 |
|
|
|
279 |
public void unsetDescription() {
|
|
|
280 |
this.description = null;
|
|
|
281 |
}
|
|
|
282 |
|
|
|
283 |
/** Returns true if field description is set (has been asigned a value) and false otherwise */
|
|
|
284 |
public boolean isSetDescription() {
|
|
|
285 |
return this.description != null;
|
|
|
286 |
}
|
|
|
287 |
|
|
|
288 |
public void setDescriptionIsSet(boolean value) {
|
|
|
289 |
if (!value) {
|
|
|
290 |
this.description = null;
|
|
|
291 |
}
|
|
|
292 |
}
|
|
|
293 |
|
| 3106 |
mandeep.dh |
294 |
public long getCreationTimestamp() {
|
|
|
295 |
return this.creationTimestamp;
|
| 3028 |
mandeep.dh |
296 |
}
|
|
|
297 |
|
| 3106 |
mandeep.dh |
298 |
public Activity setCreationTimestamp(long creationTimestamp) {
|
|
|
299 |
this.creationTimestamp = creationTimestamp;
|
|
|
300 |
setCreationTimestampIsSet(true);
|
| 3028 |
mandeep.dh |
301 |
return this;
|
|
|
302 |
}
|
|
|
303 |
|
| 3106 |
mandeep.dh |
304 |
public void unsetCreationTimestamp() {
|
|
|
305 |
__isset_bit_vector.clear(__CREATIONTIMESTAMP_ISSET_ID);
|
| 3028 |
mandeep.dh |
306 |
}
|
|
|
307 |
|
| 3106 |
mandeep.dh |
308 |
/** Returns true if field creationTimestamp is set (has been asigned a value) and false otherwise */
|
|
|
309 |
public boolean isSetCreationTimestamp() {
|
|
|
310 |
return __isset_bit_vector.get(__CREATIONTIMESTAMP_ISSET_ID);
|
| 3028 |
mandeep.dh |
311 |
}
|
|
|
312 |
|
| 3106 |
mandeep.dh |
313 |
public void setCreationTimestampIsSet(boolean value) {
|
|
|
314 |
__isset_bit_vector.set(__CREATIONTIMESTAMP_ISSET_ID, value);
|
| 3028 |
mandeep.dh |
315 |
}
|
|
|
316 |
|
|
|
317 |
/**
|
|
|
318 |
*
|
| 3106 |
mandeep.dh |
319 |
* @see ActivityType
|
| 3028 |
mandeep.dh |
320 |
*/
|
| 3106 |
mandeep.dh |
321 |
public ActivityType getType() {
|
|
|
322 |
return this.type;
|
| 3028 |
mandeep.dh |
323 |
}
|
|
|
324 |
|
|
|
325 |
/**
|
|
|
326 |
*
|
| 3106 |
mandeep.dh |
327 |
* @see ActivityType
|
| 3028 |
mandeep.dh |
328 |
*/
|
| 3106 |
mandeep.dh |
329 |
public Activity setType(ActivityType type) {
|
|
|
330 |
this.type = type;
|
| 3028 |
mandeep.dh |
331 |
return this;
|
|
|
332 |
}
|
|
|
333 |
|
| 3106 |
mandeep.dh |
334 |
public void unsetType() {
|
|
|
335 |
this.type = null;
|
| 3028 |
mandeep.dh |
336 |
}
|
|
|
337 |
|
| 3106 |
mandeep.dh |
338 |
/** Returns true if field type is set (has been asigned a value) and false otherwise */
|
|
|
339 |
public boolean isSetType() {
|
|
|
340 |
return this.type != null;
|
| 3028 |
mandeep.dh |
341 |
}
|
|
|
342 |
|
| 3106 |
mandeep.dh |
343 |
public void setTypeIsSet(boolean value) {
|
| 3028 |
mandeep.dh |
344 |
if (!value) {
|
| 3106 |
mandeep.dh |
345 |
this.type = null;
|
| 3028 |
mandeep.dh |
346 |
}
|
|
|
347 |
}
|
|
|
348 |
|
|
|
349 |
public long getCustomerId() {
|
|
|
350 |
return this.customerId;
|
|
|
351 |
}
|
|
|
352 |
|
|
|
353 |
public Activity setCustomerId(long customerId) {
|
|
|
354 |
this.customerId = customerId;
|
|
|
355 |
setCustomerIdIsSet(true);
|
|
|
356 |
return this;
|
|
|
357 |
}
|
|
|
358 |
|
|
|
359 |
public void unsetCustomerId() {
|
|
|
360 |
__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
|
|
|
361 |
}
|
|
|
362 |
|
|
|
363 |
/** Returns true if field customerId is set (has been asigned a value) and false otherwise */
|
|
|
364 |
public boolean isSetCustomerId() {
|
|
|
365 |
return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
|
|
|
366 |
}
|
|
|
367 |
|
|
|
368 |
public void setCustomerIdIsSet(boolean value) {
|
|
|
369 |
__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
|
|
|
370 |
}
|
|
|
371 |
|
|
|
372 |
public long getCreatorId() {
|
|
|
373 |
return this.creatorId;
|
|
|
374 |
}
|
|
|
375 |
|
|
|
376 |
public Activity setCreatorId(long creatorId) {
|
|
|
377 |
this.creatorId = creatorId;
|
|
|
378 |
setCreatorIdIsSet(true);
|
|
|
379 |
return this;
|
|
|
380 |
}
|
|
|
381 |
|
|
|
382 |
public void unsetCreatorId() {
|
|
|
383 |
__isset_bit_vector.clear(__CREATORID_ISSET_ID);
|
|
|
384 |
}
|
|
|
385 |
|
|
|
386 |
/** Returns true if field creatorId is set (has been asigned a value) and false otherwise */
|
|
|
387 |
public boolean isSetCreatorId() {
|
|
|
388 |
return __isset_bit_vector.get(__CREATORID_ISSET_ID);
|
|
|
389 |
}
|
|
|
390 |
|
|
|
391 |
public void setCreatorIdIsSet(boolean value) {
|
|
|
392 |
__isset_bit_vector.set(__CREATORID_ISSET_ID, value);
|
|
|
393 |
}
|
|
|
394 |
|
| 3206 |
mandeep.dh |
395 |
public long getEmailId() {
|
|
|
396 |
return this.emailId;
|
|
|
397 |
}
|
|
|
398 |
|
|
|
399 |
public Activity setEmailId(long emailId) {
|
|
|
400 |
this.emailId = emailId;
|
|
|
401 |
setEmailIdIsSet(true);
|
|
|
402 |
return this;
|
|
|
403 |
}
|
|
|
404 |
|
|
|
405 |
public void unsetEmailId() {
|
|
|
406 |
__isset_bit_vector.clear(__EMAILID_ISSET_ID);
|
|
|
407 |
}
|
|
|
408 |
|
|
|
409 |
/** Returns true if field emailId is set (has been asigned a value) and false otherwise */
|
|
|
410 |
public boolean isSetEmailId() {
|
|
|
411 |
return __isset_bit_vector.get(__EMAILID_ISSET_ID);
|
|
|
412 |
}
|
|
|
413 |
|
|
|
414 |
public void setEmailIdIsSet(boolean value) {
|
|
|
415 |
__isset_bit_vector.set(__EMAILID_ISSET_ID, value);
|
|
|
416 |
}
|
|
|
417 |
|
| 3028 |
mandeep.dh |
418 |
public long getTicketId() {
|
|
|
419 |
return this.ticketId;
|
|
|
420 |
}
|
|
|
421 |
|
|
|
422 |
public Activity setTicketId(long ticketId) {
|
|
|
423 |
this.ticketId = ticketId;
|
|
|
424 |
setTicketIdIsSet(true);
|
|
|
425 |
return this;
|
|
|
426 |
}
|
|
|
427 |
|
|
|
428 |
public void unsetTicketId() {
|
|
|
429 |
__isset_bit_vector.clear(__TICKETID_ISSET_ID);
|
|
|
430 |
}
|
|
|
431 |
|
|
|
432 |
/** Returns true if field ticketId is set (has been asigned a value) and false otherwise */
|
|
|
433 |
public boolean isSetTicketId() {
|
|
|
434 |
return __isset_bit_vector.get(__TICKETID_ISSET_ID);
|
|
|
435 |
}
|
|
|
436 |
|
|
|
437 |
public void setTicketIdIsSet(boolean value) {
|
|
|
438 |
__isset_bit_vector.set(__TICKETID_ISSET_ID, value);
|
|
|
439 |
}
|
|
|
440 |
|
|
|
441 |
/**
|
|
|
442 |
*
|
|
|
443 |
* @see TicketPriority
|
|
|
444 |
*/
|
|
|
445 |
public TicketPriority getTicketPriority() {
|
|
|
446 |
return this.ticketPriority;
|
|
|
447 |
}
|
|
|
448 |
|
|
|
449 |
/**
|
|
|
450 |
*
|
|
|
451 |
* @see TicketPriority
|
|
|
452 |
*/
|
|
|
453 |
public Activity setTicketPriority(TicketPriority ticketPriority) {
|
|
|
454 |
this.ticketPriority = ticketPriority;
|
|
|
455 |
return this;
|
|
|
456 |
}
|
|
|
457 |
|
|
|
458 |
public void unsetTicketPriority() {
|
|
|
459 |
this.ticketPriority = null;
|
|
|
460 |
}
|
|
|
461 |
|
|
|
462 |
/** Returns true if field ticketPriority is set (has been asigned a value) and false otherwise */
|
|
|
463 |
public boolean isSetTicketPriority() {
|
|
|
464 |
return this.ticketPriority != null;
|
|
|
465 |
}
|
|
|
466 |
|
|
|
467 |
public void setTicketPriorityIsSet(boolean value) {
|
|
|
468 |
if (!value) {
|
|
|
469 |
this.ticketPriority = null;
|
|
|
470 |
}
|
|
|
471 |
}
|
|
|
472 |
|
|
|
473 |
public long getTicketAssigneeId() {
|
|
|
474 |
return this.ticketAssigneeId;
|
|
|
475 |
}
|
|
|
476 |
|
|
|
477 |
public Activity setTicketAssigneeId(long ticketAssigneeId) {
|
|
|
478 |
this.ticketAssigneeId = ticketAssigneeId;
|
|
|
479 |
setTicketAssigneeIdIsSet(true);
|
|
|
480 |
return this;
|
|
|
481 |
}
|
|
|
482 |
|
|
|
483 |
public void unsetTicketAssigneeId() {
|
|
|
484 |
__isset_bit_vector.clear(__TICKETASSIGNEEID_ISSET_ID);
|
|
|
485 |
}
|
|
|
486 |
|
|
|
487 |
/** Returns true if field ticketAssigneeId is set (has been asigned a value) and false otherwise */
|
|
|
488 |
public boolean isSetTicketAssigneeId() {
|
|
|
489 |
return __isset_bit_vector.get(__TICKETASSIGNEEID_ISSET_ID);
|
|
|
490 |
}
|
|
|
491 |
|
|
|
492 |
public void setTicketAssigneeIdIsSet(boolean value) {
|
|
|
493 |
__isset_bit_vector.set(__TICKETASSIGNEEID_ISSET_ID, value);
|
|
|
494 |
}
|
|
|
495 |
|
|
|
496 |
/**
|
|
|
497 |
*
|
|
|
498 |
* @see TicketStatus
|
|
|
499 |
*/
|
|
|
500 |
public TicketStatus getTicketStatus() {
|
|
|
501 |
return this.ticketStatus;
|
|
|
502 |
}
|
|
|
503 |
|
|
|
504 |
/**
|
|
|
505 |
*
|
|
|
506 |
* @see TicketStatus
|
|
|
507 |
*/
|
|
|
508 |
public Activity setTicketStatus(TicketStatus ticketStatus) {
|
|
|
509 |
this.ticketStatus = ticketStatus;
|
|
|
510 |
return this;
|
|
|
511 |
}
|
|
|
512 |
|
|
|
513 |
public void unsetTicketStatus() {
|
|
|
514 |
this.ticketStatus = null;
|
|
|
515 |
}
|
|
|
516 |
|
|
|
517 |
/** Returns true if field ticketStatus is set (has been asigned a value) and false otherwise */
|
|
|
518 |
public boolean isSetTicketStatus() {
|
|
|
519 |
return this.ticketStatus != null;
|
|
|
520 |
}
|
|
|
521 |
|
|
|
522 |
public void setTicketStatusIsSet(boolean value) {
|
|
|
523 |
if (!value) {
|
|
|
524 |
this.ticketStatus = null;
|
|
|
525 |
}
|
|
|
526 |
}
|
|
|
527 |
|
|
|
528 |
/**
|
|
|
529 |
*
|
|
|
530 |
* @see TicketCategory
|
|
|
531 |
*/
|
|
|
532 |
public TicketCategory getTicketCategory() {
|
|
|
533 |
return this.ticketCategory;
|
|
|
534 |
}
|
|
|
535 |
|
|
|
536 |
/**
|
|
|
537 |
*
|
|
|
538 |
* @see TicketCategory
|
|
|
539 |
*/
|
|
|
540 |
public Activity setTicketCategory(TicketCategory ticketCategory) {
|
|
|
541 |
this.ticketCategory = ticketCategory;
|
|
|
542 |
return this;
|
|
|
543 |
}
|
|
|
544 |
|
|
|
545 |
public void unsetTicketCategory() {
|
|
|
546 |
this.ticketCategory = null;
|
|
|
547 |
}
|
|
|
548 |
|
|
|
549 |
/** Returns true if field ticketCategory is set (has been asigned a value) and false otherwise */
|
|
|
550 |
public boolean isSetTicketCategory() {
|
|
|
551 |
return this.ticketCategory != null;
|
|
|
552 |
}
|
|
|
553 |
|
|
|
554 |
public void setTicketCategoryIsSet(boolean value) {
|
|
|
555 |
if (!value) {
|
|
|
556 |
this.ticketCategory = null;
|
|
|
557 |
}
|
|
|
558 |
}
|
|
|
559 |
|
| 3106 |
mandeep.dh |
560 |
public String getTicketDescription() {
|
|
|
561 |
return this.ticketDescription;
|
|
|
562 |
}
|
|
|
563 |
|
|
|
564 |
public Activity setTicketDescription(String ticketDescription) {
|
|
|
565 |
this.ticketDescription = ticketDescription;
|
|
|
566 |
return this;
|
|
|
567 |
}
|
|
|
568 |
|
|
|
569 |
public void unsetTicketDescription() {
|
|
|
570 |
this.ticketDescription = null;
|
|
|
571 |
}
|
|
|
572 |
|
|
|
573 |
/** Returns true if field ticketDescription is set (has been asigned a value) and false otherwise */
|
|
|
574 |
public boolean isSetTicketDescription() {
|
|
|
575 |
return this.ticketDescription != null;
|
|
|
576 |
}
|
|
|
577 |
|
|
|
578 |
public void setTicketDescriptionIsSet(boolean value) {
|
|
|
579 |
if (!value) {
|
|
|
580 |
this.ticketDescription = null;
|
|
|
581 |
}
|
|
|
582 |
}
|
|
|
583 |
|
| 3028 |
mandeep.dh |
584 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
585 |
switch (field) {
|
|
|
586 |
case ID:
|
|
|
587 |
if (value == null) {
|
|
|
588 |
unsetId();
|
|
|
589 |
} else {
|
|
|
590 |
setId((Long)value);
|
|
|
591 |
}
|
|
|
592 |
break;
|
|
|
593 |
|
|
|
594 |
case DESCRIPTION:
|
|
|
595 |
if (value == null) {
|
|
|
596 |
unsetDescription();
|
|
|
597 |
} else {
|
|
|
598 |
setDescription((String)value);
|
|
|
599 |
}
|
|
|
600 |
break;
|
|
|
601 |
|
| 3106 |
mandeep.dh |
602 |
case CREATION_TIMESTAMP:
|
| 3028 |
mandeep.dh |
603 |
if (value == null) {
|
| 3106 |
mandeep.dh |
604 |
unsetCreationTimestamp();
|
| 3028 |
mandeep.dh |
605 |
} else {
|
| 3106 |
mandeep.dh |
606 |
setCreationTimestamp((Long)value);
|
| 3028 |
mandeep.dh |
607 |
}
|
|
|
608 |
break;
|
|
|
609 |
|
| 3106 |
mandeep.dh |
610 |
case TYPE:
|
| 3028 |
mandeep.dh |
611 |
if (value == null) {
|
| 3106 |
mandeep.dh |
612 |
unsetType();
|
| 3028 |
mandeep.dh |
613 |
} else {
|
| 3106 |
mandeep.dh |
614 |
setType((ActivityType)value);
|
| 3028 |
mandeep.dh |
615 |
}
|
|
|
616 |
break;
|
|
|
617 |
|
|
|
618 |
case CUSTOMER_ID:
|
|
|
619 |
if (value == null) {
|
|
|
620 |
unsetCustomerId();
|
|
|
621 |
} else {
|
|
|
622 |
setCustomerId((Long)value);
|
|
|
623 |
}
|
|
|
624 |
break;
|
|
|
625 |
|
|
|
626 |
case CREATOR_ID:
|
|
|
627 |
if (value == null) {
|
|
|
628 |
unsetCreatorId();
|
|
|
629 |
} else {
|
|
|
630 |
setCreatorId((Long)value);
|
|
|
631 |
}
|
|
|
632 |
break;
|
|
|
633 |
|
| 3206 |
mandeep.dh |
634 |
case EMAIL_ID:
|
|
|
635 |
if (value == null) {
|
|
|
636 |
unsetEmailId();
|
|
|
637 |
} else {
|
|
|
638 |
setEmailId((Long)value);
|
|
|
639 |
}
|
|
|
640 |
break;
|
|
|
641 |
|
| 3028 |
mandeep.dh |
642 |
case TICKET_ID:
|
|
|
643 |
if (value == null) {
|
|
|
644 |
unsetTicketId();
|
|
|
645 |
} else {
|
|
|
646 |
setTicketId((Long)value);
|
|
|
647 |
}
|
|
|
648 |
break;
|
|
|
649 |
|
|
|
650 |
case TICKET_PRIORITY:
|
|
|
651 |
if (value == null) {
|
|
|
652 |
unsetTicketPriority();
|
|
|
653 |
} else {
|
|
|
654 |
setTicketPriority((TicketPriority)value);
|
|
|
655 |
}
|
|
|
656 |
break;
|
|
|
657 |
|
|
|
658 |
case TICKET_ASSIGNEE_ID:
|
|
|
659 |
if (value == null) {
|
|
|
660 |
unsetTicketAssigneeId();
|
|
|
661 |
} else {
|
|
|
662 |
setTicketAssigneeId((Long)value);
|
|
|
663 |
}
|
|
|
664 |
break;
|
|
|
665 |
|
|
|
666 |
case TICKET_STATUS:
|
|
|
667 |
if (value == null) {
|
|
|
668 |
unsetTicketStatus();
|
|
|
669 |
} else {
|
|
|
670 |
setTicketStatus((TicketStatus)value);
|
|
|
671 |
}
|
|
|
672 |
break;
|
|
|
673 |
|
|
|
674 |
case TICKET_CATEGORY:
|
|
|
675 |
if (value == null) {
|
|
|
676 |
unsetTicketCategory();
|
|
|
677 |
} else {
|
|
|
678 |
setTicketCategory((TicketCategory)value);
|
|
|
679 |
}
|
|
|
680 |
break;
|
|
|
681 |
|
| 3106 |
mandeep.dh |
682 |
case TICKET_DESCRIPTION:
|
|
|
683 |
if (value == null) {
|
|
|
684 |
unsetTicketDescription();
|
|
|
685 |
} else {
|
|
|
686 |
setTicketDescription((String)value);
|
|
|
687 |
}
|
|
|
688 |
break;
|
|
|
689 |
|
| 3028 |
mandeep.dh |
690 |
}
|
|
|
691 |
}
|
|
|
692 |
|
|
|
693 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
694 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
695 |
}
|
|
|
696 |
|
|
|
697 |
public Object getFieldValue(_Fields field) {
|
|
|
698 |
switch (field) {
|
|
|
699 |
case ID:
|
|
|
700 |
return new Long(getId());
|
|
|
701 |
|
|
|
702 |
case DESCRIPTION:
|
|
|
703 |
return getDescription();
|
|
|
704 |
|
| 3106 |
mandeep.dh |
705 |
case CREATION_TIMESTAMP:
|
|
|
706 |
return new Long(getCreationTimestamp());
|
| 3028 |
mandeep.dh |
707 |
|
| 3106 |
mandeep.dh |
708 |
case TYPE:
|
|
|
709 |
return getType();
|
| 3028 |
mandeep.dh |
710 |
|
|
|
711 |
case CUSTOMER_ID:
|
|
|
712 |
return new Long(getCustomerId());
|
|
|
713 |
|
|
|
714 |
case CREATOR_ID:
|
|
|
715 |
return new Long(getCreatorId());
|
|
|
716 |
|
| 3206 |
mandeep.dh |
717 |
case EMAIL_ID:
|
|
|
718 |
return new Long(getEmailId());
|
|
|
719 |
|
| 3028 |
mandeep.dh |
720 |
case TICKET_ID:
|
|
|
721 |
return new Long(getTicketId());
|
|
|
722 |
|
|
|
723 |
case TICKET_PRIORITY:
|
|
|
724 |
return getTicketPriority();
|
|
|
725 |
|
|
|
726 |
case TICKET_ASSIGNEE_ID:
|
|
|
727 |
return new Long(getTicketAssigneeId());
|
|
|
728 |
|
|
|
729 |
case TICKET_STATUS:
|
|
|
730 |
return getTicketStatus();
|
|
|
731 |
|
|
|
732 |
case TICKET_CATEGORY:
|
|
|
733 |
return getTicketCategory();
|
|
|
734 |
|
| 3106 |
mandeep.dh |
735 |
case TICKET_DESCRIPTION:
|
|
|
736 |
return getTicketDescription();
|
|
|
737 |
|
| 3028 |
mandeep.dh |
738 |
}
|
|
|
739 |
throw new IllegalStateException();
|
|
|
740 |
}
|
|
|
741 |
|
|
|
742 |
public Object getFieldValue(int fieldId) {
|
|
|
743 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
744 |
}
|
|
|
745 |
|
|
|
746 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
747 |
public boolean isSet(_Fields field) {
|
|
|
748 |
switch (field) {
|
|
|
749 |
case ID:
|
|
|
750 |
return isSetId();
|
|
|
751 |
case DESCRIPTION:
|
|
|
752 |
return isSetDescription();
|
| 3106 |
mandeep.dh |
753 |
case CREATION_TIMESTAMP:
|
|
|
754 |
return isSetCreationTimestamp();
|
|
|
755 |
case TYPE:
|
|
|
756 |
return isSetType();
|
| 3028 |
mandeep.dh |
757 |
case CUSTOMER_ID:
|
|
|
758 |
return isSetCustomerId();
|
|
|
759 |
case CREATOR_ID:
|
|
|
760 |
return isSetCreatorId();
|
| 3206 |
mandeep.dh |
761 |
case EMAIL_ID:
|
|
|
762 |
return isSetEmailId();
|
| 3028 |
mandeep.dh |
763 |
case TICKET_ID:
|
|
|
764 |
return isSetTicketId();
|
|
|
765 |
case TICKET_PRIORITY:
|
|
|
766 |
return isSetTicketPriority();
|
|
|
767 |
case TICKET_ASSIGNEE_ID:
|
|
|
768 |
return isSetTicketAssigneeId();
|
|
|
769 |
case TICKET_STATUS:
|
|
|
770 |
return isSetTicketStatus();
|
|
|
771 |
case TICKET_CATEGORY:
|
|
|
772 |
return isSetTicketCategory();
|
| 3106 |
mandeep.dh |
773 |
case TICKET_DESCRIPTION:
|
|
|
774 |
return isSetTicketDescription();
|
| 3028 |
mandeep.dh |
775 |
}
|
|
|
776 |
throw new IllegalStateException();
|
|
|
777 |
}
|
|
|
778 |
|
|
|
779 |
public boolean isSet(int fieldID) {
|
|
|
780 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
781 |
}
|
|
|
782 |
|
|
|
783 |
@Override
|
|
|
784 |
public boolean equals(Object that) {
|
|
|
785 |
if (that == null)
|
|
|
786 |
return false;
|
|
|
787 |
if (that instanceof Activity)
|
|
|
788 |
return this.equals((Activity)that);
|
|
|
789 |
return false;
|
|
|
790 |
}
|
|
|
791 |
|
|
|
792 |
public boolean equals(Activity that) {
|
|
|
793 |
if (that == null)
|
|
|
794 |
return false;
|
|
|
795 |
|
|
|
796 |
boolean this_present_id = true;
|
|
|
797 |
boolean that_present_id = true;
|
|
|
798 |
if (this_present_id || that_present_id) {
|
|
|
799 |
if (!(this_present_id && that_present_id))
|
|
|
800 |
return false;
|
|
|
801 |
if (this.id != that.id)
|
|
|
802 |
return false;
|
|
|
803 |
}
|
|
|
804 |
|
|
|
805 |
boolean this_present_description = true && this.isSetDescription();
|
|
|
806 |
boolean that_present_description = true && that.isSetDescription();
|
|
|
807 |
if (this_present_description || that_present_description) {
|
|
|
808 |
if (!(this_present_description && that_present_description))
|
|
|
809 |
return false;
|
|
|
810 |
if (!this.description.equals(that.description))
|
|
|
811 |
return false;
|
|
|
812 |
}
|
|
|
813 |
|
| 3106 |
mandeep.dh |
814 |
boolean this_present_creationTimestamp = true;
|
|
|
815 |
boolean that_present_creationTimestamp = true;
|
|
|
816 |
if (this_present_creationTimestamp || that_present_creationTimestamp) {
|
|
|
817 |
if (!(this_present_creationTimestamp && that_present_creationTimestamp))
|
| 3028 |
mandeep.dh |
818 |
return false;
|
| 3106 |
mandeep.dh |
819 |
if (this.creationTimestamp != that.creationTimestamp)
|
| 3028 |
mandeep.dh |
820 |
return false;
|
|
|
821 |
}
|
|
|
822 |
|
| 3106 |
mandeep.dh |
823 |
boolean this_present_type = true && this.isSetType();
|
|
|
824 |
boolean that_present_type = true && that.isSetType();
|
|
|
825 |
if (this_present_type || that_present_type) {
|
|
|
826 |
if (!(this_present_type && that_present_type))
|
| 3028 |
mandeep.dh |
827 |
return false;
|
| 3106 |
mandeep.dh |
828 |
if (!this.type.equals(that.type))
|
| 3028 |
mandeep.dh |
829 |
return false;
|
|
|
830 |
}
|
|
|
831 |
|
|
|
832 |
boolean this_present_customerId = true;
|
|
|
833 |
boolean that_present_customerId = true;
|
|
|
834 |
if (this_present_customerId || that_present_customerId) {
|
|
|
835 |
if (!(this_present_customerId && that_present_customerId))
|
|
|
836 |
return false;
|
|
|
837 |
if (this.customerId != that.customerId)
|
|
|
838 |
return false;
|
|
|
839 |
}
|
|
|
840 |
|
|
|
841 |
boolean this_present_creatorId = true;
|
|
|
842 |
boolean that_present_creatorId = true;
|
|
|
843 |
if (this_present_creatorId || that_present_creatorId) {
|
|
|
844 |
if (!(this_present_creatorId && that_present_creatorId))
|
|
|
845 |
return false;
|
|
|
846 |
if (this.creatorId != that.creatorId)
|
|
|
847 |
return false;
|
|
|
848 |
}
|
|
|
849 |
|
| 3206 |
mandeep.dh |
850 |
boolean this_present_emailId = true && this.isSetEmailId();
|
|
|
851 |
boolean that_present_emailId = true && that.isSetEmailId();
|
|
|
852 |
if (this_present_emailId || that_present_emailId) {
|
|
|
853 |
if (!(this_present_emailId && that_present_emailId))
|
|
|
854 |
return false;
|
|
|
855 |
if (this.emailId != that.emailId)
|
|
|
856 |
return false;
|
|
|
857 |
}
|
|
|
858 |
|
| 3168 |
mandeep.dh |
859 |
boolean this_present_ticketId = true && this.isSetTicketId();
|
|
|
860 |
boolean that_present_ticketId = true && that.isSetTicketId();
|
| 3028 |
mandeep.dh |
861 |
if (this_present_ticketId || that_present_ticketId) {
|
|
|
862 |
if (!(this_present_ticketId && that_present_ticketId))
|
|
|
863 |
return false;
|
|
|
864 |
if (this.ticketId != that.ticketId)
|
|
|
865 |
return false;
|
|
|
866 |
}
|
|
|
867 |
|
|
|
868 |
boolean this_present_ticketPriority = true && this.isSetTicketPriority();
|
|
|
869 |
boolean that_present_ticketPriority = true && that.isSetTicketPriority();
|
|
|
870 |
if (this_present_ticketPriority || that_present_ticketPriority) {
|
|
|
871 |
if (!(this_present_ticketPriority && that_present_ticketPriority))
|
|
|
872 |
return false;
|
|
|
873 |
if (!this.ticketPriority.equals(that.ticketPriority))
|
|
|
874 |
return false;
|
|
|
875 |
}
|
|
|
876 |
|
| 3168 |
mandeep.dh |
877 |
boolean this_present_ticketAssigneeId = true && this.isSetTicketAssigneeId();
|
|
|
878 |
boolean that_present_ticketAssigneeId = true && that.isSetTicketAssigneeId();
|
| 3028 |
mandeep.dh |
879 |
if (this_present_ticketAssigneeId || that_present_ticketAssigneeId) {
|
|
|
880 |
if (!(this_present_ticketAssigneeId && that_present_ticketAssigneeId))
|
|
|
881 |
return false;
|
|
|
882 |
if (this.ticketAssigneeId != that.ticketAssigneeId)
|
|
|
883 |
return false;
|
|
|
884 |
}
|
|
|
885 |
|
|
|
886 |
boolean this_present_ticketStatus = true && this.isSetTicketStatus();
|
|
|
887 |
boolean that_present_ticketStatus = true && that.isSetTicketStatus();
|
|
|
888 |
if (this_present_ticketStatus || that_present_ticketStatus) {
|
|
|
889 |
if (!(this_present_ticketStatus && that_present_ticketStatus))
|
|
|
890 |
return false;
|
|
|
891 |
if (!this.ticketStatus.equals(that.ticketStatus))
|
|
|
892 |
return false;
|
|
|
893 |
}
|
|
|
894 |
|
|
|
895 |
boolean this_present_ticketCategory = true && this.isSetTicketCategory();
|
|
|
896 |
boolean that_present_ticketCategory = true && that.isSetTicketCategory();
|
|
|
897 |
if (this_present_ticketCategory || that_present_ticketCategory) {
|
|
|
898 |
if (!(this_present_ticketCategory && that_present_ticketCategory))
|
|
|
899 |
return false;
|
|
|
900 |
if (!this.ticketCategory.equals(that.ticketCategory))
|
|
|
901 |
return false;
|
|
|
902 |
}
|
|
|
903 |
|
| 3106 |
mandeep.dh |
904 |
boolean this_present_ticketDescription = true && this.isSetTicketDescription();
|
|
|
905 |
boolean that_present_ticketDescription = true && that.isSetTicketDescription();
|
|
|
906 |
if (this_present_ticketDescription || that_present_ticketDescription) {
|
|
|
907 |
if (!(this_present_ticketDescription && that_present_ticketDescription))
|
|
|
908 |
return false;
|
|
|
909 |
if (!this.ticketDescription.equals(that.ticketDescription))
|
|
|
910 |
return false;
|
|
|
911 |
}
|
|
|
912 |
|
| 3028 |
mandeep.dh |
913 |
return true;
|
|
|
914 |
}
|
|
|
915 |
|
|
|
916 |
@Override
|
|
|
917 |
public int hashCode() {
|
|
|
918 |
return 0;
|
|
|
919 |
}
|
|
|
920 |
|
|
|
921 |
public int compareTo(Activity other) {
|
|
|
922 |
if (!getClass().equals(other.getClass())) {
|
|
|
923 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
924 |
}
|
|
|
925 |
|
|
|
926 |
int lastComparison = 0;
|
|
|
927 |
Activity typedOther = (Activity)other;
|
|
|
928 |
|
|
|
929 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
|
|
|
930 |
if (lastComparison != 0) {
|
|
|
931 |
return lastComparison;
|
|
|
932 |
}
|
|
|
933 |
lastComparison = TBaseHelper.compareTo(id, typedOther.id);
|
|
|
934 |
if (lastComparison != 0) {
|
|
|
935 |
return lastComparison;
|
|
|
936 |
}
|
|
|
937 |
lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());
|
|
|
938 |
if (lastComparison != 0) {
|
|
|
939 |
return lastComparison;
|
|
|
940 |
}
|
|
|
941 |
lastComparison = TBaseHelper.compareTo(description, typedOther.description);
|
|
|
942 |
if (lastComparison != 0) {
|
|
|
943 |
return lastComparison;
|
|
|
944 |
}
|
| 3106 |
mandeep.dh |
945 |
lastComparison = Boolean.valueOf(isSetCreationTimestamp()).compareTo(isSetCreationTimestamp());
|
| 3028 |
mandeep.dh |
946 |
if (lastComparison != 0) {
|
|
|
947 |
return lastComparison;
|
|
|
948 |
}
|
| 3106 |
mandeep.dh |
949 |
lastComparison = TBaseHelper.compareTo(creationTimestamp, typedOther.creationTimestamp);
|
| 3028 |
mandeep.dh |
950 |
if (lastComparison != 0) {
|
|
|
951 |
return lastComparison;
|
|
|
952 |
}
|
| 3106 |
mandeep.dh |
953 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(isSetType());
|
| 3028 |
mandeep.dh |
954 |
if (lastComparison != 0) {
|
|
|
955 |
return lastComparison;
|
|
|
956 |
}
|
| 3106 |
mandeep.dh |
957 |
lastComparison = TBaseHelper.compareTo(type, typedOther.type);
|
| 3028 |
mandeep.dh |
958 |
if (lastComparison != 0) {
|
|
|
959 |
return lastComparison;
|
|
|
960 |
}
|
|
|
961 |
lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
|
|
|
962 |
if (lastComparison != 0) {
|
|
|
963 |
return lastComparison;
|
|
|
964 |
}
|
|
|
965 |
lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
|
|
|
966 |
if (lastComparison != 0) {
|
|
|
967 |
return lastComparison;
|
|
|
968 |
}
|
|
|
969 |
lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());
|
|
|
970 |
if (lastComparison != 0) {
|
|
|
971 |
return lastComparison;
|
|
|
972 |
}
|
|
|
973 |
lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
|
|
|
974 |
if (lastComparison != 0) {
|
|
|
975 |
return lastComparison;
|
|
|
976 |
}
|
| 3206 |
mandeep.dh |
977 |
lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(isSetEmailId());
|
|
|
978 |
if (lastComparison != 0) {
|
|
|
979 |
return lastComparison;
|
|
|
980 |
}
|
|
|
981 |
lastComparison = TBaseHelper.compareTo(emailId, typedOther.emailId);
|
|
|
982 |
if (lastComparison != 0) {
|
|
|
983 |
return lastComparison;
|
|
|
984 |
}
|
| 3028 |
mandeep.dh |
985 |
lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());
|
|
|
986 |
if (lastComparison != 0) {
|
|
|
987 |
return lastComparison;
|
|
|
988 |
}
|
|
|
989 |
lastComparison = TBaseHelper.compareTo(ticketId, typedOther.ticketId);
|
|
|
990 |
if (lastComparison != 0) {
|
|
|
991 |
return lastComparison;
|
|
|
992 |
}
|
|
|
993 |
lastComparison = Boolean.valueOf(isSetTicketPriority()).compareTo(isSetTicketPriority());
|
|
|
994 |
if (lastComparison != 0) {
|
|
|
995 |
return lastComparison;
|
|
|
996 |
}
|
|
|
997 |
lastComparison = TBaseHelper.compareTo(ticketPriority, typedOther.ticketPriority);
|
|
|
998 |
if (lastComparison != 0) {
|
|
|
999 |
return lastComparison;
|
|
|
1000 |
}
|
|
|
1001 |
lastComparison = Boolean.valueOf(isSetTicketAssigneeId()).compareTo(isSetTicketAssigneeId());
|
|
|
1002 |
if (lastComparison != 0) {
|
|
|
1003 |
return lastComparison;
|
|
|
1004 |
}
|
|
|
1005 |
lastComparison = TBaseHelper.compareTo(ticketAssigneeId, typedOther.ticketAssigneeId);
|
|
|
1006 |
if (lastComparison != 0) {
|
|
|
1007 |
return lastComparison;
|
|
|
1008 |
}
|
|
|
1009 |
lastComparison = Boolean.valueOf(isSetTicketStatus()).compareTo(isSetTicketStatus());
|
|
|
1010 |
if (lastComparison != 0) {
|
|
|
1011 |
return lastComparison;
|
|
|
1012 |
}
|
|
|
1013 |
lastComparison = TBaseHelper.compareTo(ticketStatus, typedOther.ticketStatus);
|
|
|
1014 |
if (lastComparison != 0) {
|
|
|
1015 |
return lastComparison;
|
|
|
1016 |
}
|
|
|
1017 |
lastComparison = Boolean.valueOf(isSetTicketCategory()).compareTo(isSetTicketCategory());
|
|
|
1018 |
if (lastComparison != 0) {
|
|
|
1019 |
return lastComparison;
|
|
|
1020 |
}
|
|
|
1021 |
lastComparison = TBaseHelper.compareTo(ticketCategory, typedOther.ticketCategory);
|
|
|
1022 |
if (lastComparison != 0) {
|
|
|
1023 |
return lastComparison;
|
|
|
1024 |
}
|
| 3106 |
mandeep.dh |
1025 |
lastComparison = Boolean.valueOf(isSetTicketDescription()).compareTo(isSetTicketDescription());
|
|
|
1026 |
if (lastComparison != 0) {
|
|
|
1027 |
return lastComparison;
|
|
|
1028 |
}
|
|
|
1029 |
lastComparison = TBaseHelper.compareTo(ticketDescription, typedOther.ticketDescription);
|
|
|
1030 |
if (lastComparison != 0) {
|
|
|
1031 |
return lastComparison;
|
|
|
1032 |
}
|
| 3028 |
mandeep.dh |
1033 |
return 0;
|
|
|
1034 |
}
|
|
|
1035 |
|
|
|
1036 |
public void read(TProtocol iprot) throws TException {
|
|
|
1037 |
TField field;
|
|
|
1038 |
iprot.readStructBegin();
|
|
|
1039 |
while (true)
|
|
|
1040 |
{
|
|
|
1041 |
field = iprot.readFieldBegin();
|
|
|
1042 |
if (field.type == TType.STOP) {
|
|
|
1043 |
break;
|
|
|
1044 |
}
|
|
|
1045 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
1046 |
if (fieldId == null) {
|
|
|
1047 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1048 |
} else {
|
|
|
1049 |
switch (fieldId) {
|
|
|
1050 |
case ID:
|
|
|
1051 |
if (field.type == TType.I64) {
|
|
|
1052 |
this.id = iprot.readI64();
|
|
|
1053 |
setIdIsSet(true);
|
|
|
1054 |
} else {
|
|
|
1055 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1056 |
}
|
|
|
1057 |
break;
|
|
|
1058 |
case DESCRIPTION:
|
|
|
1059 |
if (field.type == TType.STRING) {
|
|
|
1060 |
this.description = iprot.readString();
|
|
|
1061 |
} else {
|
|
|
1062 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1063 |
}
|
|
|
1064 |
break;
|
| 3106 |
mandeep.dh |
1065 |
case CREATION_TIMESTAMP:
|
| 3028 |
mandeep.dh |
1066 |
if (field.type == TType.I64) {
|
| 3106 |
mandeep.dh |
1067 |
this.creationTimestamp = iprot.readI64();
|
|
|
1068 |
setCreationTimestampIsSet(true);
|
| 3028 |
mandeep.dh |
1069 |
} else {
|
|
|
1070 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1071 |
}
|
|
|
1072 |
break;
|
| 3106 |
mandeep.dh |
1073 |
case TYPE:
|
| 3028 |
mandeep.dh |
1074 |
if (field.type == TType.I32) {
|
| 3106 |
mandeep.dh |
1075 |
this.type = ActivityType.findByValue(iprot.readI32());
|
| 3028 |
mandeep.dh |
1076 |
} else {
|
|
|
1077 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1078 |
}
|
|
|
1079 |
break;
|
|
|
1080 |
case CUSTOMER_ID:
|
|
|
1081 |
if (field.type == TType.I64) {
|
|
|
1082 |
this.customerId = iprot.readI64();
|
|
|
1083 |
setCustomerIdIsSet(true);
|
|
|
1084 |
} else {
|
|
|
1085 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1086 |
}
|
|
|
1087 |
break;
|
|
|
1088 |
case CREATOR_ID:
|
|
|
1089 |
if (field.type == TType.I64) {
|
|
|
1090 |
this.creatorId = iprot.readI64();
|
|
|
1091 |
setCreatorIdIsSet(true);
|
|
|
1092 |
} else {
|
|
|
1093 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1094 |
}
|
|
|
1095 |
break;
|
| 3206 |
mandeep.dh |
1096 |
case EMAIL_ID:
|
|
|
1097 |
if (field.type == TType.I64) {
|
|
|
1098 |
this.emailId = iprot.readI64();
|
|
|
1099 |
setEmailIdIsSet(true);
|
|
|
1100 |
} else {
|
|
|
1101 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1102 |
}
|
|
|
1103 |
break;
|
| 3028 |
mandeep.dh |
1104 |
case TICKET_ID:
|
|
|
1105 |
if (field.type == TType.I64) {
|
|
|
1106 |
this.ticketId = iprot.readI64();
|
|
|
1107 |
setTicketIdIsSet(true);
|
|
|
1108 |
} else {
|
|
|
1109 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1110 |
}
|
|
|
1111 |
break;
|
|
|
1112 |
case TICKET_PRIORITY:
|
|
|
1113 |
if (field.type == TType.I32) {
|
|
|
1114 |
this.ticketPriority = TicketPriority.findByValue(iprot.readI32());
|
|
|
1115 |
} else {
|
|
|
1116 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1117 |
}
|
|
|
1118 |
break;
|
|
|
1119 |
case TICKET_ASSIGNEE_ID:
|
|
|
1120 |
if (field.type == TType.I64) {
|
|
|
1121 |
this.ticketAssigneeId = iprot.readI64();
|
|
|
1122 |
setTicketAssigneeIdIsSet(true);
|
|
|
1123 |
} else {
|
|
|
1124 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1125 |
}
|
|
|
1126 |
break;
|
|
|
1127 |
case TICKET_STATUS:
|
|
|
1128 |
if (field.type == TType.I32) {
|
|
|
1129 |
this.ticketStatus = TicketStatus.findByValue(iprot.readI32());
|
|
|
1130 |
} else {
|
|
|
1131 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1132 |
}
|
|
|
1133 |
break;
|
|
|
1134 |
case TICKET_CATEGORY:
|
|
|
1135 |
if (field.type == TType.I32) {
|
|
|
1136 |
this.ticketCategory = TicketCategory.findByValue(iprot.readI32());
|
|
|
1137 |
} else {
|
|
|
1138 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1139 |
}
|
|
|
1140 |
break;
|
| 3106 |
mandeep.dh |
1141 |
case TICKET_DESCRIPTION:
|
|
|
1142 |
if (field.type == TType.STRING) {
|
|
|
1143 |
this.ticketDescription = iprot.readString();
|
|
|
1144 |
} else {
|
|
|
1145 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1146 |
}
|
|
|
1147 |
break;
|
| 3028 |
mandeep.dh |
1148 |
}
|
|
|
1149 |
iprot.readFieldEnd();
|
|
|
1150 |
}
|
|
|
1151 |
}
|
|
|
1152 |
iprot.readStructEnd();
|
|
|
1153 |
validate();
|
|
|
1154 |
}
|
|
|
1155 |
|
|
|
1156 |
public void write(TProtocol oprot) throws TException {
|
|
|
1157 |
validate();
|
|
|
1158 |
|
|
|
1159 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1160 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
1161 |
oprot.writeI64(this.id);
|
|
|
1162 |
oprot.writeFieldEnd();
|
|
|
1163 |
if (this.description != null) {
|
| 3168 |
mandeep.dh |
1164 |
if (isSetDescription()) {
|
|
|
1165 |
oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
|
|
|
1166 |
oprot.writeString(this.description);
|
|
|
1167 |
oprot.writeFieldEnd();
|
|
|
1168 |
}
|
| 3028 |
mandeep.dh |
1169 |
}
|
| 3106 |
mandeep.dh |
1170 |
oprot.writeFieldBegin(CREATION_TIMESTAMP_FIELD_DESC);
|
|
|
1171 |
oprot.writeI64(this.creationTimestamp);
|
| 3028 |
mandeep.dh |
1172 |
oprot.writeFieldEnd();
|
| 3106 |
mandeep.dh |
1173 |
if (this.type != null) {
|
|
|
1174 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
1175 |
oprot.writeI32(this.type.getValue());
|
| 3028 |
mandeep.dh |
1176 |
oprot.writeFieldEnd();
|
|
|
1177 |
}
|
|
|
1178 |
oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
|
|
|
1179 |
oprot.writeI64(this.customerId);
|
|
|
1180 |
oprot.writeFieldEnd();
|
|
|
1181 |
oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
|
|
|
1182 |
oprot.writeI64(this.creatorId);
|
|
|
1183 |
oprot.writeFieldEnd();
|
| 3206 |
mandeep.dh |
1184 |
if (isSetEmailId()) {
|
|
|
1185 |
oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
|
|
|
1186 |
oprot.writeI64(this.emailId);
|
|
|
1187 |
oprot.writeFieldEnd();
|
|
|
1188 |
}
|
| 3168 |
mandeep.dh |
1189 |
if (isSetTicketId()) {
|
|
|
1190 |
oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);
|
|
|
1191 |
oprot.writeI64(this.ticketId);
|
|
|
1192 |
oprot.writeFieldEnd();
|
|
|
1193 |
}
|
| 3028 |
mandeep.dh |
1194 |
if (this.ticketPriority != null) {
|
| 3168 |
mandeep.dh |
1195 |
if (isSetTicketPriority()) {
|
|
|
1196 |
oprot.writeFieldBegin(TICKET_PRIORITY_FIELD_DESC);
|
|
|
1197 |
oprot.writeI32(this.ticketPriority.getValue());
|
|
|
1198 |
oprot.writeFieldEnd();
|
|
|
1199 |
}
|
|
|
1200 |
}
|
|
|
1201 |
if (isSetTicketAssigneeId()) {
|
|
|
1202 |
oprot.writeFieldBegin(TICKET_ASSIGNEE_ID_FIELD_DESC);
|
|
|
1203 |
oprot.writeI64(this.ticketAssigneeId);
|
| 3028 |
mandeep.dh |
1204 |
oprot.writeFieldEnd();
|
|
|
1205 |
}
|
|
|
1206 |
if (this.ticketStatus != null) {
|
| 3168 |
mandeep.dh |
1207 |
if (isSetTicketStatus()) {
|
|
|
1208 |
oprot.writeFieldBegin(TICKET_STATUS_FIELD_DESC);
|
|
|
1209 |
oprot.writeI32(this.ticketStatus.getValue());
|
|
|
1210 |
oprot.writeFieldEnd();
|
|
|
1211 |
}
|
| 3028 |
mandeep.dh |
1212 |
}
|
|
|
1213 |
if (this.ticketCategory != null) {
|
| 3168 |
mandeep.dh |
1214 |
if (isSetTicketCategory()) {
|
|
|
1215 |
oprot.writeFieldBegin(TICKET_CATEGORY_FIELD_DESC);
|
|
|
1216 |
oprot.writeI32(this.ticketCategory.getValue());
|
|
|
1217 |
oprot.writeFieldEnd();
|
|
|
1218 |
}
|
| 3028 |
mandeep.dh |
1219 |
}
|
| 3106 |
mandeep.dh |
1220 |
if (this.ticketDescription != null) {
|
| 3168 |
mandeep.dh |
1221 |
if (isSetTicketDescription()) {
|
|
|
1222 |
oprot.writeFieldBegin(TICKET_DESCRIPTION_FIELD_DESC);
|
|
|
1223 |
oprot.writeString(this.ticketDescription);
|
|
|
1224 |
oprot.writeFieldEnd();
|
|
|
1225 |
}
|
| 3106 |
mandeep.dh |
1226 |
}
|
| 3028 |
mandeep.dh |
1227 |
oprot.writeFieldStop();
|
|
|
1228 |
oprot.writeStructEnd();
|
|
|
1229 |
}
|
|
|
1230 |
|
|
|
1231 |
@Override
|
|
|
1232 |
public String toString() {
|
|
|
1233 |
StringBuilder sb = new StringBuilder("Activity(");
|
|
|
1234 |
boolean first = true;
|
|
|
1235 |
|
|
|
1236 |
sb.append("id:");
|
|
|
1237 |
sb.append(this.id);
|
|
|
1238 |
first = false;
|
| 3168 |
mandeep.dh |
1239 |
if (isSetDescription()) {
|
|
|
1240 |
if (!first) sb.append(", ");
|
|
|
1241 |
sb.append("description:");
|
|
|
1242 |
if (this.description == null) {
|
|
|
1243 |
sb.append("null");
|
|
|
1244 |
} else {
|
|
|
1245 |
sb.append(this.description);
|
|
|
1246 |
}
|
|
|
1247 |
first = false;
|
| 3028 |
mandeep.dh |
1248 |
}
|
|
|
1249 |
if (!first) sb.append(", ");
|
| 3106 |
mandeep.dh |
1250 |
sb.append("creationTimestamp:");
|
|
|
1251 |
sb.append(this.creationTimestamp);
|
| 3028 |
mandeep.dh |
1252 |
first = false;
|
|
|
1253 |
if (!first) sb.append(", ");
|
| 3106 |
mandeep.dh |
1254 |
sb.append("type:");
|
|
|
1255 |
if (this.type == null) {
|
| 3028 |
mandeep.dh |
1256 |
sb.append("null");
|
|
|
1257 |
} else {
|
| 3106 |
mandeep.dh |
1258 |
String type_name = type.name();
|
|
|
1259 |
if (type_name != null) {
|
|
|
1260 |
sb.append(type_name);
|
| 3028 |
mandeep.dh |
1261 |
sb.append(" (");
|
|
|
1262 |
}
|
| 3106 |
mandeep.dh |
1263 |
sb.append(this.type);
|
|
|
1264 |
if (type_name != null) {
|
| 3028 |
mandeep.dh |
1265 |
sb.append(")");
|
|
|
1266 |
}
|
|
|
1267 |
}
|
|
|
1268 |
first = false;
|
|
|
1269 |
if (!first) sb.append(", ");
|
|
|
1270 |
sb.append("customerId:");
|
|
|
1271 |
sb.append(this.customerId);
|
|
|
1272 |
first = false;
|
|
|
1273 |
if (!first) sb.append(", ");
|
|
|
1274 |
sb.append("creatorId:");
|
|
|
1275 |
sb.append(this.creatorId);
|
|
|
1276 |
first = false;
|
| 3206 |
mandeep.dh |
1277 |
if (isSetEmailId()) {
|
|
|
1278 |
if (!first) sb.append(", ");
|
|
|
1279 |
sb.append("emailId:");
|
|
|
1280 |
sb.append(this.emailId);
|
|
|
1281 |
first = false;
|
|
|
1282 |
}
|
| 3168 |
mandeep.dh |
1283 |
if (isSetTicketId()) {
|
|
|
1284 |
if (!first) sb.append(", ");
|
|
|
1285 |
sb.append("ticketId:");
|
|
|
1286 |
sb.append(this.ticketId);
|
|
|
1287 |
first = false;
|
|
|
1288 |
}
|
|
|
1289 |
if (isSetTicketPriority()) {
|
|
|
1290 |
if (!first) sb.append(", ");
|
|
|
1291 |
sb.append("ticketPriority:");
|
|
|
1292 |
if (this.ticketPriority == null) {
|
|
|
1293 |
sb.append("null");
|
|
|
1294 |
} else {
|
|
|
1295 |
String ticketPriority_name = ticketPriority.name();
|
|
|
1296 |
if (ticketPriority_name != null) {
|
|
|
1297 |
sb.append(ticketPriority_name);
|
|
|
1298 |
sb.append(" (");
|
|
|
1299 |
}
|
|
|
1300 |
sb.append(this.ticketPriority);
|
|
|
1301 |
if (ticketPriority_name != null) {
|
|
|
1302 |
sb.append(")");
|
|
|
1303 |
}
|
| 3028 |
mandeep.dh |
1304 |
}
|
| 3168 |
mandeep.dh |
1305 |
first = false;
|
|
|
1306 |
}
|
|
|
1307 |
if (isSetTicketAssigneeId()) {
|
|
|
1308 |
if (!first) sb.append(", ");
|
|
|
1309 |
sb.append("ticketAssigneeId:");
|
|
|
1310 |
sb.append(this.ticketAssigneeId);
|
|
|
1311 |
first = false;
|
|
|
1312 |
}
|
|
|
1313 |
if (isSetTicketStatus()) {
|
|
|
1314 |
if (!first) sb.append(", ");
|
|
|
1315 |
sb.append("ticketStatus:");
|
|
|
1316 |
if (this.ticketStatus == null) {
|
|
|
1317 |
sb.append("null");
|
|
|
1318 |
} else {
|
|
|
1319 |
String ticketStatus_name = ticketStatus.name();
|
|
|
1320 |
if (ticketStatus_name != null) {
|
|
|
1321 |
sb.append(ticketStatus_name);
|
|
|
1322 |
sb.append(" (");
|
|
|
1323 |
}
|
|
|
1324 |
sb.append(this.ticketStatus);
|
|
|
1325 |
if (ticketStatus_name != null) {
|
|
|
1326 |
sb.append(")");
|
|
|
1327 |
}
|
| 3028 |
mandeep.dh |
1328 |
}
|
| 3168 |
mandeep.dh |
1329 |
first = false;
|
| 3028 |
mandeep.dh |
1330 |
}
|
| 3168 |
mandeep.dh |
1331 |
if (isSetTicketCategory()) {
|
|
|
1332 |
if (!first) sb.append(", ");
|
|
|
1333 |
sb.append("ticketCategory:");
|
|
|
1334 |
if (this.ticketCategory == null) {
|
|
|
1335 |
sb.append("null");
|
|
|
1336 |
} else {
|
|
|
1337 |
String ticketCategory_name = ticketCategory.name();
|
|
|
1338 |
if (ticketCategory_name != null) {
|
|
|
1339 |
sb.append(ticketCategory_name);
|
|
|
1340 |
sb.append(" (");
|
|
|
1341 |
}
|
|
|
1342 |
sb.append(this.ticketCategory);
|
|
|
1343 |
if (ticketCategory_name != null) {
|
|
|
1344 |
sb.append(")");
|
|
|
1345 |
}
|
| 3028 |
mandeep.dh |
1346 |
}
|
| 3168 |
mandeep.dh |
1347 |
first = false;
|
| 3028 |
mandeep.dh |
1348 |
}
|
| 3168 |
mandeep.dh |
1349 |
if (isSetTicketDescription()) {
|
|
|
1350 |
if (!first) sb.append(", ");
|
|
|
1351 |
sb.append("ticketDescription:");
|
|
|
1352 |
if (this.ticketDescription == null) {
|
|
|
1353 |
sb.append("null");
|
|
|
1354 |
} else {
|
|
|
1355 |
sb.append(this.ticketDescription);
|
| 3028 |
mandeep.dh |
1356 |
}
|
| 3168 |
mandeep.dh |
1357 |
first = false;
|
| 3028 |
mandeep.dh |
1358 |
}
|
|
|
1359 |
sb.append(")");
|
|
|
1360 |
return sb.toString();
|
|
|
1361 |
}
|
|
|
1362 |
|
|
|
1363 |
public void validate() throws TException {
|
|
|
1364 |
// check for required fields
|
|
|
1365 |
}
|
|
|
1366 |
|
|
|
1367 |
}
|
|
|
1368 |
|