mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2025-12-30 09:28:22 -05:00
22 lines
472 B
C#
22 lines
472 B
C#
using Common.Exceptions;
|
|
|
|
namespace Common.Configuration.DownloadClient;
|
|
|
|
public record TransmissionConfig : IConfig
|
|
{
|
|
public const string SectionName = "Transmission";
|
|
|
|
public Uri? Url { get; init; }
|
|
|
|
public string? Username { get; init; }
|
|
|
|
public string? Password { get; init; }
|
|
|
|
public void Validate()
|
|
{
|
|
if (Url is null)
|
|
{
|
|
throw new ValidationException($"{nameof(Url)} is empty");
|
|
}
|
|
}
|
|
} |