Class Chat

  • Direct Known Subclasses:
    ChatRoom, ChatSession

    public abstract class Chat
    extends Object
    An abstract chat class, which represents either a one-to-one chat session or a group chat session.
    See Also:
    ChatSession
    • Constructor Detail

      • Chat

        public Chat()
    • Method Detail

      • sendMessage

        public abstract SendTask<Message> sendMessage​(String message)
        Sends a message to the chat.
        Parameters:
        message - The message.
        Returns:
        The message, which has been sent.
      • sendMessage

        public abstract SendTask<Message> sendMessage​(Message message)
        Sends a message to the chat.
        Parameters:
        message - The message.
        Returns:
        The message, which has been sent.