ICallingBotService.cs
1 using System;
2 using System.IO;
3 using System.Threading.Tasks;
4 
6 
7 namespace Microsoft.Bot.Builder.Calling
8 {
9  public interface ICallingBotService
10  {
14  event Func<IncomingCallEvent, Task> OnIncomingCallReceived;
15 
19  event Func<AnswerOutcomeEvent, Task> OnAnswerCompleted;
20 
24  event Func<HangupOutcomeEvent, Task> OnHangupCompleted;
25 
29  event Func<PlayPromptOutcomeEvent, Task> OnPlayPromptCompleted;
30 
34  event Func<RecognizeOutcomeEvent, Task> OnRecognizeCompleted;
35 
39  event Func<RecordOutcomeEvent, Task> OnRecordCompleted;
40 
44  event Func<RejectOutcomeEvent, Task> OnRejectCompleted;
45 
49  event Func<WorkflowValidationOutcomeEvent, Task> OnWorkflowValidationFailed;
50 
57  string ProcessCallback(string content, Task<Stream> additionalData);
58 
65  Task<string> ProcessCallbackAsync(string content, Task<Stream> additionalData);
66 
72  string ProcessIncomingCall(string content);
73 
79  Task<string> ProcessIncomingCallAsync(string content);
80  }
81 }
Root namespace for the Microsoft Bot Builder Calling SDK.
Namespace for events generated by the Microsoft Bot Builder Calling SDK.
Root namespace for the Microsoft Bot Builder SDK.