WechatSharp/Models/WeChatUserInfo.cs

71 lines
1.5 KiB
C#
Raw Normal View History

2024-07-12 19:32:02 +08:00
using Newtonsoft.Json;
namespace WeChatSharp;
2024-07-27 14:55:25 +08:00
2024-07-12 19:32:02 +08:00
[Serializable]
2024-07-13 11:21:18 +08:00
public record WeChatUserInfo
2024-07-12 19:32:02 +08:00
{
[JsonProperty(propertyName: "subscribe")]
2024-07-27 14:55:25 +08:00
public int Subscribe;
[JsonProperty(propertyName: "openid")] public string OpenId;
2024-07-12 19:32:02 +08:00
[JsonProperty(propertyName: "nickname")]
2024-07-27 14:55:25 +08:00
public string NickName;
[JsonProperty(propertyName: "sex")] public int Sex;
2024-07-12 19:32:02 +08:00
[JsonProperty(propertyName: "language")]
2024-07-27 14:55:25 +08:00
public string Language;
[JsonProperty(propertyName: "city")] public string City;
2024-07-12 19:32:02 +08:00
[JsonProperty(propertyName: "province")]
2024-07-27 14:55:25 +08:00
public string Province;
2024-07-12 19:32:02 +08:00
[JsonProperty(propertyName: "country")]
2024-07-27 14:55:25 +08:00
public string Country;
2024-07-12 19:32:02 +08:00
[JsonProperty(propertyName: "headimgurl")]
2024-07-27 14:55:25 +08:00
public string HeadImgUrl;
2024-07-12 19:32:02 +08:00
[JsonProperty(propertyName: "subscribe_time")]
2024-07-27 14:55:25 +08:00
public int SubscribeTime;
[JsonProperty(propertyName: "remark")] public string Remark;
2024-07-12 19:32:02 +08:00
[JsonProperty(propertyName: "groupid")]
2024-07-27 14:55:25 +08:00
public int GroupId;
2024-07-12 19:32:02 +08:00
[JsonProperty(propertyName: "tagid_list")]
2024-07-27 14:55:25 +08:00
public string[] TagIdList;
2024-07-12 19:32:02 +08:00
[JsonProperty(propertyName: "subscribe_scene")]
2024-07-27 14:55:25 +08:00
public string SubscribeScene;
2024-07-12 19:32:02 +08:00
[JsonProperty(propertyName: "qr_scene")]
2024-07-27 14:55:25 +08:00
public int QrScene;
2024-07-12 19:32:02 +08:00
[JsonProperty(propertyName: "qr_scene_str")]
2024-07-27 14:55:25 +08:00
public string QrSceneStr;
2024-07-12 19:32:02 +08:00
}
/*
{
"subscribe": 1,
"openid": "oY0tZ6_aqq_MEWsej9zJEY6OVspI",
"nickname": "",
"sex": 0,
"language": "zh_CN",
"city": "",
"province": "",
"country": "",
"headimgurl": "",
"subscribe_time": 1687668622,
"remark": "Root",
"groupid": 0,
"tagid_list": [],
"subscribe_scene": "ADD_SCENE_SEARCH",
"qr_scene": 0,
"qr_scene_str": ""
}
*/