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); }
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; }