public static IAsyncEnumerable <EpisodeGroupEpisode> ListAllEpisodeGroupsAsync(this ISverigesRadioApiClient apiClient, EpisodeGroupListRequest request)
 {
     return(apiClient.ListAllAsync <EpisodeGroupEpisode, EpisodeGroupListRequest>(request, async(listRequest, pagination) =>
     {
         var result = await apiClient.ListEpisodeGroupsAsync(request, pagination);
         return (result.EpisodeGroup.Episodes, result.Pagination);
     }));
 }
 public static IAsyncEnumerable <Models.Response.ProgramCategories.ProgramCategory> ListAllProgramCategoriesAsync(this ISverigesRadioApiClient apiClient, ProgramCategoryListRequest request)
 {
     return(apiClient.ListAllAsync <Models.Response.ProgramCategories.ProgramCategory, ProgramCategoryListRequest>(request, async(listRequest, pagination) =>
     {
         var result = await apiClient.ListProgramCategoriesAsync(request, pagination);
         return (result.ProgramCategories, result.Pagination);
     }));
 }
 public static IAsyncEnumerable <ExtraBroadcast> ListAllExtraBroadcastsAsync(this ISverigesRadioApiClient apiClient, ExtraBroadcastListRequest request)
 {
     return(apiClient.ListAllAsync <ExtraBroadcast, ExtraBroadcastListRequest>(request, async(listRequest, pagination) =>
     {
         var result = await apiClient.ListExtraBroadcastsAsync(request, pagination);
         return (result.Broadcasts, result.Pagination);
     }));
 }
 public static IAsyncEnumerable <Program> ListAllProgramsAsync(this ISverigesRadioApiClient apiClient, ProgramListRequest request)
 {
     return(apiClient.ListAllAsync <Program, ProgramListRequest>(request, async(listRequest, pagination) =>
     {
         var result = await apiClient.ListProgramsAsync(request, pagination);
         return (result.Programs, result.Pagination);
     }));
 }
 public static IAsyncEnumerable <Channel> ListAllChannelsAsync(this ISverigesRadioApiClient apiClient, ChannelListRequest request)
 {
     return(apiClient.ListAllAsync <Channel, ChannelListRequest>(request, async(listRequest, pagination) =>
     {
         var result = await apiClient.ListChannelsAsync(request, pagination);
         return (result.Channels, result.Pagination);
     }));
 }