YoutubeLight.Downloader Class Referenceabstract

Public Member Functions

abstract void Execute ()
 

Protected Member Functions

 Downloader (VideoInfo video, string savePath, int? bytesToDownload=null)
 
void OnDownloadFinished (EventArgs e)
 
void OnDownloadStarted (EventArgs e)
 

Properties

int BytesToDownload [get]
 
string SavePath [get]
 
VideoInfo Video [get]
 

Events

EventHandler DownloadFinished
 
EventHandler DownloadStarted
 

Constructor & Destructor Documentation

◆ Downloader()

YoutubeLight.Downloader.Downloader ( VideoInfo  video,
string  savePath,
int?  bytesToDownload = null 
)
protected
Parameters
videoThe video.
savePathThe path to save the video if want

///

Parameters
bytesToDownloadAn optional value to limit the number of bytes to download.
Exceptions
ArgumentNullExceptionvideo or savePath is null.

Member Function Documentation

◆ Execute()

abstract void YoutubeLight.Downloader.Execute ( )
pure virtual

◆ OnDownloadFinished()

void YoutubeLight.Downloader.OnDownloadFinished ( EventArgs  e)
protected

◆ OnDownloadStarted()

void YoutubeLight.Downloader.OnDownloadStarted ( EventArgs  e)
protected

Property Documentation

◆ BytesToDownload

int YoutubeLight.Downloader.BytesToDownload
get

◆ SavePath

string YoutubeLight.Downloader.SavePath
get

◆ Video

VideoInfo YoutubeLight.Downloader.Video
get

Event Documentation

◆ DownloadFinished

EventHandler YoutubeLight.Downloader.DownloadFinished

◆ DownloadStarted

EventHandler YoutubeLight.Downloader.DownloadStarted

The documentation for this class was generated from the following file: