Skip to main content

ParallelModelResponse<TData> constructor

Represents a ParallelModel API response with a strongly typed data payload while retaining the HTTP status, original response text and headers.

public ParallelModelResponse(HttpStatusCode StatusCode, TData? Data, string Text,
IReadOnlyDictionary<string, string> Headers)
parameterdescription
TDataThe reference type used to represent the response data.
StatusCodeThe HTTP status code returned by the API.
DataThe deserialized response data, or null when no typed data is available.
TextThe original response body as text.
HeadersThe response headers and their string values.

See Also​