using Oqtane.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Oqtane.Services
{
///
/// Service to manage packages ()
///
public interface IPackageService
{
///
/// Returns a list of packages matching the given parameters
///
///
///
Task> GetPackagesAsync(string type);
///
/// Returns a list of packages matching the given parameters
///
///
///
///
///
///
Task> GetPackagesAsync(string type, string search, string price, string package);
///
/// Returns a list of packages matching the given parameters
///
///
///
///
///
///
///
Task> GetPackagesAsync(string type, string search, string price, string package, string sort);
///
/// Returns a list of packages matching the list of package names
///
///
///
Task> GetPackagesAsync(List packagenames);
///
/// Returns a specific package
///
///
///
///
Task GetPackageAsync(string packageId, string version);
///
/// Downloads a specific package as .nupkg file
///
///
///
///
///
Task DownloadPackageAsync(string packageId, string version, string folder);
///
/// Installs all packages located in //TODO: 2dm where?
///
///
Task InstallPackagesAsync();
}
}