mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-10-19 13:00:32 -04:00
Co-authored-by: DieselTech <30128380+DieselTech@users.noreply.github.com> Co-authored-by: majora2007 <josephmajora@gmail.com>
24 lines
741 B
C#
24 lines
741 B
C#
|
|
using System.Collections.Generic;
|
|
using API.DTOs.Account;
|
|
using API.Entities;
|
|
using API.Entities.Enums;
|
|
|
|
namespace API.DTOs;
|
|
#nullable enable
|
|
|
|
public sealed record UserDto
|
|
{
|
|
public string Username { get; init; } = null!;
|
|
public string Email { get; init; } = null!;
|
|
public IList<string> Roles { get; set; } = [];
|
|
public string Token { get; set; } = null!;
|
|
public string? RefreshToken { get; set; }
|
|
public string? ApiKey { get; init; }
|
|
public UserPreferencesDto? Preferences { get; set; }
|
|
public AgeRestrictionDto? AgeRestriction { get; init; }
|
|
public string KavitaVersion { get; set; }
|
|
/// <inheritdoc cref="AppUser.IdentityProvider"/>
|
|
public IdentityProvider IdentityProvider { get; init; }
|
|
}
|