void ExecutePlayQueuePlaylistCommand() { if (_queuePlaylist.Any()) { _messenger.Send(VideoPlayRequestMessage.PlayPlaylist(_queuePlaylist)); } }
protected override void Execute(object parameter) { if (parameter is IPlaylistItemPlayable playable && playable.PlaylistItemToken is not null and var token) { if (token.Playlist is ISortablePlaylist) { _messenger.Send(VideoPlayRequestMessage.PlayPlaylist(token)); } } }
protected override void Execute(object parameter) { if (parameter is IPlaylist playlist) { _messenger.Send(VideoPlayRequestMessage.PlayPlaylist(playlist)); } else if (parameter is PlaylistToken playlistToken) { _messenger.Send(VideoPlayRequestMessage.PlayPlaylist(playlistToken)); } }