/// <summary>
 /// Initializes a new instance of the <see cref="FloodRiskByLocationRequest" /> class.
 /// </summary>
 /// <param name="Locations">Locations (required).</param>
 /// <param name="Preferences">Preferences.</param>
 public FloodRiskByLocationRequest(List <GeoRiskLocations> Locations = null, FloodRiskPreferences Preferences = null)
 {
     // to ensure "Locations" is required (not null)
     if (Locations == null)
     {
         throw new InvalidDataException("Locations is a required property for FloodRiskByLocationRequest and cannot be null");
     }
     else
     {
         this.Locations = Locations;
     }
     this.Preferences = Preferences;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FloodRiskByAddressRequest" /> class.
 /// </summary>
 /// <param name="Addresses">Addresses (required).</param>
 /// <param name="Preferences">Preferences.</param>
 public FloodRiskByAddressRequest(List <RiskAddress> Addresses = null, FloodRiskPreferences Preferences = null)
 {
     // to ensure "Addresses" is required (not null)
     if (Addresses == null)
     {
         throw new InvalidDataException("Addresses is a required property for FloodRiskByAddressRequest and cannot be null");
     }
     else
     {
         this.Addresses = Addresses;
     }
     this.Preferences = Preferences;
 }