コード例 #1
0
        /// <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;
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 private void NotificationDetailHandler(ref NotificationDetail nd)
 {
     DebugLogger.WriteLine("event " + nd.ToString());
 }