Tranga/API/APIEndpointRecords/CoverFormatRequestRecord.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
#297 #259
2025-03-07 16:30:32 +01:00

13 lines
313 B
C#

using SixLabors.ImageSharp;
namespace API.APIEndpointRecords;
public record CoverFormatRequestRecord(Size size)
{
public bool Validate()
{
if (size.Height <= 0 || size.Width <= 0 || size.Height > 65535 || size.Width > 65535) //JPEG max size
return false;
return true;
}
}