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)); }
public PlayAudioAndCollectAction PlayAudioAndCollect(CallMedia.AudioParams audio, CallCollect collect) { return(PlayAudioAndCollectAsync(audio, collect).Result); }
public PlayAudioAction PlayAudio(CallMedia.AudioParams audio) { return(PlayAudioAsync(audio).Result); }