mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +00:00
25 lines
945 B
C#
25 lines
945 B
C#
#region ========================================================================= USING =====================================================================================
|
|
using Lumina.Application.Core.FileSystemManagement.Paths.Queries.ValidatePath;
|
|
using Lumina.Contracts.Requests.FileSystemManagement.Path;
|
|
#endregion
|
|
|
|
namespace Lumina.Application.Common.Mapping.FileSystemManagement.Paths;
|
|
|
|
/// <summary>
|
|
/// Extension methods for converting <see cref="ValidatePathRequest"/>.
|
|
/// </summary>
|
|
public static class ValidatePathRequestMapping
|
|
{
|
|
/// <summary>
|
|
/// Converts <paramref name="request"/> to <see cref="ValidatePathQuery"/>.
|
|
/// </summary>
|
|
/// <param name="request">The request to be converted.</param>
|
|
/// <returns>The converted query.</returns>
|
|
public static ValidatePathQuery ToQuery(this ValidatePathRequest request)
|
|
{
|
|
return new ValidatePathQuery(
|
|
request.Path
|
|
);
|
|
}
|
|
}
|