EmailModel.java
package com.nilhcem.fakesmtp.model;
import java.util.Date;
/**
* A model representing a received email.
* <p>
* This object will be created and sent to observers by the {@code MailSaver} object.<br>
* It contains useful data such as the content of the email and its path in the file system.
* </p>
*
* @author Nilhcem
* @since 1.0
*/
public final class EmailModel {
private Date receivedDate;
private String from;
private String to;
private String subject;
private String emailStr;
private String filePath;
public Date getReceivedDate() {
return receivedDate;
}
public void setReceivedDate(Date receivedDate) {
this.receivedDate = receivedDate;
}
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 getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
public String getEmailStr() {
return emailStr;
}
public void setEmailStr(String emailStr) {
this.emailStr = emailStr;
}
public String getFilePath() {
return filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
}