Files
Cleanuparr/code/Common/Configuration/DownloadClient/DelugeConfig.cs
2025-02-16 03:20:00 +02:00

20 lines
419 B
C#

using Common.Exceptions;
namespace Common.Configuration.DownloadClient;
public sealed record DelugeConfig : IConfig
{
public const string SectionName = "Deluge";
public Uri? Url { get; init; }
public string? Password { get; init; }
public void Validate()
{
if (Url is null)
{
throw new ValidationException($"{nameof(Url)} is empty");
}
}
}