类 UJSon
java.lang.Object
com.gdxsoft.easyweb.utils.UJSon
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleancheckFalse(org.json.JSONObject result) Check the result is failstatic booleancheckTrue(org.json.JSONObject result) Check the result is successfulstatic org.json.JSONObjectCreate a result JSON with RST=falsestatic voidrstSetFalse(org.json.JSONObject rst, String err) Set result JSON RST=falsestatic voidrstSetTrue(org.json.JSONObject rst, String msg) Set result JSON RST=truestatic org.json.JSONObjectrstTrue()Create a result JSON with RST=truestatic org.json.JSONObjectCreate a result JSON with RST=true
-
字段详细资料
-
构造器详细资料
-
UJSon
public UJSon()
-
-
方法详细资料
-
checkTrue
public static boolean checkTrue(org.json.JSONObject result) Check the result is successful- 参数:
result-- 返回:
- true=successful
-
checkFalse
public static boolean checkFalse(org.json.JSONObject result) Check the result is fail- 参数:
result-- 返回:
- true = fail
-
rstFalse
Create a result JSON with RST=false- 参数:
err- the error message- 返回:
- the JSON with RST=false
-
rstTrue
Create a result JSON with RST=true- 参数:
msg- the message- 返回:
- the JSON with RST=true
-
rstTrue
public static org.json.JSONObject rstTrue()Create a result JSON with RST=true- 返回:
- the JSON with RST=true
-
rstSetTrue
Set result JSON RST=true- 参数:
rst- the result JSONmsg- the right message
-
rstSetFalse
Set result JSON RST=false- 参数:
rst- the result JSONerr- error message
-