目录

Class info
public class BaseResp
Entity base class returned by the Safety Detect APIs.

Public Method Summary

Return typeMethod 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

typedesc
intResponse 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

typedesc
StringGets the description of the response status code of the Safety Detect service.