:drunk: Write shit code trying to split up the Auth (WIP)
This commit is contained in:
@ -0,0 +1,31 @@
|
||||
using System.Collections.Generic;
|
||||
using DysonNetwork.Common.Models;
|
||||
using NodaTime;
|
||||
|
||||
namespace DysonNetwork.Pass.Features.Account.Interfaces;
|
||||
|
||||
public interface INotificationService
|
||||
{
|
||||
Task UnsubscribePushNotifications(string deviceId);
|
||||
Task<NotificationPushSubscription> SubscribePushNotification(
|
||||
Models.Account account,
|
||||
NotificationPushProvider provider,
|
||||
string deviceId,
|
||||
string deviceToken
|
||||
);
|
||||
Task<Notification> SendNotification(
|
||||
Models.Account account,
|
||||
string topic,
|
||||
string? title = null,
|
||||
string? subtitle = null,
|
||||
string? content = null,
|
||||
Dictionary<string, object>? meta = null,
|
||||
string? actionUri = null,
|
||||
bool isSilent = false,
|
||||
bool save = true
|
||||
);
|
||||
Task DeliveryNotification(Notification notification);
|
||||
Task MarkNotificationsViewed(ICollection<Notification> notifications);
|
||||
Task BroadcastNotification(Notification notification, bool save = false);
|
||||
Task SendNotificationBatch(Notification notification, List<Models.Account> accounts, bool save = false);
|
||||
}
|
Reference in New Issue
Block a user