diff --git a/Aurora/Backend/Services/LibraryService.cs b/Aurora/Backend/Services/LibraryService.cs index e9a1b3d..6e2ad99 100644 --- a/Aurora/Backend/Services/LibraryService.cs +++ b/Aurora/Backend/Services/LibraryService.cs @@ -13,14 +13,14 @@ namespace Aurora.Backend.Services #region Fields private string _pathName = "/Users/brandonwatson/Music/iTunes/iTunes Media/Music"; private string _extensions = ".wav,.mp3,.aiff,.flac,.m4a,.m4b,.wma"; - private Dictionary _library; + private Dictionary _library; #endregion Fields public LibraryService() { - _library = new Dictionary(); + _library = new Dictionary(); LoadLibrary(); } @@ -28,10 +28,10 @@ namespace Aurora.Backend.Services /// Gets the songs. /// /// The songs. - public ObservableCollection GetLibrary() + public ObservableCollection GetLibrary() { - ObservableCollection collection = new ObservableCollection(); - foreach (KeyValuePair pair in _library) + ObservableCollection collection = new ObservableCollection(); + foreach (KeyValuePair pair in _library) { collection.Add(pair.Value); } @@ -51,7 +51,7 @@ namespace Aurora.Backend.Services { TagLib.File tagFile = TagLib.File.Create(file.FullName); - Song song = new Song(file) + BaseSong song = new LocalSong(file) { Title = tagFile.Tag.Title, Album = tagFile.Tag.Album, diff --git a/Aurora/Frontend/Views/Songs/SongsViewModel.cs b/Aurora/Frontend/Views/Songs/SongsViewModel.cs index 3734f4d..b650d06 100644 --- a/Aurora/Frontend/Views/Songs/SongsViewModel.cs +++ b/Aurora/Frontend/Views/Songs/SongsViewModel.cs @@ -7,22 +7,22 @@ namespace Aurora.Frontend.Views.Songs public class SongsViewModel : BaseViewModel { #region Fields - private ObservableCollection _songsList; - private Song _selectedSong; + private ObservableCollection _songsList; + private BaseSong _selectedSong; #endregion Fields #region Constructor public SongsViewModel() { - _songsList = new ObservableCollection(); + _songsList = new ObservableCollection(); Initialize(); } #endregion Constructor #region Properties - public ObservableCollection SongsList + public ObservableCollection SongsList { get { return _songsList; } set @@ -35,7 +35,7 @@ namespace Aurora.Frontend.Views.Songs } } - public Song SelectedSong + public BaseSong SelectedSong { get { return _selectedSong; } set