Class ChatMessage


  • public class ChatMessage
    extends java.lang.Object
    Provides the text of a chat message and the properties associated with the message.
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns:
        Message id
      • getTime

        public java.util.Date getTime()
        Returns:
        Time of this message creation
      • getMessageContent

        public java.lang.String getMessageContent()
        Returns:
        Text of this message
      • getSender

        public Participant getSender()
        Returns:
        Sender of this message
      • isPrivate

        public boolean isPrivate()
        Returns:
        Indication as to whether this is a private message.
      • getRecipient

        public Participant getRecipient()
        Returns:
        Recipient of this message
      • getStatus

        public ChatMessage.MessageStatus getStatus()
        Returns:
        Returns status (sending/sent/unsent/undefined/error) of this message.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object