mirror of
https://github.com/Radarr/Radarr
synced 2026-01-29 10:55:55 +01:00
17 lines
No EOL
465 B
C#
17 lines
No EOL
465 B
C#
using FluentValidation;
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
namespace NzbDrone.Api.Config
|
|
{
|
|
public class IndexerConfigModule : NzbDroneConfigModule<IndexerConfigResource>
|
|
{
|
|
|
|
public IndexerConfigModule(IConfigService configService)
|
|
: base(configService)
|
|
{
|
|
SharedValidator.RuleFor(c => c.RssSyncInterval)
|
|
.InclusiveBetween(10, 120)
|
|
.When(c => c.RssSyncInterval > 0);
|
|
}
|
|
}
|
|
} |