overhauled actions

This commit is contained in:
Stephan Richter
2020-11-20 00:03:58 +01:00
parent c21d0fbb8b
commit e7a6349c7c
16 changed files with 29 additions and 53 deletions

View File

@@ -1,6 +1,5 @@
package de.srsoftware.web4rail.actions;
import java.io.IOException;
import java.util.HashMap;
import org.json.JSONObject;
@@ -18,7 +17,7 @@ public class TriggerContact extends Action {
private Contact contact = null;
@Override
public boolean fire(Context context) throws IOException {
public boolean fire(Context context) {
if (isSet(contact)) return contact.trigger(200);
return false;
}