#region ========================================================================= USING ===================================================================================== using System.Diagnostics; #endregion namespace Lumina.Infrastructure.Common.Models.DTO.Configuration; /// /// Data transfer object for deserializing theme engine settings. /// [DebuggerDisplay("Section name: {SECTION_NAME}")] public sealed class ThemeEngineOptionsDto { /// /// The name of the configuration section that holds the theme engine settings. /// public const string SECTION_NAME = "ThemeEngine"; /// /// Gets or sets the directory where installed theme packs are stored, relative to the API base directory when not rooted. /// public string StoragePath { get; set; } = "themes"; /// /// Gets or sets the directory where the theme pack archives shipped with the application are located, relative to the API base directory when not rooted. /// public string BundledThemesPath { get; set; } = "themes/bundled"; /// /// Gets or sets the identifier of the theme selected when no valid current theme is persisted. /// public string DefaultThemeId { get; set; } = "lumina-default"; /// /// Gets or sets the maximum allowed size of an uploaded theme archive, in bytes. /// public long MaxArchiveBytes { get; set; } = 8 * 1024 * 1024; /// /// Gets or sets the maximum allowed total size of an extracted theme pack, in bytes. /// public long MaxExpandedBytes { get; set; } = 24 * 1024 * 1024; /// /// Gets or sets the maximum allowed size of a single file within a theme pack, in bytes. /// public long MaxSingleFileBytes { get; set; } = 6 * 1024 * 1024; /// /// Gets or sets the maximum allowed number of entries in a theme pack archive. /// public int MaxEntries { get; set; } = 250; }