From c847b2cf8a38162eea395a15afeca703d78a2f44 Mon Sep 17 00:00:00 2001 From: "April P." Date: Tue, 17 Dec 2024 22:44:13 -0800 Subject: [PATCH] Add config for remote radar generation server --- MistWX-i2Me/Config.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/MistWX-i2Me/Config.cs b/MistWX-i2Me/Config.cs index f339302..f44267b 100644 --- a/MistWX-i2Me/Config.cs +++ b/MistWX-i2Me/Config.cs @@ -11,6 +11,7 @@ public class Config // Config Elements \\ [XmlElement] public string TwcApiKey { get; set; } = "REPLACE_ME"; + [XmlElement] public string LogLevel { get; set; } = "info"; // Used to process what locations to generate [XmlElement] @@ -18,11 +19,8 @@ public class Config "C:\\Program Files (x86)\\TWC\\i2\\managed\\MachineProductConfig.xml"; [XmlElement] public NetworkConfig UnitConfig { get; set; } = new NetworkConfig(); + [XmlElement("RadarConfig")] public RadarConfig radarConfig { get; set; } = new RadarConfig(); - - [XmlElement] public string LogLevel { get; set; } = "info"; - - // Actual configuration setup \\ public static Config config = new Config(); @@ -69,4 +67,11 @@ public class Config [XmlElement] public string I2MsgAddress { get; set; } = "224.1.1.77"; [XmlElement] public string InterfaceAddress { get; set; } = "127.0.0.1"; } + + [XmlRoot("RadarConfig")] + public class RadarConfig + { + [XmlElement] public bool UseRadarServer { get; set; } = false; + [XmlElement] public string RadarServerUrl { get; set; } = "REPLACE_ME"; + } } \ No newline at end of file