mirror of
https://github.com/C9Glax/tranga.git
synced 2025-07-04 18:04:16 +02:00
SettingsController.cs SearchController.cs QueryController.cs NotificationConnectorController.cs MetadataFetcherController.cs MangaConnectorController.cs FileLibraryController LibraryConnectors WorkerController
17 lines
475 B
C#
17 lines
475 B
C#
namespace API.APIEndpointRecords;
|
|
|
|
public record NtfyRecord(string Name, string Endpoint, string Username, string Password, string Topic, int Priority)
|
|
{
|
|
public bool Validate()
|
|
{
|
|
if (Endpoint == string.Empty)
|
|
return false;
|
|
if (Username == string.Empty)
|
|
return false;
|
|
if (Password == string.Empty)
|
|
return false;
|
|
if (Priority < 1 || Priority > 5)
|
|
return false;
|
|
return true;
|
|
}
|
|
} |