mirror of
https://github.com/bitwarden/mobile
synced 2026-01-06 10:34:07 +00:00
re-worked message sending
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,6 @@
|
||||
{
|
||||
public interface IMessagingService
|
||||
{
|
||||
void Send<T>(string subscriber, T arg = default(T));
|
||||
void Send(string subscriber, object arg = null);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user