public Bericht(string tekst, Persoon auteur) { this.tekst = tekst; this.auteur = auteur; datumGepost = DateTime.Now; this.berichtSoort = (BerichtSoort)0; reacties = new List <Reactie>(); likes = new List <Like>(); rapportages = new List <Rapportage>(); id = -1; }
public Bericht(string tekst, Persoon auteur, DateTime datumGepost, int berichtSoort, int id) { this.tekst = tekst; this.auteur = auteur; this.datumGepost = datumGepost; this.berichtSoort = (BerichtSoort)berichtSoort; this.id = id; //reacties //rapportages //likes reacties = databaseKoppeling.AlleReactiesVanBericht(id.ToString()); rapportages = new List <Rapportage>(); likes = databaseKoppeling.AlleLikesVanBericht(id.ToString()); }