コード例 #1
0
        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);
        }
コード例 #2
0
        public async Task <Statistic> GetEpisodeStatisticAsync(int podcastId, EpisodeStatisticFilter overallStatisticFilter)
        {
            ApiResponse <Statistic> apiResponse = await GetEpisodeStatisticResponseAsync(podcastId, overallStatisticFilter);

            return(apiResponse.GetModel());
        }