示例#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);
 }
示例#2
0
 public PostalInformationResponse(
     string naamruimte,
     string postcode,
     DateTimeOffset version,
     PostInfoStatus postInfoStatus)
 {
     Identificator  = new PostinfoIdentificator(naamruimte, postcode, version);
     PostInfoStatus = postInfoStatus;
     Postnamen      = new List <Postnaam>();
 }
示例#3
0
 public PostalInformationListItemResponse(
     string postalCode,
     string naamruimte,
     string detail,
     PostInfoStatus status,
     DateTimeOffset?version)
 {
     Identificator  = new PostinfoIdentificator(naamruimte, postalCode, version);
     Detail         = new Uri(string.Format(detail, postalCode));
     PostInfoStatus = status;
 }
 public PostalInformationOsloResponse(
     string naamruimte,
     string contextUrlDetail,
     string postcode,
     DateTimeOffset version,
     PostInfoStatus postInfoStatus)
 {
     Context        = contextUrlDetail;
     Identificator  = new PostinfoIdentificator(naamruimte, postcode, version);
     PostInfoStatus = postInfoStatus;
     Postnamen      = new List <Postnaam>();
 }
示例#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));
 }