mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +00:00
26 lines
1.0 KiB
C#
26 lines
1.0 KiB
C#
#region ========================================================================= USING =====================================================================================
|
|
using Lumina.Contracts.Responses.FileSystemManagement.Thumbnails;
|
|
using Lumina.Domain.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.ValueObjects;
|
|
#endregion
|
|
|
|
namespace Lumina.Application.Common.Mapping.FileSystemManagement.Thumbnails;
|
|
|
|
/// <summary>
|
|
/// Extension methods for converting <see cref="Thumbnail"/>.
|
|
/// </summary>
|
|
public static class ThumbnailMapping
|
|
{
|
|
/// <summary>
|
|
/// Converts <paramref name="domainEntity"/> to <see cref="ThumbnailResponse"/>.
|
|
/// </summary>
|
|
/// <param name="domainEntity">The domain entity to be converted.</param>
|
|
/// <returns>The converted response.</returns>
|
|
public static ThumbnailResponse ToResponse(this Thumbnail domainEntity)
|
|
{
|
|
return new ThumbnailResponse(
|
|
domainEntity.Type,
|
|
domainEntity.Bytes
|
|
);
|
|
}
|
|
}
|