GeoBlazor Pro


layout: pro title: RequestResponse_T_ parent: Pro Classes grand_parent: GeoBlazor Pro —

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Model

RequestResponse Class

Returns a promise that resolves to an object with the following specification. If the request returns an Error, the error object will include the details specified in EsriErrorDetails.

public class RequestResponse<T> :
System.IEquatable<dymaptic.GeoBlazor.Pro.Model.RequestResponse<T>>

Type parameters

T

The type of expected Response Data to deserialize.

Inheritance System.Object 🡒 RequestResponse

Implements System.IEquatable<dymaptic.GeoBlazor.Pro.Model.RequestResponse<T>>

Constructors

RequestResponse(T, Nullable, RequestOptions, Nullable, string) Constructor

Returns a promise that resolves to an object with the following specification. If the request returns an Error, the error object will include the details specified in EsriErrorDetails.

public RequestResponse(T? Data, System.Nullable<int> HttpStatus, dymaptic.GeoBlazor.Core.Model.RequestOptions? RequestOptions, System.Nullable<bool> Ssl, string? Url);

Parameters

Data T

The requested data. Should match the responseType with the data return type. Possible types are: json, text, array-buffer, blob, image, native, document, and xml.

HttpStatus System.Nullable<System.Int32>

The status code of the http response.

RequestOptions dymaptic.GeoBlazor.Core.Model.RequestOptions

The options specified by the user in the data request. See RequestOptions for available properties.

Ssl System.Nullable<System.Boolean>

Indicates if the request required https.

Url System.String

The URL used to request the data.

Properties

RequestResponse.Data Property

The requested data. Should match the responseType with the data return type. Possible types are: json, text, array-buffer, blob, image, native, document, and xml.

public T? Data { get; set; }

Property Value

T

RequestResponse.HttpStatus Property

The status code of the http response.

public System.Nullable<int> HttpStatus { get; set; }

Property Value

System.Nullable<System.Int32>

RequestResponse.RequestOptions Property

The options specified by the user in the data request. See RequestOptions for available properties.

public dymaptic.GeoBlazor.Core.Model.RequestOptions? RequestOptions { get; set; }

Property Value

dymaptic.GeoBlazor.Core.Model.RequestOptions

RequestResponse.Ssl Property

Indicates if the request required https.

public System.Nullable<bool> Ssl { get; set; }

Property Value

System.Nullable<System.Boolean>

RequestResponse.Url Property

The URL used to request the data.

public string? Url { get; set; }

Property Value

System.String