check point

This commit is contained in:
meelstorm
2025-07-14 12:03:59 +02:00
commit d3cb790bd9
431 changed files with 44078 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using OpenCvSharp;
using VisionBuilder.UI.Common.Commands.Interfaces;
namespace VisionBuilder.UI.Common.Commands;
public class ImageProcessedEvent:IEvent
{
public DateTime SessionStart { get; set; }
public string ImageSource { get; set; }
public string RecipeName { get; set; }
public Mat ImageOriginal { get; set; }
public Mat ImageAnalysis { get; set; }
public bool HasError { get; set; }
public List<string> ErrorNames { get; set; }
public TimeSpan AnalysisTime { get; set; }
}

View File

@@ -0,0 +1,6 @@
namespace VisionBuilder.UI.Common.Commands.Interfaces;
public interface ICommand
{
}

View File

@@ -0,0 +1,6 @@
namespace VisionBuilder.UI.Common.Commands.Interfaces;
public interface IEvent
{
}

View File

@@ -0,0 +1,6 @@
namespace VisionBuilder.UI.Common.Commands.Interfaces;
public interface IEventHandler<TEvent> where TEvent : IEvent
{
void Handle(TEvent @event);
}

View File

@@ -0,0 +1,8 @@
using VisionBuilder.UI.Common.Commands.Interfaces;
namespace VisionBuilder.UI.Common.Commands;
public class SessionEndedEvent: IEvent
{
public DateTime SessionEnded { get; set; }
}

View File

@@ -0,0 +1,10 @@
using VisionBuilder.UI.Common.Commands.Interfaces;
namespace VisionBuilder.UI.Common.Commands;
public class SessionStartedEvent : IEvent
{
public string RecipeName { get; set; }
public DateTime SessionStarted { get; set; }
}