/// <summary> /// Get all projects for this repository. /// </summary> /// <remarks> /// See the <a href="https://developer.github.com/v3/projects/#list-repository-projects">API documentation</a> for more information. /// </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 the list of projects returned</param> /// <param name="options">Options for changing the API response</param> public Task <IReadOnlyList <Project> > GetAllForRepository(string owner, string name, ProjectRequest 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 <Project>(ApiUrls.RepositoryProjects(owner, name), request.ToParametersDictionary(), AcceptHeaders.ProjectsApiPreview, options)); }
/// <summary> /// Get all projects for this repository. /// </summary> /// <remarks> /// See the <a href="https://developer.github.com/v3/projects/#list-repository-projects">API documentation</a> for more information. /// </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 the list of projects returned</param> public Task <IReadOnlyList <Project> > GetAllForRepository(string owner, string name, ProjectRequest request) { return(GetAllForRepository(owner, name, request, ApiOptions.None)); }
/// <summary> /// Get all projects for the specified organization. /// </summary> /// <remarks> /// See the <a href="https://developer.github.com/v3/projects/#list-organization-projects">API documentation</a> for more information. /// </remarks> /// <param name="organization">The name of the organziation</param> /// <param name="request">Used to filter the list of projects returned</param> /// <param name="options">Options for changing the API response</param> public Task <IReadOnlyList <Project> > GetAllForOrganization(string organization, ProjectRequest request, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization)); Ensure.ArgumentNotNull(request, nameof(request)); Ensure.ArgumentNotNull(options, nameof(options)); return(ApiConnection.GetAll <Project>(ApiUrls.OrganizationProjects(organization), request.ToParametersDictionary(), AcceptHeaders.ProjectsApiPreview, options)); }
/// <summary> /// Get all projects for the specified organization. /// </summary> /// <remarks> /// See the <a href="https://developer.github.com/v3/projects/#list-organization-projects">API documentation</a> for more information. /// </remarks> /// <param name="organization">The name of the organziation</param> /// <param name="request">Used to filter the list of projects returned</param> public Task <IReadOnlyList <Project> > GetAllForOrganization(string organization, ProjectRequest request) { Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization)); Ensure.ArgumentNotNull(request, nameof(request)); return(GetAllForOrganization(organization, request, ApiOptions.None)); }
/// <summary> /// Get all projects for this repository. /// </summary> /// <remarks> /// See the <a href="https://developer.github.com/v3/projects/#list-repository-projects">API documentation</a> for more information. /// </remarks> /// <param name="repositoryId">The Id of the repository</param> /// <param name="request">Used to filter the list of projects returned</param> /// <param name="options">Options for changing the API response</param> public Task <IReadOnlyList <Project> > GetAllForRepository(long repositoryId, ProjectRequest request, ApiOptions options) { Ensure.ArgumentNotNull(request, nameof(request)); Ensure.ArgumentNotNull(options, nameof(options)); return(ApiConnection.GetAll <Project>(ApiUrls.RepositoryProjects(repositoryId), request.ToParametersDictionary(), AcceptHeaders.ProjectsApiPreview, options)); }
/// <summary> /// Get all projects for this repository. /// </summary> /// <remarks> /// See the <a href="https://developer.github.com/v3/projects/#list-repository-projects">API documentation</a> for more information. /// </remarks> /// <param name="repositoryId">The Id of the repository</param> /// <param name="request">Used to filter the list of projects returned</param> public Task <IReadOnlyList <Project> > GetAllForRepository(long repositoryId, ProjectRequest request) { return(GetAllForRepository(repositoryId, request, ApiOptions.None)); }