wabbajack/Wabbajack.Lib/Interventions/IUserIntervention.cs
2021-12-26 15:05:28 -07:00

24 lines
674 B
C#

using ReactiveUI;
namespace Wabbajack.Lib.Interventions
{
/// <summary>
/// Defines a message that requires user interaction. The user must perform some action
/// or make a choice.
/// </summary>
public interface IUserIntervention : IReactiveObject
{
/// <summary>
/// The user didn't make a choice, so this action should be aborted
/// </summary>
void Cancel();
/// <summary>
/// Whether the interaction has been handled and no longer needs attention
/// Note: This needs to be Reactive so that users can monitor its status
/// </summary>
bool Handled { get; }
}
}