2
2
3
3
namespace UniGetUI . PackageEngine . Interfaces . ManagerProviders
4
4
{
5
- public interface IPackageDetailsProvider
5
+ /// <summary>
6
+ /// Provides useful information about the packages
7
+ /// </summary>
8
+ public interface IPackageDetailsHelper
6
9
{
7
10
/// <summary>
8
11
/// Returns a PackageDetails object that represents the details for the given Package object.
@@ -11,7 +14,7 @@ public interface IPackageDetailsProvider
11
14
/// </summary>
12
15
/// <param name="details">The PackageDetails instance to load</param>
13
16
/// <returns>A PackageDetails object</returns>
14
- public void GetPackageDetails ( IPackageDetails details ) ;
17
+ public void GetDetails ( IPackageDetails details ) ;
15
18
16
19
/// <summary>
17
20
/// Returns the available versions to install for the given package.
@@ -20,28 +23,28 @@ public interface IPackageDetailsProvider
20
23
/// </summary>
21
24
/// <param name="package">The package from which to load its versions</param>
22
25
/// <returns>An array of stings containing the found versions, an empty array if none.</returns>
23
- public IEnumerable < string > GetPackageVersions ( IPackage package ) ;
26
+ public IEnumerable < string > GetVersions ( IPackage package ) ;
24
27
25
28
/// <summary>
26
29
/// Returns an Uri pointing to the icon of this package.
27
30
/// The uri may be either a ms-appx:/// url or a http(s):// protocol url
28
31
/// </summary>
29
32
/// <param name="package">The package from which to load the icon</param>
30
33
/// <returns>A full path to a valid icon file</returns>
31
- public CacheableIcon ? GetPackageIconUrl ( IPackage package ) ;
34
+ public CacheableIcon ? GetIcon ( IPackage package ) ;
32
35
33
36
/// <summary>
34
37
/// Returns the URLs to the screenshots (if any) of this package.
35
38
/// </summary>
36
39
/// <param name="package">The package from which to load the screenshots</param>
37
40
/// <returns>An array with valid URIs to the screenshots</returns>
38
- public IEnumerable < Uri > GetPackageScreenshotsUrl ( IPackage package ) ;
41
+ public IEnumerable < Uri > GetScreenshots ( IPackage package ) ;
39
42
40
43
/// <summary>
41
44
/// Returns the location where the package is installed, or null if the location cannot be loaded.
42
45
/// </summary>
43
46
/// <param name="package">The package for which to get the location</param>
44
47
/// <returns>A valid path in the form of a string or a null object</returns>
45
- public string ? GetPackageInstallLocation ( IPackage package ) ;
48
+ public string ? GetInstallLocation ( IPackage package ) ;
46
49
}
47
50
}
0 commit comments