Class QueryResultBase<T>
Base implementation for Query results.
Inheritance
object
QueryResultBase<T>
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsQuerying
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public abstract class QueryResultBase<T> : IQueryResult<T>, IQueryResultType Parameters
| Name | Description |
|---|---|
| T |
Type of the queried items. |
Constructors
QueryResultBase(IEnumerable<T>, long, long)
Initializes a new instance of the QueryResultBase<T> class.
Declaration
RequestResponse
protected QueryResultBase(IEnumerable<T> items, long totalItems, long offset)Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<> | items |
The items. |
| long | totalItems |
The items total. |
| long | offset |
The offset. |
Properties
Items
Gets the results that matched the query. This property only contains the results for the requested page. There may be more results available.
Declaration
RequestResponse
public IList<T> Items { get; set; }Property Value
| Type | Description |
|---|---|
| IList<> |
Offset
Gets or sets describes the start of this page.
Declaration
RequestResponse
public long Offset { get; set; }Property Value
| Type | Description |
|---|---|
| long |
TotalNumberOfResults
Gets the total number of items that match the given query.
Declaration
RequestResponse
public long TotalNumberOfResults { get; set; }Property Value
| Type | Description |
|---|---|
| long |
Explicit Interface Implementations
IQueryResult.Items
Gets the results that matched the query. This property only contains the results for the requested page. There may be more results available.
Declaration
RequestResponse
IList<object> IQueryResult.Items { get; }Returns
| Type | Description |
|---|---|
| IList<>object |