Ejemplo n.º 1
0
 public Mp3MatchEngine(IAppSettingsHelper settingsHelper, IAudioticaService audioticaService,
                       INotificationManager notificationManager, IDispatcherHelper dispatcherHelper)
 {
     _audioticaService    = audioticaService;
     _notificationManager = notificationManager;
     _dispatcherHelper    = dispatcherHelper;
     _service             = new Mp3SearchService(settingsHelper);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
        /// <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();
        }
Ejemplo n.º 6
0
        /// <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();
        }