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