Package com.caplin.streamlink
Interface ChatEvent
-
- All Superinterfaces:
DataEvent
public interface ChatEvent extends DataEvent
Provides information about updates to a chat subject.
The
ChatEvent
is provided in anonChatUpdate
callback to aSubscriptionListener
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getMessage()
Returns the chat message.java.lang.String
getTime()
Returns the time when the chat event was raised.ChatEventType
getUpdateType()
Returns the type of chat event that this event represents.java.lang.String
getUser()
Returns the username of the user who generated this chat event.-
Methods inherited from interface com.caplin.streamlink.DataEvent
getSubject, isImage
-
-
-
-
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.
-
-