Beispiel #1
0
        //@}

/*! \name Experimental
 *       Experimental methods require patches. */

        //@{

        /*! \example AppendComment.cs
         * This is an example on how to use the Bugzproxy.Bug.AppendComment method */

        /// <summary>Append a comment to the bug.</summary>
        /// <param name="comment">The comment to append</param>
        /// <param name="isPrivate"><b>true</b> to make this comment visible to members
        /// of Bugzilla's <c>insidergroup</c> only, <b>false</b> (or <b>null</b>) to
        /// make it visible to all members.</param>
        /// <param name="worktime">The work time of this comment. Can be <b>null</b>
        /// or 0 for no work time. Ignored if You are not in the <c>timetrackinggroup</c>.
        /// </param>
        /// <remarks>
        /// <para>This requires a patch from
        /// <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=355847">Bug 355847</a>.
        /// </para>
        /// <para>If <paramref name="isPrivate"/> is <b>null</b>, the comment is assumed
        /// public.</para>
        /// </remarks>
        public void AppendComment(string comment, bool?isPrivate, double?worktime)
        {
            AppendCommentParam param = new AppendCommentParam();

            param.id        = bi.id;
            param.comment   = comment;
            param.isPrivate = isPrivate;
            param.workTime  = worktime;
            server.Proxy.AppendComment(param);
        }
Beispiel #2
0
 //@}
 /*! \name Experimental
  Experimental methods require patches. */
 //@{
 /*! \example AppendComment.cs
  * This is an example on how to use the Bugzproxy.Bug.AppendComment method */
 /// <summary>Append a comment to the bug.</summary>
 /// <param name="comment">The comment to append</param>
 /// <param name="isPrivate"><b>true</b> to make this comment visible to members
 /// of Bugzilla's <c>insidergroup</c> only, <b>false</b> (or <b>null</b>) to
 /// make it visible to all members.</param>
 /// <param name="worktime">The work time of this comment. Can be <b>null</b>
 /// or 0 for no work time. Ignored if You are not in the <c>timetrackinggroup</c>.
 /// </param>
 /// <remarks>
 /// <para>This requires a patch from
 /// <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=355847">Bug 355847</a>.
 /// </para>
 /// <para>If <paramref name="isPrivate"/> is <b>null</b>, the comment is assumed
 /// public.</para>
 /// </remarks>
 public void AppendComment(string comment, bool? isPrivate, double? worktime)
 {
     AppendCommentParam param = new AppendCommentParam ();
     param.id = bi.id;
     param.comment = comment;
     param.isPrivate = isPrivate;
     param.workTime = worktime;
     server.Proxy.AppendComment (param);
 }