private TweetStatus ParseTweetResponse(string response)
        {
            TweetStatus tweet = new TweetStatus();

            XDocument xd = XDocument.Parse(response);

            if (xd != null)
            {
                XElement xe = xd.Element("status");

                if (xe != null)
                {
                    tweet.ID   = Convert.ToInt64(xe.GetElementValue("id"));
                    tweet.Text = xe.GetElementValue("text");
                    tweet.InReplyToScreenName = xe.GetElementValue("in_reply_to_screen_name");
                }
            }

            return(tweet);
        }
Exemplo n.º 2
0
        private TweetStatus ParseTweetResponse(string response)
        {
            TweetStatus tweet = new TweetStatus();

            XDocument xd = XDocument.Parse(response);

            if (xd != null)
            {
                XElement xe = xd.Element("status");

                if (xe != null)
                {
                    tweet.ID = Convert.ToInt64(xe.GetElementValue("id"));
                    tweet.Text = xe.GetElementValue("text");
                    tweet.InReplyToScreenName = xe.GetElementValue("in_reply_to_screen_name");
                }
            }

            return tweet;
        }