/// Example Implementation
using SanteDB.Core.Notifications;
/// Other usings here
public class MyNotificationService : SanteDB.Core.Notifications.INotificationService {
public String ServiceName => "My own INotificationService service";
/// <summary>
/// Gets the notification relays available (SMS, EMAIL, etc.)
/// </summary>
public IEnumerable<INotificationRelay> Relays {
get;
}
/// <summary>
/// Gets the specified notification relay
/// </summary>
public INotificationRelay GetNotificationRelay(Uri toAddress){
throw new System.NotImplementedException();
}
/// <summary>
/// Gets the specified notification relay
/// </summary>
public INotificationRelay GetNotificationRelay(String toAddress){
throw new System.NotImplementedException();
}
/// <summary>
/// Send a notification to one or more addresses.
/// </summary>
public Guid[] SendNotification(String[] to,String subject,String body,Nullable<DateTimeOffset> scheduleDelivery,Boolean ccAdmins,NotificationAttachment[] attachments){
throw new System.NotImplementedException();
}
/// <summary>
/// Send a notification using a template to one or more addresses.
/// </summary>
public Guid[] SendTemplatedNotification(String[] to,String templateId,String templateLanguage,Object templateModel,Nullable<DateTimeOffset> scheduleDelivery,Boolean ccAdmins,NotificationAttachment[] attachments){
throw new System.NotImplementedException();
}
}