mirror of
https://github.com/bitwarden/mobile
synced 2026-01-05 18:13:36 +00:00
push notification services
This commit is contained in:
14
src/App/Abstractions/IPushNotificationListenerService.cs
Normal file
14
src/App/Abstractions/IPushNotificationListenerService.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Bit.App.Abstractions
|
||||
{
|
||||
public interface IPushNotificationListenerService
|
||||
{
|
||||
Task OnMessageAsync(JObject values, string device);
|
||||
Task OnRegisteredAsync(string token, string device);
|
||||
void OnUnregistered(string device);
|
||||
void OnError(string message, string device);
|
||||
bool ShouldShowNotification();
|
||||
}
|
||||
}
|
||||
11
src/App/Abstractions/IPushNotificationService.cs
Normal file
11
src/App/Abstractions/IPushNotificationService.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Bit.App.Abstractions
|
||||
{
|
||||
public interface IPushNotificationService
|
||||
{
|
||||
Task<string> GetTokenAsync();
|
||||
Task RegisterAsync();
|
||||
Task UnregisterAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user