using Newtonsoft.Json; using System.Collections.Generic; namespace Sony.Filtr.ApolloAPI.Models.Apple { public class AppleChartResponse { public AppleChartResults results { get; set; } } public class AppleChartResults { public List albums { get; set; } public List songs { get; set; } public List playlists { get; set; } [JsonProperty(PropertyName = "music-videos")] public List musicVideos { get; set; } } public class AppleChartAlbum { public string chart { get; set; } public List data { get; set; } public string href { get; set; } public string name { get; set; } public string next { get; set; } } public class AppleChartAlbumData { public ChartAlbumAttributes attributes { get; set; } public string href { get; set; } public long id { get; set; } public string type { get; set; } } public class ChartAlbumAttributes { public string artistName { get; set; } public AppleArtwork artwork { get; set; } public string copyright { get; set; } public AppleEditorialNotes editorialNotes { get; set; } public List genreNames { get; set; } public bool isComplete { get; set; } public bool isSingle { get; set; } public string name { get; set; } public ApplePlayParams playParams { get; set; } public string releaseDate { get; set; } public int trackCount { get; set; } public string url { get; set; } } public class AppleEditorialNotes { public string @short { get; set; } public string standard { get; set; } } public class AppleChartSong { public string chart { get; set; } public List data { get; set; } public string href { get; set; } public string name { get; set; } public string next { get; set; } } public class AppleChartMusicVideo { public string name { get; set; } public string chart { get; set; } public string href { get; set; } public string next { get; set; } public List data { get; set; } } public class AppleChartMusicVideoData { public long id { get; set; } public string type { get; set; } public string href { get; set; } public AppleChartMusicVideoAttributes attributes { get; set; } } public class AppleChartMusicVideoAttributes { public string url { get; set; } public string name { get; set; } public List genreNames { get; set; } public string artistName { get; set; } public string releaseDate { get; set; } public AppleArtwork artwork { get; set; } public ApplePlayParams playParams { get; set; } public string contentRating { get; set; } public int durationInMillis { get; set; } } public class AppleChartPlaylist { public string name { get; set; } public string chart { get; set; } public string href { get; set; } public string next { get; set; } public List data { get; set; } } public class AppleChartPlaylistData { public string id { get; set; } public string type { get; set; } public AppleChartPlaylistAttributes attributes { get; set; } public string href { get; set; } } public class AppleChartPlaylistAttributes { public AppleArtwork artwork { get; set; } public bool isChart { get; set; } public string url { get; set; } public string lastModifiedDate { get; set; } public string name { get; set; } public string playlistType { get; set; } public string curatorName { get; set; } public ApplePlayParams playParams { get; set; } public AppleEditorialNotes description { get; set; } } public class AppleFullChartViewModel { public AppleFullChartViewModel() { Albums = new Dictionary>(); Songs = new Dictionary>(); MusicVideos = new Dictionary>(); Playlists = new Dictionary>(); } public Dictionary> MusicVideos { get; set; } public Dictionary> Songs { get; set; } public Dictionary> Albums { get; set; } public Dictionary> Playlists { get; set; } } }