org.nukesoft.bot2.commlib
Interface CommLibCallback

All Known Implementing Classes:
CommPort

public interface CommLibCallback

The CommLibCallback interface provides the event callbacks that communications libraries should use when receiving network generated events. These callbacks are used to signal to the bot core that data must be processed.

Author:
Ryan Michela
See Also:
CommLib

Method Summary
 void handleError(String error)
          Accepts an incomming network error.
 void handleIM(IM message)
          Accepts an incomming message.
 void handleWarn(String screenName)
          Accepts an incomming warning.
 

Method Detail

handleIM

public void handleIM(IM message)
Accepts an incomming message. The message body must be plain text without any formatting.

Parameters:
message -

handleError

public void handleError(String error)
Accepts an incomming network error.


handleWarn

public void handleWarn(String screenName)
Accepts an incomming warning.

Parameters:
screenName - The screen name that did the warning.