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

Returns the Uri for the comments for the specified gist.
public static GistComments ( string gistId ) : Uri
gistId string The id of the gist
Результат System.Uri
Пример #1
0
        /// <summary>
        /// Gets all comments for the gist with the specified id.
        /// </summary>
        /// <remarks>http://developer.github.com/v3/gists/comments/#list-comments-on-a-gist</remarks>
        /// <param name="gistId">The id of the gist</param>
        /// <param name="options">Options for changing the API response</param>
        /// <returns>Task{IReadOnlyList{GistComment}}.</returns>
        public Task <IReadOnlyList <GistComment> > GetAllForGist(string gistId, ApiOptions options)
        {
            Ensure.ArgumentNotNullOrEmptyString(gistId, "gistId");
            Ensure.ArgumentNotNull(options, "options");

            return(ApiConnection.GetAll <GistComment>(ApiUrls.GistComments(gistId), options));
        }
Пример #2
0
        /// <summary>
        /// Creates a comment for the gist with the specified id.
        /// </summary>
        /// <remarks>http://developer.github.com/v3/gists/comments/#create-a-comment</remarks>
        /// <param name="gistId">The id of the gist</param>
        /// <param name="comment">The body of the comment</param>
        /// <returns>Task{GistComment}.</returns>
        public Task <GistComment> Create(string gistId, string comment)
        {
            Ensure.ArgumentNotNullOrEmptyString(comment, "comment");

            return(ApiConnection.Post <GistComment>(ApiUrls.GistComments(gistId), new BodyWrapper(comment)));
        }
 /// <summary>
 /// Gets all comments for the gist with the specified id.
 /// </summary>
 /// <remarks>http://developer.github.com/v3/gists/comments/#list-comments-on-a-gist</remarks>
 /// <param name="gistId">The id of the gist</param>
 /// <returns>Task{IReadOnlyList{GistComment}}.</returns>
 public Task<IReadOnlyList<GistComment>> GetAllForGist(string gistId)
 {
     return ApiConnection.GetAll<GistComment>(ApiUrls.GistComments(gistId));
 }