Class ApiResponse
- java.lang.Object
-
- com.inhousegreenhouse.ch.backend.model.api.ApiResponse
-
public class ApiResponse extends java.lang.Object
This class represents a response from the API, received through GreenProxy server.
-
-
Field Summary
Fields Modifier and Type Field Description org.json.JSONObject
data
The response body as JSON.java.lang.String
errorMessage
The response body.boolean
isSuccess
The status of the response from the GreenProxy forward proxy server.
-
Constructor Summary
Constructors Constructor Description ApiResponse(boolean isSuccess, java.lang.String errorMessage, java.lang.String data)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isGraphQLResponseError()
Checks if the response from the GraphQL server is successful.
-