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.
29 lines
907 B
29 lines
907 B
using FluentValidation;
|
|
using NzbDrone.Core.Annotations;
|
|
using NzbDrone.Core.Validation;
|
|
|
|
namespace NzbDrone.Core.Notifications.Synology
|
|
{
|
|
public class SynologyIndexerSettingsValidator : AbstractValidator<SynologyIndexerSettings>
|
|
{
|
|
}
|
|
|
|
public class SynologyIndexerSettings : NotificationSettingsBase<SynologyIndexerSettings>
|
|
{
|
|
private static readonly SynologyIndexerSettingsValidator Validator = new ();
|
|
|
|
public SynologyIndexerSettings()
|
|
{
|
|
UpdateLibrary = true;
|
|
}
|
|
|
|
[FieldDefinition(0, Label = "NotificationsSettingsUpdateLibrary", Type = FieldType.Checkbox, HelpText = "NotificationsSynologySettingsUpdateLibraryHelpText")]
|
|
public bool UpdateLibrary { get; set; }
|
|
|
|
public override NzbDroneValidationResult Validate()
|
|
{
|
|
return new NzbDroneValidationResult(Validator.Validate(this));
|
|
}
|
|
}
|
|
}
|