2022-09-26 19:27:57 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
2019-05-28 18:01:55 +02:00
|
|
|
|
using Bit.App.Abstractions;
|
2022-10-07 13:06:57 +02:00
|
|
|
|
using Bit.App.Models;
|
2019-05-28 18:01:55 +02:00
|
|
|
|
|
|
|
|
|
namespace Bit.App.Services
|
|
|
|
|
{
|
|
|
|
|
public class NoopPushNotificationService : IPushNotificationService
|
|
|
|
|
{
|
2022-01-18 15:52:08 +01:00
|
|
|
|
public bool IsRegisteredForPush => false;
|
|
|
|
|
|
2022-09-26 19:27:57 +02:00
|
|
|
|
public Task<bool> AreNotificationsSettingsEnabledAsync()
|
|
|
|
|
{
|
|
|
|
|
return Task.FromResult(false);
|
|
|
|
|
}
|
|
|
|
|
|
2019-05-28 18:01:55 +02:00
|
|
|
|
public Task<string> GetTokenAsync()
|
|
|
|
|
{
|
|
|
|
|
return Task.FromResult(null as string);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Task RegisterAsync()
|
|
|
|
|
{
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Task UnregisterAsync()
|
|
|
|
|
{
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
}
|
2022-09-26 19:27:57 +02:00
|
|
|
|
|
|
|
|
|
public void DismissLocalNotification(string notificationId) { }
|
|
|
|
|
|
2022-10-07 13:06:57 +02:00
|
|
|
|
public void SendLocalNotification(string title, string message, BaseNotificationData data) { }
|
2019-05-28 18:01:55 +02:00
|
|
|
|
}
|
|
|
|
|
}
|