123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- #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
-
- 文件名:UserinfoGetResult.cs
- 文件功能描述:枚举类型
-
-
- 创建标识:Senparc - 20160308
- 修改标识:Senparc - 20160505
- 修改描述:注销UserinfoGetResult.custom_field_list属性,正确的位置应放到UserinfoGetResult_UserInfo 对象中。感谢@hello2008zj
- ----------------------------------------------------------------*/
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Senparc.Weixin.Entities;
- namespace Senparc.Weixin.MP.AdvancedAPIs.Card
- {
- /// <summary>
- /// 会员信息
- /// </summary>
- public class UserinfoGetResult : WxJsonResult
- {
- /// <summary>
- /// 用户在本公众号内唯一识别码
- /// </summary>
- public string openid { get; set; }
- /// <summary>
- /// 用户昵称
- /// </summary>
- public string nickname { get; set; }
- /// <summary>
- /// membership_number
- /// </summary>
- public string membership_number { get; set; }
- /// <summary>
- /// 积分信息
- /// </summary>
- public int bonus { get; set; }
- /// <summary>
- /// 用户性别,如MALE
- /// </summary>
- public string sex { get; set; }
- /// <summary>
- /// 会员信息
- /// </summary>
- public UserinfoGetResult_UserInfo user_info { get; set; }
- ///// <summary>
- ///// 开发者设置的会员卡会员信息类目,如等级。
- ///// </summary>
- //public List<string> custom_field_list { get; set; }
- /// <summary>
- /// 当前用户的会员卡状态
- /// </summary>
- public UserCardStatus user_card_status { get; set; }
- /// <summary>
- /// 该卡是否已经被激活,true表示已经被激活,false表示未被激活
- /// </summary>
- public bool has_active { get; set; }
- }
- public class UserinfoGetResult_UserInfo
- {
- /// <summary>
- ///
- /// </summary>
- public List<UserinfoGetResult_UserInfo_Item> common_field_list { get; set; }
- /// <summary>
- /// 开发者设置的会员卡会员信息类目,如等级。
- /// </summary>
- public List<UserinfoGetResult_UserInfo_Item> custom_field_list { get; set; }
- }
- /// <summary>
- /// 获取用户开卡时提交的信息
- /// </summary>
- public class GetActivateTempInfoResultJson : WxJsonResult
- {
- /// <summary>
- /// 会员信息
- /// </summary>
- public UserinfoGetResult_UserInfo info { get; set; }
- }
- public class UserinfoGetResult_UserInfo_Item
- {
- /// <summary>
- /// 会员信息类目名称
- /// </summary>
- public string name { get; set; }
- /// <summary>
- /// 会员卡信息类目值,比如等级值等
- /// </summary>
- public string value { get; set; }
- /// <summary>
- /// 填写项目为多选时的返回
- /// </summary>
- public List<string> value_list { get; set; }
- }
- }
|