Spotify.NET/SpotifyAPI.Web/Models/Response/Image.cs
Lewis-Fam 9dbd210a2f
Fixed issues #926, and #928. (#942)
* Fixed issues #926, and #928.
Added JsonConverter attributes to properties.

* Fixed complier warning CA1305
2024-02-10 11:03:22 +01:00

15 lines
302 B
C#

using Newtonsoft.Json;
namespace SpotifyAPI.Web
{
public class Image
{
[JsonConverter(typeof(DoubleToIntConverter))]
public int Height { get; set; }
[JsonConverter(typeof(DoubleToIntConverter))]
public int Width { get; set; }
public string Url { get; set; } = default!;
}
}