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.
22 lines
657 B
22 lines
657 B
using FluentValidation;
|
|
using NzbDrone.Core.Validation;
|
|
|
|
namespace NzbDrone.Core.ImportLists.TMDb
|
|
{
|
|
public class TMDbSettingsBaseValidator<TSettings> : AbstractValidator<TSettings>
|
|
where TSettings : TMDbSettingsBase<TSettings>
|
|
{
|
|
}
|
|
|
|
public class TMDbSettingsBase<TSettings> : ImportListSettingsBase<TSettings>
|
|
where TSettings : TMDbSettingsBase<TSettings>
|
|
{
|
|
private static readonly TMDbSettingsBaseValidator<TSettings> Validator = new ();
|
|
|
|
public override NzbDroneValidationResult Validate()
|
|
{
|
|
return new NzbDroneValidationResult(Validator.Validate((TSettings)this));
|
|
}
|
|
}
|
|
}
|