类 UJSon

java.lang.Object
com.gdxsoft.easyweb.utils.UJSon

public class UJSon extends Object
  • 字段详细资料

  • 构造器详细资料

    • 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

      public static org.json.JSONObject rstFalse(String err)
      Create a result JSON with RST=false
      参数:
      err - the error message
      返回:
      the JSON with RST=false
    • rstTrue

      public static org.json.JSONObject rstTrue(String msg)
      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

      public static void rstSetTrue(org.json.JSONObject rst, String msg)
      Set result JSON RST=true
      参数:
      rst - the result JSON
      msg - the right message
    • rstSetFalse

      public static void rstSetFalse(org.json.JSONObject rst, String err)
      Set result JSON RST=false
      参数:
      rst - the result JSON
      err - error message