You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
API/src/HeartTrackAPI/Responce/PageResponse.cs

22 lines
534 B

namespace HeartTrackAPI.Responce;
public class PageResponse<T>
{
// The index of the first item
public int Index { get; set; } = 1;
// The number of items
public int Count { get; set; } = 1;
// The total number of items
public int Total { get; set; } = 1;
// The items
public IEnumerable<T> Items { get; set; }
public PageResponse(int index, int count, int total, IEnumerable<T> items)
{
Index = index;
Count = count;
Total = total;
Items = items;
}
}