[NF] Umbenennung zu IoTBot Namespace

This commit is contained in:
BlubbFish 2017-10-01 22:09:01 +00:00
parent ef55750312
commit dd5cc78e15
4 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace Dashboard.Connector { namespace IoTBot.Connector {
public abstract class ADataBackend { public abstract class ADataBackend {
public abstract event MqttMessage MessageIncomming; public abstract event MqttMessage MessageIncomming;
@ -9,7 +9,7 @@ namespace Dashboard.Connector {
public delegate void MqttMessage(ADataBackend sender, MqttEventArgs e); public delegate void MqttMessage(ADataBackend sender, MqttEventArgs e);
public static ADataBackend GetInstance(Dictionary<String, String> dictionary) { public static ADataBackend GetInstance(Dictionary<String, String> 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; Type t = null;
try { try {
t = Type.GetType(object_sensor, true); t = Type.GetType(object_sensor, true);

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
namespace Dashboard.Connector { namespace IoTBot.Connector {
class Mosquitto : ADataBackend, IDisposable { class Mosquitto : ADataBackend, IDisposable {
private Process p; private Process p;
private String message; private String message;

View File

@ -4,7 +4,7 @@ using System.Text;
using uPLibrary.Networking.M2Mqtt; using uPLibrary.Networking.M2Mqtt;
using uPLibrary.Networking.M2Mqtt.Messages; using uPLibrary.Networking.M2Mqtt.Messages;
namespace Dashboard.Connector { namespace IoTBot.Connector {
class Mqtt : ADataBackend, IDisposable { class Mqtt : ADataBackend, IDisposable {
private MqttClient client; private MqttClient client;

View File

@ -5,7 +5,7 @@ using Telegram.Bot.Args;
using Telegram.Bot.Exceptions; using Telegram.Bot.Exceptions;
using Telegram.Bot.Types; using Telegram.Bot.Types;
namespace MqttToTelegram { namespace IoTBot.Connector {
class Telegram { class Telegram {
private static Telegram instance; private static Telegram instance;
private TelegramBotClient bot; private TelegramBotClient bot;