[NF] Zway-Bot Module eingefügt

This commit is contained in:
2017-12-02 18:04:43 +00:00
parent 925131a52b
commit 8771a3ce89
10 changed files with 133 additions and 45 deletions
+12 -9
View File
@@ -1,7 +1,7 @@
using System;
namespace ZwayBot {
public class CronEvent : EventArgs {
public class CronEvent : ModulEventArgs {
public CronEvent() {
}
@@ -10,13 +10,10 @@ namespace ZwayBot {
this.Address = addr;
this.Property = prop;
this.Value = value;
this.Source = "Cronjob";
}
public String Address { get; }
public String Property { get; }
public String Value { get; }
}
public class OvertakerEvent : EventArgs {
public class OvertakerEvent : ModulEventArgs {
public OvertakerEvent() {
}
@@ -25,10 +22,16 @@ namespace ZwayBot {
this.Address = addr;
this.Property = prop;
this.Value = value;
this.Source = "Overtaker";
}
}
public String Address { get; }
public String Property { get; }
public String Value { get; }
public class ModulEventArgs : EventArgs {
public ModulEventArgs() {
}
public String Address { get; protected set; }
public String Property { get; protected set; }
public String Value { get; protected set; }
public String Source { get; protected set; }
}
}