Bot-Utils/Events/ModulEventArgs.cs

23 lines
738 B
C#
Raw Normal View History

2018-06-07 22:49:54 +02:00
using System;
namespace BlubbFish.Utils.IoT.Bots.Events {
public class ModulEventArgs : EventArgs {
public ModulEventArgs() {
}
2018-08-02 23:24:44 +02:00
public ModulEventArgs(String addr, String prop, String val, String src)
{
this.Address = addr;
this.Property = prop;
this.Value = val;
this.Source = src;
}
2018-06-07 22:49:54 +02:00
public String Address { get; protected set; }
public String Property { get; protected set; }
public String Value { get; protected set; }
public String Source { get; protected set; }
public override String ToString() {
return this.Source + ": " + this.Address + " set " + this.Property + " to " + this.Value;
}
}
}