Beispiel #1
0
        public async Task <PostCollection> GetPostsAsync(string subreddit, SortMode sortMode)
        {
            var postCollection = new PostCollection(this.api, subreddit, sortMode.Mode);
            await postCollection.LoadAsync();

            return(postCollection);
        }
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;
 }
Beispiel #3
0
 public TaskbarViewModel(IEventAggregator events)
 {
     this.events = events;
     this.SortModes = SortMode.AllModes;
     this.SelectedSortMode = SortMode.Hot;
 }