public Mp3MatchEngine(IAppSettingsHelper settingsHelper, IAudioticaService audioticaService, INotificationManager notificationManager, IDispatcherHelper dispatcherHelper) { _audioticaService = audioticaService; _notificationManager = notificationManager; _dispatcherHelper = dispatcherHelper; _service = new Mp3SearchService(settingsHelper); }
public AudioticaCloudViewModel(IAudioticaService service, IAppSettingsHelper appSettingsHelper) { _appSettingsHelper = appSettingsHelper; this.Service = service; this.SignInCommand = new RelayCommand(this.SignInExecute); this.SignUpCommand = new RelayCommand(this.SignUpExecute); this.SubscribeCommand = new RelayCommand(this.SubscribeExecute); this.LogoutCommand = new RelayCommand(this.LogoutExecute); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> /// <param name="collectionService"> /// The collection service. /// </param> /// <param name="service"> /// The service. /// </param> /// <param name="spotify"> /// The spotify. /// </param> /// <param name="audioticaService"> /// The audiotica service. /// </param> /// <param name="audioPlayer"> /// The audio player. /// </param> /// <param name="playerViewModel"></param> public MainViewModel( ICollectionService collectionService, IScrobblerService service, ISpotifyService spotify, IAudioticaService audioticaService, AudioPlayerHelper audioPlayer, PlayerViewModel playerViewModel) { PlayerViewModel = playerViewModel; _collectionService = collectionService; _service = service; _spotify = spotify; _audioticaService = audioticaService; _audioPlayer = audioPlayer; _collectionService.LibraryLoaded += CollectionServiceOnLibraryLoaded; _audioPlayer.TrackChanged += CollectionServiceOnLibraryLoaded; // Load data automatically LoadChartDataAsync(); }