mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Wabbajack.Common.StatusFeed
|
|
{
|
|
/// <summary>
|
|
/// Defines a message that requires user interaction. The user must perform some action
|
|
/// or make a choice.
|
|
/// </summary>
|
|
public interface IUserIntervention<T> : IStatusMessage
|
|
{
|
|
/// <summary>
|
|
/// The user didn't make a choice, so this action should be aborted
|
|
/// </summary>
|
|
void Cancel();
|
|
|
|
/// <summary>
|
|
/// The user has provided the required information.
|
|
/// </summary>
|
|
/// <param name="result"></param>
|
|
void Resume(T result);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Defines a message that requires user interaction. The user must perform some action
|
|
/// or make a choice.
|
|
/// </summary>
|
|
public interface IUserIntervention : IStatusMessage
|
|
{
|
|
/// <summary>
|
|
/// The user didn't make a choice, so this action should be aborted
|
|
/// </summary>
|
|
void Cancel();
|
|
|
|
/// <summary>
|
|
/// Resume without any further information
|
|
/// </summary>
|
|
void Resume();
|
|
}
|
|
}
|