| Class info |
| public class BaseResp |
| Entity base class returned by the Safety Detect APIs. |
| Return type | Method name |
| int | getRtnCode() Gets the response status code of the Safety Detect service. |
| String | getErrorReason() Gets the description of the response status code of the Safety Detect service. |
Public Methods
| Method |
| public int getRtnCode() |
| Gets the response status code of the Safety Detect service. The status code for a success response is 0. For details about the error types represented by other status codes, please refer to SafetyDetectStatusCodes. |
Return
| type | desc |
| int | Response status code of the Safety Detect service. |
| Method |
| public String getErrorReason () |
| Gets the description of the response status code of the Safety Detect service. The value is not empty only when the value of getRtnCode is not 0. |
Return
| type | desc |
| String | Gets the description of the response status code of the Safety Detect service. |