Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1008 Bytes

call-answer-app-hosted-media-java-snippets.md

File metadata and controls

23 lines (17 loc) · 1008 Bytes
description
Automatically generated file. DO NOT MODIFY
// Code snippets are only available for the latest version. Current version is 6.xGraphServiceClientgraphClient = newGraphServiceClient(requestAdapter); com.microsoft.graph.communications.calls.item.answer.AnswerPostRequestBodyanswerPostRequestBody = newcom.microsoft.graph.communications.calls.item.answer.AnswerPostRequestBody(); answerPostRequestBody.setCallbackUri("https://bot.contoso.com/api/calls"); LinkedList<Modality> acceptedModalities = newLinkedList<Modality>(); acceptedModalities.add(Modality.Audio); answerPostRequestBody.setAcceptedModalities(acceptedModalities); AppHostedMediaConfigmediaConfig = newAppHostedMediaConfig(); mediaConfig.setOdataType("#microsoft.graph.appHostedMediaConfig"); mediaConfig.setBlob("<Media Session Configuration Blob>"); answerPostRequestBody.setMediaConfig(mediaConfig); graphClient.communications().calls().byCallId("{call-id}").answer().post(answerPostRequestBody); 
close