started major refactoring

This commit is contained in:
Stephan Richter
2020-12-01 11:20:35 +01:00
parent 614600aacd
commit 72db5da58f
42 changed files with 387 additions and 353 deletions

View File

@@ -32,7 +32,7 @@ public class TriggerContact extends Action {
@Override
public Action load(JSONObject json) {
super.load(json);
String contactId = json.getString(CONTACT);
Id contactId = Id.from(json,CONTACT);
if (isSet(contactId)) contact = Contact.get(contactId);
return this;
}
@@ -60,7 +60,7 @@ public class TriggerContact extends Action {
@Override
protected Object update(HashMap<String, String> params) {
LOG.debug("update: {}",params);
String contactId = params.get(CONTACT);
Id contactId = Id.from(params,CONTACT);
if (isSet(contactId)) contact = Contact.get(contactId);
return properties(params);
}