/// <summary> /// Initializes a new instance of the <see cref="ResponseMapInfoMap" /> class. /// </summary> /// <param name="name">name (required).</param> /// <param name="features">features (required).</param> public ResponseMapInfoMap(string name = default(string), ResponseMapInfoFeatures features = default(ResponseMapInfoFeatures)) { // to ensure "name" is required (not null) this.Name = name ?? throw new ArgumentNullException("name is a required property for ResponseMapInfoMap and cannot be null");; // to ensure "features" is required (not null) this.Features = features ?? throw new ArgumentNullException("features is a required property for ResponseMapInfoMap and cannot be null");; }
/// <summary> /// Initializes a new instance of the <see cref="ResponseMapInfoMap" /> class. /// </summary> /// <param name="name">name (required).</param> /// <param name="features">features (required).</param> public ResponseMapInfoMap(string name = default(string), ResponseMapInfoFeatures features = default(ResponseMapInfoFeatures)) { // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for ResponseMapInfoMap and cannot be null"); } else { this.Name = name; } // to ensure "features" is required (not null) if (features == null) { throw new InvalidDataException("features is a required property for ResponseMapInfoMap and cannot be null"); } else { this.Features = features; } }
/// <summary> /// Initializes a new instance of the <see cref="ResponseGeocodingProperties" /> class. /// </summary> /// <param name="name">name (required).</param> /// <param name="label">label (required).</param> /// <param name="score">score.</param> /// <param name="houseNumber">houseNumber.</param> /// <param name="street">street.</param> /// <param name="region">region.</param> /// <param name="regionCode">regionCode.</param> /// <param name="neighbourhood">neighbourhood.</param> /// <param name="county">county.</param> /// <param name="macroregion">macroregion.</param> /// <param name="city">city.</param> /// <param name="country">country.</param> /// <param name="countryCode">countryCode.</param> /// <param name="continent">continent.</param> /// <param name="postcode">postcode.</param> /// <param name="features">features.</param> public ResponseGeocodingProperties(string name = default(string), string label = default(string), double score = default(double), string houseNumber = default(string), string street = default(string), string region = default(string), string regionCode = default(string), string neighbourhood = default(string), string county = default(string), string macroregion = default(string), string city = default(string), string country = default(string), string countryCode = default(string), string continent = default(string), string postcode = default(string), ResponseMapInfoFeatures features = default(ResponseMapInfoFeatures)) { // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for ResponseGeocodingProperties and cannot be null"); } else { this.Name = name; } // to ensure "label" is required (not null) if (label == null) { throw new InvalidDataException("label is a required property for ResponseGeocodingProperties and cannot be null"); } else { this.Label = label; } this.Score = score; this.HouseNumber = houseNumber; this.Street = street; this.Region = region; this.RegionCode = regionCode; this.Neighbourhood = neighbourhood; this.County = county; this.Macroregion = macroregion; this.City = city; this.Country = country; this.CountryCode = countryCode; this.Continent = continent; this.Postcode = postcode; this.Features = features; }