You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
|
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Update
|
|
|
|
|
{
|
|
|
|
|
public interface IRecentUpdateProvider
|
|
|
|
|
{
|
|
|
|
|
List<UpdatePackage> GetRecentUpdatePackages();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class RecentUpdateProvider : IRecentUpdateProvider
|
|
|
|
|
{
|
|
|
|
|
private readonly IConfigFileProvider _configFileProvider;
|
|
|
|
|
private readonly IUpdatePackageProvider _updatePackageProvider;
|
|
|
|
|
|
|
|
|
|
public RecentUpdateProvider(IConfigFileProvider configFileProvider,
|
|
|
|
|
IUpdatePackageProvider updatePackageProvider)
|
|
|
|
|
{
|
|
|
|
|
_configFileProvider = configFileProvider;
|
|
|
|
|
_updatePackageProvider = updatePackageProvider;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<UpdatePackage> GetRecentUpdatePackages()
|
|
|
|
|
{
|
|
|
|
|
var branch = "develop";//_configFileProvider.Branch;
|
|
|
|
|
return _updatePackageProvider.GetRecentUpdates(branch, BuildInfo.Version);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|