Interface IListRequest
Represents a request which can be filtered, sorted and paged.
Namespace: BiExcellence.OpenBi.Api.Commands
Assembly: BiExcellence.OpenBi.Api.dll
Syntax
public interface IListRequest
Methods
AddField(string)
Adds an individual field to be requested. Can also be a table attribute.
Declaration
IListRequest AddField(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the field |
Returns
Type | Description |
---|---|
IListRequest |
AddFilter(string, IFilter)
Adds a filter for a specific field.
Declaration
IListRequest AddFilter(string name, IFilter filter)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the field. |
IFilter | filter | The filter condition. |
Returns
Type | Description |
---|---|
IListRequest |
ClearFields()
Clears all existing requested fields.
Declaration
IListRequest ClearFields()
Returns
Type | Description |
---|---|
IListRequest |
ClearFilters()
Clears all existing filters.
Declaration
IListRequest ClearFilters()
Returns
Type | Description |
---|---|
IListRequest |
Count(int?)
Sets the maximum returning result size.
Declaration
IListRequest Count(int? count)
Parameters
Type | Name | Description |
---|---|---|
int? | count | The count. |
Returns
Type | Description |
---|---|
IListRequest |
Offset(int?)
Sets the zero based offset from which to start returning results.
Declaration
IListRequest Offset(int? offset)
Parameters
Type | Name | Description |
---|---|---|
int? | offset | The offset. |
Returns
Type | Description |
---|---|
IListRequest |
Search(string)
Sets text to search for in all text fields.
Declaration
IListRequest Search(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The value to search for. |
Returns
Type | Description |
---|---|
IListRequest |
SendAsync(CancellationToken)
Sends the list request to the server.
Declaration
Task<IListResponse> SendAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<IListResponse> | A list response. |
SortAscending(string)
Sets the field name to sort for in ascending order.
Declaration
IListRequest SortAscending(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The field name for ascending sorting. |
Returns
Type | Description |
---|---|
IListRequest |
SortDescending(string)
Sets the field name to sort for in descening order.
Declaration
IListRequest SortDescending(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The field name for descending sorting. |
Returns
Type | Description |
---|---|
IListRequest |