Spotify.NET/SpotifyAPI/Web/Models/BasicModel.cs
2015-07-07 18:11:11 +02:00

16 lines
287 B
C#

using System;
using Newtonsoft.Json;
namespace SpotifyAPI.Web.Models
{
public abstract class BasicModel
{
[JsonProperty("error")]
public Error Error { get; set; }
public Boolean HasError()
{
return Error != null;
}
}
}