/// <summary> /// Hold/Unhold the conference member /// </summary> /// <param name="instance">>Instance of <see cref="IPlayAudio" /></param> /// <param name="conferenceId">Id of the conference</param> /// <param name="memberId">Id of the member</param> /// <param name="hold">'true' to hold member or 'false'</param> /// <returns>Task instance for async operation</returns> public static Task HoldMemberAsync(this IConference instance, string conferenceId, string memberId, bool hold) { return(instance.UpdateMemberAsync(conferenceId, memberId, new UpdateConferenceMemberData { Hold = hold })); }
/// <summary> /// Mute/Unmute the conference member /// </summary> /// <param name="instance">>Instance of <see cref="IPlayAudio" /></param> /// <param name="conferenceId">Id of the conference</param> /// <param name="memberId">Id of the member</param> /// <param name="mute">'true' to mute member or 'false'</param> /// <returns>Task instance for async operation</returns> public static Task MuteMemberAsync(this IConference instance, string conferenceId, string memberId, bool mute) { return(instance.UpdateMemberAsync(conferenceId, memberId, new UpdateConferenceMemberData { Mute = mute })); }
/// <summary> /// Remove member from the conference /// </summary> /// <param name="instance">>Instance of <see cref="IPlayAudio" /></param> /// <param name="conferenceId">Id of the conference</param> /// <param name="memberId">Id of the member to remove</param> /// <returns>Task instance for async operation</returns> public static Task DeleteMemberAsync(this IConference instance, string conferenceId, string memberId) { return(instance.UpdateMemberAsync(conferenceId, memberId, new UpdateConferenceMemberData { State = ConferenceMemberState.Completed })); }