Bitwarden-app-android-iphon.../src/App/Services/NoopPushNotificationListene...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1012 B
C#
Raw Normal View History

2019-05-28 18:01:55 +02:00
using System.Threading.Tasks;
using Bit.App.Abstractions;
using Bit.App.Models;
2019-05-28 18:01:55 +02:00
using Newtonsoft.Json.Linq;
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;
}
public Task OnNotificationTapped(BaseNotificationData data)
{
return Task.FromResult(0);
}
public Task OnNotificationDismissed(BaseNotificationData data)
{
return Task.FromResult(0);
}
2019-05-28 18:01:55 +02:00
}
}