27 lines
904 B
C#
27 lines
904 B
C#
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Tesses.YouTubeDownloader2025Companion;
|
|
|
|
|
|
public class SongQuery
|
|
{
|
|
[JsonPropertyName("recordings")]
|
|
public List<SongQueryRecording> Recordings {get;set;}=new List<SongQueryRecording>();
|
|
|
|
public class SongQueryRecording
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public Guid Id {get;set;}
|
|
|
|
[JsonPropertyName("title")]
|
|
public string Name {get;set;}="";
|
|
|
|
[JsonPropertyName("length")]
|
|
public long Length {get;set;}
|
|
|
|
[JsonPropertyName("artist-credit")]
|
|
public List<AlbumSongQuery.AlbumSongQueryMedia.AlbumSongQueryMediaTrack.AlbumSongQueryMediaTrackRecording.AlbumSongQueryMediaTrackRecordingArtists> ContributingArtists {get;set;}=new List<AlbumSongQuery.AlbumSongQueryMedia.AlbumSongQueryMediaTrack.AlbumSongQueryMediaTrackRecording.AlbumSongQueryMediaTrackRecordingArtists>();
|
|
|
|
}
|
|
} |