public ParcelListItemResponse(
     string id,
     string naamruimte,
     string detail,
     PerceelStatus status,
     DateTimeOffset version)
 {
     Identificator = new PerceelIdentificator(naamruimte, id, version);
     Detail        = new Uri(string.Format(detail, id));
     PerceelStatus = status;
 }
        public ParcelResponse(
            string naamruimte,
            PerceelStatus status,
            string caPaKey,
            DateTimeOffset version,
            List <string> addressPersistentLocalIds,
            string adresDetailUrl)
        {
            Identificator = new PerceelIdentificator(naamruimte, caPaKey, version);
            PerceelStatus = status;

            Adressen = addressPersistentLocalIds
                       .Where(x => !string.IsNullOrWhiteSpace(x))
                       .Select(x => PerceelDetailAdres.Create(x, new Uri(string.Format(adresDetailUrl, x))))
                       .ToList();
        }
Exemple #3
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));
        }