12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #region Apache License Version 2.0
- /*----------------------------------------------------------------
- Copyright 2019 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
- except in compliance with the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software distributed under the
- License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- either express or implied. See the License for the specific language governing permissions
- and limitations under the License.
- Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md
- ----------------------------------------------------------------*/
- #endregion Apache License Version 2.0
- /*----------------------------------------------------------------
- Copyright (C) 2019 Senparc
-
- 文件名:OAuthUserInfo.cs
- 文件功能描述:通过OAuth的获取到的用户信息
-
-
- 创建标识:Senparc - 20150211
-
- 修改标识:Senparc - 20150303
- 修改描述:整理接口
- ----------------------------------------------------------------*/
- namespace Senparc.Weixin.MP.AdvancedAPIs.OAuth
- {
- /// <summary>
- /// 通过OAuth的获取到的用户信息(snsapi_userinfo=scope)
- /// </summary>
- public class OAuthUserInfo
- {
- /// <summary>
- /// 用户的唯一标识
- /// </summary>
- public string openid { get; set; }
- /// <summary>
- /// 用户昵称
- /// </summary>
- public string nickname { get; set; }
- /// <summary>
- /// 用户的性别,值为1时是男性,值为2时是女性,值为0时是未知
- /// </summary>
- public int sex { get; set; }
- /// <summary>
- /// 用户个人资料填写的省份
- /// </summary>
- public string province { get; set; }
- /// <summary>
- /// 普通用户个人资料填写的城市
- /// </summary>
- public string city { get; set; }
- /// <summary>
- /// 国家,如中国为CN
- /// </summary>
- public string country { get; set; }
- /// <summary>
- /// 用户头像,最后一个数值代表正方形头像大小(有0、46、64、96、132数值可选,0代表640*640正方形头像),用户没有头像时该项为空
- /// </summary>
- public string headimgurl { get; set; }
- /// <summary>
- /// 用户特权信息,json 数组,如微信沃卡用户为(chinaunicom)
- /// 作者注:其实这个格式称不上JSON,只是个单纯数组。
- /// </summary>
- public string[] privilege { get; set; }
- /// <summary>
- /// 只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段。详见:https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&lang=zh_CN
- /// </summary>
- public string unionid { get; set; }
- }
- }
|