diff --git a/Lora-Map/Model/WeatherWarnings.cs b/Lora-Map/Model/WeatherWarnings.cs new file mode 100644 index 0000000..0dbc7dc --- /dev/null +++ b/Lora-Map/Model/WeatherWarnings.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Fraunhofer.Fit.IoT.LoraMap.Model { + public class WeatherWarnings { + private readonly Settings settings; + + public WeatherWarnings(Settings settings) { this.settings = settings; + this.StartBackgroundThread(); + } + + private void StartBackgroundThread() { + } + } +} diff --git a/Lora-Map/Server.cs b/Lora-Map/Server.cs index 96d7361..ef008b0 100644 --- a/Lora-Map/Server.cs +++ b/Lora-Map/Server.cs @@ -18,7 +18,8 @@ namespace Fraunhofer.Fit.IoT.LoraMap { private readonly SortedDictionary cameras = new SortedDictionary(); private readonly SortedDictionary crowds = new SortedDictionary(); private JsonData marker; - private Settings settings; + private readonly Settings settings; + private readonly WeatherWarnings weather; private readonly Dictionary markertable = new Dictionary(); private readonly AdminModel admin; private readonly Object lockData = new Object(); @@ -31,6 +32,7 @@ namespace Fraunhofer.Fit.IoT.LoraMap { this.marker = JsonMapper.ToObject(File.ReadAllText("json/names.json")); this.admin.NamesUpdate += this.AdminModelUpdateNames; this.settings = new Settings(); + this.weather = new WeatherWarnings(this.settings); this.admin.SettingsUpdate += this.settings.AdminModelUpdateSettings; this.StartListen(); } @@ -117,7 +119,8 @@ namespace Fraunhofer.Fit.IoT.LoraMap { { "loc", this.positions }, { "panic", this.alarms }, { "cameracount", this.cameras }, - { "crowdcount", this.crowds } + { "crowdcount", this.crowds }, + { "weatherwarnings", this.weather } }, cont); } else if (cont.Request.Url.PathAndQuery.StartsWith("/get60000")) { return SendJsonResponse(new Dictionary() {