Exemplo n.º 1
0
        private async Task <string> getJson()
        {
            WebClient.JsonHandler  jh    = new WebClient.JsonHandler();
            List <Structures.Post> posts = await jh.getPostList(1317876, 1);

            return(posts[posts.Count - 1].htmlMsg);
        }
Exemplo n.º 2
0
        private async void updatePostList(bool isNew)
        {
            if (isNew)
            {
                postsCurrentPage = 1;
                lstPosts         = await jh.getPostList(currentTid, postsCurrentPage ++);

                vmThread.newPosts(lstPosts);
            }
            else
            {
                List <Post> tmp = await jh.getPostList(currentTid, postsCurrentPage ++);

                lstPosts.Concat(tmp);
                vmThread.addPosts(tmp);
            }
        }