mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
indexer specific setting validation
This commit is contained in:
@@ -1,26 +1,20 @@
|
||||
namespace NzbDrone.Core.Indexers
|
||||
using FluentValidation.Results;
|
||||
|
||||
namespace NzbDrone.Core.Indexers
|
||||
{
|
||||
public interface IIndexerSetting
|
||||
{
|
||||
bool IsValid { get; }
|
||||
ValidationResult Validate();
|
||||
}
|
||||
|
||||
|
||||
public class NullSetting : IIndexerSetting
|
||||
{
|
||||
public static NullSetting Instance = new NullSetting();
|
||||
public static readonly NullSetting Instance = new NullSetting();
|
||||
|
||||
private NullSetting()
|
||||
public ValidationResult Validate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public bool IsValid
|
||||
{
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return new ValidationResult();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user