public List<Page> getPageSummaries(Space space) { checkCredentials(); List<Page> returnPages = new List<Page>(); RemotePageSummary[] pages = confluence.getPages(credentials, space.Key); foreach(RemotePageSummary page in pages) { returnPages.Add(new Page(page)); } returnPages.Sort((x, y) => string.Compare(x.Title, y.Title)); return returnPages; }
public Page getSpaceHomepage(Space spaceSummary) { checkCredentials(); RemoteSpace spaceDetail = confluence.getSpace(credentials, spaceSummary.Key); RemotePage page = confluence.getPage(credentials, spaceDetail.homePage); return new Page(page); }