com.tencent.mm.sdk.modelmsg
Class SendAuth.Resp

java.lang.Object
  extended by com.tencent.mm.sdk.modelbase.BaseResp
      extended by com.tencent.mm.sdk.modelmsg.SendAuth.Resp
Enclosing class:
SendAuth

public static class SendAuth.Resp
extends BaseResp

Response class of SendAuth, extend from BaseResp
SendAuth响应类,继承自BaseResp


Nested Class Summary
 
Nested classes/interfaces inherited from class com.tencent.mm.sdk.modelbase.BaseResp
BaseResp.ErrCode
 
Field Summary
 java.lang.String code
          
code for authorization.
 java.lang.String state
          
Used to indentify applications; returned by WeChat after authentication.
 java.lang.String url
           
 
Fields inherited from class com.tencent.mm.sdk.modelbase.BaseResp
errCode, errStr, openId, transaction
 
Constructor Summary
SendAuth.Resp()
          
Build an empty response
构造空响应
SendAuth.Resp(Bundle data)
          
Generate response object from Bundle data
从Bundle数据生成响应对象
 
Method Summary
 boolean checkArgs()
          
Check parameters of this response
检查该响应各个参数的合法性
 void fromBundle(Bundle data)
          
Deserialize response data in Bundle
从Bundle中反序列化响应数据
 int getType()
          
Return type ID of the current response.
 void toBundle(Bundle data)
          
Serialize responses in Bundle
将响应序列化到Bundle中
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

public java.lang.String code
code for authorization. Null if authorization failed.
授权的code,授权失败时返回null


state

public java.lang.String state
Used to indentify applications; returned by WeChat after authentication. See SendAuth.Req

NOTE: 1KB at most

外部应用本身用来标识其请求的唯一性,验证完成后,将由微信终端回传,参考SendAuth.Req

注意:限制长度不超过1KB


url

public java.lang.String url
Constructor Detail

SendAuth.Resp

public SendAuth.Resp()
Build an empty response
构造空响应


SendAuth.Resp

public SendAuth.Resp(Bundle data)
Generate response object from Bundle data
从Bundle数据生成响应对象

Parameters:
data -
Source Bundle that contains response data
包含响应数据的源Bundle
Method Detail

getType

public int getType()
Description copied from class: BaseResp
Return type ID of the current response. See ConstantsAPI
返回当前响应的类型ID,参考 ConstantsAPI

Specified by:
getType in class BaseResp
Returns:
type of current request instance

fromBundle

public void fromBundle(Bundle data)
Description copied from class: BaseResp
Deserialize response data in Bundle
从Bundle中反序列化响应数据

Overrides:
fromBundle in class BaseResp
Parameters:
data -
Bundle that used to carry response data
承载响应数据的Bundle

toBundle

public void toBundle(Bundle data)
Description copied from class: BaseResp
Serialize responses in Bundle
将响应序列化到Bundle中

Overrides:
toBundle in class BaseResp
Parameters:
data -
Bundle that used to carry response data
承载响应数据的Bundle

checkArgs

public boolean checkArgs()
Description copied from class: BaseResp
Check parameters of this response
检查该响应各个参数的合法性

Specified by:
checkArgs in class BaseResp
Returns:
Returns True if all parameters are valid.
如果参数均合法,返回true