diff --git a/src/main/src/org/bdware/server/action/ReplyUtil.java b/src/main/src/org/bdware/server/action/ReplyUtil.java new file mode 100644 index 0000000..87416b7 --- /dev/null +++ b/src/main/src/org/bdware/server/action/ReplyUtil.java @@ -0,0 +1,15 @@ +package org.bdware.server.action; + +import org.bdware.sc.conn.ResultCallback; + +import java.util.HashMap; +import java.util.Map; + +public class ReplyUtil { + public static void simpleReply(ResultCallback cb, String action, Object data) { + Map ret = new HashMap<>(); + ret.put("action", action); + ret.put("data", data); + cb.onResult(ret); + } +} \ No newline at end of file