Conversation.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. namespace VidFilesUpgradeTool
  4. {
  5. class Conversation : TrackableEntity
  6. {
  7. public string Name { get; set; }
  8. /// <summary>
  9. /// Indicate if it is a multi-people conversation
  10. /// </summary>
  11. public bool Multiple { get; set; }
  12. public UserInfoWithImage CreateUser { get; set; }
  13. /// <summary>
  14. /// The master of this conversation
  15. /// </summary>
  16. public UserInfoWithImage Master { get; set; }
  17. public ICollection<UserInfoWithImage> Members { get; set; }
  18. public DateTime CloseTime { get; set; }
  19. }
  20. class UserInfoWithImage : EntityInfo
  21. {
  22. public byte[] SmallHeadImage { get; set; }
  23. public string NickName { get; set; }
  24. }
  25. class FriendShip : Entity
  26. {
  27. public virtual UserInfo User { get; set; }
  28. public virtual UserInfo Friend { get; set; }
  29. }
  30. class Remark : TrackableEntity
  31. {
  32. public virtual UserInfo SourceUser { get; set; }
  33. public virtual UserInfo TargetUser { get; set; }
  34. public string RemarkName { get; set; }
  35. }
  36. }