using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; namespace Octokit { /// /// A client for GitHub's Project Cards API. /// /// /// See the Repository Projects API documentation for more information. /// public interface IProjectCardsClient { /// /// Gets all cards. /// /// /// See the API documentation for more information. /// /// The id of the column Task> GetAll(int columnId); /// /// Gets all cards. /// /// /// See the API documentation for more information. /// /// The id of the column /// Options for changing the API response Task> GetAll(int columnId, ApiOptions options); /// /// Gets all cards. /// /// /// See the API documentation for more information. /// /// The id of the column /// Used to filter the list of project cards returned Task> GetAll(int columnId, ProjectCardRequest request); /// /// Gets all cards. /// /// /// See the API documentation for more information. /// /// The id of the column /// Used to filter the list of project cards returned /// Options for changing the API response Task> GetAll(int columnId, ProjectCardRequest request, ApiOptions options); /// /// Gets a single card. /// /// /// See the API documentation for more information. /// /// The id of the card [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] Task Get(int id); /// /// Creates a card. /// /// /// See the API documentation for more information. /// /// The id of the column /// The card to create Task Create(int columnId, NewProjectCard newProjectCard); /// /// Updates a card. /// /// /// See the API documentation for more information. /// /// The id of the card /// New values to update the card with Task Update(int id, ProjectCardUpdate projectCardUpdate); /// /// Deletes a card. /// /// /// See the API documentation for more information. /// /// The id of the card Task Delete(int id); /// /// Moves a card. /// /// /// See the API documentation for more information. /// /// The id of the card /// The position to move the card Task Move(int id, ProjectCardMove position); } }