1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-23 11:45:38 +01:00

mobile messaging service

This commit is contained in:
Kyle Spearrin 2019-04-11 15:50:51 -04:00
parent 567d527a71
commit 9fb2ce9297
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,12 @@
using Bit.Core.Abstractions;
namespace Bit.App.Services
{
public class MobileMessagingService : IMessagingService
{
public void Send(string subscriber, object arg = null)
{
Xamarin.Forms.MessagingCenter.Send(Xamarin.Forms.Application.Current, subscriber, arg);
}
}
}

View File

@ -0,0 +1,7 @@
namespace Bit.Core.Abstractions
{
public interface IMessagingService
{
void Send(string subscriber, object arg = null);
}
}