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.

54 lines
1.2 KiB

2 years ago
  1. using System.Collections.Generic;
  2. namespace WebApp.Models.Hub
  3. {
  4. /// <summary>
  5. /// 消息實體模型
  6. /// </summary>
  7. public class Message
  8. {
  9. /// <summary>
  10. /// </summary>
  11. public Message()
  12. {
  13. ConnectionIds = new List<string>();
  14. ToUserIds = new List<string>();
  15. }
  16. /// <summary>
  17. /// </summary>
  18. public MessageType Type { get; set; }
  19. /// <summary>
  20. /// </summary>
  21. public string ConnectionId { get; set; }
  22. /// <summary>
  23. /// </summary>
  24. public string ToOrgId { get; set; }
  25. /// <summary>
  26. /// </summary>
  27. public string ToUserId { get; set; }
  28. /// <summary>
  29. /// </summary>
  30. public List<string> ConnectionIds { get; set; }
  31. /// <summary>
  32. /// </summary>
  33. public List<string> ToUserIds { get; set; }
  34. /// <summary>
  35. /// </summary>
  36. public string Content { get; set; }
  37. /// <summary>
  38. /// </summary>
  39. public string GroupName { get; set; }
  40. /// <summary>
  41. /// </summary>
  42. public string Memo { get; set; }
  43. }
  44. }