WXModel.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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("Contact")]
  83. public class WXContact
  84. {
  85. [Column("UserName")]
  86. public string UserName { get; set; } = "";
  87. [Column("Alias")]
  88. public string Alias { get; set; } = "";
  89. [Column("NickName")]
  90. public string NickName { get; set; } = "";
  91. }
  92. }