Package com.qfs.snl.messages
Interface IMessage
- All Known Implementing Classes:
AMessage
,BasicMessage
,ModifiedMessage
,TaskMessage
public interface IMessage
Definition of a message.
- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Answers the message.Gets the category of the message.Gets the content of the message.long
getId()
Gets the unique id of the message.getLevel()
Gets the level of the message.Gets the recipients of the messages.Gets the name of the entity that sends the message.long
getTime()
Gets the timestamp of the message.getTitle()
Gets the title of the message.boolean
isRead()
Gets if the message is read.
-
Method Details
-
getId
long getId()Gets the unique id of the message.- Returns:
- the id
-
getTime
long getTime()Gets the timestamp of the message.- Returns:
- the time as a UNIX timestamp in (ms)
-
getSender
String getSender()Gets the name of the entity that sends the message.- Returns:
- the sender
-
getRecipients
Collection<String> getRecipients()Gets the recipients of the messages.- Returns:
- the list of recipients
-
getTitle
String getTitle()Gets the title of the message.- Returns:
- the title
-
getLevel
MessageLevel getLevel()Gets the level of the message.- Returns:
- the level
-
getCategory
String getCategory()Gets the category of the message.- Returns:
- the category
-
getContent
Object getContent()Gets the content of the message.- Returns:
- the content
-
isRead
boolean isRead()Gets if the message is read.- Returns:
- true if the message is marked as read
-
answer
Answers the message.- Parameters:
recipient
- user answering the messageresponse
- the content of the answer
-