-
Notifications
You must be signed in to change notification settings - Fork 809
Expand file tree
/
Copy pathIPackageOperationHelper.cs
More file actions
31 lines (29 loc) · 1.11 KB
/
IPackageOperationHelper.cs
File metadata and controls
31 lines (29 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using UniGetUI.PackageEngine.Enums;
using UniGetUI.PackageEngine.Serializable;
namespace UniGetUI.PackageEngine.Interfaces.ManagerProviders
{
/// <summary>
/// Handled the process of installing and uninstalling packages
/// </summary>
public interface IPackageOperationHelper
{
/// <summary>
/// Returns the list of arguments that need to be passed to the Package Manager executable so
/// that the requested operation is performed over the given package, with its corresponding
/// installation options.
/// </summary>
public IReadOnlyList<string> GetParameters(IPackage package,
InstallOptions options,
OperationType operation);
/// <summary>
/// Returns the veredict of the given package operation, given the package, the operation type,
/// the corresponding output and the return code.
/// </summary>
public OperationVeredict GetResult(
IPackage package,
OperationType operation,
IReadOnlyList<string> processOutput,
int returnCode
);
}
}