WXModel.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. using System;
  2. using System.Collections.Generic;
  3. using SQLite;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace WechatPCMsgBakTool.Model
  8. {
  9. public class WXUserInfo
  10. {
  11. public string UserName { get; set; } = "";
  12. public string Alias { get; set; } = "";
  13. public int DelFlag { get; set; }
  14. public int Flag { get; set; }
  15. public string NickName { get; set; } = "";
  16. public string LabelIDList { get; set; } = "";
  17. }
  18. public class WXUserImgUrl
  19. {
  20. [Column("usrName")]
  21. public string UserName { get; set; } = "";
  22. [Column("bigHeadImgUrl")]
  23. public string Img { get; set; } = "";
  24. }
  25. [Table("Session")]
  26. public class WXSession
  27. {
  28. [Column("strUsrName")]
  29. public string UserName { get; set; } = "";
  30. [Column("nOrder")]
  31. public long Order { get; set; }
  32. [Column("strNickName")]
  33. public string NickName { get; set; } = "";
  34. [Column("strContent")]
  35. public string Content { get; set; } = "";
  36. [Column("nTime")]
  37. public int LastTime { get; set; }
  38. public int ReadCount { get; set; }
  39. public int LastMsgId { get; set; }
  40. }
  41. [Table("SessionAttachInfo")]
  42. public class WXSessionAttachInfo
  43. {
  44. [Column("attachId")]
  45. public int AtcId { get; set; }
  46. [Column("msgType")]
  47. public int MsgType { get; set; }
  48. [Column("msgId")]
  49. public string msgId { get; set; } = "";
  50. [Column("msgTime")]
  51. public long msgTime { get; set; }
  52. [Column("attachPath")]
  53. public string attachPath { get; set; } = "";
  54. [Column("attachSize")]
  55. public int attachSize { get; set; }
  56. }
  57. [Table("Media")]
  58. public class WXMedia
  59. {
  60. public string Key { get; set; } = "";
  61. public string Reserved0 { get; set; } = "";
  62. public byte[]? Buf { get; set; }
  63. }
  64. [Table("MSG")]
  65. public class WXMsg
  66. {
  67. [Column("localId")]
  68. public int LocalId { get; set; }
  69. [Column("Type")]
  70. public int Type { get; set; }
  71. [Column("CreateTime")]
  72. public long CreateTime { get; set; }
  73. [Column("IsSender")]
  74. public bool IsSender { get; set; }
  75. [Column("MsgSvrID")]
  76. public string MsgSvrID { get; set; } = "";
  77. [Column("StrTalker")]
  78. public string StrTalker { get; set; } = "";
  79. [Column("StrContent")]
  80. public string StrContent { get; set; } = "";
  81. }
  82. [Table("Media")]
  83. public class WXMediaMsg
  84. {
  85. public int Key { get; set; }
  86. public byte[]? Buf { get; set; }
  87. public string Reserved0 { get; set; } = "";
  88. }
  89. [Table("Contact")]
  90. public class WXContact
  91. {
  92. [Column("UserName")]
  93. public string UserName { get; set; } = "";
  94. [Column("Alias")]
  95. public string Alias { get; set; } = "";
  96. [Column("NickName")]
  97. public string NickName { get; set; } = "";
  98. }
  99. }