public interface ValueCallBack<T>
| Modifier and Type | Method and Description |
|---|---|
void |
onError(int error,
java.lang.String errorMsg)
callback on request failed
|
void |
onSuccess(T value)
callback on request successfully
|
void onSuccess(T value)
value - T class passed by appvoid onError(int error,
java.lang.String errorMsg)
error - the error return for this requesterrorMsg - the error description