예제 #1
0
        private void Signals_NotifyReceived(org.alljoyn.Notification.NotificationSignals sender, org.alljoyn.Notification.NotificationNotifyReceivedEventArgs args)
        {
            var e = new NotificationEventArgs()
            {
                Version          = args.Arg,
                MsgId            = args.Arg2,
                MsgType          = args.Arg3,
                DeviceId         = args.Arg4,
                DeviceName       = args.Arg5,
                AppId            = new Guid(args.Arg6.ToArray()),
                AppName          = args.Arg7,
                Attributes       = args.Arg8,
                CustomAttributes = args.Arg9,
            };
            Dictionary <string, string> languages = new Dictionary <string, string>();

            foreach (var item in args.Arg10)
            {
                languages.Add(item.Value1, item.Value2);
            }
            e.Text = languages;
            NotificationRecieved?.Invoke(this, e);
        }
예제 #2
0
 private void OnNotificationRecieved(Logging.NotificationMessage notification)
 {
     NotificationRecieved?.Invoke(notification);
 }