Table of Contents

Interface IBatchApiResponseMapper<TResponse>

Namespace
Visus.AddressValidation.Mappers
Assembly
Visus.AddressValidation.dll

Abstraction for mapping a single item within a batch API response to an IAddressValidationResponse.

public interface IBatchApiResponseMapper<in TResponse> where TResponse : class

Type Parameters

TResponse

The type of the underlying API response.

Methods

Map(TResponse, int, IValidationResult?)

Maps the item at index within response to an instance that implements IAddressValidationResponse.

IAddressValidationResponse Map(TResponse response, int index, IValidationResult? validationResult = null)

Parameters

response TResponse

The underlying batch API response returned by the address validation service.

index int

The position, within the batch, of the item to map.

validationResult IValidationResult

Current validation state (if any) of the item represented as an instance of IValidationResult.

Returns

IAddressValidationResponse

An instance that implements IAddressValidationResponse.