2018-11-23 07:03:32 +00:00
|
|
|
using Radarr.Http.Validation;
|
|
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
|
2019-12-03 01:36:18 +00:00
|
|
|
namespace Radarr.Api.V3.Config
|
2018-11-23 07:03:32 +00:00
|
|
|
{
|
|
|
|
public class NetImportConfigModule : RadarrConfigModule<NetImportConfigResource>
|
|
|
|
{
|
|
|
|
|
|
|
|
public NetImportConfigModule(IConfigService configService)
|
|
|
|
: base(configService)
|
|
|
|
{
|
|
|
|
SharedValidator.RuleFor(c => c.NetImportSyncInterval)
|
|
|
|
.IsValidNetImportSyncInterval();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override NetImportConfigResource ToResource(IConfigService model)
|
|
|
|
{
|
|
|
|
return NetImportConfigResourceMapper.ToResource(model);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|