using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace API.Controllers.Requests;
public record CreateGotifyConnectorRecord
{
///
/// The Name of the Notification Connector
///
[Required]
[Description("The Name of the Notification Connector")]
public required string Name { get; init; }
///
/// The Url of the Instance
///
/// Formatting placeholders: "%title" and "%text" will be replaced when notifications are sent
[Required]
[Url]
[Description("The Url of the Instance")]
public required string Url { get; init; }
///
/// The Apptoken used for authentication
///
[Required]
[Description("The Apptoken used for authentication")]
public required string AppToken { get; init; }
///
/// The Priority of Notifications
///
[Required]
[Description("The Priority of Notifications")]
public required int Priority { get; init; }
}