/// <summary> /// Gets the page of posts after the specified page. /// </summary> /// <param name="page">The page for which the succeding page is to be retrieved.</param> /// <exception cref="NineGagException">If anything goes wrong during the retrieval of the page, an <see cref="NineGagException"/> exception is thrown.</exception> /// <returns>Returns the page of posts after the specified page.</returns> public Task<Page> GetPostsAsync(Page page) => this.GetPostsAsync(page, new CancellationTokenSource().Token);
/// <summary> /// Gets the page of posts after the specified page. /// </summary> /// <param name="page">The page for which the succeding page is to be retrieved.</param> /// <param name="cancellationToken">The cancellation token, which can be used to cancel the retrieval of the page.</param> /// <exception cref="NineGagException">If anything goes wrong during the retrieval of the page, an <see cref="NineGagException"/> exception is thrown.</exception> /// <returns>Returns the page of posts after the specified page.</returns> public Task<Page> GetPostsAsync(Page page, CancellationToken cancellationToken) => this.GetPostsAsync(page.NextPageUri, cancellationToken);