Class Response

    • Constructor Detail

      • Response

        public Response()
        Constructs a new Response object.
      • Response

        public Response​(int error)
        Constructs a new Response object.
        Parameters:
        error - the error code of the response
    • Method Detail

      • getError

        public int getError()
        Gets the error code of the response.
        Returns:
        the error code of the response
      • setError

        public void setError​(int error)
        Sets the error code of the response.
        Parameters:
        error - the error code of the response
      • toJson

        public String toJson()
        Converts the response to JSON.
        Returns:
        a JSON object string representing the response