| 12691 |
manish.sha |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.utils;
|
|
|
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.nio.ByteBuffer;
|
|
|
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class UserSmsInfo implements org.apache.thrift.TBase<UserSmsInfo, UserSmsInfo._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserSmsInfo");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField MOBILE_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("mobileNo", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField DAILY_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("dailyCount", org.apache.thrift.protocol.TType.I32, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField WEEKLY_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("weeklyCount", org.apache.thrift.protocol.TType.I32, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField DND_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("dndStatus", org.apache.thrift.protocol.TType.BOOL, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField SMS_SUBSCRIBED_FIELD_DESC = new org.apache.thrift.protocol.TField("smsSubscribed", org.apache.thrift.protocol.TType.BOOL, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField CREATED_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("createdTimestamp", org.apache.thrift.protocol.TType.I64, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField UPDATE_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("updateTimestamp", org.apache.thrift.protocol.TType.I64, (short)8);
|
|
|
34 |
|
|
|
35 |
private long userId; // required
|
|
|
36 |
private String mobileNo; // required
|
|
|
37 |
private int dailyCount; // required
|
|
|
38 |
private int weeklyCount; // required
|
|
|
39 |
private boolean dndStatus; // required
|
|
|
40 |
private boolean smsSubscribed; // required
|
|
|
41 |
private long createdTimestamp; // required
|
|
|
42 |
private long updateTimestamp; // required
|
|
|
43 |
|
|
|
44 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
45 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
46 |
USER_ID((short)1, "userId"),
|
|
|
47 |
MOBILE_NO((short)2, "mobileNo"),
|
|
|
48 |
DAILY_COUNT((short)3, "dailyCount"),
|
|
|
49 |
WEEKLY_COUNT((short)4, "weeklyCount"),
|
|
|
50 |
DND_STATUS((short)5, "dndStatus"),
|
|
|
51 |
SMS_SUBSCRIBED((short)6, "smsSubscribed"),
|
|
|
52 |
CREATED_TIMESTAMP((short)7, "createdTimestamp"),
|
|
|
53 |
UPDATE_TIMESTAMP((short)8, "updateTimestamp");
|
|
|
54 |
|
|
|
55 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
56 |
|
|
|
57 |
static {
|
|
|
58 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
59 |
byName.put(field.getFieldName(), field);
|
|
|
60 |
}
|
|
|
61 |
}
|
|
|
62 |
|
|
|
63 |
/**
|
|
|
64 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
65 |
*/
|
|
|
66 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
67 |
switch(fieldId) {
|
|
|
68 |
case 1: // USER_ID
|
|
|
69 |
return USER_ID;
|
|
|
70 |
case 2: // MOBILE_NO
|
|
|
71 |
return MOBILE_NO;
|
|
|
72 |
case 3: // DAILY_COUNT
|
|
|
73 |
return DAILY_COUNT;
|
|
|
74 |
case 4: // WEEKLY_COUNT
|
|
|
75 |
return WEEKLY_COUNT;
|
|
|
76 |
case 5: // DND_STATUS
|
|
|
77 |
return DND_STATUS;
|
|
|
78 |
case 6: // SMS_SUBSCRIBED
|
|
|
79 |
return SMS_SUBSCRIBED;
|
|
|
80 |
case 7: // CREATED_TIMESTAMP
|
|
|
81 |
return CREATED_TIMESTAMP;
|
|
|
82 |
case 8: // UPDATE_TIMESTAMP
|
|
|
83 |
return UPDATE_TIMESTAMP;
|
|
|
84 |
default:
|
|
|
85 |
return null;
|
|
|
86 |
}
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
/**
|
|
|
90 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
91 |
* if it is not found.
|
|
|
92 |
*/
|
|
|
93 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
94 |
_Fields fields = findByThriftId(fieldId);
|
|
|
95 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
96 |
return fields;
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
/**
|
|
|
100 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
101 |
*/
|
|
|
102 |
public static _Fields findByName(String name) {
|
|
|
103 |
return byName.get(name);
|
|
|
104 |
}
|
|
|
105 |
|
|
|
106 |
private final short _thriftId;
|
|
|
107 |
private final String _fieldName;
|
|
|
108 |
|
|
|
109 |
_Fields(short thriftId, String fieldName) {
|
|
|
110 |
_thriftId = thriftId;
|
|
|
111 |
_fieldName = fieldName;
|
|
|
112 |
}
|
|
|
113 |
|
|
|
114 |
public short getThriftFieldId() {
|
|
|
115 |
return _thriftId;
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
public String getFieldName() {
|
|
|
119 |
return _fieldName;
|
|
|
120 |
}
|
|
|
121 |
}
|
|
|
122 |
|
|
|
123 |
// isset id assignments
|
|
|
124 |
private static final int __USERID_ISSET_ID = 0;
|
|
|
125 |
private static final int __DAILYCOUNT_ISSET_ID = 1;
|
|
|
126 |
private static final int __WEEKLYCOUNT_ISSET_ID = 2;
|
|
|
127 |
private static final int __DNDSTATUS_ISSET_ID = 3;
|
|
|
128 |
private static final int __SMSSUBSCRIBED_ISSET_ID = 4;
|
|
|
129 |
private static final int __CREATEDTIMESTAMP_ISSET_ID = 5;
|
|
|
130 |
private static final int __UPDATETIMESTAMP_ISSET_ID = 6;
|
|
|
131 |
private BitSet __isset_bit_vector = new BitSet(7);
|
|
|
132 |
|
|
|
133 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
134 |
static {
|
|
|
135 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
136 |
tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
137 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
138 |
tmpMap.put(_Fields.MOBILE_NO, new org.apache.thrift.meta_data.FieldMetaData("mobileNo", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
139 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
140 |
tmpMap.put(_Fields.DAILY_COUNT, new org.apache.thrift.meta_data.FieldMetaData("dailyCount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
141 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
|
|
142 |
tmpMap.put(_Fields.WEEKLY_COUNT, new org.apache.thrift.meta_data.FieldMetaData("weeklyCount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
143 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
|
|
144 |
tmpMap.put(_Fields.DND_STATUS, new org.apache.thrift.meta_data.FieldMetaData("dndStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
145 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
146 |
tmpMap.put(_Fields.SMS_SUBSCRIBED, new org.apache.thrift.meta_data.FieldMetaData("smsSubscribed", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
147 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
148 |
tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
149 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
150 |
tmpMap.put(_Fields.UPDATE_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("updateTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
151 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
152 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
153 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserSmsInfo.class, metaDataMap);
|
|
|
154 |
}
|
|
|
155 |
|
|
|
156 |
public UserSmsInfo() {
|
|
|
157 |
}
|
|
|
158 |
|
|
|
159 |
public UserSmsInfo(
|
|
|
160 |
long userId,
|
|
|
161 |
String mobileNo,
|
|
|
162 |
int dailyCount,
|
|
|
163 |
int weeklyCount,
|
|
|
164 |
boolean dndStatus,
|
|
|
165 |
boolean smsSubscribed,
|
|
|
166 |
long createdTimestamp,
|
|
|
167 |
long updateTimestamp)
|
|
|
168 |
{
|
|
|
169 |
this();
|
|
|
170 |
this.userId = userId;
|
|
|
171 |
setUserIdIsSet(true);
|
|
|
172 |
this.mobileNo = mobileNo;
|
|
|
173 |
this.dailyCount = dailyCount;
|
|
|
174 |
setDailyCountIsSet(true);
|
|
|
175 |
this.weeklyCount = weeklyCount;
|
|
|
176 |
setWeeklyCountIsSet(true);
|
|
|
177 |
this.dndStatus = dndStatus;
|
|
|
178 |
setDndStatusIsSet(true);
|
|
|
179 |
this.smsSubscribed = smsSubscribed;
|
|
|
180 |
setSmsSubscribedIsSet(true);
|
|
|
181 |
this.createdTimestamp = createdTimestamp;
|
|
|
182 |
setCreatedTimestampIsSet(true);
|
|
|
183 |
this.updateTimestamp = updateTimestamp;
|
|
|
184 |
setUpdateTimestampIsSet(true);
|
|
|
185 |
}
|
|
|
186 |
|
|
|
187 |
/**
|
|
|
188 |
* Performs a deep copy on <i>other</i>.
|
|
|
189 |
*/
|
|
|
190 |
public UserSmsInfo(UserSmsInfo other) {
|
|
|
191 |
__isset_bit_vector.clear();
|
|
|
192 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
193 |
this.userId = other.userId;
|
|
|
194 |
if (other.isSetMobileNo()) {
|
|
|
195 |
this.mobileNo = other.mobileNo;
|
|
|
196 |
}
|
|
|
197 |
this.dailyCount = other.dailyCount;
|
|
|
198 |
this.weeklyCount = other.weeklyCount;
|
|
|
199 |
this.dndStatus = other.dndStatus;
|
|
|
200 |
this.smsSubscribed = other.smsSubscribed;
|
|
|
201 |
this.createdTimestamp = other.createdTimestamp;
|
|
|
202 |
this.updateTimestamp = other.updateTimestamp;
|
|
|
203 |
}
|
|
|
204 |
|
|
|
205 |
public UserSmsInfo deepCopy() {
|
|
|
206 |
return new UserSmsInfo(this);
|
|
|
207 |
}
|
|
|
208 |
|
|
|
209 |
@Override
|
|
|
210 |
public void clear() {
|
|
|
211 |
setUserIdIsSet(false);
|
|
|
212 |
this.userId = 0;
|
|
|
213 |
this.mobileNo = null;
|
|
|
214 |
setDailyCountIsSet(false);
|
|
|
215 |
this.dailyCount = 0;
|
|
|
216 |
setWeeklyCountIsSet(false);
|
|
|
217 |
this.weeklyCount = 0;
|
|
|
218 |
setDndStatusIsSet(false);
|
|
|
219 |
this.dndStatus = false;
|
|
|
220 |
setSmsSubscribedIsSet(false);
|
|
|
221 |
this.smsSubscribed = false;
|
|
|
222 |
setCreatedTimestampIsSet(false);
|
|
|
223 |
this.createdTimestamp = 0;
|
|
|
224 |
setUpdateTimestampIsSet(false);
|
|
|
225 |
this.updateTimestamp = 0;
|
|
|
226 |
}
|
|
|
227 |
|
|
|
228 |
public long getUserId() {
|
|
|
229 |
return this.userId;
|
|
|
230 |
}
|
|
|
231 |
|
|
|
232 |
public void setUserId(long userId) {
|
|
|
233 |
this.userId = userId;
|
|
|
234 |
setUserIdIsSet(true);
|
|
|
235 |
}
|
|
|
236 |
|
|
|
237 |
public void unsetUserId() {
|
|
|
238 |
__isset_bit_vector.clear(__USERID_ISSET_ID);
|
|
|
239 |
}
|
|
|
240 |
|
|
|
241 |
/** Returns true if field userId is set (has been assigned a value) and false otherwise */
|
|
|
242 |
public boolean isSetUserId() {
|
|
|
243 |
return __isset_bit_vector.get(__USERID_ISSET_ID);
|
|
|
244 |
}
|
|
|
245 |
|
|
|
246 |
public void setUserIdIsSet(boolean value) {
|
|
|
247 |
__isset_bit_vector.set(__USERID_ISSET_ID, value);
|
|
|
248 |
}
|
|
|
249 |
|
|
|
250 |
public String getMobileNo() {
|
|
|
251 |
return this.mobileNo;
|
|
|
252 |
}
|
|
|
253 |
|
|
|
254 |
public void setMobileNo(String mobileNo) {
|
|
|
255 |
this.mobileNo = mobileNo;
|
|
|
256 |
}
|
|
|
257 |
|
|
|
258 |
public void unsetMobileNo() {
|
|
|
259 |
this.mobileNo = null;
|
|
|
260 |
}
|
|
|
261 |
|
|
|
262 |
/** Returns true if field mobileNo is set (has been assigned a value) and false otherwise */
|
|
|
263 |
public boolean isSetMobileNo() {
|
|
|
264 |
return this.mobileNo != null;
|
|
|
265 |
}
|
|
|
266 |
|
|
|
267 |
public void setMobileNoIsSet(boolean value) {
|
|
|
268 |
if (!value) {
|
|
|
269 |
this.mobileNo = null;
|
|
|
270 |
}
|
|
|
271 |
}
|
|
|
272 |
|
|
|
273 |
public int getDailyCount() {
|
|
|
274 |
return this.dailyCount;
|
|
|
275 |
}
|
|
|
276 |
|
|
|
277 |
public void setDailyCount(int dailyCount) {
|
|
|
278 |
this.dailyCount = dailyCount;
|
|
|
279 |
setDailyCountIsSet(true);
|
|
|
280 |
}
|
|
|
281 |
|
|
|
282 |
public void unsetDailyCount() {
|
|
|
283 |
__isset_bit_vector.clear(__DAILYCOUNT_ISSET_ID);
|
|
|
284 |
}
|
|
|
285 |
|
|
|
286 |
/** Returns true if field dailyCount is set (has been assigned a value) and false otherwise */
|
|
|
287 |
public boolean isSetDailyCount() {
|
|
|
288 |
return __isset_bit_vector.get(__DAILYCOUNT_ISSET_ID);
|
|
|
289 |
}
|
|
|
290 |
|
|
|
291 |
public void setDailyCountIsSet(boolean value) {
|
|
|
292 |
__isset_bit_vector.set(__DAILYCOUNT_ISSET_ID, value);
|
|
|
293 |
}
|
|
|
294 |
|
|
|
295 |
public int getWeeklyCount() {
|
|
|
296 |
return this.weeklyCount;
|
|
|
297 |
}
|
|
|
298 |
|
|
|
299 |
public void setWeeklyCount(int weeklyCount) {
|
|
|
300 |
this.weeklyCount = weeklyCount;
|
|
|
301 |
setWeeklyCountIsSet(true);
|
|
|
302 |
}
|
|
|
303 |
|
|
|
304 |
public void unsetWeeklyCount() {
|
|
|
305 |
__isset_bit_vector.clear(__WEEKLYCOUNT_ISSET_ID);
|
|
|
306 |
}
|
|
|
307 |
|
|
|
308 |
/** Returns true if field weeklyCount is set (has been assigned a value) and false otherwise */
|
|
|
309 |
public boolean isSetWeeklyCount() {
|
|
|
310 |
return __isset_bit_vector.get(__WEEKLYCOUNT_ISSET_ID);
|
|
|
311 |
}
|
|
|
312 |
|
|
|
313 |
public void setWeeklyCountIsSet(boolean value) {
|
|
|
314 |
__isset_bit_vector.set(__WEEKLYCOUNT_ISSET_ID, value);
|
|
|
315 |
}
|
|
|
316 |
|
|
|
317 |
public boolean isDndStatus() {
|
|
|
318 |
return this.dndStatus;
|
|
|
319 |
}
|
|
|
320 |
|
|
|
321 |
public void setDndStatus(boolean dndStatus) {
|
|
|
322 |
this.dndStatus = dndStatus;
|
|
|
323 |
setDndStatusIsSet(true);
|
|
|
324 |
}
|
|
|
325 |
|
|
|
326 |
public void unsetDndStatus() {
|
|
|
327 |
__isset_bit_vector.clear(__DNDSTATUS_ISSET_ID);
|
|
|
328 |
}
|
|
|
329 |
|
|
|
330 |
/** Returns true if field dndStatus is set (has been assigned a value) and false otherwise */
|
|
|
331 |
public boolean isSetDndStatus() {
|
|
|
332 |
return __isset_bit_vector.get(__DNDSTATUS_ISSET_ID);
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
public void setDndStatusIsSet(boolean value) {
|
|
|
336 |
__isset_bit_vector.set(__DNDSTATUS_ISSET_ID, value);
|
|
|
337 |
}
|
|
|
338 |
|
|
|
339 |
public boolean isSmsSubscribed() {
|
|
|
340 |
return this.smsSubscribed;
|
|
|
341 |
}
|
|
|
342 |
|
|
|
343 |
public void setSmsSubscribed(boolean smsSubscribed) {
|
|
|
344 |
this.smsSubscribed = smsSubscribed;
|
|
|
345 |
setSmsSubscribedIsSet(true);
|
|
|
346 |
}
|
|
|
347 |
|
|
|
348 |
public void unsetSmsSubscribed() {
|
|
|
349 |
__isset_bit_vector.clear(__SMSSUBSCRIBED_ISSET_ID);
|
|
|
350 |
}
|
|
|
351 |
|
|
|
352 |
/** Returns true if field smsSubscribed is set (has been assigned a value) and false otherwise */
|
|
|
353 |
public boolean isSetSmsSubscribed() {
|
|
|
354 |
return __isset_bit_vector.get(__SMSSUBSCRIBED_ISSET_ID);
|
|
|
355 |
}
|
|
|
356 |
|
|
|
357 |
public void setSmsSubscribedIsSet(boolean value) {
|
|
|
358 |
__isset_bit_vector.set(__SMSSUBSCRIBED_ISSET_ID, value);
|
|
|
359 |
}
|
|
|
360 |
|
|
|
361 |
public long getCreatedTimestamp() {
|
|
|
362 |
return this.createdTimestamp;
|
|
|
363 |
}
|
|
|
364 |
|
|
|
365 |
public void setCreatedTimestamp(long createdTimestamp) {
|
|
|
366 |
this.createdTimestamp = createdTimestamp;
|
|
|
367 |
setCreatedTimestampIsSet(true);
|
|
|
368 |
}
|
|
|
369 |
|
|
|
370 |
public void unsetCreatedTimestamp() {
|
|
|
371 |
__isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
|
|
|
372 |
}
|
|
|
373 |
|
|
|
374 |
/** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
|
|
|
375 |
public boolean isSetCreatedTimestamp() {
|
|
|
376 |
return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
|
|
|
377 |
}
|
|
|
378 |
|
|
|
379 |
public void setCreatedTimestampIsSet(boolean value) {
|
|
|
380 |
__isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
|
|
|
381 |
}
|
|
|
382 |
|
|
|
383 |
public long getUpdateTimestamp() {
|
|
|
384 |
return this.updateTimestamp;
|
|
|
385 |
}
|
|
|
386 |
|
|
|
387 |
public void setUpdateTimestamp(long updateTimestamp) {
|
|
|
388 |
this.updateTimestamp = updateTimestamp;
|
|
|
389 |
setUpdateTimestampIsSet(true);
|
|
|
390 |
}
|
|
|
391 |
|
|
|
392 |
public void unsetUpdateTimestamp() {
|
|
|
393 |
__isset_bit_vector.clear(__UPDATETIMESTAMP_ISSET_ID);
|
|
|
394 |
}
|
|
|
395 |
|
|
|
396 |
/** Returns true if field updateTimestamp is set (has been assigned a value) and false otherwise */
|
|
|
397 |
public boolean isSetUpdateTimestamp() {
|
|
|
398 |
return __isset_bit_vector.get(__UPDATETIMESTAMP_ISSET_ID);
|
|
|
399 |
}
|
|
|
400 |
|
|
|
401 |
public void setUpdateTimestampIsSet(boolean value) {
|
|
|
402 |
__isset_bit_vector.set(__UPDATETIMESTAMP_ISSET_ID, value);
|
|
|
403 |
}
|
|
|
404 |
|
|
|
405 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
406 |
switch (field) {
|
|
|
407 |
case USER_ID:
|
|
|
408 |
if (value == null) {
|
|
|
409 |
unsetUserId();
|
|
|
410 |
} else {
|
|
|
411 |
setUserId((Long)value);
|
|
|
412 |
}
|
|
|
413 |
break;
|
|
|
414 |
|
|
|
415 |
case MOBILE_NO:
|
|
|
416 |
if (value == null) {
|
|
|
417 |
unsetMobileNo();
|
|
|
418 |
} else {
|
|
|
419 |
setMobileNo((String)value);
|
|
|
420 |
}
|
|
|
421 |
break;
|
|
|
422 |
|
|
|
423 |
case DAILY_COUNT:
|
|
|
424 |
if (value == null) {
|
|
|
425 |
unsetDailyCount();
|
|
|
426 |
} else {
|
|
|
427 |
setDailyCount((Integer)value);
|
|
|
428 |
}
|
|
|
429 |
break;
|
|
|
430 |
|
|
|
431 |
case WEEKLY_COUNT:
|
|
|
432 |
if (value == null) {
|
|
|
433 |
unsetWeeklyCount();
|
|
|
434 |
} else {
|
|
|
435 |
setWeeklyCount((Integer)value);
|
|
|
436 |
}
|
|
|
437 |
break;
|
|
|
438 |
|
|
|
439 |
case DND_STATUS:
|
|
|
440 |
if (value == null) {
|
|
|
441 |
unsetDndStatus();
|
|
|
442 |
} else {
|
|
|
443 |
setDndStatus((Boolean)value);
|
|
|
444 |
}
|
|
|
445 |
break;
|
|
|
446 |
|
|
|
447 |
case SMS_SUBSCRIBED:
|
|
|
448 |
if (value == null) {
|
|
|
449 |
unsetSmsSubscribed();
|
|
|
450 |
} else {
|
|
|
451 |
setSmsSubscribed((Boolean)value);
|
|
|
452 |
}
|
|
|
453 |
break;
|
|
|
454 |
|
|
|
455 |
case CREATED_TIMESTAMP:
|
|
|
456 |
if (value == null) {
|
|
|
457 |
unsetCreatedTimestamp();
|
|
|
458 |
} else {
|
|
|
459 |
setCreatedTimestamp((Long)value);
|
|
|
460 |
}
|
|
|
461 |
break;
|
|
|
462 |
|
|
|
463 |
case UPDATE_TIMESTAMP:
|
|
|
464 |
if (value == null) {
|
|
|
465 |
unsetUpdateTimestamp();
|
|
|
466 |
} else {
|
|
|
467 |
setUpdateTimestamp((Long)value);
|
|
|
468 |
}
|
|
|
469 |
break;
|
|
|
470 |
|
|
|
471 |
}
|
|
|
472 |
}
|
|
|
473 |
|
|
|
474 |
public Object getFieldValue(_Fields field) {
|
|
|
475 |
switch (field) {
|
|
|
476 |
case USER_ID:
|
|
|
477 |
return Long.valueOf(getUserId());
|
|
|
478 |
|
|
|
479 |
case MOBILE_NO:
|
|
|
480 |
return getMobileNo();
|
|
|
481 |
|
|
|
482 |
case DAILY_COUNT:
|
|
|
483 |
return Integer.valueOf(getDailyCount());
|
|
|
484 |
|
|
|
485 |
case WEEKLY_COUNT:
|
|
|
486 |
return Integer.valueOf(getWeeklyCount());
|
|
|
487 |
|
|
|
488 |
case DND_STATUS:
|
|
|
489 |
return Boolean.valueOf(isDndStatus());
|
|
|
490 |
|
|
|
491 |
case SMS_SUBSCRIBED:
|
|
|
492 |
return Boolean.valueOf(isSmsSubscribed());
|
|
|
493 |
|
|
|
494 |
case CREATED_TIMESTAMP:
|
|
|
495 |
return Long.valueOf(getCreatedTimestamp());
|
|
|
496 |
|
|
|
497 |
case UPDATE_TIMESTAMP:
|
|
|
498 |
return Long.valueOf(getUpdateTimestamp());
|
|
|
499 |
|
|
|
500 |
}
|
|
|
501 |
throw new IllegalStateException();
|
|
|
502 |
}
|
|
|
503 |
|
|
|
504 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
505 |
public boolean isSet(_Fields field) {
|
|
|
506 |
if (field == null) {
|
|
|
507 |
throw new IllegalArgumentException();
|
|
|
508 |
}
|
|
|
509 |
|
|
|
510 |
switch (field) {
|
|
|
511 |
case USER_ID:
|
|
|
512 |
return isSetUserId();
|
|
|
513 |
case MOBILE_NO:
|
|
|
514 |
return isSetMobileNo();
|
|
|
515 |
case DAILY_COUNT:
|
|
|
516 |
return isSetDailyCount();
|
|
|
517 |
case WEEKLY_COUNT:
|
|
|
518 |
return isSetWeeklyCount();
|
|
|
519 |
case DND_STATUS:
|
|
|
520 |
return isSetDndStatus();
|
|
|
521 |
case SMS_SUBSCRIBED:
|
|
|
522 |
return isSetSmsSubscribed();
|
|
|
523 |
case CREATED_TIMESTAMP:
|
|
|
524 |
return isSetCreatedTimestamp();
|
|
|
525 |
case UPDATE_TIMESTAMP:
|
|
|
526 |
return isSetUpdateTimestamp();
|
|
|
527 |
}
|
|
|
528 |
throw new IllegalStateException();
|
|
|
529 |
}
|
|
|
530 |
|
|
|
531 |
@Override
|
|
|
532 |
public boolean equals(Object that) {
|
|
|
533 |
if (that == null)
|
|
|
534 |
return false;
|
|
|
535 |
if (that instanceof UserSmsInfo)
|
|
|
536 |
return this.equals((UserSmsInfo)that);
|
|
|
537 |
return false;
|
|
|
538 |
}
|
|
|
539 |
|
|
|
540 |
public boolean equals(UserSmsInfo that) {
|
|
|
541 |
if (that == null)
|
|
|
542 |
return false;
|
|
|
543 |
|
|
|
544 |
boolean this_present_userId = true;
|
|
|
545 |
boolean that_present_userId = true;
|
|
|
546 |
if (this_present_userId || that_present_userId) {
|
|
|
547 |
if (!(this_present_userId && that_present_userId))
|
|
|
548 |
return false;
|
|
|
549 |
if (this.userId != that.userId)
|
|
|
550 |
return false;
|
|
|
551 |
}
|
|
|
552 |
|
|
|
553 |
boolean this_present_mobileNo = true && this.isSetMobileNo();
|
|
|
554 |
boolean that_present_mobileNo = true && that.isSetMobileNo();
|
|
|
555 |
if (this_present_mobileNo || that_present_mobileNo) {
|
|
|
556 |
if (!(this_present_mobileNo && that_present_mobileNo))
|
|
|
557 |
return false;
|
|
|
558 |
if (!this.mobileNo.equals(that.mobileNo))
|
|
|
559 |
return false;
|
|
|
560 |
}
|
|
|
561 |
|
|
|
562 |
boolean this_present_dailyCount = true;
|
|
|
563 |
boolean that_present_dailyCount = true;
|
|
|
564 |
if (this_present_dailyCount || that_present_dailyCount) {
|
|
|
565 |
if (!(this_present_dailyCount && that_present_dailyCount))
|
|
|
566 |
return false;
|
|
|
567 |
if (this.dailyCount != that.dailyCount)
|
|
|
568 |
return false;
|
|
|
569 |
}
|
|
|
570 |
|
|
|
571 |
boolean this_present_weeklyCount = true;
|
|
|
572 |
boolean that_present_weeklyCount = true;
|
|
|
573 |
if (this_present_weeklyCount || that_present_weeklyCount) {
|
|
|
574 |
if (!(this_present_weeklyCount && that_present_weeklyCount))
|
|
|
575 |
return false;
|
|
|
576 |
if (this.weeklyCount != that.weeklyCount)
|
|
|
577 |
return false;
|
|
|
578 |
}
|
|
|
579 |
|
|
|
580 |
boolean this_present_dndStatus = true;
|
|
|
581 |
boolean that_present_dndStatus = true;
|
|
|
582 |
if (this_present_dndStatus || that_present_dndStatus) {
|
|
|
583 |
if (!(this_present_dndStatus && that_present_dndStatus))
|
|
|
584 |
return false;
|
|
|
585 |
if (this.dndStatus != that.dndStatus)
|
|
|
586 |
return false;
|
|
|
587 |
}
|
|
|
588 |
|
|
|
589 |
boolean this_present_smsSubscribed = true;
|
|
|
590 |
boolean that_present_smsSubscribed = true;
|
|
|
591 |
if (this_present_smsSubscribed || that_present_smsSubscribed) {
|
|
|
592 |
if (!(this_present_smsSubscribed && that_present_smsSubscribed))
|
|
|
593 |
return false;
|
|
|
594 |
if (this.smsSubscribed != that.smsSubscribed)
|
|
|
595 |
return false;
|
|
|
596 |
}
|
|
|
597 |
|
|
|
598 |
boolean this_present_createdTimestamp = true;
|
|
|
599 |
boolean that_present_createdTimestamp = true;
|
|
|
600 |
if (this_present_createdTimestamp || that_present_createdTimestamp) {
|
|
|
601 |
if (!(this_present_createdTimestamp && that_present_createdTimestamp))
|
|
|
602 |
return false;
|
|
|
603 |
if (this.createdTimestamp != that.createdTimestamp)
|
|
|
604 |
return false;
|
|
|
605 |
}
|
|
|
606 |
|
|
|
607 |
boolean this_present_updateTimestamp = true;
|
|
|
608 |
boolean that_present_updateTimestamp = true;
|
|
|
609 |
if (this_present_updateTimestamp || that_present_updateTimestamp) {
|
|
|
610 |
if (!(this_present_updateTimestamp && that_present_updateTimestamp))
|
|
|
611 |
return false;
|
|
|
612 |
if (this.updateTimestamp != that.updateTimestamp)
|
|
|
613 |
return false;
|
|
|
614 |
}
|
|
|
615 |
|
|
|
616 |
return true;
|
|
|
617 |
}
|
|
|
618 |
|
|
|
619 |
@Override
|
|
|
620 |
public int hashCode() {
|
|
|
621 |
return 0;
|
|
|
622 |
}
|
|
|
623 |
|
|
|
624 |
public int compareTo(UserSmsInfo other) {
|
|
|
625 |
if (!getClass().equals(other.getClass())) {
|
|
|
626 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
627 |
}
|
|
|
628 |
|
|
|
629 |
int lastComparison = 0;
|
|
|
630 |
UserSmsInfo typedOther = (UserSmsInfo)other;
|
|
|
631 |
|
|
|
632 |
lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
|
|
|
633 |
if (lastComparison != 0) {
|
|
|
634 |
return lastComparison;
|
|
|
635 |
}
|
|
|
636 |
if (isSetUserId()) {
|
|
|
637 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
|
|
|
638 |
if (lastComparison != 0) {
|
|
|
639 |
return lastComparison;
|
|
|
640 |
}
|
|
|
641 |
}
|
|
|
642 |
lastComparison = Boolean.valueOf(isSetMobileNo()).compareTo(typedOther.isSetMobileNo());
|
|
|
643 |
if (lastComparison != 0) {
|
|
|
644 |
return lastComparison;
|
|
|
645 |
}
|
|
|
646 |
if (isSetMobileNo()) {
|
|
|
647 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNo, typedOther.mobileNo);
|
|
|
648 |
if (lastComparison != 0) {
|
|
|
649 |
return lastComparison;
|
|
|
650 |
}
|
|
|
651 |
}
|
|
|
652 |
lastComparison = Boolean.valueOf(isSetDailyCount()).compareTo(typedOther.isSetDailyCount());
|
|
|
653 |
if (lastComparison != 0) {
|
|
|
654 |
return lastComparison;
|
|
|
655 |
}
|
|
|
656 |
if (isSetDailyCount()) {
|
|
|
657 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dailyCount, typedOther.dailyCount);
|
|
|
658 |
if (lastComparison != 0) {
|
|
|
659 |
return lastComparison;
|
|
|
660 |
}
|
|
|
661 |
}
|
|
|
662 |
lastComparison = Boolean.valueOf(isSetWeeklyCount()).compareTo(typedOther.isSetWeeklyCount());
|
|
|
663 |
if (lastComparison != 0) {
|
|
|
664 |
return lastComparison;
|
|
|
665 |
}
|
|
|
666 |
if (isSetWeeklyCount()) {
|
|
|
667 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weeklyCount, typedOther.weeklyCount);
|
|
|
668 |
if (lastComparison != 0) {
|
|
|
669 |
return lastComparison;
|
|
|
670 |
}
|
|
|
671 |
}
|
|
|
672 |
lastComparison = Boolean.valueOf(isSetDndStatus()).compareTo(typedOther.isSetDndStatus());
|
|
|
673 |
if (lastComparison != 0) {
|
|
|
674 |
return lastComparison;
|
|
|
675 |
}
|
|
|
676 |
if (isSetDndStatus()) {
|
|
|
677 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dndStatus, typedOther.dndStatus);
|
|
|
678 |
if (lastComparison != 0) {
|
|
|
679 |
return lastComparison;
|
|
|
680 |
}
|
|
|
681 |
}
|
|
|
682 |
lastComparison = Boolean.valueOf(isSetSmsSubscribed()).compareTo(typedOther.isSetSmsSubscribed());
|
|
|
683 |
if (lastComparison != 0) {
|
|
|
684 |
return lastComparison;
|
|
|
685 |
}
|
|
|
686 |
if (isSetSmsSubscribed()) {
|
|
|
687 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.smsSubscribed, typedOther.smsSubscribed);
|
|
|
688 |
if (lastComparison != 0) {
|
|
|
689 |
return lastComparison;
|
|
|
690 |
}
|
|
|
691 |
}
|
|
|
692 |
lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
|
|
|
693 |
if (lastComparison != 0) {
|
|
|
694 |
return lastComparison;
|
|
|
695 |
}
|
|
|
696 |
if (isSetCreatedTimestamp()) {
|
|
|
697 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
|
|
|
698 |
if (lastComparison != 0) {
|
|
|
699 |
return lastComparison;
|
|
|
700 |
}
|
|
|
701 |
}
|
|
|
702 |
lastComparison = Boolean.valueOf(isSetUpdateTimestamp()).compareTo(typedOther.isSetUpdateTimestamp());
|
|
|
703 |
if (lastComparison != 0) {
|
|
|
704 |
return lastComparison;
|
|
|
705 |
}
|
|
|
706 |
if (isSetUpdateTimestamp()) {
|
|
|
707 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updateTimestamp, typedOther.updateTimestamp);
|
|
|
708 |
if (lastComparison != 0) {
|
|
|
709 |
return lastComparison;
|
|
|
710 |
}
|
|
|
711 |
}
|
|
|
712 |
return 0;
|
|
|
713 |
}
|
|
|
714 |
|
|
|
715 |
public _Fields fieldForId(int fieldId) {
|
|
|
716 |
return _Fields.findByThriftId(fieldId);
|
|
|
717 |
}
|
|
|
718 |
|
|
|
719 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
720 |
org.apache.thrift.protocol.TField field;
|
|
|
721 |
iprot.readStructBegin();
|
|
|
722 |
while (true)
|
|
|
723 |
{
|
|
|
724 |
field = iprot.readFieldBegin();
|
|
|
725 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
726 |
break;
|
|
|
727 |
}
|
|
|
728 |
switch (field.id) {
|
|
|
729 |
case 1: // USER_ID
|
|
|
730 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
731 |
this.userId = iprot.readI64();
|
|
|
732 |
setUserIdIsSet(true);
|
|
|
733 |
} else {
|
|
|
734 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
735 |
}
|
|
|
736 |
break;
|
|
|
737 |
case 2: // MOBILE_NO
|
|
|
738 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
739 |
this.mobileNo = iprot.readString();
|
|
|
740 |
} else {
|
|
|
741 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
742 |
}
|
|
|
743 |
break;
|
|
|
744 |
case 3: // DAILY_COUNT
|
|
|
745 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
746 |
this.dailyCount = iprot.readI32();
|
|
|
747 |
setDailyCountIsSet(true);
|
|
|
748 |
} else {
|
|
|
749 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
750 |
}
|
|
|
751 |
break;
|
|
|
752 |
case 4: // WEEKLY_COUNT
|
|
|
753 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
754 |
this.weeklyCount = iprot.readI32();
|
|
|
755 |
setWeeklyCountIsSet(true);
|
|
|
756 |
} else {
|
|
|
757 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
758 |
}
|
|
|
759 |
break;
|
|
|
760 |
case 5: // DND_STATUS
|
|
|
761 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
762 |
this.dndStatus = iprot.readBool();
|
|
|
763 |
setDndStatusIsSet(true);
|
|
|
764 |
} else {
|
|
|
765 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
766 |
}
|
|
|
767 |
break;
|
|
|
768 |
case 6: // SMS_SUBSCRIBED
|
|
|
769 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
770 |
this.smsSubscribed = iprot.readBool();
|
|
|
771 |
setSmsSubscribedIsSet(true);
|
|
|
772 |
} else {
|
|
|
773 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
774 |
}
|
|
|
775 |
break;
|
|
|
776 |
case 7: // CREATED_TIMESTAMP
|
|
|
777 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
778 |
this.createdTimestamp = iprot.readI64();
|
|
|
779 |
setCreatedTimestampIsSet(true);
|
|
|
780 |
} else {
|
|
|
781 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
782 |
}
|
|
|
783 |
break;
|
|
|
784 |
case 8: // UPDATE_TIMESTAMP
|
|
|
785 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
786 |
this.updateTimestamp = iprot.readI64();
|
|
|
787 |
setUpdateTimestampIsSet(true);
|
|
|
788 |
} else {
|
|
|
789 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
790 |
}
|
|
|
791 |
break;
|
|
|
792 |
default:
|
|
|
793 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
794 |
}
|
|
|
795 |
iprot.readFieldEnd();
|
|
|
796 |
}
|
|
|
797 |
iprot.readStructEnd();
|
|
|
798 |
validate();
|
|
|
799 |
}
|
|
|
800 |
|
|
|
801 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
802 |
validate();
|
|
|
803 |
|
|
|
804 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
805 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
|
|
806 |
oprot.writeI64(this.userId);
|
|
|
807 |
oprot.writeFieldEnd();
|
|
|
808 |
if (this.mobileNo != null) {
|
|
|
809 |
oprot.writeFieldBegin(MOBILE_NO_FIELD_DESC);
|
|
|
810 |
oprot.writeString(this.mobileNo);
|
|
|
811 |
oprot.writeFieldEnd();
|
|
|
812 |
}
|
|
|
813 |
oprot.writeFieldBegin(DAILY_COUNT_FIELD_DESC);
|
|
|
814 |
oprot.writeI32(this.dailyCount);
|
|
|
815 |
oprot.writeFieldEnd();
|
|
|
816 |
oprot.writeFieldBegin(WEEKLY_COUNT_FIELD_DESC);
|
|
|
817 |
oprot.writeI32(this.weeklyCount);
|
|
|
818 |
oprot.writeFieldEnd();
|
|
|
819 |
oprot.writeFieldBegin(DND_STATUS_FIELD_DESC);
|
|
|
820 |
oprot.writeBool(this.dndStatus);
|
|
|
821 |
oprot.writeFieldEnd();
|
|
|
822 |
oprot.writeFieldBegin(SMS_SUBSCRIBED_FIELD_DESC);
|
|
|
823 |
oprot.writeBool(this.smsSubscribed);
|
|
|
824 |
oprot.writeFieldEnd();
|
|
|
825 |
oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
|
|
|
826 |
oprot.writeI64(this.createdTimestamp);
|
|
|
827 |
oprot.writeFieldEnd();
|
|
|
828 |
oprot.writeFieldBegin(UPDATE_TIMESTAMP_FIELD_DESC);
|
|
|
829 |
oprot.writeI64(this.updateTimestamp);
|
|
|
830 |
oprot.writeFieldEnd();
|
|
|
831 |
oprot.writeFieldStop();
|
|
|
832 |
oprot.writeStructEnd();
|
|
|
833 |
}
|
|
|
834 |
|
|
|
835 |
@Override
|
|
|
836 |
public String toString() {
|
|
|
837 |
StringBuilder sb = new StringBuilder("UserSmsInfo(");
|
|
|
838 |
boolean first = true;
|
|
|
839 |
|
|
|
840 |
sb.append("userId:");
|
|
|
841 |
sb.append(this.userId);
|
|
|
842 |
first = false;
|
|
|
843 |
if (!first) sb.append(", ");
|
|
|
844 |
sb.append("mobileNo:");
|
|
|
845 |
if (this.mobileNo == null) {
|
|
|
846 |
sb.append("null");
|
|
|
847 |
} else {
|
|
|
848 |
sb.append(this.mobileNo);
|
|
|
849 |
}
|
|
|
850 |
first = false;
|
|
|
851 |
if (!first) sb.append(", ");
|
|
|
852 |
sb.append("dailyCount:");
|
|
|
853 |
sb.append(this.dailyCount);
|
|
|
854 |
first = false;
|
|
|
855 |
if (!first) sb.append(", ");
|
|
|
856 |
sb.append("weeklyCount:");
|
|
|
857 |
sb.append(this.weeklyCount);
|
|
|
858 |
first = false;
|
|
|
859 |
if (!first) sb.append(", ");
|
|
|
860 |
sb.append("dndStatus:");
|
|
|
861 |
sb.append(this.dndStatus);
|
|
|
862 |
first = false;
|
|
|
863 |
if (!first) sb.append(", ");
|
|
|
864 |
sb.append("smsSubscribed:");
|
|
|
865 |
sb.append(this.smsSubscribed);
|
|
|
866 |
first = false;
|
|
|
867 |
if (!first) sb.append(", ");
|
|
|
868 |
sb.append("createdTimestamp:");
|
|
|
869 |
sb.append(this.createdTimestamp);
|
|
|
870 |
first = false;
|
|
|
871 |
if (!first) sb.append(", ");
|
|
|
872 |
sb.append("updateTimestamp:");
|
|
|
873 |
sb.append(this.updateTimestamp);
|
|
|
874 |
first = false;
|
|
|
875 |
sb.append(")");
|
|
|
876 |
return sb.toString();
|
|
|
877 |
}
|
|
|
878 |
|
|
|
879 |
public void validate() throws org.apache.thrift.TException {
|
|
|
880 |
// check for required fields
|
|
|
881 |
}
|
|
|
882 |
|
|
|
883 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
884 |
try {
|
|
|
885 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
886 |
} catch (org.apache.thrift.TException te) {
|
|
|
887 |
throw new java.io.IOException(te);
|
|
|
888 |
}
|
|
|
889 |
}
|
|
|
890 |
|
|
|
891 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
892 |
try {
|
|
|
893 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
894 |
__isset_bit_vector = new BitSet(1);
|
|
|
895 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
896 |
} catch (org.apache.thrift.TException te) {
|
|
|
897 |
throw new java.io.IOException(te);
|
|
|
898 |
}
|
|
|
899 |
}
|
|
|
900 |
|
|
|
901 |
}
|
|
|
902 |
|