Skip to content
Permalink
d90c5b6631
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
248 lines (173 sloc) 5.83 KB
namespace app.Models;
public class Album {
[JsonPropertyName("album_type")]
public string AlbumType { get; set; }
[JsonPropertyName("artists")]
public List<Artist> Artists { get; set; }
[JsonPropertyName("available_markets")]
public List<string> AvailableMarkets { get; set; }
[JsonPropertyName("external_urls")]
public ExternalUrls ExternalUrls { get; set; }
[JsonPropertyName("href")]
public string Href { get; set; }
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("images")]
public List<Image> Images { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("release_date")]
public string ReleaseDate { get; set; }
[JsonPropertyName("release_date_precision")]
public string ReleaseDatePrecision { get; set; }
[JsonPropertyName("total_tracks")]
public int TotalTracks { get; set; }
[JsonPropertyName("type")]
public string Type { get; set; }
[JsonPropertyName("uri")]
public string Uri { get; set; }
}
public class Albums {
[JsonPropertyName("href")]
public string Href { get; set; }
[JsonPropertyName("items")]
public List<Album> Items { get; set; }
[JsonPropertyName("limit")]
public int Limit { get; set; }
[JsonPropertyName("next")]
public string Next { get; set; }
[JsonPropertyName("offset")]
public int Offset { get; set; }
[JsonPropertyName("previous")]
public object Previous { get; set; }
[JsonPropertyName("total")]
public int Total { get; set; }
}
public class Artist {
[JsonPropertyName("external_urls")]
public ExternalUrls ExternalUrls { get; set; }
[JsonPropertyName("href")]
public string Href { get; set; }
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("type")]
public string Type { get; set; }
[JsonPropertyName("uri")]
public string Uri { get; set; }
[JsonPropertyName("images")]
public List<Image> Images { get; set; }
}
public class Artists {
[JsonPropertyName("href")]
public string Href { get; set; }
[JsonPropertyName("items")]
public List<Artist> Items { get; set; }
[JsonPropertyName("limit")]
public int Limit { get; set; }
[JsonPropertyName("next")]
public string Next { get; set; }
[JsonPropertyName("offset")]
public int Offset { get; set; }
[JsonPropertyName("previous")]
public object Previous { get; set; }
[JsonPropertyName("total")]
public int Total { get; set; }
}
public class ExternalIds {
[JsonPropertyName("isrc")]
public string Isrc { get; set; }
}
public class ExternalUrls {
[JsonPropertyName("spotify")]
public string Spotify { get; set; }
}
public class Followers {
[JsonPropertyName("href")]
public object Href { get; set; }
[JsonPropertyName("total")]
public int Total { get; set; }
}
public class Image {
[JsonPropertyName("height")]
public int Height { get; set; }
[JsonPropertyName("url")]
public string Url { get; set; }
[JsonPropertyName("width")]
public int Width { get; set; }
}
public class Track {
[JsonPropertyName("album_type")]
public string AlbumType { get; set; }
[JsonPropertyName("artists")]
public List<Artist> Artists { get; set; }
[JsonPropertyName("available_markets")]
public List<string> AvailableMarkets { get; set; }
[JsonPropertyName("external_urls")]
public ExternalUrls ExternalUrls { get; set; }
[JsonPropertyName("href")]
public string Href { get; set; }
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("images")]
public List<Image> Images { get; set; } = new();
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("release_date")]
public string ReleaseDate { get; set; }
[JsonPropertyName("release_date_precision")]
public string ReleaseDatePrecision { get; set; }
[JsonPropertyName("total_tracks")]
public int TotalTracks { get; set; }
[JsonPropertyName("type")]
public string Type { get; set; }
[JsonPropertyName("uri")]
public string Uri { get; set; }
[JsonPropertyName("followers")]
public Followers Followers { get; set; }
[JsonPropertyName("genres")]
public List<string> Genres { get; set; }
[JsonPropertyName("popularity")]
public int Popularity { get; set; }
[JsonPropertyName("album")]
public Album Album { get; set; }
[JsonPropertyName("disc_number")]
public int DiscNumber { get; set; }
[JsonPropertyName("duration_ms")]
public int DurationMs { get; set; }
[JsonPropertyName("explicit")]
public bool Explicit { get; set; }
[JsonPropertyName("external_ids")]
public ExternalIds ExternalIds { get; set; }
[JsonPropertyName("is_local")]
public bool IsLocal { get; set; }
[JsonPropertyName("preview_url")]
public string PreviewUrl { get; set; }
[JsonPropertyName("track_number")]
public int TrackNumber { get; set; }
}
public class SearchResult {
[JsonPropertyName("albums")]
public Albums Albums { get; set; }
[JsonPropertyName("artists")]
public Artists Artists { get; set; }
[JsonPropertyName("tracks")]
public Tracks Tracks { get; set; }
}
public class Tracks {
[JsonPropertyName("href")]
public string Href { get; set; }
[JsonPropertyName("items")]
public List<Track> Items { get; set; }
[JsonPropertyName("limit")]
public int Limit { get; set; }
[JsonPropertyName("next")]
public string Next { get; set; }
[JsonPropertyName("offset")]
public int Offset { get; set; }
[JsonPropertyName("previous")]
public object Previous { get; set; }
[JsonPropertyName("total")]
public int Total { get; set; }
}