package mde.lego;

/**
 * This interface must be implemented by
 * IR protocol clients that wish to receive
 * asynchronous messages.
 */
public interface MessageListener {
    /**
     * Called when a message has been received
     * over the IR interface. The message contained
     * in 'msg' has already been stripped of the
     * header, two's complement, and check-sum.
     */
    public void messageReceived(byte[] msg);
}