Class
caplin.streamlink

ChatEvent

Provides information about updates to a chat subject.

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

Constructor Summary

Attributes Name and Description
caplin.streamlink.ChatEvent()

Method Summary

Attributes Name and Description
String getMessage()

Returns the chat message.

String getTime()

Returns the time when the chat event was raised.

caplin.streamlink.ChatEventType getUpdateType()

Returns the type of chat event that this event represents.

String getUser()

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

Methods inherited from class caplin.streamlink.DataEvent:
getSubject, isImage

Constructor Detail

caplin.streamlink.ChatEvent()

Method Detail

String 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.

String getTime()

Returns the time when the chat event was raised.

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

Returns
{String} The timestamp.

caplin.streamlink.ChatEventType getUpdateType()

Returns the type of chat event that this event represents.

Returns
{caplin.streamlink.ChatEventType} The event type.

String getUser()

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

Returns
{String} The username.