Add config for remote radar generation server

This commit is contained in:
April P. committed 2024-12-17 22:44:13 -08:00
1 parent 5dda3c5256
commit c847b2cf8a
1 file changed
+9 -4
+9 -4
View File
@@ -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";
}
}