2
0
forked from sim0n00ps/OF-DL
OF-DL/OF DL.Core/Services/IProgressReporter.cs

15 lines
560 B
C#

namespace OF_DL.Services;
/// <summary>
/// Interface for reporting download progress in a UI-agnostic way.
/// This allows the download service to report progress without being coupled to any specific UI framework.
/// </summary>
public interface IProgressReporter
{
/// <summary>
/// Reports progress increment. The value represents either bytes downloaded or file count depending on configuration.
/// </summary>
/// <param name="increment">The amount to increment progress by</param>
void ReportProgress(long increment);
}