From 31499bbb5e49f7b0fe1598cc4d22d1feb7cf221f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sercan=20G=C3=BCnver?= Date: Tue, 9 Jan 2024 22:24:42 +0300 Subject: [PATCH] spotify api fields int to double type changes --- SpotifyAPI.Web/Models/Response/Followers.cs | 2 +- SpotifyAPI.Web/Models/Response/FullAlbum.cs | 2 +- SpotifyAPI.Web/Models/Response/FullArtist.cs | 2 +- SpotifyAPI.Web/Models/Response/Image.cs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SpotifyAPI.Web/Models/Response/Followers.cs b/SpotifyAPI.Web/Models/Response/Followers.cs index 21d7365a9..c4a61c8fe 100644 --- a/SpotifyAPI.Web/Models/Response/Followers.cs +++ b/SpotifyAPI.Web/Models/Response/Followers.cs @@ -4,7 +4,7 @@ public class Followers { public string Href { get; set; } = default!; - public int Total { get; set; } + public double Total { get; set; } } } diff --git a/SpotifyAPI.Web/Models/Response/FullAlbum.cs b/SpotifyAPI.Web/Models/Response/FullAlbum.cs index 0439bf89b..f118dc94e 100644 --- a/SpotifyAPI.Web/Models/Response/FullAlbum.cs +++ b/SpotifyAPI.Web/Models/Response/FullAlbum.cs @@ -16,7 +16,7 @@ public class FullAlbum public List Images { get; set; } = default!; public string Label { get; set; } = default!; public string Name { get; set; } = default!; - public int Popularity { get; set; } + public double Popularity { get; set; } public string ReleaseDate { get; set; } = default!; public string ReleaseDatePrecision { get; set; } = default!; public Dictionary Restrictions { get; set; } = default!; diff --git a/SpotifyAPI.Web/Models/Response/FullArtist.cs b/SpotifyAPI.Web/Models/Response/FullArtist.cs index dad284473..11ff7a1da 100644 --- a/SpotifyAPI.Web/Models/Response/FullArtist.cs +++ b/SpotifyAPI.Web/Models/Response/FullArtist.cs @@ -11,7 +11,7 @@ public class FullArtist public string Id { get; set; } = default!; public List Images { get; set; } = default!; public string Name { get; set; } = default!; - public int Popularity { get; set; } + public double Popularity { get; set; } public string Type { get; set; } = default!; public string Uri { get; set; } = default!; } diff --git a/SpotifyAPI.Web/Models/Response/Image.cs b/SpotifyAPI.Web/Models/Response/Image.cs index 83d70e59d..d6170ef8e 100644 --- a/SpotifyAPI.Web/Models/Response/Image.cs +++ b/SpotifyAPI.Web/Models/Response/Image.cs @@ -2,8 +2,8 @@ namespace SpotifyAPI.Web { public class Image { - public int Height { get; set; } - public int Width { get; set; } + public double Height { get; set; } + public double Width { get; set; } public string Url { get; set; } = default!; } }