public interface IoTCallback
Modifier and Type | Method and Description |
---|---|
void |
onFailure(IoTRequest request,
java.lang.Exception e)
当请求发送失败时触发
未能得到服务器回应信息,通常是 host 设置错误、客户端网络环境等原因导致的
|
void |
onResponse(IoTRequest request,
IoTResponse response)
当收到 API 网关响应时触发
|
void onFailure(IoTRequest request, java.lang.Exception e)
request
- 请求信息,参考IoTRequest
e
- 具体的Exception信息void onResponse(IoTRequest request, IoTResponse response)
request
- 请求信息,参考IoTRequest
response
- 响应信息,参考IoTResponse