public void logic(ILogicProxyAccessService argo,IExtendDat aModelAccessService datamodal){ Object input =datamodal.getParam(RequestParam.ACTION PARAM); Map<String,String> map = null; if(input != null && input instanceof Map<?,?>){ map =(Map<String,String>)input; clearData(datamodal,map);}
时间: 2023-03-07 11:24:11 浏览: 118
ArgoUML-0.24.zip_Argo UML_ArgoU_argoUML pudn_argouml_www.argo-sc
&& input instanceof Map){ map = (Map<String,String>)input; } if(map!=null && map.containsKey("action")){ String actionKey = map.get("action"); switch (actionKey){ case "sendMsg": String msg = map.get("msg"); argo.sendMessage(msg); break; case "getMsg": String msg = argo.getMessage(); datamodal.setParam(ResponseParam.MESSAGE,msg); break; } }我已经理解到您想要实现的功能,发送和获取消息。我可以根据您指定的参数执行这些操作。
阅读全文