using System.Collections.Generic; using System.Threading.Tasks; namespace Octokit { /// /// A client for GitHub's Repository Forks API. /// /// /// See the Forks API documentation for more information. /// public interface IRepositoryForksClient { /// /// Gets the list of forks defined for a repository /// /// /// See API documentation for more information. /// /// The owner of the repository /// The name of the repository Task> GetAll(string owner, string name); /// /// Gets the list of forks defined for a repository /// /// /// See API documentation for more information. /// /// The Id of the repository Task> GetAll(int repositoryId); /// /// Gets the list of forks defined for a repository /// /// /// See API documentation for more information. /// /// The owner of the repository /// The name of the repository /// Options for changing the API response Task> GetAll(string owner, string name, ApiOptions options); /// /// Gets the list of forks defined for a repository /// /// /// See API documentation for more information. /// /// The Id of the repository /// Options for changing the API response Task> GetAll(int repositoryId, ApiOptions options); /// /// Gets the list of forks defined for a repository /// /// /// See API documentation for more information. /// /// The owner of the repository /// The name of the repository /// Used to request and filter a list of repository forks Task> GetAll(string owner, string name, RepositoryForksListRequest request); /// /// Gets the list of forks defined for a repository /// /// /// See API documentation for more information. /// /// The Id of the repository /// Used to request and filter a list of repository forks Task> GetAll(int repositoryId, RepositoryForksListRequest request); /// /// Gets the list of forks defined for a repository /// /// /// See API documentation for more information. /// /// The owner of the repository /// The name of the repository /// Used to request and filter a list of repository forks /// Options for changing the API response Task> GetAll(string owner, string name, RepositoryForksListRequest request, ApiOptions options); /// /// Gets the list of forks defined for a repository /// /// /// See API documentation for more information. /// /// The Id of the repository /// Used to request and filter a list of repository forks /// Options for changing the API response Task> GetAll(int repositoryId, RepositoryForksListRequest request, ApiOptions options); /// /// Creates a fork for a repository. Specify organization in the fork parameter to create for an organization. /// /// /// See API documentation for more information. /// /// The owner of the repository /// The name of the repository /// Used to fork a repository Task Create(string owner, string name, NewRepositoryFork fork); /// /// Creates a fork for a repository. Specify organization in the fork parameter to create for an organization. /// /// /// See API documentation for more information. /// /// The Id of the repository /// Used to fork a repository Task Create(int repositoryId, NewRepositoryFork fork); } }