Delta-v/Content.Server/Github/Responses/InstallationResponse.cs

22 lines
635 B
C#

using System.Text.Json.Serialization;
namespace Content.Server.Github.Responses;
/// <summary>
/// Not all fields are filled out - only the necessary ones. If you need more just add them.
/// <see href="https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app"/>>
/// </summary>
public sealed class InstallationResponse
{
public required int Id { get; set; }
public required GithubInstallationAccount Account { get; set; }
}
/// <inheritdoc cref="InstallationResponse"/>
public sealed class GithubInstallationAccount
{
public required string Login { get; set; }
}