Search in sources :

Example 1 with MessageType

use of com.cosylab.acs.maci.MessageType in project ACS by ACS-Community.

the class ClientProxyImpl method message.

/**
	 * @see si.ijs.maci.ClientOperations#message(short, String)
	 */
public void message(short type, String message) {
    try {
        MessageType msgType;
        if (type == Client.MSG_ERROR)
            msgType = MessageType.MSG_ERROR;
        else
            msgType = MessageType.MSG_INFORMATION;
        client.message(msgType, message);
    } catch (RemoteException re) {
    // noop.
    }
}
Also used : RemoteException(com.cosylab.acs.maci.RemoteException) MessageType(com.cosylab.acs.maci.MessageType)

Example 2 with MessageType

use of com.cosylab.acs.maci.MessageType in project ACS by ACS-Community.

the class ClientProxyImpl method taggedmessage.

/**
	 * @see si.ijs.maci.ClientOperations#taggedmessage(short, String)
	 */
public void taggedmessage(short type, short id, String message) {
    try {
        MessageType msgType;
        if (type == Client.MSG_ERROR)
            msgType = MessageType.MSG_ERROR;
        else
            msgType = MessageType.MSG_INFORMATION;
        client.taggedmessage(msgType, id, message);
    } catch (RemoteException re) {
    // noop.
    }
}
Also used : RemoteException(com.cosylab.acs.maci.RemoteException) MessageType(com.cosylab.acs.maci.MessageType)

Aggregations

MessageType (com.cosylab.acs.maci.MessageType)2 RemoteException (com.cosylab.acs.maci.RemoteException)2