#region ========================================================================= USING ===================================================================================== using System.Collections.Generic; #endregion namespace Lumina.Application.Common.DTO.Pagination; /// /// Represents a paginated result containing a subset of data and pagination metadata for the current page. /// /// The type of the data items contained in the paginated result. public sealed record PaginatedResultDto { /// /// Gets the collection of data items associated with this instance. /// public required IReadOnlyList Data { get; init; } /// /// Gets the current page number in a paginated collection. /// public required int CurrentPage { get; init; } /// /// Gets or sets the number of items to include per page in paginated results. /// public required int PerPage { get; init; } /// /// Gets the total number of elements available in the paginated result set. /// public required int Count { get; init; } /// /// Gets the total number of pages based on elements available in the result set and per page. /// public required int NumberOfPages { get; init; } }