diff --git a/src/GithubRepoRemover/Api/GithubModels.cs b/src/GithubRepoRemover/Api/GithubModels.cs new file mode 100644 index 0000000..c1e48e0 --- /dev/null +++ b/src/GithubRepoRemover/Api/GithubModels.cs @@ -0,0 +1,12 @@ +using System.Text.Json.Serialization; + +namespace GithubRepoRemover.Api; +public record GithubRepositoryResponse( + [property: JsonPropertyName("id")] long Id, + [property: JsonPropertyName("full_name")] string FullName, + [property: JsonPropertyName("name")] string ShortName +); + +public record GithubAuthenticatedUserResponse( + [property: JsonPropertyName("login")] string Name +); \ No newline at end of file diff --git a/src/GithubRepoRemover/Api/IGithubClient.cs b/src/GithubRepoRemover/Api/IGithubClient.cs index 41eed05..ef76fb1 100644 --- a/src/GithubRepoRemover/Api/IGithubClient.cs +++ b/src/GithubRepoRemover/Api/IGithubClient.cs @@ -1,5 +1,4 @@ using Refit; -using System.Text.Json.Serialization; namespace GithubRepoRemover.Api; internal interface IGithubClient @@ -37,12 +36,3 @@ internal interface IGithubClient string repo); } -public record GithubRepositoryResponse( - [property: JsonPropertyName("id")] long Id, - [property: JsonPropertyName("full_name")] string FullName, - [property: JsonPropertyName("name")] string ShortName -); - -public record GithubAuthenticatedUserResponse( - [property: JsonPropertyName("login")] string Name -); \ No newline at end of file