ParallelModelResponse<TData> record
Represents a ParallelModel API response with a strongly typed data payload while retaining the HTTP status, original response text and headers.
public record ParallelModelResponse<TData>
where TData : class
| parameter | description |
|---|---|
| TData | The reference type used to represent the response data. |
Public Members
| name | description |
|---|---|
| ParallelModelResponse(…) | Represents a ParallelModel API response with a strongly typed data payload while retaining the HTTP status, original response text and headers. |
| Data { get; set; } | The deserialized response data, or null when no typed data is available. |
| Headers { get; set; } | The response headers and their string values. |
| Ok { get; } | Gets a value indicating whether the HTTP status code is in the successful 2xx range. |
| StatusCode { get; set; } | The HTTP status code returned by the API. |
| StatusCodeNumber { get; } | Gets the numeric representation of the HTTP status code. |
| Text { get; set; } | The original response body as text. |
See Also
- namespace ParallelModel.Sdk