mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-22 22:34:53 -04:00
33 lines
897 B
C#
33 lines
897 B
C#
using System.Collections.Generic;
|
|
using FluentValidation;
|
|
using NzbDrone.Core.Annotations;
|
|
using NzbDrone.Core.Indexers.Settings;
|
|
using NzbDrone.Core.Validation;
|
|
|
|
namespace NzbDrone.Core.Indexers.Cardigann
|
|
{
|
|
public class CardigannSettingsValidator : AbstractValidator<CardigannSettings>
|
|
{
|
|
public CardigannSettingsValidator()
|
|
{
|
|
}
|
|
}
|
|
|
|
public class CardigannSettings : NoAuthTorrentBaseSettings
|
|
{
|
|
private static readonly CardigannSettingsValidator Validator = new CardigannSettingsValidator();
|
|
|
|
public CardigannSettings()
|
|
{
|
|
ExtraFieldData = new Dictionary<string, object>();
|
|
}
|
|
|
|
public Dictionary<string, object> ExtraFieldData { get; set; }
|
|
|
|
public override NzbDroneValidationResult Validate()
|
|
{
|
|
return new NzbDroneValidationResult(Validator.Validate(this));
|
|
}
|
|
}
|
|
}
|