Interface IApiRequestMapper<TRequest, TApiRequest>
- Namespace
- Visus.AddressValidation.Mappers
- Assembly
- Visus.AddressValidation.dll
Defines a mapper that converts an address validation request into a provider-specific API request.
public interface IApiRequestMapper<in TRequest, out TApiRequest> where TRequest : AbstractAddressValidationRequest where TApiRequest : class
Type Parameters
TRequestThe type of the address validation request, which must derive from AbstractAddressValidationRequest.
TApiRequestThe type of the provider-specific API request object.
Methods
Map(TRequest)
Maps the specified address validation request to a provider-specific API request object.
TApiRequest Map(TRequest request)
Parameters
requestTRequestThe address validation request to map.
Returns
- TApiRequest
A provider-specific API request object populated from
request.