INotificationService.cs 760 B

123456789101112131415161718192021222324252627282930
  1. using Domain.Entities.Notifications.ValueObject;
  2. namespace Application.Abstractions.Notification;
  3. public interface INotificationService
  4. {
  5. Task SendAsync(
  6. int memberID,
  7. NotificationType type,
  8. string title,
  9. string message,
  10. string? actionUrl = null,
  11. string? relatedType = null,
  12. int? relatedID = null,
  13. string? imageUrl = null,
  14. CancellationToken ct = default
  15. );
  16. Task SendToManyAsync(
  17. IEnumerable<int> memberIDs,
  18. NotificationType type,
  19. string title,
  20. string message,
  21. string? actionUrl = null,
  22. string? relatedType = null,
  23. int? relatedID = null,
  24. string? imageUrl = null,
  25. CancellationToken ct = default
  26. );
  27. }