This commit is contained in:
2026-03-21 20:33:15 +01:00
parent 801bf08337
commit 2c3b84a233
39 changed files with 92 additions and 88 deletions
@@ -0,0 +1,28 @@
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);
}
}
}