1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-27 05:33:23 +00:00
Files
mobile/src/Core/Services/NoopPushNotificationService.cs
2023-09-29 11:02:19 -03:00

37 lines
900 B
C#

using System.Collections.Generic;
using System.Threading.Tasks;
using Bit.App.Abstractions;
using Bit.App.Models;
namespace Bit.App.Services
{
public class NoopPushNotificationService : IPushNotificationService
{
public bool IsRegisteredForPush => false;
public Task<bool> AreNotificationsSettingsEnabledAsync()
{
return Task.FromResult(false);
}
public Task<string> GetTokenAsync()
{
return Task.FromResult(null as string);
}
public Task RegisterAsync()
{
return Task.FromResult(0);
}
public Task UnregisterAsync()
{
return Task.FromResult(0);
}
public void DismissLocalNotification(string notificationId) { }
public void SendLocalNotification(string title, string message, BaseNotificationData data) { }
}
}