Interface ChatEvent

  • All Superinterfaces:
    DataEvent

    public interface ChatEvent
    extends DataEvent

    Provides information about updates to a chat subject.

    The ChatEvent is provided in an onChatUpdate callback to a SubscriptionListener.

    • Method Detail

      • getUpdateType

        ChatEventType getUpdateType()

        Returns the type of chat event that this event represents.

        Returns:
        The event type.
      • getUser

        java.lang.String getUser()

        Returns the username of the user who generated this chat event.

        Returns:
        The username.
      • getTime

        java.lang.String getTime()

        Returns the time when the chat event was raised.

        The time stamp is in the format HH:MM:SS.

        Returns:
        The timestamp.
      • getMessage

        java.lang.String getMessage()

        Returns the chat message.

        This method returns null for all events events apart from ChatEventType.MESSAGE.

        Returns:
        The chat message if the chat event type is ChatEventType.MESSAGE, otherwise null.