From dd5cc78e156c00615e74c9bd81a846a56f75e4da Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Sun, 1 Oct 2017 22:09:01 +0000 Subject: [PATCH] [NF] Umbenennung zu IoTBot Namespace --- Mqtt-Dashboard/Connector/ADataBackend.cs | 4 ++-- Mqtt-Dashboard/Connector/Mosquitto.cs | 2 +- Mqtt-Dashboard/Connector/Mqtt.cs | 2 +- Mqtt-Dashboard/Connector/Telegram.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Mqtt-Dashboard/Connector/ADataBackend.cs b/Mqtt-Dashboard/Connector/ADataBackend.cs index 2b334f3..c3ff494 100644 --- a/Mqtt-Dashboard/Connector/ADataBackend.cs +++ b/Mqtt-Dashboard/Connector/ADataBackend.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Dashboard.Connector { +namespace IoTBot.Connector { public abstract class ADataBackend { public abstract event MqttMessage MessageIncomming; @@ -9,7 +9,7 @@ namespace Dashboard.Connector { public delegate void MqttMessage(ADataBackend sender, MqttEventArgs e); public static ADataBackend GetInstance(Dictionary dictionary) { - String object_sensor = "Dashboard.Connector." + Char.ToUpper(dictionary["type"][0]) + dictionary["type"].Substring(1).ToLower(); + String object_sensor = "IoTBot.Connector." + Char.ToUpper(dictionary["type"][0]) + dictionary["type"].Substring(1).ToLower(); Type t = null; try { t = Type.GetType(object_sensor, true); diff --git a/Mqtt-Dashboard/Connector/Mosquitto.cs b/Mqtt-Dashboard/Connector/Mosquitto.cs index 29396bd..e6e79d4 100644 --- a/Mqtt-Dashboard/Connector/Mosquitto.cs +++ b/Mqtt-Dashboard/Connector/Mosquitto.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.Text.RegularExpressions; -namespace Dashboard.Connector { +namespace IoTBot.Connector { class Mosquitto : ADataBackend, IDisposable { private Process p; private String message; diff --git a/Mqtt-Dashboard/Connector/Mqtt.cs b/Mqtt-Dashboard/Connector/Mqtt.cs index 4e3a05f..46a42c4 100644 --- a/Mqtt-Dashboard/Connector/Mqtt.cs +++ b/Mqtt-Dashboard/Connector/Mqtt.cs @@ -4,7 +4,7 @@ using System.Text; using uPLibrary.Networking.M2Mqtt; using uPLibrary.Networking.M2Mqtt.Messages; -namespace Dashboard.Connector { +namespace IoTBot.Connector { class Mqtt : ADataBackend, IDisposable { private MqttClient client; diff --git a/Mqtt-Dashboard/Connector/Telegram.cs b/Mqtt-Dashboard/Connector/Telegram.cs index cfa036c..fa4d3f8 100644 --- a/Mqtt-Dashboard/Connector/Telegram.cs +++ b/Mqtt-Dashboard/Connector/Telegram.cs @@ -5,7 +5,7 @@ using Telegram.Bot.Args; using Telegram.Bot.Exceptions; using Telegram.Bot.Types; -namespace MqttToTelegram { +namespace IoTBot.Connector { class Telegram { private static Telegram instance; private TelegramBotClient bot;