Interface IBatchApiRequestMapper<TRequest, TApiRequest>
- Namespace
- Visus.AddressValidation.Mappers
- Assembly
- Visus.AddressValidation.dll
Defines a mapper that converts a batch of address validation requests into a single provider-specific API request.
public interface IBatchApiRequestMapper<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(IReadOnlyList<TRequest>)
Maps the specified address validation requests to a single provider-specific API request object.
TApiRequest Map(IReadOnlyList<in TRequest> requests)
Parameters
requestsIReadOnlyList<TRequest>The address validation requests to map, in the order results should be returned in.
Returns
- TApiRequest
A provider-specific API request object populated from
requests.