content: /*
   * LunaticSMTP
   * Copyright (C) 2016  Anton Larionov
   *
   * This program is free software: you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation, either version 3 of the License, or
   * (at your option) any later version.
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU General Public License for more details.
   *
   * You should have received a copy of the GNU General Public License
   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
   */
  
  package com.gitlab.anlar.lunatic.dto;
  
  import javax.mail.Header;
  import java.util.Date;
  import java.util.List;
  
  public class Email {
      private String content;
      private Date date;
  
      private String subject;
      private String from;
      private String to;
      private String cc;
  
      private List<Header> headers;
      private List<EmailPart> parts;
  
      private String filePath;
  
      public Email() {
          // do nothing
      }
  
      public Email(String content, Date date, String subject,
                   String from, String to, String cc,
                   List<Header> headers, List<EmailPart> parts) {
  
          this.content = content;
          this.date = date;
          this.subject = subject;
          this.from = from;
          this.to = to;
          this.cc = cc;
          this.headers = headers;
          this.parts = parts;
      }
  
      public String getContent() {
          return content;
      }
  
      public void setContent(String content) {
          this.content = content;
      }
  
      public Date getDate() {
          return date;
      }
  
      public void setDate(Date date) {
          this.date = date;
      }
  
      public String getSubject() {
          return subject;
      }
  
      public void setSubject(String subject) {
          this.subject = subject;
      }
  
      public String getFrom() {
          return from;
      }
  
      public void setFrom(String from) {
          this.from = from;
      }
  
      public String getTo() {
          return to;
      }
  
      public void setTo(String to) {
          this.to = to;
      }
  
      public String getCc() {
          return cc;
      }
  
      public void setCc(String cc) {
          this.cc = cc;
      }
  
      public List<Header> getHeaders() {
          return headers;
      }
  
      public void setHeaders(List<Header> headers) {
          this.headers = headers;
      }
  
      public List<EmailPart> getParts() {
          return parts;
      }
  
      public void setParts(List<EmailPart> parts) {
          this.parts = parts;
      }
  
      public String getFilePath() {
          return filePath;
      }
  
      public void setFilePath(String filePath) {
          this.filePath = filePath;
      }
  }
  