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));
        }
Пример #2
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);
 }
Пример #3
0
 public AddressListItemResponse(
     int id,
     string naamruimte,
     string detail,
     string huisnummer,
     string busnummer,
     VolledigAdres volledigAdres,
     DateTimeOffset version)
 {
     Identificator = new AdresIdentificator(naamruimte, id.ToString(), version);
     Detail        = new Uri(string.Format(detail, id));
     Huisnummer    = huisnummer;
     Busnummer     = busnummer;
     VolledigAdres = volledigAdres;
 }
Пример #4
0
        public AddressResponse(
            string naamruimte,
            string objectId,
            string huisnummer,
            string busnummer,
            AdresDetailGemeente gemeente,
            AdresDetailStraatnaam straatnaam,
            HomoniemToevoeging homoniemToevoeging,
            AdresDetailPostinfo postInfo,
            Point adresPositie,
            PositieGeometrieMethode positieGeometrieMethode,
            PositieSpecificatie positieSpecificatie,
            AdresStatus status,
            Taal taal,
            bool?officieelToegekend,
            DateTimeOffset version)
        {
            Identificator           = new AdresIdentificator(naamruimte, objectId, version);
            Huisnummer              = huisnummer;
            Busnummer               = busnummer;
            PositieGeometrieMethode = positieGeometrieMethode;
            PositieSpecificatie     = positieSpecificatie;
            AdresStatus             = status;
            OfficieelToegekend      = officieelToegekend ?? false;
            Postinfo           = postInfo;
            Gemeente           = gemeente;
            Straatnaam         = straatnaam;
            HomoniemToevoeging = homoniemToevoeging;
            AdresPositie       = adresPositie;

            VolledigAdres = new VolledigAdres(
                straatnaam?.Straatnaam?.GeografischeNaam?.Spelling,
                huisnummer,
                busnummer,
                postInfo?.ObjectId,
                gemeente?.Gemeentenaam?.GeografischeNaam?.Spelling,
                taal);
        }