namespace StickyBoard.Core.Repositories.Base; public sealed class PagedResult { public IEnumerable Items { get; init; } = Enumerable.Empty(); public int Total { get; init; } public int Limit { get; init; } public int Offset { get; init; } public static PagedResult Create(IEnumerable items, int total, int limit, int offset) { return new PagedResult { Items = items, Total = total, Limit = limit, Offset = offset }; } public static PagedResult Empty(int limit, int offset) { return new PagedResult { Items = Enumerable.Empty(), Total = 0, Limit = limit, Offset = offset }; } }