mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-23 07:20:32 -04:00
20 lines
456 B
C#
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!;
|
|
|
|
|
|
}
|