예제 #1
0
        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));
        }
예제 #2
0
        private void btCreateFriendship_Click(object sender, RoutedEventArgs e)
        {
            Button tmpButton = (Button)sender;
            CommentTimelineList CommentTimelineItem = (CommentTimelineList)tmpButton.DataContext;

            if (CommentTimelineItem != null)
            {
                CreateFriendship(CommentTimelineItem.UsersItem.UserID);
            }
        }
예제 #3
0
        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();
            }
        }