public class OAuth2UserInfo extends GlobalReturnCode
| Constructor and Description |
|---|
OAuth2UserInfo() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCity()
用户所在城市
|
String |
getCountry()
用户所在国家
|
String |
getHeadimgurl()
用户头像,最后一个数值代表正方形头像大小(有0、46、64、96、132数值可选,0代表640*640正方形头像),用户没有头像时该项为空
|
String |
getNickname()
用户的昵称
|
String |
getOpenid()
用户的标识,对当前公众号唯一
|
List<String> |
getPrivilege()
用户特权信息,json 数组,如微信沃卡用户为(chinaunicom)
|
String |
getProvince()
用户所在省份
|
Integer |
getSex()
用户的性别,值为1时是男性,值为2时是女性,值为0时是未知
|
String |
getUnionid() |
void |
setCity(String city) |
void |
setCountry(String country) |
void |
setHeadimgurl(String headimgurl) |
void |
setNickname(String nickname) |
void |
setOpenid(String openid) |
void |
setPrivilege(List<String> privilege) |
void |
setProvince(String province) |
void |
setSex(Integer sex) |
void |
setUnionid(String unionid) |
String |
toString() |
getData, getErrcode, getErrmsg, setData, setErrcode, setErrmsg, systemErrorpublic String getOpenid()
public void setOpenid(String openid)
openid - the openid to setpublic String getNickname()
public void setNickname(String nickname)
nickname - the nickname to setpublic Integer getSex()
public void setSex(Integer sex)
sex - the sex to setpublic String getCity()
public void setCity(String city)
city - the city to setpublic String getProvince()
public void setProvince(String province)
province - the province to setpublic String getCountry()
public void setCountry(String country)
country - the country to setpublic String getHeadimgurl()
public void setHeadimgurl(String headimgurl)
headimgurl - the headimgurl to setpublic String getUnionid()
public void setUnionid(String unionid)
public String toString()
toString in class GlobalReturnCodeCopyright © 2012–2020 Wudao Software Studio. All rights reserved.