コード例 #1
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 = null, FloodHazardPreferences Preferences = null)
 {
     // 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;
 }
コード例 #2
0
 /// <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 <GeoRiskLocations> Locations = null, FloodHazardPreferences Preferences = null)
 {
     // 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;
 }