using System.Runtime.Serialization;
using System.Text.Json.Serialization;
namespace Jellyfin.Plugin.Keycloak
{
///
/// Response model for the keycloak token.
///
[DataContract]
public class KeycloakTokenResponse
{
///
/// Gets or sets the access token instance.
///
[JsonPropertyName("access_token")]
public string? AccessToken { get; set; }
///
/// Gets or sets the expiry time instance.
///
[JsonPropertyName("expires_in")]
public int ExpiresIn { get; set; }
///
/// Gets or sets the not-before-policy instance.
///
[JsonPropertyName("not-before-policy")]
public int NotBeforePolicy { get; set; }
///
/// Gets or sets the refresh token instance.
///
[JsonPropertyName("refresh_token")]
public string? RefreshToken { get; set; }
///
/// Gets or sets the scope instance.
///
[JsonPropertyName("scope")]
public string? Scope { get; set; }
///
/// Gets or sets the session state instance.
///
[JsonPropertyName("session_state")]
public string? SessionState { get; set; }
///
/// Gets or sets the token type instance.
///
[JsonPropertyName("token_type")]
public string? TokenType { get; set; }
}
}