﻿using Newtonsoft.Json;

namespace KerbalStuffSharp.Models
{
    /// <summary>
    /// The model class that represents an error.
    /// </summary>
    public class ErrorInfo
    {
        /// <summary>
        /// <c>true</c> when an error occured; <c>false</c> otherwise.
        /// </summary>
        [JsonProperty("error")]
        public bool Error { get; set; }

        /// <summary>
        /// The error message.
        /// </summary>
        [JsonProperty("reason")]
        public string Reason { get; set; }
    }
}
