public List <PlaylistMemento> getMementos(Playlist playlist) { return(mementos[playlists.IndexOf(playlist)]); }
public PlaylistMemento(Playlist playlist) { this.songs = new List <Song>(playlist.getSongs()); this.name = new String(playlist.getName().ToCharArray()); }
public PlaylistMemento getMemento(Playlist playlist, int exactMemento) { int index = this.playlists.IndexOf(playlist); return(mementos[index][exactMemento]); }
public void AddPlaylist(Playlist newPlaylist) { playlists.Add(newPlaylist); }