wabbajack/Wabbajack.Lib/Downloaders/IUpgradingState.cs

20 lines
630 B
C#
Raw Normal View History

2020-08-12 22:23:02 +00:00
using System;
using System.Threading.Tasks;
2020-05-20 03:25:41 +00:00
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>
2020-08-12 22:23:02 +00:00
public Task<(Archive? Archive, TempFile NewFile)> FindUpgrade(Archive a, Func<Archive, Task<AbsolutePath>> downloadResolver);
2020-05-20 03:25:41 +00:00
2020-07-13 22:10:05 +00:00
Task<bool> ValidateUpgrade(Hash srcHash, AbstractDownloadState newArchiveState);
2020-05-20 03:25:41 +00:00
}
}