Table of Contents

Struct MassivePagedResult<T>

Namespace
MassiveDotNet
Assembly
MassiveDotNet.dll

One page of a paginated Massive endpoint whose page is a single object rather than an array, such as a technical indicator whose values continue across pages while each page carries its own underlying aggregates.

public readonly record struct MassivePagedResult<T> : IEquatable<MassivePagedResult<T>>

Type Parameters

T

The result object type.

Implements
Inherited Members

Remarks

The sibling of MassivePage<T> with T in place of T[]. Returned by the List methods of such endpoints; the matching Enumerate method walks every page and yields the items inside each result object as one flat sequence, which is why only List can show the rest of the object.

The cursor itself is deliberately not exposed, for the reason MassivePage<T> gives: there is no public API that accepts one back.

Equality is the compiler-synthesized record equality, which compares Result with its own equality. A default instance, which any struct permits, has a null Result; the SDK never constructs one, and the constructor refuses a null result so that the only way to obtain one is to ask for default.

Constructors

MassivePagedResult(T, bool, string?)

Initializes a new instance of the MassivePagedResult<T> struct.

public MassivePagedResult(T result, bool hasMore, string? requestId)

Parameters

result T

The page's result object.

hasMore bool

Whether the server offered a cursor to a further page.

requestId string

The server-assigned request identifier, when present.

Exceptions

ArgumentNullException

result is null.

Properties

HasMore

Whether more pages exist. When true, the matching Enumerate method will retrieve the remainder.

public bool HasMore { get; }

Property Value

bool

RequestId

The server-assigned request identifier. Include this when contacting Massive support. null when the endpoint does not return one.

public string? RequestId { get; }

Property Value

string

Result

The result object in this page. Never null when constructed through the SDK.

public T Result { get; }

Property Value

T