コード例 #1
0
        /// <summary>
        /// Edit comment.
        /// </summary>
        /// <param name="comment"></param>
        /// <returns></returns>
        public bool EditComment(string comment_id, CommentStatus status, DateTime date_created_gmt, string content, string author, string author_url, string author_email)
        {
            var xmlRpcComment = new XmlRpcComment
            {
                author       = author,
                author_email = author_email,
                author_url   = author_url,
                dateCreated  = date_created_gmt,
                content      = content,
                status       = EnumsHelper.GetCommentStatusName(status)
            };

            return(_wrapper.EditComment(this.BlogID, Username, Password, xmlRpcComment));
        }
コード例 #2
0
        /// <summary>
        /// Edit comment.
        /// </summary>
        /// <param name="comment"></param>
        /// <returns></returns>
        public bool EditComment(Comment comment)
        {
            var xmlRpcComment = Map.From.Comment(comment);

            return(_wrapper.EditComment(this.BlogID, Username, Password, xmlRpcComment));
        }