/// <summary> /// gets the quiz to display depending on the tab the user is on /// </summary> /// <param name="chunk"></param> /// <returns></returns> private List <string[]> GetQuizzes(int chunk) { if (this.searchType == SearchType.Title) { return(ServerOperations.GetQuizzesByQuizName(this.SearchBar.Text, chunk)); } else { return(ServerOperations.GetQuizzesByAuthorName(this.SearchBar.Text, chunk)); } }
/// <summary> /// Gets a specified chunk of the levels on the server with a given string in their name /// </summary> /// <param name="quizName">search string for level names</param> /// <param name="chunk">chunk of levels to get</param> /// <returns>The chunk requested</returns> public static List <QuizInfo> GetQuizzesByQuizNameChunked(string quizName, int chunk = 1) { List <string[]> quizData = ServerOperations.GetQuizzesByQuizName(quizName, chunk); return(ListOfDataToQuizInfo(quizData)); }