public Adres(int ID, Straatnaam straatnaam, string appartementnummer, string busnummer, string huisnummer, string huisnummerlabel, int locatieID, double x, double y) { this.ID = ID; this.straatnaam = straatnaam; this.appartementnummer = appartementnummer; this.busnummer = busnummer; this.huisnummer = huisnummer; this.huisnummerlabel = huisnummerlabel; this.locatie = new AdresLocatie(locatieID, x, y); }
public Adres(int id, Straatnaam straatnaam, string huisnummer, string appartementnummer, string busnummer, string huisnummerlabel, Gemeente gemeente, int postcode, double d1, double d2) { ID = id; this.straatnaam = straatnaam; this.huisnummer = huisnummer; this.appartementnummer = appartementnummer; this.busnummer = busnummer; this.huisnummerlabel = huisnummerlabel; this.postcode = postcode; this.locatie.x = d1; this.locatie.y = d2; }
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 override string ToString() { int countplz = 0; knopen.ForEach(k => countplz += k.segmenten.Count); string x = (StraatID + ", " + Straatnaam.Trim() + ", " + gemeenteNaam.Trim() + ", " + ProvincieNaam + "\n" + "Graaf:" + GraafId.ToString() + "\n" + "aantal knopen:" + knopen.Count + "\n" + "aantal wegsegmenten:" + countplz + "\n" ); foreach (Knoop knoop in knopen) { x += knoop.ToString(); } return(x); }