mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 20:11:10 +00:00
Implements directory browser dialog, part 3: file system explorer
This commit is contained in:
1 parent
a4f9199d2c
commit
493f34c883
76 files changed
+2377
-437
No files matched your search
@@ -0,0 +1,16 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.FileManagement;
|
||||
|
||||
/// <summary>
|
||||
/// Generic filesystem data transfer object.
|
||||
/// </summary>
|
||||
/// <param name="Path">The path of the file system item.</param>
|
||||
/// <param name="Name">The name of the file system item.</param>
|
||||
/// <param name="DateCreated">The creation date of the file system item.</param>
|
||||
/// <param name="DateModified">The modification date of the file system item.</param>
|
||||
[DebuggerDisplay("{Name}")]
|
||||
public record FileSystemItemModel(string Path, string Name, DateTime DateCreated, DateTime DateModified);
|
||||
@@ -0,0 +1,19 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Lumina.Contracts.Models.FileManagement;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileManagement;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response containing a file system directory.
|
||||
/// </summary>
|
||||
/// <param name="Path">The path of the directory.</param>
|
||||
/// <param name="Name">The name of the directory.</param>
|
||||
/// <param name="DateCreated">The creation date of the directory.</param>
|
||||
/// <param name="DateModified">The modification date of the directory.</param>
|
||||
/// <param name="Items">The children items of the directory.</param>
|
||||
[DebuggerDisplay("{Name} (Directory)")]
|
||||
public record DirectoryResponse(string Path, string Name, DateTime DateCreated, DateTime DateModified, List<FileSystemItemModel> Items) : FileSystemItemModel(Path, Name, DateCreated, DateModified);
|
||||
@@ -0,0 +1,18 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Models.FileManagement;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileManagement;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response containing a file system file.
|
||||
/// </summary>
|
||||
/// <param name="Path">The path of the file.</param>
|
||||
/// <param name="Name">The name of the file.</param>
|
||||
/// <param name="DateCreated">The creation date of the file.</param>
|
||||
/// <param name="DateModified">The modification date of the file.</param>
|
||||
/// <param name="Size">The size of the file, in bytes.</param>
|
||||
[DebuggerDisplay("{Name} (File, Size: {Size} bytes)")]
|
||||
public record FileResponse(string Path, string Name, DateTime DateCreated, DateTime DateModified, long Size) : FileSystemItemModel(Path, Name, DateCreated, DateModified);
|
||||
Reference in new issue
Block a user