public AlternativeTitleModule(IAlternativeTitleService altTitleService, IMovieService movieService, IRadarrAPIClient radarrApi, IEventAggregator eventAggregator)
     : base("/alttitle")
 {
     _altTitleService = altTitleService;
     _movieService    = movieService;
     _radarrApi       = radarrApi;
     CreateResource   = AddTitle;
     GetResourceById  = GetTitle;
     _eventAggregator = eventAggregator;
 }
 public AlternativeYearModule(IMovieService movieService, IRadarrAPIClient radarrApi, ICacheManager cacheManager, IEventAggregator eventAggregator)
     : base("/altyear")
 {
     _movieService    = movieService;
     _radarrApi       = radarrApi;
     CreateResource   = AddYear;
     GetResourceById  = GetYear;
     _yearCache       = cacheManager.GetCache <int>(GetType(), "altYears");
     _eventAggregator = eventAggregator;
 }
Beispiel #3
0
        public SkyHookProxy(IHttpClient httpClient, IRadarrCloudRequestBuilder requestBuilder, ITmdbConfigService configService, IMovieService movieService,
                            IPreDBService predbService, IImportExclusionsService exclusionService, IAlternativeTitleService altTitleService, IRadarrAPIClient radarrAPI, Logger logger)
        {
            _httpClient       = httpClient;
            _movieBuilder     = requestBuilder.TMDB;
            _configService    = configService;
            _movieService     = movieService;
            _predbService     = predbService;
            _exclusionService = exclusionService;
            _altTitleService  = altTitleService;
            _radarrAPI        = radarrAPI;

            _logger = logger;
        }
 public RefreshMovieService(IProvideMovieInfo movieInfo,
                            IMovieService movieService,
                            IAlternativeTitleService titleService,
                            IEventAggregator eventAggregator,
                            IDiskScanService diskScanService,
                            IRadarrAPIClient apiClient,
                            ICheckIfMovieShouldBeRefreshed checkIfMovieShouldBeRefreshed,
                            IManageCommandQueue commandQueue,
                            Logger logger)
 {
     _movieInfo                     = movieInfo;
     _movieService                  = movieService;
     _titleService                  = titleService;
     _eventAggregator               = eventAggregator;
     _apiClient                     = apiClient;
     _commandQueueManager           = commandQueue;
     _diskScanService               = diskScanService;
     _checkIfMovieShouldBeRefreshed = checkIfMovieShouldBeRefreshed;
     _logger = logger;
 }