Package com.caplin.streamlink
Interface ChatEvent
- All Superinterfaces:
DataEvent
Provides information about updates to a chat subject.
The ChatEvent
is provided in an onChatUpdate
callback to a SubscriptionListener
.
-
Method Summary
Methods inherited from interface com.caplin.streamlink.DataEvent
getSubject, isImage
-
Method Details
-
getUpdateType
ChatEventType getUpdateType()Returns the type of chat event that this event represents.
- Returns:
- The event type.
-
getUser
String getUser()Returns the username of the user who generated this chat event.
- Returns:
- The username.
-
getTime
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
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.
-