1
0
mirror of https://github.com/C9Glax/tranga.git synced 2025-06-20 01:57:53 +02:00
Files
Tranga/API/APIEndpointRecords/GotifyRecord.cs
Glax 022ebe2bcc Arbitrary Webhook for NotificationConnectors
Backend only deals in REST Webhooks
The API has custom Endpoints for Ntfy, Gotify, Lunasea that create pre-formatted Webhooks
 
2025-03-07 16:30:32 +01:00

16 lines
371 B
C#

namespace API.APIEndpointRecords;
public record GotifyRecord(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;
}
}