Table of Contents

Class DataResponse<T>

Namespace
Nexus.Api
Assembly
Nexus.Api.dll

Result of a data request with a certain resource path.

public sealed record DataResponse<T> : IEquatable<DataResponse<T>> where T : struct

Type Parameters

T

The element type of the data.

Inheritance
DataResponse<T>
Implements
Inherited Members

Constructors

DataResponse(ResourceInfo, ReadOnlyMemory<T>)

Result of a data request with a certain resource path.

public DataResponse(ResourceInfo Info, ReadOnlyMemory<T> Values)

Parameters

Info ResourceInfo

The resource metadata.

Values ReadOnlyMemory<T>

The data.

Properties

Info

The resource metadata.

public ResourceInfo Info { get; init; }

Property Value

ResourceInfo

Values

The data.

public ReadOnlyMemory<T> Values { get; init; }

Property Value

ReadOnlyMemory<T>