Class EventDocSubType
- Namespace
- DatabentoDotNet.Reference
- Assembly
- DatabentoDotNet.Reference.dll
One subtype an event can be narrowed to, and what that subtype means.
public sealed record EventDocSubType : IEquatable<EventDocSubType>
- Inheritance
-
EventDocSubType
- Implements
- Inherited Members
Remarks
Port of upstream's EventDocSubType (corporate.rs:463-470).
Code is EventSubType and not EventSubType?, and that is
this library's spelling of upstream's Option rather than a departure from it. The ten
open code carriers already have a value meaning "no value": default, whose
HasValue is false and whose
Code is null. A Nullable<T> on top
would give the same absence two spellings and force every caller to check both. The five
carriers on SecurityMaster and AdjustmentFactor make the same call; the one place
this library does reach for a Nullable<T> is SecurityMaster.Voting, and
only because a closed enum's default is an undefined byte rather than
an absence.
The live endpoint returned 77 subtype entries across 60 events, seven of them with a null code — so the absent case is real and not a theoretical one.
Properties
Code
The subtype's code, or default when the server sent none.
public EventSubType Code { get; init; }
Property Value
Description
What the subtype means.
public required string Description { get; init; }