mirror of
https://github.com/MistWeatherMedia/i2ME.git
synced 2026-11-28 22:30:55 -08:00
Add config for remote radar generation server
This commit is contained in:
1 parent
5dda3c5256
commit
c847b2cf8a
1 file changed
+9
-4
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user