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:
parent
567d527a71
commit
9fb2ce9297
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 New Issue
Block a user