Cyrus-Vance_Magic-Conch/CyrusVance.CoolQRobot/ApiCall/Results/GetVersionInfoResult.cs
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace CyrusVance.CoolQRobot.ApiCall.Results {
    ///
    public class GetVersionInfoResult : Base.ApiResult {
        ///
        public GetVersionInfoResult () { }
        /// <summary>
        /// 酷Q实例的各种参数，
        /// 一般在Instance实例化的时候会自动获取，自行调用没有多大意义。
        /// </summary>
        public InstanceVersionInfo instanceVersionInfo { get; private set; }
        ///
        override public void Parse (JToken result) {
            PreCheck (result);
            instanceVersionInfo = raw_data.ToObject<InstanceVersionInfo> ();
        }
    }
    ///
    [JsonObject]
    public class InstanceVersionInfo {
        /// <summary>酷Q的版本，"pro"/"air"</summary>
        public string coolq_edition;
        /// <summary>HTTP API 插件版本</summary>
        public string plugin_version;
        /// <summary>HTTP API 插件 build 号</summary>
        public long plugin_build_number;
        /// <summary>HTTP API 插件编译配置，debug 或 release</summary>
        public string plugin_build_configuration;
        /// <summary>酷 Q 根目录路径</summary>
        public string coolq_directory;
    }
}