Generic Web Reply
This is a class that is returned by the REST Base Service: Runtime Security Service
It is a generic struct, returned by a web call, that contains the status of the call, any error that occurred, and the data if received.
It has the following properties:
- data - Contains the typed response body from the call.
- err - If an error occurred, this may contain the error message.
- res - Contains the method call return value. 1 for success.
- statuscode - Contains the Http Status code of the response.
- timedout - Will be set if the call timed out, waiting for a reply.
It also has these methods:
- IsReturnGood() - Checks that the return code is success and the Http Status code is 200-299.
- IsReturnGoodDataExists() - Same as previous, but also checks that data is not null.
No Comments