GET /tracks/users/{userId} accepts repeated status values and returns the
albums each track belongs to. GET /tracks/users/{userId}/status-counts,
GET /albums/{id}/tracks/ids and DELETE /tracks with a list of track ids
are new.
21 lines
548 B
C#
21 lines
548 B
C#
using Musify.Domain.ValueObjects;
|
|
|
|
namespace Musify.Application.Tracks.Responses
|
|
{
|
|
public record TrackAlbumReference(Guid Id, string Title);
|
|
|
|
public record UserTrackApplicationResponse(
|
|
Guid Id,
|
|
string Title,
|
|
string? Artist,
|
|
ProcessingStatus AudioStatus,
|
|
double Duration,
|
|
int ListensCount,
|
|
DateTime CreatedAt,
|
|
DateTime UpdatedAt,
|
|
long OwnerUserId,
|
|
IReadOnlyCollection<Genre> Tags,
|
|
bool IsExplicit,
|
|
IReadOnlyList<TrackAlbumReference> Albums);
|
|
}
|