C# Класс RedditRip.Core.RedditRip

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

DownloadPost() публичный Метод

public DownloadPost ( KeyValuePair post, string destination, CancellationToken token ) : Task
post KeyValuePair
destination string
token System.Threading.CancellationToken
Результат Task

GetImgurLinksFromSubReddit() публичный Метод

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
Результат Task>

RedditRip() публичный Метод

public RedditRip ( string filter, bool allAuthorsPosts, bool nsfw, bool onlyNsfw, bool verboseLogging ) : RedditSharp
filter string
allAuthorsPosts bool
nsfw bool
onlyNsfw bool
verboseLogging bool
Результат RedditSharp