Class ApiResponse
- java.lang.Object
-
- com.inhousegreenhouse.ch.backend.model.api.ApiResponse
-
public class ApiResponse extends java.lang.ObjectThis class represents a response from the API, received through GreenProxy server.
-
-
Field Summary
Fields Modifier and Type Field Description org.json.JSONObjectdataThe response body as JSON.java.lang.StringerrorMessageThe response body.booleanisSuccessThe 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 booleanisGraphQLResponseError()Checks if the response from the GraphQL server is successful.
-