IChatClient.cs 811 B

12345678910111213141516171819202122232425262728293031
  1. namespace OASystem.API.OAMethodLib.Hub.HubClients
  2. {
  3. public interface IChatClient
  4. {
  5. Task SignalRLogin(int userId);
  6. Task SendAsync(string method, object message);
  7. Task SendAll(object message);
  8. Task SendMessageByUser(object message);
  9. Task SendCustomUserMessage(object message);
  10. /// <summary>
  11. /// 发送消息给指定用户(系统)
  12. /// </summary>
  13. /// <param name="message"></param>
  14. /// <returns></returns>
  15. Task SendSystemToUser(string message);
  16. /// <summary>
  17. /// 发送消息给所有用户(系统)
  18. /// </summary>
  19. /// <param name="id"></param>
  20. /// <param name="message"></param>
  21. /// <returns></returns>
  22. Task SendSystemToAllUser(string message);
  23. }
  24. }