/// <summary> /// Requests the spaces and pages of the wiki from the server. /// </summary> /// <returns>A WikiStructure instance.</returns> private Wiki RequestWikiStructure() { Wiki wikiStructure = new Wiki(); List <String> spacesNames = Client.GetSpacesNames(); spacesNames.Sort(); wikiStructure.AddSpaces(spacesNames); //TODO: Implement user option if (false) { foreach (String spaceName in spacesNames) { List <String> pagesNames = Client.GetPagesNames(spaceName); wikiStructure[spaceName].AddDocuments(pagesNames); } } //TODO: Add opt-in prefetch return(wikiStructure); }