public TvMazeScrapper(ITvMazeClient tvMazeClient, ITvShowRepository tvShowRepository, IMapper mapper, ILogger logger) { _tvMazeClient = tvMazeClient; _tvShowRepository = tvShowRepository; _logger = logger; _mapper = mapper; }
/// <summary> /// Initialises a new instance of the <see cref="TvShows" /> class. /// </summary> public TvShows() { InitializeComponent(); tvShowRepository = CompositionRoot.Get <ITvShowRepository>(); fileResultManager = CompositionRoot.Get <IFileResultManager>(); }
/// <summary> /// Initialises a new instance of the <see cref="TvShowsController" /> class. /// </summary> /// <param name="storageProvider">The storage provider.</param> /// <param name="tvShowRepository">The TV show repository.</param> /// <param name="scanManager">The scan manager.</param> public TvShowsController( IStorageProvider storageProvider, ITvShowRepository tvShowRepository, IScanManager scanManager) { this.storageProvider = storageProvider; this.tvShowRepository = tvShowRepository; this.scanManager = scanManager; }
/// <summary> /// Initialises a new instance of the <see cref="SortEpisodesController" /> class. /// </summary> /// <param name="tvShowRepository">The TV show repository.</param> /// <param name="fileSearch">The file searcher.</param> /// <param name="storageProvider">The storage provider.</param> public SortEpisodesController( ITvShowRepository tvShowRepository, IFileSearch fileSearch, IStorageProvider storageProvider) { this.tvShowRepository = tvShowRepository; this.fileSearch = fileSearch; this.storageProvider = storageProvider; }
static Program() { var client = new ImdbClient(); var dateTimeProvider = new DateTimeProvider(); var htmlParserStrategy = new HtmlParserStrategyFactory(); var cacheTvShowIds = new PersistantCache <string>("Cache/TvShowIds"); var cacheIgnoredTvShows = new PersistantCache <string>("Cache/IgnoredTvShows"); var cacheLatestAiredSeasons = new PersistantCache <int>("Cache/LatestAiredSeasons"); _seasonChecker = new SeasonChecker(client, htmlParserStrategy, cacheTvShowIds, cacheIgnoredTvShows, cacheLatestAiredSeasons, dateTimeProvider); _notificationService = new FileNotificationService(); _tvShowRepository = new FileTvShowRepository(new FileSystem()); }
/// <summary> /// Initialises a new instance of the <see cref="ScanManager" /> class. /// </summary> /// <param name="storageProvider"> /// The storage provider to use. /// </param> /// <param name="dataProvider"> /// The data provider to use. /// </param> /// <param name="tvShowRepository"> /// The TV show repository. /// </param> public ScanManager( IStorageProvider storageProvider, IDataProvider dataProvider, ITvShowRepository tvShowRepository) { this.storageProvider = storageProvider; this.dataProvider = dataProvider; settings = storageProvider.Settings; this.tvShowRepository = tvShowRepository; tvShows = tvShowRepository.GetTvShows().ToList(); this.tvShowRepository.TvShowAdded += TvShowAdded; this.tvShowRepository.TvShowRemoved += TvShowRemoved; this.tvShowRepository.TvShowChanged += TvShowChanged; }
public TvShowService(ITvShowRepository repository, IMapper mapper) { _tvShowRepository = repository; _mapper = mapper; }
public TheMovieDbService(IServerRepository serverRepository, ITvShowRepository tvShowRepository, IEpisodeRepository episodeRepository) { this._serverRepository = serverRepository; this._tvShowRepository = tvShowRepository; this._episodeRepository = episodeRepository; }
public MainWindowViewModel(IUnityContainer container, IEpisodeRepository episodeRepository, ITorrentService torrentService, IEventAggregator eventAggregator, IServerRepository serverRepository, ITvShowDatabase tvShowDatabaseService, ITvShowRepository tvShowRepository, IMessageService messageService, IInternetService internetService) { this._container = container; this._episodeRepository = episodeRepository; this._torrentService = torrentService; this._eventAggregator = eventAggregator; this._serverRepository = serverRepository; this._tvShowDatabaseService = tvShowDatabaseService; this._tvShowRepository = tvShowRepository; this._messageService = messageService; this._internetService = internetService; this.SearchCommand = new DelegateCommand <object>(this.Execute_Search); this.StartDownloadCommand = new DelegateCommand <object>(this.Execute_StartDownloadCommand); this.LoadedCommand = new DelegateCommand <Episode>(this.Execute_LoadedCommand); this.ExitCommand = new DelegateCommand <object>(this.Execute_ExitCommand); this.UpdateCommand = new DelegateCommand <object>(this.Execute_UpdateCommand); this.MarkEpisodeAsDownloadedCommand = new DelegateCommand <object>(this.Execute_MarkEpisodeAsDownloadedCommand); this.DeleteEpisodeCommand = new DelegateCommand <object>(this.Execute_DeleteEpisodeCommand); this.GroupByCommand = new DelegateCommand <string>(this.Execute_GroupByCommand); this.EditEpisodeCommand = new DelegateCommand <EpisodeDTO>(this.Execute_EditEpisodeCommand); this.SearchFilesCommand = new DelegateCommand <object>(this.Execute_SearchFilesCommand); this.Episodes = new ObservableCollection <EpisodeDTO>(); this.InitializeEpisodesViewSource(); this.SearchAndDownloadButtonLabel = "Search Torrents"; this.SearchAndDownloadButtonImage = "/images/TorrentIcon128x128.png"; }
public TVDatabaseService(XValueConverter xValueConverter, IServerRepository serverRepository, ITvShowRepository tvShowRepository) { this._xValueConverter = xValueConverter; this._serverRepository = serverRepository; this._tvShowRepository = tvShowRepository; }
public GetTvShowsCommandHandler(ITvShowRepository tvShowRepository) { _tvShowRepository = tvShowRepository; }
/// <summary> /// Initialises a new instance of the <see cref="ShowSearchController" /> class. /// </summary> /// <param name="tvShowRepository">The TV Show Repository.</param> public ShowSearchController(ITvShowRepository tvShowRepository) { this.tvShowRepository = tvShowRepository; }
public SearchWindowViewModel(ITvShowDatabase tvDatabaseService, string searchTerm, ITvShowRepository tvShowRepository, IEpisodeRepository episodeRepository, Guid windowId) { this._tvDatabaseService = tvDatabaseService; this._searchTerm = searchTerm; this._tvShowRepository = tvShowRepository; this._episodeRepository = episodeRepository; this._windowId = windowId; this.OKCommand = new DelegateCommand <object>(this.Execute_OKCommand); this.LoadedCommand = new DelegateCommand <object>(this.Execute_LoadedCommand); this.SelectItemCommand = new DelegateCommand <TvShow>(this.Execute_SelectItemCommand); this.Shows = new ObservableCollection <TvShow>(); }
/// <summary> /// Initialises a new instance of the <see cref="AddShowController" /> class. /// </summary> /// <param name="tvShowRepository">The TV Show Repository.</param> public AddShowController(ITvShowRepository tvShowRepository) : base(tvShowRepository) { }
public AddStarsForTvShowsCommandHandler(ITvShowRepository tvShowRepository) { _tvShowRepository = tvShowRepository; }
/// <summary> /// Initialises a new instance of the <see cref="SearchResultsController" /> class. /// </summary> /// <param name="tvShowRepository">The TV Show Repository.</param> public SearchResultsController(ITvShowRepository tvShowRepository) : base(tvShowRepository) { }
/// <summary> /// Creates a new instance of <see cref="TvShowController"/>. /// </summary> /// <param name="mapper"></param> /// <param name="dataRepository"></param> public TvShowController(IMapper mapper, ITvShowRepository dataRepository) : base(mapper, dataRepository) { }
public TvShowController(ITvShowRepository tvShowRepository) { _tvShowRepository = tvShowRepository; }