/// <summary>
        /// Initializes a new instance of the <see cref="DistanceToFloodHazardLocationRequest" /> class.
        /// </summary>
        /// <param name="locations">locations (required).</param>
        /// <param name="preferences">preferences.</param>
        public DistanceToFloodHazardLocationRequest(List <RiskLocations> locations = default(List <RiskLocations>), FloodHazardPreferences preferences = default(FloodHazardPreferences))
        {
            // to ensure "locations" is required (not null)
            if (locations == null)
            {
                throw new InvalidDataException("locations is a required property for DistanceToFloodHazardLocationRequest and cannot be null");
            }
            else
            {
                this.Locations = locations;
            }

            this.Preferences = preferences;
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DistanceToFloodHazardAddressRequest" /> class.
        /// </summary>
        /// <param name="addresses">addresses (required).</param>
        /// <param name="preferences">preferences.</param>
        public DistanceToFloodHazardAddressRequest(List <RiskAddress> addresses = default(List <RiskAddress>), FloodHazardPreferences preferences = default(FloodHazardPreferences))
        {
            // to ensure "addresses" is required (not null)
            if (addresses == null)
            {
                throw new InvalidDataException("addresses is a required property for DistanceToFloodHazardAddressRequest and cannot be null");
            }
            else
            {
                this.Addresses = addresses;
            }

            this.Preferences = preferences;
        }