Beispiel #1
0
 /// <summary>
 ///   Hold/Unhold the conference
 /// </summary>
 /// <param name="instance">>Instance of <see cref="IPlayAudio" /></param>
 /// <param name="conferenceId">Id of the conference</param>
 /// <param name="hold">'true' to hold the conference or 'false'</param>
 /// <returns>Task instance for async operation</returns>
 public static Task HoldAsync(this IConference instance, string conferenceId, bool hold)
 {
     return(instance.UpdateAsync(conferenceId, new UpdateConferenceData {
         Hold = hold
     }));
 }
Beispiel #2
0
 /// <summary>
 ///   Mute/Unmute the conference
 /// </summary>
 /// <param name="instance">>Instance of <see cref="IPlayAudio" /></param>
 /// <param name="conferenceId">Id of the conference</param>
 /// <param name="mute">'true' to the conference or 'false'</param>
 /// <returns>Task instance for async operation</returns>
 public static Task MuteAsync(this IConference instance, string conferenceId, bool mute)
 {
     return(instance.UpdateAsync(conferenceId, new UpdateConferenceData {
         Mute = mute
     }));
 }
Beispiel #3
0
 /// <summary>
 ///   Terminate the conference
 /// </summary>
 /// <param name="instance">>Instance of <see cref="IPlayAudio" /></param>
 /// <param name="conferenceId">Id of the conference to terminate</param>
 /// <returns>Task instance for async operation</returns>
 /// ///
 /// <returns></returns>
 public static Task TerminateAsync(this IConference instance, string conferenceId)
 {
     return(instance.UpdateAsync(conferenceId, new UpdateConferenceData {
         State = ConferenceState.Completed
     }));
 }