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); }
/// <summary> /// Constructor of the debug page /// </summary> public DebugPage() { this.InitializeComponent(); this.viewModel = new UI.ViewModelThread(); jh = new WebClient.JsonHandler(); console = "click any buttons"; HttpBaseProtocolFilter filter = new HttpBaseProtocolFilter(); wbPostMaxWidth = lvPostList.ActualWidth - 200; this.Bindings.Update(); }
public MainPage() { this.InitializeComponent(); postsCurrentPage = 1; threadsCurrentPage = 1; currentTid = 1330359; currentFid = 75; Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings; this.vmThread = new UI.ViewModelThread(); this.vmSubForum = new UI.ViewModelSubForum(); this.vmForum = new UI.ViewModelForum(); this.lstPosts = new List <Post>(); this.lstThreads = new List <Thread>(); jh = new WebClient.JsonHandler(); HttpBaseProtocolFilter filter = new HttpBaseProtocolFilter(); this.Bindings.Update(); }