refactor: move model definitions to GithubModels.cs
This commit is contained in:
12
src/GithubRepoRemover/Api/GithubModels.cs
Normal file
12
src/GithubRepoRemover/Api/GithubModels.cs
Normal 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
|
||||
);
|
||||
@@ -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
|
||||
);
|
||||
Reference in New Issue
Block a user