C# Class PluralsightDownloader.Downloader

Show file Open project: bogusgithubuser/PluralsightDownloader

Public Methods

Method Description
Download ( Entity baseObject, string downloadFolder ) : void
Downloader ( Configuration configuration ) : System.IO
Downloader ( ICookieProvider cookieProvider, IWebScraper webScraper, IWebsiteParser websiteParser ) : System.IO
GetCourse ( string courseUrl ) : Course
SetCredentials ( string username, string password ) : void

Private Methods

Method Description
CreateDirectoryIfNotExists ( string filename ) : void
DownloadCourse ( Course course, string downloadFolder ) : void
DownloadLesson ( Lesson lesson, string downloadFolder ) : void
DownloadModule ( Module module, string downloadFolder ) : void
GetLastSegmentOfUrlString ( string urlString ) : string
GetLessonFilenameForDownload ( Lesson lesson, string downloadFolder ) : string

Method Details

Download() public method

public Download ( Entity baseObject, string downloadFolder ) : void
baseObject Entity
downloadFolder string
return void

Downloader() public method

public Downloader ( Configuration configuration ) : System.IO
configuration Configuration
return System.IO

Downloader() public method

public Downloader ( ICookieProvider cookieProvider, IWebScraper webScraper, IWebsiteParser websiteParser ) : System.IO
cookieProvider ICookieProvider
webScraper IWebScraper
websiteParser IWebsiteParser
return System.IO

GetCourse() public method

public GetCourse ( string courseUrl ) : Course
courseUrl string
return Course

SetCredentials() public method

public SetCredentials ( string username, string password ) : void
username string
password string
return void