Class QueryResultBase<T>

Base implementation for Query results.

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsQuerying
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public abstract class QueryResultBase<T> : IQueryResult<T>, IQueryResult
Type Parameters
NameDescription
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
TypeNameDescription
IEnumerable<>items

The items.

longtotalItems

The items total.

longoffset

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
TypeDescription
IList<>

Offset

Gets or sets describes the start of this page.

Declaration
RequestResponse
public long Offset { get; set; }
Property Value
TypeDescription
long

TotalNumberOfResults

Gets the total number of items that match the given query.

Declaration
RequestResponse
public long TotalNumberOfResults { get; set; }
Property Value
TypeDescription
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
TypeDescription
IList<>object

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,