using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NEIntelligentControl2.Models
{
    /// <summary>
    /// 分页信息
    /// </summary>
    /// <typeparam name="T"></typeparam>
    internal class PageInfo<T>
    {
        /// <summary>
        /// 元素总数
        /// </summary>
        public int TotalElements { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public int TotalPages { get; set; }
        /// <summary>
        /// 是否是第一页
        /// </summary>
        public bool Last { get; set; }
        /// <summary>
        /// 是否是第一页
        /// </summary>
        public bool First { get; set; }
        /// <summary>
        /// 页数（从0开始）
        /// </summary>
        public int Number { get; set; }
        /// <summary>
        /// 每页大小
        /// </summary>
        public int Size { get; set; }
        /// <summary>
        /// 本页数据数量
        /// </summary>
        public int NumberOfElements { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public List<T> Content { get; set; }
    }
}
