com.baidu.driver4j.bns
类 BNSResponse
java.lang.Object
com.baidu.driver4j.bns.BNSResponse
public class BNSResponse
- extends Object
BNS response
- 从以下版本开始:
- 1.0.0
- 作者:
- xiemalin
| 从类 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.