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

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

            this.Preferences = preferences;
        }