tgstation-server
6.9.1
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Api
Models
Response
PaginatedResponse.cs
Go to the documentation of this file.
1
using
System.Collections.Generic;
2
using
System.ComponentModel.DataAnnotations;
3
4
namespace
Tgstation.Server.Api.Models.Response
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
}
Tgstation.Server.Api.Models.Response.PaginatedResponse
Represents a paginated set of models.
Definition
PaginatedResponse.cs:11
Tgstation.Server.Api.Models.Response.PaginatedResponse.TotalPages
int TotalPages
The total number of pages in the query.
Definition
PaginatedResponse.cs:21
Tgstation.Server.Api.Models.Response.PaginatedResponse.Content
ICollection< TModel >? Content
The ICollection<T> of the returned TModel s.
Definition
PaginatedResponse.cs:16
Tgstation.Server.Api.Models.Response.PaginatedResponse.PageSize
int PageSize
The current size of pages in the query.
Definition
PaginatedResponse.cs:26
Tgstation.Server.Api.Models.Response.PaginatedResponse.TotalItems
int TotalItems
The total items across all pages.
Definition
PaginatedResponse.cs:31
Tgstation.Server.Api.Models.Response
Definition
AdministrationResponse.cs:4
Tgstation.Server.Api.Models.FieldPresence.Required
@ Required
The field is required.
Generated by
1.9.8