Method Summary |
|
public void | dispose() Disposes of the ChatSession . |
public static ChatSession | forUserName(String userName) Factory method to create a new ChatSession for a user. |
public Message[] | getNewMessages() Retrieves new messages that have been posted to the server but which
were not previously retrieved. |
public String | getUserName() Returns the name of the user. |
public boolean | hasNewMessages() Determines if any new messages have been posted to the chat server. |
public void | pollServer() Contacts the chat server's web service and loads new messages. |
public void | postMessage(String content) Posts a message to the chat server. |