MCPcopy Create free account
hub / github.com/TryCatchLearn/Restore-v2 / PagedList

Method PagedList

API/RequestHelpers/PagedList.cs:8–18  ·  view source on GitHub ↗
(List<T> items, int count, int pageNumber, int pageSize)

Source from the content-addressed store, hash-verified

6public class PagedList<T> : List<T>
7{
8 public PagedList(List<T> items, int count, int pageNumber, int pageSize)
9 {
10 Metadata = new PaginationMetadata
11 {
12 TotalCount = count,
13 PageSize = pageSize,
14 CurrentPage = pageNumber,
15 TotalPages = (int)Math.Ceiling(count / (double)pageSize)
16 };
17 AddRange(items);
18 }
19
20 public PaginationMetadata Metadata { get; set; }
21

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected