26 lines
947 B
C#
26 lines
947 B
C#
namespace Fitness_core_BE.Interfaces.Services
|
|
{
|
|
public interface IPushNotificationService
|
|
{
|
|
// Persists a CustomerNotification row (for the mobile Notification tab) and, if the
|
|
// customer has a registered Expo push token, sends a real push too. routeName/routeParams
|
|
// mirror the mobile app's PushNavigationData contract (pushNotification.ts) so tapping
|
|
// either the push or the in-app list item navigates the same way.
|
|
Task NotifyCustomerAsync(
|
|
Guid customerId,
|
|
string title,
|
|
string body,
|
|
string notificationType,
|
|
string? routeName = null,
|
|
object? routeParams = null);
|
|
|
|
Task NotifyCustomersAsync(
|
|
IEnumerable<Guid> customerIds,
|
|
string title,
|
|
string body,
|
|
string notificationType,
|
|
string? routeName = null,
|
|
object? routeParams = null);
|
|
}
|
|
}
|