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.
23 lines
632 B
23 lines
632 B
using FluentValidation;
|
|
using Radarr.Http.Validation;
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
namespace NzbDrone.Api.Config
|
|
{
|
|
public class NetImportConfigModule : NzbDroneConfigModule<NetImportConfigResource>
|
|
{
|
|
|
|
public NetImportConfigModule(IConfigService configService)
|
|
: base(configService)
|
|
{
|
|
SharedValidator.RuleFor(c => c.NetImportSyncInterval)
|
|
.IsValidNetImportSyncInterval();
|
|
}
|
|
|
|
protected override NetImportConfigResource ToResource(IConfigService model)
|
|
{
|
|
return NetImportConfigResourceMapper.ToResource(model);
|
|
}
|
|
}
|
|
}
|