using System.Diagnostics.CodeAnalysis; namespace Baguette.Querying; public class PaginatedResult(IEnumerable items, int? total, bool hasTotal) { public IEnumerable Items { get; } = items; public int? Total { get; } = total; [MemberNotNullWhen(true, nameof(Total))] public bool HasTotal { get; } = hasTotal; }