Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 /// <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));
 }
Esempio n. 4
0
 /// <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));
 }
Esempio n. 5
0
 /// <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));
 }
Esempio n. 6
0
 /// <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));
 }
Esempio n. 7
0
 /// <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));
 }
Esempio n. 8
0
 /// <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));
 }
Esempio n. 9
0
 /// <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));
 }