[NF] v1.3.0.0 Adding Status Polling and Mqtt (not compelete)

[NF] Able to force loading modules, so dependencys are ok
[NF] Cleanup because its now easyer to implement Zway
This commit is contained in:
2017-12-17 20:09:28 +00:00
parent c96b2393d3
commit 9e60264d7d
20 changed files with 238 additions and 100 deletions
+28
View File
@@ -39,6 +39,34 @@ namespace ZwayBot {
}
}
public class MqttEvent : ModulEventArgs {
public MqttEvent() {
}
public MqttEvent(String topic, String text) {
this.Address = topic;
this.Value = text;
this.Source = "MQTT";
}
public override String ToString() {
return this.Source + ": on " + this.Address + " set " + this.Value;
}
}
public class StatusPollingEvent : ModulEventArgs {
public StatusPollingEvent() {
}
public StatusPollingEvent(String text, String node) {
this.Value = text;
this.Address = node;
this.Source = "POLLING";
}
public override String ToString() {
return this.Source + ": " + this.Value + " on " + this.Address;
}
}
public class ModulEventArgs : EventArgs {
public ModulEventArgs() {
}