mirror of https://github.com/Radarr/Radarr
25 lines
728 B
C#
25 lines
728 B
C#
using NzbDrone.Core.Datastore;
|
|
using NzbDrone.Core.Messaging.Events;
|
|
using NzbDrone.Core.ThingiProvider;
|
|
|
|
namespace NzbDrone.Core.Notifications
|
|
{
|
|
public interface INotificationRepository : IProviderRepository<NotificationDefinition>
|
|
{
|
|
void UpdateSettings(NotificationDefinition model);
|
|
}
|
|
|
|
public class NotificationRepository : ProviderRepository<NotificationDefinition>, INotificationRepository
|
|
{
|
|
public NotificationRepository(IMainDatabase database, IEventAggregator eventAggregator)
|
|
: base(database, eventAggregator)
|
|
{
|
|
}
|
|
|
|
public void UpdateSettings(NotificationDefinition model)
|
|
{
|
|
SetFields(model, m => m.Settings);
|
|
}
|
|
}
|
|
}
|