public static interface Saasquatch.TaskCompleteListener
Modifier and Type | Method and Description |
---|---|
void |
onComplete(JSONObject userInfo,
java.lang.String errorMessage,
java.lang.Integer errorCode)
The method called when a task completes.
|
void onComplete(JSONObject userInfo, java.lang.String errorMessage, java.lang.Integer errorCode)
userInfo
- the information returned from the server. For a description of the available fields, see the Referral SaaSquatch REST API docs linked in the method description.errorMessage
- contains a description of the error if there was one. If this is null, then userInfo will not be and vice versa.errorCode
- if it is an HTTP error, this is the status code, otherwise 0 if there is any other error. Null if there is no error.