14 lines
493 B
C#
14 lines
493 B
C#
namespace CloudPrint.Client.Models;
|
|
|
|
public sealed class AdminSession
|
|
{
|
|
public int AdminId { get; init; }
|
|
public string Username { get; init; } = string.Empty;
|
|
public string Nickname { get; init; } = string.Empty;
|
|
public int Role { get; init; }
|
|
public string AccessToken { get; init; } = string.Empty;
|
|
|
|
public bool IsAuthenticated => !string.IsNullOrWhiteSpace(AccessToken);
|
|
|
|
public string DisplayName => string.IsNullOrWhiteSpace(Nickname) ? Username : Nickname;
|
|
} |