Spotify.NET/SpotifyAPI/Web/Models/BasicModel.cs

16 lines
287 B
C#
Raw Normal View History

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