#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
{
///
/// 会员信息
///
public class UserinfoGetResult : WxJsonResult
{
///
/// 用户在本公众号内唯一识别码
///
public string openid { get; set; }
///
/// 用户昵称
///
public string nickname { get; set; }
///
/// membership_number
///
public string membership_number { get; set; }
///
/// 积分信息
///
public int bonus { get; set; }
///
/// 用户性别,如MALE
///
public string sex { get; set; }
///
/// 会员信息
///
public UserinfoGetResult_UserInfo user_info { get; set; }
/////
///// 开发者设置的会员卡会员信息类目,如等级。
/////
//public List custom_field_list { get; set; }
///
/// 当前用户的会员卡状态
///
public UserCardStatus user_card_status { get; set; }
///
/// 该卡是否已经被激活,true表示已经被激活,false表示未被激活
///
public bool has_active { get; set; }
}
public class UserinfoGetResult_UserInfo
{
///
///
///
public List common_field_list { get; set; }
///
/// 开发者设置的会员卡会员信息类目,如等级。
///
public List custom_field_list { get; set; }
}
///
/// 获取用户开卡时提交的信息
///
public class GetActivateTempInfoResultJson : WxJsonResult
{
///
/// 会员信息
///
public UserinfoGetResult_UserInfo info { get; set; }
}
public class UserinfoGetResult_UserInfo_Item
{
///
/// 会员信息类目名称
///
public string name { get; set; }
///
/// 会员卡信息类目值,比如等级值等
///
public string value { get; set; }
///
/// 填写项目为多选时的返回
///
public List value_list { get; set; }
}
}