public async Task <ApiResponse <Statistic> > GetEpisodeStatisticResponseAsync( int podcastId, EpisodeStatisticFilter episodeStatisticFilter) { Ensure.GreaterThanZero(podcastId, nameof(podcastId)); Ensure.ArgumentNotNull(episodeStatisticFilter, nameof(episodeStatisticFilter)); Ensure.GreaterThanZero(episodeStatisticFilter.EpisodeId, nameof(episodeStatisticFilter.EpisodeId)); ApiResponse <Statistic> apiResponse = await _restApiClient.GetApiResponseAsync <Statistic>( UrlPathBuilder.GetPodcastStatisticEpisodeUrl(podcastId), episodeStatisticFilter.ToQueryParams()); return(apiResponse); }
public async Task <Statistic> GetEpisodeStatisticAsync(int podcastId, EpisodeStatisticFilter overallStatisticFilter) { ApiResponse <Statistic> apiResponse = await GetEpisodeStatisticResponseAsync(podcastId, overallStatisticFilter); return(apiResponse.GetModel()); }