Delegate BatchRequest.OnResponse<TResponse> (1.59.0)

public delegate void OnResponse<in TResponse>(TResponse content, RequestError error, int index, HttpResponseMessage message)
    where TResponse : class;

A concrete type callback for an individual response.

Namespace

Google.Apis.Requests

Assembly

Google.Apis.dll

Parameters

NameDescription
contentTResponse

The parsed content response or null if the request failed or the response could not be parsed using the associated Serializer.

errorRequestError

Error or null if the request succeeded and response content was parsed succesfully.

indexInt32

The request index.

messageHttpResponseMessage

The HTTP individual response.

Type Parameter

NameDescription
TResponse

The response type.

Extension Method