Upload playlist image
This commit is contained in:
@@ -1,10 +1,28 @@
|
||||
namespace Musify.Application.PlayLists.Contracts
|
||||
using Musify.Domain.Entities;
|
||||
|
||||
namespace Musify.Application.PlayLists.Contracts
|
||||
{
|
||||
public record PlayListResponse(
|
||||
Guid Id,
|
||||
string Name,
|
||||
string Description,
|
||||
string ImageName,
|
||||
string SmallImageKeyName,
|
||||
string MediumImageKeyName,
|
||||
string LargeImageKeyName,
|
||||
DateTime CreatedAt,
|
||||
DateTime UpdatedAt);
|
||||
DateTime UpdatedAt)
|
||||
{
|
||||
public static PlayListResponse Map(PlayList playList)
|
||||
{
|
||||
return new PlayListResponse(
|
||||
playList.Id,
|
||||
playList.Name,
|
||||
playList.Description,
|
||||
playList.SmallPictureKeyName,
|
||||
playList.MediumPictureKeyName,
|
||||
playList.LargePictureKeyName,
|
||||
playList.CreatedDate,
|
||||
playList.UpdatedDate);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user