class SetCallbackAction extends RobotAction {

    @Override
    public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>}
}

        if (request.getNettyRequest() instanceof FullHttpRequest) {
            RobotCallbackPojo input = getRequestBody(request.getNettyRequest(), RobotCallbackPojo.class);
            if(!StringUtil.isNullOrEmpty(input.getUrl())) {
                if(!input.getUrl().equals(robot.getCallback()) && robot.getState() != 1) {
                    robot = robot.toBuilder().setCallback(input.getUrl()).setState(1).build();
                    messagesStore.addRobot(robot);
                }
                setResponseContent(RestResult.ok(), response);
            } else {
                setResponseContent(RestResult.resultOf(ErrorCode.INVALID_PARAMETER), response);
            }

        }
        return true;
    
<methods>public non-sealed void <init>() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) <variables>protected static final Logger LOG,protected cn.wildfirechat.proto.WFCMessage.Robot robot