mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-11-04 03:27:05 -05:00 
			
		
		
		
	Co-authored-by: Fesaa <77553571+Fesaa@users.noreply.github.com> Co-authored-by: Weblate (bot) <hosted@weblate.org> Co-authored-by: Gregory.Open <gregory.open@proton.me> Co-authored-by: Mateusz <mateuszvx8.96@gmail.com> Co-authored-by: majora2007 <kavitareader@gmail.com> Co-authored-by: 無情天 <kofzhanganguo@126.com>
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.Collections.Generic;
 | 
						|
using System.ComponentModel.DataAnnotations;
 | 
						|
using API.Entities.Enums;
 | 
						|
 | 
						|
namespace API.DTOs;
 | 
						|
 | 
						|
public class UpdateLibraryDto
 | 
						|
{
 | 
						|
    [Required]
 | 
						|
    public int Id { get; init; }
 | 
						|
    [Required]
 | 
						|
    public required string Name { get; init; }
 | 
						|
    [Required]
 | 
						|
    public LibraryType Type { get; set; }
 | 
						|
    [Required]
 | 
						|
    public required IEnumerable<string> Folders { get; init; }
 | 
						|
    [Required]
 | 
						|
    public bool FolderWatching { get; init; }
 | 
						|
    [Required]
 | 
						|
    public bool IncludeInDashboard { get; init; }
 | 
						|
    [Required]
 | 
						|
    public bool IncludeInSearch { get; init; }
 | 
						|
    [Required]
 | 
						|
    public bool ManageCollections { get; init; }
 | 
						|
    [Required]
 | 
						|
    public bool ManageReadingLists { get; init; }
 | 
						|
    [Required]
 | 
						|
    public bool AllowScrobbling { get; init; }
 | 
						|
    /// <summary>
 | 
						|
    /// What types of files to allow the scanner to pickup
 | 
						|
    /// </summary>
 | 
						|
    [Required]
 | 
						|
    public ICollection<FileTypeGroup> FileGroupTypes { get; init; }
 | 
						|
    /// <summary>
 | 
						|
    /// A set of Glob patterns that the scanner will exclude processing
 | 
						|
    /// </summary>
 | 
						|
    [Required]
 | 
						|
    public ICollection<string> ExcludePatterns { get; init; }
 | 
						|
}
 |