Class LoadRecordsResponse
- Namespace
- Vonage.Reports.LoadRecords
- Assembly
- Vonage.dll
Represents the synchronous records response, containing request metadata, pagination, and an array of product-specific records.
public record LoadRecordsResponse : IEquatable<LoadRecordsResponse>
- Inheritance
-
LoadRecordsResponse
- Implements
- Inherited Members
Constructors
LoadRecordsResponse(Guid, SyncRequestStatus, DateTimeOffset, long, ReportProduct, HalLinks<LoadRecordsHalLink>, Maybe<string>, Maybe<string>, Maybe<string>, JsonElement[])
Represents the synchronous records response, containing request metadata, pagination, and an array of product-specific records.
public LoadRecordsResponse(Guid RequestId, SyncRequestStatus RequestStatus, DateTimeOffset ReceivedAt, long ItemsCount, ReportProduct Product, HalLinks<LoadRecordsHalLink> Links, Maybe<string> Cursor, Maybe<string> Iv, Maybe<string> IdsNotFound, JsonElement[] Records)
Parameters
RequestIdGuidUnique ID associated with this synchronous request.
RequestStatusSyncRequestStatusThe result status of the request.
ReceivedAtDateTimeOffsetTimestamp when the request was processed by the Reports API.
ItemsCountlongThe number of records returned in this page.
ProductReportProductThe product type the records cover.
LinksHalLinks<LoadRecordsHalLink>HAL links for navigation and pagination.
CursorMaybe<string>Cursor for paginating results. Present only when pagination is applicable.
IvMaybe<string>Initialization vector for cursor processing. Present only when pagination is applicable.
IdsNotFoundMaybe<string>Comma-separated list of IDs not found, when the request was made by ID.
RecordsJsonElement[]The product-specific records returned by this request.
Properties
Cursor
Cursor for paginating results. Present only when pagination is applicable.
[JsonPropertyName("cursor")]
[JsonConverter(typeof(MaybeJsonConverter<string>))]
public Maybe<string> Cursor { get; init; }
Property Value
IdsNotFound
Comma-separated list of IDs not found, when the request was made by ID.
[JsonPropertyName("ids_not_found")]
[JsonConverter(typeof(MaybeJsonConverter<string>))]
public Maybe<string> IdsNotFound { get; init; }
Property Value
ItemsCount
The number of records returned in this page.
[JsonPropertyName("items_count")]
public long ItemsCount { get; init; }
Property Value
Iv
Initialization vector for cursor processing. Present only when pagination is applicable.
[JsonPropertyName("iv")]
[JsonConverter(typeof(MaybeJsonConverter<string>))]
public Maybe<string> Iv { get; init; }
Property Value
Links
HAL links for navigation and pagination.
[JsonPropertyName("_links")]
public HalLinks<LoadRecordsHalLink> Links { get; init; }
Property Value
Product
The product type the records cover.
[JsonPropertyName("product")]
[JsonConverter(typeof(EnumDescriptionJsonConverter<ReportProduct>))]
public ReportProduct Product { get; init; }
Property Value
ReceivedAt
Timestamp when the request was processed by the Reports API.
[JsonPropertyName("received_at")]
public DateTimeOffset ReceivedAt { get; init; }
Property Value
Records
The product-specific records returned by this request.
[JsonPropertyName("records")]
public JsonElement[] Records { get; init; }
Property Value
RequestId
Unique ID associated with this synchronous request.
[JsonPropertyName("request_id")]
public Guid RequestId { get; init; }
Property Value
RequestStatus
The result status of the request.
[JsonPropertyName("request_status")]
[JsonConverter(typeof(EnumDescriptionJsonConverter<SyncRequestStatus>))]
public SyncRequestStatus RequestStatus { get; init; }