Exemplo n.º 1
0
 public AddressBosaResponseItem(
     string postinfoNamespace,
     string municipalityNamespace,
     string streetNameNamespace,
     string addressNamespace,
     int persistentLocalId,
     AdresStatus status,
     string houseNumber,
     string boxNumber,
     bool?isOfficial,
     Point addressPosition,
     PositieGeometrieMethode positionGeometryMethod,
     PositieSpecificatie positionSpecification,
     DateTimeOffset version,
     string straatnaamId,
     string straatnaamVersion,
     string gemeenteId,
     string gemeenteVersion,
     string postalCode,
     string postinfoVersion)
 {
     Identificator           = new AdresIdentificator(addressNamespace, persistentLocalId.ToString(), version);
     AdresStatus             = status;
     Huisnummer              = houseNumber;
     Busnummer               = boxNumber;
     IsOfficieelToegekend    = isOfficial ?? false;
     AdresPositie            = addressPosition;
     PositieGeometrieMethode = positionGeometryMethod;
     PositieSpecificatie     = positionSpecification;
     HeeftPostInfo           = new PostinfoIdentificator(postinfoNamespace, postalCode, postinfoVersion);
     HeeftGemeente           = new GemeenteIdentificator(municipalityNamespace, gemeenteId, gemeenteVersion);
     HeeftStraatnaam         = new StraatnaamIdentificator(streetNameNamespace, straatnaamId, straatnaamVersion);
 }
Exemplo n.º 2
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));
        }
        public StreetNameListItemResponse(
            int?id,
            string naamruimte,
            string detail,
            GeografischeNaam geografischeNaam,
            GeografischeNaam homoniemToevoeging,
            DateTimeOffset?version)
        {
            Identificator = new StraatnaamIdentificator(naamruimte, id?.ToString(), version);
            Detail        = new Uri(string.Format(detail, id));
            Straatnaam    = new Straatnaam(geografischeNaam);

            if (homoniemToevoeging != null)
            {
                HomoniemToevoeging = new HomoniemToevoeging(homoniemToevoeging);
            }
        }
Exemplo n.º 4
0
 public StreetNameBosaItemResponse(
     string id,
     string gemeenteId,
     string naamruimte,
     string gemeenteNaamruimte,
     DateTimeOffset?version,
     string gemeenteVersion,
     StraatnaamStatus status,
     IEnumerable <GeografischeNaam> straatnamen,
     IEnumerable <GeografischeNaam> gemeenteNamen)
 {
     Identificator         = new StraatnaamIdentificator(naamruimte, id, version);
     GemeenteIdentificator = new GemeenteIdentificator(gemeenteNaamruimte, gemeenteId, gemeenteVersion);
     Straatnamen           = straatnamen.Select(g => new Straatnaam(g)).ToList();
     GemeenteNamen         = (gemeenteNamen?.Select(g => new Gemeentenaam(g)) ?? Enumerable.Empty <Gemeentenaam>()).ToList();
     StraatnaamStatus      = status;
 }
Exemplo n.º 5
0
        public StreetNameOsloResponse(
            string naamruimte,
            string contextUrlDetail,
            int persistentLocalId,
            StraatnaamStatus status,
            StraatnaamDetailGemeente gemeente,
            DateTimeOffset version,
            string nameDutch              = "",
            string nameFrench             = "",
            string nameGerman             = "",
            string nameEnglish            = "",
            string homonymAdditionDutch   = "",
            string homonymAdditionFrench  = "",
            string homonymAdditionGerman  = "",
            string homonymAdditionEnglish = "")
        {
            Context          = contextUrlDetail;
            Identificator    = new StraatnaamIdentificator(naamruimte, persistentLocalId.ToString(), version);
            StraatnaamStatus = status;
            Gemeente         = gemeente;

            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)
            };

            Straatnamen = straatNamen.Where(x => !string.IsNullOrEmpty(x.Spelling)).ToList();

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

            HomoniemToevoegingen = homoniemen.Where(x => !string.IsNullOrEmpty(x.Spelling)).ToList();
        }