mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:13:42 +00:00
Adds a restore action for soft deleted bundled themes
This commit is contained in:
1 parent
15945c2e56
commit
7e54c990ad
49 files changed
+1666
-26
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Application.Core.Themes.Management.Commands.RestoreTheme;
|
||||
using Lumina.Contracts.Requests.Themes;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Common.Mapping.Themes;
|
||||
|
||||
/// <summary>
|
||||
/// Extension methods for converting <see cref="RestoreThemeRequest"/>.
|
||||
/// </summary>
|
||||
public static class RestoreThemeRequestMapping
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts <paramref name="request"/> to <see cref="RestoreThemeCommand"/>.
|
||||
/// </summary>
|
||||
/// <param name="request">The request to be converted.</param>
|
||||
/// <returns>The converted command.</returns>
|
||||
public static RestoreThemeCommand ToCommand(this RestoreThemeRequest request)
|
||||
{
|
||||
return new RestoreThemeCommand(request.ThemeId);
|
||||
}
|
||||
}
|
||||
@@ -27,6 +27,7 @@ public static class ThemeEntityMapping
|
||||
theme.PreviewPath,
|
||||
theme.InstallSource,
|
||||
theme.IsCurrent,
|
||||
theme.InstalledAtUtc);
|
||||
theme.InstalledAtUtc,
|
||||
theme.IsDeleted);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user