/// <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 by a given author /// </summary> /// <param name="username">User to get levels from</param> /// <param name="chunk">chunk of levels to get</param> /// <returns>The chunk requested</returns> public static List <QuizInfo> GetQuizzesByAuthorChunked(string username = "******", int chunk = 1) { List <string[]> quizDatas = ServerOperations.GetQuizzesByAuthorName(username, chunk); return(ListOfDataToQuizInfo(quizDatas)); }