using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; namespace Octokit { /// /// A client for GitHub's Issue Milestones API. /// /// /// See the Issue Milestones API documentation for more information. /// public interface IMilestonesClient { /// /// Gets a single Milestone by number. /// /// /// http://developer.github.com/v3/issues/milestones/#get-a-single-milestone /// /// [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] Task Get(string owner, string name, int number); /// /// Gets a single Milestone by number. /// /// /// http://developer.github.com/v3/issues/milestones/#get-a-single-milestone /// /// [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] Task Get(long repositoryId, int number); /// /// Gets all open milestones for the repository. /// /// /// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository /// /// The owner of the repository /// The name of the repository /// Task> GetAllForRepository(string owner, string name); /// /// Gets all open milestones for the repository. /// /// /// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository /// /// The Id of the repository /// Task> GetAllForRepository(long repositoryId); /// /// Gets all open milestones for the repository. /// /// /// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository /// /// The owner of the repository /// The name of the repository /// Options for changing the API response /// Task> GetAllForRepository(string owner, string name, ApiOptions options); /// /// Gets all open milestones for the repository. /// /// /// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository /// /// The Id of the repository /// Options for changing the API response /// Task> GetAllForRepository(long repositoryId, ApiOptions options); /// /// Gets all open milestones for the repository. /// /// /// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository /// /// The owner of the repository /// The name of the repository /// Used to filter and sort the list of Milestones returned /// Task> GetAllForRepository(string owner, string name, MilestoneRequest request); /// /// Gets all open milestones for the repository. /// /// /// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository /// /// The Id of the repository /// Used to filter and sort the list of Milestones returned /// Task> GetAllForRepository(long repositoryId, MilestoneRequest request); /// /// Gets all open milestones for the repository. /// /// /// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository /// /// The owner of the repository /// The name of the repository /// Used to filter and sort the list of Milestones returned /// Options for changing the API response /// Task> GetAllForRepository(string owner, string name, MilestoneRequest request, ApiOptions options); /// /// Gets all open milestones for the repository. /// /// /// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository /// /// The Id of the repository /// Used to filter and sort the list of Milestones returned /// Options for changing the API response /// Task> GetAllForRepository(long repositoryId, MilestoneRequest request, ApiOptions options); /// /// Creates a milestone for the specified repository. Any user with pull access to a repository can create an /// Milestone. /// /// http://developer.github.com/v3/issues/milestones/#create-a-milestone /// The owner of the repository /// The name of the repository /// A instance describing the new Milestone to create /// Task Create(string owner, string name, NewMilestone newMilestone); /// /// Creates a milestone for the specified repository. Any user with pull access to a repository can create an /// Milestone. /// /// http://developer.github.com/v3/issues/milestones/#create-a-milestone /// The Id of the repository /// A instance describing the new Milestone to create /// Task Create(long repositoryId, NewMilestone newMilestone); /// /// Creates a milestone for the specified repository. Any user with pull access to a repository can create an /// Milestone. /// /// http://developer.github.com/v3/issues/milestones/#update-a-milestone /// The owner of the repository /// The name of the repository /// The Milestone number /// An instance describing the changes to make to the Milestone /// /// Task Update(string owner, string name, int number, MilestoneUpdate milestoneUpdate); /// /// Creates a milestone for the specified repository. Any user with pull access to a repository can create an /// Milestone. /// /// http://developer.github.com/v3/issues/milestones/#update-a-milestone /// The Id of the repository /// The Milestone number /// An instance describing the changes to make to the Milestone /// /// Task Update(long repositoryId, int number, MilestoneUpdate milestoneUpdate); /// /// Deletes a milestone for the specified repository. Any user with pull access to a repository can create an /// Milestone. /// /// http://developer.github.com/v3/issues/milestones/#delete-a-milestone /// The owner of the repository /// The name of the repository /// The milestone number /// Task Delete(string owner, string name, int number); /// /// Deletes a milestone for the specified repository. Any user with pull access to a repository can create an /// Milestone. /// /// http://developer.github.com/v3/issues/milestones/#delete-a-milestone /// The Id of the repository /// The milestone number /// Task Delete(long repositoryId, int number); } }