dev --- 3.8.0.A版本, openProject引用 ; formao-live --- 3.7.0.B 版本, formallProject引用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 line
2.0 KiB

  1. package me.chanjar.weixin.bean.result;
  2. import me.chanjar.weixin.util.json.WxGsonBuilder;
  3. /**
  4. * 微信用户信息
  5. * @author chanjarster
  6. *
  7. */
  8. public class WxUser {
  9. protected boolean subscribe;
  10. protected String openid;
  11. protected String nickname;
  12. protected String sex;
  13. protected String language;
  14. protected String city;
  15. protected String province;
  16. protected String country;
  17. protected String headimgurl;
  18. protected long subscribe_time;
  19. protected String unionid;
  20. public boolean isSubscribe() {
  21. return subscribe;
  22. }
  23. public void setSubscribe(boolean subscribe) {
  24. this.subscribe = subscribe;
  25. }
  26. public String getOpenid() {
  27. return openid;
  28. }
  29. public void setOpenid(String openid) {
  30. this.openid = openid;
  31. }
  32. public String getNickname() {
  33. return nickname;
  34. }
  35. public void setNickname(String nickname) {
  36. this.nickname = nickname;
  37. }
  38. public String getSex() {
  39. return sex;
  40. }
  41. public void setSex(String sex) {
  42. this.sex = sex;
  43. }
  44. public String getLanguage() {
  45. return language;
  46. }
  47. public void setLanguage(String language) {
  48. this.language = language;
  49. }
  50. public String getCity() {
  51. return city;
  52. }
  53. public void setCity(String city) {
  54. this.city = city;
  55. }
  56. public String getProvince() {
  57. return province;
  58. }
  59. public void setProvince(String province) {
  60. this.province = province;
  61. }
  62. public String getCountry() {
  63. return country;
  64. }
  65. public void setCountry(String country) {
  66. this.country = country;
  67. }
  68. public String getHeadimgurl() {
  69. return headimgurl;
  70. }
  71. public void setHeadimgurl(String headimgurl) {
  72. this.headimgurl = headimgurl;
  73. }
  74. public long getSubscribe_time() {
  75. return subscribe_time;
  76. }
  77. public void setSubscribe_time(long subscribe_time) {
  78. this.subscribe_time = subscribe_time;
  79. }
  80. public String getUnionid() {
  81. return unionid;
  82. }
  83. public void setUnionid(String unionid) {
  84. this.unionid = unionid;
  85. }
  86. public static WxUser fromJson(String json) {
  87. return WxGsonBuilder.INSTANCE.create().fromJson(json, WxUser.class);
  88. }
  89. }