Beispiel #1
0
 public async Task<PostCollection> PrevAsync()
 {
     var posts = await this.api.FetchPrevPostsAsync(this.subreddit, this.sortMode, this.before, this.count);
     var result = new PostCollection(this.api, this.subreddit, this.sortMode, this.count - posts.Data.Children.Count);
     result.LoadPostsResponse(posts);
     return result;
 }
Beispiel #2
0
 public async Task<PostCollection> GetPostsAsync(string subreddit, SortMode sortMode)
 {
     var postCollection = new PostCollection(this.api, subreddit, sortMode.Mode);
     await postCollection.LoadAsync();
     return postCollection;
 }