using System.Collections.Generic; using System.Threading.Tasks; namespace Octokit { /// /// A client for GitHub's Repository Autolinks API /// /// /// See the API documentation for more information. /// public interface IAutolinksClient { /// /// Returns a single autolink reference by ID that was configured for the given repository /// /// The account owner of the repository /// The name of the repository /// The unique identifier of the autolink /// See the API documentation for more information. Task Get(string owner, string repo, int autolinkId); /// /// Returns a list of autolinks configured for the given repository /// /// The account owner of the repository /// The name of the repository /// See the API documentation for more information. Task> GetAll(string owner, string repo); /// /// Returns a list of autolinks configured for the given repository /// /// The account owner of the repository /// The name of the repository /// Options for changing the API response /// See the API documentation for more information. Task> GetAll(string owner, string repo, ApiOptions options); /// /// Create an autolink reference for a repository /// /// The account owner of the repository /// The name of the repository /// The Autolink object to be created for the repository /// See the API documentation for more information. Task Create(string owner, string repo, AutolinkRequest autolink); /// /// Deletes a single autolink reference by ID that was configured for the given repository /// /// The account owner of the repository /// The name of the repository /// The unique identifier of the autolink /// See the API documentation for more information. Task Delete(string owner, string repo, int autolinkId); } }