mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-11-03 19:17:05 -05: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!;
 | 
						|
 | 
						|
 | 
						|
}
 |