mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +00:00
25 lines
939 B
C#
25 lines
939 B
C#
#region ========================================================================= USING =====================================================================================
|
|
using Lumina.Application.Core.MediaLibrary.Management.Commands.ScanLibrary;
|
|
using Lumina.Contracts.Requests.MediaLibrary.Management;
|
|
#endregion
|
|
|
|
namespace Lumina.Application.Common.Mapping.MediaLibrary.Management;
|
|
|
|
/// <summary>
|
|
/// Extension methods for converting <see cref="ScanLibraryRequest"/>.
|
|
/// </summary>
|
|
public static class ScanLibraryRequestMapping
|
|
{
|
|
/// <summary>
|
|
/// Converts <paramref name="request"/> to <see cref="ScanLibraryCommand"/>.
|
|
/// </summary>
|
|
/// <param name="request">The request to be converted.</param>
|
|
/// <returns>The converted command.</returns>
|
|
public static ScanLibraryCommand ToCommand(this ScanLibraryRequest request)
|
|
{
|
|
return new ScanLibraryCommand(
|
|
request.Id
|
|
);
|
|
}
|
|
}
|