Interface IPagedListApiClient<TContent>
Interface for a content typed API client that can list all of the content items the user has access to.
Namespace: Tableau.Migration.Api
Assembly: Tableau.Migration.dll
Syntax
public interface IPagedListApiClient<TContent>
Type Parameters
| Name | Description |
|---|---|
| TContent | The content type. |
Methods
GetAllAsync(int, CancellationToken)
Gets all the content items that the user has access to.
Declaration
Task<IResult<IImmutableList<TContent>>> GetAllAsync(int pageSize, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| int | pageSize | The expected maximum number of items to include in each page. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<IResult<IImmutableList<TContent>>> | The total results. |
GetPager(int)
Gets a pager to list all the content the user has access to.
Declaration
IPager<TContent> GetPager(int pageSize)
Parameters
| Type | Name | Description |
|---|---|---|
| int | pageSize | The page size to use. |
Returns
| Type | Description |
|---|---|
| IPager<TContent> | A pager to list content with. |