org.botlibre.sdk
Interface LiveChatListener


public interface LiveChatListener

Listener interface for a LiveChatConnection. This gives asynchronous notification when a channel receives a message, or notice.


Method Summary
 void closed()
          Notification that the connection was closed.
 void error(java.lang.String message)
          An error message was received from the channel.
 void info(java.lang.String message)
          An informational message was received from the channel.
 void message(java.lang.String message)
          A user message was received from the channel.
 void updateUsers(java.lang.String usersCSV)
          The channels users changed (user joined, left, etc.) This contains a comma separated values (CSV) list of the current channel users.
 

Method Detail

message

void message(java.lang.String message)
A user message was received from the channel.


info

void info(java.lang.String message)
An informational message was received from the channel. Such as a new user joined, private request, etc.


error

void error(java.lang.String message)
An error message was received from the channel. This could be an access error, or message failure.


closed

void closed()
Notification that the connection was closed.


updateUsers

void updateUsers(java.lang.String usersCSV)
The channels users changed (user joined, left, etc.) This contains a comma separated values (CSV) list of the current channel users. It can be passed to the SDKConnection.getUsers() API to obtain the UserConfig info for the users.