[NF] Now possible to emulate F4G

This commit is contained in:
2017-12-05 23:10:52 +00:00
parent 53e4ba9d14
commit 06e57c4559
19 changed files with 32 additions and 24 deletions
+15 -7
View File
@@ -10,38 +10,45 @@ namespace BlubbFish.IoT.Zway.Events {
public DeviceUpdateEvent() {
}
public DeviceUpdateEvent(Single value, DateTime time) {
public DeviceUpdateEvent(Single value, DateTime time, Object parent) {
this.GetSingle = value;
this.UpdateTime = time;
this.Parent = parent;
}
public DeviceUpdateEvent(Boolean value, DateTime time) {
public DeviceUpdateEvent(Boolean value, DateTime time, Object parent) {
this.GetBoolean = value;
this.UpdateTime = time;
this.Parent = parent;
}
public DeviceUpdateEvent(DateTime value, DateTime time) {
public DeviceUpdateEvent(DateTime value, DateTime time, Object parent) {
this.GetDate = value;
this.UpdateTime = time;
this.Parent = parent;
}
public DeviceUpdateEvent(Tuple<String, String, Single> value, DateTime time) {
public DeviceUpdateEvent(Tuple<String, String, Single> value, DateTime time, Object parent) {
this.GetStringStringSingleTuple = value;
this.UpdateTime = time;
this.Parent = parent;
}
public DeviceUpdateEvent(Tuple<String, String, Single, Single, Single, Boolean> value, DateTime time) {
public DeviceUpdateEvent(Tuple<String, String, Single, Single, Single, Boolean> value, DateTime time, Object parent) {
this.GetStringStringSingleSingleSingleSingleBooleanTuple = value;
this.UpdateTime = time;
this.Parent = parent;
}
public DeviceUpdateEvent(Tuple<Int32, Int32> value, DateTime time) {
public DeviceUpdateEvent(Tuple<Int32, Int32> value, DateTime time, Object parent) {
this.GetIntegerTuple = value;
this.UpdateTime = time;
this.Parent = parent;
}
public DeviceUpdateEvent(Tuple<Int64, Int32> value, DateTime time) {
public DeviceUpdateEvent(Tuple<Int64, Int32> value, DateTime time, Object parent) {
this.GetLongIntegerTuple = value;
this.UpdateTime = time;
this.Parent = parent;
}
public Single GetSingle { get; }
@@ -50,6 +57,7 @@ namespace BlubbFish.IoT.Zway.Events {
public Tuple<String, String, Single, Single, Single, Boolean> GetStringStringSingleSingleSingleSingleBooleanTuple { get; }
public Tuple<Int64, Int32> GetLongIntegerTuple { get; }
public DateTime UpdateTime { get; }
public Object Parent { get; private set; }
public Boolean GetBoolean { get; }
public Tuple<Int32,Int32> GetIntegerTuple { get; }
}