Table of Contents

Interface IApiResponseMapper<TResponse>

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

Abstraction for mapping an API response to an IAddressValidationResponse.

public interface IApiResponseMapper<in TResponse> where TResponse : class

Type Parameters

TResponse

The type of API response the provider returns.

Methods

Map(TResponse, IValidationResult?)

Maps response to an instance that implements IAddressValidationResponse.

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

Parameters

response TResponse

The API response from the provider.

validationResult IValidationResult

The current IValidationResult, or null if none exists.

Returns

IAddressValidationResponse

An instance that implements IAddressValidationResponse.