@@ -109,28 +109,6 @@ public interface ISpotifyClient
109109 /// <returns>A list containing all fetched pages</returns>
110110 Task < IList < T > > PaginateAll < T > ( IPaginatable < T > firstPage , IPaginator ? paginator = default ! ) ;
111111
112- /// <summary>
113- /// Fetches all pages and returns them grouped in a list.
114- /// The default paginator will fetch all available resources without a delay between requests.
115- /// This can drain your request limit quite fast, so consider using a custom paginator with delays.
116- /// </summary>
117- /// <param name="getFirstPage">A function to retrive the first page, will be included in the output list!</param>
118- /// <param name="paginator">Optional. If not supplied, DefaultPaginator will be used</param>
119- /// <typeparam name="T">The Paging-Type</typeparam>
120- /// <returns>A list containing all fetched pages</returns>
121- Task < IList < T > > PaginateAll < T > ( Func < Task < IPaginatable < T > > > getFirstPage , IPaginator ? paginator = default ! ) ;
122-
123- /// <summary>
124- /// Fetches all pages and returns them grouped in a list.
125- /// The default paginator will fetch all available resources without a delay between requests.
126- /// This can drain your request limit quite fast, so consider using a custom paginator with delays.
127- /// </summary>
128- /// <param name="firstPageTask">A task to retrive the first page, will be included in the output list!</param>
129- /// <param name="paginator">Optional. If not supplied, DefaultPaginator will be used</param>
130- /// <typeparam name="T">The Paging-Type</typeparam>
131- /// <returns>A list containing all fetched pages</returns>
132- Task < IList < T > > PaginateAll < T > ( Task < IPaginatable < T > > firstPageTask , IPaginator ? paginator = default ! ) ;
133-
134112 /// <summary>
135113 /// Fetches all pages and returns them grouped in a list.
136114 /// Some responses (e.g search response) have the pagination nested in a JSON Property.
@@ -150,44 +128,6 @@ Task<IList<T>> PaginateAll<T, TNext>(
150128 IPaginator ? paginator = default !
151129 ) ;
152130
153- /// <summary>
154- /// Fetches all pages and returns them grouped in a list.
155- /// Some responses (e.g search response) have the pagination nested in a JSON Property.
156- /// To workaround this limitation, the mapper is required and needs to point to the correct next pagination.
157- /// The default paginator will fetch all available resources without a delay between requests.
158- /// This can drain your request limit quite fast, so consider using a custom paginator with delays.
159- /// </summary>
160- /// <param name="getFirstPage">A function to retrive the first page, will be included in the output list!</param>
161- /// <param name="mapper">A function which maps response objects to the next paging object</param>
162- /// <param name="paginator">Optional. If not supplied, DefaultPaginator will be used</param>
163- /// <typeparam name="T">The Paging-Type</typeparam>
164- /// <typeparam name="TNext">The Response-Type</typeparam>
165- /// <returns></returns>
166- Task < IList < T > > PaginateAll < T , TNext > (
167- Func < Task < IPaginatable < T , TNext > > > getFirstPage ,
168- Func < TNext , IPaginatable < T , TNext > > mapper ,
169- IPaginator ? paginator = default !
170- ) ;
171-
172- /// <summary>
173- /// Fetches all pages and returns them grouped in a list.
174- /// Some responses (e.g search response) have the pagination nested in a JSON Property.
175- /// To workaround this limitation, the mapper is required and needs to point to the correct next pagination.
176- /// The default paginator will fetch all available resources without a delay between requests.
177- /// This can drain your request limit quite fast, so consider using a custom paginator with delays.
178- /// </summary>
179- /// <param name="firstPageTask">A Task to retrive the first page, will be included in the output list!</param>
180- /// <param name="mapper">A function which maps response objects to the next paging object</param>
181- /// <param name="paginator">Optional. If not supplied, DefaultPaginator will be used</param>
182- /// <typeparam name="T">The Paging-Type</typeparam>
183- /// <typeparam name="TNext">The Response-Type</typeparam>
184- /// <returns></returns>
185- Task < IList < T > > PaginateAll < T , TNext > (
186- Task < IPaginatable < T , TNext > > firstPageTask ,
187- Func < TNext , IPaginatable < T , TNext > > mapper ,
188- IPaginator ? paginator = default !
189- ) ;
190-
191131#if NETSTANDARD2_1
192132 /// <summary>
193133 /// Paginate through pages by using IAsyncEnumerable, introduced in C# 8
@@ -205,38 +145,6 @@ IAsyncEnumerable<T> Paginate<T>(
205145 CancellationToken cancellationToken = default !
206146 ) ;
207147
208- /// <summary>
209- /// Paginate through pages by using IAsyncEnumerable, introduced in C# 8
210- /// The default paginator will fetch all available resources without a delay between requests.
211- /// This can drain your request limit quite fast, so consider using a custom paginator with delays.
212- /// </summary>
213- /// <param name="getFirstPage">A Function to retrive the first page, will be included in the output list!</param>
214- /// <param name="paginator">Optional. If not supplied, DefaultPaginator will be used</param>
215- /// <param name="cancellationToken">An optional Cancellation Token</param>
216- /// <typeparam name="T">The Paging-Type</typeparam>
217- /// <returns>An iterable IAsyncEnumerable</returns>
218- IAsyncEnumerable < T > Paginate < T > (
219- Func < Task < IPaginatable < T > > > getFirstPage ,
220- IPaginator ? paginator = default ! ,
221- CancellationToken cancellationToken = default !
222- ) ;
223-
224- /// <summary>
225- /// Paginate through pages by using IAsyncEnumerable, introduced in C# 8
226- /// The default paginator will fetch all available resources without a delay between requests.
227- /// This can drain your request limit quite fast, so consider using a custom paginator with delays.
228- /// </summary>
229- /// <param name="firstPageTask">A Task to retrive the first page, will be included in the output list!</param>
230- /// <param name="paginator">Optional. If not supplied, DefaultPaginator will be used</param>
231- /// <param name="cancellationToken">An optional Cancellation Token</param>
232- /// <typeparam name="T">The Paging-Type</typeparam>
233- /// <returns>An iterable IAsyncEnumerable</returns>
234- IAsyncEnumerable < T > Paginate < T > (
235- Task < IPaginatable < T > > firstPageTask ,
236- IPaginator ? paginator = default ! ,
237- CancellationToken cancellationToken = default !
238- ) ;
239-
240148 /// <summary>
241149 /// Paginate through pages by using IAsyncEnumerable, introduced in C# 8
242150 /// Some responses (e.g search response) have the pagination nested in a JSON Property.
@@ -258,47 +166,6 @@ IAsyncEnumerable<T> Paginate<T, TNext>(
258166 CancellationToken cancellationToken = default !
259167 ) ;
260168
261- /// <summary>
262- /// Paginate through pages by using IAsyncEnumerable, introduced in C# 8
263- /// Some responses (e.g search response) have the pagination nested in a JSON Property.
264- /// To workaround this limitation, the mapper is required and needs to point to the correct next pagination.
265- /// The default paginator will fetch all available resources without a delay between requests.
266- /// This can drain your request limit quite fast, so consider using a custom paginator with delays.
267- /// </summary>
268- /// <param name="getFirstPage">A Function to retrive the first page, will be included in the output list!</param>
269- /// <param name="mapper">A function which maps response objects to the next paging object</param>
270- /// <param name="paginator">Optional. If not supplied, DefaultPaginator will be used</param>
271- /// <param name="cancellationToken">An optional Cancellation Token</param>
272- /// <typeparam name="T">The Paging-Type</typeparam>
273- /// <typeparam name="TNext">The Response-Type</typeparam>
274- /// <returns></returns>
275- IAsyncEnumerable < T > Paginate < T , TNext > (
276- Func < Task < IPaginatable < T , TNext > > > getFirstPage ,
277- Func < TNext , IPaginatable < T , TNext > > mapper ,
278- IPaginator ? paginator = default ! ,
279- CancellationToken cancellationToken = default !
280- ) ;
281-
282- /// <summary>
283- /// Paginate through pages by using IAsyncEnumerable, introduced in C# 8
284- /// Some responses (e.g search response) have the pagination nested in a JSON Property.
285- /// To workaround this limitation, the mapper is required and needs to point to the correct next pagination.
286- /// The default paginator will fetch all available resources without a delay between requests.
287- /// This can drain your request limit quite fast, so consider using a custom paginator with delays.
288- /// </summary>
289- /// <param name="firstPageTask">A Task to retrive the first page, will be included in the output list!</param>
290- /// <param name="mapper">A function which maps response objects to the next paging object</param>
291- /// <param name="paginator">Optional. If not supplied, DefaultPaginator will be used</param>
292- /// <param name="cancellationToken">An optional Cancellation Token</param>
293- /// <typeparam name="T">The Paging-Type</typeparam>
294- /// <typeparam name="TNext">The Response-Type</typeparam>
295- /// <returns></returns>
296- IAsyncEnumerable < T > Paginate < T , TNext > (
297- Task < IPaginatable < T , TNext > > firstPageTask ,
298- Func < TNext , IPaginatable < T , TNext > > mapper ,
299- IPaginator ? paginator = default ! ,
300- CancellationToken cancellationToken = default !
301- ) ;
302169#endif
303170 }
304171}
0 commit comments