mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12:11:10 +00:00
eliminates region sections
This commit is contained in:
1 parent
705c02b90d
commit
405fc1ff9a
370 files changed
+47
-1618
No files matched your search
@@ -9,7 +9,6 @@ namespace Lumina.Contracts.Models.Common;
|
||||
/// </summary>
|
||||
public interface IStorageEntity
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets or sets the identifier of the entity.
|
||||
/// </summary>
|
||||
@@ -24,5 +23,4 @@ public interface IStorageEntity
|
||||
/// The time and date when the entity was updated.
|
||||
/// </summary>
|
||||
DateTime? Updated { get; set; }
|
||||
#endregion
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
@@ -13,4 +13,9 @@ namespace Lumina.Contracts.Models.FileManagement;
|
||||
/// <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);
|
||||
public record FileSystemItemModel(
|
||||
string Path,
|
||||
string Name,
|
||||
DateTime DateCreated,
|
||||
DateTime DateModified
|
||||
);
|
||||
@@ -13,7 +13,6 @@ namespace Lumina.Contracts.Models.WrittenContentLibrary.BookLibrary;
|
||||
[DebuggerDisplay("{Title}")]
|
||||
public class BookModel : IStorageEntity
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets the Id of the media item.
|
||||
/// </summary>
|
||||
@@ -204,5 +203,4 @@ public class BookModel : IStorageEntity
|
||||
/// Gets the optional time and date when the entity was updated.
|
||||
/// </summary>
|
||||
public DateTime? Updated { get; set; }
|
||||
#endregion
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Models.FileManagement;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -16,4 +16,10 @@ namespace Lumina.Contracts.Responses.FileManagement;
|
||||
/// <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);
|
||||
public record DirectoryResponse(
|
||||
string Path,
|
||||
string Name,
|
||||
DateTime DateCreated,
|
||||
DateTime DateModified,
|
||||
List<FileSystemItemModel> Items
|
||||
) : FileSystemItemModel(Path, Name, DateCreated, DateModified);
|
||||
@@ -1,4 +1,4 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Models.FileManagement;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
@@ -15,4 +15,10 @@ namespace Lumina.Contracts.Responses.FileManagement;
|
||||
/// <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);
|
||||
public record FileResponse(
|
||||
string Path,
|
||||
string Name,
|
||||
DateTime DateCreated,
|
||||
DateTime DateModified,
|
||||
long Size
|
||||
) : FileSystemItemModel(Path, Name, DateCreated, DateModified);
|
||||
@@ -12,7 +12,6 @@ namespace Lumina.Contracts.Responses.FileManagement;
|
||||
[DebuggerDisplay("{Path}")]
|
||||
public class FileSystemTreeNodeResponse
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets or sets the full path of the file or directory.
|
||||
/// </summary>
|
||||
@@ -42,5 +41,4 @@ public class FileSystemTreeNodeResponse
|
||||
/// Gets or sets the list of child nodes.
|
||||
/// </summary>
|
||||
public List<FileSystemTreeNodeResponse> Children { get; set; } = [];
|
||||
#endregion
|
||||
}
|
||||
@@ -11,4 +11,7 @@ namespace Lumina.Contracts.Responses.FileManagement;
|
||||
/// <param name="Type">The type of the thumbnail image.</param>
|
||||
/// <param name="Bytes">The bytes representing the thumbail.</param>
|
||||
[DebuggerDisplay("{Type}")]
|
||||
public record ThumbnailResponse(ImageType Type, byte[] Bytes);
|
||||
public record ThumbnailResponse(
|
||||
ImageType Type,
|
||||
byte[] Bytes
|
||||
);
|
||||
Reference in new issue
Block a user