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