Пример #1
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            _navigationHelper.OnNavigatedTo(e);
            string id = (string)e.Parameter;

            RedditService redditService = new RedditService();
            PostComments  postComments  = await redditService.GetPostCommentsAsync(id);

            Post = postComments.Post;
        }
Пример #2
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            _navigationHelper.OnNavigatedTo(e);
            RedditService redditService = new RedditService();

            var subreddits = await redditService.GetSubredditsAsync();

            Subreddits = new List <string>(subreddits);

            await redditService.GetPostCommentsAsync("2vvaj6");
        }