mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-03-21 09:10:19 -04:00
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com> Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
19 lines
644 B
C#
19 lines
644 B
C#
|
|
|
|
using Kavita.Models.Entities.Enums;
|
|
|
|
namespace Kavita.Models.DTOs.Account;
|
|
|
|
public sealed record AgeRestrictionDto
|
|
{
|
|
/// <summary>
|
|
/// The maximum age rating a user has access to. -1 if not applicable
|
|
/// </summary>
|
|
public required AgeRating AgeRating { get; init; } = AgeRating.NotApplicable;
|
|
/// <summary>
|
|
/// Are Unknowns explicitly allowed against age rating
|
|
/// </summary>
|
|
/// <remarks>Unknown is always lowest and default age rating. Setting this to false will ensure Teen age rating applies and unknowns are still filtered</remarks>
|
|
public required bool IncludeUnknowns { get; init; } = false;
|
|
}
|