public List <T> All() { string href = GetURI(); ResourcePage <T> page = new ResourcePage <T>(href); List <T> items = new List <T>(page.GetTotal()); ResourceIterator iterator = new ResourceIterator(href, page); while (iterator.MoveNext()) { object obj = iterator.Current; items.Add((T)obj); } return(items); }
public int Total() { return(page.GetTotal()); }