Class BaseOpt

    • Field Detail

      • responseStr

        protected String responseStr
      • responseJsonObj

        protected org.json.JSONObject responseJsonObj
    • Constructor Detail

      • BaseOpt

        public BaseOpt()
    • Method Detail

      • getMessagesFromResponse

        public Object getMessagesFromResponse​(String responseStr,
                                              String node)
      • getStatusFromResponse

        public Object getStatusFromResponse​(String responseStr,
                                            String node)
        get the status from response body
        Parameters:
        responseStr -
        node -
        Returns:
      • parseServerResponse

        protected void parseServerResponse()
                                    throws Exception
        Throws:
        Exception
      • getDataPart

        public Object getDataPart​(org.json.JSONObject obj)
      • getLocale

        public String getLocale​(org.json.JSONObject obj)
      • getResponsePart

        public org.json.JSONObject getResponsePart​(org.json.JSONObject obj)
      • getResponseCode

        public int getResponseCode​(org.json.JSONObject obj)
      • getResponseMessage

        public String getResponseMessage​(org.json.JSONObject obj)
      • isSuccess

        public boolean isSuccess​(int statusCode)