/// <summary> /// Gets all reactions to a specific post from the Data access layer /// </summary> /// <param name="ID">The ID of the selected post from Tijdlijnform<param> /// <returns>A list of reactions</returns> public List <Post> GetReaction(string ID) { if (CurrentAccount.ID == 3) { Postlist = DatabaseGetPost.GetReaction(ID); } else { Postlist = DatabaseGetPost.GetSafeReaction(ID); } return(Postlist); }
/// <summary> /// Gets all post from the Data access layer /// </summary> /// <returns>A list of posts</returns> public List <Post> GetPost() { if (CurrentAccount.ID == 3) { Postlist = DatabaseGetPost.GetPost(); } else { Postlist = DatabaseGetPost.GetSafePost(); } return(Postlist); }
/// <summary> /// Filters posts on word in the text and category /// </summary> /// <param name="woord">The text entered in the Searchbox</param> /// <param name="categorie">The category selected in the comboSearchbox</param> /// <returns>A list of posts which match the criteria</returns> public List <Post> GetWordCategory(string woord, string categorie) { return(Filterlist = DatabaseGetPost.GetWordCategory(woord, categorie)); }
/// <summary> /// Filters posts on name and category /// </summary> /// <param name="naam">The name entered in the Searchbox<param> /// <param name="categorie">The category selected in the comboSearchbox</param> /// <returns>A list of posts which match the criteria</returns> public List <Post> GetNameCategory(string naam, string categorie) { return(Filterlist = DatabaseGetPost.GetNameCategory(naam, categorie)); }
/// <summary> /// Filters posts on name and words in the text /// </summary> /// <param name="naam">The name entered in the Searchbox<param> /// <param name="woord">The text entered in the Searchbox</param> /// <returns>A list of posts which match the criteria</returns> public List <Post> GetNameWord(string naam, string woord) { return(Filterlist = DatabaseGetPost.GetNameWord(naam, woord)); }
/// <summary> /// Filters posts on the selected category /// </summary> /// <param name="categorie">The category selected in the comboSearchbox</param> /// <returns>A list of posts which match the criteria</returns> public List <Post> GetCategory(string categorie) { return(Filterlist = DatabaseGetPost.GetCategory(categorie)); }
/// <summary> /// Filters posts on words in the text /// </summary> /// <param name="woord">The text entered in the Searchbox</param> /// <returns>A list of posts which match the criteria</returns> public List <Post> GetWord(string woord) { return(Filterlist = DatabaseGetPost.GetWord(woord)); }
/// <summary> /// Filters posts on name /// </summary> /// <param name="naam">The name entered in the Searchbox<param> /// <returns>A list of posts which match the criteria</returns> public List <Post> GetName(string naam) { return(Filterlist = DatabaseGetPost.GetName(naam)); }
/// <summary> /// Filters posts on 3 parameters /// </summary> /// <param name="naam">The name entered in the Searchbox<param> /// <param name="woord">The text entered in the Searchbox</param> /// <param name="categorie">The category selected in the comboSearchbox</param> /// <returns>A list of posts which match the criteria</returns> public List <Post> GetAll(string naam, string woord, string categorie) { return(Filterlist = DatabaseGetPost.GetAll(naam, woord, categorie)); }