Files
Musify/Application/PlayLists/Responses/PlayListResponse.cs
T
2026-03-21 20:33:15 +01:00

28 lines
803 B
C#

using Musify.Domain.Entities;
namespace Musify.Application.PlayLists.Responses
{
public record PlayListResponse(
Guid Id,
string Name,
string Description,
string SmallImageKeyName,
string MediumImageKeyName,
string LargeImageKeyName,
DateTime CreatedAt,
DateTime UpdatedAt)
{
public static PlayListResponse FromEntity(PlayList playList)
{
return new PlayListResponse(
playList.Id,
playList.Name,
playList.Description,
playList.SmallPictureKeyName,
playList.MediumPictureKeyName,
playList.LargePictureKeyName,
playList.CreatedDate,
playList.UpdatedDate);
}
}
}