Добавление треков

This commit is contained in:
FrigaT
2026-04-13 16:02:10 +03:00
parent 6fb2f90cd8
commit e440529ea1
17 changed files with 510 additions and 114 deletions

View File

@@ -0,0 +1,6 @@
namespace PlaylistShared.Shared.DTO;
public class AddTrackByLinkRequest
{
public string Link { get; set; }
}

View File

@@ -2,11 +2,8 @@
namespace PlaylistShared.Shared.DTO;
public class AddTrackRequest
public class AddTracksRequest
{
[JsonPropertyName("sharedPlaylistToken")]
public string SharedPlaylistToken { get; set; } = null!;
[JsonPropertyName("trackIds")]
public List<string> TrackIds { get; set; } = new();
}

View File

@@ -0,0 +1,9 @@
using System.Text.Json.Serialization;
namespace PlaylistShared.Shared.DTO;
public class RemoveTracksRequest
{
[JsonPropertyName("trackIds")]
public List<string> TrackIds { get; set; } = new();
}

View File

@@ -0,0 +1,8 @@
namespace PlaylistShared.Shared.DTO;
public class YandexPlaylistData
{
public string Title { get; set; } = "";
public string Description { get; set; } = "";
public List<YandexTrack> Tracks { get; set; } = new();
}

View File

@@ -0,0 +1,10 @@
namespace PlaylistShared.Shared.DTO;
public class YandexTrack
{
public string Id { get; set; } = "";
public string Title { get; set; } = "";
public List<string> Artists { get; set; } = new();
public int DurationMs { get; set; }
public string CoverUri { get; set; } = "";
}