public List <CommentTimelineList> GetCommentTimeline(string format, string apiToken, string apiTokenSecret) { SinaApiService myApi = new SinaApiService(); string myResult = myApi.comments_timeline(format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret); XDocument doc = XDocument.Parse(myResult); return(CommentTimelineList.Parse(doc.Root)); }
private void btCreateFriendship_Click(object sender, RoutedEventArgs e) { Button tmpButton = (Button)sender; CommentTimelineList CommentTimelineItem = (CommentTimelineList)tmpButton.DataContext; if (CommentTimelineItem != null) { CreateFriendship(CommentTimelineItem.UsersItem.UserID); } }
private void btReplyComment_Click(object sender, RoutedEventArgs e) { HyperlinkButton tmpHyperButton = (HyperlinkButton)sender; CommentTimelineList CommentTimelineItem = (CommentTimelineList)tmpHyperButton.DataContext; if (CommentTimelineItem != null) { cReplyCommentChildWindow = new ReplyCommentChildWindow(CommentTimelineItem.CommentID, CommentTimelineItem.StatusItem.TwitterID); cReplyCommentChildWindow.Show(); } }