C# Class FloydPink.Flickr.Downloadr.Logic.DownloadLogic

Inheritance: IDownloadLogic
Mostra file Open project: flickr-downloadr/flickr-downloadr

Public Methods

Method Description
Download ( IEnumerable photos, CancellationToken cancellationToken, IProgress progress, Preferences preferences ) : Task
DownloadLogic ( IOriginalTagsLogic originalTagsLogic ) : System

Private Methods

Method Description
CreateDownloadFolder ( string downloadLocation ) : DirectoryInfo
DownloadAndSavePhoto ( string targetFileName, WebRequest request, byte buffer ) : Task
DownloadPhotos ( IEnumerable photos, CancellationToken cancellationToken, IProgress progress, Preferences preferences ) : Task
GetSafeFilename ( string path ) : string
RandomString ( int size ) : string
WriteMetaDataFile ( Model.Photo photo, string targetFileName, Preferences preferences ) : void

Method Details

Download() public method

public Download ( IEnumerable photos, CancellationToken cancellationToken, IProgress progress, Preferences preferences ) : Task
photos IEnumerable
cancellationToken System.Threading.CancellationToken
progress IProgress
preferences Preferences
return Task

DownloadLogic() public method

public DownloadLogic ( IOriginalTagsLogic originalTagsLogic ) : System
originalTagsLogic IOriginalTagsLogic
return System