Subversion Repositories SmartDukaan

Rev

Rev 3430 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3430 Rev 5864
Line 22... Line 22...
22
 
22
 
23
public class UserEmail implements org.apache.thrift.TBase<UserEmail, UserEmail._Fields>, java.io.Serializable, Cloneable {
23
public class UserEmail implements org.apache.thrift.TBase<UserEmail, UserEmail._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserEmail");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserEmail");
25
 
25
 
26
  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);
26
  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);
27
  private static final org.apache.thrift.protocol.TField EMAIL_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("emailTo", org.apache.thrift.protocol.TType.STRING, (short)2);
27
  private static final org.apache.thrift.protocol.TField EMAIL_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("emailTo", org.apache.thrift.protocol.TType.LIST, (short)2);
28
  private static final org.apache.thrift.protocol.TField EMAIL_FROM_FIELD_DESC = new org.apache.thrift.protocol.TField("emailFrom", org.apache.thrift.protocol.TType.STRING, (short)3);
28
  private static final org.apache.thrift.protocol.TField EMAIL_FROM_FIELD_DESC = new org.apache.thrift.protocol.TField("emailFrom", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField SUBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("subject", org.apache.thrift.protocol.TType.STRING, (short)4);
29
  private static final org.apache.thrift.protocol.TField SUBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("subject", org.apache.thrift.protocol.TType.STRING, (short)4);
30
  private static final org.apache.thrift.protocol.TField BODY_FIELD_DESC = new org.apache.thrift.protocol.TField("body", org.apache.thrift.protocol.TType.STRING, (short)5);
30
  private static final org.apache.thrift.protocol.TField BODY_FIELD_DESC = new org.apache.thrift.protocol.TField("body", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.STRING, (short)6);
31
  private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.STRING, (short)6);
32
  private static final org.apache.thrift.protocol.TField EMAIL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("emailType", org.apache.thrift.protocol.TType.STRING, (short)7);
32
  private static final org.apache.thrift.protocol.TField EMAIL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("emailType", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.BOOL, (short)8);
33
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.BOOL, (short)8);
34
  private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)9);
34
  private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)9);
-
 
35
  private static final org.apache.thrift.protocol.TField CC_FIELD_DESC = new org.apache.thrift.protocol.TField("cc", org.apache.thrift.protocol.TType.LIST, (short)10);
-
 
36
  private static final org.apache.thrift.protocol.TField BCC_FIELD_DESC = new org.apache.thrift.protocol.TField("bcc", org.apache.thrift.protocol.TType.LIST, (short)11);
35
 
37
 
36
  private long id; // required
38
  private long id; // required
37
  private String emailTo; // required
39
  private List<String> emailTo; // required
38
  private String emailFrom; // required
40
  private String emailFrom; // required
39
  private String subject; // required
41
  private String subject; // required
40
  private String body; // required
42
  private String body; // required
41
  private String source; // required
43
  private String source; // required
42
  private String emailType; // required
44
  private String emailType; // required
43
  private boolean status; // required
45
  private boolean status; // required
44
  private long timestamp; // required
46
  private long timestamp; // required
-
 
47
  private List<String> cc; // required
-
 
48
  private List<String> bcc; // required
45
 
49
 
46
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48
    ID((short)1, "id"),
52
    ID((short)1, "id"),
49
    EMAIL_TO((short)2, "emailTo"),
53
    EMAIL_TO((short)2, "emailTo"),
Line 51... Line 55...
51
    SUBJECT((short)4, "subject"),
55
    SUBJECT((short)4, "subject"),
52
    BODY((short)5, "body"),
56
    BODY((short)5, "body"),
53
    SOURCE((short)6, "source"),
57
    SOURCE((short)6, "source"),
54
    EMAIL_TYPE((short)7, "emailType"),
58
    EMAIL_TYPE((short)7, "emailType"),
55
    STATUS((short)8, "status"),
59
    STATUS((short)8, "status"),
56
    TIMESTAMP((short)9, "timestamp");
60
    TIMESTAMP((short)9, "timestamp"),
-
 
61
    CC((short)10, "cc"),
-
 
62
    BCC((short)11, "bcc");
57
 
63
 
58
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
64
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
59
 
65
 
60
    static {
66
    static {
61
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
67
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 84... Line 90...
84
          return EMAIL_TYPE;
90
          return EMAIL_TYPE;
85
        case 8: // STATUS
91
        case 8: // STATUS
86
          return STATUS;
92
          return STATUS;
87
        case 9: // TIMESTAMP
93
        case 9: // TIMESTAMP
88
          return TIMESTAMP;
94
          return TIMESTAMP;
-
 
95
        case 10: // CC
-
 
96
          return CC;
-
 
97
        case 11: // BCC
-
 
98
          return BCC;
89
        default:
99
        default:
90
          return null;
100
          return null;
91
      }
101
      }
92
    }
102
    }
93
 
103
 
Line 135... Line 145...
135
  static {
145
  static {
136
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
146
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
137
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
147
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
138
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
148
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
139
    tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
149
    tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
150
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
140
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
151
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
141
    tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
152
    tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
142
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
153
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
143
    tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
154
    tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
144
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
155
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
145
    tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
156
    tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 150... Line 161...
150
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
161
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
151
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
162
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
152
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
163
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
153
    tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
164
    tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
154
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
165
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
166
    tmpMap.put(_Fields.CC, new org.apache.thrift.meta_data.FieldMetaData("cc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
167
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
168
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
169
    tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
170
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
171
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
155
    metaDataMap = Collections.unmodifiableMap(tmpMap);
172
    metaDataMap = Collections.unmodifiableMap(tmpMap);
156
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserEmail.class, metaDataMap);
173
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserEmail.class, metaDataMap);
157
  }
174
  }
158
 
175
 
159
  public UserEmail() {
176
  public UserEmail() {
160
  }
177
  }
161
 
178
 
162
  public UserEmail(
179
  public UserEmail(
163
    long id,
180
    long id,
164
    String emailTo,
181
    List<String> emailTo,
165
    String emailFrom,
182
    String emailFrom,
166
    String subject,
183
    String subject,
167
    String body,
184
    String body,
168
    String source,
185
    String source,
169
    String emailType,
186
    String emailType,
170
    boolean status,
187
    boolean status,
171
    long timestamp)
188
    long timestamp,
-
 
189
    List<String> cc,
-
 
190
    List<String> bcc)
172
  {
191
  {
173
    this();
192
    this();
174
    this.id = id;
193
    this.id = id;
175
    setIdIsSet(true);
194
    setIdIsSet(true);
176
    this.emailTo = emailTo;
195
    this.emailTo = emailTo;
Line 181... Line 200...
181
    this.emailType = emailType;
200
    this.emailType = emailType;
182
    this.status = status;
201
    this.status = status;
183
    setStatusIsSet(true);
202
    setStatusIsSet(true);
184
    this.timestamp = timestamp;
203
    this.timestamp = timestamp;
185
    setTimestampIsSet(true);
204
    setTimestampIsSet(true);
-
 
205
    this.cc = cc;
-
 
206
    this.bcc = bcc;
186
  }
207
  }
187
 
208
 
188
  /**
209
  /**
189
   * Performs a deep copy on <i>other</i>.
210
   * Performs a deep copy on <i>other</i>.
190
   */
211
   */
191
  public UserEmail(UserEmail other) {
212
  public UserEmail(UserEmail other) {
192
    __isset_bit_vector.clear();
213
    __isset_bit_vector.clear();
193
    __isset_bit_vector.or(other.__isset_bit_vector);
214
    __isset_bit_vector.or(other.__isset_bit_vector);
194
    this.id = other.id;
215
    this.id = other.id;
195
    if (other.isSetEmailTo()) {
216
    if (other.isSetEmailTo()) {
-
 
217
      List<String> __this__emailTo = new ArrayList<String>();
-
 
218
      for (String other_element : other.emailTo) {
-
 
219
        __this__emailTo.add(other_element);
-
 
220
      }
196
      this.emailTo = other.emailTo;
221
      this.emailTo = __this__emailTo;
197
    }
222
    }
198
    if (other.isSetEmailFrom()) {
223
    if (other.isSetEmailFrom()) {
199
      this.emailFrom = other.emailFrom;
224
      this.emailFrom = other.emailFrom;
200
    }
225
    }
201
    if (other.isSetSubject()) {
226
    if (other.isSetSubject()) {
Line 210... Line 235...
210
    if (other.isSetEmailType()) {
235
    if (other.isSetEmailType()) {
211
      this.emailType = other.emailType;
236
      this.emailType = other.emailType;
212
    }
237
    }
213
    this.status = other.status;
238
    this.status = other.status;
214
    this.timestamp = other.timestamp;
239
    this.timestamp = other.timestamp;
-
 
240
    if (other.isSetCc()) {
-
 
241
      List<String> __this__cc = new ArrayList<String>();
-
 
242
      for (String other_element : other.cc) {
-
 
243
        __this__cc.add(other_element);
-
 
244
      }
-
 
245
      this.cc = __this__cc;
-
 
246
    }
-
 
247
    if (other.isSetBcc()) {
-
 
248
      List<String> __this__bcc = new ArrayList<String>();
-
 
249
      for (String other_element : other.bcc) {
-
 
250
        __this__bcc.add(other_element);
-
 
251
      }
-
 
252
      this.bcc = __this__bcc;
-
 
253
    }
215
  }
254
  }
216
 
255
 
217
  public UserEmail deepCopy() {
256
  public UserEmail deepCopy() {
218
    return new UserEmail(this);
257
    return new UserEmail(this);
219
  }
258
  }
Line 230... Line 269...
230
    this.emailType = null;
269
    this.emailType = null;
231
    setStatusIsSet(false);
270
    setStatusIsSet(false);
232
    this.status = false;
271
    this.status = false;
233
    setTimestampIsSet(false);
272
    setTimestampIsSet(false);
234
    this.timestamp = 0;
273
    this.timestamp = 0;
-
 
274
    this.cc = null;
-
 
275
    this.bcc = null;
235
  }
276
  }
236
 
277
 
237
  public long getId() {
278
  public long getId() {
238
    return this.id;
279
    return this.id;
239
  }
280
  }
Line 254... Line 295...
254
 
295
 
255
  public void setIdIsSet(boolean value) {
296
  public void setIdIsSet(boolean value) {
256
    __isset_bit_vector.set(__ID_ISSET_ID, value);
297
    __isset_bit_vector.set(__ID_ISSET_ID, value);
257
  }
298
  }
258
 
299
 
-
 
300
  public int getEmailToSize() {
-
 
301
    return (this.emailTo == null) ? 0 : this.emailTo.size();
-
 
302
  }
-
 
303
 
-
 
304
  public java.util.Iterator<String> getEmailToIterator() {
-
 
305
    return (this.emailTo == null) ? null : this.emailTo.iterator();
-
 
306
  }
-
 
307
 
-
 
308
  public void addToEmailTo(String elem) {
-
 
309
    if (this.emailTo == null) {
-
 
310
      this.emailTo = new ArrayList<String>();
-
 
311
    }
-
 
312
    this.emailTo.add(elem);
-
 
313
  }
-
 
314
 
259
  public String getEmailTo() {
315
  public List<String> getEmailTo() {
260
    return this.emailTo;
316
    return this.emailTo;
261
  }
317
  }
262
 
318
 
263
  public void setEmailTo(String emailTo) {
319
  public void setEmailTo(List<String> emailTo) {
264
    this.emailTo = emailTo;
320
    this.emailTo = emailTo;
265
  }
321
  }
266
 
322
 
267
  public void unsetEmailTo() {
323
  public void unsetEmailTo() {
268
    this.emailTo = null;
324
    this.emailTo = null;
Line 436... Line 492...
436
 
492
 
437
  public void setTimestampIsSet(boolean value) {
493
  public void setTimestampIsSet(boolean value) {
438
    __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
494
    __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
439
  }
495
  }
440
 
496
 
-
 
497
  public int getCcSize() {
-
 
498
    return (this.cc == null) ? 0 : this.cc.size();
-
 
499
  }
-
 
500
 
-
 
501
  public java.util.Iterator<String> getCcIterator() {
-
 
502
    return (this.cc == null) ? null : this.cc.iterator();
-
 
503
  }
-
 
504
 
-
 
505
  public void addToCc(String elem) {
-
 
506
    if (this.cc == null) {
-
 
507
      this.cc = new ArrayList<String>();
-
 
508
    }
-
 
509
    this.cc.add(elem);
-
 
510
  }
-
 
511
 
-
 
512
  public List<String> getCc() {
-
 
513
    return this.cc;
-
 
514
  }
-
 
515
 
-
 
516
  public void setCc(List<String> cc) {
-
 
517
    this.cc = cc;
-
 
518
  }
-
 
519
 
-
 
520
  public void unsetCc() {
-
 
521
    this.cc = null;
-
 
522
  }
-
 
523
 
-
 
524
  /** Returns true if field cc is set (has been assigned a value) and false otherwise */
-
 
525
  public boolean isSetCc() {
-
 
526
    return this.cc != null;
-
 
527
  }
-
 
528
 
-
 
529
  public void setCcIsSet(boolean value) {
-
 
530
    if (!value) {
-
 
531
      this.cc = null;
-
 
532
    }
-
 
533
  }
-
 
534
 
-
 
535
  public int getBccSize() {
-
 
536
    return (this.bcc == null) ? 0 : this.bcc.size();
-
 
537
  }
-
 
538
 
-
 
539
  public java.util.Iterator<String> getBccIterator() {
-
 
540
    return (this.bcc == null) ? null : this.bcc.iterator();
-
 
541
  }
-
 
542
 
-
 
543
  public void addToBcc(String elem) {
-
 
544
    if (this.bcc == null) {
-
 
545
      this.bcc = new ArrayList<String>();
-
 
546
    }
-
 
547
    this.bcc.add(elem);
-
 
548
  }
-
 
549
 
-
 
550
  public List<String> getBcc() {
-
 
551
    return this.bcc;
-
 
552
  }
-
 
553
 
-
 
554
  public void setBcc(List<String> bcc) {
-
 
555
    this.bcc = bcc;
-
 
556
  }
-
 
557
 
-
 
558
  public void unsetBcc() {
-
 
559
    this.bcc = null;
-
 
560
  }
-
 
561
 
-
 
562
  /** Returns true if field bcc is set (has been assigned a value) and false otherwise */
-
 
563
  public boolean isSetBcc() {
-
 
564
    return this.bcc != null;
-
 
565
  }
-
 
566
 
-
 
567
  public void setBccIsSet(boolean value) {
-
 
568
    if (!value) {
-
 
569
      this.bcc = null;
-
 
570
    }
-
 
571
  }
-
 
572
 
441
  public void setFieldValue(_Fields field, Object value) {
573
  public void setFieldValue(_Fields field, Object value) {
442
    switch (field) {
574
    switch (field) {
443
    case ID:
575
    case ID:
444
      if (value == null) {
576
      if (value == null) {
445
        unsetId();
577
        unsetId();
Line 450... Line 582...
450
 
582
 
451
    case EMAIL_TO:
583
    case EMAIL_TO:
452
      if (value == null) {
584
      if (value == null) {
453
        unsetEmailTo();
585
        unsetEmailTo();
454
      } else {
586
      } else {
455
        setEmailTo((String)value);
587
        setEmailTo((List<String>)value);
456
      }
588
      }
457
      break;
589
      break;
458
 
590
 
459
    case EMAIL_FROM:
591
    case EMAIL_FROM:
460
      if (value == null) {
592
      if (value == null) {
Line 510... Line 642...
510
      } else {
642
      } else {
511
        setTimestamp((Long)value);
643
        setTimestamp((Long)value);
512
      }
644
      }
513
      break;
645
      break;
514
 
646
 
-
 
647
    case CC:
-
 
648
      if (value == null) {
-
 
649
        unsetCc();
-
 
650
      } else {
-
 
651
        setCc((List<String>)value);
-
 
652
      }
-
 
653
      break;
-
 
654
 
-
 
655
    case BCC:
-
 
656
      if (value == null) {
-
 
657
        unsetBcc();
-
 
658
      } else {
-
 
659
        setBcc((List<String>)value);
-
 
660
      }
-
 
661
      break;
-
 
662
 
515
    }
663
    }
516
  }
664
  }
517
 
665
 
518
  public Object getFieldValue(_Fields field) {
666
  public Object getFieldValue(_Fields field) {
519
    switch (field) {
667
    switch (field) {
Line 542... Line 690...
542
      return Boolean.valueOf(isStatus());
690
      return Boolean.valueOf(isStatus());
543
 
691
 
544
    case TIMESTAMP:
692
    case TIMESTAMP:
545
      return Long.valueOf(getTimestamp());
693
      return Long.valueOf(getTimestamp());
546
 
694
 
-
 
695
    case CC:
-
 
696
      return getCc();
-
 
697
 
-
 
698
    case BCC:
-
 
699
      return getBcc();
-
 
700
 
547
    }
701
    }
548
    throw new IllegalStateException();
702
    throw new IllegalStateException();
549
  }
703
  }
550
 
704
 
551
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
705
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 571... Line 725...
571
      return isSetEmailType();
725
      return isSetEmailType();
572
    case STATUS:
726
    case STATUS:
573
      return isSetStatus();
727
      return isSetStatus();
574
    case TIMESTAMP:
728
    case TIMESTAMP:
575
      return isSetTimestamp();
729
      return isSetTimestamp();
-
 
730
    case CC:
-
 
731
      return isSetCc();
-
 
732
    case BCC:
-
 
733
      return isSetBcc();
576
    }
734
    }
577
    throw new IllegalStateException();
735
    throw new IllegalStateException();
578
  }
736
  }
579
 
737
 
580
  @Override
738
  @Override
Line 669... Line 827...
669
        return false;
827
        return false;
670
      if (this.timestamp != that.timestamp)
828
      if (this.timestamp != that.timestamp)
671
        return false;
829
        return false;
672
    }
830
    }
673
 
831
 
-
 
832
    boolean this_present_cc = true && this.isSetCc();
-
 
833
    boolean that_present_cc = true && that.isSetCc();
-
 
834
    if (this_present_cc || that_present_cc) {
-
 
835
      if (!(this_present_cc && that_present_cc))
-
 
836
        return false;
-
 
837
      if (!this.cc.equals(that.cc))
-
 
838
        return false;
-
 
839
    }
-
 
840
 
-
 
841
    boolean this_present_bcc = true && this.isSetBcc();
-
 
842
    boolean that_present_bcc = true && that.isSetBcc();
-
 
843
    if (this_present_bcc || that_present_bcc) {
-
 
844
      if (!(this_present_bcc && that_present_bcc))
-
 
845
        return false;
-
 
846
      if (!this.bcc.equals(that.bcc))
-
 
847
        return false;
-
 
848
    }
-
 
849
 
674
    return true;
850
    return true;
675
  }
851
  }
676
 
852
 
677
  @Override
853
  @Override
678
  public int hashCode() {
854
  public int hashCode() {
Line 775... Line 951...
775
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
951
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
776
      if (lastComparison != 0) {
952
      if (lastComparison != 0) {
777
        return lastComparison;
953
        return lastComparison;
778
      }
954
      }
779
    }
955
    }
-
 
956
    lastComparison = Boolean.valueOf(isSetCc()).compareTo(typedOther.isSetCc());
-
 
957
    if (lastComparison != 0) {
-
 
958
      return lastComparison;
-
 
959
    }
-
 
960
    if (isSetCc()) {
-
 
961
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cc, typedOther.cc);
-
 
962
      if (lastComparison != 0) {
-
 
963
        return lastComparison;
-
 
964
      }
-
 
965
    }
-
 
966
    lastComparison = Boolean.valueOf(isSetBcc()).compareTo(typedOther.isSetBcc());
-
 
967
    if (lastComparison != 0) {
-
 
968
      return lastComparison;
-
 
969
    }
-
 
970
    if (isSetBcc()) {
-
 
971
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);
-
 
972
      if (lastComparison != 0) {
-
 
973
        return lastComparison;
-
 
974
      }
-
 
975
    }
780
    return 0;
976
    return 0;
781
  }
977
  }
782
 
978
 
783
  public _Fields fieldForId(int fieldId) {
979
  public _Fields fieldForId(int fieldId) {
784
    return _Fields.findByThriftId(fieldId);
980
    return _Fields.findByThriftId(fieldId);
Line 801... Line 997...
801
          } else { 
997
          } else { 
802
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
998
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
803
          }
999
          }
804
          break;
1000
          break;
805
        case 2: // EMAIL_TO
1001
        case 2: // EMAIL_TO
806
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1002
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
1003
            {
-
 
1004
              org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
-
 
1005
              this.emailTo = new ArrayList<String>(_list8.size);
-
 
1006
              for (int _i9 = 0; _i9 < _list8.size; ++_i9)
-
 
1007
              {
-
 
1008
                String _elem10; // required
807
            this.emailTo = iprot.readString();
1009
                _elem10 = iprot.readString();
-
 
1010
                this.emailTo.add(_elem10);
-
 
1011
              }
-
 
1012
              iprot.readListEnd();
-
 
1013
            }
808
          } else { 
1014
          } else { 
809
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1015
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
810
          }
1016
          }
811
          break;
1017
          break;
812
        case 3: // EMAIL_FROM
1018
        case 3: // EMAIL_FROM
Line 858... Line 1064...
858
            setTimestampIsSet(true);
1064
            setTimestampIsSet(true);
859
          } else { 
1065
          } else { 
860
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1066
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
861
          }
1067
          }
862
          break;
1068
          break;
-
 
1069
        case 10: // CC
-
 
1070
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
1071
            {
-
 
1072
              org.apache.thrift.protocol.TList _list11 = iprot.readListBegin();
-
 
1073
              this.cc = new ArrayList<String>(_list11.size);
-
 
1074
              for (int _i12 = 0; _i12 < _list11.size; ++_i12)
-
 
1075
              {
-
 
1076
                String _elem13; // required
-
 
1077
                _elem13 = iprot.readString();
-
 
1078
                this.cc.add(_elem13);
-
 
1079
              }
-
 
1080
              iprot.readListEnd();
-
 
1081
            }
-
 
1082
          } else { 
-
 
1083
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1084
          }
-
 
1085
          break;
-
 
1086
        case 11: // BCC
-
 
1087
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
1088
            {
-
 
1089
              org.apache.thrift.protocol.TList _list14 = iprot.readListBegin();
-
 
1090
              this.bcc = new ArrayList<String>(_list14.size);
-
 
1091
              for (int _i15 = 0; _i15 < _list14.size; ++_i15)
-
 
1092
              {
-
 
1093
                String _elem16; // required
-
 
1094
                _elem16 = iprot.readString();
-
 
1095
                this.bcc.add(_elem16);
-
 
1096
              }
-
 
1097
              iprot.readListEnd();
-
 
1098
            }
-
 
1099
          } else { 
-
 
1100
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1101
          }
-
 
1102
          break;
863
        default:
1103
        default:
864
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1104
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
865
      }
1105
      }
866
      iprot.readFieldEnd();
1106
      iprot.readFieldEnd();
867
    }
1107
    }
Line 876... Line 1116...
876
    oprot.writeFieldBegin(ID_FIELD_DESC);
1116
    oprot.writeFieldBegin(ID_FIELD_DESC);
877
    oprot.writeI64(this.id);
1117
    oprot.writeI64(this.id);
878
    oprot.writeFieldEnd();
1118
    oprot.writeFieldEnd();
879
    if (this.emailTo != null) {
1119
    if (this.emailTo != null) {
880
      oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
1120
      oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
-
 
1121
      {
-
 
1122
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.emailTo.size()));
-
 
1123
        for (String _iter17 : this.emailTo)
-
 
1124
        {
881
      oprot.writeString(this.emailTo);
1125
          oprot.writeString(_iter17);
-
 
1126
        }
-
 
1127
        oprot.writeListEnd();
-
 
1128
      }
882
      oprot.writeFieldEnd();
1129
      oprot.writeFieldEnd();
883
    }
1130
    }
884
    if (this.emailFrom != null) {
1131
    if (this.emailFrom != null) {
885
      oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
1132
      oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
886
      oprot.writeString(this.emailFrom);
1133
      oprot.writeString(this.emailFrom);
Line 910... Line 1157...
910
    oprot.writeBool(this.status);
1157
    oprot.writeBool(this.status);
911
    oprot.writeFieldEnd();
1158
    oprot.writeFieldEnd();
912
    oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
1159
    oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
913
    oprot.writeI64(this.timestamp);
1160
    oprot.writeI64(this.timestamp);
914
    oprot.writeFieldEnd();
1161
    oprot.writeFieldEnd();
-
 
1162
    if (this.cc != null) {
-
 
1163
      oprot.writeFieldBegin(CC_FIELD_DESC);
-
 
1164
      {
-
 
1165
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.cc.size()));
-
 
1166
        for (String _iter18 : this.cc)
-
 
1167
        {
-
 
1168
          oprot.writeString(_iter18);
-
 
1169
        }
-
 
1170
        oprot.writeListEnd();
-
 
1171
      }
-
 
1172
      oprot.writeFieldEnd();
-
 
1173
    }
-
 
1174
    if (this.bcc != null) {
-
 
1175
      oprot.writeFieldBegin(BCC_FIELD_DESC);
-
 
1176
      {
-
 
1177
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bcc.size()));
-
 
1178
        for (String _iter19 : this.bcc)
-
 
1179
        {
-
 
1180
          oprot.writeString(_iter19);
-
 
1181
        }
-
 
1182
        oprot.writeListEnd();
-
 
1183
      }
-
 
1184
      oprot.writeFieldEnd();
-
 
1185
    }
915
    oprot.writeFieldStop();
1186
    oprot.writeFieldStop();
916
    oprot.writeStructEnd();
1187
    oprot.writeStructEnd();
917
  }
1188
  }
918
 
1189
 
919
  @Override
1190
  @Override
Line 978... Line 1249...
978
    first = false;
1249
    first = false;
979
    if (!first) sb.append(", ");
1250
    if (!first) sb.append(", ");
980
    sb.append("timestamp:");
1251
    sb.append("timestamp:");
981
    sb.append(this.timestamp);
1252
    sb.append(this.timestamp);
982
    first = false;
1253
    first = false;
-
 
1254
    if (!first) sb.append(", ");
-
 
1255
    sb.append("cc:");
-
 
1256
    if (this.cc == null) {
-
 
1257
      sb.append("null");
-
 
1258
    } else {
-
 
1259
      sb.append(this.cc);
-
 
1260
    }
-
 
1261
    first = false;
-
 
1262
    if (!first) sb.append(", ");
-
 
1263
    sb.append("bcc:");
-
 
1264
    if (this.bcc == null) {
-
 
1265
      sb.append("null");
-
 
1266
    } else {
-
 
1267
      sb.append(this.bcc);
-
 
1268
    }
-
 
1269
    first = false;
983
    sb.append(")");
1270
    sb.append(")");
984
    return sb.toString();
1271
    return sb.toString();
985
  }
1272
  }
986
 
1273
 
987
  public void validate() throws org.apache.thrift.TException {
1274
  public void validate() throws org.apache.thrift.TException {