Example #1
0
 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;
 }
Example #2
0
        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());
        }
Example #3
0
        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());
        }
Example #4
0
 public YouTubeDemoModuleController(IYoutubeSearchService searchService, IYoutubeDeleteService deleteService, IYoutubeAddService addService)
 {
     _searchService = searchService;
     _deleteService = deleteService;
     _addService    = addService;
 }