public class EmailMessage extends Object
Modifier and Type | Field and Description |
---|---|
private String |
_sender
Sender of the mail
|
private String |
_subject
Subject of the mail
|
private String |
_summary
Summary of the mail
|
Constructor and Description |
---|
EmailMessage()
Creates a empty email
|
EmailMessage(String subject,
String sender,
String summary)
Creates a new mail message
|
Modifier and Type | Method and Description |
---|---|
String |
getSender()
Get the sender of the mail
|
String |
getSubject()
Get the subject of the mail
|
String |
getSummary()
Get the summary of the mail
|
void |
setSender(String sender)
Set the sender of the mail to a new user
|
void |
setSubject(String subject)
Set the subject of the mail to a new value
|
void |
setSummary(String summary)
Set the content of the mail to a new summary
|
String |
toString() |
public EmailMessage()
public EmailMessage(String subject, String sender, String summary)
subject
- the subject of the mailsender
- the sender of the mailsummary
- the summary/body of the mailpublic void setSender(String sender)
sender
- the sender to setpublic String getSubject()
public void setSubject(String subject)
subject
- the subject to setpublic String getSummary()
public void setSummary(String summary)
summary
- the summary to set