using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace API.Controllers.Requests; public record CreateNtfyConnectorRecord { /// /// 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 Priority of Notifications /// [Required] [Description("The Priority of Notifications")] public required int Priority { get; init; } /// /// The Username used for authentication /// [Required] [Description("The Username used for authentication")] public required string Username { get; init; } /// /// The Password used for authentication /// [Required] [Description("The Password used for authentication")] public required string Password { get; init; } /// /// The Topic of Notifications /// [Required] [Description("The Topic of Notifications")] public required string Topic { get; init; } }