mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-12-21 12:27:21 -05:00
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com> Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
20 lines
478 B
C#
20 lines
478 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using API.Entities.Enums.Device;
|
|
|
|
namespace API.DTOs.Device.EmailDevice;
|
|
|
|
public sealed record CreateEmailDeviceDto
|
|
{
|
|
[Required]
|
|
public string Name { get; set; } = default!;
|
|
/// <summary>
|
|
/// Platform of the device. If not know, defaults to "Custom"
|
|
/// </summary>
|
|
[Required]
|
|
public EmailDevicePlatform Platform { get; set; }
|
|
[Required]
|
|
public string EmailAddress { get; set; } = default!;
|
|
|
|
|
|
}
|