mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 23:11:10 +00:00
45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
#region ========================================================================= USING =====================================================================================
|
|
using Lumina.Presentation.Web.Common.Enums.FileSystem;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
#endregion
|
|
|
|
namespace Lumina.Presentation.Web.Common.DTO.FileSystemManagement;
|
|
|
|
/// <summary>
|
|
/// Data transfer object for a file system node.
|
|
/// </summary>
|
|
[DebuggerDisplay("Path: {Path}")]
|
|
public class FileSystemTreeNodeDto
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the full path of the file or directory.
|
|
/// </summary>
|
|
public string Path { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the name of the file or directory.
|
|
/// </summary>
|
|
public string Name { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the type of the item, indicating whether it is a file, directory, or drive.
|
|
/// </summary>
|
|
public FileSystemItemType ItemType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether the node is expanded.
|
|
/// </summary>
|
|
public bool IsExpanded { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether the child nodes have been loaded.
|
|
/// </summary>
|
|
public bool ChildrenLoaded { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the list of child nodes.
|
|
/// </summary>
|
|
public List<FileSystemTreeNodeDto> Children { get; set; } = [];
|
|
}
|