tgstation-server 6.12.3
The /tg/station 13 server suite
|
Client that deals with getting paginated results. More...
Public Member Functions | |
PaginatedClient (IApiClient apiClient) | |
Initializes a new instance of the PaginatedClient class. | |
Protected Member Functions | |
async ValueTask< List< TModel > > | ReadPaged< TModel > (PaginationSettings? paginationSettings, string route, long? instanceId, CancellationToken cancellationToken) |
Reads a given route with paged results. | |
Properties | |
IApiClient | ApiClient [get] |
The IApiClient for the PaginatedClient. | |
Client that deals with getting paginated results.
Definition at line 16 of file PaginatedClient.cs.
Tgstation.Server.Client.PaginatedClient.PaginatedClient | ( | IApiClient | apiClient | ) |
Initializes a new instance of the PaginatedClient class.
apiClient | The value of ApiClient. |
Definition at line 27 of file PaginatedClient.cs.
|
protected |
Reads a given route with paged results.
TModel | The Type of result model. |
paginationSettings | The PaginationSettings if any. |
route | The route. |
instanceId | The optional Instance EntityId.Id. |
cancellationToken | The CancellationToken for the operation. |
Definition at line 41 of file PaginatedClient.cs.
References Tgstation.Server.Client.PaginationSettings.Offset, Tgstation.Server.Api.Models.Response.PaginatedResponse< TModel >.PageSize, Tgstation.Server.Client.PaginationSettings.PageSize, and Tgstation.Server.Client.PaginationSettings.RetrieveCount.
|
getprotected |
The IApiClient for the PaginatedClient.
Definition at line 21 of file PaginatedClient.cs.