1
This commit is contained in:
25
Models/WeChatAccessToken.cs
Normal file
25
Models/WeChatAccessToken.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace WeChatSharp
|
||||
{
|
||||
public class WeChatAccessToken
|
||||
{
|
||||
[JsonProperty("access_token")]
|
||||
public string AccessToken { get; set; }
|
||||
|
||||
[JsonProperty("expires_in")]
|
||||
public int ExpiresIn { get; set; }
|
||||
|
||||
[JsonProperty("refresh_token")]
|
||||
public string RefreshToken { get; set; }
|
||||
|
||||
[JsonProperty("openid")]
|
||||
public string OpenId { get; set; }
|
||||
|
||||
[JsonProperty("scope")]
|
||||
public string Scope { get; set; }
|
||||
|
||||
[JsonProperty("unionid")]
|
||||
public string UnionId { get; set; }
|
||||
}
|
||||
}
|
@@ -1,42 +1,53 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace WeChatSharp;
|
||||
|
||||
[Serializable]
|
||||
public record WeChatUserInfo
|
||||
{
|
||||
[JsonProperty(propertyName: "subscribe")]
|
||||
public int Subscribe { get; internal set; }
|
||||
[JsonProperty(propertyName: "openid")]
|
||||
public string OpenId { get; internal set; }
|
||||
[JsonProperty(propertyName: "nickname")]
|
||||
public string NickName{ get; internal set; }
|
||||
public int Subscribe;
|
||||
|
||||
[JsonProperty(propertyName: "openid")] public string OpenId;
|
||||
|
||||
[JsonProperty(propertyName: "nickname")]
|
||||
public string NickName;
|
||||
|
||||
[JsonProperty(propertyName: "sex")] public int Sex;
|
||||
|
||||
[JsonProperty(propertyName: "sex")]
|
||||
public int Sex { get; internal set; }
|
||||
[JsonProperty(propertyName: "language")]
|
||||
public string Language{ get; internal set; }
|
||||
[JsonProperty(propertyName: "city")]
|
||||
public string City{ get; internal set; }
|
||||
public string Language;
|
||||
|
||||
[JsonProperty(propertyName: "city")] public string City;
|
||||
|
||||
[JsonProperty(propertyName: "province")]
|
||||
public string Province{ get; internal set; }
|
||||
public string Province;
|
||||
|
||||
[JsonProperty(propertyName: "country")]
|
||||
public string Country{ get; internal set; }
|
||||
public string Country;
|
||||
|
||||
[JsonProperty(propertyName: "headimgurl")]
|
||||
public string HeadImgUrl{ get; internal set; }
|
||||
public string HeadImgUrl;
|
||||
|
||||
[JsonProperty(propertyName: "subscribe_time")]
|
||||
public int SubscribeTime{ get; internal set; }
|
||||
[JsonProperty(propertyName: "remark")]
|
||||
public string Remark{ get; internal set; }
|
||||
public int SubscribeTime;
|
||||
|
||||
[JsonProperty(propertyName: "remark")] public string Remark;
|
||||
|
||||
[JsonProperty(propertyName: "groupid")]
|
||||
public int GroupId{ get; internal set; }
|
||||
public int GroupId;
|
||||
|
||||
[JsonProperty(propertyName: "tagid_list")]
|
||||
public string[] TagIdList{ get; internal set; }
|
||||
public string[] TagIdList;
|
||||
|
||||
[JsonProperty(propertyName: "subscribe_scene")]
|
||||
public string SubscribeScene{ get; internal set; }
|
||||
public string SubscribeScene;
|
||||
|
||||
[JsonProperty(propertyName: "qr_scene")]
|
||||
public int QrScene{ get; internal set; }
|
||||
public int QrScene;
|
||||
|
||||
[JsonProperty(propertyName: "qr_scene_str")]
|
||||
public string QrSceneStr{ get; internal set; }
|
||||
public string QrSceneStr;
|
||||
}
|
||||
/*
|
||||
{
|
||||
|
Reference in New Issue
Block a user