mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
mobile messaging service
This commit is contained in:
parent
567d527a71
commit
9fb2ce9297
2 changed files with 19 additions and 0 deletions
12
src/App/Services/MobileMessagingService.cs
Normal file
12
src/App/Services/MobileMessagingService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
7
src/Core/Abstractions/IMessagingService.cs
Normal file
7
src/Core/Abstractions/IMessagingService.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace Bit.Core.Abstractions
|
||||
{
|
||||
public interface IMessagingService
|
||||
{
|
||||
void Send(string subscriber, object arg = null);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue