001/*
002 * Stallion Core: A Modern Web Framework
003 *
004 * Copyright (C) 2015 - 2016 Stallion Software LLC.
005 *
006 * This program is free software: you can redistribute it and/or modify it under the terms of the
007 * GNU General Public License as published by the Free Software Foundation, either version 2 of
008 * the License, or (at your option) any later version. This program is distributed in the hope that
009 * it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
011 * License for more details. You should have received a copy of the GNU General Public License
012 * along with this program.  If not, see <http://www.gnu.org/licenses/gpl-2.0.html>.
013 *
014 *
015 *
016 */
017
018package io.stallion.email;
019
020import io.stallion.dataAccess.ModelBase;
021
022import javax.persistence.Column;
023import java.time.ZonedDateTime;
024
025
026public class EmailLog extends ModelBase {
027    private String toEmails;
028    private String fromEmail;
029    private String from;
030    private String to;
031    private String subject;
032    private String bodySummary;
033    private String replyTo;
034    private String type;
035    private String uniqueKey;
036    private ZonedDateTime createdAt;
037
038    @Column
039    public String getToEmails() {
040        return toEmails;
041    }
042
043    public EmailLog setToEmails(String toEmails) {
044        this.toEmails = toEmails;
045        return this;
046    }
047
048    @Column
049    public String getFromEmail() {
050        return fromEmail;
051    }
052
053    public EmailLog setFromEmail(String fromEmail) {
054        this.fromEmail = fromEmail;
055        return this;
056    }
057
058    @Column
059    public String getFrom() {
060        return from;
061    }
062
063    public EmailLog setFrom(String from) {
064        this.from = from;
065        return this;
066    }
067
068    @Column
069    public String getTo() {
070        return to;
071    }
072
073    public EmailLog setTo(String to) {
074        this.to = to;
075        return this;
076    }
077
078    @Column
079    public String getSubject() {
080        return subject;
081    }
082
083    public EmailLog setSubject(String subject) {
084        this.subject = subject;
085        return this;
086    }
087
088    @Column
089    public String getBodySummary() {
090        return bodySummary;
091    }
092
093    public EmailLog setBodySummary(String bodySummary) {
094        this.bodySummary = bodySummary;
095        return this;
096    }
097
098    @Column
099    public String getReplyTo() {
100        return replyTo;
101    }
102
103    public EmailLog setReplyTo(String replyTo) {
104        this.replyTo = replyTo;
105        return this;
106    }
107
108    @Column
109    public String getType() {
110        return type;
111    }
112
113    public EmailLog setType(String type) {
114        this.type = type;
115        return this;
116    }
117
118    @Column
119    public String getUniqueKey() {
120        return uniqueKey;
121    }
122
123    public EmailLog setUniqueKey(String uniqueKey) {
124        this.uniqueKey = uniqueKey;
125        return this;
126    }
127
128    @Column
129    public ZonedDateTime getCreatedAt() {
130        return createdAt;
131    }
132
133    public EmailLog setCreatedAt(ZonedDateTime createdAt) {
134        this.createdAt = createdAt;
135        return this;
136    }
137}