Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

855 B
Raw Blame
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 IncludeInRecommended { 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; }
}