bitwarden-mobile/src/App/Services/NoopPushNotificationListene...

33 lines
731 B
C#
Raw Normal View History

2022-04-26 17:21:17 +02:00
using System.Threading.Tasks;
2019-05-28 18:01:55 +02:00
using Bit.App.Abstractions;
2022-04-26 17:21:17 +02:00
using Newtonsoft.Json.Linq;
2019-05-28 18:01:55 +02:00
namespace Bit.App.Services
{
public class NoopPushNotificationListenerService : IPushNotificationListenerService
{
public Task OnMessageAsync(JObject value, string deviceType)
{
return Task.FromResult(0);
}
public Task OnRegisteredAsync(string token, string deviceType)
{
return Task.FromResult(0);
}
public void OnUnregistered(string deviceType)
{
}
public void OnError(string message, string deviceType)
{
}
public bool ShouldShowNotification()
{
return false;
}
}
}