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
16 lines
384 B
C#
16 lines
384 B
C#
namespace API.APIEndpointRecords;
|
|
|
|
public record GotifyRecord(string Name, string Endpoint, string AppToken, int Priority)
|
|
{
|
|
public bool Validate()
|
|
{
|
|
if (Endpoint == string.Empty)
|
|
return false;
|
|
if (AppToken == string.Empty)
|
|
return false;
|
|
if (Priority < 0 || Priority > 10)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
} |