Class QueryResultPagingManager
Current version: 3.4
Query result paging manager.
Inheritance
object
QueryResultPagingManager
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsQuerying
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public static class QueryResultPagingManager
Methods
CanMoveNext(IQueryResult)
Checks if the query can move to the next page.
Declaration
RequestResponse
public static bool CanMoveNext(IQueryResult queryResult)
Parameters
Type | Name | Description |
---|---|---|
IQueryResult | queryResult |
The query result. |
Returns
Type | Description |
---|---|
bool |
Weather the query can move to next page. |
CanMovePrevious(IQueryResult)
Checks if the query can move to the previous page.
Declaration
RequestResponse
public static bool CanMovePrevious(IQueryResult queryResult)
Parameters
Type | Name | Description |
---|---|---|
IQueryResult | queryResult |
The query result. |
Returns
Type | Description |
---|---|
bool |
Weather the query can move to previous page. |
GetIterationPagesize(IQueryResult)
Gets the page size.
Declaration
RequestResponse
public static long GetIterationPagesize(IQueryResult queryResult)
Parameters
Type | Name | Description |
---|---|---|
IQueryResult | queryResult |
The query result. |
Returns
Type | Description |
---|---|
long |
The page size. |
GetOffsetNextPage(IQueryResult)
Gets the next page offset.
Declaration
RequestResponse
public static long GetOffsetNextPage(IQueryResult queryResult)
Parameters
Type | Name | Description |
---|---|---|
IQueryResult | queryResult |
The query result. |
Returns
Type | Description |
---|---|
long |
The offset. |
GetOffsetPreviousPage(IQueryResult)
Gets the previous page offset.
Declaration
RequestResponse
public static long GetOffsetPreviousPage(IQueryResult queryResult)
Parameters
Type | Name | Description |
---|---|---|
IQueryResult | queryResult |
The query result. |
Returns
Type | Description |
---|---|
long |
The offset. |