Sky.Net/API/Helpers/Pagination.cs
2022-05-11 16:24:26 -07:00

23 lines
585 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace API.Helpers
{
public class Pagination<T> where T : class
{
public Pagination(int pageIndex, int pageSize, int count, IReadOnlyList<T> data)
{
PageIndex = pageIndex;
PageSize = pageSize;
Count = count;
Data = data;
}
public int PageIndex { get; set; }
public int PageSize { get; set; }
public int Count { get; set; }
public IReadOnlyList<T> Data {get; set;}
}
}