wabbajack/Wabbajack.Lib/Downloaders/IUpgradingState.cs
Timothy Baldridge 39078b21d9 LL autohealing
2020-08-12 16:23:02 -06:00

20 lines
630 B
C#

using System;
using System.Threading.Tasks;
using Wabbajack.Common;
namespace Wabbajack.Lib.Downloaders
{
public interface IUpgradingState
{
/// <summary>
/// Find a possible archive that can be combined with a server generated patch to get the input archive
/// state;
/// </summary>
/// <param name="a"></param>
/// <returns></returns>
public Task<(Archive? Archive, TempFile NewFile)> FindUpgrade(Archive a, Func<Archive, Task<AbsolutePath>> downloadResolver);
Task<bool> ValidateUpgrade(Hash srcHash, AbstractDownloadState newArchiveState);
}
}