/// <summary> /// Gets the list of forks defined for a repository /// </summary> /// <remarks> /// See <a href="http://developer.github.com/v3/repos/forks/#list-forks">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 request and filter a list of repository forks</param> /// <returns>A <see cref="IReadOnlyList{Repository}"/> of <see cref="Repository"/>s representing forks of specified repository.</returns> public Task<IReadOnlyList<Repository>> GetAll(string owner, string name, RepositoryForksListRequest request) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); return GetAll(owner, name, request, ApiOptions.None); }
/// <summary> /// Gets the list of forks defined for a repository /// </summary> /// <remarks>See <a href="http://developer.github.com/v3/repos/forks/#list-forks">API documentation</a> for more information.</remarks> /// <returns></returns> public Task<IReadOnlyList<Repository>> GetAll(string owner, string repositoryName, RepositoryForksListRequest request) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName"); return request == null ? ApiConnection.GetAll<Repository>(ApiUrls.RepositoryForks(owner, repositoryName)) : ApiConnection.GetAll<Repository>(ApiUrls.RepositoryForks(owner, repositoryName), request.ToParametersDictionary()); }
/// <summary> /// Gets the list of forks defined for a repository /// </summary> /// <remarks> /// See <a href="http://developer.github.com/v3/repos/forks/#list-forks">API documentation</a> for more information. /// </remarks> /// <param name="repositoryId">The Id of the repository</param> /// <param name="request">Used to request and filter a list of repository forks</param> public Task <IReadOnlyList <Repository> > GetAll(long repositoryId, RepositoryForksListRequest request) { Ensure.ArgumentNotNull(request, nameof(request)); return(GetAll(repositoryId, request, ApiOptions.None)); }
/// <summary> /// Gets the list of forks defined for a repository /// </summary> /// <remarks> /// See <a href="http://developer.github.com/v3/repos/forks/#list-forks">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 request and filter a list of repository forks</param> /// <param name="options">Options for changing the API response</param> /// <returns>A <see cref="IReadOnlyList{Repository}"/> of <see cref="Repository"/>s representing forks of specified repository.</returns> public Task<IReadOnlyList<Repository>> GetAll(string owner, string name, RepositoryForksListRequest request, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNull(options, "options"); return request == null ? ApiConnection.GetAll<Repository>(ApiUrls.RepositoryForks(owner, name), options) : ApiConnection.GetAll<Repository>(ApiUrls.RepositoryForks(owner, name), request.ToParametersDictionary(), options); }
/// <summary> /// Gets the list of forks defined for a repository /// </summary> /// <remarks>See <a href="http://developer.github.com/v3/repos/forks/#list-forks">API documentation</a> for more information.</remarks> /// <returns></returns> public Task <IReadOnlyList <Repository> > GetAll(string owner, string repositoryName, RepositoryForksListRequest request) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName"); return(request == null ? ApiConnection.GetAll <Repository>(ApiUrls.RepositoryForks(owner, repositoryName)) : ApiConnection.GetAll <Repository>(ApiUrls.RepositoryForks(owner, repositoryName), request.ToParametersDictionary())); }
/// <summary> /// Gets the list of forks defined for a repository /// </summary> /// <remarks> /// See <a href="http://developer.github.com/v3/repos/forks/#list-forks">API documentation</a> for more information. /// </remarks> /// <param name="repositoryId">The Id of the repository</param> /// <param name="request">Used to request and filter a list of repository forks</param> /// <param name="options">Options for changing the API response</param> public Task<IReadOnlyList<Repository>> GetAll(int repositoryId, RepositoryForksListRequest request, ApiOptions options) { Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(options, "options"); return ApiConnection.GetAll<Repository>(ApiUrls.RepositoryForks(repositoryId), request.ToParametersDictionary(), options); }
/// <summary> /// Gets the list of forks defined for a repository /// </summary> /// <remarks> /// See <a href="http://developer.github.com/v3/repos/forks/#list-forks">API documentation</a> for more information. /// </remarks> /// <param name="repositoryId">The Id of the repository</param> /// <param name="request">Used to request and filter a list of repository forks</param> public Task<IReadOnlyList<Repository>> GetAll(int repositoryId, RepositoryForksListRequest request) { Ensure.ArgumentNotNull(request, "request"); return GetAll(repositoryId, request, ApiOptions.None); }