mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-10-26 00:02:29 -04:00
* Added the code for Library Settings to allow turning off Reading List creation. * Fixed a typo
50 lines
1.6 KiB
C#
50 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using API.Entities.Enums;
|
|
|
|
namespace API.DTOs;
|
|
|
|
public class LibraryDto
|
|
{
|
|
public int Id { get; init; }
|
|
public string? Name { get; init; }
|
|
/// <summary>
|
|
/// Last time Library was scanned
|
|
/// </summary>
|
|
public DateTime LastScanned { get; init; }
|
|
public LibraryType Type { get; init; }
|
|
/// <summary>
|
|
/// An optional Cover Image or null
|
|
/// </summary>
|
|
public string? CoverImage { get; init; }
|
|
/// <summary>
|
|
/// If Folder Watching is enabled for this library
|
|
/// </summary>
|
|
public bool FolderWatching { get; set; } = true;
|
|
/// <summary>
|
|
/// Include Library series on Dashboard Streams
|
|
/// </summary>
|
|
public bool IncludeInDashboard { get; set; } = true;
|
|
/// <summary>
|
|
/// Include Library series on Recommended Streams
|
|
/// </summary>
|
|
public bool IncludeInRecommended { get; set; } = true;
|
|
/// <summary>
|
|
/// Should this library create and manage collections from Metadata
|
|
/// </summary>
|
|
public bool ManageCollections { get; set; } = true;
|
|
/// <summary>
|
|
/// Should this library create and manage reading lists from Metadata
|
|
/// </summary>
|
|
public bool ManageReadingLists { get; set; } = true;
|
|
/// <summary>
|
|
/// Include library series in Search
|
|
/// </summary>
|
|
public bool IncludeInSearch { get; set; } = true;
|
|
public ICollection<string> Folders { get; init; } = new List<string>();
|
|
/// <summary>
|
|
/// When showing series, only parent series or series with no relationships will be returned
|
|
/// </summary>
|
|
public bool CollapseSeriesRelationships { get; set; } = false;
|
|
}
|