Search in sources :

Example 1 with ActionData

use of mage.remote.ActionData in project mage by magefree.

the class CallbackClientImpl method appendJsonEvent.

private ActionData appendJsonEvent(String name, UUID gameId, Object value) {
    Session session = SessionHandler.getSession();
    if (session.isJsonLogActive()) {
        ActionData actionData = new ActionData(name, gameId);
        actionData.value = value;
        session.appendJsonLog(actionData);
        return actionData;
    }
    return null;
}
Also used : ActionData(mage.remote.ActionData) Session(mage.remote.Session)

Aggregations

ActionData (mage.remote.ActionData)1 Session (mage.remote.Session)1