public void get_tag_index()
        {            
            string str = url + "?json=get_tag_index";
            TagIndex tags = new TagIndex();
            WordpressEventArgs args = new WordpressEventArgs(WordpressDataType.TagIndex, HttpStatusCode.OK, true);
            Helper.HttpWebRequestDownload((asynchronousResult) =>
            {
                HttpWebRequest request =
                    (HttpWebRequest)asynchronousResult.AsyncState;
                HttpWebResponse response =
                    (HttpWebResponse)request.EndGetResponse(asynchronousResult);

                if (response.StatusCode == HttpStatusCode.OK)
                {
                    try
                    {
                        using (StreamReader streamReader1 =
                            new StreamReader(response.GetResponseStream()))
                        {
                            string resultString = streamReader1.ReadToEnd();

                            tags = Helper.Deserialize<TagIndex>(resultString);

                        }
                    }
                    catch
                    {
                        args.Success = false;
                    }
                }
                else
                {
                    args.ResponseCode = response.StatusCode;
                    args.Success = false;
                }

                Deployment.Current.Dispatcher.BeginInvoke(new Action(() =>
                {
                    try
                    {
                        get_tag_index_complete.Invoke(tags, args);
                    }
                    catch
                    {
                    }
                }));
            }, str);
        }      
Exemple #2
0
 public void create_post(string nonce, string status = null, string title = null, string content = null, string author = null, CategoryIndex ci = null, TagIndex ti = null)
 {
     throw new NotImplementedException();
 }