public MunicipalityListItemResponse(
     string id,
     string naamruimte,
     string detail,
     DateTimeOffset version,
     GeografischeNaam geografischeNaam,
     MunicipalityStatus?municipalityStatus)
 {
     Identificator  = new GemeenteIdentificator(naamruimte, id, version);
     Detail         = new Uri(string.Format(detail, id));
     Gemeentenaam   = new Gemeentenaam(geografischeNaam);
     GemeenteStatus = municipalityStatus?.ConvertFromMunicipalityStatus();
 }
        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);
            }
        }
 public static AdresMatchItemStraatnaam Create(string objectId, string detail, GeografischeNaam straatnaam) =>
 new AdresMatchItemStraatnaam
 {
     ObjectId   = objectId,
     Detail     = detail,
     Straatnaam = new Straatnaam(straatnaam)
 };