Class AbstractAddressValidationResponse<TResponse>
- Namespace
- Visus.AddressValidation.Models
- Assembly
- Visus.AddressValidation.dll
Base class for implementing an IAddressValidationResponse backed by a specific API response type.
public abstract class AbstractAddressValidationResponse<TResponse> : AbstractAddressValidationResponse, IAddressValidationResponse where TResponse : class
Type Parameters
TResponseThe type of the underlying API response.
- Inheritance
-
AbstractAddressValidationResponse<TResponse>
- Implements
- Inherited Members
Constructors
AbstractAddressValidationResponse(TResponse, IValidationResult?)
Initializes a new instance of AbstractAddressValidationResponse<TResponse>.
protected AbstractAddressValidationResponse(TResponse response, IValidationResult? validationResult = null)
Parameters
responseTResponseThe underlying API response returned by the address validation service.
validationResultIValidationResultThe current validation state of the response, or null if no validation was performed.
Exceptions
- ArgumentNullException
Thrown when
responseis null.