예제 #1
0
        public async Task <PlayAudioAndCollectAction> PlayAudioAndCollectAsync(CallMedia.AudioParams audio, CallCollect collect)
        {
            CallMedia media = new CallMedia()
            {
                Type = CallMedia.MediaType.audio, Parameters = JObject.FromObject(audio)
            };
            PlayMediaAndCollectAction playMediaAndCollectAction = await PlayMediaAndCollectAsync(new List <CallMedia> {
                media
            }, collect);

            return(new PlayAudioAndCollectAction(playMediaAndCollectAction));
        }
예제 #2
0
 public PlayAudioAndCollectAction PlayAudioAndCollect(CallMedia.AudioParams audio, CallCollect collect)
 {
     return(PlayAudioAndCollectAsync(audio, collect).Result);
 }
예제 #3
0
 public PlayAudioAction PlayAudio(CallMedia.AudioParams audio)
 {
     return(PlayAudioAsync(audio).Result);
 }