#region ========================================================================= USING ===================================================================================== using Lumina.Domain.Common.Enums.FileSystem; using Lumina.Contracts.Responses.FileSystemManagement.Common; using Lumina.Domain.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Entities; #endregion namespace Lumina.Application.Common.Mapping.FileSystemManagement.FileSystem; /// /// Extension methods for converting . /// public static class WindowsRootItemMapping { /// /// Converts to . /// /// The domain entity to be converted. /// The converted response. public static FileSystemTreeNodeResponse ToTreeNodeResponse(this WindowsRootItem domainEntity) { return new FileSystemTreeNodeResponse() { Path = domainEntity.Id.Path, Name = domainEntity.Name, ItemType = FileSystemItemType.Root, IsExpanded = false }; } }