Kavita/API/DTOs/UpdateLibraryDto.cs
Joe Milazzo e7618861e0
Pre-Release Shakeout (#1932)
* Allow users to setup an account with a fake email and the same username without hitting the validate username code.

* Fixed a bug where opds url could have //.

Fixed a bug where baseurl wasn't being used for invite link generation

* Fixed enum mismatch causing age rating to display incorrectly on UI
2023-04-16 17:28:21 -07:00

29 lines
793 B
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 IncludeInRecommended { get; init; }
[Required]
public bool IncludeInSearch { get; init; }
[Required]
public bool ManageCollections { get; init; }
[Required]
public bool ManageReadingLists { get; init; }
}