You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
721 B
25 lines
721 B
using NzbDrone.Core.Datastore;
|
|
using NzbDrone.Core.Messaging.Events;
|
|
using NzbDrone.Core.ThingiProvider;
|
|
|
|
namespace NzbDrone.Core.Applications
|
|
{
|
|
public interface IApplicationsRepository : IProviderRepository<ApplicationDefinition>
|
|
{
|
|
void UpdateSettings(ApplicationDefinition model);
|
|
}
|
|
|
|
public class ApplicationRepository : ProviderRepository<ApplicationDefinition>, IApplicationsRepository
|
|
{
|
|
public ApplicationRepository(IMainDatabase database, IEventAggregator eventAggregator)
|
|
: base(database, eventAggregator)
|
|
{
|
|
}
|
|
|
|
public void UpdateSettings(ApplicationDefinition model)
|
|
{
|
|
SetFields(model, m => m.Settings);
|
|
}
|
|
}
|
|
}
|