com.baidu.driver4j.bns
类 BNSResponse

java.lang.Object
  继承者 com.baidu.driver4j.bns.BNSResponse

public class BNSResponse
extends Object

BNS response

从以下版本开始:
1.0.0
作者:
xiemalin

构造方法摘要
BNSResponse()
           
 
方法摘要
static BNSResponse fromJson(String json)
           
protected  com.google.gson.JsonObject getData()
           
 String getMsg()
           
 int getRetCode()
           
protected  void setJsonObject(com.google.gson.JsonObject jsonObject)
           
protected  void setMsg(String msg)
           
protected  void setRetCode(int retCode)
           
 boolean success()
           
<T> T
wrap(Class<T> cls, String element)
           
<T> T
wrap(Type type, String element)
           
<T> T
wrapData(Class<T> cls)
           
<T> T
wrapData(Type type)
           
static
<T> T
wrapJson(com.google.gson.JsonElement jsonElement, Type type)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

BNSResponse

public BNSResponse()
方法详细信息

success

public boolean success()

setRetCode

protected void setRetCode(int retCode)

getRetCode

public int getRetCode()

setMsg

protected void setMsg(String msg)

wrapData

public <T> T wrapData(Class<T> cls)

wrapData

public <T> T wrapData(Type type)

wrap

public <T> T wrap(Type type,
                  String element)

wrap

public <T> T wrap(Class<T> cls,
                  String element)

wrapJson

public static <T> T wrapJson(com.google.gson.JsonElement jsonElement,
                             Type type)

setJsonObject

protected void setJsonObject(com.google.gson.JsonObject jsonObject)

fromJson

public static BNSResponse fromJson(String json)

getMsg

public String getMsg()

getData

protected com.google.gson.JsonObject getData()


Copyright © 2016. All rights reserved.