Adds RuntimeInfo class to InfoConfig and populates values when CotijaController class calls RegisterSystemToServer()

This commit is contained in:
Neil Dorin
2018-03-12 15:19:31 -06:00
parent 525881ebe1
commit 5129b19748
6 changed files with 47 additions and 4 deletions

View File

@@ -1,4 +1,6 @@
using System;
using System;
using Crestron.SimplSharp.Reflection;
using Newtonsoft.Json;
@@ -19,7 +21,10 @@ namespace PepperDash.Essentials.Core.Config
public string Type { get; set; }
[JsonProperty("version")]
public string Version { get; set; }
public string Version { get; set; }
[JsonProperty("runtimeInfo")]
public RuntimeInfo RuntimeInfo { get; set; }
[JsonProperty("comment")]
public string Comment { get; set; }
@@ -30,7 +35,34 @@ namespace PepperDash.Essentials.Core.Config
Date = DateTime.Now;
Type = "";
Version = "";
Comment = "";
Comment = "";
RuntimeInfo = new RuntimeInfo();
}
}
}
/// <summary>
/// Represents runtime information about the program/processor
/// </summary>
public class RuntimeInfo
{
/// <summary>
/// The name of the running application
/// </summary>
[JsonProperty("appName")]
public string AppName { get; set; }
/// <summary>
/// The Assembly version of the running application
/// </summary>
[JsonProperty("assemblyVersion")]
public string AssemblyVersion { get; set; }
/// <summary>
/// The OS Version of the processor (Firmware Version)
/// </summary>
[JsonProperty("osVersion")]
public string OsVersion { get; set; }
}
}