From 755f37e3e3e553a91dd2c5a7f0ddad8359287a3b Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Thu, 12 Mar 2020 17:15:11 +0200 Subject: Working on FSE/PPC monitoring/system info. --- .../Visual_Studio/Tango.SystemInfo/SystemObject.cs | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Software/Visual_Studio/Tango.SystemInfo/SystemObject.cs (limited to 'Software/Visual_Studio/Tango.SystemInfo/SystemObject.cs') diff --git a/Software/Visual_Studio/Tango.SystemInfo/SystemObject.cs b/Software/Visual_Studio/Tango.SystemInfo/SystemObject.cs new file mode 100644 index 000000000..be1c74fe5 --- /dev/null +++ b/Software/Visual_Studio/Tango.SystemInfo/SystemObject.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Tango.SystemInfo +{ + public class SystemObject + { + public String Name { get; set; } + public List Properties { get; set; } + + public SystemObject() + { + Properties = new List(); + } + + public override string ToString() + { + String msg = String.Empty; + + msg = $"Name: {Name}\n"; + + foreach (var prop in Properties) + { + msg += $"{prop.Name}: {prop.Value}\n"; + } + + return msg; + } + } +} -- cgit v1.3.1