mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +00:00
23 lines
956 B
C#
23 lines
956 B
C#
#region ========================================================================= USING =====================================================================================
|
|
using Lumina.Application.Core.Plugins.Commands.UpdatePluginSettings;
|
|
using Lumina.Contracts.Requests.Plugins;
|
|
#endregion
|
|
|
|
namespace Lumina.Application.Common.Mapping.Plugins;
|
|
|
|
/// <summary>
|
|
/// Extension methods for converting <see cref="UpdatePluginSettingsRequest"/>.
|
|
/// </summary>
|
|
public static class UpdatePluginSettingsRequestMapping
|
|
{
|
|
/// <summary>
|
|
/// Converts <paramref name="request"/> to <see cref="UpdatePluginSettingsCommand"/>.
|
|
/// </summary>
|
|
/// <param name="request">The request to be converted.</param>
|
|
/// <returns>The converted command.</returns>
|
|
public static UpdatePluginSettingsCommand ToCommand(this UpdatePluginSettingsRequest request)
|
|
{
|
|
return new UpdatePluginSettingsCommand(request.PluginId, request.Settings);
|
|
}
|
|
}
|