View Javadoc
1   package com.nilhcem.fakesmtp.model;
2   
3   import java.util.Date;
4   
5   /**
6    * A model representing a received email.
7    * <p>
8    * This object will be created and sent to observers by the {@code MailSaver} object.<br>
9    * It contains useful data such as the content of the email and its path in the file system.
10   * </p>
11   *
12   * @author Nilhcem
13   * @since 1.0
14   */
15  public final class EmailModel {
16  
17  	private Date receivedDate;
18  	private String from;
19  	private String to;
20  	private String subject;
21  	private String emailStr;
22  	private String filePath;
23  
24  	public Date getReceivedDate() {
25  		return receivedDate;
26  	}
27  	public void setReceivedDate(Date receivedDate) {
28  		this.receivedDate = receivedDate;
29  	}
30  
31  	public String getFrom() {
32  		return from;
33  	}
34  	public void setFrom(String from) {
35  		this.from = from;
36  	}
37  
38  	public String getTo() {
39  		return to;
40  	}
41  	public void setTo(String to) {
42  		this.to = to;
43  	}
44  
45  	public String getSubject() {
46  		return subject;
47  	}
48  	public void setSubject(String subject) {
49  		this.subject = subject;
50  	}
51  
52  	public String getEmailStr() {
53  		return emailStr;
54  	}
55  	public void setEmailStr(String emailStr) {
56  		this.emailStr = emailStr;
57  	}
58  
59  	public String getFilePath() {
60  		return filePath;
61  	}
62  	public void setFilePath(String filePath) {
63  		this.filePath = filePath;
64  	}
65  }