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
TThe 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
resultTThe page's result object.
hasMoreboolWhether the server offered a cursor to a further page.
requestIdstringThe server-assigned request identifier, when present.
Exceptions
- ArgumentNullException
resultis null.
Properties
HasMore
Whether more pages exist. When true, the matching Enumerate method
will retrieve the remainder.
public bool HasMore { get; }
Property Value
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
Result
The result object in this page. Never null when constructed through the SDK.
public T Result { get; }
Property Value
- T