mirror of
https://github.com/C9Glax/tranga.git
synced 2025-04-14 04:13:18 +02:00
Backend only deals in REST Webhooks The API has custom Endpoints for Ntfy, Gotify, Lunasea that create pre-formatted Webhooks #297 #259
13 lines
313 B
C#
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;
|
|
}
|
|
} |