-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathISmsSender.cs
29 lines (26 loc) · 1002 Bytes
/
ISmsSender.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
namespace Pact.Sms;
/// <summary>
/// Abstraction for an SMS (and optionally Voice) delivery service
/// </summary>
public interface ISmsSender
{
/// <summary>
/// Indicates that the <see cref="SendVoiceAsync"/> call is supported
/// </summary>
bool SupportsVoice { get; }
/// <summary>
/// Sends an SMS to the provided number using the underlying delivery service
/// </summary>
/// <param name="number"></param>
/// <param name="message"></param>
/// <returns></returns>
Task SendSmsAsync(string number, string message);
/// <summary>
/// Negotiates a callback endpoint with a voice message service to communicate an audible message to a user
/// The callback URL itself typically identifies/includes the content to be communicated when they arrive
/// </summary>
/// <param name="number"></param>
/// <param name="callbackUrl"></param>
/// <returns></returns>
Task SendVoiceAsync(string number, string callbackUrl);
}