Utils/Bot-Utils/Events/MqttEvent.cs

17 lines
416 B
C#
Raw Normal View History

2018-06-07 22:49:54 +02:00
using System;
namespace BlubbFish.Utils.IoT.Bots.Events {
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;
}
}
}