Philipp Heenemann
a8b91f4ee6
Updated the existing C# code into a more modern, imperative and top-level statements style. This involves shortening the code by removing unnecessary parts like additional brackets and explicit namespace declarations. It's done to improve clarity and readability.
23 lines
433 B
C#
23 lines
433 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace SPTInstaller.Interfaces;
|
|
|
|
public interface IProgressableTask
|
|
{
|
|
public string Id { get; }
|
|
public string Name { get; }
|
|
|
|
public bool IsCompleted { get; }
|
|
|
|
public bool HasErrors { get; }
|
|
|
|
public bool IsRunning { get; }
|
|
|
|
public string StatusMessage { get; }
|
|
|
|
public int Progress { get; }
|
|
|
|
public bool ShowProgress { get; }
|
|
|
|
public Task<IResult> RunAsync();
|
|
} |