using System; using System.Threading.Tasks; namespace RdtClient.Service.Services.Downloaders { public class DownloadCompleteEventArgs { public String Error { get; set; } } public class DownloadProgressEventArgs { public Int64 Speed { get; set; } public Int64 BytesDone { get; set; } public Int64 BytesTotal { get; set; } } public interface IDownloader { event EventHandler DownloadComplete; event EventHandler DownloadProgress; Task Download(); Task Cancel(); } }