mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 05:11:10 +00:00
30 lines
1.3 KiB
C#
30 lines
1.3 KiB
C#
#region ========================================================================= USING =====================================================================================
|
|
using Nemera.Presentation.Web.Common.DTO.Common;
|
|
using Nemera.Presentation.Web.Common.Enums.Playlists;
|
|
using System;
|
|
using System.Diagnostics;
|
|
#endregion
|
|
|
|
namespace Nemera.Presentation.Web.Common.DTO.Playlists;
|
|
|
|
/// <summary>
|
|
/// Data transfer object for a playlist together with a page of its ordered entries.
|
|
/// </summary>
|
|
/// <param name="Id">The Id of the playlist.</param>
|
|
/// <param name="Name">The name of the playlist.</param>
|
|
/// <param name="Description">The description of the playlist, if applicable.</param>
|
|
/// <param name="Type">The kind of media the playlist holds.</param>
|
|
/// <param name="Entries">The page of ordered entries of the playlist, together with its pagination metadata.</param>
|
|
/// <param name="CreatedOnUtc">The date and time when the playlist was created.</param>
|
|
/// <param name="UpdatedOnUtc">The date and time when the playlist was last updated, if applicable.</param>
|
|
[DebuggerDisplay("Id: {Id}; Name: {Name}; Entries: {Entries.Count}")]
|
|
public sealed record PlaylistDto(
|
|
Guid Id,
|
|
string Name,
|
|
string? Description,
|
|
PlaylistType Type,
|
|
PaginatedDto<PlaylistEntryDto> Entries,
|
|
DateTime CreatedOnUtc,
|
|
DateTime? UpdatedOnUtc
|
|
);
|