|
@@ -114,8 +114,8 @@ public class ScheduledEvent : IEvent<ScheduledEventDataModel>, IPropertiesEvent<
|
|
|
public Notification GenerateNotification(ScheduledEventDataModel model)
|
|
|
{
|
|
|
var notification = new Notification();
|
|
|
- notification.Title = $"Schedule has run.";
|
|
|
- notification.Description = $"Schedule has run.";
|
|
|
+ notification.Title = $"Scheduled event {model.Event.Code}: {model.Event.Description} has run.";
|
|
|
+ notification.Description = $"Scheduled event {model.Event.Code}: {model.Event.Description} has run.";
|
|
|
return notification;
|
|
|
}
|
|
|
|
|
@@ -147,8 +147,10 @@ public class ScheduledEventDataModelDefinition : IEventDataModelDefinition
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-public class ScheduledEventDataModel : IEventDataModel
|
|
|
+public class ScheduledEventDataModel(Event ev) : IEventDataModel
|
|
|
{
|
|
|
+ public Event Event { get; set; } = ev;
|
|
|
+
|
|
|
public bool TryGetVariable(string name, out object? value)
|
|
|
{
|
|
|
value = null;
|