tgstation-server 6.14.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
22 public int TotalPages { get; set; }
23
28 public int PageSize { get; set; }
29
34 public int TotalItems { get; set; }
35 }
36}
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.