38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CommonService
|
|
{
|
|
public interface IHubSend<T>
|
|
{
|
|
void SendUserUserId(string userId, string methon, object obj);
|
|
|
|
void SendUserUserIds(List<string> userIds, string methon, object obj);
|
|
|
|
|
|
|
|
void SendUserCId(string cid, string methon, object obj);
|
|
|
|
Task SendUserCIdAsync(string cid, string method, object obj);
|
|
|
|
void SendUserCIds(List<string> cids, string methon, object obj);
|
|
void SendGroup(string groupId, string method, object obj);
|
|
|
|
Task SendGroupAsync(string groupId, string method, object obj);
|
|
|
|
void RemoveGroup(string cid, string groupId);
|
|
|
|
void GroupExcept(string cid, string groupId, string method, object obj);
|
|
|
|
Task GroupExceptAsync(string cid, string groupId, string method, object obj);
|
|
|
|
void AddGroup(string cid, string groupId);
|
|
|
|
|
|
void SendAll(string method, object obj);
|
|
}
|
|
}
|