public class MessageDTO extends Entity
| Constructor and Description |
|---|
MessageDTO()
Constructor needed to parse as JSON
|
MessageDTO(String from,
String subject,
LocalDateTime sentDate,
boolean important,
boolean seen)
Constructor for a message
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFrom() |
LocalDateTime |
getSentDate() |
String |
getSubject() |
boolean |
isImportant() |
boolean |
isSeen() |
public MessageDTO()
public MessageDTO(String from, String subject, LocalDateTime sentDate, boolean important, boolean seen)
from - the mail address of the sendersubject - subject of the messagessentDate - the time the mail was sentimportant - is message from important senderseen - is message seenpublic String getFrom()
public String getSubject()
public LocalDateTime getSentDate()
public boolean isImportant()
public boolean isSeen()
Copyright © 2018. All rights reserved.