Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat: created ICommand and ICommandHandler models

Larsc375cdeffa50
diff --git a/LarsWM/Common/Models/ICommand.cs b/LarsWM/Common/Models/ICommand.cs
new file mode 100644
index 00000000..bb9c4d3a
--- /dev/null
+++ b/LarsWM/Common/Models/ICommand.cs
@@ -0,0 +1,8 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace LarsWM.Common.Models
+{
+ public interface ICommand<out TResult> { }
+}
diff --git a/LarsWM/Common/Models/ICommandHandler.cs b/LarsWM/Common/Models/ICommandHandler.cs
new file mode 100644
index 00000000..5c209568
--- /dev/null
+++ b/LarsWM/Common/Models/ICommandHandler.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace LarsWM.Common.Models
+{
+ public interface ICommandHandler<in TCommand, out TResult> where TCommand : ICommand<TResult>
+ {
+ TResult Handle();
+ }
+}