コード例 #1
0
        public async Task <IActionResult> GetAudioRecordingLinksByHearingId(Guid hearingId)
        {
            _logger.LogDebug("GetAudioRecordingLinksByHearingId {hearingId}", hearingId);

            try
            {
                var response = await _videoApiClient.GetAudioRecordingLinkAsync(hearingId);

                return(Ok(response));
            }
            catch (VideoApiException e)
            {
                return(StatusCode(e.StatusCode, e.Response));
            }
        }
コード例 #2
0
        public async Task <IActionResult> GetAudioRecordingLinkAsync(Guid hearingId)
        {
            _logger.LogInformation($"Getting audio recording for hearing: {hearingId}");

            try
            {
                var response = await _videoAPiClient.GetAudioRecordingLinkAsync(hearingId);

                return(Ok(new HearingAudioRecordingResponse {
                    AudioFileLinks = response.AudioFileLinks
                }));
            }
            catch (VideoApiException ex)
            {
                return(StatusCode(ex.StatusCode, ex.Response));
            }
        }