Fesaa c62b20f54b
BE Tech Debt (#4497)
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
2026-03-07 10:04:08 -08:00

28 lines
893 B
C#

using System;
using System.Collections.Generic;
using Kavita.Models.Entities.Enums;
namespace Kavita.Models.DTOs.Account;
/// <summary>
/// Represents a member of a Kavita server.
/// </summary>
public sealed record MemberDto
{
public int Id { get; init; }
public string? Username { get; init; }
public string? Email { get; init; }
/// <summary>
/// If the member is still pending or not
/// </summary>
public bool IsPending { get; init; }
public AgeRestrictionDto? AgeRestriction { get; init; }
public DateTime Created { get; init; }
public DateTime CreatedUtc { get; init; }
public DateTime LastActive { get; init; }
public DateTime LastActiveUtc { get; init; }
public IEnumerable<LibraryDto>? Libraries { get; init; }
public IEnumerable<string>? Roles { get; init; }
public IdentityProvider IdentityProvider { get; init; }
}