|
10 | 10 | import com.azure.communication.callautomation.models.CallingServerErrorException; |
11 | 11 | import com.azure.communication.callautomation.models.HangUpOptions; |
12 | 12 | import com.azure.communication.callautomation.models.ListParticipantsResult; |
13 | | -import com.azure.communication.callautomation.models.MuteAllParticipantsOptions; |
14 | | -import com.azure.communication.callautomation.models.MuteParticipantOptions; |
| 13 | +import com.azure.communication.callautomation.models.MuteParticipantsOptions; |
15 | 14 | import com.azure.communication.callautomation.models.MuteParticipantsResult; |
16 | 15 | import com.azure.communication.callautomation.models.RemoveParticipantsOptions; |
17 | 16 | import com.azure.communication.callautomation.models.RemoveParticipantsResult; |
18 | 17 | import com.azure.communication.callautomation.models.TransferCallResult; |
19 | 18 | import com.azure.communication.callautomation.models.TransferToParticipantCallOptions; |
20 | | -import com.azure.communication.callautomation.models.UnmuteAllParticipantsOptions; |
21 | | -import com.azure.communication.callautomation.models.UnmuteParticipantOptions; |
| 19 | +import com.azure.communication.callautomation.models.UnmuteParticipantsOptions; |
22 | 20 | import com.azure.communication.callautomation.models.UnmuteParticipantsResult; |
23 | 21 | import com.azure.communication.common.CommunicationIdentifier; |
24 | 22 | import com.azure.core.annotation.ReturnType; |
@@ -226,89 +224,46 @@ public Response<RemoveParticipantsResult> removeParticipantsWithResponse(RemoveP |
226 | 224 | } |
227 | 225 |
|
228 | 226 | /** |
229 | | - * Mutes a single participant in the call. |
230 | | - * @param targetParticipant - Participant to be muted. |
| 227 | + * Mutes participants in the call. |
| 228 | + * |
| 229 | + * @param targetParticipant - Participant to be muted. Only ACS Users are currently supported. |
231 | 230 | * @return A MuteParticipantsResult object. |
232 | 231 | */ |
233 | 232 | @ServiceMethod(returns = ReturnType.SINGLE) |
234 | | - public MuteParticipantsResult muteParticipant(CommunicationIdentifier targetParticipant) { |
235 | | - return callConnectionAsync.muteParticipantAsync(targetParticipant).block(); |
| 233 | + public MuteParticipantsResult muteParticipants(CommunicationIdentifier targetParticipant) { |
| 234 | + return callConnectionAsync.muteParticipantsAsync(targetParticipant).block(); |
236 | 235 | } |
237 | 236 |
|
238 | 237 | /** |
239 | | - * Mute a single participant in the call. |
240 | | - * @param muteParticipantOptions - Options for the request. |
| 238 | + * Mute participants in the call. |
| 239 | + * @param muteParticipantsOptions - Options for the request. |
241 | 240 | * @param context A {@link Context} representing the request context. |
242 | 241 | * @return a Response containing the MuteParticipantsResult object. |
243 | 242 | */ |
244 | 243 | @ServiceMethod(returns = ReturnType.SINGLE) |
245 | | - public Response<MuteParticipantsResult> muteParticipantWithResponse(MuteParticipantOptions muteParticipantOptions, Context context) { |
246 | | - return callConnectionAsync.muteParticipantWithResponseInternal(muteParticipantOptions, context).block(); |
247 | | - } |
248 | | - |
249 | | - /** |
250 | | - * Mute all participants in the call, except for the initiator. |
251 | | - * @param requestInitiator Optional - if passed, this participant won't be muted. If not passed, |
252 | | - * the server won't be muted. |
253 | | - * @return a MuteParticipantsResult object. |
254 | | - */ |
255 | | - @ServiceMethod(returns = ReturnType.SINGLE) |
256 | | - public MuteParticipantsResult muteAllParticipants(CommunicationIdentifier requestInitiator) { |
257 | | - return callConnectionAsync.muteAllParticipantsAsync(requestInitiator).block(); |
258 | | - } |
259 | | - |
260 | | - |
261 | | - /** |
262 | | - * Mute all participants in the call, except for the initiator. |
263 | | - * @param options - Options for the operation. |
264 | | - * @param context A {@link Context} representing the request context. |
265 | | - * @return a Response containing a MuteParticipantsResult object. |
266 | | - */ |
267 | | - @ServiceMethod(returns = ReturnType.SINGLE) |
268 | | - public Response<MuteParticipantsResult> muteAllParticipantsWithResponse(MuteAllParticipantsOptions options, Context context) { |
269 | | - return callConnectionAsync.muteAllParticipantsWithResponseInternal(options, context).block(); |
| 244 | + public Response<MuteParticipantsResult> muteParticipantsWithResponse(MuteParticipantsOptions muteParticipantsOptions, Context context) { |
| 245 | + return callConnectionAsync.muteParticipantWithResponseInternal(muteParticipantsOptions, context).block(); |
270 | 246 | } |
271 | 247 |
|
272 | 248 | /** |
273 | | - * Unmutes a single participant in the call. |
274 | | - * @param targetParticipant - Participant to be muted. |
| 249 | + * Unmutes participants in the call. |
| 250 | + * @param targetParticipant - Participant to be unmuted. Only ACS Users are currently supported. |
275 | 251 | * @return An UnmuteParticipantsResult object. |
276 | 252 | */ |
277 | 253 | @ServiceMethod(returns = ReturnType.SINGLE) |
278 | | - public UnmuteParticipantsResult unmuteParticipant(CommunicationIdentifier targetParticipant) { |
279 | | - return callConnectionAsync.unmuteParticipantAsync(targetParticipant).block(); |
| 254 | + public UnmuteParticipantsResult unmuteParticipants(CommunicationIdentifier targetParticipant) { |
| 255 | + return callConnectionAsync.unmuteParticipantsAsync(targetParticipant).block(); |
280 | 256 | } |
281 | 257 |
|
282 | 258 | /** |
283 | | - * Mute a single participant in the call. |
284 | | - * @param unmuteParticipantOptions - Options for the request. |
| 259 | + * Unmutes participants in the call. |
| 260 | + * @param unmuteParticipantsOptions - Options for the request. |
285 | 261 | * @param context A {@link Context} representing the request context. |
286 | 262 | * @return a Response containing the UnmuteParticipantsResult object. |
287 | 263 | */ |
288 | 264 | @ServiceMethod(returns = ReturnType.SINGLE) |
289 | | - public Response<UnmuteParticipantsResult> unmuteParticipantWithResponse(UnmuteParticipantOptions unmuteParticipantOptions, Context context) { |
290 | | - return callConnectionAsync.unmuteParticipantWithResponseInternal(unmuteParticipantOptions, context).block(); |
291 | | - } |
292 | | - |
293 | | - /** |
294 | | - * Unmute all participants in the call. |
295 | | - * @return an UnmuteParticipantsResult object. |
296 | | - */ |
297 | | - @ServiceMethod(returns = ReturnType.SINGLE) |
298 | | - public UnmuteParticipantsResult unmuteAllParticipants() { |
299 | | - return callConnectionAsync.unmuteAllParticipantsAsync().block(); |
300 | | - } |
301 | | - |
302 | | - |
303 | | - /** |
304 | | - * Unmute all participants in the call, except for the initiator. |
305 | | - * @param options - Options for the operation. |
306 | | - * @param context A {@link Context} representing the request context. |
307 | | - * @return a Response containing an UnmuteParticipantsResult object. |
308 | | - */ |
309 | | - @ServiceMethod(returns = ReturnType.SINGLE) |
310 | | - public Response<UnmuteParticipantsResult> unmuteAllParticipantsWithResponse(UnmuteAllParticipantsOptions options, Context context) { |
311 | | - return callConnectionAsync.unmuteAllParticipantsWithResponseInternal(options, context).block(); |
| 265 | + public Response<UnmuteParticipantsResult> unmuteParticipantsWithResponse(UnmuteParticipantsOptions unmuteParticipantsOptions, Context context) { |
| 266 | + return callConnectionAsync.unmuteParticipantWithResponseInternal(unmuteParticipantsOptions, context).block(); |
312 | 267 | } |
313 | 268 |
|
314 | 269 | //region Content management Actions |
|
0 commit comments