Adds dynamic path templates for media libraries, so that the scanner can derive the meaning of each path part

This commit is contained in:
BinaryAlley committed 2026-10-05 18:42:00 +03:00
1 parent 62b0e9297a
commit ca4f308b0a
86 files changed
+7406 -151

No files matched your search

@@ -0,0 +1,27 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.Libraries;
/// <summary>
/// Data transfer object for one part of the path template of a media library.
/// </summary>
[DebuggerDisplay("Kind: {Kind}; Representation: {Representation}")]
public class LibraryPathTemplatePartDto
{
/// <summary>
/// Gets or sets the kind of the path part.
/// </summary>
public string Kind { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the literal text or the value mask of the path part.
/// </summary>
public string Representation { get; set; } = string.Empty;
/// <summary>
/// Gets or sets whether the path part can be absent from the path.
/// </summary>
public bool IsOptional { get; set; }
}