mirror of
https://github.com/Radarr/Radarr
synced 2026-01-30 19:32:22 +01:00
24 lines
728 B
C#
24 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);
|
|
}
|
|
}
|
|
}
|