Subversion Repositories SmartDukaan

Rev

Rev 1013 | Rev 1422 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1013 Rev 1395
Line 30... Line 30...
30
    /**
30
    /**
31
     * For closing the open session in sqlalchemy
31
     * For closing the open session in sqlalchemy
32
     */
32
     */
33
    public void closeSession() throws TException;
33
    public void closeSession() throws TException;
34
 
34
 
-
 
35
    public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, TException;
-
 
36
 
35
    public void sendMail(Mail mail) throws HelperServiceException, TException;
37
    public void sendMail(Mail mail) throws HelperServiceException, TException;
36
 
38
 
37
    public void sendText(TextMessage message) throws HelperServiceException, TException;
39
    public void sendText(TextMessage message) throws HelperServiceException, TException;
38
 
40
 
39
    public void addMessage(Message message) throws HelperServiceException, TException;
41
    public void addMessage(Message message) throws HelperServiceException, TException;
Line 125... Line 127...
125
      result.read(iprot_);
127
      result.read(iprot_);
126
      iprot_.readMessageEnd();
128
      iprot_.readMessageEnd();
127
      return;
129
      return;
128
    }
130
    }
129
 
131
 
-
 
132
    public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, TException
-
 
133
    {
-
 
134
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType);
-
 
135
      recv_saveUserEmailForSending();
-
 
136
    }
-
 
137
 
-
 
138
    public void send_saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws TException
-
 
139
    {
-
 
140
      oprot_.writeMessageBegin(new TMessage("saveUserEmailForSending", TMessageType.CALL, seqid_));
-
 
141
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
-
 
142
      args.emailTo = emailTo;
-
 
143
      args.emailFrom = emailFrom;
-
 
144
      args.subject = subject;
-
 
145
      args.body = body;
-
 
146
      args.source = source;
-
 
147
      args.emailType = emailType;
-
 
148
      args.write(oprot_);
-
 
149
      oprot_.writeMessageEnd();
-
 
150
      oprot_.getTransport().flush();
-
 
151
    }
-
 
152
 
-
 
153
    public void recv_saveUserEmailForSending() throws HelperServiceException, TException
-
 
154
    {
-
 
155
      TMessage msg = iprot_.readMessageBegin();
-
 
156
      if (msg.type == TMessageType.EXCEPTION) {
-
 
157
        TApplicationException x = TApplicationException.read(iprot_);
-
 
158
        iprot_.readMessageEnd();
-
 
159
        throw x;
-
 
160
      }
-
 
161
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
-
 
162
      result.read(iprot_);
-
 
163
      iprot_.readMessageEnd();
-
 
164
      if (result.se != null) {
-
 
165
        throw result.se;
-
 
166
      }
-
 
167
      return;
-
 
168
    }
-
 
169
 
130
    public void sendMail(Mail mail) throws HelperServiceException, TException
170
    public void sendMail(Mail mail) throws HelperServiceException, TException
131
    {
171
    {
132
      send_sendMail(mail);
172
      send_sendMail(mail);
133
      recv_sendMail();
173
      recv_sendMail();
134
    }
174
    }
Line 524... Line 564...
524
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
564
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
525
    public Processor(Iface iface)
565
    public Processor(Iface iface)
526
    {
566
    {
527
      iface_ = iface;
567
      iface_ = iface;
528
      processMap_.put("closeSession", new closeSession());
568
      processMap_.put("closeSession", new closeSession());
-
 
569
      processMap_.put("saveUserEmailForSending", new saveUserEmailForSending());
529
      processMap_.put("sendMail", new sendMail());
570
      processMap_.put("sendMail", new sendMail());
530
      processMap_.put("sendText", new sendText());
571
      processMap_.put("sendText", new sendText());
531
      processMap_.put("addMessage", new addMessage());
572
      processMap_.put("addMessage", new addMessage());
532
      processMap_.put("updateMessage", new updateMessage());
573
      processMap_.put("updateMessage", new updateMessage());
533
      processMap_.put("getMessage", new getMessage());
574
      processMap_.put("getMessage", new getMessage());
Line 578... Line 619...
578
        oprot.getTransport().flush();
619
        oprot.getTransport().flush();
579
      }
620
      }
580
 
621
 
581
    }
622
    }
582
 
623
 
-
 
624
    private class saveUserEmailForSending implements ProcessFunction {
-
 
625
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
626
      {
-
 
627
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
-
 
628
        args.read(iprot);
-
 
629
        iprot.readMessageEnd();
-
 
630
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
-
 
631
        try {
-
 
632
          iface_.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType);
-
 
633
        } catch (HelperServiceException se) {
-
 
634
          result.se = se;
-
 
635
        } catch (Throwable th) {
-
 
636
          LOGGER.error("Internal error processing saveUserEmailForSending", th);
-
 
637
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing saveUserEmailForSending");
-
 
638
          oprot.writeMessageBegin(new TMessage("saveUserEmailForSending", TMessageType.EXCEPTION, seqid));
-
 
639
          x.write(oprot);
-
 
640
          oprot.writeMessageEnd();
-
 
641
          oprot.getTransport().flush();
-
 
642
          return;
-
 
643
        }
-
 
644
        oprot.writeMessageBegin(new TMessage("saveUserEmailForSending", TMessageType.REPLY, seqid));
-
 
645
        result.write(oprot);
-
 
646
        oprot.writeMessageEnd();
-
 
647
        oprot.getTransport().flush();
-
 
648
      }
-
 
649
 
-
 
650
    }
-
 
651
 
583
    private class sendMail implements ProcessFunction {
652
    private class sendMail implements ProcessFunction {
584
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
653
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
585
      {
654
      {
586
        sendMail_args args = new sendMail_args();
655
        sendMail_args args = new sendMail_args();
587
        args.read(iprot);
656
        args.read(iprot);
Line 1268... Line 1337...
1268
      sb.append(")");
1337
      sb.append(")");
1269
      return sb.toString();
1338
      return sb.toString();
1270
    }
1339
    }
1271
 
1340
 
1272
    public void validate() throws TException {
1341
    public void validate() throws TException {
-
 
1342
      // check for required fields
-
 
1343
    }
-
 
1344
 
-
 
1345
  }
-
 
1346
 
-
 
1347
  public static class saveUserEmailForSending_args implements TBase<saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable, Comparable<saveUserEmailForSending_args>   {
-
 
1348
    private static final TStruct STRUCT_DESC = new TStruct("saveUserEmailForSending_args");
-
 
1349
 
-
 
1350
    private static final TField EMAIL_TO_FIELD_DESC = new TField("emailTo", TType.STRING, (short)1);
-
 
1351
    private static final TField EMAIL_FROM_FIELD_DESC = new TField("emailFrom", TType.STRING, (short)2);
-
 
1352
    private static final TField SUBJECT_FIELD_DESC = new TField("subject", TType.STRING, (short)3);
-
 
1353
    private static final TField BODY_FIELD_DESC = new TField("body", TType.STRING, (short)4);
-
 
1354
    private static final TField SOURCE_FIELD_DESC = new TField("source", TType.STRING, (short)5);
-
 
1355
    private static final TField EMAIL_TYPE_FIELD_DESC = new TField("emailType", TType.STRING, (short)6);
-
 
1356
 
-
 
1357
    private String emailTo;
-
 
1358
    private String emailFrom;
-
 
1359
    private String subject;
-
 
1360
    private String body;
-
 
1361
    private String source;
-
 
1362
    private String emailType;
-
 
1363
 
-
 
1364
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
1365
    public enum _Fields implements TFieldIdEnum {
-
 
1366
      EMAIL_TO((short)1, "emailTo"),
-
 
1367
      EMAIL_FROM((short)2, "emailFrom"),
-
 
1368
      SUBJECT((short)3, "subject"),
-
 
1369
      BODY((short)4, "body"),
-
 
1370
      SOURCE((short)5, "source"),
-
 
1371
      EMAIL_TYPE((short)6, "emailType");
-
 
1372
 
-
 
1373
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1374
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
1375
 
-
 
1376
      static {
-
 
1377
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
1378
          byId.put((int)field._thriftId, field);
-
 
1379
          byName.put(field.getFieldName(), field);
-
 
1380
        }
-
 
1381
      }
-
 
1382
 
-
 
1383
      /**
-
 
1384
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
1385
       */
-
 
1386
      public static _Fields findByThriftId(int fieldId) {
-
 
1387
        return byId.get(fieldId);
-
 
1388
      }
-
 
1389
 
-
 
1390
      /**
-
 
1391
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
1392
       * if it is not found.
-
 
1393
       */
-
 
1394
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
1395
        _Fields fields = findByThriftId(fieldId);
-
 
1396
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
1397
        return fields;
-
 
1398
      }
-
 
1399
 
-
 
1400
      /**
-
 
1401
       * Find the _Fields constant that matches name, or null if its not found.
-
 
1402
       */
-
 
1403
      public static _Fields findByName(String name) {
-
 
1404
        return byName.get(name);
-
 
1405
      }
-
 
1406
 
-
 
1407
      private final short _thriftId;
-
 
1408
      private final String _fieldName;
-
 
1409
 
-
 
1410
      _Fields(short thriftId, String fieldName) {
-
 
1411
        _thriftId = thriftId;
-
 
1412
        _fieldName = fieldName;
-
 
1413
      }
-
 
1414
 
-
 
1415
      public short getThriftFieldId() {
-
 
1416
        return _thriftId;
-
 
1417
      }
-
 
1418
 
-
 
1419
      public String getFieldName() {
-
 
1420
        return _fieldName;
-
 
1421
      }
-
 
1422
    }
-
 
1423
 
-
 
1424
    // isset id assignments
-
 
1425
 
-
 
1426
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
1427
      put(_Fields.EMAIL_TO, new FieldMetaData("emailTo", TFieldRequirementType.DEFAULT, 
-
 
1428
          new FieldValueMetaData(TType.STRING)));
-
 
1429
      put(_Fields.EMAIL_FROM, new FieldMetaData("emailFrom", TFieldRequirementType.DEFAULT, 
-
 
1430
          new FieldValueMetaData(TType.STRING)));
-
 
1431
      put(_Fields.SUBJECT, new FieldMetaData("subject", TFieldRequirementType.DEFAULT, 
-
 
1432
          new FieldValueMetaData(TType.STRING)));
-
 
1433
      put(_Fields.BODY, new FieldMetaData("body", TFieldRequirementType.DEFAULT, 
-
 
1434
          new FieldValueMetaData(TType.STRING)));
-
 
1435
      put(_Fields.SOURCE, new FieldMetaData("source", TFieldRequirementType.DEFAULT, 
-
 
1436
          new FieldValueMetaData(TType.STRING)));
-
 
1437
      put(_Fields.EMAIL_TYPE, new FieldMetaData("emailType", TFieldRequirementType.DEFAULT, 
-
 
1438
          new FieldValueMetaData(TType.STRING)));
-
 
1439
    }});
-
 
1440
 
-
 
1441
    static {
-
 
1442
      FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
-
 
1443
    }
-
 
1444
 
-
 
1445
    public saveUserEmailForSending_args() {
-
 
1446
    }
-
 
1447
 
-
 
1448
    public saveUserEmailForSending_args(
-
 
1449
      String emailTo,
-
 
1450
      String emailFrom,
-
 
1451
      String subject,
-
 
1452
      String body,
-
 
1453
      String source,
-
 
1454
      String emailType)
-
 
1455
    {
-
 
1456
      this();
-
 
1457
      this.emailTo = emailTo;
-
 
1458
      this.emailFrom = emailFrom;
-
 
1459
      this.subject = subject;
-
 
1460
      this.body = body;
-
 
1461
      this.source = source;
-
 
1462
      this.emailType = emailType;
-
 
1463
    }
-
 
1464
 
-
 
1465
    /**
-
 
1466
     * Performs a deep copy on <i>other</i>.
-
 
1467
     */
-
 
1468
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
-
 
1469
      if (other.isSetEmailTo()) {
-
 
1470
        this.emailTo = other.emailTo;
-
 
1471
      }
-
 
1472
      if (other.isSetEmailFrom()) {
-
 
1473
        this.emailFrom = other.emailFrom;
-
 
1474
      }
-
 
1475
      if (other.isSetSubject()) {
-
 
1476
        this.subject = other.subject;
-
 
1477
      }
-
 
1478
      if (other.isSetBody()) {
-
 
1479
        this.body = other.body;
-
 
1480
      }
-
 
1481
      if (other.isSetSource()) {
-
 
1482
        this.source = other.source;
-
 
1483
      }
-
 
1484
      if (other.isSetEmailType()) {
-
 
1485
        this.emailType = other.emailType;
-
 
1486
      }
-
 
1487
    }
-
 
1488
 
-
 
1489
    public saveUserEmailForSending_args deepCopy() {
-
 
1490
      return new saveUserEmailForSending_args(this);
-
 
1491
    }
-
 
1492
 
-
 
1493
    @Deprecated
-
 
1494
    public saveUserEmailForSending_args clone() {
-
 
1495
      return new saveUserEmailForSending_args(this);
-
 
1496
    }
-
 
1497
 
-
 
1498
    public String getEmailTo() {
-
 
1499
      return this.emailTo;
-
 
1500
    }
-
 
1501
 
-
 
1502
    public saveUserEmailForSending_args setEmailTo(String emailTo) {
-
 
1503
      this.emailTo = emailTo;
-
 
1504
      return this;
-
 
1505
    }
-
 
1506
 
-
 
1507
    public void unsetEmailTo() {
-
 
1508
      this.emailTo = null;
-
 
1509
    }
-
 
1510
 
-
 
1511
    /** Returns true if field emailTo is set (has been asigned a value) and false otherwise */
-
 
1512
    public boolean isSetEmailTo() {
-
 
1513
      return this.emailTo != null;
-
 
1514
    }
-
 
1515
 
-
 
1516
    public void setEmailToIsSet(boolean value) {
-
 
1517
      if (!value) {
-
 
1518
        this.emailTo = null;
-
 
1519
      }
-
 
1520
    }
-
 
1521
 
-
 
1522
    public String getEmailFrom() {
-
 
1523
      return this.emailFrom;
-
 
1524
    }
-
 
1525
 
-
 
1526
    public saveUserEmailForSending_args setEmailFrom(String emailFrom) {
-
 
1527
      this.emailFrom = emailFrom;
-
 
1528
      return this;
-
 
1529
    }
-
 
1530
 
-
 
1531
    public void unsetEmailFrom() {
-
 
1532
      this.emailFrom = null;
-
 
1533
    }
-
 
1534
 
-
 
1535
    /** Returns true if field emailFrom is set (has been asigned a value) and false otherwise */
-
 
1536
    public boolean isSetEmailFrom() {
-
 
1537
      return this.emailFrom != null;
-
 
1538
    }
-
 
1539
 
-
 
1540
    public void setEmailFromIsSet(boolean value) {
-
 
1541
      if (!value) {
-
 
1542
        this.emailFrom = null;
-
 
1543
      }
-
 
1544
    }
-
 
1545
 
-
 
1546
    public String getSubject() {
-
 
1547
      return this.subject;
-
 
1548
    }
-
 
1549
 
-
 
1550
    public saveUserEmailForSending_args setSubject(String subject) {
-
 
1551
      this.subject = subject;
-
 
1552
      return this;
-
 
1553
    }
-
 
1554
 
-
 
1555
    public void unsetSubject() {
-
 
1556
      this.subject = null;
-
 
1557
    }
-
 
1558
 
-
 
1559
    /** Returns true if field subject is set (has been asigned a value) and false otherwise */
-
 
1560
    public boolean isSetSubject() {
-
 
1561
      return this.subject != null;
-
 
1562
    }
-
 
1563
 
-
 
1564
    public void setSubjectIsSet(boolean value) {
-
 
1565
      if (!value) {
-
 
1566
        this.subject = null;
-
 
1567
      }
-
 
1568
    }
-
 
1569
 
-
 
1570
    public String getBody() {
-
 
1571
      return this.body;
-
 
1572
    }
-
 
1573
 
-
 
1574
    public saveUserEmailForSending_args setBody(String body) {
-
 
1575
      this.body = body;
-
 
1576
      return this;
-
 
1577
    }
-
 
1578
 
-
 
1579
    public void unsetBody() {
-
 
1580
      this.body = null;
-
 
1581
    }
-
 
1582
 
-
 
1583
    /** Returns true if field body is set (has been asigned a value) and false otherwise */
-
 
1584
    public boolean isSetBody() {
-
 
1585
      return this.body != null;
-
 
1586
    }
-
 
1587
 
-
 
1588
    public void setBodyIsSet(boolean value) {
-
 
1589
      if (!value) {
-
 
1590
        this.body = null;
-
 
1591
      }
-
 
1592
    }
-
 
1593
 
-
 
1594
    public String getSource() {
-
 
1595
      return this.source;
-
 
1596
    }
-
 
1597
 
-
 
1598
    public saveUserEmailForSending_args setSource(String source) {
-
 
1599
      this.source = source;
-
 
1600
      return this;
-
 
1601
    }
-
 
1602
 
-
 
1603
    public void unsetSource() {
-
 
1604
      this.source = null;
-
 
1605
    }
-
 
1606
 
-
 
1607
    /** Returns true if field source is set (has been asigned a value) and false otherwise */
-
 
1608
    public boolean isSetSource() {
-
 
1609
      return this.source != null;
-
 
1610
    }
-
 
1611
 
-
 
1612
    public void setSourceIsSet(boolean value) {
-
 
1613
      if (!value) {
-
 
1614
        this.source = null;
-
 
1615
      }
-
 
1616
    }
-
 
1617
 
-
 
1618
    public String getEmailType() {
-
 
1619
      return this.emailType;
-
 
1620
    }
-
 
1621
 
-
 
1622
    public saveUserEmailForSending_args setEmailType(String emailType) {
-
 
1623
      this.emailType = emailType;
-
 
1624
      return this;
-
 
1625
    }
-
 
1626
 
-
 
1627
    public void unsetEmailType() {
-
 
1628
      this.emailType = null;
-
 
1629
    }
-
 
1630
 
-
 
1631
    /** Returns true if field emailType is set (has been asigned a value) and false otherwise */
-
 
1632
    public boolean isSetEmailType() {
-
 
1633
      return this.emailType != null;
-
 
1634
    }
-
 
1635
 
-
 
1636
    public void setEmailTypeIsSet(boolean value) {
-
 
1637
      if (!value) {
-
 
1638
        this.emailType = null;
-
 
1639
      }
-
 
1640
    }
-
 
1641
 
-
 
1642
    public void setFieldValue(_Fields field, Object value) {
-
 
1643
      switch (field) {
-
 
1644
      case EMAIL_TO:
-
 
1645
        if (value == null) {
-
 
1646
          unsetEmailTo();
-
 
1647
        } else {
-
 
1648
          setEmailTo((String)value);
-
 
1649
        }
-
 
1650
        break;
-
 
1651
 
-
 
1652
      case EMAIL_FROM:
-
 
1653
        if (value == null) {
-
 
1654
          unsetEmailFrom();
-
 
1655
        } else {
-
 
1656
          setEmailFrom((String)value);
-
 
1657
        }
-
 
1658
        break;
-
 
1659
 
-
 
1660
      case SUBJECT:
-
 
1661
        if (value == null) {
-
 
1662
          unsetSubject();
-
 
1663
        } else {
-
 
1664
          setSubject((String)value);
-
 
1665
        }
-
 
1666
        break;
-
 
1667
 
-
 
1668
      case BODY:
-
 
1669
        if (value == null) {
-
 
1670
          unsetBody();
-
 
1671
        } else {
-
 
1672
          setBody((String)value);
-
 
1673
        }
-
 
1674
        break;
-
 
1675
 
-
 
1676
      case SOURCE:
-
 
1677
        if (value == null) {
-
 
1678
          unsetSource();
-
 
1679
        } else {
-
 
1680
          setSource((String)value);
-
 
1681
        }
-
 
1682
        break;
-
 
1683
 
-
 
1684
      case EMAIL_TYPE:
-
 
1685
        if (value == null) {
-
 
1686
          unsetEmailType();
-
 
1687
        } else {
-
 
1688
          setEmailType((String)value);
-
 
1689
        }
-
 
1690
        break;
-
 
1691
 
-
 
1692
      }
-
 
1693
    }
-
 
1694
 
-
 
1695
    public void setFieldValue(int fieldID, Object value) {
-
 
1696
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1697
    }
-
 
1698
 
-
 
1699
    public Object getFieldValue(_Fields field) {
-
 
1700
      switch (field) {
-
 
1701
      case EMAIL_TO:
-
 
1702
        return getEmailTo();
-
 
1703
 
-
 
1704
      case EMAIL_FROM:
-
 
1705
        return getEmailFrom();
-
 
1706
 
-
 
1707
      case SUBJECT:
-
 
1708
        return getSubject();
-
 
1709
 
-
 
1710
      case BODY:
-
 
1711
        return getBody();
-
 
1712
 
-
 
1713
      case SOURCE:
-
 
1714
        return getSource();
-
 
1715
 
-
 
1716
      case EMAIL_TYPE:
-
 
1717
        return getEmailType();
-
 
1718
 
-
 
1719
      }
-
 
1720
      throw new IllegalStateException();
-
 
1721
    }
-
 
1722
 
-
 
1723
    public Object getFieldValue(int fieldId) {
-
 
1724
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1725
    }
-
 
1726
 
-
 
1727
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
1728
    public boolean isSet(_Fields field) {
-
 
1729
      switch (field) {
-
 
1730
      case EMAIL_TO:
-
 
1731
        return isSetEmailTo();
-
 
1732
      case EMAIL_FROM:
-
 
1733
        return isSetEmailFrom();
-
 
1734
      case SUBJECT:
-
 
1735
        return isSetSubject();
-
 
1736
      case BODY:
-
 
1737
        return isSetBody();
-
 
1738
      case SOURCE:
-
 
1739
        return isSetSource();
-
 
1740
      case EMAIL_TYPE:
-
 
1741
        return isSetEmailType();
-
 
1742
      }
-
 
1743
      throw new IllegalStateException();
-
 
1744
    }
-
 
1745
 
-
 
1746
    public boolean isSet(int fieldID) {
-
 
1747
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1748
    }
-
 
1749
 
-
 
1750
    @Override
-
 
1751
    public boolean equals(Object that) {
-
 
1752
      if (that == null)
-
 
1753
        return false;
-
 
1754
      if (that instanceof saveUserEmailForSending_args)
-
 
1755
        return this.equals((saveUserEmailForSending_args)that);
-
 
1756
      return false;
-
 
1757
    }
-
 
1758
 
-
 
1759
    public boolean equals(saveUserEmailForSending_args that) {
-
 
1760
      if (that == null)
-
 
1761
        return false;
-
 
1762
 
-
 
1763
      boolean this_present_emailTo = true && this.isSetEmailTo();
-
 
1764
      boolean that_present_emailTo = true && that.isSetEmailTo();
-
 
1765
      if (this_present_emailTo || that_present_emailTo) {
-
 
1766
        if (!(this_present_emailTo && that_present_emailTo))
-
 
1767
          return false;
-
 
1768
        if (!this.emailTo.equals(that.emailTo))
-
 
1769
          return false;
-
 
1770
      }
-
 
1771
 
-
 
1772
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
-
 
1773
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
-
 
1774
      if (this_present_emailFrom || that_present_emailFrom) {
-
 
1775
        if (!(this_present_emailFrom && that_present_emailFrom))
-
 
1776
          return false;
-
 
1777
        if (!this.emailFrom.equals(that.emailFrom))
-
 
1778
          return false;
-
 
1779
      }
-
 
1780
 
-
 
1781
      boolean this_present_subject = true && this.isSetSubject();
-
 
1782
      boolean that_present_subject = true && that.isSetSubject();
-
 
1783
      if (this_present_subject || that_present_subject) {
-
 
1784
        if (!(this_present_subject && that_present_subject))
-
 
1785
          return false;
-
 
1786
        if (!this.subject.equals(that.subject))
-
 
1787
          return false;
-
 
1788
      }
-
 
1789
 
-
 
1790
      boolean this_present_body = true && this.isSetBody();
-
 
1791
      boolean that_present_body = true && that.isSetBody();
-
 
1792
      if (this_present_body || that_present_body) {
-
 
1793
        if (!(this_present_body && that_present_body))
-
 
1794
          return false;
-
 
1795
        if (!this.body.equals(that.body))
-
 
1796
          return false;
-
 
1797
      }
-
 
1798
 
-
 
1799
      boolean this_present_source = true && this.isSetSource();
-
 
1800
      boolean that_present_source = true && that.isSetSource();
-
 
1801
      if (this_present_source || that_present_source) {
-
 
1802
        if (!(this_present_source && that_present_source))
-
 
1803
          return false;
-
 
1804
        if (!this.source.equals(that.source))
-
 
1805
          return false;
-
 
1806
      }
-
 
1807
 
-
 
1808
      boolean this_present_emailType = true && this.isSetEmailType();
-
 
1809
      boolean that_present_emailType = true && that.isSetEmailType();
-
 
1810
      if (this_present_emailType || that_present_emailType) {
-
 
1811
        if (!(this_present_emailType && that_present_emailType))
-
 
1812
          return false;
-
 
1813
        if (!this.emailType.equals(that.emailType))
-
 
1814
          return false;
-
 
1815
      }
-
 
1816
 
-
 
1817
      return true;
-
 
1818
    }
-
 
1819
 
-
 
1820
    @Override
-
 
1821
    public int hashCode() {
-
 
1822
      return 0;
-
 
1823
    }
-
 
1824
 
-
 
1825
    public int compareTo(saveUserEmailForSending_args other) {
-
 
1826
      if (!getClass().equals(other.getClass())) {
-
 
1827
        return getClass().getName().compareTo(other.getClass().getName());
-
 
1828
      }
-
 
1829
 
-
 
1830
      int lastComparison = 0;
-
 
1831
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
-
 
1832
 
-
 
1833
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(isSetEmailTo());
-
 
1834
      if (lastComparison != 0) {
-
 
1835
        return lastComparison;
-
 
1836
      }
-
 
1837
      lastComparison = TBaseHelper.compareTo(emailTo, typedOther.emailTo);
-
 
1838
      if (lastComparison != 0) {
-
 
1839
        return lastComparison;
-
 
1840
      }
-
 
1841
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(isSetEmailFrom());
-
 
1842
      if (lastComparison != 0) {
-
 
1843
        return lastComparison;
-
 
1844
      }
-
 
1845
      lastComparison = TBaseHelper.compareTo(emailFrom, typedOther.emailFrom);
-
 
1846
      if (lastComparison != 0) {
-
 
1847
        return lastComparison;
-
 
1848
      }
-
 
1849
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(isSetSubject());
-
 
1850
      if (lastComparison != 0) {
-
 
1851
        return lastComparison;
-
 
1852
      }
-
 
1853
      lastComparison = TBaseHelper.compareTo(subject, typedOther.subject);
-
 
1854
      if (lastComparison != 0) {
-
 
1855
        return lastComparison;
-
 
1856
      }
-
 
1857
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(isSetBody());
-
 
1858
      if (lastComparison != 0) {
-
 
1859
        return lastComparison;
-
 
1860
      }
-
 
1861
      lastComparison = TBaseHelper.compareTo(body, typedOther.body);
-
 
1862
      if (lastComparison != 0) {
-
 
1863
        return lastComparison;
-
 
1864
      }
-
 
1865
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(isSetSource());
-
 
1866
      if (lastComparison != 0) {
-
 
1867
        return lastComparison;
-
 
1868
      }
-
 
1869
      lastComparison = TBaseHelper.compareTo(source, typedOther.source);
-
 
1870
      if (lastComparison != 0) {
-
 
1871
        return lastComparison;
-
 
1872
      }
-
 
1873
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(isSetEmailType());
-
 
1874
      if (lastComparison != 0) {
-
 
1875
        return lastComparison;
-
 
1876
      }
-
 
1877
      lastComparison = TBaseHelper.compareTo(emailType, typedOther.emailType);
-
 
1878
      if (lastComparison != 0) {
-
 
1879
        return lastComparison;
-
 
1880
      }
-
 
1881
      return 0;
-
 
1882
    }
-
 
1883
 
-
 
1884
    public void read(TProtocol iprot) throws TException {
-
 
1885
      TField field;
-
 
1886
      iprot.readStructBegin();
-
 
1887
      while (true)
-
 
1888
      {
-
 
1889
        field = iprot.readFieldBegin();
-
 
1890
        if (field.type == TType.STOP) { 
-
 
1891
          break;
-
 
1892
        }
-
 
1893
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1894
        if (fieldId == null) {
-
 
1895
          TProtocolUtil.skip(iprot, field.type);
-
 
1896
        } else {
-
 
1897
          switch (fieldId) {
-
 
1898
            case EMAIL_TO:
-
 
1899
              if (field.type == TType.STRING) {
-
 
1900
                this.emailTo = iprot.readString();
-
 
1901
              } else { 
-
 
1902
                TProtocolUtil.skip(iprot, field.type);
-
 
1903
              }
-
 
1904
              break;
-
 
1905
            case EMAIL_FROM:
-
 
1906
              if (field.type == TType.STRING) {
-
 
1907
                this.emailFrom = iprot.readString();
-
 
1908
              } else { 
-
 
1909
                TProtocolUtil.skip(iprot, field.type);
-
 
1910
              }
-
 
1911
              break;
-
 
1912
            case SUBJECT:
-
 
1913
              if (field.type == TType.STRING) {
-
 
1914
                this.subject = iprot.readString();
-
 
1915
              } else { 
-
 
1916
                TProtocolUtil.skip(iprot, field.type);
-
 
1917
              }
-
 
1918
              break;
-
 
1919
            case BODY:
-
 
1920
              if (field.type == TType.STRING) {
-
 
1921
                this.body = iprot.readString();
-
 
1922
              } else { 
-
 
1923
                TProtocolUtil.skip(iprot, field.type);
-
 
1924
              }
-
 
1925
              break;
-
 
1926
            case SOURCE:
-
 
1927
              if (field.type == TType.STRING) {
-
 
1928
                this.source = iprot.readString();
-
 
1929
              } else { 
-
 
1930
                TProtocolUtil.skip(iprot, field.type);
-
 
1931
              }
-
 
1932
              break;
-
 
1933
            case EMAIL_TYPE:
-
 
1934
              if (field.type == TType.STRING) {
-
 
1935
                this.emailType = iprot.readString();
-
 
1936
              } else { 
-
 
1937
                TProtocolUtil.skip(iprot, field.type);
-
 
1938
              }
-
 
1939
              break;
-
 
1940
          }
-
 
1941
          iprot.readFieldEnd();
-
 
1942
        }
-
 
1943
      }
-
 
1944
      iprot.readStructEnd();
-
 
1945
      validate();
-
 
1946
    }
-
 
1947
 
-
 
1948
    public void write(TProtocol oprot) throws TException {
-
 
1949
      validate();
-
 
1950
 
-
 
1951
      oprot.writeStructBegin(STRUCT_DESC);
-
 
1952
      if (this.emailTo != null) {
-
 
1953
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
-
 
1954
        oprot.writeString(this.emailTo);
-
 
1955
        oprot.writeFieldEnd();
-
 
1956
      }
-
 
1957
      if (this.emailFrom != null) {
-
 
1958
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
-
 
1959
        oprot.writeString(this.emailFrom);
-
 
1960
        oprot.writeFieldEnd();
-
 
1961
      }
-
 
1962
      if (this.subject != null) {
-
 
1963
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
-
 
1964
        oprot.writeString(this.subject);
-
 
1965
        oprot.writeFieldEnd();
-
 
1966
      }
-
 
1967
      if (this.body != null) {
-
 
1968
        oprot.writeFieldBegin(BODY_FIELD_DESC);
-
 
1969
        oprot.writeString(this.body);
-
 
1970
        oprot.writeFieldEnd();
-
 
1971
      }
-
 
1972
      if (this.source != null) {
-
 
1973
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
1974
        oprot.writeString(this.source);
-
 
1975
        oprot.writeFieldEnd();
-
 
1976
      }
-
 
1977
      if (this.emailType != null) {
-
 
1978
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
-
 
1979
        oprot.writeString(this.emailType);
-
 
1980
        oprot.writeFieldEnd();
-
 
1981
      }
-
 
1982
      oprot.writeFieldStop();
-
 
1983
      oprot.writeStructEnd();
-
 
1984
    }
-
 
1985
 
-
 
1986
    @Override
-
 
1987
    public String toString() {
-
 
1988
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
-
 
1989
      boolean first = true;
-
 
1990
 
-
 
1991
      sb.append("emailTo:");
-
 
1992
      if (this.emailTo == null) {
-
 
1993
        sb.append("null");
-
 
1994
      } else {
-
 
1995
        sb.append(this.emailTo);
-
 
1996
      }
-
 
1997
      first = false;
-
 
1998
      if (!first) sb.append(", ");
-
 
1999
      sb.append("emailFrom:");
-
 
2000
      if (this.emailFrom == null) {
-
 
2001
        sb.append("null");
-
 
2002
      } else {
-
 
2003
        sb.append(this.emailFrom);
-
 
2004
      }
-
 
2005
      first = false;
-
 
2006
      if (!first) sb.append(", ");
-
 
2007
      sb.append("subject:");
-
 
2008
      if (this.subject == null) {
-
 
2009
        sb.append("null");
-
 
2010
      } else {
-
 
2011
        sb.append(this.subject);
-
 
2012
      }
-
 
2013
      first = false;
-
 
2014
      if (!first) sb.append(", ");
-
 
2015
      sb.append("body:");
-
 
2016
      if (this.body == null) {
-
 
2017
        sb.append("null");
-
 
2018
      } else {
-
 
2019
        sb.append(this.body);
-
 
2020
      }
-
 
2021
      first = false;
-
 
2022
      if (!first) sb.append(", ");
-
 
2023
      sb.append("source:");
-
 
2024
      if (this.source == null) {
-
 
2025
        sb.append("null");
-
 
2026
      } else {
-
 
2027
        sb.append(this.source);
-
 
2028
      }
-
 
2029
      first = false;
-
 
2030
      if (!first) sb.append(", ");
-
 
2031
      sb.append("emailType:");
-
 
2032
      if (this.emailType == null) {
-
 
2033
        sb.append("null");
-
 
2034
      } else {
-
 
2035
        sb.append(this.emailType);
-
 
2036
      }
-
 
2037
      first = false;
-
 
2038
      sb.append(")");
-
 
2039
      return sb.toString();
-
 
2040
    }
-
 
2041
 
-
 
2042
    public void validate() throws TException {
-
 
2043
      // check for required fields
-
 
2044
    }
-
 
2045
 
-
 
2046
  }
-
 
2047
 
-
 
2048
  public static class saveUserEmailForSending_result implements TBase<saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable, Comparable<saveUserEmailForSending_result>   {
-
 
2049
    private static final TStruct STRUCT_DESC = new TStruct("saveUserEmailForSending_result");
-
 
2050
 
-
 
2051
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
-
 
2052
 
-
 
2053
    private HelperServiceException se;
-
 
2054
 
-
 
2055
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
2056
    public enum _Fields implements TFieldIdEnum {
-
 
2057
      SE((short)1, "se");
-
 
2058
 
-
 
2059
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2060
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
2061
 
-
 
2062
      static {
-
 
2063
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
2064
          byId.put((int)field._thriftId, field);
-
 
2065
          byName.put(field.getFieldName(), field);
-
 
2066
        }
-
 
2067
      }
-
 
2068
 
-
 
2069
      /**
-
 
2070
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
2071
       */
-
 
2072
      public static _Fields findByThriftId(int fieldId) {
-
 
2073
        return byId.get(fieldId);
-
 
2074
      }
-
 
2075
 
-
 
2076
      /**
-
 
2077
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
2078
       * if it is not found.
-
 
2079
       */
-
 
2080
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
2081
        _Fields fields = findByThriftId(fieldId);
-
 
2082
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
2083
        return fields;
-
 
2084
      }
-
 
2085
 
-
 
2086
      /**
-
 
2087
       * Find the _Fields constant that matches name, or null if its not found.
-
 
2088
       */
-
 
2089
      public static _Fields findByName(String name) {
-
 
2090
        return byName.get(name);
-
 
2091
      }
-
 
2092
 
-
 
2093
      private final short _thriftId;
-
 
2094
      private final String _fieldName;
-
 
2095
 
-
 
2096
      _Fields(short thriftId, String fieldName) {
-
 
2097
        _thriftId = thriftId;
-
 
2098
        _fieldName = fieldName;
-
 
2099
      }
-
 
2100
 
-
 
2101
      public short getThriftFieldId() {
-
 
2102
        return _thriftId;
-
 
2103
      }
-
 
2104
 
-
 
2105
      public String getFieldName() {
-
 
2106
        return _fieldName;
-
 
2107
      }
-
 
2108
    }
-
 
2109
 
-
 
2110
    // isset id assignments
-
 
2111
 
-
 
2112
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
2113
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
2114
          new FieldValueMetaData(TType.STRUCT)));
-
 
2115
    }});
-
 
2116
 
-
 
2117
    static {
-
 
2118
      FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
-
 
2119
    }
-
 
2120
 
-
 
2121
    public saveUserEmailForSending_result() {
-
 
2122
    }
-
 
2123
 
-
 
2124
    public saveUserEmailForSending_result(
-
 
2125
      HelperServiceException se)
-
 
2126
    {
-
 
2127
      this();
-
 
2128
      this.se = se;
-
 
2129
    }
-
 
2130
 
-
 
2131
    /**
-
 
2132
     * Performs a deep copy on <i>other</i>.
-
 
2133
     */
-
 
2134
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
-
 
2135
      if (other.isSetSe()) {
-
 
2136
        this.se = new HelperServiceException(other.se);
-
 
2137
      }
-
 
2138
    }
-
 
2139
 
-
 
2140
    public saveUserEmailForSending_result deepCopy() {
-
 
2141
      return new saveUserEmailForSending_result(this);
-
 
2142
    }
-
 
2143
 
-
 
2144
    @Deprecated
-
 
2145
    public saveUserEmailForSending_result clone() {
-
 
2146
      return new saveUserEmailForSending_result(this);
-
 
2147
    }
-
 
2148
 
-
 
2149
    public HelperServiceException getSe() {
-
 
2150
      return this.se;
-
 
2151
    }
-
 
2152
 
-
 
2153
    public saveUserEmailForSending_result setSe(HelperServiceException se) {
-
 
2154
      this.se = se;
-
 
2155
      return this;
-
 
2156
    }
-
 
2157
 
-
 
2158
    public void unsetSe() {
-
 
2159
      this.se = null;
-
 
2160
    }
-
 
2161
 
-
 
2162
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
-
 
2163
    public boolean isSetSe() {
-
 
2164
      return this.se != null;
-
 
2165
    }
-
 
2166
 
-
 
2167
    public void setSeIsSet(boolean value) {
-
 
2168
      if (!value) {
-
 
2169
        this.se = null;
-
 
2170
      }
-
 
2171
    }
-
 
2172
 
-
 
2173
    public void setFieldValue(_Fields field, Object value) {
-
 
2174
      switch (field) {
-
 
2175
      case SE:
-
 
2176
        if (value == null) {
-
 
2177
          unsetSe();
-
 
2178
        } else {
-
 
2179
          setSe((HelperServiceException)value);
-
 
2180
        }
-
 
2181
        break;
-
 
2182
 
-
 
2183
      }
-
 
2184
    }
-
 
2185
 
-
 
2186
    public void setFieldValue(int fieldID, Object value) {
-
 
2187
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2188
    }
-
 
2189
 
-
 
2190
    public Object getFieldValue(_Fields field) {
-
 
2191
      switch (field) {
-
 
2192
      case SE:
-
 
2193
        return getSe();
-
 
2194
 
-
 
2195
      }
-
 
2196
      throw new IllegalStateException();
-
 
2197
    }
-
 
2198
 
-
 
2199
    public Object getFieldValue(int fieldId) {
-
 
2200
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2201
    }
-
 
2202
 
-
 
2203
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
2204
    public boolean isSet(_Fields field) {
-
 
2205
      switch (field) {
-
 
2206
      case SE:
-
 
2207
        return isSetSe();
-
 
2208
      }
-
 
2209
      throw new IllegalStateException();
-
 
2210
    }
-
 
2211
 
-
 
2212
    public boolean isSet(int fieldID) {
-
 
2213
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2214
    }
-
 
2215
 
-
 
2216
    @Override
-
 
2217
    public boolean equals(Object that) {
-
 
2218
      if (that == null)
-
 
2219
        return false;
-
 
2220
      if (that instanceof saveUserEmailForSending_result)
-
 
2221
        return this.equals((saveUserEmailForSending_result)that);
-
 
2222
      return false;
-
 
2223
    }
-
 
2224
 
-
 
2225
    public boolean equals(saveUserEmailForSending_result that) {
-
 
2226
      if (that == null)
-
 
2227
        return false;
-
 
2228
 
-
 
2229
      boolean this_present_se = true && this.isSetSe();
-
 
2230
      boolean that_present_se = true && that.isSetSe();
-
 
2231
      if (this_present_se || that_present_se) {
-
 
2232
        if (!(this_present_se && that_present_se))
-
 
2233
          return false;
-
 
2234
        if (!this.se.equals(that.se))
-
 
2235
          return false;
-
 
2236
      }
-
 
2237
 
-
 
2238
      return true;
-
 
2239
    }
-
 
2240
 
-
 
2241
    @Override
-
 
2242
    public int hashCode() {
-
 
2243
      return 0;
-
 
2244
    }
-
 
2245
 
-
 
2246
    public int compareTo(saveUserEmailForSending_result other) {
-
 
2247
      if (!getClass().equals(other.getClass())) {
-
 
2248
        return getClass().getName().compareTo(other.getClass().getName());
-
 
2249
      }
-
 
2250
 
-
 
2251
      int lastComparison = 0;
-
 
2252
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
-
 
2253
 
-
 
2254
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
-
 
2255
      if (lastComparison != 0) {
-
 
2256
        return lastComparison;
-
 
2257
      }
-
 
2258
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
-
 
2259
      if (lastComparison != 0) {
-
 
2260
        return lastComparison;
-
 
2261
      }
-
 
2262
      return 0;
-
 
2263
    }
-
 
2264
 
-
 
2265
    public void read(TProtocol iprot) throws TException {
-
 
2266
      TField field;
-
 
2267
      iprot.readStructBegin();
-
 
2268
      while (true)
-
 
2269
      {
-
 
2270
        field = iprot.readFieldBegin();
-
 
2271
        if (field.type == TType.STOP) { 
-
 
2272
          break;
-
 
2273
        }
-
 
2274
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2275
        if (fieldId == null) {
-
 
2276
          TProtocolUtil.skip(iprot, field.type);
-
 
2277
        } else {
-
 
2278
          switch (fieldId) {
-
 
2279
            case SE:
-
 
2280
              if (field.type == TType.STRUCT) {
-
 
2281
                this.se = new HelperServiceException();
-
 
2282
                this.se.read(iprot);
-
 
2283
              } else { 
-
 
2284
                TProtocolUtil.skip(iprot, field.type);
-
 
2285
              }
-
 
2286
              break;
-
 
2287
          }
-
 
2288
          iprot.readFieldEnd();
-
 
2289
        }
-
 
2290
      }
-
 
2291
      iprot.readStructEnd();
-
 
2292
      validate();
-
 
2293
    }
-
 
2294
 
-
 
2295
    public void write(TProtocol oprot) throws TException {
-
 
2296
      oprot.writeStructBegin(STRUCT_DESC);
-
 
2297
 
-
 
2298
      if (this.isSetSe()) {
-
 
2299
        oprot.writeFieldBegin(SE_FIELD_DESC);
-
 
2300
        this.se.write(oprot);
-
 
2301
        oprot.writeFieldEnd();
-
 
2302
      }
-
 
2303
      oprot.writeFieldStop();
-
 
2304
      oprot.writeStructEnd();
-
 
2305
    }
-
 
2306
 
-
 
2307
    @Override
-
 
2308
    public String toString() {
-
 
2309
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
-
 
2310
      boolean first = true;
-
 
2311
 
-
 
2312
      sb.append("se:");
-
 
2313
      if (this.se == null) {
-
 
2314
        sb.append("null");
-
 
2315
      } else {
-
 
2316
        sb.append(this.se);
-
 
2317
      }
-
 
2318
      first = false;
-
 
2319
      sb.append(")");
-
 
2320
      return sb.toString();
-
 
2321
    }
-
 
2322
 
-
 
2323
    public void validate() throws TException {
1273
      // check for required fields
2324
      // check for required fields
1274
    }
2325
    }
1275
 
2326
 
1276
  }
2327
  }
1277
 
2328