[NF] Tiny fix for mqtt

This commit is contained in:
2017-12-17 21:53:16 +00:00
parent d7f27fad4f
commit db935e019c
15 changed files with 57 additions and 55 deletions
+9 -9
View File
@@ -10,8 +10,8 @@ namespace BlubbFish.IoT.Zway.Events {
public DeviceUpdateEvent() {
}
public DeviceUpdateEvent(Single value, DateTime time, Object parent) {
this.GetSingle = value;
public DeviceUpdateEvent(Double value, DateTime time, Object parent) {
this.GetDouble = value;
this.UpdateTime = time;
this.Parent = parent;
}
@@ -28,13 +28,13 @@ namespace BlubbFish.IoT.Zway.Events {
this.Parent = parent;
}
public DeviceUpdateEvent(Tuple<String, String, Single> value, DateTime time, Object parent) {
this.GetStringStringSingleTuple = value;
public DeviceUpdateEvent(Tuple<String, String, Double> value, DateTime time, Object parent) {
this.GetStringStringDoubleTuple = value;
this.UpdateTime = time;
this.Parent = parent;
}
public DeviceUpdateEvent(Tuple<String, String, Single, Single, Single, Boolean> value, DateTime time, Object parent) {
this.GetStringStringSingleSingleSingleSingleBooleanTuple = value;
public DeviceUpdateEvent(Tuple<String, String, Double, Double, Double, Boolean> value, DateTime time, Object parent) {
this.GetStringStringDoubleDoubleDoubleDoubleBooleanTuple = value;
this.UpdateTime = time;
this.Parent = parent;
}
@@ -51,10 +51,10 @@ namespace BlubbFish.IoT.Zway.Events {
this.Parent = parent;
}
public Single GetSingle { get; }
public Double GetDouble { get; }
public DateTime GetDate { get; }
public Tuple<String, String, Single> GetStringStringSingleTuple { get; }
public Tuple<String, String, Single, Single, Single, Boolean> GetStringStringSingleSingleSingleSingleBooleanTuple { get; }
public Tuple<String, String, Double> GetStringStringDoubleTuple { get; }
public Tuple<String, String, Double, Double, Double, Boolean> GetStringStringDoubleDoubleDoubleDoubleBooleanTuple { get; }
public Tuple<Int64, Int32> GetLongIntegerTuple { get; }
public DateTime UpdateTime { get; }
public Object Parent { get; private set; }