@@ -817,12 +817,12 @@ public async Task DeleteRecordingAsync(
817817 /// <param name="callId">Required parameter: Example: .</param>
818818 /// <param name="recordingId">Required parameter: Example: .</param>
819819 /// <returns>Returns the ApiResponse of dynamic response from the API call.</returns>
820- public ApiResponse < dynamic > GetDownloadCallRecording (
820+ public ApiResponse < Stream > GetDownloadCallRecording (
821821 string accountId ,
822822 string callId ,
823823 string recordingId )
824824 {
825- Task < ApiResponse < dynamic > > t = this . GetDownloadCallRecordingAsync ( accountId , callId , recordingId ) ;
825+ Task < ApiResponse < Stream > > t = this . GetDownloadCallRecordingAsync ( accountId , callId , recordingId ) ;
826826 ApiHelper . RunTaskSynchronously ( t ) ;
827827 return t . Result ;
828828 }
@@ -835,7 +835,7 @@ public ApiResponse<dynamic> GetDownloadCallRecording(
835835 /// <param name="recordingId">Required parameter: Example: .</param>
836836 /// <param name="cancellationToken"> cancellationToken. </param>
837837 /// <returns>Returns the ApiResponse of dynamic response from the API call.</returns>
838- public async Task < ApiResponse < dynamic > > GetDownloadCallRecordingAsync (
838+ public async Task < ApiResponse < Stream > > GetDownloadCallRecordingAsync (
839839 string accountId ,
840840 string callId ,
841841 string recordingId ,
@@ -919,8 +919,8 @@ public async Task<ApiResponse<dynamic>> GetDownloadCallRecordingAsync(
919919 // handle errors defined at the API level.
920920 this . ValidateResponse ( response , context ) ;
921921
922- var result = ApiHelper . JsonDeserialize < dynamic > ( response . Body ) ;
923- ApiResponse < dynamic > apiResponse = new ApiResponse < dynamic > ( response . StatusCode , response . Headers , result ) ;
922+ var result = response . RawBody ;
923+ ApiResponse < Stream > apiResponse = new ApiResponse < Stream > ( response . StatusCode , response . Headers , result ) ;
924924 return apiResponse ;
925925 }
926926
@@ -2420,4 +2420,4 @@ public async Task<ApiResponse<dynamic>> GetDownloadConferenceRecordingAsync(
24202420 return apiResponse ;
24212421 }
24222422 }
2423- }
2423+ }
0 commit comments