#region ========================================================================= USING =====================================================================================
using Lumina.Application.Core.Themes.Management.Commands.InstallTheme;
using Lumina.Contracts.Requests.Themes;
using System.IO;
#endregion
namespace Lumina.Application.Common.Mapping.Themes;
///
/// Extension methods for converting .
///
public static class InstallThemeRequestMapping
{
///
/// Converts to .
///
/// The request to be converted.
/// The ZIP archive stream of the theme pack.
/// The file name of the uploaded archive.
/// The converted command.
public static InstallThemeCommand ToCommand(this InstallThemeRequest request, Stream? archive, string? fileName)
{
return new InstallThemeCommand(archive, fileName);
}
}