public IEnumerable <Page> GetPageChildren(Page parentPage) { CheckCredentials(); RemotePageSummary[] pages = _confluence.getChildren(_credentials, parentPage.Id); foreach (RemotePageSummary page in pages) { yield return(new Page(page)); } }
public List <Page> getPageChildren(Page parentPage) { checkCredentials(); List <Page> returnPages = new List <Page>(); RemotePageSummary[] pages = confluence.getChildren(credentials, parentPage.id); foreach (RemotePageSummary page in pages) { returnPages.Add(new Page(page)); } returnPages.Sort((x, y) => string.Compare(x.Title, y.Title)); return(returnPages); }
public List <PageSummary> GetChildren(long pageId) { var children = m_client.getChildren(m_token, pageId); return(children.Select(ToPageSummary).ToList()); }