using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace eSuite.API.Models;

/// <summary>
/// This will be returned when a new session has been successfully established.
/// </summary>
public class SuccessfulLogin
{
    /// <summary>
    /// Title of the message stating that the login was successful.
    /// </summary>
    [JsonPropertyName("title")]
    [Required]
    public string Title { get; set; } = string.Empty;

    /// <summary>
    /// The token to include in the bearer header to allow access to secure API calls.
    /// </summary>
    [JsonPropertyName("token")]
    [Required]
    public string Token { get; set; } = string.Empty;
}