コード例 #1
0
        private async void OnItemsChanged(object sender, ItemsChangedEventArgs e)
        {
            QueueChangedNotification notification = new QueueChangedNotification();

            notification.NewItem = e.NewItem;
            notification.OldItem = e.OldItem;
            notification.Type    = NotificationType.ItemsChanged;

            await BroadcastAsync(notification);
        }
コード例 #2
0
 public ItemsChangedEventArgs(QueueChangedNotification notification)
     : this(notification.NewItem, notification.OldItem)
 {
 }