Kavita/API/DTOs/Device/CreateDeviceDto.cs
2025-05-04 07:14:44 -07:00

20 lines
456 B
C#

using System.ComponentModel.DataAnnotations;
using API.Entities.Enums.Device;
namespace API.DTOs.Device;
public sealed record CreateDeviceDto
{
[Required]
public string Name { get; set; } = default!;
/// <summary>
/// Platform of the device. If not know, defaults to "Custom"
/// </summary>
[Required]
public DevicePlatform Platform { get; set; }
[Required]
public string EmailAddress { get; set; } = default!;
}