Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TesterController" /> class.
 /// </summary>
 public TesterController(INotificationService service, IDiscordNotification notification, IEmailNotification emailN,
                         IPushbulletNotification pushbullet, ISlackNotification slack, IPushoverNotification po, IMattermostNotification mm,
                         IPlexApi plex, IEmbyApiFactory emby, IRadarrV3Api radarr, ISonarrApi sonarr, ILogger <TesterController> log, IEmailProvider provider,
                         ICouchPotatoApi cpApi, ITelegramNotification telegram, ISickRageApi srApi, INewsletterJob newsletter, ILegacyMobileNotification mobileNotification,
                         ILidarrApi lidarrApi, IGotifyNotification gotifyNotification, IWhatsAppApi whatsAppApi, OmbiUserManager um, IWebhookNotification webhookNotification,
                         IJellyfinApi jellyfinApi)
 {
     Service                = service;
     DiscordNotification    = notification;
     EmailNotification      = emailN;
     PushbulletNotification = pushbullet;
     SlackNotification      = slack;
     PushoverNotification   = po;
     MattermostNotification = mm;
     PlexApi                = plex;
     RadarrApi              = radarr;
     EmbyApi                = emby;
     SonarrApi              = sonarr;
     Log                  = log;
     EmailProvider        = provider;
     CouchPotatoApi       = cpApi;
     TelegramNotification = telegram;
     SickRageApi          = srApi;
     Newsletter           = newsletter;
     MobileNotification   = mobileNotification;
     LidarrApi            = lidarrApi;
     GotifyNotification   = gotifyNotification;
     WhatsAppApi          = whatsAppApi;
     UserManager          = um;
     WebhookNotification  = webhookNotification;
     _jellyfinApi         = jellyfinApi;
 }
Пример #2
0
 public RadarrSync(ISettingsService <RadarrSettings> radarr, IRadarrV3Api radarrApi, ILogger <RadarrSync> log, ExternalContext ctx)
 {
     RadarrSettings = radarr;
     RadarrApi      = radarrApi;
     Logger         = log;
     _ctx           = ctx;
     RadarrSettings.ClearCache();
 }
Пример #3
0
 public RadarrController(IRadarrApi radarr, ISettingsService <RadarrSettings> settings,
                         ICacheService mem, IRadarrV3Api radarrV3Api)
 {
     _radarrApi      = radarr;
     _radarrSettings = settings;
     _cache          = mem;
     _radarrV3Api    = radarrV3Api;
 }
Пример #4
0
 public RadarrSync(ISettingsService <RadarrSettings> radarr, ISettingsService <Radarr4KSettings> radarr4k, IRadarrV3Api radarrApi, ILogger <RadarrSync> log, ExternalContext ctx,
                   IExternalRepository <RadarrCache> radarrRepo)
 {
     _radarrSettings   = radarr;
     _radarr4kSettings = radarr4k;
     _api        = radarrApi;
     _logger     = log;
     _ctx        = ctx;
     _radarrRepo = radarrRepo;
     _radarrSettings.ClearCache();
     _radarr4kSettings.ClearCache();
 }
Пример #5
0
 public MovieSender(ISettingsService <RadarrSettings> radarrSettings, ISettingsService <Radarr4KSettings> radarr4kSettings, ILogger <MovieSender> log,
                    ISettingsService <DogNzbSettings> dogSettings, IDogNzbApi dogApi, ISettingsService <CouchPotatoSettings> cpSettings,
                    ICouchPotatoApi cpApi, IRepository <UserQualityProfiles> userProfiles, IRepository <RequestQueue> requestQueue, INotificationHelper notify,
                    IRadarrV3Api radarrV3Api)
 {
     _radarrSettings        = radarrSettings;
     _log                   = log;
     _dogNzbSettings        = dogSettings;
     _dogNzbApi             = dogApi;
     _couchPotatoSettings   = cpSettings;
     _couchPotatoApi        = cpApi;
     _userProfiles          = userProfiles;
     _requestQueuRepository = requestQueue;
     _notificationHelper    = notify;
     _radarrV3Api           = radarrV3Api;
     _radarr4KSettings      = radarr4kSettings;
 }