mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
611 B
18 lines
611 B
using System;
|
|
using ZeroLevel.Models;
|
|
|
|
namespace ZeroLevel.Network
|
|
{
|
|
public interface IClient
|
|
{
|
|
InvokeResult Send(string inbox);
|
|
InvokeResult Send(string inbox, byte[] data);
|
|
InvokeResult Send<T>(string inbox, T message);
|
|
|
|
InvokeResult Request(string inbox, Action<byte[]> callback);
|
|
InvokeResult Request(string inbox, byte[] data, Action<byte[]> callback);
|
|
InvokeResult Request<Tresponse>(string inbox, Action<Tresponse> callback);
|
|
InvokeResult Request<Trequest, Tresponse>(string inbox, Trequest request, Action<Tresponse> callback);
|
|
}
|
|
}
|