-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIGitHubClient.cs
22 lines (18 loc) · 969 Bytes
/
IGitHubClient.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using GitHubApiClient.Models.Requests;
using GitHubApiClient.Models.Responses;
using Refit;
namespace GitHubApiClient.Interfaces
{
[Headers("Authorization: Basic", "User-Agent: AO.GitHubApiClient")]
internal interface IGitHubClient
{
[Get("/repos/{userName}/{repositoryName}/issues")]
Task<IReadOnlyCollection<Issue>> GetIssuesAsync(string userName, string repositoryName, IssuesQuery? query = null);
[Get("/repos/{userName}/{repositoryName}/issues/comments")]
Task<IReadOnlyCollection<Comment>> GetCommentsAsync(string userName, string repositoryName, CommentQuery? query = null);
[Get("/user/repos")]
Task<IReadOnlyCollection<Repository>> GetMyRepositoriesAsync(RepositoryQuery? query = null);
[Get("/repos/{userName}/{repositoryName}/issues/events")]
Task<IReadOnlyCollection<IssueEvent>> GetIssueEventsAsync(string userName, string repositoryName, BaseQuery? query = null);
}
}