Class EmailModel

java.lang.Object
com.nilhcem.fakesmtp.model.EmailModel

public final class EmailModel extends Object
A model representing a received email.

This object will be created and sent to observers by the MailSaver object.
It contains useful data such as the content of the email and its path in the file system.

Since:
1.0
Author:
Nilhcem
  • Constructor Details

    • EmailModel

      public EmailModel()
  • Method Details

    • getReceivedDate

      public Date getReceivedDate()
    • setReceivedDate

      public void setReceivedDate(Date receivedDate)
    • getFrom

      public String getFrom()
    • setFrom

      public void setFrom(String from)
    • getTo

      public String getTo()
    • setTo

      public void setTo(String to)
    • getSubject

      public String getSubject()
    • setSubject

      public void setSubject(String subject)
    • getEmailStr

      public String getEmailStr()
    • setEmailStr

      public void setEmailStr(String emailStr)
    • getFilePath

      public String getFilePath()
    • setFilePath

      public void setFilePath(String filePath)