using System; using Crestron.SimplSharp.Reflection; using Newtonsoft.Json; namespace PepperDash.Essentials.Core.Config { /// /// Represents the info section of a Config file /// public class InfoConfig { [JsonProperty("name")] public string Name { get; set; } [JsonProperty("date")] public DateTime Date { get; set; } [JsonProperty("type")] public string Type { get; set; } [JsonProperty("version")] public string Version { get; set; } [JsonProperty("runtimeInfo")] public RuntimeInfo RuntimeInfo { get; set; } [JsonProperty("comment")] public string Comment { get; set; } public InfoConfig() { Name = ""; Date = DateTime.Now; Type = ""; Version = ""; Comment = ""; RuntimeInfo = new RuntimeInfo(); } } /// /// Represents runtime information about the program/processor /// public class RuntimeInfo { /// /// The name of the running application /// [JsonProperty("appName")] public string AppName { get; set; } /// /// The Assembly version of the running application /// [JsonProperty("assemblyVersion")] public string AssemblyVersion { get; set; } /// /// The OS Version of the processor (Firmware Version) /// [JsonProperty("osVersion")] public string OsVersion { get; set; } } }