Files
Zway/Zway/Events/DeviceUpdateEvent.cs
T
2017-12-17 21:53:16 +00:00

64 lines
2.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BlubbFish.IoT.Zway.Events {
public class DeviceUpdateEvent : EventArgs {
public DeviceUpdateEvent() {
}
public DeviceUpdateEvent(Double value, DateTime time, Object parent) {
this.GetDouble = value;
this.UpdateTime = time;
this.Parent = parent;
}
public DeviceUpdateEvent(Boolean value, DateTime time, Object parent) {
this.GetBoolean = value;
this.UpdateTime = time;
this.Parent = parent;
}
public DeviceUpdateEvent(DateTime value, DateTime time, Object parent) {
this.GetDate = value;
this.UpdateTime = time;
this.Parent = parent;
}
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, Double, Double, Double, Boolean> value, DateTime time, Object parent) {
this.GetStringStringDoubleDoubleDoubleDoubleBooleanTuple = value;
this.UpdateTime = time;
this.Parent = parent;
}
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, Object parent) {
this.GetLongIntegerTuple = value;
this.UpdateTime = time;
this.Parent = parent;
}
public Double GetDouble { get; }
public DateTime GetDate { 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; }
public Boolean GetBoolean { get; }
public Tuple<Int32,Int32> GetIntegerTuple { get; }
}
}