public LyricController( IArtistsService artistsService, ILyricsService lyricsService) { _artistsService = artistsService; _lyricsService = lyricsService; }
public SearchController( ILyricsService lyricsService, IArtistsService artistsService) { _lyricsService = lyricsService; _artistsService = artistsService; }
public AggregatorProcess( ILyricsService lyricsService, IArtistService artistService, IWordCounterService wordCounterService, ICacheService cacheService) { _lyricsService = lyricsService ?? throw new ArgumentNullException(nameof(lyricsService)); _artistService = artistService ?? throw new ArgumentNullException(nameof(artistService)); _wordCounterService = wordCounterService ?? throw new ArgumentNullException(nameof(wordCounterService)); _cacheService = cacheService ?? throw new ArgumentNullException(nameof(cacheService)); }
public EditTrackViewModel(Common.Singletons.Library library, IMessenger messenger, IAlbumInfoService webAlbumInfoService, ITrackUpdateService trackUpdateService, IImageProcessingService imageProcessingService, IWebBrowserService webBrowserService, IFileDialogService fileDialogService, ILyricsService lyricsService) : base(TabType.EditTrack, IconType.Edit, "Edit Track", messenger, false) { _library = library; _fileDialogService = fileDialogService; _imageProcessingService = imageProcessingService; _messenger = messenger; _trackUpdateService = trackUpdateService; _webAlbumInfoService = webAlbumInfoService; _webBrowserService = webBrowserService; _lyricsService = lyricsService; GetLyricsCommand = new RelayCommand(OnGetLyrics); LyricsWebSearchCommand = new RelayCommand(OnLyricsWebSearch); }
public NowPlayingViewModel( IEventAggregator eventAggregator, IAudioEngine playEngine, ISongService songService, ILyricsService lyricService, ICredentialManageService credentialStorageService) { this._eventAggregator = eventAggregator; this._playEngine = playEngine; this._songService = songService; this._lyricsService = lyricService; this._credentialStorageService = credentialStorageService; PlayList = new Queue <Song>(); var switchChannelEvent = _eventAggregator.GetEvent <SwitchChannelEvent>(); switchChannelEvent.Subscribe(async c => await HandleChannelChange(c)); _userStateChangedEvent = _eventAggregator.GetEvent <UserStateChangedEvent>(); _userStateChangedEvent.Subscribe(HandleUserStateChange); playEngine.TrackEnded += playEngine_TrackeEnded; LoadedCommand = DelegateCommand.FromAsyncHandler(Loaded); PlayNextCommand = DelegateCommand.FromAsyncHandler(async() => await PlayNext(false)); LikeCommand = DelegateCommand.FromAsyncHandler(Like, () => this.IsLoggedIn); UnlikeCommand = DelegateCommand.FromAsyncHandler(Unlike, () => this.IsLoggedIn); BanCommand = DelegateCommand.FromAsyncHandler(Ban, () => this.IsLoggedIn); _timer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(0.4) }; _timer.Tick += _timer_Tick; _timer.Start(); }
public LyricsViewModel(IContainerProvider container, TrackViewModel track) : base(container) { this.metadataService = container.Resolve <IMetadataService>(); this.providerService = container.Resolve <IProviderService>(); this.lyricsService = container.Resolve <ILyricsService>(); this.track = track; this.lyrics = new Lyrics(); this.uneditedLyrics = new Lyrics(); this.FontSize = SettingsClient.Get <double>("Lyrics", "FontSize"); this.AutomaticScrolling = SettingsClient.Get <bool>("Lyrics", "AutomaticScrolling"); this.CenterLyrics = SettingsClient.Get <bool>("Lyrics", "CenterLyrics"); this.DecreaseFontSizeCommand = new DelegateCommand(() => { if (this.FontSize > 11) { this.FontSize--; } }); this.IncreaseFontSizeCommand = new DelegateCommand(() => { if (this.FontSize < 50) { this.FontSize++; } }); this.EditCommand = new DelegateCommand(() => { this.IsEditing = true; }); this.CancelEditCommand = new DelegateCommand(() => { this.lyrics = this.uneditedLyrics; this.IsEditing = false; }); this.SaveCommand = new DelegateCommand(async() => await this.SaveLyricsInAudioFileAsync()); this.SaveIfNotEmptyCommand = new DelegateCommand(async() => await this.SaveLyricsInAudioFileAsync(), () => !string.IsNullOrWhiteSpace(this.lyrics.Text)); this.SearchOnlineCommand = new DelegateCommand <string>((id) => this.SearchOnline(id)); }
public TopWordsController(ILyricsService lyricsService) { _lyricsService = lyricsService; }
public LyricsController(ISettingsService service, ILyricsService lyricsService) : base(service) { LyricsService = lyricsService; }
public HomeController(TopWordsController topWordsController, ILyricsService lyricsService) { _topWordsController = topWordsController; _lyricsService = lyricsService; }
public UserInterface(ILyricsService lyricsService) { _lyricsService = lyricsService; }