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

16 lines
511 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 TokenResponse
{
public required string Token { get; set; }
[JsonPropertyName("expires_at")]
public required DateTime ExpiresAt { get; set; }
}