C# Class RedditRip.Core.RedditRip

Mostra file Open project: W1R3D-Code/RedditRip Class Usage Examples

Public Methods

Method Description
DownloadPost ( KeyValuePair post, string destination, CancellationToken token ) : Task
GetImgurLinksFromSubReddit ( RedditSharp.Reddit reddit, string sub, SearchRange searchRange, Sorting sortOrder, string outputPath, CancellationToken token ) : Task>
RedditRip ( string filter, bool allAuthorsPosts, bool nsfw, bool onlyNsfw, bool verboseLogging ) : RedditSharp

Private Methods

Method Description
CombineLinkLists ( IEnumerable results, List links ) : List
GetExtention ( string imgurl ) : string
GetHtml ( string url, CancellationToken token ) : Task
GetImagesFromListing ( RedditSharp.Reddit reddit, IEnumerator listing, string outputPath, CancellationToken token ) : Task>
GetImgurImageOrAlbumFromUrl ( Post post, string outputPath, CancellationToken token ) : Task>
OutputLine ( string message, bool verboseMessage = false ) : void
SaveFile ( ImageLink imageLink, string filename, string extention ) : Task
SetImageProperty ( Image image, int propertyId, byte value ) : void

Method Details

DownloadPost() public method

public DownloadPost ( KeyValuePair post, string destination, CancellationToken token ) : Task
post KeyValuePair
destination string
token System.Threading.CancellationToken
return Task

GetImgurLinksFromSubReddit() public method

public GetImgurLinksFromSubReddit ( RedditSharp.Reddit reddit, string sub, SearchRange searchRange, Sorting sortOrder, string outputPath, CancellationToken token ) : Task>
reddit RedditSharp.Reddit
sub string
searchRange SearchRange
sortOrder Sorting
outputPath string
token System.Threading.CancellationToken
return Task>

RedditRip() public method

public RedditRip ( string filter, bool allAuthorsPosts, bool nsfw, bool onlyNsfw, bool verboseLogging ) : RedditSharp
filter string
allAuthorsPosts bool
nsfw bool
onlyNsfw bool
verboseLogging bool
return RedditSharp