public MunicipalitySyndicationContent(
            Guid municipalityId,
            string naamruimte,
            MunicipalityStatus?status,
            string nisCode,
            IEnumerable <Language> officialLanguages,
            IEnumerable <Language> facilitiesLanguages,
            string nameDutch,
            string nameFrench,
            string nameGerman,
            string nameEnglish,
            DateTimeOffset version,
            Organisation?organisation,
            string reason)
        {
            MunicipalityId      = municipalityId;
            Identificator       = new GemeenteIdentificator(naamruimte, nisCode, version);
            MunicipalityStatus  = status?.ConvertFromMunicipalityStatus();
            OfficialLanguages   = officialLanguages.Select(x => x.ConvertFromLanguage()).ToList();
            FacilitiesLanguages = facilitiesLanguages.Select(x => x.ConvertFromLanguage()).ToList();

            var gemeenteNamen = new List <GeografischeNaam>
            {
                new GeografischeNaam(nameDutch, Taal.NL),
                new GeografischeNaam(nameFrench, Taal.FR),
                new GeografischeNaam(nameGerman, Taal.DE),
                new GeografischeNaam(nameEnglish, Taal.EN),
            };

            MunicipalityNames = gemeenteNamen.Where(x => !string.IsNullOrEmpty(x.Spelling)).ToList();

            Provenance = new Provenance(version, organisation, new Reason(reason));
        }
        public AddressSyndicationContent(
            Guid addressId,
            string naamruimte,
            Guid?streetNameId,
            int?persistentLocalId,
            string houseNumber,
            string boxNumber,
            string postalCode,
            Point point,
            PositieGeometrieMethode?geometryMethod,
            PositieSpecificatie?positionSpecification,
            AdresStatus?status,
            DateTimeOffset version,
            bool isComplete,
            bool isOfficiallyAssigned,
            Organisation?organisation,
            string reason)
        {
            AddressId     = addressId;
            Identificator = new AdresIdentificator(naamruimte, persistentLocalId.HasValue ? persistentLocalId.ToString() : string.Empty, version);
            SteetnameId   = streetNameId;
            PostalCode    = postalCode;
            Point         = point == null ? null : new SyndicationPoint {
                XmlPoint = point.XmlPoint
            };
            GeometryMethod        = geometryMethod;
            PositionSpecification = positionSpecification;
            HouseNumber           = houseNumber;
            BoxNumber             = boxNumber;
            AdressStatus          = status;
            IsComplete            = isComplete;
            IsOfficiallyAssigned  = isOfficiallyAssigned;

            Provenance = new Provenance(organisation, new Reason(reason));
        }
Esempio n. 3
0
        public StreetNameSyndicationContent(
            Guid streetNameId,
            string naamruimte,
            int?persistentLocalId,
            StreetNameStatus?status,
            string nisCode,
            string nameDutch,
            string nameFrench,
            string nameGerman,
            string nameEnglish,
            string homonymAdditionDutch,
            string homonymAdditionFrench,
            string homonymAdditionGerman,
            string homonymAdditionEnglish,
            bool isComplete,
            DateTimeOffset version,
            Organisation?organisation,
            string reason)
        {
            StreetNameId     = streetNameId;
            NisCode          = nisCode;
            Identificator    = new StraatnaamIdentificator(naamruimte, persistentLocalId?.ToString(CultureInfo.InvariantCulture), version);
            StreetNameStatus = status?.ConvertFromStreetNameStatus();
            IsComplete       = isComplete;

            var straatnamen = new List <GeografischeNaam>
            {
                new GeografischeNaam(nameDutch, Taal.NL),
                new GeografischeNaam(nameFrench, Taal.FR),
                new GeografischeNaam(nameGerman, Taal.DE),
                new GeografischeNaam(nameEnglish, Taal.EN),
            };

            StreetNames = straatnamen.Where(x => !string.IsNullOrEmpty(x.Spelling)).ToList();

            var homoniemToevoegingen = new List <GeografischeNaam>
            {
                new GeografischeNaam(homonymAdditionDutch, Taal.NL),
                new GeografischeNaam(homonymAdditionFrench, Taal.FR),
                new GeografischeNaam(homonymAdditionGerman, Taal.DE),
                new GeografischeNaam(homonymAdditionEnglish, Taal.EN),
            };

            HomonymAdditions = homoniemToevoegingen.Where(x => !string.IsNullOrEmpty(x.Spelling)).ToList();

            Provenance = new Provenance(organisation, new Reason(reason));
        }
Esempio n. 4
0
        public ParcelSyndicationContent(
            Guid parcelId,
            string naamruimte,
            string caPaKey,
            DateTimeOffset version,
            PerceelStatus?status,
            IEnumerable <Guid> addressIds,
            Organisation?organisation,
            string reason)
        {
            ParcelId      = parcelId;
            Identificator = new PerceelIdentificator(naamruimte, string.IsNullOrEmpty(caPaKey) ? string.Empty : caPaKey, version);
            Status        = status;
            AddressIds    = addressIds.ToList();

            Provenance = new Provenance(version, organisation, new Reason(reason));
        }
Esempio n. 5
0
 public PostalInfoSyndicationContent(
     string naamruimte,
     string postcode,
     DateTimeOffset version,
     PostalInformationStatus?status,
     IEnumerable <PostalName> postalNames,
     string municipalityNisCode,
     Organisation?organisation,
     string reason)
 {
     PostalCode          = postcode;
     Identificator       = new PostinfoIdentificator(naamruimte, postcode, version);
     Status              = status?.ConvertFromPostalInformationStatus();
     MunicipalityNisCode = municipalityNisCode;
     PostalNames         = postalNames?
                           .Select(name => new Postnaam(new GeografischeNaam(name.Name, name.Language.ConvertFromLanguage())))
                           .ToList()
                           ?? new List <Postnaam>();
     Provenance = new Provenance(version, organisation, new Reason(reason));
 }