using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; namespace Octokit { /// /// A client for GitHub's Issue Events API. /// /// /// See the Issue Events API documentation for more information. /// public interface IIssuesEventsClient { /// /// Gets all events for the issue. /// /// /// http://developer.github.com/v3/issues/events/#list-events-for-an-issue /// /// The owner of the repository /// The name of the repository /// The issue number Task> GetAllForIssue(string owner, string name, int number); /// /// Gets all events for the issue. /// /// /// http://developer.github.com/v3/issues/events/#list-events-for-an-issue /// /// The Id of the repository /// The issue number Task> GetAllForIssue(long repositoryId, int number); /// /// Gets all events for the issue. /// /// /// http://developer.github.com/v3/issues/events/#list-events-for-an-issue /// /// The owner of the repository /// The name of the repository /// The issue number /// Options for changing the API response Task> GetAllForIssue(string owner, string name, int number, ApiOptions options); /// /// Gets all events for the issue. /// /// /// http://developer.github.com/v3/issues/events/#list-events-for-an-issue /// /// The Id of the repository /// The issue number /// Options for changing the API response Task> GetAllForIssue(long repositoryId, int number, ApiOptions options); /// /// Gets all events for the repository. /// /// /// http://developer.github.com/v3/issues/events/#list-events-for-a-repository /// /// The owner of the repository /// The name of the repository Task> GetAllForRepository(string owner, string name); /// /// Gets all events for the repository. /// /// /// http://developer.github.com/v3/issues/events/#list-events-for-a-repository /// /// The Id of the repository Task> GetAllForRepository(long repositoryId); /// /// Gets all events for the repository. /// /// /// http://developer.github.com/v3/issues/events/#list-events-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 events for the repository. /// /// /// http://developer.github.com/v3/issues/events/#list-events-for-a-repository /// /// The Id of the repository /// Options for changing the API response Task> GetAllForRepository(long repositoryId, ApiOptions options); /// /// Gets a single event /// /// /// http://developer.github.com/v3/issues/events/#get-a-single-event /// /// The owner of the repository /// The name of the repository /// The event id [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] Task Get(string owner, string name, long eventId); /// /// Gets a single event /// /// /// http://developer.github.com/v3/issues/events/#get-a-single-event /// /// The Id of the repository /// The event id [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] Task Get(long repositoryId, long eventId); } }