Kavita/API/DTOs/Account/MemberDto.cs
Joe Milazzo 9f29fa593d
Progress Overhaul + Profile Page and a LOT more! (#4262)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
2025-12-09 10:00:11 -07:00

29 lines
890 B
C#

using System;
using System.Collections.Generic;
using API.Entities.Enums;
namespace API.DTOs.Account;
#nullable enable
/// <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; }
}