/// <summary> /// Initializes a new instance of the <see cref="Points" /> class. /// </summary> /// <param name="ObjectId">ObjectId.</param> /// <param name="Country">Country.</param> /// <param name="Geometry">Geometry (required).</param> public Points(string ObjectId = null, string Country = null, GeoPos Geometry = null) { // to ensure "Geometry" is required (not null) if (Geometry == null) { throw new InvalidDataException("Geometry is a required property for Points and cannot be null"); } else { this.Geometry = Geometry; } this.ObjectId = ObjectId; this.Country = Country; }
/// <summary> /// Initializes a new instance of the <see cref="Candidate" /> class. /// </summary> /// <param name="PrecisionLevel">PrecisionLevel.</param> /// <param name="FormattedStreetAddress">FormattedStreetAddress.</param> /// <param name="FormattedLocationAddress">FormattedLocationAddress.</param> /// <param name="Identifier">Identifier.</param> /// <param name="PrecisionCode">PrecisionCode.</param> /// <param name="SourceDictionary">SourceDictionary.</param> /// <param name="Matching">Matching.</param> /// <param name="Geometry">Geometry.</param> /// <param name="Address">Address.</param> /// <param name="Ranges">Ranges.</param> public Candidate(int?PrecisionLevel = null, string FormattedStreetAddress = null, string FormattedLocationAddress = null, string Identifier = null, string PrecisionCode = null, string SourceDictionary = null, FieldsMatching Matching = null, GeoPos Geometry = null, GeocodeAddress Address = null, List <CandidateRange> Ranges = null) { this.PrecisionLevel = PrecisionLevel; this.FormattedStreetAddress = FormattedStreetAddress; this.FormattedLocationAddress = FormattedLocationAddress; this.Identifier = Identifier; this.PrecisionCode = PrecisionCode; this.SourceDictionary = SourceDictionary; this.Matching = Matching; this.Geometry = Geometry; this.Address = Address; this.Ranges = Ranges; }