예제 #1
0
        public async Task <GetSingleSeriesResponse> Handle(GetSingleSeriesRequest request, CancellationToken cancellationToken)
        {
            var model = new GetSingleSeriesResponse();

            model.Series = await _tmdbClient.GetSingle <Series>($"tv/{request.Id}");

            return(model);
        }
예제 #2
0
        public async Task <GetCombinedCreditsResponse> Handle(GetCombinedCreditsRequest request, CancellationToken cancellationToken)
        {
            var response = await _tmdbClient.GetSingle <CombinedCredits>($"person/{request.ActorId}/combined_credits");

            var model = new GetCombinedCreditsResponse()
            {
                Credits = response
            };

            return(model);
        }
예제 #3
0
        public async Task <SearchByExternalIdResponse> Handle(SearchByExternalIdRequest request, CancellationToken cancellationToken)
        {
            var result = await _tmdbClient.GetSingle <FindResult>($"find/{request.Id}?external_source=tvdb_id");

            var model = new SearchByExternalIdResponse()
            {
                Result = result
            };

            return(model);
        }