public IEnumerable <Space> GetSpaceSummaries() { CheckCredentials(); RemoteSpaceSummary [] spaces = _confluence.getSpaces(_credentials); foreach (RemoteSpaceSummary space in spaces) { yield return(new Space(space)); } }
public List <Space> getSpaceSummaries() { checkCredentials(); RemoteSpaceSummary [] spaces = confluence.getSpaces(credentials); List <Space> returnSpaces = new List <Space>(); foreach (RemoteSpaceSummary space in spaces) { returnSpaces.Add(new Space(space)); } returnSpaces.Sort((x, y) => string.Compare(x.Name, y.Name)); return(returnSpaces); }
public List <RemoteSpaceSummary> GetSpaces() { List <RemoteSpaceSummary> globalSpaces = new List <RemoteSpaceSummary>(); foreach (RemoteSpaceSummary space in m_soapService.getSpaces(m_soapAuthToken)) { if (space.type == "global") { globalSpaces.Add(space); } } return(globalSpaces); }
public RemoteSpaceSummary[] GetSpaces() { return(_service.getSpaces(_authToken)); }