using System.Collections.Generic;
using API.Entities.Enums;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace API.DTOs.Stats;
///
/// Represents information about a Kavita Installation
///
public class ServerInfoDto
{
///
/// Unique Id that represents a unique install
///
public string InstallId { get; set; }
public string Os { get; set; }
///
/// If the Kavita install is using Docker
///
public bool IsDocker { get; set; }
///
/// Version of .NET instance is running
///
public string DotnetVersion { get; set; }
///
/// Version of Kavita
///
public string KavitaVersion { get; set; }
///
/// Number of Cores on the instance
///
public int NumOfCores { get; set; }
///
/// The number of libraries on the instance
///
public int NumberOfLibraries { get; set; }
///
/// Does any user have bookmarks
///
public bool HasBookmarks { get; set; }
///
/// The site theme the install is using
///
/// Introduced in v0.5.2
public string ActiveSiteTheme { get; set; }
///
/// The reading mode the main user has as a preference
///
/// Introduced in v0.5.2
public ReaderMode MangaReaderMode { get; set; }
///
/// Number of users on the install
///
/// Introduced in v0.5.2
public int NumberOfUsers { get; set; }
///
/// Number of collections on the install
///
/// Introduced in v0.5.2
public int NumberOfCollections { get; set; }
///
/// Number of reading lists on the install (Sum of all users)
///
/// Introduced in v0.5.2
public int NumberOfReadingLists { get; set; }
///
/// Is OPDS enabled
///
/// Introduced in v0.5.2
public bool OPDSEnabled { get; set; }
///
/// Total number of files in the instance
///
/// Introduced in v0.5.2
public int TotalFiles { get; set; }
///
/// Total number of Genres in the instance
///
/// Introduced in v0.5.4
public int TotalGenres { get; set; }
///
/// Total number of People in the instance
///
/// Introduced in v0.5.4
public int TotalPeople { get; set; }
///
/// Is this instance storing bookmarks as WebP
///
/// Introduced in v0.5.4
public bool StoreBookmarksAsWebP { get; set; }
///
/// Number of users on this instance using Card Layout
///
/// Introduced in v0.5.4
public int UsersOnCardLayout { get; set; }
///
/// Number of users on this instance using List Layout
///
/// Introduced in v0.5.4
public int UsersOnListLayout { get; set; }
///
/// Max number of Series for any library on the instance
///
/// Introduced in v0.5.4
public int MaxSeriesInALibrary { get; set; }
///
/// Max number of Volumes for any library on the instance
///
/// Introduced in v0.5.4
public int MaxVolumesInASeries { get; set; }
///
/// Max number of Chapters for any library on the instance
///
/// Introduced in v0.5.4
public int MaxChaptersInASeries { get; set; }
///
/// Does this instance have relationships setup between series
///
/// Introduced in v0.5.4
public bool UsingSeriesRelationships { get; set; }
///
/// A list of background colors set on the instance
///
/// Introduced in v0.6.0
public IEnumerable MangaReaderBackgroundColors { get; set; }
///
/// A list of Page Split defaults being used on the instance
///
/// Introduced in v0.6.0
public IEnumerable MangaReaderPageSplittingModes { get; set; }
///
/// A list of Layout Mode defaults being used on the instance
///
/// Introduced in v0.6.0
public IEnumerable MangaReaderLayoutModes { get; set; }
///
/// A list of file formats existing in the instance
///
/// Introduced in v0.6.0
public IEnumerable FileFormats { get; set; }
///
/// If there is at least one user that is using an age restricted profile on the instance
///
/// Introduced in v0.6.0
public bool UsingRestrictedProfiles { get; set; }
}