INotificationService.cs 929 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. namespace GreenTree.Maschinenbestellungen.Services.Notification
  6. {
  7. public interface INotificationService
  8. {
  9. /// <summary>
  10. /// Sends a notification to a specific target
  11. /// </summary>
  12. /// <param name="target">The single target.</param>
  13. /// <param name="subject">The subject.</param>
  14. /// <param name="message">The message.</param>
  15. public void SendNotification(string target, string subject, string message);
  16. /// <summary>
  17. /// Sends a notification to multiple targets
  18. /// </summary>
  19. /// <param name="targets">The targets.</param>
  20. /// <param name="subject">The subject.</param>
  21. /// <param name="message">The message.</param>
  22. public void SendNotification(string[] targets, string subject, string message);
  23. }
  24. }