Добавление треков
This commit is contained in:
6
PlaylistShared.Shared/DTO/AddTrackByLinkRequest.cs
Normal file
6
PlaylistShared.Shared/DTO/AddTrackByLinkRequest.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace PlaylistShared.Shared.DTO;
|
||||
|
||||
public class AddTrackByLinkRequest
|
||||
{
|
||||
public string Link { get; set; }
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
9
PlaylistShared.Shared/DTO/RemoveTracksRequest.cs
Normal file
9
PlaylistShared.Shared/DTO/RemoveTracksRequest.cs
Normal 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();
|
||||
}
|
||||
8
PlaylistShared.Shared/DTO/YandexPlaylistData.cs
Normal file
8
PlaylistShared.Shared/DTO/YandexPlaylistData.cs
Normal 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();
|
||||
}
|
||||
10
PlaylistShared.Shared/DTO/YandexTrack.cs
Normal file
10
PlaylistShared.Shared/DTO/YandexTrack.cs
Normal 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; } = "";
|
||||
}
|
||||
Reference in New Issue
Block a user