/// <summary> /// Transforms a Message to NotificationDetail /// </summary> public static NotificationDetail Transform(ref Message m) { NotificationDetail nd = new NotificationDetail(); if (_ignoreMessages.Contains(m.Msg)) return null; nd.Power = PowerNotification.TransformMessage(ref m); nd.Device = DeviceNotification.TransformMessage(ref m); if ((nd.Power != null) || (nd.Device != null)) return nd; return null; }
/// <summary> /// Transforms a Message to NotificationDetail /// </summary> public static NotificationDetail Transform(ref Message m) { NotificationDetail nd = new NotificationDetail(); if (_ignoreMessages.Contains(m.Msg)) { return(null); } nd.Power = PowerNotification.TransformMessage(ref m); nd.Device = DeviceNotification.TransformMessage(ref m); if ((nd.Power != null) || (nd.Device != null)) { return(nd); } return(null); }
private void NotificationDetailHandler(ref NotificationDetail nd) { DebugLogger.WriteLine("event " + nd.ToString()); }