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.

49 lines
1.1 KiB

2 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. namespace WebApp.Models.Hub
  4. {
  5. public class UserInfo
  6. {
  7. public UserInfo()
  8. {
  9. LastLoginTime = DateTime.Now;
  10. Rooms = new List<RoomInfo>();
  11. Prgs = new List<EditPrgInfo>();
  12. }
  13. /// <summary>
  14. /// 當前連接通訊ID
  15. /// </summary>
  16. public string ConnectionId { get; set; }
  17. /// <summary>
  18. /// 組織ID
  19. /// </summary>
  20. public string OrgId { get; set; }
  21. /// <summary>
  22. /// 帳號ID
  23. /// </summary>
  24. public string UserId { get; set; }
  25. /// <summary>
  26. /// 帳號名稱
  27. /// </summary>
  28. public string UserName { get; set; }
  29. /// <summary>
  30. /// 最後登陸時間
  31. /// </summary>
  32. public DateTime LastLoginTime { get; set; }
  33. /// <summary>
  34. /// 用户房间集合
  35. /// </summary>
  36. public virtual List<RoomInfo> Rooms { get; set; }
  37. //當前編輯程式id集合
  38. public List<EditPrgInfo> Prgs { get; set; }
  39. }
  40. }