Table of Contents

Class PartialResponse<TEntity>

Namespace
TypedRest.Http
Assembly
TypedRest.dll

Represents a subset of a set of elements.

public sealed class PartialResponse<TEntity>

Type Parameters

TEntity

The type of element the response contains.

Inheritance
PartialResponse<TEntity>
Inherited Members

Constructors

PartialResponse(IReadOnlyList<TEntity>, ContentRangeHeaderValue?)

Represents a subset of a set of elements.

public PartialResponse(IReadOnlyList<TEntity> elements, ContentRangeHeaderValue? range)

Parameters

elements IReadOnlyList<TEntity>

The returned elements.

range ContentRangeHeaderValue

The range the elements come from.

Properties

Elements

The returned elements.

public IReadOnlyList<TEntity> Elements { get; }

Property Value

IReadOnlyList<TEntity>

EndReached

Indicates whether the response reaches the end of the elements available on the server.

public bool EndReached { get; }

Property Value

bool

Range

The range the Elements come from.

public ContentRangeHeaderValue? Range { get; }

Property Value

ContentRangeHeaderValue