GistComment() публичный статический Метод

Returns the Uri for a spesific comment for the specified commit.
public static GistComment ( string gistId, int commentId ) : Uri
gistId string The id of the gist
commentId int The id of the comment
Результат System.Uri
Пример #1
0
        /// <summary>
        /// Updates the comment with the specified gist- and comment id.
        /// </summary>
        /// <remarks>http://developer.github.com/v3/gists/comments/#edit-a-comment</remarks>
        /// <param name="gistId">The id of the gist</param>
        /// <param name="commentId">The id of the comment</param>
        /// <param name="comment">The updated body of the comment</param>
        /// <returns>Task{GistComment}.</returns>
        public Task <GistComment> Update(string gistId, int commentId, string comment)
        {
            Ensure.ArgumentNotNullOrEmptyString(comment, "comment");

            return(ApiConnection.Patch <GistComment>(ApiUrls.GistComment(gistId, commentId), new BodyWrapper(comment)));
        }
Пример #2
0
 /// <summary>
 /// Deletes the comment with the specified gist- and comment id.
 /// </summary>
 /// <remarks>http://developer.github.com/v3/gists/comments/#delete-a-comment</remarks>
 /// <param name="gistId">The id of the gist</param>
 /// <param name="commentId">The id of the comment</param>
 /// <returns>Task.</returns>
 public Task Delete(string gistId, int commentId)
 {
     return(ApiConnection.Delete(ApiUrls.GistComment(gistId, commentId)));
 }
Пример #3
0
 /// <summary>
 /// Gets a single comment by gist- and comment id.
 /// </summary>
 /// <remarks>http://developer.github.com/v3/gists/comments/#get-a-single-comment</remarks>
 /// <param name="gistId">The id of the gist</param>
 /// <param name="commentId">The id of the comment</param>
 /// <returns>Task{GistComment}.</returns>
 public Task <GistComment> Get(string gistId, int commentId)
 {
     return(ApiConnection.Get <GistComment>(ApiUrls.GistComment(gistId, commentId)));
 }