Provides information about updates to a chat subject.
The ChatEvent
is provided in an onChatUpdate
callback to a caplin.streamlink.SubscriptionListener.
Attributes | Name and Description |
---|---|
|
caplin.streamlink.ChatEvent()
|
Attributes | Name and Description |
---|---|
|
void
getMessage()
* Returns the chat message. |
|
void
getTime()
* Returns the time when the chat event was raised. |
|
void
getUpdateType()
* Returns the type of chat event that this event represents. |
|
void
getUser()
* Returns the username of the user who generated this chat event. |
►
caplin.streamlink.ChatEvent()
►
void
getMessage()
*
Returns the chat message.
* *This method returns null for all events events apart from * caplin.streamlink.ChatEventType.MESSAGE.
* @returns {String} The chat message if the chat event type is caplin.streamlink.ChatEventType.MESSAGE, otherwise null.
►
void
getTime()
*
Returns the time when the chat event was raised.
* *The time stamp is in the format HH:MM:SS.
* @returns {String} The timestamp.
►
void
getUpdateType()
*
Returns the type of chat event that this event represents.
* @returns {caplin.streamlink.ChatEventType} The event type.
►
void
getUser()
*
Returns the username of the user who generated this chat event.
* @returns {String} The username.