예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EarthquakeRiskByAddressRequest" /> class.
 /// </summary>
 /// <param name="Addresses">Addresses (required).</param>
 /// <param name="Preferences">Preferences.</param>
 public EarthquakeRiskByAddressRequest(List <RiskAddress> Addresses = null, EarthquakeRiskPreferences Preferences = null)
 {
     // to ensure "Addresses" is required (not null)
     if (Addresses == null)
     {
         throw new InvalidDataException("Addresses is a required property for EarthquakeRiskByAddressRequest and cannot be null");
     }
     else
     {
         this.Addresses = Addresses;
     }
     this.Preferences = Preferences;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EarthquakeRiskByLocationRequest" /> class.
 /// </summary>
 /// <param name="Locations">Locations (required).</param>
 /// <param name="Preferences">Preferences.</param>
 public EarthquakeRiskByLocationRequest(List <GeoRiskLocations> Locations = null, EarthquakeRiskPreferences Preferences = null)
 {
     // to ensure "Locations" is required (not null)
     if (Locations == null)
     {
         throw new InvalidDataException("Locations is a required property for EarthquakeRiskByLocationRequest and cannot be null");
     }
     else
     {
         this.Locations = Locations;
     }
     this.Preferences = Preferences;
 }