mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
can now read/write provider config to db.
This commit is contained in:
parent
08e2d60f20
commit
4046d35604
21 changed files with 179 additions and 62 deletions
|
@ -1,10 +1,11 @@
|
|||
using NzbDrone.Common.Serializer;
|
||||
using NzbDrone.Core.ThingiProvider;
|
||||
|
||||
namespace NzbDrone.Core.Notifications
|
||||
{
|
||||
public interface INotificationSettingsProvider
|
||||
{
|
||||
TSetting Get<TSetting>(INotification indexer) where TSetting : INotifcationSettings, new();
|
||||
TSetting Get<TSetting>(INotification indexer) where TSetting : IProviderConfig, new();
|
||||
}
|
||||
|
||||
public class NotificationSettingsProvider : INotificationSettingsProvider
|
||||
|
@ -16,7 +17,7 @@ namespace NzbDrone.Core.Notifications
|
|||
_notificationRepository = notificationRepository;
|
||||
}
|
||||
|
||||
public TSetting Get<TSetting>(INotification indexer) where TSetting : INotifcationSettings, new()
|
||||
public TSetting Get<TSetting>(INotification indexer) where TSetting : IProviderConfig, new()
|
||||
{
|
||||
var indexerDef = _notificationRepository.Find(indexer.Name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue