mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-08 04:18:06 +02:00
27 lines
959 B
C#
27 lines
959 B
C#
using MediaBrowser.Model.Updates;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MediaBrowser.Common.Updates
|
|
{
|
|
public interface IPackageManager
|
|
{
|
|
/// <summary>
|
|
/// Gets all available packages.
|
|
/// </summary>
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
/// <returns>Task{List{PackageInfo}}.</returns>
|
|
Task<IEnumerable<PackageInfo>> GetAvailablePackages(CancellationToken cancellationToken);
|
|
|
|
/// <summary>
|
|
/// Installs a package.
|
|
/// </summary>
|
|
/// <param name="progress"></param>
|
|
/// <param name="package">The package.</param>
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
/// <returns>Task.</returns>
|
|
Task InstallPackage(IProgress<double> progress, PackageVersionInfo package, CancellationToken cancellationToken);
|
|
}
|
|
}
|