/// <summary> /// 发送给界面插件显示 /// </summary> /// <param name="msg"></param> /// <param name="id">发送者id</param> public void SendMsgToDispla(string id, string msg) { MessageRouteInfo.AddMessage(new TextMsgInfo() { Text = msg, ReciverId = PluginsURL.FaceInterfaceId, SendId = id, }); }
/// <summary> /// 写入到日志 /// </summary> /// <param name="logMsg"></param> /// <param name="id">发送者id</param> public void WriteLog(string id, string logMsg) { MessageRouteInfo.AddMessage(new TextMsgInfo() { Text = logMsg, ReciverId = PluginsURL.FaceInterfaceId, SendId = id, }); }
/// <summary> /// 路由消息 /// </summary> /// <param name="msgInterface"></param> public void SendToMessage(IMsgInterface msgInterface) { MessageRouteInfo.AddMessage(msgInterface); }