net / com.drake.net.interfaces / NetCallback
abstract class NetCallback<T> : Callback
Name | Summary |
---|---|
<init> | NetCallback() |
Name | Summary |
---|---|
onComplete | 请求完成fun onComplete(call: Call, e: IOException ?): Unit |
onError | 请求错误fun onError(call: Call, e: IOException ): Unit |
onFailure | open fun onFailure(call: Call, e: IOException ): Unit |
onResponse | open fun onResponse(call: Call, response: Response): Unit |
onSuccess | 请求成功abstract fun onSuccess(call: Call, data: T): Unit |