This commit is contained in:
Redkale
2020-08-06 16:33:49 +08:00
parent 1f27d5f3e3
commit e3a8c2d392

View File

@@ -35,6 +35,14 @@ public class WebSocketAction implements Serializable {
this.attach = attach;
}
public String findAttach(String name) {
return attach == null ? null : attach.get(name);
}
public String findAttach(String name, String defvalue) {
return attach == null ? defvalue : attach.getOrDefault(name, defvalue);
}
public String getAction() {
return action;
}