[NF] Umbenennung zu IoTBot Namespace

This commit is contained in:
BlubbFish 2017-10-01 22:09:08 +00:00
parent dd5cc78e15
commit afcdb8e1ad
8 changed files with 19 additions and 19 deletions

View File

@ -1,11 +1,11 @@
using Dashboard.Connector;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Text.RegularExpressions;
using System.Threading;
using IoTBot.Connector;
namespace Dashboard.Sensor {
namespace IoTBot.Sensor {
public abstract class ASensor : IDisposable {
protected String topic;
protected Int32 pollcount;
@ -50,7 +50,7 @@ namespace Dashboard.Sensor {
}
internal static ASensor GetInstance(ADataBackend backend, Dictionary<String, String> dictionary, String name) {
String object_sensor = "Dashboard.Sensor." + Char.ToUpper(dictionary["type"][0]) + dictionary["type"].Substring(1).ToLower();
String object_sensor = "IoTBot.Sensor." + Char.ToUpper(dictionary["type"][0]) + dictionary["type"].Substring(1).ToLower();
Type t = null;
try {
t = Type.GetType(object_sensor, true);

View File

@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Globalization;
using System.Text.RegularExpressions;
using Dashboard.Connector;
using IoTBot.Connector;
using LitJson;
namespace Dashboard.Sensor {
namespace IoTBot.Sensor {
class Flex4gridswitch : ASensor {
private String id;

View File

@ -1,10 +1,10 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using Dashboard.Connector;
using IoTBot.Connector;
using LitJson;
namespace Dashboard.Sensor {
namespace IoTBot.Sensor {
class Flex4gridpower : ASensor {
private String id;

View File

@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using Dashboard.Connector;
using IoTBot.Connector;
namespace Dashboard.Sensor {
namespace IoTBot.Sensor {
class Luminanz : ASensor {
public Luminanz(Dictionary<String, String> settings, String name, ADataBackend backend) : base(settings, name, backend) {
this.GetBool = true;

View File

@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using Dashboard.Connector;
using IoTBot.Connector;
namespace Dashboard.Sensor {
namespace IoTBot.Sensor {
class Pir : ASensor {
public Pir(Dictionary<String, String> settings, String name, ADataBackend backend) : base(settings, name, backend) {
this.Datatypes = Types.Bool;

View File

@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using Dashboard.Connector;
using IoTBot.Connector;
namespace Dashboard.Sensor {
namespace IoTBot.Sensor {
class Power : ASensor {
public Power(Dictionary<String, String> settings, String name, ADataBackend backend) : base(settings, name, backend) {
this.GetBool = true;

View File

@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using Dashboard.Connector;
using IoTBot.Connector;
namespace Dashboard.Sensor {
namespace IoTBot.Sensor {
class Switch : ASensor {
public Switch(Dictionary<System.String, System.String> settings, String name, ADataBackend backend) : base(settings, name, backend) {
this.Datatypes = Types.Bool;

View File

@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using Dashboard.Connector;
using IoTBot.Connector;
namespace Dashboard.Sensor {
namespace IoTBot.Sensor {
class Temperatur : ASensor {
public Temperatur(Dictionary<String, String> settings, String name, ADataBackend backend) : base(settings, name, backend) {
this.GetBool = true;