public async void GetThread() { var threadPage = await Chan.GetThreadPageAsync("a", 1); var threadNumber = threadPage.Threads.First().Posts.First().PostNumber; var thread = await Chan.GetThreadAsync("a", threadNumber); NotNull(thread); }
/// <inheritdoc /> protected override async Task GatherAsync(IDownloaderClient client, List <IPost> list, CancellationToken token) { if (ThreadId > 0) { ProcessThread(list, await Chan.GetThreadAsync(Board, ThreadId).CAF(), ThreadId, token); return; } for (var i = 1; i < 10; ++i) { foreach (var thread in (await Chan.GetThreadPageAsync(Board, i).CAF()).Threads) { if (!ProcessThread(list, thread, thread.Posts[0].PostNumber, token)) { return; } } } }