Ejemplo n.º 1
0
 /// <summary>
 /// Matches a song in both lists.
 /// </summary>
 /// <param name="idLocal">The id in the list of the local song to merge.</param>
 /// <param name="idSpotify">The id in the list of the Spotify song to merge.</param>
 public void matchSongs(int idLocal, int idSpotify)
 {
     MergingFactory.mergeTags(_spotifySongs.ElementAt(idSpotify), _localSongs.ElementAt(idLocal));
     _spotifySongs.RemoveAt(idSpotify);
     _localSongs.RemoveAt(idLocal);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Triggers the matching operation between the songs of the two lists.
 /// </summary>
 public void matchSongs()
 {
     MergingFactory.process(_localSongs, _spotifySongs);
 }