PagedResult<T>
A class in Alta.Api.Client, Alta.Api.Client.LowLevel.
Pages through a paged Alta API endpoint, following the paginationToken response header.
- Listed in Alta.Api.Client
- Inherits or implements
IPagedResult<T>
Constructors
| Member | What it is |
|---|---|
PagedResult(Func<PagedConfig, Task<HttpResponseMessage>> getNext, PagedConfig config = null) | Creates a PagedResult from getNext and config. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private readonly PagedConfig config | Page size and current pagination token. Defaults to a limit of 20. |
private readonly Func<PagedConfig, Task<HttpResponseMessage>> getNext | Function that sends the request for a page using the config. |
private bool hasRun | Whether a page has been fetched yet. |
Properties
Methods
1 private and internal method
Used in
Members of other types that take, return or hold a PagedResult<T>:
LowLevelApiClient.GetFriendRequests, LowLevelApiClient.GetFriends, LowLevelApiClient.GetFriendsForUser, LowLevelApiClient.GetGroupBans, LowLevelApiClient.GetGroupInvites, LowLevelApiClient.GetGroupJoinRequests, LowLevelApiClient.GetGroupMembers, LowLevelApiClient.GetGroupsByType, LowLevelApiClient.GetInvitesInGroup, LowLevelApiClient.GetJoinedGroups, LowLevelApiClient.GetRequestedGroups, LowLevelApiClient.GetSentFriendRequests.