Spaces:
Sleeping
Sleeping
Download BlazorWebAssembly/Models/PagedResult.cs from Yuruyuruu/LibraryManagement: direct link, hf CLI and curl.
- Browser
- Download file 450 Bytes
-
https://huggingface.co/spaces/Yuruyuruu/LibraryManagement/resolve/main/BlazorWebAssembly/Models/PagedResult.cs
- Command line
-
hf download hf://spaces/Yuruyuruu/LibraryManagement/BlazorWebAssembly/Models/PagedResult.cs
-
curl -L -o PagedResult.cs https://huggingface.co/spaces/Yuruyuruu/LibraryManagement/resolve/main/BlazorWebAssembly/Models/PagedResult.cs
450 Bytes
| namespace BlazorWebAssembly.Models | |
| { | |
| public class PagedResult<T> | |
| { | |
| public IEnumerable<T> Items { get; set; } = Enumerable.Empty<T>(); | |
| public int TotalCount { get; set; } | |
| public int PageSize { get; set; } | |
| public int CurrentPage { get; set; } | |
| public int TotalPages { get; set; } | |
| public bool HasPreviousPage => CurrentPage > 1; | |
| public bool HasNextPage => CurrentPage < TotalPages; | |
| } | |
| } | |