1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-19 01:33:22 +00:00

re-worked message sending

This commit is contained in:
Kyle Spearrin
2019-04-19 12:29:37 -04:00
parent 4b7366e9b3
commit 7c1549bb95
8 changed files with 79 additions and 21 deletions

View File

@@ -1,11 +1,12 @@
using System;
using Bit.Core.Models.Domain;
using System;
namespace Bit.Core.Abstractions
{
public interface IBroadcasterService
{
void Send<T>(T message, string id = null);
void Subscribe<T>(string id, Action<T> messageCallback);
void Send(Message message, string id = null);
void Subscribe(string id, Action<Message> messageCallback);
void Unsubscribe(string id);
}
}