Beispiel #1
0
 public List <PlaylistMemento> getMementos(Playlist playlist)
 {
     return(mementos[playlists.IndexOf(playlist)]);
 }
Beispiel #2
0
 public PlaylistMemento(Playlist playlist)
 {
     this.songs = new List <Song>(playlist.getSongs());
     this.name  = new String(playlist.getName().ToCharArray());
 }
Beispiel #3
0
        public PlaylistMemento getMemento(Playlist playlist, int exactMemento)
        {
            int index = this.playlists.IndexOf(playlist);

            return(mementos[index][exactMemento]);
        }
Beispiel #4
0
 public void AddPlaylist(Playlist newPlaylist)
 {
     playlists.Add(newPlaylist);
 }