Interface IMessage

All Known Implementing Classes:
AMessage, BasicMessage, ModifiedMessage, TaskMessage

public interface IMessage
Definition of a message.
Author:
ActiveViam
  • Method Details Link icon

    • getId Link icon

      long getId()
      Gets the unique id of the message.
      Returns:
      the id
    • getTime Link icon

      long getTime()
      Gets the timestamp of the message.
      Returns:
      the time as a UNIX timestamp in (ms)
    • getSender Link icon

      String getSender()
      Gets the name of the entity that sends the message.
      Returns:
      the sender
    • getRecipients Link icon

      Collection<String> getRecipients()
      Gets the recipients of the messages.
      Returns:
      the list of recipients
    • getTitle Link icon

      String getTitle()
      Gets the title of the message.
      Returns:
      the title
    • getLevel Link icon

      MessageLevel getLevel()
      Gets the level of the message.
      Returns:
      the level
    • getCategory Link icon

      String getCategory()
      Gets the category of the message.
      Returns:
      the category
    • getContent Link icon

      Object getContent()
      Gets the content of the message.
      Returns:
      the content
    • isRead Link icon

      boolean isRead()
      Gets if the message is read.
      Returns:
      true if the message is marked as read
    • answer Link icon

      void answer(String recipient, Object response)
      Answers the message.
      Parameters:
      recipient - user answering the message
      response - the content of the answer