check point
This commit is contained in:
17
VisionBuilder.UI.Common/Commands/ImageProcessedEvent.cs
Normal file
17
VisionBuilder.UI.Common/Commands/ImageProcessedEvent.cs
Normal 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; }
|
||||
}
|
||||
6
VisionBuilder.UI.Common/Commands/Interfaces/ICommand.cs
Normal file
6
VisionBuilder.UI.Common/Commands/Interfaces/ICommand.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace VisionBuilder.UI.Common.Commands.Interfaces;
|
||||
|
||||
public interface ICommand
|
||||
{
|
||||
|
||||
}
|
||||
6
VisionBuilder.UI.Common/Commands/Interfaces/IEvent.cs
Normal file
6
VisionBuilder.UI.Common/Commands/Interfaces/IEvent.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace VisionBuilder.UI.Common.Commands.Interfaces;
|
||||
|
||||
public interface IEvent
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace VisionBuilder.UI.Common.Commands.Interfaces;
|
||||
|
||||
public interface IEventHandler<TEvent> where TEvent : IEvent
|
||||
{
|
||||
void Handle(TEvent @event);
|
||||
}
|
||||
8
VisionBuilder.UI.Common/Commands/SessionEndedEvent.cs
Normal file
8
VisionBuilder.UI.Common/Commands/SessionEndedEvent.cs
Normal 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; }
|
||||
}
|
||||
10
VisionBuilder.UI.Common/Commands/SessionStartedEvent.cs
Normal file
10
VisionBuilder.UI.Common/Commands/SessionStartedEvent.cs
Normal 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; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user