public void LoadPlaylist(PlaylistItemCollection playlistItemCollection) { if (playlistItemCollection == null) return; StopPlaybackAction(); Items.Clear(); Items.AddRange(playlistItemCollection); }
public void LoadPlaylist(Playlist playlist) { EventAggregator.Publish(new StopMessage()); PlaylistManagementService.Clear(); GoBack(); var playlistItemCollection = new PlaylistItemCollection(); playlistItemCollection.AddRange(playlist.Entries.Select(e => e.AsPlaylistItem(SubsonicService))); PlaylistManagementService.LoadPlaylist(playlistItemCollection); }
public PlaylistManagementService(IEventAggregator eventAggregator) { _eventAggregator = eventAggregator; _eventAggregator.Subscribe(this); StartPlaybackAction = StartPlayback; StopPlaybackAction = StopPlayback; GetNextTrackNumberFunc = GetNextTrackNumber; GetPreviousTrackNumberFunc = GetPreviousTrackNumber; Items = new PlaylistItemCollection(); PlaylistHistory = new PlaylistHistoryStack(); _randomNumberGenerator = new Random(); CurrentItem = null; _wasEmpty = true; }
public MockPlyalistManagementService() { Items = new PlaylistItemCollection(); MethodCalls = new Dictionary <string, object>(); SetStateFromStringCalls = new List <string>(); }
public void LoadPlaylist(PlaylistItemCollection playlistItemCollection) { LoadPlaylistCallCount++; MethodCalls.Add("LoadPlaylist", playlistItemCollection); }
public void LoadPlaylist(PlaylistItemCollection playlistItemCollection) { throw new System.NotImplementedException(); }
public MockPlyalistManagementService() { Items = new PlaylistItemCollection(); }
public MockPlyalistManagementService() { Items = new PlaylistItemCollection(); MethodCalls = new Dictionary<string, object>(); SetStateFromStringCalls = new List<string>(); }