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.
recyclarr/src/Trash/Config/ServiceConfiguration.cs

17 lines
496 B

using System.ComponentModel.DataAnnotations;
namespace Trash.Config
{
public abstract class ServiceConfiguration : IServiceConfiguration
{
[Required(ErrorMessage = "Property 'base_url' is required")]
public string BaseUrl { get; init; } = "";
[Required(ErrorMessage = "Property 'api_key' is required")]
public string ApiKey { get; init; } = "";
public abstract string BuildUrl();
public abstract bool IsValid(out string msg);
}
}