コード例 #1
0
ファイル: Conference.cs プロジェクト: troft/csharp-bandwidth
 public Task PlayAudioToMemberAsync(string conferenceId, string memberId, PlayAudioData data,
                                    CancellationToken?cancellationToken = null)
 {
     return
         (Client.MakeJsonRequestWithoutResponseAsync(HttpMethod.Post,
                                                     $"/users/{Client.UserId}/conferences/{conferenceId}/members/{memberId}/audio", cancellationToken, null, data));
 }
コード例 #2
0
 public Task PlayAudioAsync(string bridgeId, PlayAudioData data, CancellationToken?cancellationToken = null)
 {
     return
         (Client.MakeJsonRequestWithoutResponseAsync(HttpMethod.Post,
                                                     $"/users/{Client.UserId}/bridges/{bridgeId}/audio", cancellationToken, null, data));
 }
コード例 #3
0
 public Task PlayAudioAsync(string id, PlayAudioData data, CancellationToken?cancellationToken = null)
 {
     throw new System.NotImplementedException();
 }
コード例 #4
0
 public Task PlayAudioAsync(string id, PlayAudioData data, CancellationToken?cancellationToken = null)
 {
     return(_context.Invoke(m => m.PlayAudioAsync(id, data, cancellationToken)));
 }
コード例 #5
0
 public static bool IsValidPlayAudioFileData(PlayAudioData data)
 {
     return(data.FileUrl == "url");
 }
コード例 #6
0
 public static bool IsValidSpeakSentenceData(PlayAudioData data)
 {
     return(data.Sentence == "Hello" && data.Gender == Gender.Female && data.Voice == "susan");
 }
コード例 #7
0
 public Task PlayAudioToMemberAsync(string conferenceId, string memberId, PlayAudioData data,
                                    CancellationToken?cancellationToken = null)
 {
     return(_context.Invoke(m => m.PlayAudioToMemberAsync(conferenceId, memberId, data, cancellationToken)));
 }