Renames project paths from Lumina to Nemera

This commit is contained in:
BinaryAlley committed 2026-11-27 15:34:43 +02:00
1 parent ce6fddb4c9
commit 0f659a4877
6450 files changed

No files matched your search

@@ -0,0 +1,37 @@
#region ========================================================================= USING =====================================================================================
using System.Collections.Generic;
#endregion
namespace Lumina.Application.Common.DTO.Pagination;
/// <summary>
/// Represents a paginated result containing a subset of data and pagination metadata for the current page.
/// </summary>
/// <typeparam name="TData">The type of the data items contained in the paginated result.</typeparam>
public sealed record PaginatedResultDto<TData>
{
/// <summary>
/// Gets the collection of data items associated with this instance.
/// </summary>
public required IReadOnlyList<TData> Data { get; init; }
/// <summary>
/// Gets the current page number in a paginated collection.
/// </summary>
public required int CurrentPage { get; init; }
/// <summary>
/// Gets or sets the number of items to include per page in paginated results.
/// </summary>
public required int PerPage { get; init; }
/// <summary>
/// Gets the total number of elements available in the paginated result set.
/// </summary>
public required int Count { get; init; }
/// <summary>
/// Gets the total number of pages based on elements available in the result set and per page.
/// </summary>
public required int NumberOfPages { get; init; }
}
@@ -0,0 +1,38 @@
#region ========================================================================= USING =====================================================================================
using System;
#endregion
namespace Lumina.Application.Common.DTO.Pagination;
/// <summary>
/// Data transfer object for pagination metadata.
/// </summary>
public sealed record PaginationDataDto
{
private int perPage = 200;
private int currentPage = 1;
/// <summary>
/// Gets the current page number in a paginated collection.
/// </summary>
public int CurrentPage
{
get { return currentPage; }
set
{
currentPage = Math.Max(value, 1);
}
}
/// <summary>
/// Gets or sets the number of items to include per page in paginated results.
/// </summary>
public int PerPage
{
get { return perPage; }
set
{
perPage = Math.Max(value, 1);
}
}
}