[NF] Zway-Bot Module eingefügt
This commit is contained in:
+12
-9
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user