Class PlayOptions
java.lang.Object
com.azure.communication.callautomation.models.PlayOptions
The PlayOptions model.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayOptions(PlaySource playSource, List<CommunicationIdentifier> playTo) ConstructorPlayOptions(List<PlaySource> playSources, List<CommunicationIdentifier> playTo) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the overridden call back URL override for operation.Get the operationContext property.Get the play sources.Get the list of targets to play to.booleanisLoop()Get the loop property: The option to play the provided audio source in loop when set to true.setLoop(boolean loop) Set the loop property: The option to play the provided audio source in loop when set to true.setOperationCallbackUrl(String operationCallbackUrl) Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation.setOperationContext(String operationContext) Set the operationContext property.
-
Constructor Details
-
PlayOptions
Constructor- Parameters:
playSources- A List ofPlaySourcerepresenting the sources to play.playTo- The targets to play to.
-
PlayOptions
Constructor- Parameters:
playSource- APlaySourcerepresenting the source to play.playTo- The targets to play to.
-
-
Method Details
-
getPlaySources
Get the play sources.- Returns:
- the playSources value.
-
getPlayTo
Get the list of targets to play to.- Returns:
- the playTo value.
-
isLoop
public boolean isLoop()Get the loop property: The option to play the provided audio source in loop when set to true.- Returns:
- the loop value.
-
getOperationContext
Get the operationContext property.- Returns:
- the operationContext value.
-
setLoop
Set the loop property: The option to play the provided audio source in loop when set to true.- Parameters:
loop- the loop value to set.- Returns:
- the PlayOptionsInternal object itself.
-
setOperationContext
Set the operationContext property.- Parameters:
operationContext- the operationContext value to set.- Returns:
- the PlayOptionsInternal object itself.
-
getOperationCallbackUrl
Get the overridden call back URL override for operation.- Returns:
- the operationCallbackUrl
-
setOperationCallbackUrl
Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.- Parameters:
operationCallbackUrl- the operationCallbackUrl to set- Returns:
- the PlayOptions object itself.
-