/// <summary> /// Gets Issue Comments for a repository. /// </summary> /// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param> /// <param name="options">Options for changing the API response</param> public Task <IReadOnlyList <IssueComment> > GetAllForRepository(string owner, string name, IssueCommentRequest request, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(options, "options"); return(ApiConnection.GetAll <IssueComment>(ApiUrls.IssueComments(owner, name), request.ToParametersDictionary(), AcceptHeaders.ReactionsPreview, options)); }
/// <summary> /// Gets Issue Comments for a repository. /// </summary> /// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks> /// <param name="repositoryId">The Id of the repository</param> /// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param> /// <param name="options">Options for changing the API response</param> public Task <IReadOnlyList <IssueComment> > GetAllForRepository(long repositoryId, IssueCommentRequest request, ApiOptions options) { Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(options, "options"); return(ApiConnection.GetAll <IssueComment>(ApiUrls.IssueComments(repositoryId), request.ToParametersDictionary(), AcceptHeaders.ReactionsPreview, options)); }
/// <summary> /// Gets Issue Comments for a repository. /// </summary> /// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param> public Task <IReadOnlyList <IssueComment> > GetAllForRepository(string owner, string name, IssueCommentRequest request) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNull(request, "request"); return(GetAllForRepository(owner, name, request, ApiOptions.None)); }
/// <summary> /// Gets Issue Comments for a repository. /// </summary> /// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks> /// <param name="repositoryId">The Id of the repository</param> /// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param> public Task <IReadOnlyList <IssueComment> > GetAllForRepository(long repositoryId, IssueCommentRequest request) { Ensure.ArgumentNotNull(request, "request"); return(GetAllForRepository(repositoryId, request, ApiOptions.None)); }
public Task <IReadOnlyList <IssueComment> > GetAllForIssue(long repositoryId, int number, IssueCommentRequest request) { Ensure.ArgumentNotNull(request, nameof(request)); return(GetAllForIssue(repositoryId, number, request, ApiOptions.None)); }
public Task <IReadOnlyList <IssueComment> > GetAllForIssue(string owner, string name, int number, IssueCommentRequest request, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); Ensure.ArgumentNotNull(request, nameof(request)); Ensure.ArgumentNotNull(options, nameof(options)); return(ApiConnection.GetAll <IssueComment>(ApiUrls.IssueComments(owner, name, number), request.ToParametersDictionary(), AcceptHeaders.ReactionsPreview, options)); }
public Task <IReadOnlyList <IssueComment> > GetAllForIssue(string owner, string name, int number, IssueCommentRequest request) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); Ensure.ArgumentNotNull(request, nameof(request)); return(GetAllForIssue(owner, name, number, request, ApiOptions.None)); }
/// <summary> /// Gets Issue Comments for a repository. /// </summary> /// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks> /// <param name="repositoryId">The Id of the repository</param> /// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param> /// <param name="options">Options for changing the API response</param> public Task<IReadOnlyList<IssueComment>> GetAllForRepository(long repositoryId, IssueCommentRequest request, ApiOptions options) { Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(options, "options"); return ApiConnection.GetAll<IssueComment>(ApiUrls.IssueComments(repositoryId), request.ToParametersDictionary(), AcceptHeaders.ReactionsPreview, options); }
/// <summary> /// Gets Issue Comments for a repository. /// </summary> /// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param> /// <param name="options">Options for changing the API response</param> public Task<IReadOnlyList<IssueComment>> GetAllForRepository(string owner, string name, IssueCommentRequest request, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(options, "options"); return ApiConnection.GetAll<IssueComment>(ApiUrls.IssueComments(owner, name), request.ToParametersDictionary(), AcceptHeaders.ReactionsPreview, options); }
/// <summary> /// Gets Issue Comments for a repository. /// </summary> /// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks> /// <param name="repositoryId">The Id of the repository</param> /// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param> public Task<IReadOnlyList<IssueComment>> GetAllForRepository(long repositoryId, IssueCommentRequest request) { Ensure.ArgumentNotNull(request, "request"); return GetAllForRepository(repositoryId, request, ApiOptions.None); }
/// <summary> /// Gets Issue Comments for a repository. /// </summary> /// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param> public Task<IReadOnlyList<IssueComment>> GetAllForRepository(string owner, string name, IssueCommentRequest request) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNull(request, "request"); return GetAllForRepository(owner, name, request, ApiOptions.None); }