Example #1
0
        /// <summary>
        /// Adds a comment to the specified issue.
        /// </summary>
        /// <param name="issue">The  issue to add the comment to.</param>
        /// <param name="comment">The comment to add to the issue.</param>
        /// <exception cref="WebServiceException">If the issue does not exist, or the the calling user does not have permission to comment on the issue.</exception>
        public void AddComment(BasicIssue issue, Comment comment)
        {
            var uri     = issue.Self.Append(CommentUriPostfix);
            var request = CommentJsonGenerator.Generate(comment, GetServerInfo());

            client.Post <Comment>(uri.ToString(), request);
        }
Example #2
0
        /// <summary>
        /// Adds a comment to the specified issue.
        /// </summary>
        /// <param name="commentsUri">The URI for the issue to add the comment to.</param>
        /// <param name="comment">The comment to add to the issue.</param>
        /// <exception cref="WebServiceException">If the issue does not exist, or the the calling user does not have permission to comment on the issue.</exception>
        public void AddComment(Uri commentsUri, Comment comment)
        {
            var request = CommentJsonGenerator.Generate(comment, GetServerInfo());

            client.Post <Comment>(commentsUri.ToString(), request);
        }