tytd/Tesses.YouTubeDownloader/IExtensionContext.cs

20 lines
524 B
C#
Raw Normal View History

2022-04-06 16:41:29 +00:00
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace Tesses.YouTubeDownloader
{
public interface IExtensionContext
{
List<IExtension> Extensions {get;}
}
public interface IExtension
{
void OnEnd();
string Name {get;}
Task VideoStarted(SavedVideo video,Resolution resolution,long length);
Task VideoProgress(SavedVideo video,double progress);
Task VideoFinished(SavedVideo video,Resolution resolution);
}
}