tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
PaginatedResponse.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using System.ComponentModel.DataAnnotations;
3
5{
10 public sealed class PaginatedResponse<TModel>
11 {
15 [Required]
16 public ICollection<TModel>? Content { get; set; }
17
21 public int TotalPages { get; set; }
22
26 public int PageSize { get; set; }
27
31 public int TotalItems { get; set; }
32 }
33}
int TotalPages
The total number of pages in the query.
ICollection< TModel >? Content
The ICollection<T> of the returned TModel s.
int PageSize
The current size of pages in the query.
@ Required
DMAPI validation must suceed for the deployment to succeed.