refactor: move model definitions to GithubModels.cs

This commit is contained in:
2025-09-17 23:41:23 +02:00
parent 9d6a99da67
commit 4881170ba2
2 changed files with 12 additions and 10 deletions

View File

@@ -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
);

View File

@@ -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
);