mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 14:01:11 +00:00
Adds media libraries cancel scan option
This commit is contained in:
1 parent
d6edb0b22b
commit
e862f5de30
77 files changed
+1585
-194
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user