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