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);
}
}