using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace API.Controllers.Requests; public record CreateGotifyConnectorRecord(string Name, string Url, string AppToken, int Priority) { /// /// The Name of the Notification Connector /// [Required] [Description("The Name of the Notification Connector")] public string Name { get; init; } = Name; /// /// 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 string Url { get; internal set; } = Url; /// /// The Apptoken used for authentication /// [Required] [Description("The Apptoken used for authentication")] public string AppToken { get; init; } = AppToken; /// /// The Priority of Notifications /// [Required] [Description("The Priority of Notifications")] public int Priority { get; init; } = Priority; }