/// <summary> /// called when new notification round -> calls core / adds to db /// </summary> /// <param name="msg"></param> public new static void CallBack(ROSBridgeMsg msg) { DebugMsg debug = (DebugMsg)msg; float timeframe = debug.GetTimeFrame(); if (timeframe == 0) // if valid time frame { return; } if (Enum.IsDefined(typeof(DummyStates.State), debug.GetCode())) // if valid error code { Notification note = VRUILogic.Instance.AddNewNotification(DummyStates.MessageType.DEBUG, (DummyStates.State)debug.GetCode(), debug.GetObject(), timeframe); note.AddAdditionalContent(debug.GetExtra()); } }