public static PresetsList Paginate(Dictionary <string, string> query, Client client) { var presets = new PresetsList(client); presets.records.Read(query); presets.Initialize(); return(presets); }
public static IEnumerable <Preset> EachItem(Dictionary <string, string> query, Client client) { var presets = new PresetsList(client); presets.records.Read(query); do { presets.Initialize(); foreach (var item in presets.Page) { yield return(item); } } while (presets.records.Next()); }