Browse Source

Move IComfyStep to models

pull/333/head
Ionite 1 year ago
parent
commit
b9129ea1a6
No known key found for this signature in database
  1. 6
      StabilityMatrix.Avalonia/Models/Inference/IComfyStep.cs
  2. 3
      StabilityMatrix.Avalonia/Models/Inference/ModuleApplyStepEventArgs.cs
  3. 9
      StabilityMatrix.Avalonia/ViewModels/Base/IComfyStep.cs

6
StabilityMatrix.Avalonia/Models/Inference/IComfyStep.cs

@ -0,0 +1,6 @@
namespace StabilityMatrix.Avalonia.Models.Inference;
public interface IComfyStep
{
void ApplyStep(ModuleApplyStepEventArgs e);
}

3
StabilityMatrix.Avalonia/Models/Inference/ModuleApplyStepEventArgs.cs

@ -5,6 +5,9 @@ using StabilityMatrix.Core.Models.Api.Comfy.NodeTypes;
namespace StabilityMatrix.Avalonia.Models.Inference;
/// <summary>
/// Event args for applying a <see cref="IComfyStep"/>.
/// </summary>
public class ModuleApplyStepEventArgs : EventArgs
{
public required ComfyNodeBuilder Builder { get; init; }

9
StabilityMatrix.Avalonia/ViewModels/Base/IComfyStep.cs

@ -1,9 +0,0 @@
using StabilityMatrix.Avalonia.Models.Inference;
using StabilityMatrix.Core.Models.Api.Comfy.Nodes;
namespace StabilityMatrix.Avalonia.ViewModels.Base;
public interface IComfyStep
{
void ApplyStep(ModuleApplyStepEventArgs e);
}
Loading…
Cancel
Save