13 lines
340 B
C#
13 lines
340 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace Baguette.Querying;
|
|
|
|
public class PaginatedResult<T>(IEnumerable<T> items, int? total, bool hasTotal)
|
|
{
|
|
public IEnumerable<T> Items { get; } = items;
|
|
|
|
public int? Total { get; } = total;
|
|
|
|
[MemberNotNullWhen(true, nameof(Total))]
|
|
public bool HasTotal { get; } = hasTotal;
|
|
} |