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

20 lines
501 B
C#

using System.ComponentModel.DataAnnotations;
using API.Entities.Enums.Device;
namespace API.DTOs.Device;
public sealed record UpdateDeviceDto
{
[Required]
public int Id { get; set; }
[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!;
}