public static class SendAuth.Resp extends BaseResp
BaseResp.ErrCode| Modifier and Type | Field and Description |
|---|---|
boolean |
authResult
only for Scope :[snsapi_wxaapp_info], authorization success true, otherwise false
NOTE: 1KB at most 只用在 scope:[snsapi_wxaapp_info], 授权成功为true, 否则为false
|
java.lang.String |
code
code for authorization.
|
java.lang.String |
country |
static int |
ERR_SCOPE_SNSAPI_WXAAPP_INFO_CAN_ONLY_AUTHORIZED_SEPARATELY
scope:snsapi_wxaapp_info can only authorized separately
scope: snsapi_wxaapp_info只能单独请求授权
|
java.lang.String |
lang |
java.lang.String |
state
Used to indentify applications; returned by WeChat after authentication.
|
java.lang.String |
url |
errCode, errStr, openId, transaction| Constructor and Description |
|---|
Resp()
Build an empty response
构造空响应
|
Resp(android.os.Bundle data)
Generate response object from Bundle data
从Bundle数据生成响应对象
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkArgs()
Check parameters of this response
检查该响应各个参数的合法性
|
void |
fromBundle(android.os.Bundle data)
Deserialize response data in Bundle
从Bundle中反序列化响应数据
|
int |
getType()
Return type ID of the current response.
|
void |
toBundle(android.os.Bundle data)
Serialize responses in Bundle
将响应序列化到Bundle中
|
public static final int ERR_SCOPE_SNSAPI_WXAAPP_INFO_CAN_ONLY_AUTHORIZED_SEPARATELY
public java.lang.String code
public java.lang.String state
SendAuth.Req
NOTE: 1KB at most SendAuth.Req
注意:限制长度不超过1KB public boolean authResult
true, otherwise false
NOTE: 1KB at most 只用在 scope:[snsapi_wxaapp_info], 授权成功为true, 否则为falsepublic java.lang.String url
public java.lang.String lang
public java.lang.String country
public Resp()
public Resp(android.os.Bundle data)
data - public int getType()
BaseResppublic void fromBundle(android.os.Bundle data)
BaseRespfromBundle in class BaseRespdata - public void toBundle(android.os.Bundle data)
BaseResp