mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 20:08:19 +02:00
28 lines
839 B
C#
28 lines
839 B
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace API.Controllers.Requests;
|
|
|
|
public record CreatePushoverConnectorRecord(string Name, string AppToken, string Username)
|
|
{
|
|
/// <summary>
|
|
/// The Name of the Notification Connector
|
|
/// </summary>
|
|
[Required]
|
|
[Description("The Name of the Notification Connector")]
|
|
public string Name { get; init; } = Name;
|
|
|
|
/// <summary>
|
|
/// The Apptoken used for authentication
|
|
/// </summary>
|
|
[Required]
|
|
[Description("The Apptoken used for authentication")]
|
|
public string AppToken { get; init; } = AppToken;
|
|
|
|
/// <summary>
|
|
/// The Username used for authentication
|
|
/// </summary>
|
|
[Required]
|
|
[Description("The Username used for authentication")]
|
|
public string Username { get; init; } = Username;
|
|
} |