[BF] Fixing Senml
[NF] Senml now has a configure option to setup the guid [NF] Zway-Bot now listen on /exit [NF] Implment searchpath for Zway-Bot (/etc/zwaybot and %appdata%/zwaybot)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BlubbFish.Utils.IoT.Events {
|
||||
public class BackendEvent : EventArgs {
|
||||
public BackendEvent() : base() { }
|
||||
public BackendEvent(String message, Object from, DateTime date, String label) {
|
||||
this.From = from;
|
||||
this.Message = message;
|
||||
this.Date = date;
|
||||
this.Label = label;
|
||||
}
|
||||
|
||||
public Object From { get; private set; }
|
||||
public String Message { get; private set; }
|
||||
public DateTime Date { get; private set; }
|
||||
public String Label { get; private set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BlubbFish.Utils.IoT.Events {
|
||||
public class DataEvent : BackendEvent {
|
||||
public DataEvent(String data) : base() { }
|
||||
public DataEvent(String message, String topic, DateTime date) : base(message, topic, date, "Data") { }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BlubbFish.Utils.IoT.Events {
|
||||
public class UserEvent : BackendEvent {
|
||||
public UserEvent() : base() { }
|
||||
public UserEvent(String message, Int64 UserId, DateTime date) : base(message, UserId, date, "User") { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user