mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-11-04 03:27:05 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			395 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			395 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.Collections.Generic;
 | 
						|
using System.ComponentModel.DataAnnotations;
 | 
						|
using API.Entities;
 | 
						|
 | 
						|
namespace API.DTOs
 | 
						|
{
 | 
						|
    public class CreateLibraryDto
 | 
						|
    {
 | 
						|
        [Required]
 | 
						|
        public string Name { get; set; }
 | 
						|
        [Required]
 | 
						|
        public LibraryType Type { get; set; }
 | 
						|
        [Required]
 | 
						|
        [MinLength(1)]
 | 
						|
        public IEnumerable<string> Folders { get; set; }
 | 
						|
    }
 | 
						|
} |