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

21 lines
416 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace SpotifyAPI.SpotifyWebAPI.Models
{
public abstract class BasicModel
{
[JsonProperty("error")]
public Error ErrorResponse { get; set; }
public Boolean HasError()
{
return ErrorResponse != null;
}
}
}