public SearchService([NotNull] IHistoryRepository historyRepository, [NotNull] IYoutubeSearchService youtubeSearchService, [NotNull] AppSettings appSettings, [NotNull] IVideoRepository videoRepository, [NotNull] YoutubeHelpers youtubeHelpers) { _historyRepository = historyRepository; _youtubeSearchService = youtubeSearchService; _appSettings = appSettings; _videoRepository = videoRepository; _youtubeHelpers = youtubeHelpers; }
public MainViewModel(IStateService stateService, IUserService userService, ISignalRService signaRService, INavigationService navigationService, IYoutubeSearchService youtubeSearchService, IReactionService reactionService, ISongService songService) : base(stateService, userService, signaRService, navigationService) { YoutubeSearchService = youtubeSearchService; ReactionService = reactionService; SongService = songService; SearchYoutube = new DelegateCommand <string>(async(x) => await SearchYoutubeExecute(x)); NowPlaying = new DelegateCommand(async() => await NowPlayingExecute()); }
public SearchViewModel( IStateService stateService, IUserService userService, ISignalRService signaRService, INavigationService navigationService, ISongService songService, IYoutubeSearchService youtubeSearchService) : base(stateService, userService, signaRService, navigationService) { YoutubeSearchService = youtubeSearchService; SongService = songService; SearchCommand = new DelegateCommand(async() => await SearchExecute()) .ObservesCanExecute(() => IsNotBusy); Songs = new ObservableCollection <VideoInformation>(); AddItemCommand = new DelegateCommand <VideoInformation>(async(o) => await AddItemExecute(o)) .ObservesCanExecute(() => IsNotBusy); CloseCommand = new DelegateCommand(async() => await CloseExecute()); ClearCommand = new DelegateCommand(async() => await ClearExecute()); }
public YouTubeDemoModuleController(IYoutubeSearchService searchService, IYoutubeDeleteService deleteService, IYoutubeAddService addService) { _searchService = searchService; _deleteService = deleteService; _addService = addService; }