/// <summary> /// Gets issues for a repository. /// </summary> /// <remarks> /// http://developer.github.com/v3/issues/#list-issues-for-a-repository /// </remarks> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="request">Used to filter and sort the list of issues returned</param> /// <param name="options">Options for changing the API response</param> /// <returns>A signal containing one or more <see cref="Issue"/>s.</returns> public IObservable <Issue> GetAllForRepository(string owner, string name, RepositoryIssueRequest request, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(options, "options"); return(_connection.GetAndFlattenAllPages <Issue>(ApiUrls.Issues(owner, name), request.ToParametersDictionary(), options)); }
/// <summary> /// Gets issues for a repository. /// </summary> /// <remarks> /// http://developer.github.com/v3/issues/#list-issues-for-a-repository /// </remarks> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="request">Used to filter and sort the list of issues returned</param> /// <returns></returns> public IObservable<Issue> GetForRepository(string owner, string name, RepositoryIssueRequest request) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNull(request, "request"); return _connection.GetAndFlattenAllPages<Issue>(ApiUrls.Issues(owner, name), request.ToParametersDictionary()); }
/// <summary> /// Gets issues for a repository. /// </summary> /// <remarks> /// http://developer.github.com/v3/issues/#list-issues-for-a-repository /// </remarks> /// <param name="repositoryId">The Id of the repository</param> /// <param name="request">Used to filter and sort the list of issues returned</param> /// <param name="options">Options for changing the API response</param> public IObservable <Issue> GetAllForRepository(int repositoryId, RepositoryIssueRequest request, ApiOptions options) { Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(options, "options"); return(_connection.GetAndFlattenAllPages <Issue>(ApiUrls.Issues(repositoryId), request.ToParametersDictionary(), options)); }
/// <summary> /// Gets issues for a repository. /// </summary> /// <remarks> /// http://developer.github.com/v3/issues/#list-issues-for-a-repository /// </remarks> /// <param name="repositoryId">The ID of the repository</param> /// <param name="request">Used to filter and sort the list of issues returned</param> /// <param name="options">Options for changing the API response</param> public IObservable<Issue> GetAllForRepository(int repositoryId, RepositoryIssueRequest request, ApiOptions options) { Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(options, "options"); return _connection.GetAndFlattenAllPages<Issue>(ApiUrls.Issues(repositoryId), request.ToParametersDictionary(), options); }
/// <summary> /// Gets issues for a repository. /// </summary> /// <remarks> /// http://developer.github.com/v3/issues/#list-issues-for-a-repository /// </remarks> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="request">Used to filter and sort the list of issues returned</param> /// <param name="options">Options for changing the API response</param> public IObservable<Issue> GetAllForRepository(string owner, string name, RepositoryIssueRequest request, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(options, "options"); return _connection.GetAndFlattenAllPages<Issue>(ApiUrls.Issues(owner, name), request.ToParametersDictionary(), AcceptHeaders.ReactionsPreview, options); }
/// <summary> /// Gets issues for a repository. /// </summary> /// <remarks> /// http://developer.github.com/v3/issues/#list-issues-for-a-repository /// </remarks> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="request">Used to filter and sort the list of issues returned</param> /// <param name="options">Options for changing the API response</param> public IObservable <Issue> GetAllForRepository(string owner, string name, RepositoryIssueRequest request, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); Ensure.ArgumentNotNull(request, nameof(request)); Ensure.ArgumentNotNull(options, nameof(options)); return(_connection.GetAndFlattenAllPages <Issue>(ApiUrls.Issues(owner, name), request.ToParametersDictionary(), AcceptHeaders.ReactionsPreview, options)); }