Files
Nemera/src/Lumina.Application/Common/Mapping/FileSystemManagement/Paths/GetPathRootRequestMapping.cs
T

23 lines
916 B
C#

#region ========================================================================= USING =====================================================================================
using Lumina.Application.Core.FileSystemManagement.Paths.Queries.GetPathRoot;
using Lumina.Contracts.Requests.FileSystemManagement.Path;
#endregion
namespace Lumina.Application.Common.Mapping.FileSystemManagement.Paths;
/// <summary>
/// Extension methods for converting <see cref="GetPathRootRequest"/>.
/// </summary>
public static class GetPathRootRequestMapping
{
/// <summary>
/// Converts <paramref name="request"/> to <see cref="GetPathRootQuery"/>.
/// </summary>
/// <param name="request">The request to be converted.</param>
/// <returns>The converted query.</returns>
public static GetPathRootQuery ToQuery(this GetPathRootRequest request)
{
return new GetPathRootQuery(request.Path);
}
}