View Javadoc
1   package com.foxinmy.weixin4j.model.card;
2   
3   import com.alibaba.fastjson.annotation.JSONField;
4   import com.alibaba.fastjson.annotation.JSONType;
5   import com.foxinmy.weixin4j.type.Gender;
6   import com.foxinmy.weixin4j.type.card.UserCardStatus;
7   import com.foxinmy.weixin4j.util.NameValue;
8   import com.foxinmy.weixin4j.xml.ListsuffixResult;
9   
10  import java.util.ArrayList;
11  import java.util.Map;
12  
13  /**
14   * 会员卡的基本信息
15   *
16   * @auther: Feng Yapeng
17   * @since: 2016/12/21 11:33
18   */
19  public class MemberUserInfo {
20  
21      /**
22       * openId
23       */
24      @JSONField(name = "openid")
25      private String openId;
26      /**
27       * 昵称
28       */
29      @JSONField(name = "nickname")
30      private String nickName;
31  
32      /**
33       * 会员卡编号
34       */
35      @JSONField(name = "mmebership_number")
36      private String         membershipNumber;
37      /**
38       * 积分
39       */
40      private Integer        bonus;
41      /**
42       * 余额
43       */
44      private Integer        balance;
45      /**
46       * 性别
47       */
48      private String         sex;
49      /**
50       * 用户会员卡状态
51       */
52      @JSONField(name = "user_card_status")
53      private UserCardStatus userCardStatus;
54  
55      /**
56       * 是否已经被激活,true表示已经被激活,false表示未被激活
57       */
58      @JSONField(name = "has_active")
59      private boolean hasActive;
60  
61      /**
62       * 用户信息
63       */
64      @JSONField(name = "user_info")
65      private UserInfo userInfo;
66  
67      public String getOpenId() {
68          return openId;
69      }
70  
71      public void setOpenId(String openId) {
72          this.openId = openId;
73      }
74  
75      public String getNickName() {
76          return nickName;
77      }
78  
79      public void setNickName(String nickName) {
80          this.nickName = nickName;
81      }
82  
83      public String getMembershipNumber() {
84          return membershipNumber;
85      }
86  
87      public void setMembershipNumber(String membershipNumber) {
88          this.membershipNumber = membershipNumber;
89      }
90  
91      public Integer getBonus() {
92          return bonus;
93      }
94  
95      public void setBonus(Integer bonus) {
96          this.bonus = bonus;
97      }
98  
99      public Integer getBalance() {
100         return balance;
101     }
102 
103     public void setBalance(Integer balance) {
104         this.balance = balance;
105     }
106 
107     public String getSex() {
108         return sex;
109     }
110 
111     public void setSex(String sex) {
112         this.sex = sex;
113     }
114 
115     public UserCardStatus getUserCardStatus() {
116         return userCardStatus;
117     }
118 
119     public void setUserCardStatus(UserCardStatus userCardStatus) {
120         this.userCardStatus = userCardStatus;
121     }
122 
123     public boolean isHasActive() {
124         return hasActive;
125     }
126 
127     public void setHasActive(boolean hasActive) {
128         this.hasActive = hasActive;
129     }
130 
131     public UserInfo getUserInfo() {
132         return userInfo;
133     }
134 
135     public void setUserInfo(UserInfo userInfo) {
136         this.userInfo = userInfo;
137     }
138 
139     public static final class UserInfo {
140 
141         @JSONField(name = "common_field_list")
142         private ArrayList<NameValue> commonFieldValues;
143 
144         @JSONField(name = "custom_field_list")
145         private ArrayList<NameValue> customFieldValues;
146 
147         public ArrayList<NameValue> getCommonFieldValues() {
148             return commonFieldValues;
149         }
150 
151         public void setCommonFieldValues(ArrayList<NameValue> commonFieldValues) {
152             this.commonFieldValues = commonFieldValues;
153         }
154 
155         public ArrayList<NameValue> getCustomFieldValues() {
156             return customFieldValues;
157         }
158 
159         public void setCustomFieldValues(ArrayList<NameValue> customFieldValues) {
160             this.customFieldValues = customFieldValues;
161         }
162     }
163 
164 
165 }